blob: 0f6b1cdc3c6f7950cf538c50d2ddb5ec2caa5bbc [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 Spencercaf0ece2006-06-05 15:54:38 +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 DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +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 Spencercaf0ece2006-06-05 15:54:38 +00005176 if test "$llvm_cv_os_type" == "MingW" ; then
5177 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5178 fi
Reid Spencerc232a652005-07-14 02:25:12 +00005179
Reid Spencerbe130282005-07-14 05:19:12 +00005180cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005181#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
Reid Spencerc232a652005-07-14 02:25:12 +00005182_ACEOF
5183
Reid Spencer8a2246f2005-07-13 03:20:14 +00005184fi
Reid Spencercaf0ece2006-06-05 15:54:38 +00005185# Extract the first word of "dot", so it can be a program name with args.
5186set dummy dot; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_path_DOT+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 case $DOT in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5195 ;;
5196 *)
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209done
5210
5211 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5212 ;;
5213esac
5214fi
5215DOT=$ac_cv_path_DOT
5216
5217if test -n "$DOT"; then
5218 echo "$as_me:$LINENO: result: $DOT" >&5
5219echo "${ECHO_T}$DOT" >&6
5220else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223fi
5224
5225if test "$DOT" != "echo dot" ; then
5226
5227cat >>confdefs.h <<\_ACEOF
5228#define HAVE_DOT 1
5229_ACEOF
5230
5231 if test "$llvm_cv_os_type" == "MingW" ; then
5232 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5233 fi
5234
5235cat >>confdefs.h <<_ACEOF
5236#define LLVM_PATH_DOT "$DOT${EXEEXT}"
5237_ACEOF
5238
5239fi
5240for ac_prog in gv gsview32
5241do
5242 # Extract the first word of "$ac_prog", so it can be a program name with args.
5243set dummy $ac_prog; ac_word=$2
Reid Spencerbe130282005-07-14 05:19:12 +00005244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_path_GV+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 case $GV in
5250 [\\/]* | ?:[\\/]*)
5251 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5252 ;;
5253 *)
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266done
5267
Reid Spencerbe130282005-07-14 05:19:12 +00005268 ;;
5269esac
5270fi
5271GV=$ac_cv_path_GV
5272
5273if test -n "$GV"; then
5274 echo "$as_me:$LINENO: result: $GV" >&5
5275echo "${ECHO_T}$GV" >&6
5276else
5277 echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6
5279fi
5280
Reid Spencercaf0ece2006-06-05 15:54:38 +00005281 test -n "$GV" && break
5282done
5283test -n "$GV" || GV="echo gv"
5284
Misha Brukmanf83d4062005-11-01 21:00:49 +00005285if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005286
5287cat >>confdefs.h <<\_ACEOF
5288#define HAVE_GV 1
5289_ACEOF
5290
Reid Spencercaf0ece2006-06-05 15:54:38 +00005291 if test "$llvm_cv_os_type" == "MingW" ; then
5292 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5293 fi
Reid Spencerbe130282005-07-14 05:19:12 +00005294
5295cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005296#define LLVM_PATH_GV "$GV${EXEEXT}"
Reid Spencerbe130282005-07-14 05:19:12 +00005297_ACEOF
5298
5299fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005300# Extract the first word of "dotty", so it can be a program name with args.
5301set dummy dotty; ac_word=$2
5302echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304if test "${ac_cv_path_DOTTY+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 case $DOTTY in
5308 [\\/]* | ?:[\\/]*)
5309 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5310 ;;
5311 *)
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323done
5324done
5325
5326 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5327 ;;
5328esac
5329fi
5330DOTTY=$ac_cv_path_DOTTY
5331
5332if test -n "$DOTTY"; then
5333 echo "$as_me:$LINENO: result: $DOTTY" >&5
5334echo "${ECHO_T}$DOTTY" >&6
5335else
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338fi
5339
5340if test "$DOTTY" != "echo dotty" ; then
5341
5342cat >>confdefs.h <<\_ACEOF
5343#define HAVE_DOTTY 1
5344_ACEOF
5345
Reid Spencercaf0ece2006-06-05 15:54:38 +00005346 if test "$llvm_cv_os_type" == "MingW" ; then
5347 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5348 fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005349
5350cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005351#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
Reid Spencerecbd2422006-06-02 23:13:18 +00005352_ACEOF
5353
5354fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005355
Reid Spencerb195d9d2006-03-23 23:21:29 +00005356
5357# Extract the first word of "perl", so it can be a program name with args.
5358set dummy perl; ac_word=$2
5359echo "$as_me:$LINENO: checking for $ac_word" >&5
5360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361if test "${ac_cv_path_PERL+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363else
5364 case $PERL in
5365 [\\/]* | ?:[\\/]*)
5366 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5367 ;;
5368 *)
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 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5379 fi
5380done
5381done
5382
5383 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5384 ;;
5385esac
5386fi
5387PERL=$ac_cv_path_PERL
5388
5389if test -n "$PERL"; then
5390 echo "$as_me:$LINENO: result: $PERL" >&5
5391echo "${ECHO_T}$PERL" >&6
5392else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395fi
5396
5397if test "$PERL" != "none"; then
5398 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5399echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5400 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403 else
5404 PERL=none
5405 echo "$as_me:$LINENO: result: not found" >&5
5406echo "${ECHO_T}not found" >&6
5407 fi
5408fi
5409
5410
5411if test x"$PERL" = xnone; then
5412 HAVE_PERL=0
5413
5414else
5415 HAVE_PERL=1
5416
5417fi
5418
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005419# Find a good install program. We prefer a C program (faster),
5420# so one script is as good as another. But avoid the broken or
5421# incompatible versions:
5422# SysV /etc/install, /usr/sbin/install
5423# SunOS /usr/etc/install
5424# IRIX /sbin/install
5425# AIX /bin/install
5426# AmigaOS /C/install, which installs bootblocks on floppy discs
5427# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5428# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5429# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5430# OS/2's system install, which has a completely different semantic
5431# ./install, which can be erroneously created by make from ./install.sh.
5432echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5433echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5434if test -z "$INSTALL"; then
5435if test "${ac_cv_path_install+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 # Account for people who put trailing slashes in PATH elements.
5444case $as_dir/ in
5445 ./ | .// | /cC/* | \
5446 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5447 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5448 /usr/ucb/* ) ;;
5449 *)
5450 # OSF1 and SCO ODT 3.0 have their own names for install.
5451 # Don't use installbsd from OSF since it installs stuff as root
5452 # by default.
5453 for ac_prog in ginstall scoinst install; do
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5456 if test $ac_prog = install &&
5457 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5458 # AIX install. It has an incompatible calling convention.
5459 :
5460 elif test $ac_prog = install &&
5461 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5462 # program-specific install script used by HP pwplus--don't use.
5463 :
5464 else
5465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5466 break 3
5467 fi
5468 fi
5469 done
5470 done
5471 ;;
5472esac
5473done
5474
5475
5476fi
5477 if test "${ac_cv_path_install+set}" = set; then
5478 INSTALL=$ac_cv_path_install
5479 else
5480 # As a last resort, use the slow shell script. We don't cache a
5481 # path for INSTALL within a source directory, because that will
5482 # break other packages using the cache if that directory is
5483 # removed, or if the path is relative.
5484 INSTALL=$ac_install_sh
5485 fi
5486fi
5487echo "$as_me:$LINENO: result: $INSTALL" >&5
5488echo "${ECHO_T}$INSTALL" >&6
5489
5490# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5491# It thinks the first close brace ends the variable substitution.
5492test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5493
5494test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5495
5496test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5497
5498
5499# Extract the first word of "bzip2", so it can be a program name with args.
5500set dummy bzip2; ac_word=$2
5501echo "$as_me:$LINENO: checking for $ac_word" >&5
5502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503if test "${ac_cv_path_BZIP2+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506 case $BZIP2 in
5507 [\\/]* | ?:[\\/]*)
5508 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5509 ;;
5510 *)
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522done
5523done
5524
Reid Spencerf9b458c2006-04-27 07:49:24 +00005525 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005526 ;;
5527esac
5528fi
5529BZIP2=$ac_cv_path_BZIP2
5530
5531if test -n "$BZIP2"; then
5532 echo "$as_me:$LINENO: result: $BZIP2" >&5
5533echo "${ECHO_T}$BZIP2" >&6
5534else
5535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
5537fi
5538
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005539# Extract the first word of "doxygen", so it can be a program name with args.
5540set dummy doxygen; ac_word=$2
5541echo "$as_me:$LINENO: checking for $ac_word" >&5
5542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543if test "${ac_cv_path_DOXYGEN+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546 case $DOXYGEN in
5547 [\\/]* | ?:[\\/]*)
5548 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5549 ;;
5550 *)
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562done
5563done
5564
Reid Spencerf9b458c2006-04-27 07:49:24 +00005565 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005566 ;;
5567esac
5568fi
5569DOXYGEN=$ac_cv_path_DOXYGEN
5570
5571if test -n "$DOXYGEN"; then
5572 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5573echo "${ECHO_T}$DOXYGEN" >&6
5574else
5575 echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577fi
5578
5579# Extract the first word of "etags", so it can be a program name with args.
5580set dummy etags; ac_word=$2
5581echo "$as_me:$LINENO: checking for $ac_word" >&5
5582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583if test "${ac_cv_path_ETAGS+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 case $ETAGS in
5587 [\\/]* | ?:[\\/]*)
5588 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5589 ;;
5590 *)
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592for as_dir in $PATH
5593do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602done
5603done
5604
Reid Spencerf9b458c2006-04-27 07:49:24 +00005605 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005606 ;;
5607esac
5608fi
5609ETAGS=$ac_cv_path_ETAGS
5610
5611if test -n "$ETAGS"; then
5612 echo "$as_me:$LINENO: result: $ETAGS" >&5
5613echo "${ECHO_T}$ETAGS" >&6
5614else
5615 echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617fi
5618
5619# Extract the first word of "groff", so it can be a program name with args.
5620set dummy groff; ac_word=$2
5621echo "$as_me:$LINENO: checking for $ac_word" >&5
5622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623if test "${ac_cv_path_GROFF+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626 case $GROFF in
5627 [\\/]* | ?:[\\/]*)
5628 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5629 ;;
5630 *)
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5641 fi
5642done
5643done
5644
Reid Spencerf9b458c2006-04-27 07:49:24 +00005645 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005646 ;;
5647esac
5648fi
5649GROFF=$ac_cv_path_GROFF
5650
5651if test -n "$GROFF"; then
5652 echo "$as_me:$LINENO: result: $GROFF" >&5
5653echo "${ECHO_T}$GROFF" >&6
5654else
5655 echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6
5657fi
5658
5659# Extract the first word of "gzip", so it can be a program name with args.
5660set dummy gzip; ac_word=$2
5661echo "$as_me:$LINENO: checking for $ac_word" >&5
5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663if test "${ac_cv_path_GZIP+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666 case $GZIP in
5667 [\\/]* | ?:[\\/]*)
5668 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5669 ;;
5670 *)
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682done
5683done
5684
Reid Spencerf9b458c2006-04-27 07:49:24 +00005685 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005686 ;;
5687esac
5688fi
5689GZIP=$ac_cv_path_GZIP
5690
5691if test -n "$GZIP"; then
5692 echo "$as_me:$LINENO: result: $GZIP" >&5
5693echo "${ECHO_T}$GZIP" >&6
5694else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697fi
5698
5699# Extract the first word of "pod2html", so it can be a program name with args.
5700set dummy pod2html; ac_word=$2
5701echo "$as_me:$LINENO: checking for $ac_word" >&5
5702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5703if test "${ac_cv_path_POD2HTML+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 case $POD2HTML in
5707 [\\/]* | ?:[\\/]*)
5708 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5709 ;;
5710 *)
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723done
5724
Reid Spencerf9b458c2006-04-27 07:49:24 +00005725 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005726 ;;
5727esac
5728fi
5729POD2HTML=$ac_cv_path_POD2HTML
5730
5731if test -n "$POD2HTML"; then
5732 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5733echo "${ECHO_T}$POD2HTML" >&6
5734else
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737fi
5738
5739# Extract the first word of "pod2man", so it can be a program name with args.
5740set dummy pod2man; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_path_POD2MAN+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 case $POD2MAN in
5747 [\\/]* | ?:[\\/]*)
5748 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5749 ;;
5750 *)
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763done
5764
Reid Spencerf9b458c2006-04-27 07:49:24 +00005765 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005766 ;;
5767esac
5768fi
5769POD2MAN=$ac_cv_path_POD2MAN
5770
5771if test -n "$POD2MAN"; then
5772 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5773echo "${ECHO_T}$POD2MAN" >&6
5774else
5775 echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6
5777fi
5778
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005779# Extract the first word of "runtest", so it can be a program name with args.
5780set dummy runtest; ac_word=$2
5781echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5783if test "${ac_cv_path_RUNTEST+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786 case $RUNTEST in
5787 [\\/]* | ?:[\\/]*)
5788 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5789 ;;
5790 *)
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803done
5804
Reid Spencerf9b458c2006-04-27 07:49:24 +00005805 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005806 ;;
5807esac
5808fi
5809RUNTEST=$ac_cv_path_RUNTEST
5810
5811if test -n "$RUNTEST"; then
5812 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5813echo "${ECHO_T}$RUNTEST" >&6
5814else
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817fi
5818
Reid Spencer0fcb9412004-11-30 08:11:54 +00005819
Reid Spencer0fcb9412004-11-30 08:11:54 +00005820no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005821echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5822echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005823
5824# Check whether --with-tclinclude or --without-tclinclude was given.
5825if test "${with_tclinclude+set}" = set; then
5826 withval="$with_tclinclude"
5827 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005828else
5829 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005830fi;
5831if test "${ac_cv_path_tclsh+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834
5835if test x"${with_tclinclude}" != x ; then
5836 if test -f ${with_tclinclude}/tclsh ; then
5837 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5838 elif test -f ${with_tclinclude}/src/tclsh ; then
5839 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5840 else
5841 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5842echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5843 { (exit 1); exit 1; }; }
5844 fi
5845fi
5846
Reid Spencer0fcb9412004-11-30 08:11:54 +00005847if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005848 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005849echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005850 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 +00005851do
5852 # Extract the first word of "$ac_prog", so it can be a program name with args.
5853set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005854echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005856if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
Reid Spencercda35f82004-12-02 04:17:20 +00005859 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005860 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005861 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005862 ;;
5863 *)
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005871 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876done
5877
5878 ;;
5879esac
5880fi
Reid Spencercda35f82004-12-02 04:17:20 +00005881TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005882
Reid Spencercda35f82004-12-02 04:17:20 +00005883if test -n "$TCLSH"; then
5884 echo "$as_me:$LINENO: result: $TCLSH" >&5
5885echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005886else
5887 echo "$as_me:$LINENO: result: no" >&5
5888echo "${ECHO_T}no" >&6
5889fi
5890
Reid Spencercda35f82004-12-02 04:17:20 +00005891 test -n "$TCLSH" && break
5892done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005893
Reid Spencercda35f82004-12-02 04:17:20 +00005894 if test x"${TCLSH}" = x ; then
5895 ac_cv_path_tclsh='';
5896 else
5897 ac_cv_path_tclsh="${TCLSH}";
5898 fi
5899else
5900 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5901echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5902 TCLSH="${ac_cv_path_tclsh}"
5903
5904fi
5905
5906fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005907
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005908# Extract the first word of "zip", so it can be a program name with args.
5909set dummy zip; ac_word=$2
5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_path_ZIP+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915 case $ZIP in
5916 [\\/]* | ?:[\\/]*)
5917 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5918 ;;
5919 *)
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932done
5933
Reid Spencerf9b458c2006-04-27 07:49:24 +00005934 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005935 ;;
5936esac
5937fi
5938ZIP=$ac_cv_path_ZIP
5939
5940if test -n "$ZIP"; then
5941 echo "$as_me:$LINENO: result: $ZIP" >&5
5942echo "${ECHO_T}$ZIP" >&6
5943else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946fi
5947
5948
5949echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5950echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5951if test "${llvm_cv_link_use_r+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005955ac_cpp='$CPP $CPPFLAGS'
5956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005960 oldcflags="$CFLAGS"
5961 CFLAGS="$CFLAGS -Wl,-R."
5962 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005968
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005969int
5970main ()
5971{
5972int main() { return 0; }
5973 ;
5974 return 0;
5975}
John Criswell47fdd832003-07-14 16:52:07 +00005976_ACEOF
5977rm -f conftest.$ac_objext conftest$ac_exeext
5978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005979 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005980 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005985 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005986 { ac_try='test -z "$ac_c_werror_flag"
5987 || test ! -s conftest.err'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005999 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00006000else
John Criswell47fdd832003-07-14 16:52:07 +00006001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006002sed 's/^/| /' conftest.$ac_ext >&5
6003
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006004llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00006005fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006006rm -f conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006008 CFLAGS="$oldcflags"
6009 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006010ac_cpp='$CPP $CPPFLAGS'
6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006015
John Criswell7a73b802003-06-30 21:59:07 +00006016fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006017echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6018echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6019if test "$llvm_cv_link_use_r" = yes ; then
6020
6021cat >>confdefs.h <<\_ACEOF
6022#define HAVE_LINK_R 1
6023_ACEOF
6024
John Criswell47fdd832003-07-14 16:52:07 +00006025 fi
John Criswell47fdd832003-07-14 16:52:07 +00006026
John Criswell47fdd832003-07-14 16:52:07 +00006027
John Criswell47fdd832003-07-14 16:52:07 +00006028
John Criswell7a73b802003-06-30 21:59:07 +00006029
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006030echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6031echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6032if test "${ac_cv_c_const+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034else
6035 cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h. */
6041
6042int
6043main ()
6044{
6045/* FIXME: Include the comments suggested by Paul. */
6046#ifndef __cplusplus
6047 /* Ultrix mips cc rejects this. */
6048 typedef int charset[2];
6049 const charset x;
6050 /* SunOS 4.1.1 cc rejects this. */
6051 char const *const *ccp;
6052 char **p;
6053 /* NEC SVR4.0.2 mips cc rejects this. */
6054 struct point {int x, y;};
6055 static struct point const zero = {0,0};
6056 /* AIX XL C 1.02.0.0 rejects this.
6057 It does not let you subtract one const X* pointer from another in
6058 an arm of an if-expression whose if-part is not a constant
6059 expression */
6060 const char *g = "string";
6061 ccp = &g + (g ? g-g : 0);
6062 /* HPUX 7.0 cc rejects these. */
6063 ++ccp;
6064 p = (char**) ccp;
6065 ccp = (char const *const *) p;
6066 { /* SCO 3.2v4 cc rejects this. */
6067 char *t;
6068 char const *s = 0 ? (char *) 0 : (char const *) 0;
6069
6070 *t++ = 0;
6071 }
6072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6073 int x[] = {25, 17};
6074 const int *foo = &x[0];
6075 ++foo;
6076 }
6077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6078 typedef const int *iptr;
6079 iptr p = 0;
6080 ++p;
6081 }
6082 { /* AIX XL C 1.02.0.0 rejects this saying
6083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6084 struct s { int j; const int *ap[3]; };
6085 struct s *b; b->j = 5;
6086 }
6087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6088 const int foo = 10;
6089 }
6090#endif
6091
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext
6097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_c_const=yes
6119else
6120 echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
6123ac_cv_c_const=no
6124fi
6125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126fi
6127echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6128echo "${ECHO_T}$ac_cv_c_const" >&6
6129if test $ac_cv_c_const = no; then
6130
6131cat >>confdefs.h <<\_ACEOF
6132#define const
6133_ACEOF
6134
6135fi
6136
6137
6138echo "$as_me:$LINENO: checking for egrep" >&5
6139echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6140if test "${ac_cv_prog_egrep+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6144 then ac_cv_prog_egrep='grep -E'
6145 else ac_cv_prog_egrep='egrep'
6146 fi
6147fi
6148echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6149echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6150 EGREP=$ac_cv_prog_egrep
6151
John Criswell7a73b802003-06-30 21:59:07 +00006152
6153echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6154echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6155if test "${ac_cv_header_stdc+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006164#include <stdlib.h>
6165#include <stdarg.h>
6166#include <string.h>
6167#include <float.h>
6168
John Criswell0c38eaf2003-09-10 15:17:25 +00006169int
6170main ()
6171{
6172
6173 ;
6174 return 0;
6175}
John Criswell7a73b802003-06-30 21:59:07 +00006176_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006177rm -f conftest.$ac_objext
6178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006179 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006180 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006185 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006199 ac_cv_header_stdc=yes
6200else
6201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006205fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006207
6208if test $ac_cv_header_stdc = yes; then
6209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6210 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006211/* confdefs.h. */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006216#include <string.h>
6217
6218_ACEOF
6219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006220 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006221 :
6222else
6223 ac_cv_header_stdc=no
6224fi
6225rm -f conftest*
6226
6227fi
6228
6229if test $ac_cv_header_stdc = yes; then
6230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006237#include <stdlib.h>
6238
6239_ACEOF
6240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006241 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006242 :
6243else
6244 ac_cv_header_stdc=no
6245fi
6246rm -f conftest*
6247
6248fi
6249
6250if test $ac_cv_header_stdc = yes; then
6251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6252 if test "$cross_compiling" = yes; then
6253 :
6254else
6255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006256/* confdefs.h. */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006261#include <ctype.h>
6262#if ((' ' & 0x0FF) == 0x020)
6263# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6264# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6265#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006266# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006267 (('a' <= (c) && (c) <= 'i') \
6268 || ('j' <= (c) && (c) <= 'r') \
6269 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006270# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6271#endif
6272
6273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6274int
6275main ()
6276{
6277 int i;
6278 for (i = 0; i < 256; i++)
6279 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006280 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006281 exit(2);
6282 exit (0);
6283}
6284_ACEOF
6285rm -f conftest$ac_exeext
6286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 :
6297else
6298 echo "$as_me: program exited with status $ac_status" >&5
6299echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006300sed 's/^/| /' conftest.$ac_ext >&5
6301
John Criswell7a73b802003-06-30 21:59:07 +00006302( exit $ac_status )
6303ac_cv_header_stdc=no
6304fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006306fi
6307fi
6308fi
6309echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6310echo "${ECHO_T}$ac_cv_header_stdc" >&6
6311if test $ac_cv_header_stdc = yes; then
6312
6313cat >>confdefs.h <<\_ACEOF
6314#define STDC_HEADERS 1
6315_ACEOF
6316
6317fi
6318
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006319
6320
6321
6322
6323
6324ac_header_dirent=no
6325for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6327echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6328echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6329if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332 cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
6338#include <sys/types.h>
6339#include <$ac_hdr>
6340
6341int
6342main ()
6343{
6344if ((DIR *) 0)
6345return 0;
6346 ;
6347 return 0;
6348}
6349_ACEOF
6350rm -f conftest.$ac_objext
6351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 eval "$as_ac_Header=yes"
6373else
6374 echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377eval "$as_ac_Header=no"
6378fi
6379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380fi
6381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6386_ACEOF
6387
6388ac_header_dirent=$ac_hdr; break
6389fi
6390
6391done
6392# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6393if test $ac_header_dirent = dirent.h; then
6394 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6395echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6396if test "${ac_cv_search_opendir+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 ac_func_search_save_LIBS=$LIBS
6400ac_cv_search_opendir=no
6401cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h. */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h. */
6407
6408/* Override any gcc2 internal prototype to avoid an error. */
6409#ifdef __cplusplus
6410extern "C"
6411#endif
6412/* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6414char opendir ();
6415int
6416main ()
6417{
6418opendir ();
6419 ;
6420 return 0;
6421}
6422_ACEOF
6423rm -f conftest.$ac_objext conftest$ac_exeext
6424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_search_opendir="none required"
6446else
6447 echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450fi
6451rm -f conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453if test "$ac_cv_search_opendir" = no; then
6454 for ac_lib in dir; do
6455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6456 cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h. */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h. */
6462
6463/* Override any gcc2 internal prototype to avoid an error. */
6464#ifdef __cplusplus
6465extern "C"
6466#endif
6467/* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6469char opendir ();
6470int
6471main ()
6472{
6473opendir ();
6474 ;
6475 return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext conftest$ac_exeext
6479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480 (eval $ac_link) 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest$ac_exeext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_cv_search_opendir="-l$ac_lib"
6501break
6502else
6503 echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506fi
6507rm -f conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6509 done
6510fi
6511LIBS=$ac_func_search_save_LIBS
6512fi
6513echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6514echo "${ECHO_T}$ac_cv_search_opendir" >&6
6515if test "$ac_cv_search_opendir" != no; then
6516 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6517
6518fi
6519
6520else
6521 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6522echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6523if test "${ac_cv_search_opendir+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526 ac_func_search_save_LIBS=$LIBS
6527ac_cv_search_opendir=no
6528cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
6534
6535/* Override any gcc2 internal prototype to avoid an error. */
6536#ifdef __cplusplus
6537extern "C"
6538#endif
6539/* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541char opendir ();
6542int
6543main ()
6544{
6545opendir ();
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_c_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_search_opendir="none required"
6573else
6574 echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577fi
6578rm -f conftest.err conftest.$ac_objext \
6579 conftest$ac_exeext conftest.$ac_ext
6580if test "$ac_cv_search_opendir" = no; then
6581 for ac_lib in x; do
6582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6583 cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
6589
6590/* Override any gcc2 internal prototype to avoid an error. */
6591#ifdef __cplusplus
6592extern "C"
6593#endif
6594/* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6596char opendir ();
6597int
6598main ()
6599{
6600opendir ();
6601 ;
6602 return 0;
6603}
6604_ACEOF
6605rm -f conftest.$ac_objext conftest$ac_exeext
6606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_c_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest$ac_exeext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_search_opendir="-l$ac_lib"
6628break
6629else
6630 echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633fi
6634rm -f conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6636 done
6637fi
6638LIBS=$ac_func_search_save_LIBS
6639fi
6640echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6641echo "${ECHO_T}$ac_cv_search_opendir" >&6
6642if test "$ac_cv_search_opendir" != no; then
6643 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6644
6645fi
6646
6647fi
6648
John Criswell7a73b802003-06-30 21:59:07 +00006649# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006660 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006661do
6662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6663echo "$as_me:$LINENO: checking for $ac_header" >&5
6664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6665if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006669/* confdefs.h. */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006674$ac_includes_default
6675
6676#include <$ac_header>
6677_ACEOF
6678rm -f conftest.$ac_objext
6679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006680 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006687 { ac_try='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 eval "$as_ac_Header=yes"
6701else
6702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006703sed 's/^/| /' conftest.$ac_ext >&5
6704
John Criswell7a73b802003-06-30 21:59:07 +00006705eval "$as_ac_Header=no"
6706fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006708fi
6709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6711if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712 cat >>confdefs.h <<_ACEOF
6713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714_ACEOF
6715
6716fi
6717
6718done
6719
6720
6721
6722for ac_header in dlfcn.h
6723do
6724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006725if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6728if eval "test \"\${$as_ac_Header+set}\" = set"; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006730fi
6731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006733else
Brian Gaeke0a621332004-09-08 20:38:05 +00006734 # Is the header compilable?
6735echo "$as_me:$LINENO: checking $ac_header usability" >&5
6736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006743$ac_includes_default
6744#include <$ac_header>
6745_ACEOF
6746rm -f conftest.$ac_objext
6747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006748 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006755 { ac_try='test -z "$ac_c_werror_flag"
6756 || test ! -s conftest.err'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; } &&
6762 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006768 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006769else
6770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006771sed 's/^/| /' conftest.$ac_ext >&5
6772
Brian Gaeke0a621332004-09-08 20:38:05 +00006773ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006774fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6777echo "${ECHO_T}$ac_header_compiler" >&6
6778
6779# Is the header present?
6780echo "$as_me:$LINENO: checking $ac_header presence" >&5
6781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6782cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006783/* confdefs.h. */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h. */
6788#include <$ac_header>
6789_ACEOF
6790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } >/dev/null; then
6798 if test -s conftest.err; then
6799 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006801 else
6802 ac_cpp_err=
6803 fi
6804else
6805 ac_cpp_err=yes
6806fi
6807if test -z "$ac_cpp_err"; then
6808 ac_header_preproc=yes
6809else
6810 echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 ac_header_preproc=no
6814fi
6815rm -f conftest.err conftest.$ac_ext
6816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6817echo "${ECHO_T}$ac_header_preproc" >&6
6818
6819# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6821 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6826 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006827 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006828 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006841 (
6842 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006843## ----------------------------------- ##
6844## Report this to llvmbugs@cs.uiuc.edu ##
6845## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006846_ASBOX
6847 ) |
6848 sed "s/^/$as_me: WARNING: /" >&2
6849 ;;
6850esac
6851echo "$as_me:$LINENO: checking for $ac_header" >&5
6852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6853if eval "test \"\${$as_ac_Header+set}\" = set"; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006856 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006857fi
6858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006860
6861fi
John Criswell7a73b802003-06-30 21:59:07 +00006862if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863 cat >>confdefs.h <<_ACEOF
6864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6865_ACEOF
6866
6867fi
6868
6869done
6870
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006871# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6872if test "${enable_ltdl_install+set}" = set; then
6873 enableval="$enable_ltdl_install"
6874
6875fi;
6876
6877
6878
6879if test x"${enable_ltdl_install-no}" != xno; then
6880 INSTALL_LTDL_TRUE=
6881 INSTALL_LTDL_FALSE='#'
6882else
6883 INSTALL_LTDL_TRUE='#'
6884 INSTALL_LTDL_FALSE=
6885fi
6886
6887
6888
6889if test x"${enable_ltdl_convenience-no}" != xno; then
6890 CONVENIENCE_LTDL_TRUE=
6891 CONVENIENCE_LTDL_FALSE='#'
6892else
6893 CONVENIENCE_LTDL_TRUE='#'
6894 CONVENIENCE_LTDL_FALSE=
6895fi
6896
6897
6898echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6899echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6900library_names_spec=
6901libname_spec='lib$name'
6902soname_spec=
6903shrext_cmds=".so"
6904postinstall_cmds=
6905postuninstall_cmds=
6906finish_cmds=
6907finish_eval=
6908shlibpath_var=
6909shlibpath_overrides_runpath=unknown
6910version_type=none
6911dynamic_linker="$host_os ld.so"
6912sys_lib_dlsearch_path_spec="/lib /usr/lib"
6913if test "$GCC" = yes; then
6914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6916 # if the path contains ";" then we assume it to be the separator
6917 # otherwise default to the standard path separator (i.e. ":") - it is
6918 # assumed that no part of a normal pathname contains ";" but that should
6919 # okay in the real world where ";" in dirpaths is itself problematic.
6920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6921 else
6922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6923 fi
6924else
6925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6926fi
6927need_lib_prefix=unknown
6928hardcode_into_libs=no
6929
6930# when you set need_version to no, make sure it does not cause -set_version
6931# flags to be left without arguments
6932need_version=unknown
6933
6934case $host_os in
6935aix3*)
6936 version_type=linux
6937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6938 shlibpath_var=LIBPATH
6939
6940 # AIX 3 has no versioning support, so we append a major version to the name.
6941 soname_spec='${libname}${release}${shared_ext}$major'
6942 ;;
6943
6944aix4* | aix5*)
6945 version_type=linux
6946 need_lib_prefix=no
6947 need_version=no
6948 hardcode_into_libs=yes
6949 if test "$host_cpu" = ia64; then
6950 # AIX 5 supports IA64
6951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6952 shlibpath_var=LD_LIBRARY_PATH
6953 else
6954 # With GCC up to 2.95.x, collect2 would create an import file
6955 # for dependence libraries. The import file would start with
6956 # the line `#! .'. This would cause the generated library to
6957 # depend on `.', always an invalid library. This was fixed in
6958 # development snapshots of GCC prior to 3.0.
6959 case $host_os in
6960 aix4 | aix4.[01] | aix4.[01].*)
6961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6962 echo ' yes '
6963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6964 :
6965 else
6966 can_build_shared=no
6967 fi
6968 ;;
6969 esac
6970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6971 # soname into executable. Probably we can add versioning support to
6972 # collect2, so additional links can be useful in future.
6973 if test "$aix_use_runtimelinking" = yes; then
6974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6975 # instead of lib<name>.a to let people know that these are not
6976 # typical AIX shared libraries.
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6978 else
6979 # We preserve .a as extension for shared libraries through AIX4.2
6980 # and later when we are not doing run time linking.
6981 library_names_spec='${libname}${release}.a $libname.a'
6982 soname_spec='${libname}${release}${shared_ext}$major'
6983 fi
6984 shlibpath_var=LIBPATH
6985 fi
6986 ;;
6987
6988amigaos*)
6989 library_names_spec='$libname.ixlibrary $libname.a'
6990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6991 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'
6992 ;;
6993
6994beos*)
6995 library_names_spec='${libname}${shared_ext}'
6996 dynamic_linker="$host_os ld.so"
6997 shlibpath_var=LIBRARY_PATH
6998 ;;
6999
7000bsdi[45]*)
7001 version_type=linux
7002 need_version=no
7003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7004 soname_spec='${libname}${release}${shared_ext}$major'
7005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7009 # the default ld.so.conf also contains /usr/contrib/lib and
7010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7011 # libtool to hard-code these into programs
7012 ;;
7013
7014cygwin* | mingw* | pw32*)
7015 version_type=windows
7016 shrext_cmds=".dll"
7017 need_version=no
7018 need_lib_prefix=no
7019
7020 case $GCC,$host_os in
7021 yes,cygwin* | yes,mingw* | yes,pw32*)
7022 library_names_spec='$libname.dll.a'
7023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7024 postinstall_cmds='base_file=`basename \${file}`~
7025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7026 dldir=$destdir/`dirname \$dlpath`~
7027 test -d \$dldir || mkdir -p \$dldir~
7028 $install_prog $dir/$dlname \$dldir/$dlname'
7029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7030 dlpath=$dir/\$dldll~
7031 $rm \$dlpath'
7032 shlibpath_overrides_runpath=yes
7033
7034 case $host_os in
7035 cygwin*)
7036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7039 ;;
7040 mingw*)
7041 # MinGW DLLs use traditional 'lib' prefix
7042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7045 # It is most probably a Windows format PATH printed by
7046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7047 # path with ; separators, and with drive letters. We can handle the
7048 # drive letters (cygwin fileutils understands them), so leave them,
7049 # especially as we might pass files found there to a mingw objdump,
7050 # which wouldn't understand a cygwinified path. Ahh.
7051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7052 else
7053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7054 fi
7055 ;;
7056 pw32*)
7057 # pw32 DLLs use 'pw' prefix rather than 'lib'
7058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7059 ;;
7060 esac
7061 ;;
7062
7063 *)
7064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7065 ;;
7066 esac
7067 dynamic_linker='Win32 ld.exe'
7068 # FIXME: first we should search . and the directory the executable is in
7069 shlibpath_var=PATH
7070 ;;
7071
7072darwin* | rhapsody*)
7073 dynamic_linker="$host_os dyld"
7074 version_type=darwin
7075 need_lib_prefix=no
7076 need_version=no
7077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7078 soname_spec='${libname}${release}${major}$shared_ext'
7079 shlibpath_overrides_runpath=yes
7080 shlibpath_var=DYLD_LIBRARY_PATH
7081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7083 if test "$GCC" = yes; then
7084 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"`
7085 else
7086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7087 fi
7088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7089 ;;
7090
7091dgux*)
7092 version_type=linux
7093 need_lib_prefix=no
7094 need_version=no
7095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7096 soname_spec='${libname}${release}${shared_ext}$major'
7097 shlibpath_var=LD_LIBRARY_PATH
7098 ;;
7099
7100freebsd1*)
7101 dynamic_linker=no
7102 ;;
7103
7104kfreebsd*-gnu)
7105 version_type=linux
7106 need_lib_prefix=no
7107 need_version=no
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7109 soname_spec='${libname}${release}${shared_ext}$major'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 shlibpath_overrides_runpath=no
7112 hardcode_into_libs=yes
7113 dynamic_linker='GNU ld.so'
7114 ;;
7115
7116freebsd*)
7117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7118 version_type=freebsd-$objformat
7119 case $version_type in
7120 freebsd-elf*)
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7122 need_version=no
7123 need_lib_prefix=no
7124 ;;
7125 freebsd-*)
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7127 need_version=yes
7128 ;;
7129 esac
7130 shlibpath_var=LD_LIBRARY_PATH
7131 case $host_os in
7132 freebsd2*)
7133 shlibpath_overrides_runpath=yes
7134 ;;
7135 freebsd3.01* | freebsdelf3.01*)
7136 shlibpath_overrides_runpath=yes
7137 hardcode_into_libs=yes
7138 ;;
7139 *) # from 3.2 on
7140 shlibpath_overrides_runpath=no
7141 hardcode_into_libs=yes
7142 ;;
7143 esac
7144 ;;
7145
7146gnu*)
7147 version_type=linux
7148 need_lib_prefix=no
7149 need_version=no
7150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7151 soname_spec='${libname}${release}${shared_ext}$major'
7152 shlibpath_var=LD_LIBRARY_PATH
7153 hardcode_into_libs=yes
7154 ;;
7155
7156hpux9* | hpux10* | hpux11*)
7157 # Give a soname corresponding to the major version so that dld.sl refuses to
7158 # link against other versions.
7159 version_type=sunos
7160 need_lib_prefix=no
7161 need_version=no
7162 case "$host_cpu" in
7163 ia64*)
7164 shrext_cmds='.so'
7165 hardcode_into_libs=yes
7166 dynamic_linker="$host_os dld.so"
7167 shlibpath_var=LD_LIBRARY_PATH
7168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170 soname_spec='${libname}${release}${shared_ext}$major'
7171 if test "X$HPUX_IA64_MODE" = X32; then
7172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7173 else
7174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7175 fi
7176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7177 ;;
7178 hppa*64*)
7179 shrext_cmds='.sl'
7180 hardcode_into_libs=yes
7181 dynamic_linker="$host_os dld.sl"
7182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7188 ;;
7189 *)
7190 shrext_cmds='.sl'
7191 dynamic_linker="$host_os dld.sl"
7192 shlibpath_var=SHLIB_PATH
7193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195 soname_spec='${libname}${release}${shared_ext}$major'
7196 ;;
7197 esac
7198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7199 postinstall_cmds='chmod 555 $lib'
7200 ;;
7201
7202irix5* | irix6* | nonstopux*)
7203 case $host_os in
7204 nonstopux*) version_type=nonstopux ;;
7205 *)
7206 if test "$lt_cv_prog_gnu_ld" = yes; then
7207 version_type=linux
7208 else
7209 version_type=irix
7210 fi ;;
7211 esac
7212 need_lib_prefix=no
7213 need_version=no
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7216 case $host_os in
7217 irix5* | nonstopux*)
7218 libsuff= shlibsuff=
7219 ;;
7220 *)
7221 case $LD in # libtool.m4 will add one of these switches to LD
7222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7223 libsuff= shlibsuff= libmagic=32-bit;;
7224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7225 libsuff=32 shlibsuff=N32 libmagic=N32;;
7226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7228 *) libsuff= shlibsuff= libmagic=never-match;;
7229 esac
7230 ;;
7231 esac
7232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7233 shlibpath_overrides_runpath=no
7234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7236 hardcode_into_libs=yes
7237 ;;
7238
7239# No shared lib support for Linux oldld, aout, or coff.
7240linux*oldld* | linux*aout* | linux*coff*)
7241 dynamic_linker=no
7242 ;;
7243
7244# This must be Linux ELF.
7245linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7252 shlibpath_var=LD_LIBRARY_PATH
7253 shlibpath_overrides_runpath=no
7254 # This implies no fast_install, which is unacceptable.
7255 # Some rework will be needed to allow for fast_install
7256 # before this can be enabled.
7257 hardcode_into_libs=yes
7258
7259 # Append ld.so.conf contents to the search path
7260 if test -f /etc/ld.so.conf; then
7261 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7263 fi
7264
7265 # We used to test for /lib/ld.so.1 and disable shared libraries on
7266 # powerpc, because MkLinux only supported shared libraries with the
7267 # GNU dynamic linker. Since this was broken with cross compilers,
7268 # most powerpc-linux boxes support dynamic linking these days and
7269 # people can always --disable-shared, the test was removed, and we
7270 # assume the GNU/Linux dynamic linker is in use.
7271 dynamic_linker='GNU/Linux ld.so'
7272 ;;
7273
7274knetbsd*-gnu)
7275 version_type=linux
7276 need_lib_prefix=no
7277 need_version=no
7278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7279 soname_spec='${libname}${release}${shared_ext}$major'
7280 shlibpath_var=LD_LIBRARY_PATH
7281 shlibpath_overrides_runpath=no
7282 hardcode_into_libs=yes
7283 dynamic_linker='GNU ld.so'
7284 ;;
7285
7286netbsd*)
7287 version_type=sunos
7288 need_lib_prefix=no
7289 need_version=no
7290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7293 dynamic_linker='NetBSD (a.out) ld.so'
7294 else
7295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7296 soname_spec='${libname}${release}${shared_ext}$major'
7297 dynamic_linker='NetBSD ld.elf_so'
7298 fi
7299 shlibpath_var=LD_LIBRARY_PATH
7300 shlibpath_overrides_runpath=yes
7301 hardcode_into_libs=yes
7302 ;;
7303
7304newsos6)
7305 version_type=linux
7306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7307 shlibpath_var=LD_LIBRARY_PATH
7308 shlibpath_overrides_runpath=yes
7309 ;;
7310
7311nto-qnx*)
7312 version_type=linux
7313 need_lib_prefix=no
7314 need_version=no
7315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7316 soname_spec='${libname}${release}${shared_ext}$major'
7317 shlibpath_var=LD_LIBRARY_PATH
7318 shlibpath_overrides_runpath=yes
7319 ;;
7320
7321openbsd*)
7322 version_type=sunos
7323 need_lib_prefix=no
7324 need_version=no
7325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7327 shlibpath_var=LD_LIBRARY_PATH
7328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7329 case $host_os in
7330 openbsd2.[89] | openbsd2.[89].*)
7331 shlibpath_overrides_runpath=no
7332 ;;
7333 *)
7334 shlibpath_overrides_runpath=yes
7335 ;;
7336 esac
7337 else
7338 shlibpath_overrides_runpath=yes
7339 fi
7340 ;;
7341
7342os2*)
7343 libname_spec='$name'
7344 shrext_cmds=".dll"
7345 need_lib_prefix=no
7346 library_names_spec='$libname${shared_ext} $libname.a'
7347 dynamic_linker='OS/2 ld.exe'
7348 shlibpath_var=LIBPATH
7349 ;;
7350
7351osf3* | osf4* | osf5*)
7352 version_type=osf
7353 need_lib_prefix=no
7354 need_version=no
7355 soname_spec='${libname}${release}${shared_ext}$major'
7356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7360 ;;
7361
7362sco3.2v5*)
7363 version_type=osf
7364 soname_spec='${libname}${release}${shared_ext}$major'
7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7366 shlibpath_var=LD_LIBRARY_PATH
7367 ;;
7368
7369solaris*)
7370 version_type=linux
7371 need_lib_prefix=no
7372 need_version=no
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7374 soname_spec='${libname}${release}${shared_ext}$major'
7375 shlibpath_var=LD_LIBRARY_PATH
7376 shlibpath_overrides_runpath=yes
7377 hardcode_into_libs=yes
7378 # ldd complains unless libraries are executable
7379 postinstall_cmds='chmod +x $lib'
7380 ;;
7381
7382sunos4*)
7383 version_type=sunos
7384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7386 shlibpath_var=LD_LIBRARY_PATH
7387 shlibpath_overrides_runpath=yes
7388 if test "$with_gnu_ld" = yes; then
7389 need_lib_prefix=no
7390 fi
7391 need_version=yes
7392 ;;
7393
7394sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7395 version_type=linux
7396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7397 soname_spec='${libname}${release}${shared_ext}$major'
7398 shlibpath_var=LD_LIBRARY_PATH
7399 case $host_vendor in
7400 sni)
7401 shlibpath_overrides_runpath=no
7402 need_lib_prefix=no
7403 export_dynamic_flag_spec='${wl}-Blargedynsym'
7404 runpath_var=LD_RUN_PATH
7405 ;;
7406 siemens)
7407 need_lib_prefix=no
7408 ;;
7409 motorola)
7410 need_lib_prefix=no
7411 need_version=no
7412 shlibpath_overrides_runpath=no
7413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7414 ;;
7415 esac
7416 ;;
7417
7418sysv4*MP*)
7419 if test -d /usr/nec ;then
7420 version_type=linux
7421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7422 soname_spec='$libname${shared_ext}.$major'
7423 shlibpath_var=LD_LIBRARY_PATH
7424 fi
7425 ;;
7426
7427uts4*)
7428 version_type=linux
7429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7430 soname_spec='${libname}${release}${shared_ext}$major'
7431 shlibpath_var=LD_LIBRARY_PATH
7432 ;;
7433
7434*)
7435 dynamic_linker=no
7436 ;;
7437esac
7438echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7439echo "${ECHO_T}$dynamic_linker" >&6
7440test "$dynamic_linker" = no && can_build_shared=no
7441
7442
7443echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7444echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7445if test "${libltdl_cv_shlibext+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448
7449module=yes
7450eval libltdl_cv_shlibext=$shrext_cmds
7451
7452fi
7453echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7454echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7455if test -n "$libltdl_cv_shlibext"; then
7456
7457cat >>confdefs.h <<_ACEOF
7458#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7459_ACEOF
7460
7461fi
7462
7463
7464echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7465echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7466if test "${libltdl_cv_shlibpath_var+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469 libltdl_cv_shlibpath_var="$shlibpath_var"
7470fi
7471echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7472echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7473if test -n "$libltdl_cv_shlibpath_var"; then
7474
7475cat >>confdefs.h <<_ACEOF
7476#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7477_ACEOF
7478
7479fi
7480
7481
7482echo "$as_me:$LINENO: checking for the default library search path" >&5
7483echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7484if test "${libltdl_cv_sys_search_path+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7488fi
7489echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7490echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7491if test -n "$libltdl_cv_sys_search_path"; then
7492 sys_search_path=
7493 for dir in $libltdl_cv_sys_search_path; do
7494 if test -z "$sys_search_path"; then
7495 sys_search_path="$dir"
7496 else
7497 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7498 fi
7499 done
7500
7501cat >>confdefs.h <<_ACEOF
7502#define LTDL_SYSSEARCHPATH "$sys_search_path"
7503_ACEOF
7504
7505fi
7506
7507echo "$as_me:$LINENO: checking for objdir" >&5
7508echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7509if test "${libltdl_cv_objdir+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512 libltdl_cv_objdir="$objdir"
7513 if test -n "$objdir"; then
7514 :
7515 else
7516 rm -f .libs 2>/dev/null
7517 mkdir .libs 2>/dev/null
7518 if test -d .libs; then
7519 libltdl_cv_objdir=.libs
7520 else
7521 # MS-DOS does not allow filenames that begin with a dot.
7522 libltdl_cv_objdir=_libs
7523 fi
7524 rmdir .libs 2>/dev/null
7525 fi
7526
7527fi
7528echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7529echo "${ECHO_T}$libltdl_cv_objdir" >&6
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7533_ACEOF
7534
7535
7536echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7537echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7538if test "${lt_cv_path_NM+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541 if test -n "$NM"; then
7542 # Let the user override the test.
7543 lt_cv_path_NM="$NM"
7544else
7545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7546 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7547 IFS="$lt_save_ifs"
7548 test -z "$ac_dir" && ac_dir=.
7549 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7550 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7551 # Check to see if the nm accepts a BSD-compat flag.
7552 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7553 # nm: unknown option "B" ignored
7554 # Tru64's nm complains that /dev/null is an invalid object file
7555 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7556 */dev/null* | *'Invalid file or object type'*)
7557 lt_cv_path_NM="$tmp_nm -B"
7558 break
7559 ;;
7560 *)
7561 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7562 */dev/null*)
7563 lt_cv_path_NM="$tmp_nm -p"
7564 break
7565 ;;
7566 *)
7567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7568 continue # so that we can try to find one that supports BSD flags
7569 ;;
7570 esac
7571 esac
7572 fi
7573 done
7574 IFS="$lt_save_ifs"
7575 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7576fi
7577fi
7578echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7579echo "${ECHO_T}$lt_cv_path_NM" >&6
7580NM="$lt_cv_path_NM"
7581
7582
7583
7584
7585
7586# Check for command to grab the raw symbol name followed by C symbol from nm.
7587echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7588echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7589if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592
7593# These are sane defaults that work on at least a few old systems.
7594# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7595
7596# Character class describing NM global symbol codes.
7597symcode='[BCDEGRST]'
7598
7599# Regexp to match symbols that can be accessed directly from C.
7600sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7601
7602# Transform the above into a raw symbol and a C symbol.
7603symxfrm='\1 \2\3 \3'
7604
7605# Transform an extracted symbol line into a proper C declaration
7606lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7607
7608# Transform an extracted symbol line into symbol name and symbol address
7609lt_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'"
7610
7611# Define system-specific variables.
7612case $host_os in
7613aix*)
7614 symcode='[BCDT]'
7615 ;;
7616cygwin* | mingw* | pw32*)
7617 symcode='[ABCDGISTW]'
7618 ;;
7619hpux*) # Its linker distinguishes data from code symbols
7620 if test "$host_cpu" = ia64; then
7621 symcode='[ABCDEGRST]'
7622 fi
7623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7624 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'"
7625 ;;
7626linux*)
7627 if test "$host_cpu" = ia64; then
7628 symcode='[ABCDGIRSTW]'
7629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7630 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'"
7631 fi
7632 ;;
7633irix* | nonstopux*)
7634 symcode='[BCDEGRST]'
7635 ;;
7636osf*)
7637 symcode='[BCDEGQRST]'
7638 ;;
7639solaris* | sysv5*)
7640 symcode='[BDRT]'
7641 ;;
7642sysv4)
7643 symcode='[DFNSTU]'
7644 ;;
7645esac
7646
7647# Handle CRLF in mingw tool chain
7648opt_cr=
7649case $build_os in
7650mingw*)
7651 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7652 ;;
7653esac
7654
7655# If we're using GNU nm, then use its standard symbol codes.
7656case `$NM -V 2>&1` in
7657*GNU* | *'with BFD'*)
7658 symcode='[ABCDGIRSTW]' ;;
7659esac
7660
7661# Try without a prefix undercore, then with it.
7662for ac_symprfx in "" "_"; do
7663
7664 # Write the raw and C identifiers.
7665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7666
7667 # Check to see that the pipe works correctly.
7668 pipe_works=no
7669
7670 rm -f conftest*
7671 cat > conftest.$ac_ext <<EOF
7672#ifdef __cplusplus
7673extern "C" {
7674#endif
7675char nm_test_var;
7676void nm_test_func(){}
7677#ifdef __cplusplus
7678}
7679#endif
7680int main(){nm_test_var='a';nm_test_func();return(0);}
7681EOF
7682
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; then
7688 # Now try to grab the symbols.
7689 nlist=conftest.nm
7690 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7691 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } && test -s "$nlist"; then
7695 # Try sorting and uniquifying the output.
7696 if sort "$nlist" | uniq > "$nlist"T; then
7697 mv -f "$nlist"T "$nlist"
7698 else
7699 rm -f "$nlist"T
7700 fi
7701
7702 # Make sure that we snagged all the symbols we need.
7703 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7704 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7705 cat <<EOF > conftest.$ac_ext
7706#ifdef __cplusplus
7707extern "C" {
7708#endif
7709
7710EOF
7711 # Now generate the symbol file.
7712 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7713
7714 cat <<EOF >> conftest.$ac_ext
7715#if defined (__STDC__) && __STDC__
7716# define lt_ptr_t void *
7717#else
7718# define lt_ptr_t char *
7719# define const
7720#endif
7721
7722/* The mapping between symbol names and symbols. */
7723const struct {
7724 const char *name;
7725 lt_ptr_t address;
7726}
7727lt_preloaded_symbols[] =
7728{
7729EOF
7730 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7731 cat <<\EOF >> conftest.$ac_ext
7732 {0, (lt_ptr_t) 0}
7733};
7734
7735#ifdef __cplusplus
7736}
7737#endif
7738EOF
7739 # Now try linking the two files.
7740 mv conftest.$ac_objext conftstm.$ac_objext
7741 lt_save_LIBS="$LIBS"
7742 lt_save_CFLAGS="$CFLAGS"
7743 LIBS="conftstm.$ac_objext"
7744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7750 pipe_works=yes
7751 fi
7752 LIBS="$lt_save_LIBS"
7753 CFLAGS="$lt_save_CFLAGS"
7754 else
7755 echo "cannot find nm_test_func in $nlist" >&5
7756 fi
7757 else
7758 echo "cannot find nm_test_var in $nlist" >&5
7759 fi
7760 else
7761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7762 fi
7763 else
7764 echo "$progname: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7766 fi
7767 rm -f conftest* conftst*
7768
7769 # Do not use the global_symbol_pipe unless it works.
7770 if test "$pipe_works" = yes; then
7771 break
7772 else
7773 lt_cv_sys_global_symbol_pipe=
7774 fi
7775done
7776
7777fi
7778
7779if test -z "$lt_cv_sys_global_symbol_pipe"; then
7780 lt_cv_sys_global_symbol_to_cdecl=
7781fi
7782if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7783 echo "$as_me:$LINENO: result: failed" >&5
7784echo "${ECHO_T}failed" >&6
7785else
7786 echo "$as_me:$LINENO: result: ok" >&5
7787echo "${ECHO_T}ok" >&6
7788fi
7789
7790
7791echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7792echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7793if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7797 libltdl_cv_preloaded_symbols=yes
7798 else
7799 libltdl_cv_preloaded_symbols=no
7800 fi
7801
7802fi
7803echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7804echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7805if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7806
7807cat >>confdefs.h <<\_ACEOF
7808#define HAVE_PRELOADED_SYMBOLS 1
7809_ACEOF
7810
7811fi
7812
7813LIBADD_DL=
7814
7815ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822echo "$as_me:$LINENO: checking for shl_load" >&5
7823echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7824if test "${ac_cv_func_shl_load+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 cat >conftest.$ac_ext <<_ACEOF
7828/* confdefs.h. */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h. */
7833/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7835#define shl_load innocuous_shl_load
7836
7837/* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char shl_load (); below.
7839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 <limits.h> exists even on freestanding compilers. */
7841
7842#ifdef __STDC__
7843# include <limits.h>
7844#else
7845# include <assert.h>
7846#endif
7847
7848#undef shl_load
7849
7850/* Override any gcc2 internal prototype to avoid an error. */
7851#ifdef __cplusplus
7852extern "C"
7853{
7854#endif
7855/* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7857char shl_load ();
7858/* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861#if defined (__stub_shl_load) || defined (__stub___shl_load)
7862choke me
7863#else
7864char (*f) () = shl_load;
7865#endif
7866#ifdef __cplusplus
7867}
7868#endif
7869
7870int
7871main ()
7872{
7873return f != shl_load;
7874 ;
7875 return 0;
7876}
7877_ACEOF
7878rm -f conftest.$ac_objext conftest$ac_exeext
7879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -z "$ac_c_werror_flag"
7888 || test ! -s conftest.err'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_func_shl_load=yes
7901else
7902 echo "$as_me: failed program was:" >&5
7903sed 's/^/| /' conftest.$ac_ext >&5
7904
7905ac_cv_func_shl_load=no
7906fi
7907rm -f conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909fi
7910echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7911echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7912if test $ac_cv_func_shl_load = yes; then
7913
7914cat >>confdefs.h <<\_ACEOF
7915#define HAVE_SHL_LOAD 1
7916_ACEOF
7917
7918else
7919 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7920echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7921if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 ac_check_lib_save_LIBS=$LIBS
7925LIBS="-ldld $LIBS"
7926cat >conftest.$ac_ext <<_ACEOF
7927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
7932
7933/* Override any gcc2 internal prototype to avoid an error. */
7934#ifdef __cplusplus
7935extern "C"
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char shl_load ();
7940int
7941main ()
7942{
7943shl_load ();
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_dld_shl_load=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975ac_cv_lib_dld_shl_load=no
7976fi
7977rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979LIBS=$ac_check_lib_save_LIBS
7980fi
7981echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7982echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7983if test $ac_cv_lib_dld_shl_load = yes; then
7984
7985cat >>confdefs.h <<\_ACEOF
7986#define HAVE_SHL_LOAD 1
7987_ACEOF
7988
7989 LIBADD_DL="$LIBADD_DL -ldld"
7990else
7991 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7992echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7993if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995else
7996 ac_check_lib_save_LIBS=$LIBS
7997LIBS="-ldl $LIBS"
7998cat >conftest.$ac_ext <<_ACEOF
7999/* confdefs.h. */
8000_ACEOF
8001cat confdefs.h >>conftest.$ac_ext
8002cat >>conftest.$ac_ext <<_ACEOF
8003/* end confdefs.h. */
8004
8005/* Override any gcc2 internal prototype to avoid an error. */
8006#ifdef __cplusplus
8007extern "C"
8008#endif
8009/* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8011char dlopen ();
8012int
8013main ()
8014{
8015dlopen ();
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 ac_cv_lib_dl_dlopen=yes
8043else
8044 echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047ac_cv_lib_dl_dlopen=no
8048fi
8049rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051LIBS=$ac_check_lib_save_LIBS
8052fi
8053echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8054echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8055if test $ac_cv_lib_dl_dlopen = yes; then
8056
8057cat >>confdefs.h <<\_ACEOF
8058#define HAVE_LIBDL 1
8059_ACEOF
8060
8061 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8062else
8063 cat >conftest.$ac_ext <<_ACEOF
8064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
8069#if HAVE_DLFCN_H
8070# include <dlfcn.h>
8071#endif
8072
8073int
8074main ()
8075{
8076dlopen(0, 0);
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext conftest$ac_exeext
8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -z "$ac_c_werror_flag"
8091 || test ! -s conftest.err'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103
8104cat >>confdefs.h <<\_ACEOF
8105#define HAVE_LIBDL 1
8106_ACEOF
8107 libltdl_cv_func_dlopen="yes"
8108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
8112echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8113echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8114if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117 ac_check_lib_save_LIBS=$LIBS
8118LIBS="-lsvld $LIBS"
8119cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125
8126/* Override any gcc2 internal prototype to avoid an error. */
8127#ifdef __cplusplus
8128extern "C"
8129#endif
8130/* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132char dlopen ();
8133int
8134main ()
8135{
8136dlopen ();
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141rm -f conftest.$ac_objext conftest$ac_exeext
8142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -z "$ac_c_werror_flag"
8151 || test ! -s conftest.err'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 (eval $ac_try) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_cv_lib_svld_dlopen=yes
8164else
8165 echo "$as_me: failed program was:" >&5
8166sed 's/^/| /' conftest.$ac_ext >&5
8167
8168ac_cv_lib_svld_dlopen=no
8169fi
8170rm -f conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172LIBS=$ac_check_lib_save_LIBS
8173fi
8174echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8175echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8176if test $ac_cv_lib_svld_dlopen = yes; then
8177
8178cat >>confdefs.h <<\_ACEOF
8179#define HAVE_LIBDL 1
8180_ACEOF
8181
8182 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8183else
8184 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8185echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8186if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188else
8189 ac_check_lib_save_LIBS=$LIBS
8190LIBS="-ldld $LIBS"
8191cat >conftest.$ac_ext <<_ACEOF
8192/* confdefs.h. */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h. */
8197
8198/* Override any gcc2 internal prototype to avoid an error. */
8199#ifdef __cplusplus
8200extern "C"
8201#endif
8202/* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8204char dld_link ();
8205int
8206main ()
8207{
8208dld_link ();
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext conftest$ac_exeext
8214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest$ac_exeext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_cv_lib_dld_dld_link=yes
8236else
8237 echo "$as_me: failed program was:" >&5
8238sed 's/^/| /' conftest.$ac_ext >&5
8239
8240ac_cv_lib_dld_dld_link=no
8241fi
8242rm -f conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244LIBS=$ac_check_lib_save_LIBS
8245fi
8246echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8247echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8248if test $ac_cv_lib_dld_dld_link = yes; then
8249
8250cat >>confdefs.h <<\_ACEOF
8251#define HAVE_DLD 1
8252_ACEOF
8253
8254 LIBADD_DL="$LIBADD_DL -ldld"
8255else
8256 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8257echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8258if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8269#define _dyld_func_lookup innocuous__dyld_func_lookup
8270
8271/* System header to define __stub macros and hopefully few prototypes,
8272 which can conflict with char _dyld_func_lookup (); below.
8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274 <limits.h> exists even on freestanding compilers. */
8275
8276#ifdef __STDC__
8277# include <limits.h>
8278#else
8279# include <assert.h>
8280#endif
8281
8282#undef _dyld_func_lookup
8283
8284/* Override any gcc2 internal prototype to avoid an error. */
8285#ifdef __cplusplus
8286extern "C"
8287{
8288#endif
8289/* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8291char _dyld_func_lookup ();
8292/* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8296choke me
8297#else
8298char (*f) () = _dyld_func_lookup;
8299#endif
8300#ifdef __cplusplus
8301}
8302#endif
8303
8304int
8305main ()
8306{
8307return f != _dyld_func_lookup;
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func__dyld_func_lookup=yes
8335else
8336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339ac_cv_func__dyld_func_lookup=no
8340fi
8341rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343fi
8344echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8345echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8346if test $ac_cv_func__dyld_func_lookup = yes; then
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_DYLD 1
8350_ACEOF
8351
8352fi
8353
8354
8355fi
8356
8357
8358fi
8359
8360
8361fi
8362rm -f conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364
8365fi
8366
8367
8368fi
8369
8370
8371fi
8372
8373
8374if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8375then
8376 lt_save_LIBS="$LIBS"
8377 LIBS="$LIBS $LIBADD_DL"
8378
8379for ac_func in dlerror
8380do
8381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8382echo "$as_me:$LINENO: checking for $ac_func" >&5
8383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8384if eval "test \"\${$as_ac_var+set}\" = set"; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386else
8387 cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
8393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8395#define $ac_func innocuous_$ac_func
8396
8397/* System header to define __stub macros and hopefully few prototypes,
8398 which can conflict with char $ac_func (); below.
8399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400 <limits.h> exists even on freestanding compilers. */
8401
8402#ifdef __STDC__
8403# include <limits.h>
8404#else
8405# include <assert.h>
8406#endif
8407
8408#undef $ac_func
8409
8410/* Override any gcc2 internal prototype to avoid an error. */
8411#ifdef __cplusplus
8412extern "C"
8413{
8414#endif
8415/* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417char $ac_func ();
8418/* The GNU C library defines this for functions which it implements
8419 to always fail with ENOSYS. Some functions are actually named
8420 something starting with __ and the normal name is an alias. */
8421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8422choke me
8423#else
8424char (*f) () = $ac_func;
8425#endif
8426#ifdef __cplusplus
8427}
8428#endif
8429
8430int
8431main ()
8432{
8433return f != $ac_func;
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 eval "$as_ac_var=yes"
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465eval "$as_ac_var=no"
8466fi
8467rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469fi
8470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8472if test `eval echo '${'$as_ac_var'}'` = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8475_ACEOF
8476
8477fi
8478done
8479
8480 LIBS="$lt_save_LIBS"
8481fi
8482ac_ext=c
8483ac_cpp='$CPP $CPPFLAGS'
8484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488
8489
8490echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8491echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8492if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 ac_cv_sys_symbol_underscore=no
8496 cat > conftest.$ac_ext <<EOF
8497void nm_test_func(){}
8498int main(){nm_test_func;return 0;}
8499EOF
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; then
8505 # Now try to grab the symbols.
8506 ac_nlist=conftest.nm
8507 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8508 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && test -s "$ac_nlist"; then
8512 # See whether the symbols have a leading underscore.
8513 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8514 ac_cv_sys_symbol_underscore=yes
8515 else
8516 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8517 :
8518 else
8519 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8520 fi
8521 fi
8522 else
8523 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8524 fi
8525 else
8526 echo "configure: failed program was:" >&5
8527 cat conftest.c >&5
8528 fi
8529 rm -rf conftest*
8530
8531fi
8532echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8533echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8534
8535
8536if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8537 if test x"$libltdl_cv_func_dlopen" = xyes ||
8538 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8539 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8540echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8541if test "${libltdl_cv_need_uscore+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 libltdl_cv_need_uscore=unknown
8545 save_LIBS="$LIBS"
8546 LIBS="$LIBS $LIBADD_DL"
8547 if test "$cross_compiling" = yes; then :
8548 libltdl_cv_need_uscore=cross
8549else
8550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8551 lt_status=$lt_dlunknown
8552 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00008553#line 8553 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008554#include "confdefs.h"
8555
8556#if HAVE_DLFCN_H
8557#include <dlfcn.h>
8558#endif
8559
8560#include <stdio.h>
8561
8562#ifdef RTLD_GLOBAL
8563# define LT_DLGLOBAL RTLD_GLOBAL
8564#else
8565# ifdef DL_GLOBAL
8566# define LT_DLGLOBAL DL_GLOBAL
8567# else
8568# define LT_DLGLOBAL 0
8569# endif
8570#endif
8571
8572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8573 find out it does not work in some platform. */
8574#ifndef LT_DLLAZY_OR_NOW
8575# ifdef RTLD_LAZY
8576# define LT_DLLAZY_OR_NOW RTLD_LAZY
8577# else
8578# ifdef DL_LAZY
8579# define LT_DLLAZY_OR_NOW DL_LAZY
8580# else
8581# ifdef RTLD_NOW
8582# define LT_DLLAZY_OR_NOW RTLD_NOW
8583# else
8584# ifdef DL_NOW
8585# define LT_DLLAZY_OR_NOW DL_NOW
8586# else
8587# define LT_DLLAZY_OR_NOW 0
8588# endif
8589# endif
8590# endif
8591# endif
8592#endif
8593
8594#ifdef __cplusplus
8595extern "C" void exit (int);
8596#endif
8597
8598void fnord() { int i=42;}
8599int main ()
8600{
8601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8602 int status = $lt_dlunknown;
8603
8604 if (self)
8605 {
8606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8607 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8608 /* dlclose (self); */
8609 }
8610
8611 exit (status);
8612}
8613EOF
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8619 (./conftest; exit; ) 2>/dev/null
8620 lt_status=$?
8621 case x$lt_status in
8622 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8623 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8624 x$lt_unknown|x*) ;;
8625 esac
8626 else :
8627 # compilation failed
8628
8629 fi
8630fi
8631rm -fr conftest*
8632
8633 LIBS="$save_LIBS"
8634
8635fi
8636echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8637echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8638 fi
8639fi
8640
8641if test x"$libltdl_cv_need_uscore" = xyes; then
8642
8643cat >>confdefs.h <<\_ACEOF
8644#define NEED_USCORE 1
8645_ACEOF
8646
8647fi
8648
8649
8650echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8651echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8652if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else
8655 # PORTME does your system automatically load deplibs for dlopen?
8656 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8657 # For now, we just catch OSes we know something about -- in the
8658 # future, we'll try test this programmatically.
8659 libltdl_cv_sys_dlopen_deplibs=unknown
8660 case "$host_os" in
8661 aix3*|aix4.1.*|aix4.2.*)
8662 # Unknown whether this is true for these versions of AIX, but
8663 # we want this `case' here to explicitly catch those versions.
8664 libltdl_cv_sys_dlopen_deplibs=unknown
8665 ;;
8666 aix[45]*)
8667 libltdl_cv_sys_dlopen_deplibs=yes
8668 ;;
8669 darwin*)
8670 # Assuming the user has installed a libdl from somewhere, this is true
8671 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8672 libltdl_cv_sys_dlopen_deplibs=yes
8673 ;;
8674 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8675 # GNU and its variants, using gnu ld.so (Glibc)
8676 libltdl_cv_sys_dlopen_deplibs=yes
8677 ;;
8678 hpux10*|hpux11*)
8679 libltdl_cv_sys_dlopen_deplibs=yes
8680 ;;
8681 irix[12345]*|irix6.[01]*)
8682 # Catch all versions of IRIX before 6.2, and indicate that we don't
8683 # know how it worked for any of those versions.
8684 libltdl_cv_sys_dlopen_deplibs=unknown
8685 ;;
8686 irix*)
8687 # The case above catches anything before 6.2, and it's known that
8688 # at 6.2 and later dlopen does load deplibs.
8689 libltdl_cv_sys_dlopen_deplibs=yes
8690 ;;
8691 netbsd*)
8692 libltdl_cv_sys_dlopen_deplibs=yes
8693 ;;
8694 openbsd*)
8695 libltdl_cv_sys_dlopen_deplibs=yes
8696 ;;
8697 osf[1234]*)
8698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8699 # it did *not* use an RPATH in a shared library to find objects the
8700 # library depends on, so we explictly say `no'.
8701 libltdl_cv_sys_dlopen_deplibs=no
8702 ;;
8703 osf5.0|osf5.0a|osf5.1)
8704 # dlopen *does* load deplibs and with the right loader patch applied
8705 # it even uses RPATH in a shared library to search for shared objects
8706 # that the library depends on, but there's no easy way to know if that
8707 # patch is installed. Since this is the case, all we can really
8708 # say is unknown -- it depends on the patch being installed. If
8709 # it is, this changes to `yes'. Without it, it would be `no'.
8710 libltdl_cv_sys_dlopen_deplibs=unknown
8711 ;;
8712 osf*)
8713 # the two cases above should catch all versions of osf <= 5.1. Read
8714 # the comments above for what we know about them.
8715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8716 # is used to find them so we can finally say `yes'.
8717 libltdl_cv_sys_dlopen_deplibs=yes
8718 ;;
8719 solaris*)
8720 libltdl_cv_sys_dlopen_deplibs=yes
8721 ;;
8722 esac
8723
8724fi
8725echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8726echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8727if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8728
8729cat >>confdefs.h <<\_ACEOF
8730#define LTDL_DLOPEN_DEPLIBS 1
8731_ACEOF
8732
8733fi
8734
8735
8736for ac_header in argz.h
8737do
8738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8739if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo "$as_me:$LINENO: checking for $ac_header" >&5
8741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744fi
8745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747else
8748 # Is the header compilable?
8749echo "$as_me:$LINENO: checking $ac_header usability" >&5
8750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8751cat >conftest.$ac_ext <<_ACEOF
8752/* confdefs.h. */
8753_ACEOF
8754cat confdefs.h >>conftest.$ac_ext
8755cat >>conftest.$ac_ext <<_ACEOF
8756/* end confdefs.h. */
8757$ac_includes_default
8758#include <$ac_header>
8759_ACEOF
8760rm -f conftest.$ac_objext
8761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762 (eval $ac_compile) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest.$ac_objext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_header_compiler=yes
8783else
8784 echo "$as_me: failed program was:" >&5
8785sed 's/^/| /' conftest.$ac_ext >&5
8786
8787ac_header_compiler=no
8788fi
8789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8791echo "${ECHO_T}$ac_header_compiler" >&6
8792
8793# Is the header present?
8794echo "$as_me:$LINENO: checking $ac_header presence" >&5
8795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8796cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802#include <$ac_header>
8803_ACEOF
8804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } >/dev/null; then
8812 if test -s conftest.err; then
8813 ac_cpp_err=$ac_c_preproc_warn_flag
8814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8815 else
8816 ac_cpp_err=
8817 fi
8818else
8819 ac_cpp_err=yes
8820fi
8821if test -z "$ac_cpp_err"; then
8822 ac_header_preproc=yes
8823else
8824 echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ac_header_preproc=no
8828fi
8829rm -f conftest.err conftest.$ac_ext
8830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8831echo "${ECHO_T}$ac_header_preproc" >&6
8832
8833# So? What about this header?
8834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8835 yes:no: )
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8840 ac_header_preproc=yes
8841 ;;
8842 no:yes:* )
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8855 (
8856 cat <<\_ASBOX
8857## ----------------------------------- ##
8858## Report this to llvmbugs@cs.uiuc.edu ##
8859## ----------------------------------- ##
8860_ASBOX
8861 ) |
8862 sed "s/^/$as_me: WARNING: /" >&2
8863 ;;
8864esac
8865echo "$as_me:$LINENO: checking for $ac_header" >&5
8866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8867if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870 eval "$as_ac_Header=\$ac_header_preproc"
8871fi
8872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8874
8875fi
8876if test `eval echo '${'$as_ac_Header'}'` = yes; then
8877 cat >>confdefs.h <<_ACEOF
8878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8879_ACEOF
8880
8881fi
8882
8883done
8884
8885
8886echo "$as_me:$LINENO: checking for error_t" >&5
8887echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8888if test "${ac_cv_type_error_t+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891 cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897#if HAVE_ARGZ_H
8898# include <argz.h>
8899#endif
8900
8901int
8902main ()
8903{
8904if ((error_t *) 0)
8905 return 0;
8906if (sizeof (error_t))
8907 return 0;
8908 ;
8909 return 0;
8910}
8911_ACEOF
8912rm -f conftest.$ac_objext
8913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_type_error_t=yes
8935else
8936 echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939ac_cv_type_error_t=no
8940fi
8941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942fi
8943echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8944echo "${ECHO_T}$ac_cv_type_error_t" >&6
8945if test $ac_cv_type_error_t = yes; then
8946
8947cat >>confdefs.h <<_ACEOF
8948#define HAVE_ERROR_T 1
8949_ACEOF
8950
8951
8952else
8953
8954cat >>confdefs.h <<\_ACEOF
8955#define error_t int
8956_ACEOF
8957
8958fi
8959
8960
8961
8962
8963
8964
8965
8966for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8967do
8968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8969echo "$as_me:$LINENO: checking for $ac_func" >&5
8970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8971if eval "test \"\${$as_ac_var+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973else
8974 cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982#define $ac_func innocuous_$ac_func
8983
8984/* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char $ac_func (); below.
8986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987 <limits.h> exists even on freestanding compilers. */
8988
8989#ifdef __STDC__
8990# include <limits.h>
8991#else
8992# include <assert.h>
8993#endif
8994
8995#undef $ac_func
8996
8997/* Override any gcc2 internal prototype to avoid an error. */
8998#ifdef __cplusplus
8999extern "C"
9000{
9001#endif
9002/* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9004char $ac_func ();
9005/* The GNU C library defines this for functions which it implements
9006 to always fail with ENOSYS. Some functions are actually named
9007 something starting with __ and the normal name is an alias. */
9008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9009choke me
9010#else
9011char (*f) () = $ac_func;
9012#endif
9013#ifdef __cplusplus
9014}
9015#endif
9016
9017int
9018main ()
9019{
9020return f != $ac_func;
9021 ;
9022 return 0;
9023}
9024_ACEOF
9025rm -f conftest.$ac_objext conftest$ac_exeext
9026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -z "$ac_c_werror_flag"
9035 || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 eval "$as_ac_var=yes"
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052eval "$as_ac_var=no"
9053fi
9054rm -f conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056fi
9057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9059if test `eval echo '${'$as_ac_var'}'` = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9062_ACEOF
9063
9064fi
9065done
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9095 stdio.h unistd.h
9096do
9097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099 echo "$as_me:$LINENO: checking for $ac_header" >&5
9100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103fi
9104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106else
9107 # Is the header compilable?
9108echo "$as_me:$LINENO: checking $ac_header usability" >&5
9109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9110cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h. */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h. */
9116$ac_includes_default
9117#include <$ac_header>
9118_ACEOF
9119rm -f conftest.$ac_objext
9120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121 (eval $ac_compile) 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag"
9129 || test ! -s conftest.err'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 (eval $ac_try) 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_header_compiler=yes
9142else
9143 echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
9146ac_header_compiler=no
9147fi
9148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9150echo "${ECHO_T}$ac_header_compiler" >&6
9151
9152# Is the header present?
9153echo "$as_me:$LINENO: checking $ac_header presence" >&5
9154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9155cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161#include <$ac_header>
9162_ACEOF
9163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } >/dev/null; then
9171 if test -s conftest.err; then
9172 ac_cpp_err=$ac_c_preproc_warn_flag
9173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9174 else
9175 ac_cpp_err=
9176 fi
9177else
9178 ac_cpp_err=yes
9179fi
9180if test -z "$ac_cpp_err"; then
9181 ac_header_preproc=yes
9182else
9183 echo "$as_me: failed program was:" >&5
9184sed 's/^/| /' conftest.$ac_ext >&5
9185
9186 ac_header_preproc=no
9187fi
9188rm -f conftest.err conftest.$ac_ext
9189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9190echo "${ECHO_T}$ac_header_preproc" >&6
9191
9192# So? What about this header?
9193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9194 yes:no: )
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9199 ac_header_preproc=yes
9200 ;;
9201 no:yes:* )
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9214 (
9215 cat <<\_ASBOX
9216## ----------------------------------- ##
9217## Report this to llvmbugs@cs.uiuc.edu ##
9218## ----------------------------------- ##
9219_ASBOX
9220 ) |
9221 sed "s/^/$as_me: WARNING: /" >&2
9222 ;;
9223esac
9224echo "$as_me:$LINENO: checking for $ac_header" >&5
9225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9226if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228else
9229 eval "$as_ac_Header=\$ac_header_preproc"
9230fi
9231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9233
9234fi
9235if test `eval echo '${'$as_ac_Header'}'` = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9238_ACEOF
9239
9240fi
9241
9242done
9243
9244
9245
9246
9247
9248for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9249do
9250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251if eval "test \"\${$as_ac_Header+set}\" = set"; then
9252 echo "$as_me:$LINENO: checking for $ac_header" >&5
9253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9254if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256fi
9257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9259else
9260 # Is the header compilable?
9261echo "$as_me:$LINENO: checking $ac_header usability" >&5
9262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9263cat >conftest.$ac_ext <<_ACEOF
9264/* confdefs.h. */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h. */
9269$ac_includes_default
9270#include <$ac_header>
9271_ACEOF
9272rm -f conftest.$ac_objext
9273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_header_compiler=yes
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
9299ac_header_compiler=no
9300fi
9301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9303echo "${ECHO_T}$ac_header_compiler" >&6
9304
9305# Is the header present?
9306echo "$as_me:$LINENO: checking $ac_header presence" >&5
9307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9308cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h. */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
9313/* end confdefs.h. */
9314#include <$ac_header>
9315_ACEOF
9316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } >/dev/null; then
9324 if test -s conftest.err; then
9325 ac_cpp_err=$ac_c_preproc_warn_flag
9326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9327 else
9328 ac_cpp_err=
9329 fi
9330else
9331 ac_cpp_err=yes
9332fi
9333if test -z "$ac_cpp_err"; then
9334 ac_header_preproc=yes
9335else
9336 echo "$as_me: failed program was:" >&5
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
9339 ac_header_preproc=no
9340fi
9341rm -f conftest.err conftest.$ac_ext
9342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9343echo "${ECHO_T}$ac_header_preproc" >&6
9344
9345# So? What about this header?
9346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9347 yes:no: )
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9352 ac_header_preproc=yes
9353 ;;
9354 no:yes:* )
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9367 (
9368 cat <<\_ASBOX
9369## ----------------------------------- ##
9370## Report this to llvmbugs@cs.uiuc.edu ##
9371## ----------------------------------- ##
9372_ASBOX
9373 ) |
9374 sed "s/^/$as_me: WARNING: /" >&2
9375 ;;
9376esac
9377echo "$as_me:$LINENO: checking for $ac_header" >&5
9378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9379if eval "test \"\${$as_ac_Header+set}\" = set"; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381else
9382 eval "$as_ac_Header=\$ac_header_preproc"
9383fi
9384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9386
9387fi
9388if test `eval echo '${'$as_ac_Header'}'` = yes; then
9389 cat >>confdefs.h <<_ACEOF
9390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9391_ACEOF
9392
9393fi
9394
9395done
9396
9397
9398
9399for ac_header in string.h strings.h
9400do
9401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9402if eval "test \"\${$as_ac_Header+set}\" = set"; then
9403 echo "$as_me:$LINENO: checking for $ac_header" >&5
9404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9405if eval "test \"\${$as_ac_Header+set}\" = set"; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9407fi
9408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9410else
9411 # Is the header compilable?
9412echo "$as_me:$LINENO: checking $ac_header usability" >&5
9413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9414cat >conftest.$ac_ext <<_ACEOF
9415/* confdefs.h. */
9416_ACEOF
9417cat confdefs.h >>conftest.$ac_ext
9418cat >>conftest.$ac_ext <<_ACEOF
9419/* end confdefs.h. */
9420$ac_includes_default
9421#include <$ac_header>
9422_ACEOF
9423rm -f conftest.$ac_objext
9424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425 (eval $ac_compile) 2>conftest.er1
9426 ac_status=$?
9427 grep -v '^ *+' conftest.er1 >conftest.err
9428 rm -f conftest.er1
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -z "$ac_c_werror_flag"
9433 || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest.$ac_objext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_header_compiler=yes
9446else
9447 echo "$as_me: failed program was:" >&5
9448sed 's/^/| /' conftest.$ac_ext >&5
9449
9450ac_header_compiler=no
9451fi
9452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9454echo "${ECHO_T}$ac_header_compiler" >&6
9455
9456# Is the header present?
9457echo "$as_me:$LINENO: checking $ac_header presence" >&5
9458echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9459cat >conftest.$ac_ext <<_ACEOF
9460/* confdefs.h. */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h. */
9465#include <$ac_header>
9466_ACEOF
9467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } >/dev/null; then
9475 if test -s conftest.err; then
9476 ac_cpp_err=$ac_c_preproc_warn_flag
9477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9478 else
9479 ac_cpp_err=
9480 fi
9481else
9482 ac_cpp_err=yes
9483fi
9484if test -z "$ac_cpp_err"; then
9485 ac_header_preproc=yes
9486else
9487 echo "$as_me: failed program was:" >&5
9488sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 ac_header_preproc=no
9491fi
9492rm -f conftest.err conftest.$ac_ext
9493echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9494echo "${ECHO_T}$ac_header_preproc" >&6
9495
9496# So? What about this header?
9497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9498 yes:no: )
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9502echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9503 ac_header_preproc=yes
9504 ;;
9505 no:yes:* )
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9509echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9511echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9513echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9517echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9518 (
9519 cat <<\_ASBOX
9520## ----------------------------------- ##
9521## Report this to llvmbugs@cs.uiuc.edu ##
9522## ----------------------------------- ##
9523_ASBOX
9524 ) |
9525 sed "s/^/$as_me: WARNING: /" >&2
9526 ;;
9527esac
9528echo "$as_me:$LINENO: checking for $ac_header" >&5
9529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9530if eval "test \"\${$as_ac_Header+set}\" = set"; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 eval "$as_ac_Header=\$ac_header_preproc"
9534fi
9535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9537
9538fi
9539if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540 cat >>confdefs.h <<_ACEOF
9541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9542_ACEOF
9543 break
9544fi
9545
9546done
9547
9548
9549
9550
9551for ac_func in strchr index
9552do
9553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9554echo "$as_me:$LINENO: checking for $ac_func" >&5
9555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9556if eval "test \"\${$as_ac_var+set}\" = set"; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558else
9559 cat >conftest.$ac_ext <<_ACEOF
9560/* confdefs.h. */
9561_ACEOF
9562cat confdefs.h >>conftest.$ac_ext
9563cat >>conftest.$ac_ext <<_ACEOF
9564/* end confdefs.h. */
9565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9567#define $ac_func innocuous_$ac_func
9568
9569/* System header to define __stub macros and hopefully few prototypes,
9570 which can conflict with char $ac_func (); below.
9571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9572 <limits.h> exists even on freestanding compilers. */
9573
9574#ifdef __STDC__
9575# include <limits.h>
9576#else
9577# include <assert.h>
9578#endif
9579
9580#undef $ac_func
9581
9582/* Override any gcc2 internal prototype to avoid an error. */
9583#ifdef __cplusplus
9584extern "C"
9585{
9586#endif
9587/* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9589char $ac_func ();
9590/* The GNU C library defines this for functions which it implements
9591 to always fail with ENOSYS. Some functions are actually named
9592 something starting with __ and the normal name is an alias. */
9593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9594choke me
9595#else
9596char (*f) () = $ac_func;
9597#endif
9598#ifdef __cplusplus
9599}
9600#endif
9601
9602int
9603main ()
9604{
9605return f != $ac_func;
9606 ;
9607 return 0;
9608}
9609_ACEOF
9610rm -f conftest.$ac_objext conftest$ac_exeext
9611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 eval "$as_ac_var=yes"
9633else
9634 echo "$as_me: failed program was:" >&5
9635sed 's/^/| /' conftest.$ac_ext >&5
9636
9637eval "$as_ac_var=no"
9638fi
9639rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641fi
9642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9644if test `eval echo '${'$as_ac_var'}'` = yes; then
9645 cat >>confdefs.h <<_ACEOF
9646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9647_ACEOF
9648 break
9649fi
9650done
9651
9652
9653
9654for ac_func in strrchr rindex
9655do
9656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657echo "$as_me:$LINENO: checking for $ac_func" >&5
9658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9659if eval "test \"\${$as_ac_var+set}\" = set"; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661else
9662 cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h. */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h. */
9668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9670#define $ac_func innocuous_$ac_func
9671
9672/* System header to define __stub macros and hopefully few prototypes,
9673 which can conflict with char $ac_func (); below.
9674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9675 <limits.h> exists even on freestanding compilers. */
9676
9677#ifdef __STDC__
9678# include <limits.h>
9679#else
9680# include <assert.h>
9681#endif
9682
9683#undef $ac_func
9684
9685/* Override any gcc2 internal prototype to avoid an error. */
9686#ifdef __cplusplus
9687extern "C"
9688{
9689#endif
9690/* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9692char $ac_func ();
9693/* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
9696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9697choke me
9698#else
9699char (*f) () = $ac_func;
9700#endif
9701#ifdef __cplusplus
9702}
9703#endif
9704
9705int
9706main ()
9707{
9708return f != $ac_func;
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext conftest$ac_exeext
9714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 eval "$as_ac_var=yes"
9736else
9737 echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
9740eval "$as_ac_var=no"
9741fi
9742rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744fi
9745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h <<_ACEOF
9749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9750_ACEOF
9751 break
9752fi
9753done
9754
9755
9756
9757for ac_func in memcpy bcopy
9758do
9759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9760echo "$as_me:$LINENO: checking for $ac_func" >&5
9761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9762if eval "test \"\${$as_ac_var+set}\" = set"; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764else
9765 cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
9771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773#define $ac_func innocuous_$ac_func
9774
9775/* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char $ac_func (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9779
9780#ifdef __STDC__
9781# include <limits.h>
9782#else
9783# include <assert.h>
9784#endif
9785
9786#undef $ac_func
9787
9788/* Override any gcc2 internal prototype to avoid an error. */
9789#ifdef __cplusplus
9790extern "C"
9791{
9792#endif
9793/* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9795char $ac_func ();
9796/* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9800choke me
9801#else
9802char (*f) () = $ac_func;
9803#endif
9804#ifdef __cplusplus
9805}
9806#endif
9807
9808int
9809main ()
9810{
9811return f != $ac_func;
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 eval "$as_ac_var=yes"
9839else
9840 echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843eval "$as_ac_var=no"
9844fi
9845rm -f conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847fi
9848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9849echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9850if test `eval echo '${'$as_ac_var'}'` = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853_ACEOF
9854 break
9855fi
9856done
9857
9858
9859
9860for ac_func in memmove strcmp
9861do
9862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863echo "$as_me:$LINENO: checking for $ac_func" >&5
9864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9865if eval "test \"\${$as_ac_var+set}\" = set"; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868 cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876#define $ac_func innocuous_$ac_func
9877
9878/* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char $ac_func (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9882
9883#ifdef __STDC__
9884# include <limits.h>
9885#else
9886# include <assert.h>
9887#endif
9888
9889#undef $ac_func
9890
9891/* Override any gcc2 internal prototype to avoid an error. */
9892#ifdef __cplusplus
9893extern "C"
9894{
9895#endif
9896/* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898char $ac_func ();
9899/* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9903choke me
9904#else
9905char (*f) () = $ac_func;
9906#endif
9907#ifdef __cplusplus
9908}
9909#endif
9910
9911int
9912main ()
9913{
9914return f != $ac_func;
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext conftest$ac_exeext
9920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 eval "$as_ac_var=yes"
9942else
9943 echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
9946eval "$as_ac_var=no"
9947fi
9948rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950fi
9951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9953if test `eval echo '${'$as_ac_var'}'` = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9956_ACEOF
9957
9958fi
9959done
9960
9961
9962
9963
9964for ac_func in closedir opendir readdir
9965do
9966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967echo "$as_me:$LINENO: checking for $ac_func" >&5
9968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969if eval "test \"\${$as_ac_var+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971else
9972 cat >conftest.$ac_ext <<_ACEOF
9973/* confdefs.h. */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h. */
9978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9980#define $ac_func innocuous_$ac_func
9981
9982/* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char $ac_func (); below.
9984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985 <limits.h> exists even on freestanding compilers. */
9986
9987#ifdef __STDC__
9988# include <limits.h>
9989#else
9990# include <assert.h>
9991#endif
9992
9993#undef $ac_func
9994
9995/* Override any gcc2 internal prototype to avoid an error. */
9996#ifdef __cplusplus
9997extern "C"
9998{
9999#endif
10000/* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10002char $ac_func ();
10003/* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10007choke me
10008#else
10009char (*f) () = $ac_func;
10010#endif
10011#ifdef __cplusplus
10012}
10013#endif
10014
10015int
10016main ()
10017{
10018return f != $ac_func;
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext conftest$ac_exeext
10024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 eval "$as_ac_var=yes"
10046else
10047 echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050eval "$as_ac_var=no"
10051fi
10052rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054fi
10055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10057if test `eval echo '${'$as_ac_var'}'` = yes; then
10058 cat >>confdefs.h <<_ACEOF
10059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10060_ACEOF
10061
10062fi
10063done
10064
10065
10066# Check whether --enable-shared or --disable-shared was given.
10067if test "${enable_shared+set}" = set; then
10068 enableval="$enable_shared"
10069 p=${PACKAGE-default}
10070 case $enableval in
10071 yes) enable_shared=yes ;;
10072 no) enable_shared=no ;;
10073 *)
10074 enable_shared=no
10075 # Look at the argument we got. We use all the common list separators.
10076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10077 for pkg in $enableval; do
10078 IFS="$lt_save_ifs"
10079 if test "X$pkg" = "X$p"; then
10080 enable_shared=yes
10081 fi
10082 done
10083 IFS="$lt_save_ifs"
10084 ;;
10085 esac
10086else
10087 enable_shared=yes
10088fi;
10089
10090# Check whether --enable-static or --disable-static was given.
10091if test "${enable_static+set}" = set; then
10092 enableval="$enable_static"
10093 p=${PACKAGE-default}
10094 case $enableval in
10095 yes) enable_static=yes ;;
10096 no) enable_static=no ;;
10097 *)
10098 enable_static=no
10099 # Look at the argument we got. We use all the common list separators.
10100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10101 for pkg in $enableval; do
10102 IFS="$lt_save_ifs"
10103 if test "X$pkg" = "X$p"; then
10104 enable_static=yes
10105 fi
10106 done
10107 IFS="$lt_save_ifs"
10108 ;;
10109 esac
10110else
10111 enable_static=yes
10112fi;
10113
10114# Check whether --enable-fast-install or --disable-fast-install was given.
10115if test "${enable_fast_install+set}" = set; then
10116 enableval="$enable_fast_install"
10117 p=${PACKAGE-default}
10118 case $enableval in
10119 yes) enable_fast_install=yes ;;
10120 no) enable_fast_install=no ;;
10121 *)
10122 enable_fast_install=no
10123 # Look at the argument we got. We use all the common list separators.
10124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10125 for pkg in $enableval; do
10126 IFS="$lt_save_ifs"
10127 if test "X$pkg" = "X$p"; then
10128 enable_fast_install=yes
10129 fi
10130 done
10131 IFS="$lt_save_ifs"
10132 ;;
10133 esac
10134else
10135 enable_fast_install=yes
10136fi;
10137
10138echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10139echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10140if test "${lt_cv_path_SED+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143 # Loop through the user's path and test for sed and gsed.
10144# Then use that list of sed's as ones to test for truncation.
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for lt_ac_prog in sed gsed; do
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10153 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10154 fi
10155 done
10156 done
10157done
10158lt_ac_max=0
10159lt_ac_count=0
10160# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10161# along with /bin/sed that truncates output.
10162for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10163 test ! -f $lt_ac_sed && break
10164 cat /dev/null > conftest.in
10165 lt_ac_count=0
10166 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10167 # Check for GNU sed and select it if it is found.
10168 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10169 lt_cv_path_SED=$lt_ac_sed
10170 break
10171 fi
10172 while true; do
10173 cat conftest.in conftest.in >conftest.tmp
10174 mv conftest.tmp conftest.in
10175 cp conftest.in conftest.nl
10176 echo >>conftest.nl
10177 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10178 cmp -s conftest.out conftest.nl || break
10179 # 10000 chars as input seems more than enough
10180 test $lt_ac_count -gt 10 && break
10181 lt_ac_count=`expr $lt_ac_count + 1`
10182 if test $lt_ac_count -gt $lt_ac_max; then
10183 lt_ac_max=$lt_ac_count
10184 lt_cv_path_SED=$lt_ac_sed
10185 fi
10186 done
10187done
10188
10189fi
10190
10191SED=$lt_cv_path_SED
10192echo "$as_me:$LINENO: result: $SED" >&5
10193echo "${ECHO_T}$SED" >&6
10194
10195
10196# Check whether --with-gnu-ld or --without-gnu-ld was given.
10197if test "${with_gnu_ld+set}" = set; then
10198 withval="$with_gnu_ld"
10199 test "$withval" = no || with_gnu_ld=yes
10200else
10201 with_gnu_ld=no
10202fi;
10203ac_prog=ld
10204if test "$GCC" = yes; then
10205 # Check if gcc -print-prog-name=ld gives a path.
10206 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10207echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10208 case $host in
10209 *-*-mingw*)
10210 # gcc leaves a trailing carriage return which upsets mingw
10211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10212 *)
10213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10214 esac
10215 case $ac_prog in
10216 # Accept absolute paths.
10217 [\\/]* | ?:[\\/]*)
10218 re_direlt='/[^/][^/]*/\.\./'
10219 # Canonicalize the pathname of ld
10220 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10221 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10222 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10223 done
10224 test -z "$LD" && LD="$ac_prog"
10225 ;;
10226 "")
10227 # If it fails, then pretend we aren't using GCC.
10228 ac_prog=ld
10229 ;;
10230 *)
10231 # If it is relative, then search for the first ld in PATH.
10232 with_gnu_ld=unknown
10233 ;;
10234 esac
10235elif test "$with_gnu_ld" = yes; then
10236 echo "$as_me:$LINENO: checking for GNU ld" >&5
10237echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10238else
10239 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10240echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10241fi
10242if test "${lt_cv_path_LD+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244else
10245 if test -z "$LD"; then
10246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10247 for ac_dir in $PATH; do
10248 IFS="$lt_save_ifs"
10249 test -z "$ac_dir" && ac_dir=.
10250 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10251 lt_cv_path_LD="$ac_dir/$ac_prog"
10252 # Check to see if the program is GNU ld. I'd rather use --version,
10253 # but apparently some GNU ld's only accept -v.
10254 # Break only if it was the GNU/non-GNU ld that we prefer.
10255 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10256 *GNU* | *'with BFD'*)
10257 test "$with_gnu_ld" != no && break
10258 ;;
10259 *)
10260 test "$with_gnu_ld" != yes && break
10261 ;;
10262 esac
10263 fi
10264 done
10265 IFS="$lt_save_ifs"
10266else
10267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10268fi
10269fi
10270
10271LD="$lt_cv_path_LD"
10272if test -n "$LD"; then
10273 echo "$as_me:$LINENO: result: $LD" >&5
10274echo "${ECHO_T}$LD" >&6
10275else
10276 echo "$as_me:$LINENO: result: no" >&5
10277echo "${ECHO_T}no" >&6
10278fi
10279test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10280echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10281 { (exit 1); exit 1; }; }
10282echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10283echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10284if test "${lt_cv_prog_gnu_ld+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286else
10287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10288case `$LD -v 2>&1 </dev/null` in
10289*GNU* | *'with BFD'*)
10290 lt_cv_prog_gnu_ld=yes
10291 ;;
10292*)
10293 lt_cv_prog_gnu_ld=no
10294 ;;
10295esac
10296fi
10297echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10298echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10299with_gnu_ld=$lt_cv_prog_gnu_ld
10300
10301
10302echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10303echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10304if test "${lt_cv_ld_reload_flag+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 lt_cv_ld_reload_flag='-r'
10308fi
10309echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10310echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10311reload_flag=$lt_cv_ld_reload_flag
10312case $reload_flag in
10313"" | " "*) ;;
10314*) reload_flag=" $reload_flag" ;;
10315esac
10316reload_cmds='$LD$reload_flag -o $output$reload_objs'
10317case $host_os in
10318 darwin*)
10319 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010320 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321 else
10322 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10323 fi
10324 ;;
10325esac
10326
10327echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10328echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10329if test "${lt_cv_deplibs_check_method+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331else
10332 lt_cv_file_magic_cmd='$MAGIC_CMD'
10333lt_cv_file_magic_test_file=
10334lt_cv_deplibs_check_method='unknown'
10335# Need to set the preceding variable on all platforms that support
10336# interlibrary dependencies.
10337# 'none' -- dependencies not supported.
10338# `unknown' -- same as none, but documents that we really don't know.
10339# 'pass_all' -- all dependencies passed with no checks.
10340# 'test_compile' -- check by making test program.
10341# 'file_magic [[regex]]' -- check by looking for files in library path
10342# which responds to the $file_magic_cmd with a given extended regex.
10343# If you have `file' or equivalent on your system and you're not sure
10344# whether `pass_all' will *always* work, you probably want this one.
10345
10346case $host_os in
10347aix4* | aix5*)
10348 lt_cv_deplibs_check_method=pass_all
10349 ;;
10350
10351beos*)
10352 lt_cv_deplibs_check_method=pass_all
10353 ;;
10354
10355bsdi[45]*)
10356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10357 lt_cv_file_magic_cmd='/usr/bin/file -L'
10358 lt_cv_file_magic_test_file=/shlib/libc.so
10359 ;;
10360
10361cygwin*)
10362 # func_win32_libid is a shell function defined in ltmain.sh
10363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10364 lt_cv_file_magic_cmd='func_win32_libid'
10365 ;;
10366
10367mingw* | pw32*)
10368 # Base MSYS/MinGW do not provide the 'file' command needed by
10369 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10370 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10371 lt_cv_file_magic_cmd='$OBJDUMP -f'
10372 ;;
10373
10374darwin* | rhapsody*)
10375 lt_cv_deplibs_check_method=pass_all
10376 ;;
10377
10378freebsd* | kfreebsd*-gnu)
10379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10380 case $host_cpu in
10381 i*86 )
10382 # Not sure whether the presence of OpenBSD here was a mistake.
10383 # Let's accept both of them until this is cleared up.
10384 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10385 lt_cv_file_magic_cmd=/usr/bin/file
10386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10387 ;;
10388 esac
10389 else
10390 lt_cv_deplibs_check_method=pass_all
10391 fi
10392 ;;
10393
10394gnu*)
10395 lt_cv_deplibs_check_method=pass_all
10396 ;;
10397
10398hpux10.20* | hpux11*)
10399 lt_cv_file_magic_cmd=/usr/bin/file
10400 case "$host_cpu" in
10401 ia64*)
10402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10404 ;;
10405 hppa*64*)
10406 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]'
10407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10408 ;;
10409 *)
10410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10412 ;;
10413 esac
10414 ;;
10415
10416irix5* | irix6* | nonstopux*)
10417 case $LD in
10418 *-32|*"-32 ") libmagic=32-bit;;
10419 *-n32|*"-n32 ") libmagic=N32;;
10420 *-64|*"-64 ") libmagic=64-bit;;
10421 *) libmagic=never-match;;
10422 esac
10423 lt_cv_deplibs_check_method=pass_all
10424 ;;
10425
10426# This must be Linux ELF.
10427linux*)
10428 lt_cv_deplibs_check_method=pass_all
10429 ;;
10430
10431netbsd*)
10432 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10434 else
10435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10436 fi
10437 ;;
10438
10439newos6*)
10440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10441 lt_cv_file_magic_cmd=/usr/bin/file
10442 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10443 ;;
10444
10445nto-qnx*)
10446 lt_cv_deplibs_check_method=unknown
10447 ;;
10448
10449openbsd*)
10450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10452 else
10453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10454 fi
10455 ;;
10456
10457osf3* | osf4* | osf5*)
10458 lt_cv_deplibs_check_method=pass_all
10459 ;;
10460
10461sco3.2v5*)
10462 lt_cv_deplibs_check_method=pass_all
10463 ;;
10464
10465solaris*)
10466 lt_cv_deplibs_check_method=pass_all
10467 ;;
10468
10469sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10470 case $host_vendor in
10471 motorola)
10472 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]'
10473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10474 ;;
10475 ncr)
10476 lt_cv_deplibs_check_method=pass_all
10477 ;;
10478 sequent)
10479 lt_cv_file_magic_cmd='/bin/file'
10480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10481 ;;
10482 sni)
10483 lt_cv_file_magic_cmd='/bin/file'
10484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10485 lt_cv_file_magic_test_file=/lib/libc.so
10486 ;;
10487 siemens)
10488 lt_cv_deplibs_check_method=pass_all
10489 ;;
10490 esac
10491 ;;
10492
10493sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10494 lt_cv_deplibs_check_method=pass_all
10495 ;;
10496esac
10497
10498fi
10499echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10500echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10501file_magic_cmd=$lt_cv_file_magic_cmd
10502deplibs_check_method=$lt_cv_deplibs_check_method
10503test -z "$deplibs_check_method" && deplibs_check_method=unknown
10504
10505
10506
10507# If no C compiler was specified, use CC.
10508LTCC=${LTCC-"$CC"}
10509
10510# Allow CC to be a program name with arguments.
10511compiler=$CC
10512
10513# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10514if test "${enable_libtool_lock+set}" = set; then
10515 enableval="$enable_libtool_lock"
10516
10517fi;
10518test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10519
10520# Some flags need to be propagated to the compiler or linker for good
10521# libtool support.
10522case $host in
10523ia64-*-hpux*)
10524 # Find out which ABI we are using.
10525 echo 'int i;' > conftest.$ac_ext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; then
10531 case `/usr/bin/file conftest.$ac_objext` in
10532 *ELF-32*)
10533 HPUX_IA64_MODE="32"
10534 ;;
10535 *ELF-64*)
10536 HPUX_IA64_MODE="64"
10537 ;;
10538 esac
10539 fi
10540 rm -rf conftest*
10541 ;;
10542*-*-irix6*)
10543 # Find out which ABI we are using.
Reid Spencercaf0ece2006-06-05 15:54:38 +000010544 echo '#line 10544 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; then
10550 if test "$lt_cv_prog_gnu_ld" = yes; then
10551 case `/usr/bin/file conftest.$ac_objext` in
10552 *32-bit*)
10553 LD="${LD-ld} -melf32bsmip"
10554 ;;
10555 *N32*)
10556 LD="${LD-ld} -melf32bmipn32"
10557 ;;
10558 *64-bit*)
10559 LD="${LD-ld} -melf64bmip"
10560 ;;
10561 esac
10562 else
10563 case `/usr/bin/file conftest.$ac_objext` in
10564 *32-bit*)
10565 LD="${LD-ld} -32"
10566 ;;
10567 *N32*)
10568 LD="${LD-ld} -n32"
10569 ;;
10570 *64-bit*)
10571 LD="${LD-ld} -64"
10572 ;;
10573 esac
10574 fi
10575 fi
10576 rm -rf conftest*
10577 ;;
10578
10579x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10580 # Find out which ABI we are using.
10581 echo 'int i;' > conftest.$ac_ext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10583 (eval $ac_compile) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; then
10587 case "`/usr/bin/file conftest.o`" in
10588 *32-bit*)
10589 case $host in
10590 x86_64-*linux*)
10591 LD="${LD-ld} -m elf_i386"
10592 ;;
10593 ppc64-*linux*|powerpc64-*linux*)
10594 LD="${LD-ld} -m elf32ppclinux"
10595 ;;
10596 s390x-*linux*)
10597 LD="${LD-ld} -m elf_s390"
10598 ;;
10599 sparc64-*linux*)
10600 LD="${LD-ld} -m elf32_sparc"
10601 ;;
10602 esac
10603 ;;
10604 *64-bit*)
10605 case $host in
10606 x86_64-*linux*)
10607 LD="${LD-ld} -m elf_x86_64"
10608 ;;
10609 ppc*-*linux*|powerpc*-*linux*)
10610 LD="${LD-ld} -m elf64ppc"
10611 ;;
10612 s390*-*linux*)
10613 LD="${LD-ld} -m elf64_s390"
10614 ;;
10615 sparc*-*linux*)
10616 LD="${LD-ld} -m elf64_sparc"
10617 ;;
10618 esac
10619 ;;
10620 esac
10621 fi
10622 rm -rf conftest*
10623 ;;
10624
10625*-*-sco3.2v5*)
10626 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10627 SAVE_CFLAGS="$CFLAGS"
10628 CFLAGS="$CFLAGS -belf"
10629 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10630echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10631if test "${lt_cv_cc_needs_belf+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633else
10634 ac_ext=c
10635ac_cpp='$CPP $CPPFLAGS'
10636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640 cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646
10647_ACEOF
10648rm -f conftest.$ac_objext conftest$ac_exeext
10649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -z "$ac_c_werror_flag"
10658 || test ! -s conftest.err'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 lt_cv_cc_needs_belf=yes
10671else
10672 echo "$as_me: failed program was:" >&5
10673sed 's/^/| /' conftest.$ac_ext >&5
10674
10675lt_cv_cc_needs_belf=no
10676fi
10677rm -f conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679 ac_ext=c
10680ac_cpp='$CPP $CPPFLAGS'
10681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683ac_compiler_gnu=$ac_cv_c_compiler_gnu
10684
10685fi
10686echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10687echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10690 CFLAGS="$SAVE_CFLAGS"
10691 fi
10692 ;;
10693
10694esac
10695
10696need_locks="$enable_libtool_lock"
10697
10698
Reid Spencer2706f8c2004-09-19 23:53:36 +000010699
10700
10701if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10703 (test "X$CXX" != "Xg++"))) ; then
10704 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010705ac_cpp='$CXXCPP $CPPFLAGS'
10706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10709echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10710echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10711if test -z "$CXXCPP"; then
10712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
John Criswell47fdd832003-07-14 16:52:07 +000010715 # Double quotes because CXXCPP needs to be expanded
10716 for CXXCPP in "$CXX -E" "/lib/cpp"
10717 do
10718 ac_preproc_ok=false
10719for ac_cxx_preproc_warn_flag in '' yes
10720do
10721 # Use a header file that comes with gcc, so configuring glibc
10722 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10724 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010725 # On the NeXT, cc -E runs the code through the compiler's parser,
10726 # not just through cpp. "Syntax error" is here to catch this case.
10727 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h. */
10733#ifdef __STDC__
10734# include <limits.h>
10735#else
10736# include <assert.h>
10737#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010738 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010739_ACEOF
10740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10742 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010743 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } >/dev/null; then
10748 if test -s conftest.err; then
10749 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010751 else
John Criswell47fdd832003-07-14 16:52:07 +000010752 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010753 fi
John Criswell47fdd832003-07-14 16:52:07 +000010754else
10755 ac_cpp_err=yes
10756fi
10757if test -z "$ac_cpp_err"; then
10758 :
10759else
10760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010761sed 's/^/| /' conftest.$ac_ext >&5
10762
John Criswell47fdd832003-07-14 16:52:07 +000010763 # Broken: fails on valid input.
10764continue
10765fi
10766rm -f conftest.err conftest.$ac_ext
10767
10768 # OK, works on sane cases. Now check whether non-existent headers
10769 # can be detected and how.
10770 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010776#include <ac_nonexistent.h>
10777_ACEOF
10778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010781 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010789 else
10790 ac_cpp_err=
10791 fi
10792else
10793 ac_cpp_err=yes
10794fi
10795if test -z "$ac_cpp_err"; then
10796 # Broken: success on invalid input.
10797continue
10798else
10799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010800sed 's/^/| /' conftest.$ac_ext >&5
10801
John Criswell47fdd832003-07-14 16:52:07 +000010802 # Passes both tests.
10803ac_preproc_ok=:
10804break
10805fi
10806rm -f conftest.err conftest.$ac_ext
10807
10808done
10809# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10810rm -f conftest.err conftest.$ac_ext
10811if $ac_preproc_ok; then
10812 break
John Criswell7a73b802003-06-30 21:59:07 +000010813fi
10814
John Criswell47fdd832003-07-14 16:52:07 +000010815 done
10816 ac_cv_prog_CXXCPP=$CXXCPP
10817
10818fi
10819 CXXCPP=$ac_cv_prog_CXXCPP
10820else
10821 ac_cv_prog_CXXCPP=$CXXCPP
10822fi
10823echo "$as_me:$LINENO: result: $CXXCPP" >&5
10824echo "${ECHO_T}$CXXCPP" >&6
10825ac_preproc_ok=false
10826for ac_cxx_preproc_warn_flag in '' yes
10827do
10828 # Use a header file that comes with gcc, so configuring glibc
10829 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010832 # On the NeXT, cc -E runs the code through the compiler's parser,
10833 # not just through cpp. "Syntax error" is here to catch this case.
10834 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840#ifdef __STDC__
10841# include <limits.h>
10842#else
10843# include <assert.h>
10844#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010845 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010846_ACEOF
10847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10849 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010850 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } >/dev/null; then
10855 if test -s conftest.err; then
10856 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010858 else
10859 ac_cpp_err=
10860 fi
10861else
10862 ac_cpp_err=yes
10863fi
10864if test -z "$ac_cpp_err"; then
10865 :
10866else
10867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010868sed 's/^/| /' conftest.$ac_ext >&5
10869
John Criswell47fdd832003-07-14 16:52:07 +000010870 # Broken: fails on valid input.
10871continue
10872fi
10873rm -f conftest.err conftest.$ac_ext
10874
10875 # OK, works on sane cases. Now check whether non-existent headers
10876 # can be detected and how.
10877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010878/* confdefs.h. */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010883#include <ac_nonexistent.h>
10884_ACEOF
10885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10887 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010888 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } >/dev/null; then
10893 if test -s conftest.err; then
10894 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010896 else
10897 ac_cpp_err=
10898 fi
10899else
10900 ac_cpp_err=yes
10901fi
10902if test -z "$ac_cpp_err"; then
10903 # Broken: success on invalid input.
10904continue
10905else
10906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010907sed 's/^/| /' conftest.$ac_ext >&5
10908
John Criswell47fdd832003-07-14 16:52:07 +000010909 # Passes both tests.
10910ac_preproc_ok=:
10911break
10912fi
10913rm -f conftest.err conftest.$ac_ext
10914
10915done
10916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10917rm -f conftest.err conftest.$ac_ext
10918if $ac_preproc_ok; then
10919 :
10920else
John Criswell0c38eaf2003-09-10 15:17:25 +000010921 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10922See \`config.log' for more details." >&5
10923echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10924See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010925 { (exit 1); exit 1; }; }
10926fi
10927
10928ac_ext=cc
10929ac_cpp='$CXXCPP $CPPFLAGS'
10930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10933
Reid Spencer2706f8c2004-09-19 23:53:36 +000010934fi
10935
John Criswell47fdd832003-07-14 16:52:07 +000010936
10937ac_ext=f
10938ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10939ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10941if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010942 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 +000010943 do
10944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10946echo "$as_me:$LINENO: checking for $ac_word" >&5
10947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948if test "${ac_cv_prog_F77+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950else
10951 if test -n "$F77"; then
10952 ac_cv_prog_F77="$F77" # Let the user override the test.
10953else
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966done
10967
10968fi
10969fi
10970F77=$ac_cv_prog_F77
10971if test -n "$F77"; then
10972 echo "$as_me:$LINENO: result: $F77" >&5
10973echo "${ECHO_T}$F77" >&6
10974else
10975 echo "$as_me:$LINENO: result: no" >&5
10976echo "${ECHO_T}no" >&6
10977fi
10978
10979 test -n "$F77" && break
10980 done
10981fi
10982if test -z "$F77"; then
10983 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010984 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 +000010985do
10986 # Extract the first word of "$ac_prog", so it can be a program name with args.
10987set dummy $ac_prog; ac_word=$2
10988echo "$as_me:$LINENO: checking for $ac_word" >&5
10989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992else
10993 if test -n "$ac_ct_F77"; then
10994 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10995else
10996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997for as_dir in $PATH
10998do
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003 ac_cv_prog_ac_ct_F77="$ac_prog"
11004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11005 break 2
11006 fi
11007done
11008done
11009
11010fi
11011fi
11012ac_ct_F77=$ac_cv_prog_ac_ct_F77
11013if test -n "$ac_ct_F77"; then
11014 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11015echo "${ECHO_T}$ac_ct_F77" >&6
11016else
11017 echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6
11019fi
11020
11021 test -n "$ac_ct_F77" && break
11022done
11023
11024 F77=$ac_ct_F77
11025fi
11026
11027
11028# Provide some information about the compiler.
Reid Spencercaf0ece2006-06-05 15:54:38 +000011029echo "$as_me:11029:" \
John Criswell47fdd832003-07-14 16:52:07 +000011030 "checking for Fortran 77 compiler version" >&5
11031ac_compiler=`set X $ac_compile; echo $2`
11032{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11033 (eval $ac_compiler --version </dev/null >&5) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }
11037{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11038 (eval $ac_compiler -v </dev/null >&5) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11043 (eval $ac_compiler -V </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000011047rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000011048
11049# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000011050# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000011051ac_save_ext=$ac_ext
11052ac_ext=F
11053echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11054echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11055if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
11058 cat >conftest.$ac_ext <<_ACEOF
11059 program main
11060#ifndef __GNUC__
11061 choke me
11062#endif
11063
11064 end
11065_ACEOF
11066rm -f conftest.$ac_objext
11067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011068 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011075 { ac_try='test -z "$ac_f77_werror_flag"
11076 || test ! -s conftest.err'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 ac_compiler_gnu=yes
11089else
11090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011091sed 's/^/| /' conftest.$ac_ext >&5
11092
John Criswell47fdd832003-07-14 16:52:07 +000011093ac_compiler_gnu=no
11094fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011096ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11097
11098fi
11099echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11100echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11101ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011102ac_test_FFLAGS=${FFLAGS+set}
11103ac_save_FFLAGS=$FFLAGS
11104FFLAGS=
11105echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11106echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11107if test "${ac_cv_prog_f77_g+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109else
11110 FFLAGS=-g
11111cat >conftest.$ac_ext <<_ACEOF
11112 program main
11113
11114 end
11115_ACEOF
11116rm -f conftest.$ac_objext
11117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011118 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011125 { ac_try='test -z "$ac_f77_werror_flag"
11126 || test ! -s conftest.err'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_cv_prog_f77_g=yes
11139else
11140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011141sed 's/^/| /' conftest.$ac_ext >&5
11142
John Criswell47fdd832003-07-14 16:52:07 +000011143ac_cv_prog_f77_g=no
11144fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011146
11147fi
11148echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11149echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11150if test "$ac_test_FFLAGS" = set; then
11151 FFLAGS=$ac_save_FFLAGS
11152elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011153 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011154 FFLAGS="-g -O2"
11155 else
11156 FFLAGS="-g"
11157 fi
11158else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011159 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011160 FFLAGS="-O2"
11161 else
11162 FFLAGS=
11163 fi
11164fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011165
11166G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011167ac_ext=c
11168ac_cpp='$CPP $CPPFLAGS'
11169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171ac_compiler_gnu=$ac_cv_c_compiler_gnu
11172
11173
11174
11175# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11176
11177# find the maximum length of command line arguments
11178echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11179echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11180if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
11183 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011184 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011185
11186 case $build_os in
11187 msdosdjgpp*)
11188 # On DJGPP, this test can blow up pretty badly due to problems in libc
11189 # (any single argument exceeding 2000 bytes causes a buffer overrun
11190 # during glob expansion). Even if it were fixed, the result of this
11191 # check would be larger than it should be.
11192 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11193 ;;
11194
11195 gnu*)
11196 # Under GNU Hurd, this test is not required because there is
11197 # no limit to the length of command line arguments.
11198 # Libtool will interpret -1 as no limit whatsoever
11199 lt_cv_sys_max_cmd_len=-1;
11200 ;;
11201
11202 cygwin* | mingw*)
11203 # On Win9x/ME, this test blows up -- it succeeds, but takes
11204 # about 5 minutes as the teststring grows exponentially.
11205 # Worse, since 9x/ME are not pre-emptively multitasking,
11206 # you end up with a "frozen" computer, even though with patience
11207 # the test eventually succeeds (with a max line length of 256k).
11208 # Instead, let's just punt: use the minimum linelength reported by
11209 # all of the supported platforms: 8192 (on NT/2K/XP).
11210 lt_cv_sys_max_cmd_len=8192;
11211 ;;
11212
Reid Spencer2706f8c2004-09-19 23:53:36 +000011213 amigaos*)
11214 # On AmigaOS with pdksh, this test takes hours, literally.
11215 # So we just punt and use a minimum line length of 8192.
11216 lt_cv_sys_max_cmd_len=8192;
11217 ;;
11218
11219 netbsd* | freebsd* | openbsd* | darwin* )
11220 # This has been around since 386BSD, at least. Likely further.
11221 if test -x /sbin/sysctl; then
11222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11223 elif test -x /usr/sbin/sysctl; then
11224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11225 else
11226 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11227 fi
11228 # And add a safety zone
11229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11230 ;;
11231
John Criswell47fdd832003-07-14 16:52:07 +000011232 *)
11233 # If test is not a shell built-in, we'll probably end up computing a
11234 # maximum length that is only half of the actual maximum length, but
11235 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11237 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11238 = "XX$teststring") >/dev/null 2>&1 &&
11239 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011240 lt_cv_sys_max_cmd_len=$new_result &&
11241 test $i != 17 # 1/2 MB should be enough
11242 do
11243 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011244 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011245 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011246 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011247 # Add a significant safety factor because C++ compilers can tack on massive
11248 # amounts of additional arguments before passing them to the linker.
11249 # It appears as though 1/2 is a usable value.
11250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11251 ;;
11252 esac
11253
11254fi
11255
11256if test -n $lt_cv_sys_max_cmd_len ; then
11257 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11258echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11259else
11260 echo "$as_me:$LINENO: result: none" >&5
11261echo "${ECHO_T}none" >&6
11262fi
11263
11264
11265
11266
11267# Check for command to grab the raw symbol name followed by C symbol from nm.
11268echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11269echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11270if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273
11274# These are sane defaults that work on at least a few old systems.
11275# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11276
11277# Character class describing NM global symbol codes.
11278symcode='[BCDEGRST]'
11279
11280# Regexp to match symbols that can be accessed directly from C.
11281sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11282
11283# Transform the above into a raw symbol and a C symbol.
11284symxfrm='\1 \2\3 \3'
11285
11286# Transform an extracted symbol line into a proper C declaration
11287lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11288
11289# Transform an extracted symbol line into symbol name and symbol address
11290lt_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'"
11291
11292# Define system-specific variables.
11293case $host_os in
11294aix*)
11295 symcode='[BCDT]'
11296 ;;
11297cygwin* | mingw* | pw32*)
11298 symcode='[ABCDGISTW]'
11299 ;;
11300hpux*) # Its linker distinguishes data from code symbols
11301 if test "$host_cpu" = ia64; then
11302 symcode='[ABCDEGRST]'
11303 fi
11304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11305 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'"
11306 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011307linux*)
11308 if test "$host_cpu" = ia64; then
11309 symcode='[ABCDGIRSTW]'
11310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11311 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'"
11312 fi
11313 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011314irix* | nonstopux*)
11315 symcode='[BCDEGRST]'
11316 ;;
11317osf*)
11318 symcode='[BCDEGQRST]'
11319 ;;
11320solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011321 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011322 ;;
11323sysv4)
11324 symcode='[DFNSTU]'
11325 ;;
11326esac
11327
11328# Handle CRLF in mingw tool chain
11329opt_cr=
11330case $build_os in
11331mingw*)
11332 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11333 ;;
11334esac
11335
11336# If we're using GNU nm, then use its standard symbol codes.
11337case `$NM -V 2>&1` in
11338*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011339 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011340esac
11341
11342# Try without a prefix undercore, then with it.
11343for ac_symprfx in "" "_"; do
11344
11345 # Write the raw and C identifiers.
11346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11347
11348 # Check to see that the pipe works correctly.
11349 pipe_works=no
11350
11351 rm -f conftest*
11352 cat > conftest.$ac_ext <<EOF
11353#ifdef __cplusplus
11354extern "C" {
11355#endif
11356char nm_test_var;
11357void nm_test_func(){}
11358#ifdef __cplusplus
11359}
11360#endif
11361int main(){nm_test_var='a';nm_test_func();return(0);}
11362EOF
11363
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; then
11369 # Now try to grab the symbols.
11370 nlist=conftest.nm
11371 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11372 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && test -s "$nlist"; then
11376 # Try sorting and uniquifying the output.
11377 if sort "$nlist" | uniq > "$nlist"T; then
11378 mv -f "$nlist"T "$nlist"
11379 else
11380 rm -f "$nlist"T
11381 fi
11382
11383 # Make sure that we snagged all the symbols we need.
11384 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11385 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11386 cat <<EOF > conftest.$ac_ext
11387#ifdef __cplusplus
11388extern "C" {
11389#endif
11390
11391EOF
11392 # Now generate the symbol file.
11393 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11394
11395 cat <<EOF >> conftest.$ac_ext
11396#if defined (__STDC__) && __STDC__
11397# define lt_ptr_t void *
11398#else
11399# define lt_ptr_t char *
11400# define const
11401#endif
11402
11403/* The mapping between symbol names and symbols. */
11404const struct {
11405 const char *name;
11406 lt_ptr_t address;
11407}
11408lt_preloaded_symbols[] =
11409{
11410EOF
11411 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11412 cat <<\EOF >> conftest.$ac_ext
11413 {0, (lt_ptr_t) 0}
11414};
11415
11416#ifdef __cplusplus
11417}
11418#endif
11419EOF
11420 # Now try linking the two files.
11421 mv conftest.$ac_objext conftstm.$ac_objext
11422 lt_save_LIBS="$LIBS"
11423 lt_save_CFLAGS="$CFLAGS"
11424 LIBS="conftstm.$ac_objext"
11425 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11431 pipe_works=yes
11432 fi
11433 LIBS="$lt_save_LIBS"
11434 CFLAGS="$lt_save_CFLAGS"
11435 else
11436 echo "cannot find nm_test_func in $nlist" >&5
11437 fi
11438 else
11439 echo "cannot find nm_test_var in $nlist" >&5
11440 fi
11441 else
11442 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11443 fi
11444 else
11445 echo "$progname: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 fi
11448 rm -f conftest* conftst*
11449
11450 # Do not use the global_symbol_pipe unless it works.
11451 if test "$pipe_works" = yes; then
11452 break
11453 else
11454 lt_cv_sys_global_symbol_pipe=
11455 fi
11456done
11457
11458fi
11459
11460if test -z "$lt_cv_sys_global_symbol_pipe"; then
11461 lt_cv_sys_global_symbol_to_cdecl=
11462fi
11463if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11464 echo "$as_me:$LINENO: result: failed" >&5
11465echo "${ECHO_T}failed" >&6
11466else
11467 echo "$as_me:$LINENO: result: ok" >&5
11468echo "${ECHO_T}ok" >&6
11469fi
11470
11471echo "$as_me:$LINENO: checking for objdir" >&5
11472echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11473if test "${lt_cv_objdir+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475else
11476 rm -f .libs 2>/dev/null
11477mkdir .libs 2>/dev/null
11478if test -d .libs; then
11479 lt_cv_objdir=.libs
11480else
11481 # MS-DOS does not allow filenames that begin with a dot.
11482 lt_cv_objdir=_libs
11483fi
11484rmdir .libs 2>/dev/null
11485fi
11486echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11487echo "${ECHO_T}$lt_cv_objdir" >&6
11488objdir=$lt_cv_objdir
11489
11490
11491
11492
11493
11494case $host_os in
11495aix3*)
11496 # AIX sometimes has problems with the GCC collect2 program. For some
11497 # reason, if we set the COLLECT_NAMES environment variable, the problems
11498 # vanish in a puff of smoke.
11499 if test "X${COLLECT_NAMES+set}" != Xset; then
11500 COLLECT_NAMES=
11501 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011502 fi
11503 ;;
11504esac
11505
John Criswell47fdd832003-07-14 16:52:07 +000011506# Sed substitution that helps us do robust quoting. It backslashifies
11507# metacharacters that are still active within double-quoted strings.
11508Xsed='sed -e s/^X//'
11509sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11510
11511# Same as above, but do not quote variable references.
11512double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11513
11514# Sed substitution to delay expansion of an escaped shell variable in a
11515# double_quote_subst'ed string.
11516delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11517
11518# Sed substitution to avoid accidental globbing in evaled expressions
11519no_glob_subst='s/\*/\\\*/g'
11520
11521# Constants:
11522rm="rm -f"
11523
11524# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011525default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011526can_build_shared=yes
11527
11528# All known linkers require a `.a' archive for static linking (except M$VC,
11529# which needs '.lib').
11530libext=a
11531ltmain="$ac_aux_dir/ltmain.sh"
11532ofile="$default_ofile"
11533with_gnu_ld="$lt_cv_prog_gnu_ld"
11534
11535if test -n "$ac_tool_prefix"; then
11536 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11537set dummy ${ac_tool_prefix}ar; ac_word=$2
11538echo "$as_me:$LINENO: checking for $ac_word" >&5
11539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11540if test "${ac_cv_prog_AR+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 if test -n "$AR"; then
11544 ac_cv_prog_AR="$AR" # Let the user override the test.
11545else
11546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_AR="${ac_tool_prefix}ar"
11554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 break 2
11556 fi
11557done
11558done
11559
11560fi
11561fi
11562AR=$ac_cv_prog_AR
11563if test -n "$AR"; then
11564 echo "$as_me:$LINENO: result: $AR" >&5
11565echo "${ECHO_T}$AR" >&6
11566else
11567 echo "$as_me:$LINENO: result: no" >&5
11568echo "${ECHO_T}no" >&6
11569fi
11570
11571fi
11572if test -z "$ac_cv_prog_AR"; then
11573 ac_ct_AR=$AR
11574 # Extract the first word of "ar", so it can be a program name with args.
11575set dummy ar; ac_word=$2
11576echo "$as_me:$LINENO: checking for $ac_word" >&5
11577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11578if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 if test -n "$ac_ct_AR"; then
11582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11583else
11584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591 ac_cv_prog_ac_ct_AR="ar"
11592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11594 fi
11595done
11596done
11597
11598 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11599fi
11600fi
11601ac_ct_AR=$ac_cv_prog_ac_ct_AR
11602if test -n "$ac_ct_AR"; then
11603 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11604echo "${ECHO_T}$ac_ct_AR" >&6
11605else
11606 echo "$as_me:$LINENO: result: no" >&5
11607echo "${ECHO_T}no" >&6
11608fi
11609
11610 AR=$ac_ct_AR
11611else
11612 AR="$ac_cv_prog_AR"
11613fi
11614
John Criswell7a73b802003-06-30 21:59:07 +000011615if test -n "$ac_tool_prefix"; then
11616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11617set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11618echo "$as_me:$LINENO: checking for $ac_word" >&5
11619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11620if test "${ac_cv_prog_RANLIB+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 if test -n "$RANLIB"; then
11624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11625else
11626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627for as_dir in $PATH
11628do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11636 fi
11637done
11638done
11639
11640fi
11641fi
11642RANLIB=$ac_cv_prog_RANLIB
11643if test -n "$RANLIB"; then
11644 echo "$as_me:$LINENO: result: $RANLIB" >&5
11645echo "${ECHO_T}$RANLIB" >&6
11646else
11647 echo "$as_me:$LINENO: result: no" >&5
11648echo "${ECHO_T}no" >&6
11649fi
11650
11651fi
11652if test -z "$ac_cv_prog_RANLIB"; then
11653 ac_ct_RANLIB=$RANLIB
11654 # Extract the first word of "ranlib", so it can be a program name with args.
11655set dummy ranlib; ac_word=$2
11656echo "$as_me:$LINENO: checking for $ac_word" >&5
11657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11658if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660else
11661 if test -n "$ac_ct_RANLIB"; then
11662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11663else
11664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $PATH
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_prog_ac_ct_RANLIB="ranlib"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675done
11676done
11677
11678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11679fi
11680fi
11681ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11682if test -n "$ac_ct_RANLIB"; then
11683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11684echo "${ECHO_T}$ac_ct_RANLIB" >&6
11685else
11686 echo "$as_me:$LINENO: result: no" >&5
11687echo "${ECHO_T}no" >&6
11688fi
11689
11690 RANLIB=$ac_ct_RANLIB
11691else
11692 RANLIB="$ac_cv_prog_RANLIB"
11693fi
11694
11695if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11697set dummy ${ac_tool_prefix}strip; ac_word=$2
11698echo "$as_me:$LINENO: checking for $ac_word" >&5
11699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11700if test "${ac_cv_prog_STRIP+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 if test -n "$STRIP"; then
11704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11705else
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717done
11718done
11719
11720fi
11721fi
11722STRIP=$ac_cv_prog_STRIP
11723if test -n "$STRIP"; then
11724 echo "$as_me:$LINENO: result: $STRIP" >&5
11725echo "${ECHO_T}$STRIP" >&6
11726else
11727 echo "$as_me:$LINENO: result: no" >&5
11728echo "${ECHO_T}no" >&6
11729fi
11730
11731fi
11732if test -z "$ac_cv_prog_STRIP"; then
11733 ac_ct_STRIP=$STRIP
11734 # Extract the first word of "strip", so it can be a program name with args.
11735set dummy strip; ac_word=$2
11736echo "$as_me:$LINENO: checking for $ac_word" >&5
11737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11738if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740else
11741 if test -n "$ac_ct_STRIP"; then
11742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11743else
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 ac_cv_prog_ac_ct_STRIP="strip"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
11756done
11757
11758 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11759fi
11760fi
11761ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11762if test -n "$ac_ct_STRIP"; then
11763 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11764echo "${ECHO_T}$ac_ct_STRIP" >&6
11765else
11766 echo "$as_me:$LINENO: result: no" >&5
11767echo "${ECHO_T}no" >&6
11768fi
11769
11770 STRIP=$ac_ct_STRIP
11771else
11772 STRIP="$ac_cv_prog_STRIP"
11773fi
11774
11775
John Criswell7a73b802003-06-30 21:59:07 +000011776old_CC="$CC"
11777old_CFLAGS="$CFLAGS"
11778
11779# Set sane defaults for various variables
11780test -z "$AR" && AR=ar
11781test -z "$AR_FLAGS" && AR_FLAGS=cru
11782test -z "$AS" && AS=as
11783test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011784test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011785test -z "$DLLTOOL" && DLLTOOL=dlltool
11786test -z "$LD" && LD=ld
11787test -z "$LN_S" && LN_S="ln -s"
11788test -z "$MAGIC_CMD" && MAGIC_CMD=file
11789test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011790test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011791test -z "$OBJDUMP" && OBJDUMP=objdump
11792test -z "$RANLIB" && RANLIB=:
11793test -z "$STRIP" && STRIP=:
11794test -z "$ac_objext" && ac_objext=o
11795
John Criswell7a73b802003-06-30 21:59:07 +000011796# Determine commands to create old-style static archives.
11797old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11798old_postinstall_cmds='chmod 644 $oldlib'
11799old_postuninstall_cmds=
11800
11801if test -n "$RANLIB"; then
11802 case $host_os in
11803 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011804 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011805 ;;
11806 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011807 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011808 ;;
11809 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011811fi
11812
Reid Spencer2706f8c2004-09-19 23:53:36 +000011813cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11814
John Criswell47fdd832003-07-14 16:52:07 +000011815# Only perform the check for file, if the check method requires it
11816case $deplibs_check_method in
11817file_magic*)
11818 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11819 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11820echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11821if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011823else
John Criswell47fdd832003-07-14 16:52:07 +000011824 case $MAGIC_CMD in
11825[\\/*] | ?:[\\/]*)
11826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11827 ;;
11828*)
11829 lt_save_MAGIC_CMD="$MAGIC_CMD"
11830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11832 for ac_dir in $ac_dummy; do
11833 IFS="$lt_save_ifs"
11834 test -z "$ac_dir" && ac_dir=.
11835 if test -f $ac_dir/${ac_tool_prefix}file; then
11836 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11837 if test -n "$file_magic_test_file"; then
11838 case $deplibs_check_method in
11839 "file_magic "*)
11840 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11843 $EGREP "$file_magic_regex" > /dev/null; then
11844 :
11845 else
11846 cat <<EOF 1>&2
11847
11848*** Warning: the command libtool uses to detect shared libraries,
11849*** $file_magic_cmd, produces output that libtool cannot recognize.
11850*** The result is that libtool may fail to recognize shared libraries
11851*** as such. This will affect the creation of libtool libraries that
11852*** depend on shared libraries, but programs linked with such libtool
11853*** libraries will work regardless of this problem. Nevertheless, you
11854*** may want to report the problem to your system manager and/or to
11855*** bug-libtool@gnu.org
11856
11857EOF
11858 fi ;;
11859 esac
11860 fi
11861 break
11862 fi
11863 done
11864 IFS="$lt_save_ifs"
11865 MAGIC_CMD="$lt_save_MAGIC_CMD"
11866 ;;
11867esac
John Criswell7a73b802003-06-30 21:59:07 +000011868fi
John Criswell7a73b802003-06-30 21:59:07 +000011869
John Criswell47fdd832003-07-14 16:52:07 +000011870MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11871if test -n "$MAGIC_CMD"; then
11872 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11873echo "${ECHO_T}$MAGIC_CMD" >&6
11874else
11875 echo "$as_me:$LINENO: result: no" >&5
11876echo "${ECHO_T}no" >&6
11877fi
John Criswell7a73b802003-06-30 21:59:07 +000011878
John Criswell47fdd832003-07-14 16:52:07 +000011879if test -z "$lt_cv_path_MAGIC_CMD"; then
11880 if test -n "$ac_tool_prefix"; then
11881 echo "$as_me:$LINENO: checking for file" >&5
11882echo $ECHO_N "checking for file... $ECHO_C" >&6
11883if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885else
11886 case $MAGIC_CMD in
11887[\\/*] | ?:[\\/]*)
11888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11889 ;;
11890*)
11891 lt_save_MAGIC_CMD="$MAGIC_CMD"
11892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11894 for ac_dir in $ac_dummy; do
11895 IFS="$lt_save_ifs"
11896 test -z "$ac_dir" && ac_dir=.
11897 if test -f $ac_dir/file; then
11898 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11899 if test -n "$file_magic_test_file"; then
11900 case $deplibs_check_method in
11901 "file_magic "*)
11902 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11905 $EGREP "$file_magic_regex" > /dev/null; then
11906 :
11907 else
11908 cat <<EOF 1>&2
11909
11910*** Warning: the command libtool uses to detect shared libraries,
11911*** $file_magic_cmd, produces output that libtool cannot recognize.
11912*** The result is that libtool may fail to recognize shared libraries
11913*** as such. This will affect the creation of libtool libraries that
11914*** depend on shared libraries, but programs linked with such libtool
11915*** libraries will work regardless of this problem. Nevertheless, you
11916*** may want to report the problem to your system manager and/or to
11917*** bug-libtool@gnu.org
11918
11919EOF
11920 fi ;;
11921 esac
11922 fi
11923 break
11924 fi
11925 done
11926 IFS="$lt_save_ifs"
11927 MAGIC_CMD="$lt_save_MAGIC_CMD"
11928 ;;
11929esac
11930fi
11931
11932MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11933if test -n "$MAGIC_CMD"; then
11934 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11935echo "${ECHO_T}$MAGIC_CMD" >&6
11936else
11937 echo "$as_me:$LINENO: result: no" >&5
11938echo "${ECHO_T}no" >&6
11939fi
11940
11941 else
11942 MAGIC_CMD=:
11943 fi
11944fi
11945
11946 fi
11947 ;;
11948esac
11949
Reid Spencer17795972004-11-18 09:47:37 +000011950enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011951enable_win32_dll=no
11952
11953# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11954if test "${enable_libtool_lock+set}" = set; then
11955 enableval="$enable_libtool_lock"
11956
11957fi;
11958test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11959
John Criswell7a73b802003-06-30 21:59:07 +000011960
11961# Check whether --with-pic or --without-pic was given.
11962if test "${with_pic+set}" = set; then
11963 withval="$with_pic"
11964 pic_mode="$withval"
11965else
11966 pic_mode=default
11967fi;
11968test -z "$pic_mode" && pic_mode=default
11969
John Criswell47fdd832003-07-14 16:52:07 +000011970# Use C for the default configuration in the libtool script
11971tagname=
11972lt_save_CC="$CC"
11973ac_ext=c
11974ac_cpp='$CPP $CPPFLAGS'
11975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977ac_compiler_gnu=$ac_cv_c_compiler_gnu
11978
11979
11980# Source file extension for C test sources.
11981ac_ext=c
11982
11983# Object file extension for compiled C test sources.
11984objext=o
11985objext=$objext
11986
11987# Code to be used in simple compile tests
11988lt_simple_compile_test_code="int some_variable = 0;\n"
11989
11990# Code to be used in simple link tests
11991lt_simple_link_test_code='int main(){return(0);}\n'
11992
11993
11994# If no C compiler was specified, use CC.
11995LTCC=${LTCC-"$CC"}
11996
11997# Allow CC to be a program name with arguments.
11998compiler=$CC
11999
12000
12001#
12002# Check for any special shared library compilation flags.
12003#
12004lt_prog_cc_shlib=
12005if test "$GCC" = no; then
12006 case $host_os in
12007 sco3.2v5*)
12008 lt_prog_cc_shlib='-belf'
12009 ;;
12010 esac
12011fi
12012if test -n "$lt_prog_cc_shlib"; then
12013 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12014echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12015 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12016 else
12017 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12018echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12019 lt_cv_prog_cc_can_build_shared=no
12020 fi
12021fi
12022
12023
12024#
12025# Check to make sure the static flag actually works.
12026#
12027echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12028echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12029if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
John Criswell47fdd832003-07-14 16:52:07 +000012032 lt_prog_compiler_static_works=no
12033 save_LDFLAGS="$LDFLAGS"
12034 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12035 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12037 # The compiler can only warn and ignore the option if not recognized
12038 # So say no if there are warnings
12039 if test -s conftest.err; then
12040 # Append any errors to the config.log.
12041 cat conftest.err 1>&5
12042 else
12043 lt_prog_compiler_static_works=yes
12044 fi
12045 fi
12046 $rm conftest*
12047 LDFLAGS="$save_LDFLAGS"
12048
12049fi
12050echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12051echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12052
12053if test x"$lt_prog_compiler_static_works" = xyes; then
12054 :
12055else
12056 lt_prog_compiler_static=
12057fi
12058
12059
12060
John Criswell47fdd832003-07-14 16:52:07 +000012061
12062lt_prog_compiler_no_builtin_flag=
12063
12064if test "$GCC" = yes; then
12065 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12066
Reid Spencer2706f8c2004-09-19 23:53:36 +000012067
12068echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012069echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12070if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073 lt_cv_prog_compiler_rtti_exceptions=no
12074 ac_outfile=conftest.$ac_objext
12075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12076 lt_compiler_flag="-fno-rtti -fno-exceptions"
12077 # Insert the option either (1) after the last *FLAGS variable, or
12078 # (2) before a word containing "conftest.", or (3) at the end.
12079 # Note that $ac_compile itself does not contain backslashes and begins
12080 # with a dollar sign (not a hyphen), so the echo should work correctly.
12081 # The option is referenced via a variable to avoid confusing sed.
12082 lt_compile=`echo "$ac_compile" | $SED \
12083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12085 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000012086 (eval echo "\"\$as_me:12086: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012087 (eval "$lt_compile" 2>conftest.err)
12088 ac_status=$?
12089 cat conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000012090 echo "$as_me:12090: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012091 if (exit $ac_status) && test -s "$ac_outfile"; then
12092 # The compiler can only warn and ignore the option if not recognized
12093 # So say no if there are warnings
12094 if test ! -s conftest.err; then
12095 lt_cv_prog_compiler_rtti_exceptions=yes
12096 fi
12097 fi
12098 $rm conftest*
12099
12100fi
12101echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12102echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12103
12104if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12105 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12106else
12107 :
12108fi
12109
12110fi
12111
12112lt_prog_compiler_wl=
12113lt_prog_compiler_pic=
12114lt_prog_compiler_static=
12115
12116echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12117echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012118
12119 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012120 lt_prog_compiler_wl='-Wl,'
12121 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012122
12123 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012124 aix*)
12125 # All AIX code is PIC.
12126 if test "$host_cpu" = ia64; then
12127 # AIX 5 now supports IA64 processor
12128 lt_prog_compiler_static='-Bstatic'
12129 fi
John Criswell7a73b802003-06-30 21:59:07 +000012130 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012131
John Criswell7a73b802003-06-30 21:59:07 +000012132 amigaos*)
12133 # FIXME: we need at least 68020 code to build shared libraries, but
12134 # adding the `-m68020' flag to GCC prevents building anything better,
12135 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012136 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012137 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012138
12139 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012140 # PIC is the default for these OSes.
12141 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012142
12143 mingw* | pw32* | os2*)
12144 # This hack is so that the source file can tell whether it is being
12145 # built for inclusion in a dll (and should export symbols for example).
12146 lt_prog_compiler_pic='-DDLL_EXPORT'
12147 ;;
12148
John Criswell7a73b802003-06-30 21:59:07 +000012149 darwin* | rhapsody*)
12150 # PIC is the default on this platform
12151 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012152 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012153 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012154
12155 msdosdjgpp*)
12156 # Just because we use GCC doesn't mean we suddenly get shared libraries
12157 # on systems that don't support them.
12158 lt_prog_compiler_can_build_shared=no
12159 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012160 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012161
John Criswell7a73b802003-06-30 21:59:07 +000012162 sysv4*MP*)
12163 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012164 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012165 fi
12166 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012167
12168 hpux*)
12169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12170 # not for PA HP-UX.
12171 case "$host_cpu" in
12172 hppa*64*|ia64*)
12173 # +Z the default
12174 ;;
12175 *)
12176 lt_prog_compiler_pic='-fPIC'
12177 ;;
12178 esac
12179 ;;
12180
John Criswell7a73b802003-06-30 21:59:07 +000012181 *)
John Criswell47fdd832003-07-14 16:52:07 +000012182 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012183 ;;
12184 esac
12185 else
John Criswell47fdd832003-07-14 16:52:07 +000012186 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012187 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012188 aix*)
12189 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012190 if test "$host_cpu" = ia64; then
12191 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012192 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012193 else
John Criswell47fdd832003-07-14 16:52:07 +000012194 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012195 fi
12196 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012197 darwin*)
12198 # PIC is the default on this platform
12199 # Common symbols not allowed in MH_DYLIB files
12200 case "$cc_basename" in
12201 xlc*)
12202 lt_prog_compiler_pic='-qnocommon'
12203 lt_prog_compiler_wl='-Wl,'
12204 ;;
12205 esac
12206 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012207
John Criswell47fdd832003-07-14 16:52:07 +000012208 mingw* | pw32* | os2*)
12209 # This hack is so that the source file can tell whether it is being
12210 # built for inclusion in a dll (and should export symbols for example).
12211 lt_prog_compiler_pic='-DDLL_EXPORT'
12212 ;;
12213
John Criswell7a73b802003-06-30 21:59:07 +000012214 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012215 lt_prog_compiler_wl='-Wl,'
12216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12217 # not for PA HP-UX.
12218 case "$host_cpu" in
12219 hppa*64*|ia64*)
12220 # +Z the default
12221 ;;
12222 *)
12223 lt_prog_compiler_pic='+Z'
12224 ;;
12225 esac
12226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12227 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012228 ;;
12229
John Criswell47fdd832003-07-14 16:52:07 +000012230 irix5* | irix6* | nonstopux*)
12231 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012232 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012233 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012234 ;;
12235
12236 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012237 lt_prog_compiler_pic='-KPIC'
12238 lt_prog_compiler_static='-Bstatic'
12239 ;;
12240
12241 linux*)
12242 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012243 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012244 lt_prog_compiler_wl='-Wl,'
12245 lt_prog_compiler_pic='-KPIC'
12246 lt_prog_compiler_static='-static'
12247 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012248 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012249 lt_prog_compiler_wl='-Wl,'
12250 # All Alpha code is PIC.
12251 lt_prog_compiler_static='-non_shared'
12252 ;;
12253 esac
John Criswell7a73b802003-06-30 21:59:07 +000012254 ;;
12255
12256 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012257 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012258 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012259 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012260 ;;
12261
12262 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012263 lt_prog_compiler_pic='-Kpic'
12264 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012265 ;;
12266
12267 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012268 lt_prog_compiler_wl='-Wl,'
12269 lt_prog_compiler_pic='-KPIC'
12270 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012271 ;;
12272
12273 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012274 lt_prog_compiler_wl='-Qoption ld '
12275 lt_prog_compiler_pic='-PIC'
12276 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012277 ;;
12278
12279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012280 lt_prog_compiler_wl='-Wl,'
12281 lt_prog_compiler_pic='-KPIC'
12282 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012283 ;;
12284
12285 sysv4*MP*)
12286 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012287 lt_prog_compiler_pic='-Kconform_pic'
12288 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012289 fi
12290 ;;
12291
John Criswell47fdd832003-07-14 16:52:07 +000012292 uts4*)
12293 lt_prog_compiler_pic='-pic'
12294 lt_prog_compiler_static='-Bstatic'
12295 ;;
12296
John Criswell7a73b802003-06-30 21:59:07 +000012297 *)
John Criswell47fdd832003-07-14 16:52:07 +000012298 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012299 ;;
12300 esac
12301 fi
12302
John Criswell47fdd832003-07-14 16:52:07 +000012303echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12304echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012305
John Criswell47fdd832003-07-14 16:52:07 +000012306#
12307# Check to make sure the PIC flag actually works.
12308#
12309if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012310
12311echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012312echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12313if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
John Criswell47fdd832003-07-14 16:52:07 +000012316 lt_prog_compiler_pic_works=no
12317 ac_outfile=conftest.$ac_objext
12318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12320 # Insert the option either (1) after the last *FLAGS variable, or
12321 # (2) before a word containing "conftest.", or (3) at the end.
12322 # Note that $ac_compile itself does not contain backslashes and begins
12323 # with a dollar sign (not a hyphen), so the echo should work correctly.
12324 # The option is referenced via a variable to avoid confusing sed.
12325 lt_compile=`echo "$ac_compile" | $SED \
12326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000012329 (eval echo "\"\$as_me:12329: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012330 (eval "$lt_compile" 2>conftest.err)
12331 ac_status=$?
12332 cat conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000012333 echo "$as_me:12333: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012334 if (exit $ac_status) && test -s "$ac_outfile"; then
12335 # The compiler can only warn and ignore the option if not recognized
12336 # So say no if there are warnings
12337 if test ! -s conftest.err; then
12338 lt_prog_compiler_pic_works=yes
12339 fi
12340 fi
12341 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012342
John Criswell47fdd832003-07-14 16:52:07 +000012343fi
12344echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12345echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012346
John Criswell47fdd832003-07-14 16:52:07 +000012347if test x"$lt_prog_compiler_pic_works" = xyes; then
12348 case $lt_prog_compiler_pic in
12349 "" | " "*) ;;
12350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12351 esac
John Criswell7a73b802003-06-30 21:59:07 +000012352else
John Criswell47fdd832003-07-14 16:52:07 +000012353 lt_prog_compiler_pic=
12354 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012355fi
12356
John Criswell7a73b802003-06-30 21:59:07 +000012357fi
John Criswell47fdd832003-07-14 16:52:07 +000012358case "$host_os" in
12359 # For platforms which do not support PIC, -DPIC is meaningless:
12360 *djgpp*)
12361 lt_prog_compiler_pic=
12362 ;;
12363 *)
12364 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12365 ;;
12366esac
John Criswell7a73b802003-06-30 21:59:07 +000012367
John Criswell7a73b802003-06-30 21:59:07 +000012368echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12369echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012370if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
John Criswell47fdd832003-07-14 16:52:07 +000012373 lt_cv_prog_compiler_c_o=no
12374 $rm -r conftest 2>/dev/null
12375 mkdir conftest
12376 cd conftest
12377 mkdir out
12378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012379
John Criswell47fdd832003-07-14 16:52:07 +000012380 lt_compiler_flag="-o out/conftest2.$ac_objext"
12381 # Insert the option either (1) after the last *FLAGS variable, or
12382 # (2) before a word containing "conftest.", or (3) at the end.
12383 # Note that $ac_compile itself does not contain backslashes and begins
12384 # with a dollar sign (not a hyphen), so the echo should work correctly.
12385 lt_compile=`echo "$ac_compile" | $SED \
12386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000012389 (eval echo "\"\$as_me:12389: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012390 (eval "$lt_compile" 2>out/conftest.err)
12391 ac_status=$?
12392 cat out/conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000012393 echo "$as_me:12393: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12395 then
12396 # The compiler can only warn and ignore the option if not recognized
12397 # So say no if there are warnings
12398 if test ! -s out/conftest.err; then
12399 lt_cv_prog_compiler_c_o=yes
12400 fi
12401 fi
12402 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012403 $rm conftest*
12404 # SGI C++ compiler will create directory out/ii_files/ for
12405 # template instantiation
12406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12407 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012408 cd ..
12409 rmdir conftest
12410 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012411
12412fi
John Criswell47fdd832003-07-14 16:52:07 +000012413echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12414echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012415
John Criswell7a73b802003-06-30 21:59:07 +000012416
John Criswell7a73b802003-06-30 21:59:07 +000012417hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012418if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012419 # do not overwrite the value of need_locks provided by the user
12420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12421echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12422 hard_links=yes
12423 $rm conftest*
12424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12425 touch conftest.a
12426 ln conftest.a conftest.b 2>&5 || hard_links=no
12427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12428 echo "$as_me:$LINENO: result: $hard_links" >&5
12429echo "${ECHO_T}$hard_links" >&6
12430 if test "$hard_links" = no; then
12431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12432echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12433 need_locks=warn
12434 fi
12435else
12436 need_locks=no
12437fi
John Criswell7a73b802003-06-30 21:59:07 +000012438
John Criswell47fdd832003-07-14 16:52:07 +000012439echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12440echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12441
12442 runpath_var=
12443 allow_undefined_flag=
12444 enable_shared_with_static_runtimes=no
12445 archive_cmds=
12446 archive_expsym_cmds=
12447 old_archive_From_new_cmds=
12448 old_archive_from_expsyms_cmds=
12449 export_dynamic_flag_spec=
12450 whole_archive_flag_spec=
12451 thread_safe_flag_spec=
12452 hardcode_libdir_flag_spec=
12453 hardcode_libdir_flag_spec_ld=
12454 hardcode_libdir_separator=
12455 hardcode_direct=no
12456 hardcode_minus_L=no
12457 hardcode_shlibpath_var=unsupported
12458 link_all_deplibs=unknown
12459 hardcode_automatic=no
12460 module_cmds=
12461 module_expsym_cmds=
12462 always_export_symbols=no
12463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464 # include_expsyms should be a list of space-separated symbols to be *always*
12465 # included in the symbol list
12466 include_expsyms=
12467 # exclude_expsyms can be an extended regexp of symbols to exclude
12468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12470 # as well as any symbol that contains `d'.
12471 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12473 # platforms (ab)use it in PIC code, but their linkers get confused if
12474 # the symbol is explicitly referenced. Since portable code cannot
12475 # rely on this symbol name, it's probably fine to never include it in
12476 # preloaded symbol tables.
12477 extract_expsyms_cmds=
12478
12479 case $host_os in
12480 cygwin* | mingw* | pw32*)
12481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12482 # When not using gcc, we currently assume that we are using
12483 # Microsoft Visual C++.
12484 if test "$GCC" != yes; then
12485 with_gnu_ld=no
12486 fi
12487 ;;
12488 openbsd*)
12489 with_gnu_ld=no
12490 ;;
12491 esac
12492
12493 ld_shlibs=yes
12494 if test "$with_gnu_ld" = yes; then
12495 # If archive_cmds runs LD, not CC, wlarc should be empty
12496 wlarc='${wl}'
12497
12498 # See if GNU ld supports shared libraries.
12499 case $host_os in
12500 aix3* | aix4* | aix5*)
12501 # On AIX/PPC, the GNU linker is very broken
12502 if test "$host_cpu" != ia64; then
12503 ld_shlibs=no
12504 cat <<EOF 1>&2
12505
12506*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12507*** to be unable to reliably create shared libraries on AIX.
12508*** Therefore, libtool is disabling shared libraries support. If you
12509*** really care for shared libraries, you may want to modify your PATH
12510*** so that a non-GNU linker is found, and then restart.
12511
12512EOF
12513 fi
12514 ;;
12515
12516 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012517 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 +000012518 hardcode_libdir_flag_spec='-L$libdir'
12519 hardcode_minus_L=yes
12520
12521 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12522 # that the semantics of dynamic libraries on AmigaOS, at least up
12523 # to version 4, is to share data among multiple programs linked
12524 # with the same dynamic library. Since this doesn't match the
12525 # behavior of shared libraries on other platforms, we can't use
12526 # them.
12527 ld_shlibs=no
12528 ;;
12529
12530 beos*)
12531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12532 allow_undefined_flag=unsupported
12533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12534 # support --undefined. This deserves some investigation. FIXME
12535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12536 else
12537 ld_shlibs=no
12538 fi
12539 ;;
12540
12541 cygwin* | mingw* | pw32*)
12542 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12543 # as there is no search path for DLLs.
12544 hardcode_libdir_flag_spec='-L$libdir'
12545 allow_undefined_flag=unsupported
12546 always_export_symbols=no
12547 enable_shared_with_static_runtimes=yes
12548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12549
12550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12552 # If the export-symbols file already is a .def file (1st line
12553 # is EXPORTS), use it as is; otherwise, prepend...
12554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12555 cp $export_symbols $output_objdir/$soname.def;
12556 else
12557 echo EXPORTS > $output_objdir/$soname.def;
12558 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012559 fi~
12560 $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 +000012561 else
12562 ld_shlibs=no
12563 fi
12564 ;;
12565
12566 netbsd*)
12567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12569 wlarc=
12570 else
12571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12573 fi
12574 ;;
12575
12576 solaris* | sysv5*)
12577 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12578 ld_shlibs=no
12579 cat <<EOF 1>&2
12580
12581*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12582*** create shared libraries on Solaris systems. Therefore, libtool
12583*** is disabling shared libraries support. We urge you to upgrade GNU
12584*** binutils to release 2.9.1 or newer. Another option is to modify
12585*** your PATH or compiler configuration so that the native linker is
12586*** used, and then restart.
12587
12588EOF
12589 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12592 else
12593 ld_shlibs=no
12594 fi
12595 ;;
12596
12597 sunos4*)
12598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12599 wlarc=
12600 hardcode_direct=yes
12601 hardcode_shlibpath_var=no
12602 ;;
12603
Reid Spencer2706f8c2004-09-19 23:53:36 +000012604 linux*)
12605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12606 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12607 archive_cmds="$tmp_archive_cmds"
12608 supports_anon_versioning=no
12609 case `$LD -v 2>/dev/null` in
12610 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12613 *\ 2.11.*) ;; # other 2.11 versions
12614 *) supports_anon_versioning=yes ;;
12615 esac
12616 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012617 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12618cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12619$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012620 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12621 else
12622 archive_expsym_cmds="$tmp_archive_cmds"
12623 fi
12624 else
12625 ld_shlibs=no
12626 fi
12627 ;;
12628
John Criswell47fdd832003-07-14 16:52:07 +000012629 *)
12630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12633 else
12634 ld_shlibs=no
12635 fi
12636 ;;
12637 esac
12638
12639 if test "$ld_shlibs" = yes; then
12640 runpath_var=LD_RUN_PATH
12641 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12642 export_dynamic_flag_spec='${wl}--export-dynamic'
12643 # ancient GNU ld didn't support --whole-archive et. al.
12644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12646 else
12647 whole_archive_flag_spec=
12648 fi
12649 fi
12650 else
12651 # PORTME fill in a description of your system's linker (not GNU ld)
12652 case $host_os in
12653 aix3*)
12654 allow_undefined_flag=unsupported
12655 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012656 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 +000012657 # Note: this linker hardcodes the directories in LIBPATH if there
12658 # are no directories specified by -L.
12659 hardcode_minus_L=yes
12660 if test "$GCC" = yes && test -z "$link_static_flag"; then
12661 # Neither direct hardcoding nor static linking is supported with a
12662 # broken collect2.
12663 hardcode_direct=unsupported
12664 fi
12665 ;;
12666
12667 aix4* | aix5*)
12668 if test "$host_cpu" = ia64; then
12669 # On IA64, the linker does run time linking by default, so we don't
12670 # have to do anything special.
12671 aix_use_runtimelinking=no
12672 exp_sym_flag='-Bexport'
12673 no_entry_flag=""
12674 else
12675 # If we're using GNU nm, then we don't want the "-C" option.
12676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12678 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'
12679 else
12680 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'
12681 fi
12682 aix_use_runtimelinking=no
12683
12684 # Test if we are trying to use run time linking or normal
12685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12686 # need to do runtime linking.
12687 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12688 for ld_flag in $LDFLAGS; do
12689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12690 aix_use_runtimelinking=yes
12691 break
12692 fi
12693 done
12694 esac
12695
12696 exp_sym_flag='-bexport'
12697 no_entry_flag='-bnoentry'
12698 fi
12699
12700 # When large executables or shared objects are built, AIX ld can
12701 # have problems creating the table of contents. If linking a library
12702 # or program results in "error TOC overflow" add -mminimal-toc to
12703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12705
12706 archive_cmds=''
12707 hardcode_direct=yes
12708 hardcode_libdir_separator=':'
12709 link_all_deplibs=yes
12710
12711 if test "$GCC" = yes; then
12712 case $host_os in aix4.012|aix4.012.*)
12713 # We only want to do this on AIX 4.2 and lower, the check
12714 # below for broken collect2 doesn't work under 4.3+
12715 collect2name=`${CC} -print-prog-name=collect2`
12716 if test -f "$collect2name" && \
12717 strings "$collect2name" | grep resolve_lib_name >/dev/null
12718 then
12719 # We have reworked collect2
12720 hardcode_direct=yes
12721 else
12722 # We have old collect2
12723 hardcode_direct=unsupported
12724 # It fails to find uninstalled libraries when the uninstalled
12725 # path is not listed in the libpath. Setting hardcode_minus_L
12726 # to unsupported forces relinking
12727 hardcode_minus_L=yes
12728 hardcode_libdir_flag_spec='-L$libdir'
12729 hardcode_libdir_separator=
12730 fi
12731 esac
12732 shared_flag='-shared'
12733 else
12734 # not using gcc
12735 if test "$host_cpu" = ia64; then
12736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12737 # chokes on -Wl,-G. The following line is correct:
12738 shared_flag='-G'
12739 else
12740 if test "$aix_use_runtimelinking" = yes; then
12741 shared_flag='${wl}-G'
12742 else
12743 shared_flag='${wl}-bM:SRE'
12744 fi
12745 fi
12746 fi
12747
12748 # It seems that -bexpall does not export symbols beginning with
12749 # underscore (_), so it is better to generate a list of symbols to export.
12750 always_export_symbols=yes
12751 if test "$aix_use_runtimelinking" = yes; then
12752 # Warning - without using the other runtime loading flags (-brtl),
12753 # -berok will link without error, but may produce a broken library.
12754 allow_undefined_flag='-berok'
12755 # Determine the default libpath from the value encoded in an empty executable.
12756 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012762
John Criswell7a73b802003-06-30 21:59:07 +000012763int
12764main ()
12765{
John Criswell47fdd832003-07-14 16:52:07 +000012766
John Criswell7a73b802003-06-30 21:59:07 +000012767 ;
12768 return 0;
12769}
12770_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012771rm -f conftest.$ac_objext conftest$ac_exeext
12772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012773 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012793
John Criswell47fdd832003-07-14 16:52:07 +000012794aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12795}'`
12796# Check for a 64-bit object if we didn't find anything.
12797if 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; }
12798}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012799else
12800 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012801sed 's/^/| /' conftest.$ac_ext >&5
12802
John Criswell7a73b802003-06-30 21:59:07 +000012803fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012804rm -f conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012807
John Criswell47fdd832003-07-14 16:52:07 +000012808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12809 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"
12810 else
12811 if test "$host_cpu" = ia64; then
12812 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12813 allow_undefined_flag="-z nodefs"
12814 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"
12815 else
12816 # Determine the default libpath from the value encoded in an empty executable.
12817 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012823
John Criswell47fdd832003-07-14 16:52:07 +000012824int
12825main ()
12826{
John Criswell7a73b802003-06-30 21:59:07 +000012827
John Criswell47fdd832003-07-14 16:52:07 +000012828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012834 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012841 { ac_try='test -z "$ac_c_werror_flag"
12842 || test ! -s conftest.err'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } &&
12848 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012854
John Criswell47fdd832003-07-14 16:52:07 +000012855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12856}'`
12857# Check for a 64-bit object if we didn't find anything.
12858if 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; }
12859}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012860else
John Criswell47fdd832003-07-14 16:52:07 +000012861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012862sed 's/^/| /' conftest.$ac_ext >&5
12863
John Criswell47fdd832003-07-14 16:52:07 +000012864fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012865rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012868
John Criswell47fdd832003-07-14 16:52:07 +000012869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12870 # Warning - without using the other run time loading flags,
12871 # -berok will link without error, but may produce a broken library.
12872 no_undefined_flag=' ${wl}-bernotok'
12873 allow_undefined_flag=' ${wl}-berok'
12874 # -bexpall does not export symbols beginning with underscore (_)
12875 always_export_symbols=yes
12876 # Exported symbols can be pulled into shared objects from archives
12877 whole_archive_flag_spec=' '
12878 archive_cmds_need_lc=yes
12879 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012880 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 +000012881 fi
12882 fi
John Criswell7a73b802003-06-30 21:59:07 +000012883 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012884
12885 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012886 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 +000012887 hardcode_libdir_flag_spec='-L$libdir'
12888 hardcode_minus_L=yes
12889 # see comment about different semantics on the GNU ld section
12890 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012892
Reid Spencer2706f8c2004-09-19 23:53:36 +000012893 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012894 export_dynamic_flag_spec=-rdynamic
12895 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012896
John Criswell47fdd832003-07-14 16:52:07 +000012897 cygwin* | mingw* | pw32*)
12898 # When not using gcc, we currently assume that we are using
12899 # Microsoft Visual C++.
12900 # hardcode_libdir_flag_spec is actually meaningless, as there is
12901 # no search path for DLLs.
12902 hardcode_libdir_flag_spec=' '
12903 allow_undefined_flag=unsupported
12904 # Tell ltmain to make .lib files, not .a files.
12905 libext=lib
12906 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012907 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012908 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012909 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012910 # The linker will automatically build a .lib file if we build a DLL.
12911 old_archive_From_new_cmds='true'
12912 # FIXME: Should let the user specify the lib program.
12913 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12914 fix_srcfile_path='`cygpath -w "$srcfile"`'
12915 enable_shared_with_static_runtimes=yes
12916 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012917
John Criswell47fdd832003-07-14 16:52:07 +000012918 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012919 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012920 rhapsody* | darwin1.[012])
12921 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12922 ;;
12923 *) # Darwin 1.3 on
12924 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12925 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12926 else
12927 case ${MACOSX_DEPLOYMENT_TARGET} in
12928 10.[012])
12929 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12930 ;;
12931 10.*)
12932 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12933 ;;
12934 esac
12935 fi
12936 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012937 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012938 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012939 hardcode_direct=no
12940 hardcode_automatic=yes
12941 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012942 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012943 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012944 if test "$GCC" = yes ; then
12945 output_verbose_link_cmd='echo'
12946 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12947 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12948 # 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 +000012949 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}'
12950 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 +000012951 else
12952 case "$cc_basename" in
12953 xlc*)
12954 output_verbose_link_cmd='echo'
12955 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12956 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12957 # 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 +000012958 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}'
12959 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 +000012960 ;;
12961 *)
12962 ld_shlibs=no
12963 ;;
12964 esac
John Criswell7a73b802003-06-30 21:59:07 +000012965 fi
John Criswell47fdd832003-07-14 16:52:07 +000012966 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012967
John Criswell47fdd832003-07-14 16:52:07 +000012968 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012970 hardcode_libdir_flag_spec='-L$libdir'
12971 hardcode_shlibpath_var=no
12972 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012973
John Criswell47fdd832003-07-14 16:52:07 +000012974 freebsd1*)
12975 ld_shlibs=no
12976 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012977
John Criswell47fdd832003-07-14 16:52:07 +000012978 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12979 # support. Future versions do this automatically, but an explicit c++rt0.o
12980 # does not break anything, and helps significantly (at the cost of a little
12981 # extra space).
12982 freebsd2.2*)
12983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12984 hardcode_libdir_flag_spec='-R$libdir'
12985 hardcode_direct=yes
12986 hardcode_shlibpath_var=no
12987 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012988
John Criswell47fdd832003-07-14 16:52:07 +000012989 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12990 freebsd2*)
12991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12992 hardcode_direct=yes
12993 hardcode_minus_L=yes
12994 hardcode_shlibpath_var=no
12995 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012996
John Criswell47fdd832003-07-14 16:52:07 +000012997 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012998 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012999 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13000 hardcode_libdir_flag_spec='-R$libdir'
13001 hardcode_direct=yes
13002 hardcode_shlibpath_var=no
13003 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013004
John Criswell47fdd832003-07-14 16:52:07 +000013005 hpux9*)
13006 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013007 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 +000013008 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013009 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 +000013010 fi
13011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13012 hardcode_libdir_separator=:
13013 hardcode_direct=yes
13014
13015 # hardcode_minus_L: Not really in the search PATH,
13016 # but as the default location of the library.
13017 hardcode_minus_L=yes
13018 export_dynamic_flag_spec='${wl}-E'
13019 ;;
13020
13021 hpux10* | hpux11*)
13022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13023 case "$host_cpu" in
13024 hppa*64*|ia64*)
13025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13026 ;;
13027 *)
13028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13029 ;;
13030 esac
13031 else
13032 case "$host_cpu" in
13033 hppa*64*|ia64*)
13034 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13035 ;;
13036 *)
13037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13038 ;;
13039 esac
13040 fi
13041 if test "$with_gnu_ld" = no; then
13042 case "$host_cpu" in
13043 hppa*64*)
13044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13045 hardcode_libdir_flag_spec_ld='+b $libdir'
13046 hardcode_libdir_separator=:
13047 hardcode_direct=no
13048 hardcode_shlibpath_var=no
13049 ;;
13050 ia64*)
13051 hardcode_libdir_flag_spec='-L$libdir'
13052 hardcode_direct=no
13053 hardcode_shlibpath_var=no
13054
13055 # hardcode_minus_L: Not really in the search PATH,
13056 # but as the default location of the library.
13057 hardcode_minus_L=yes
13058 ;;
13059 *)
13060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13061 hardcode_libdir_separator=:
13062 hardcode_direct=yes
13063 export_dynamic_flag_spec='${wl}-E'
13064
13065 # hardcode_minus_L: Not really in the search PATH,
13066 # but as the default location of the library.
13067 hardcode_minus_L=yes
13068 ;;
13069 esac
13070 fi
13071 ;;
13072
13073 irix5* | irix6* | nonstopux*)
13074 if test "$GCC" = yes; then
13075 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'
13076 else
13077 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'
13078 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13079 fi
13080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13081 hardcode_libdir_separator=:
13082 link_all_deplibs=yes
13083 ;;
13084
13085 netbsd*)
13086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13088 else
13089 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13090 fi
13091 hardcode_libdir_flag_spec='-R$libdir'
13092 hardcode_direct=yes
13093 hardcode_shlibpath_var=no
13094 ;;
13095
13096 newsos6)
13097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13098 hardcode_direct=yes
13099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13100 hardcode_libdir_separator=:
13101 hardcode_shlibpath_var=no
13102 ;;
13103
13104 openbsd*)
13105 hardcode_direct=yes
13106 hardcode_shlibpath_var=no
13107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013109 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 +000013110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13111 export_dynamic_flag_spec='${wl}-E'
13112 else
13113 case $host_os in
13114 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13116 hardcode_libdir_flag_spec='-R$libdir'
13117 ;;
13118 *)
13119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13121 ;;
13122 esac
13123 fi
13124 ;;
13125
13126 os2*)
13127 hardcode_libdir_flag_spec='-L$libdir'
13128 hardcode_minus_L=yes
13129 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013130 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 +000013131 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13132 ;;
13133
13134 osf3*)
13135 if test "$GCC" = yes; then
13136 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13137 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'
13138 else
13139 allow_undefined_flag=' -expect_unresolved \*'
13140 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'
13141 fi
13142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13143 hardcode_libdir_separator=:
13144 ;;
13145
13146 osf4* | osf5*) # as osf3* with the addition of -msym flag
13147 if test "$GCC" = yes; then
13148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13149 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'
13150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13151 else
13152 allow_undefined_flag=' -expect_unresolved \*'
13153 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 +000013154 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13155 $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'
13156
John Criswell47fdd832003-07-14 16:52:07 +000013157 # Both c and cxx compiler support -rpath directly
13158 hardcode_libdir_flag_spec='-rpath $libdir'
13159 fi
13160 hardcode_libdir_separator=:
13161 ;;
13162
13163 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13165 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013166 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013167 runpath_var=LD_RUN_PATH
13168 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013169 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013170
John Criswell47fdd832003-07-14 16:52:07 +000013171 solaris*)
13172 no_undefined_flag=' -z text'
13173 if test "$GCC" = yes; then
13174 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013175 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13176 $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 +000013177 else
13178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013179 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13180 $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 +000013181 fi
13182 hardcode_libdir_flag_spec='-R$libdir'
13183 hardcode_shlibpath_var=no
13184 case $host_os in
13185 solaris2.[0-5] | solaris2.[0-5].*) ;;
13186 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13187 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13188 esac
13189 link_all_deplibs=yes
13190 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013191
John Criswell47fdd832003-07-14 16:52:07 +000013192 sunos4*)
13193 if test "x$host_vendor" = xsequent; then
13194 # Use $CC to link under sequent, because it throws in some extra .o
13195 # files that make .init and .fini sections work.
13196 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13197 else
13198 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13199 fi
13200 hardcode_libdir_flag_spec='-L$libdir'
13201 hardcode_direct=yes
13202 hardcode_minus_L=yes
13203 hardcode_shlibpath_var=no
13204 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013205
John Criswell47fdd832003-07-14 16:52:07 +000013206 sysv4)
13207 case $host_vendor in
13208 sni)
13209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13210 hardcode_direct=yes # is this really true???
13211 ;;
13212 siemens)
13213 ## LD is ld it makes a PLAMLIB
13214 ## CC just makes a GrossModule.
13215 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13216 reload_cmds='$CC -r -o $output$reload_objs'
13217 hardcode_direct=no
13218 ;;
13219 motorola)
13220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13222 ;;
13223 esac
13224 runpath_var='LD_RUN_PATH'
13225 hardcode_shlibpath_var=no
13226 ;;
13227
13228 sysv4.3*)
13229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230 hardcode_shlibpath_var=no
13231 export_dynamic_flag_spec='-Bexport'
13232 ;;
13233
13234 sysv4*MP*)
13235 if test -d /usr/nec; then
13236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237 hardcode_shlibpath_var=no
13238 runpath_var=LD_RUN_PATH
13239 hardcode_runpath_var=yes
13240 ld_shlibs=yes
13241 fi
13242 ;;
13243
13244 sysv4.2uw2*)
13245 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13246 hardcode_direct=yes
13247 hardcode_minus_L=no
13248 hardcode_shlibpath_var=no
13249 hardcode_runpath_var=yes
13250 runpath_var=LD_RUN_PATH
13251 ;;
13252
13253 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13254 no_undefined_flag='${wl}-z ${wl}text'
13255 if test "$GCC" = yes; then
13256 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13257 else
13258 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13259 fi
13260 runpath_var='LD_RUN_PATH'
13261 hardcode_shlibpath_var=no
13262 ;;
13263
13264 sysv5*)
13265 no_undefined_flag=' -z text'
13266 # $CC -shared without GNU ld will not create a library from C++
13267 # object files and a static libstdc++, better avoid it by now
13268 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013269 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13270 $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 +000013271 hardcode_libdir_flag_spec=
13272 hardcode_shlibpath_var=no
13273 runpath_var='LD_RUN_PATH'
13274 ;;
13275
13276 uts4*)
13277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13278 hardcode_libdir_flag_spec='-L$libdir'
13279 hardcode_shlibpath_var=no
13280 ;;
13281
13282 *)
13283 ld_shlibs=no
13284 ;;
13285 esac
13286 fi
13287
John Criswell7a73b802003-06-30 21:59:07 +000013288echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13289echo "${ECHO_T}$ld_shlibs" >&6
13290test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013291
John Criswell47fdd832003-07-14 16:52:07 +000013292variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13293if test "$GCC" = yes; then
13294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13295fi
13296
13297#
13298# Do we need to explicitly link libc?
13299#
13300case "x$archive_cmds_need_lc" in
13301x|xyes)
13302 # Assume -lc should be added
13303 archive_cmds_need_lc=yes
13304
13305 if test "$enable_shared" = yes && test "$GCC" = yes; then
13306 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013307 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013308 # FIXME: we may have to deal with multi-command sequences.
13309 ;;
13310 '$CC '*)
13311 # Test whether the compiler implicitly links with -lc since on some
13312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13313 # to ld, don't add -lc before -lgcc.
13314 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13315echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13316 $rm conftest*
13317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13318
13319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320 (eval $ac_compile) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } 2>conftest.err; then
13324 soname=conftest
13325 lib=conftest
13326 libobjs=conftest.$ac_objext
13327 deplibs=
13328 wl=$lt_prog_compiler_wl
13329 compiler_flags=-v
13330 linker_flags=-v
13331 verstring=
13332 output_objdir=.
13333 libname=conftest
13334 lt_save_allow_undefined_flag=$allow_undefined_flag
13335 allow_undefined_flag=
13336 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13337 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }
13341 then
13342 archive_cmds_need_lc=no
13343 else
13344 archive_cmds_need_lc=yes
13345 fi
13346 allow_undefined_flag=$lt_save_allow_undefined_flag
13347 else
13348 cat conftest.err 1>&5
13349 fi
13350 $rm conftest*
13351 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13352echo "${ECHO_T}$archive_cmds_need_lc" >&6
13353 ;;
13354 esac
13355 fi
13356 ;;
13357esac
13358
John Criswell7a73b802003-06-30 21:59:07 +000013359echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13361library_names_spec=
13362libname_spec='lib$name'
13363soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013364shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013365postinstall_cmds=
13366postuninstall_cmds=
13367finish_cmds=
13368finish_eval=
13369shlibpath_var=
13370shlibpath_overrides_runpath=unknown
13371version_type=none
13372dynamic_linker="$host_os ld.so"
13373sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013374if test "$GCC" = yes; then
13375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13377 # if the path contains ";" then we assume it to be the separator
13378 # otherwise default to the standard path separator (i.e. ":") - it is
13379 # assumed that no part of a normal pathname contains ";" but that should
13380 # okay in the real world where ";" in dirpaths is itself problematic.
13381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13382 else
13383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13384 fi
13385else
13386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13387fi
13388need_lib_prefix=unknown
13389hardcode_into_libs=no
13390
13391# when you set need_version to no, make sure it does not cause -set_version
13392# flags to be left without arguments
13393need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013394
13395case $host_os in
13396aix3*)
13397 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013399 shlibpath_var=LIBPATH
13400
John Criswell47fdd832003-07-14 16:52:07 +000013401 # AIX 3 has no versioning support, so we append a major version to the name.
13402 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013403 ;;
13404
13405aix4* | aix5*)
13406 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013407 need_lib_prefix=no
13408 need_version=no
13409 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013410 if test "$host_cpu" = ia64; then
13411 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013413 shlibpath_var=LD_LIBRARY_PATH
13414 else
13415 # With GCC up to 2.95.x, collect2 would create an import file
13416 # for dependence libraries. The import file would start with
13417 # the line `#! .'. This would cause the generated library to
13418 # depend on `.', always an invalid library. This was fixed in
13419 # development snapshots of GCC prior to 3.0.
13420 case $host_os in
13421 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13423 echo ' yes '
13424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13425 :
13426 else
13427 can_build_shared=no
13428 fi
13429 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013430 esac
John Criswell47fdd832003-07-14 16:52:07 +000013431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13432 # soname into executable. Probably we can add versioning support to
13433 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013434 if test "$aix_use_runtimelinking" = yes; then
13435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13436 # instead of lib<name>.a to let people know that these are not
13437 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013439 else
13440 # We preserve .a as extension for shared libraries through AIX4.2
13441 # and later when we are not doing run time linking.
13442 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013443 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013444 fi
13445 shlibpath_var=LIBPATH
13446 fi
13447 ;;
13448
13449amigaos*)
13450 library_names_spec='$libname.ixlibrary $libname.a'
13451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013452 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 +000013453 ;;
13454
13455beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013456 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013457 dynamic_linker="$host_os ld.so"
13458 shlibpath_var=LIBRARY_PATH
13459 ;;
13460
Reid Spencer2706f8c2004-09-19 23:53:36 +000013461bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013462 version_type=linux
13463 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013470 # the default ld.so.conf also contains /usr/contrib/lib and
13471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13472 # libtool to hard-code these into programs
13473 ;;
13474
13475cygwin* | mingw* | pw32*)
13476 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013477 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013478 need_version=no
13479 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013480
John Criswell7a73b802003-06-30 21:59:07 +000013481 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013482 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013483 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013485 postinstall_cmds='base_file=`basename \${file}`~
13486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13487 dldir=$destdir/`dirname \$dlpath`~
13488 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013489 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13491 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013492 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013493 shlibpath_overrides_runpath=yes
13494
13495 case $host_os in
13496 cygwin*)
13497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13498 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 +000013499 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013500 ;;
13501 mingw*)
13502 # MinGW DLLs use traditional 'lib' prefix
13503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13505 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13506 # It is most probably a Windows format PATH printed by
13507 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13508 # path with ; separators, and with drive letters. We can handle the
13509 # drive letters (cygwin fileutils understands them), so leave them,
13510 # especially as we might pass files found there to a mingw objdump,
13511 # which wouldn't understand a cygwinified path. Ahh.
13512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13513 else
13514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13515 fi
13516 ;;
13517 pw32*)
13518 # pw32 DLLs use 'pw' prefix rather than 'lib'
13519 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13520 ;;
13521 esac
John Criswell7a73b802003-06-30 21:59:07 +000013522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013523
John Criswell7a73b802003-06-30 21:59:07 +000013524 *)
John Criswell47fdd832003-07-14 16:52:07 +000013525 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013526 ;;
13527 esac
13528 dynamic_linker='Win32 ld.exe'
13529 # FIXME: first we should search . and the directory the executable is in
13530 shlibpath_var=PATH
13531 ;;
13532
13533darwin* | rhapsody*)
13534 dynamic_linker="$host_os dyld"
13535 version_type=darwin
13536 need_lib_prefix=no
13537 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013538 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013539 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013540 shlibpath_overrides_runpath=yes
13541 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013542 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013543 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013544 if test "$GCC" = yes; then
13545 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"`
13546 else
13547 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013548 fi
13549 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13550 ;;
13551
13552dgux*)
13553 version_type=linux
13554 need_lib_prefix=no
13555 need_version=no
13556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13557 soname_spec='${libname}${release}${shared_ext}$major'
13558 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013559 ;;
13560
13561freebsd1*)
13562 dynamic_linker=no
13563 ;;
13564
Reid Spencer2706f8c2004-09-19 23:53:36 +000013565kfreebsd*-gnu)
13566 version_type=linux
13567 need_lib_prefix=no
13568 need_version=no
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13570 soname_spec='${libname}${release}${shared_ext}$major'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=no
13573 hardcode_into_libs=yes
13574 dynamic_linker='GNU ld.so'
13575 ;;
13576
John Criswell7a73b802003-06-30 21:59:07 +000013577freebsd*)
13578 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13579 version_type=freebsd-$objformat
13580 case $version_type in
13581 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013583 need_version=no
13584 need_lib_prefix=no
13585 ;;
13586 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013588 need_version=yes
13589 ;;
13590 esac
13591 shlibpath_var=LD_LIBRARY_PATH
13592 case $host_os in
13593 freebsd2*)
13594 shlibpath_overrides_runpath=yes
13595 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013596 freebsd3.01* | freebsdelf3.01*)
13597 shlibpath_overrides_runpath=yes
13598 hardcode_into_libs=yes
13599 ;;
13600 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013601 shlibpath_overrides_runpath=no
13602 hardcode_into_libs=yes
13603 ;;
13604 esac
13605 ;;
13606
13607gnu*)
13608 version_type=linux
13609 need_lib_prefix=no
13610 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13612 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013613 shlibpath_var=LD_LIBRARY_PATH
13614 hardcode_into_libs=yes
13615 ;;
13616
13617hpux9* | hpux10* | hpux11*)
13618 # Give a soname corresponding to the major version so that dld.sl refuses to
13619 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013620 version_type=sunos
13621 need_lib_prefix=no
13622 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013623 case "$host_cpu" in
13624 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013625 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013626 hardcode_into_libs=yes
13627 dynamic_linker="$host_os dld.so"
13628 shlibpath_var=LD_LIBRARY_PATH
13629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631 soname_spec='${libname}${release}${shared_ext}$major'
13632 if test "X$HPUX_IA64_MODE" = X32; then
13633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13634 else
13635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13636 fi
13637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13638 ;;
13639 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013640 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013641 hardcode_into_libs=yes
13642 dynamic_linker="$host_os dld.sl"
13643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13649 ;;
13650 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013651 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013652 dynamic_linker="$host_os dld.sl"
13653 shlibpath_var=SHLIB_PATH
13654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 ;;
13658 esac
John Criswell7a73b802003-06-30 21:59:07 +000013659 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13660 postinstall_cmds='chmod 555 $lib'
13661 ;;
13662
John Criswell47fdd832003-07-14 16:52:07 +000013663irix5* | irix6* | nonstopux*)
13664 case $host_os in
13665 nonstopux*) version_type=nonstopux ;;
13666 *)
13667 if test "$lt_cv_prog_gnu_ld" = yes; then
13668 version_type=linux
13669 else
13670 version_type=irix
13671 fi ;;
13672 esac
John Criswell7a73b802003-06-30 21:59:07 +000013673 need_lib_prefix=no
13674 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013675 soname_spec='${libname}${release}${shared_ext}$major'
13676 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 +000013677 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013678 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013679 libsuff= shlibsuff=
13680 ;;
13681 *)
13682 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13684 libsuff= shlibsuff= libmagic=32-bit;;
13685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13686 libsuff=32 shlibsuff=N32 libmagic=N32;;
13687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013689 *) libsuff= shlibsuff= libmagic=never-match;;
13690 esac
13691 ;;
13692 esac
13693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13694 shlibpath_overrides_runpath=no
13695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013697 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013698 ;;
13699
13700# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013701linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013702 dynamic_linker=no
13703 ;;
13704
13705# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013706linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013707 version_type=linux
13708 need_lib_prefix=no
13709 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 shlibpath_overrides_runpath=no
13715 # This implies no fast_install, which is unacceptable.
13716 # Some rework will be needed to allow for fast_install
13717 # before this can be enabled.
13718 hardcode_into_libs=yes
13719
Reid Spencer2706f8c2004-09-19 23:53:36 +000013720 # Append ld.so.conf contents to the search path
13721 if test -f /etc/ld.so.conf; then
13722 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13723 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13724 fi
13725
John Criswell7a73b802003-06-30 21:59:07 +000013726 # We used to test for /lib/ld.so.1 and disable shared libraries on
13727 # powerpc, because MkLinux only supported shared libraries with the
13728 # GNU dynamic linker. Since this was broken with cross compilers,
13729 # most powerpc-linux boxes support dynamic linking these days and
13730 # people can always --disable-shared, the test was removed, and we
13731 # assume the GNU/Linux dynamic linker is in use.
13732 dynamic_linker='GNU/Linux ld.so'
13733 ;;
13734
Reid Spencer2706f8c2004-09-19 23:53:36 +000013735knetbsd*-gnu)
13736 version_type=linux
13737 need_lib_prefix=no
13738 need_version=no
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 shlibpath_var=LD_LIBRARY_PATH
13742 shlibpath_overrides_runpath=no
13743 hardcode_into_libs=yes
13744 dynamic_linker='GNU ld.so'
13745 ;;
13746
John Criswell7a73b802003-06-30 21:59:07 +000013747netbsd*)
13748 version_type=sunos
13749 need_lib_prefix=no
13750 need_version=no
13751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13754 dynamic_linker='NetBSD (a.out) ld.so'
13755 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013757 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013758 dynamic_linker='NetBSD ld.elf_so'
13759 fi
13760 shlibpath_var=LD_LIBRARY_PATH
13761 shlibpath_overrides_runpath=yes
13762 hardcode_into_libs=yes
13763 ;;
13764
13765newsos6)
13766 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=yes
13770 ;;
13771
Reid Spencer2706f8c2004-09-19 23:53:36 +000013772nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013773 version_type=linux
13774 need_lib_prefix=no
13775 need_version=no
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13777 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013778 shlibpath_var=LD_LIBRARY_PATH
13779 shlibpath_overrides_runpath=yes
13780 ;;
13781
13782openbsd*)
13783 version_type=sunos
13784 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013785 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13788 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013789 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 +000013790 case $host_os in
13791 openbsd2.[89] | openbsd2.[89].*)
13792 shlibpath_overrides_runpath=no
13793 ;;
13794 *)
13795 shlibpath_overrides_runpath=yes
13796 ;;
13797 esac
John Criswell7a73b802003-06-30 21:59:07 +000013798 else
13799 shlibpath_overrides_runpath=yes
13800 fi
John Criswell7a73b802003-06-30 21:59:07 +000013801 ;;
13802
13803os2*)
13804 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013805 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013806 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013807 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013808 dynamic_linker='OS/2 ld.exe'
13809 shlibpath_var=LIBPATH
13810 ;;
13811
13812osf3* | osf4* | osf5*)
13813 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013814 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013815 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013818 shlibpath_var=LD_LIBRARY_PATH
13819 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13820 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13821 ;;
13822
13823sco3.2v5*)
13824 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013825 soname_spec='${libname}${release}${shared_ext}$major'
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013827 shlibpath_var=LD_LIBRARY_PATH
13828 ;;
13829
13830solaris*)
13831 version_type=linux
13832 need_lib_prefix=no
13833 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=yes
13838 hardcode_into_libs=yes
13839 # ldd complains unless libraries are executable
13840 postinstall_cmds='chmod +x $lib'
13841 ;;
13842
13843sunos4*)
13844 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13847 shlibpath_var=LD_LIBRARY_PATH
13848 shlibpath_overrides_runpath=yes
13849 if test "$with_gnu_ld" = yes; then
13850 need_lib_prefix=no
13851 fi
13852 need_version=yes
13853 ;;
13854
13855sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13856 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013859 shlibpath_var=LD_LIBRARY_PATH
13860 case $host_vendor in
13861 sni)
13862 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013863 need_lib_prefix=no
13864 export_dynamic_flag_spec='${wl}-Blargedynsym'
13865 runpath_var=LD_RUN_PATH
13866 ;;
13867 siemens)
13868 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013869 ;;
13870 motorola)
13871 need_lib_prefix=no
13872 need_version=no
13873 shlibpath_overrides_runpath=no
13874 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13875 ;;
13876 esac
13877 ;;
13878
John Criswell7a73b802003-06-30 21:59:07 +000013879sysv4*MP*)
13880 if test -d /usr/nec ;then
13881 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013882 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13883 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013884 shlibpath_var=LD_LIBRARY_PATH
13885 fi
13886 ;;
13887
John Criswell47fdd832003-07-14 16:52:07 +000013888uts4*)
13889 version_type=linux
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 ;;
13894
John Criswell7a73b802003-06-30 21:59:07 +000013895*)
13896 dynamic_linker=no
13897 ;;
13898esac
13899echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13900echo "${ECHO_T}$dynamic_linker" >&6
13901test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013902
Reid Spencer2706f8c2004-09-19 23:53:36 +000013903echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13904echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13905hardcode_action=
13906if test -n "$hardcode_libdir_flag_spec" || \
13907 test -n "$runpath_var" || \
13908 test "X$hardcode_automatic" = "Xyes" ; then
13909
13910 # We can hardcode non-existant directories.
13911 if test "$hardcode_direct" != no &&
13912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13913 # have to relink, otherwise we might link with an installed library
13914 # when we should be linking with a yet-to-be-installed one
13915 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13916 test "$hardcode_minus_L" != no; then
13917 # Linking always hardcodes the temporary library directory.
13918 hardcode_action=relink
13919 else
13920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13921 hardcode_action=immediate
13922 fi
13923else
13924 # We cannot hardcode anything, or else we can only hardcode existing
13925 # directories.
13926 hardcode_action=unsupported
13927fi
13928echo "$as_me:$LINENO: result: $hardcode_action" >&5
13929echo "${ECHO_T}$hardcode_action" >&6
13930
13931if test "$hardcode_action" = relink; then
13932 # Fast installation is not supported
13933 enable_fast_install=no
13934elif test "$shlibpath_overrides_runpath" = yes ||
13935 test "$enable_shared" = no; then
13936 # Fast installation is not necessary
13937 enable_fast_install=needless
13938fi
13939
13940striplib=
13941old_striplib=
13942echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13943echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13944if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13945 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13946 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13947 echo "$as_me:$LINENO: result: yes" >&5
13948echo "${ECHO_T}yes" >&6
13949else
13950# FIXME - insert some real tests, host_os isn't really good enough
13951 case $host_os in
13952 darwin*)
13953 if test -n "$STRIP" ; then
13954 striplib="$STRIP -x"
13955 echo "$as_me:$LINENO: result: yes" >&5
13956echo "${ECHO_T}yes" >&6
13957 else
13958 echo "$as_me:$LINENO: result: no" >&5
13959echo "${ECHO_T}no" >&6
13960fi
13961 ;;
13962 *)
13963 echo "$as_me:$LINENO: result: no" >&5
13964echo "${ECHO_T}no" >&6
13965 ;;
13966 esac
13967fi
13968
John Criswell7a73b802003-06-30 21:59:07 +000013969if test "x$enable_dlopen" != xyes; then
13970 enable_dlopen=unknown
13971 enable_dlopen_self=unknown
13972 enable_dlopen_self_static=unknown
13973else
13974 lt_cv_dlopen=no
13975 lt_cv_dlopen_libs=
13976
13977 case $host_os in
13978 beos*)
13979 lt_cv_dlopen="load_add_on"
13980 lt_cv_dlopen_libs=
13981 lt_cv_dlopen_self=yes
13982 ;;
13983
John Criswell47fdd832003-07-14 16:52:07 +000013984 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013985 lt_cv_dlopen="LoadLibrary"
13986 lt_cv_dlopen_libs=
13987 ;;
13988
John Criswell47fdd832003-07-14 16:52:07 +000013989 cygwin*)
13990 lt_cv_dlopen="dlopen"
13991 lt_cv_dlopen_libs=
13992 ;;
13993
13994 darwin*)
13995 # if libdl is installed we need to link against it
13996 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13998if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000else
14001 ac_check_lib_save_LIBS=$LIBS
14002LIBS="-ldl $LIBS"
14003cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000014009
14010/* Override any gcc2 internal prototype to avoid an error. */
14011#ifdef __cplusplus
14012extern "C"
14013#endif
14014/* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000014017int
14018main ()
14019{
14020dlopen ();
14021 ;
14022 return 0;
14023}
14024_ACEOF
14025rm -f conftest.$ac_objext conftest$ac_exeext
14026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014027 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014029 grep -v '^ *+' conftest.er1 >conftest.err
14030 rm -f conftest.er1
14031 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014034 { ac_try='test -z "$ac_c_werror_flag"
14035 || test ! -s conftest.err'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_lib_dl_dlopen=yes
14048else
14049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014050sed 's/^/| /' conftest.$ac_ext >&5
14051
John Criswell47fdd832003-07-14 16:52:07 +000014052ac_cv_lib_dl_dlopen=no
14053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014054rm -f conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014056LIBS=$ac_check_lib_save_LIBS
14057fi
14058echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14060if test $ac_cv_lib_dl_dlopen = yes; then
14061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14062else
14063
14064 lt_cv_dlopen="dyld"
14065 lt_cv_dlopen_libs=
14066 lt_cv_dlopen_self=yes
14067
14068fi
14069
14070 ;;
14071
John Criswell7a73b802003-06-30 21:59:07 +000014072 *)
14073 echo "$as_me:$LINENO: checking for shl_load" >&5
14074echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14075if test "${ac_cv_func_shl_load+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077else
14078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014084/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14086#define shl_load innocuous_shl_load
14087
John Criswell7a73b802003-06-30 21:59:07 +000014088/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014089 which can conflict with char shl_load (); below.
14090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14091 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014092
John Criswell0c38eaf2003-09-10 15:17:25 +000014093#ifdef __STDC__
14094# include <limits.h>
14095#else
14096# include <assert.h>
14097#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014098
14099#undef shl_load
14100
John Criswell7a73b802003-06-30 21:59:07 +000014101/* Override any gcc2 internal prototype to avoid an error. */
14102#ifdef __cplusplus
14103extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014104{
John Criswell7a73b802003-06-30 21:59:07 +000014105#endif
14106/* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14108char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014109/* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112#if defined (__stub_shl_load) || defined (__stub___shl_load)
14113choke me
14114#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014115char (*f) () = shl_load;
14116#endif
14117#ifdef __cplusplus
14118}
John Criswell7a73b802003-06-30 21:59:07 +000014119#endif
14120
John Criswell0c38eaf2003-09-10 15:17:25 +000014121int
14122main ()
14123{
14124return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014125 ;
14126 return 0;
14127}
14128_ACEOF
14129rm -f conftest.$ac_objext conftest$ac_exeext
14130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014131 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014132 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014138 { ac_try='test -z "$ac_c_werror_flag"
14139 || test ! -s conftest.err'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; } &&
14145 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_cv_func_shl_load=yes
14152else
14153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014154sed 's/^/| /' conftest.$ac_ext >&5
14155
John Criswell7a73b802003-06-30 21:59:07 +000014156ac_cv_func_shl_load=no
14157fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014158rm -f conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014160fi
14161echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14162echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14163if test $ac_cv_func_shl_load = yes; then
14164 lt_cv_dlopen="shl_load"
14165else
14166 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14167echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14168if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170else
14171 ac_check_lib_save_LIBS=$LIBS
14172LIBS="-ldld $LIBS"
14173cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014179
14180/* Override any gcc2 internal prototype to avoid an error. */
14181#ifdef __cplusplus
14182extern "C"
14183#endif
14184/* We use char because int might match the return type of a gcc2
14185 builtin and then its argument prototype would still apply. */
14186char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014187int
14188main ()
14189{
14190shl_load ();
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195rm -f conftest.$ac_objext conftest$ac_exeext
14196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014197 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014198 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_lib_dld_shl_load=yes
14218else
14219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014220sed 's/^/| /' conftest.$ac_ext >&5
14221
John Criswell7a73b802003-06-30 21:59:07 +000014222ac_cv_lib_dld_shl_load=no
14223fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014224rm -f conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014226LIBS=$ac_check_lib_save_LIBS
14227fi
14228echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14229echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14230if test $ac_cv_lib_dld_shl_load = yes; then
14231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14232else
14233 echo "$as_me:$LINENO: checking for dlopen" >&5
14234echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14235if test "${ac_cv_func_dlopen+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237else
14238 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014239/* confdefs.h. */
14240_ACEOF
14241cat confdefs.h >>conftest.$ac_ext
14242cat >>conftest.$ac_ext <<_ACEOF
14243/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014244/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246#define dlopen innocuous_dlopen
14247
John Criswell7a73b802003-06-30 21:59:07 +000014248/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014249 which can conflict with char dlopen (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014252
John Criswell0c38eaf2003-09-10 15:17:25 +000014253#ifdef __STDC__
14254# include <limits.h>
14255#else
14256# include <assert.h>
14257#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014258
14259#undef dlopen
14260
John Criswell7a73b802003-06-30 21:59:07 +000014261/* Override any gcc2 internal prototype to avoid an error. */
14262#ifdef __cplusplus
14263extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014264{
John Criswell7a73b802003-06-30 21:59:07 +000014265#endif
14266/* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14268char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014269/* The GNU C library defines this for functions which it implements
14270 to always fail with ENOSYS. Some functions are actually named
14271 something starting with __ and the normal name is an alias. */
14272#if defined (__stub_dlopen) || defined (__stub___dlopen)
14273choke me
14274#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014275char (*f) () = dlopen;
14276#endif
14277#ifdef __cplusplus
14278}
John Criswell7a73b802003-06-30 21:59:07 +000014279#endif
14280
John Criswell0c38eaf2003-09-10 15:17:25 +000014281int
14282main ()
14283{
14284return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014285 ;
14286 return 0;
14287}
14288_ACEOF
14289rm -f conftest.$ac_objext conftest$ac_exeext
14290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014291 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014298 { ac_try='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_func_dlopen=yes
14312else
14313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014314sed 's/^/| /' conftest.$ac_ext >&5
14315
John Criswell7a73b802003-06-30 21:59:07 +000014316ac_cv_func_dlopen=no
14317fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014318rm -f conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014320fi
14321echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14322echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14323if test $ac_cv_func_dlopen = yes; then
14324 lt_cv_dlopen="dlopen"
14325else
14326 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14327echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14328if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330else
14331 ac_check_lib_save_LIBS=$LIBS
14332LIBS="-ldl $LIBS"
14333cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014339
14340/* Override any gcc2 internal prototype to avoid an error. */
14341#ifdef __cplusplus
14342extern "C"
14343#endif
14344/* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14346char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014347int
14348main ()
14349{
14350dlopen ();
14351 ;
14352 return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext conftest$ac_exeext
14356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014357 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_lib_dl_dlopen=yes
14378else
14379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014380sed 's/^/| /' conftest.$ac_ext >&5
14381
John Criswell7a73b802003-06-30 21:59:07 +000014382ac_cv_lib_dl_dlopen=no
14383fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014384rm -f conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014386LIBS=$ac_check_lib_save_LIBS
14387fi
14388echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14389echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14390if test $ac_cv_lib_dl_dlopen = yes; then
14391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14392else
14393 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14394echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14395if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 ac_check_lib_save_LIBS=$LIBS
14399LIBS="-lsvld $LIBS"
14400cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014401/* confdefs.h. */
14402_ACEOF
14403cat confdefs.h >>conftest.$ac_ext
14404cat >>conftest.$ac_ext <<_ACEOF
14405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014406
14407/* Override any gcc2 internal prototype to avoid an error. */
14408#ifdef __cplusplus
14409extern "C"
14410#endif
14411/* We use char because int might match the return type of a gcc2
14412 builtin and then its argument prototype would still apply. */
14413char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014414int
14415main ()
14416{
14417dlopen ();
14418 ;
14419 return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext conftest$ac_exeext
14423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014424 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014425 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014426 grep -v '^ *+' conftest.er1 >conftest.err
14427 rm -f conftest.er1
14428 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014431 { ac_try='test -z "$ac_c_werror_flag"
14432 || test ! -s conftest.err'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; } &&
14438 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ac_cv_lib_svld_dlopen=yes
14445else
14446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014447sed 's/^/| /' conftest.$ac_ext >&5
14448
John Criswell7a73b802003-06-30 21:59:07 +000014449ac_cv_lib_svld_dlopen=no
14450fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014451rm -f conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014453LIBS=$ac_check_lib_save_LIBS
14454fi
14455echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14456echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14457if test $ac_cv_lib_svld_dlopen = yes; then
14458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14459else
14460 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14461echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14462if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464else
14465 ac_check_lib_save_LIBS=$LIBS
14466LIBS="-ldld $LIBS"
14467cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014468/* confdefs.h. */
14469_ACEOF
14470cat confdefs.h >>conftest.$ac_ext
14471cat >>conftest.$ac_ext <<_ACEOF
14472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014473
14474/* Override any gcc2 internal prototype to avoid an error. */
14475#ifdef __cplusplus
14476extern "C"
14477#endif
14478/* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14480char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014481int
14482main ()
14483{
14484dld_link ();
14485 ;
14486 return 0;
14487}
14488_ACEOF
14489rm -f conftest.$ac_objext conftest$ac_exeext
14490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014491 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014492 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014493 grep -v '^ *+' conftest.er1 >conftest.err
14494 rm -f conftest.er1
14495 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014498 { ac_try='test -z "$ac_c_werror_flag"
14499 || test ! -s conftest.err'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; } &&
14505 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_cv_lib_dld_dld_link=yes
14512else
14513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014514sed 's/^/| /' conftest.$ac_ext >&5
14515
John Criswell7a73b802003-06-30 21:59:07 +000014516ac_cv_lib_dld_dld_link=no
14517fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014518rm -f conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014520LIBS=$ac_check_lib_save_LIBS
14521fi
14522echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14523echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14524if test $ac_cv_lib_dld_dld_link = yes; then
14525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14526fi
14527
14528
14529fi
14530
14531
14532fi
14533
14534
14535fi
14536
14537
14538fi
14539
14540
14541fi
14542
14543 ;;
14544 esac
14545
14546 if test "x$lt_cv_dlopen" != xno; then
14547 enable_dlopen=yes
14548 else
14549 enable_dlopen=no
14550 fi
14551
14552 case $lt_cv_dlopen in
14553 dlopen)
14554 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014555 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014556
14557 save_LDFLAGS="$LDFLAGS"
14558 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14559
14560 save_LIBS="$LIBS"
14561 LIBS="$lt_cv_dlopen_libs $LIBS"
14562
14563 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14564echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14565if test "${lt_cv_dlopen_self+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567else
14568 if test "$cross_compiling" = yes; then :
14569 lt_cv_dlopen_self=cross
14570else
John Criswell47fdd832003-07-14 16:52:07 +000014571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014572 lt_status=$lt_dlunknown
14573 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +000014574#line 14574 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014575#include "confdefs.h"
14576
14577#if HAVE_DLFCN_H
14578#include <dlfcn.h>
14579#endif
14580
14581#include <stdio.h>
14582
14583#ifdef RTLD_GLOBAL
14584# define LT_DLGLOBAL RTLD_GLOBAL
14585#else
14586# ifdef DL_GLOBAL
14587# define LT_DLGLOBAL DL_GLOBAL
14588# else
14589# define LT_DLGLOBAL 0
14590# endif
14591#endif
14592
14593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14594 find out it does not work in some platform. */
14595#ifndef LT_DLLAZY_OR_NOW
14596# ifdef RTLD_LAZY
14597# define LT_DLLAZY_OR_NOW RTLD_LAZY
14598# else
14599# ifdef DL_LAZY
14600# define LT_DLLAZY_OR_NOW DL_LAZY
14601# else
14602# ifdef RTLD_NOW
14603# define LT_DLLAZY_OR_NOW RTLD_NOW
14604# else
14605# ifdef DL_NOW
14606# define LT_DLLAZY_OR_NOW DL_NOW
14607# else
14608# define LT_DLLAZY_OR_NOW 0
14609# endif
14610# endif
14611# endif
14612# endif
14613#endif
14614
14615#ifdef __cplusplus
14616extern "C" void exit (int);
14617#endif
14618
14619void fnord() { int i=42;}
14620int main ()
14621{
14622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14623 int status = $lt_dlunknown;
14624
14625 if (self)
14626 {
14627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14629 /* dlclose (self); */
14630 }
14631
14632 exit (status);
14633}
14634EOF
14635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14636 (eval $ac_link) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14640 (./conftest; exit; ) 2>/dev/null
14641 lt_status=$?
14642 case x$lt_status in
14643 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14644 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14645 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14646 esac
14647 else :
14648 # compilation failed
14649 lt_cv_dlopen_self=no
14650 fi
14651fi
14652rm -fr conftest*
14653
14654
14655fi
14656echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14657echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14658
14659 if test "x$lt_cv_dlopen_self" = xyes; then
14660 LDFLAGS="$LDFLAGS $link_static_flag"
14661 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14662echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14663if test "${lt_cv_dlopen_self_static+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 if test "$cross_compiling" = yes; then :
14667 lt_cv_dlopen_self_static=cross
14668else
John Criswell47fdd832003-07-14 16:52:07 +000014669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014670 lt_status=$lt_dlunknown
14671 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +000014672#line 14672 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014673#include "confdefs.h"
14674
14675#if HAVE_DLFCN_H
14676#include <dlfcn.h>
14677#endif
14678
14679#include <stdio.h>
14680
14681#ifdef RTLD_GLOBAL
14682# define LT_DLGLOBAL RTLD_GLOBAL
14683#else
14684# ifdef DL_GLOBAL
14685# define LT_DLGLOBAL DL_GLOBAL
14686# else
14687# define LT_DLGLOBAL 0
14688# endif
14689#endif
14690
14691/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14692 find out it does not work in some platform. */
14693#ifndef LT_DLLAZY_OR_NOW
14694# ifdef RTLD_LAZY
14695# define LT_DLLAZY_OR_NOW RTLD_LAZY
14696# else
14697# ifdef DL_LAZY
14698# define LT_DLLAZY_OR_NOW DL_LAZY
14699# else
14700# ifdef RTLD_NOW
14701# define LT_DLLAZY_OR_NOW RTLD_NOW
14702# else
14703# ifdef DL_NOW
14704# define LT_DLLAZY_OR_NOW DL_NOW
14705# else
14706# define LT_DLLAZY_OR_NOW 0
14707# endif
14708# endif
14709# endif
14710# endif
14711#endif
14712
14713#ifdef __cplusplus
14714extern "C" void exit (int);
14715#endif
14716
14717void fnord() { int i=42;}
14718int main ()
14719{
14720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14721 int status = $lt_dlunknown;
14722
14723 if (self)
14724 {
14725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14726 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14727 /* dlclose (self); */
14728 }
14729
14730 exit (status);
14731}
14732EOF
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14738 (./conftest; exit; ) 2>/dev/null
14739 lt_status=$?
14740 case x$lt_status in
14741 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14742 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14743 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14744 esac
14745 else :
14746 # compilation failed
14747 lt_cv_dlopen_self_static=no
14748 fi
14749fi
14750rm -fr conftest*
14751
14752
14753fi
14754echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14755echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14756 fi
14757
14758 CPPFLAGS="$save_CPPFLAGS"
14759 LDFLAGS="$save_LDFLAGS"
14760 LIBS="$save_LIBS"
14761 ;;
14762 esac
14763
14764 case $lt_cv_dlopen_self in
14765 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14766 *) enable_dlopen_self=unknown ;;
14767 esac
14768
14769 case $lt_cv_dlopen_self_static in
14770 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14771 *) enable_dlopen_self_static=unknown ;;
14772 esac
14773fi
14774
14775
John Criswell47fdd832003-07-14 16:52:07 +000014776# Report which librarie types wil actually be built
14777echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14778echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14779echo "$as_me:$LINENO: result: $can_build_shared" >&5
14780echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014781
John Criswell47fdd832003-07-14 16:52:07 +000014782echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14783echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14784test "$can_build_shared" = "no" && enable_shared=no
14785
14786# On AIX, shared libraries and static libraries use the same namespace, and
14787# are all built from PIC.
14788case "$host_os" in
14789aix3*)
14790 test "$enable_shared" = yes && enable_static=no
14791 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014793 postinstall_cmds='$RANLIB $lib'
14794 fi
14795 ;;
14796
Reid Spencer2706f8c2004-09-19 23:53:36 +000014797aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14799 test "$enable_shared" = yes && enable_static=no
14800 fi
John Criswell7a73b802003-06-30 21:59:07 +000014801 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014802esac
14803echo "$as_me:$LINENO: result: $enable_shared" >&5
14804echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014805
John Criswell47fdd832003-07-14 16:52:07 +000014806echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14807echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14808# Make sure either enable_shared or enable_static is yes.
14809test "$enable_shared" = yes || enable_static=yes
14810echo "$as_me:$LINENO: result: $enable_static" >&5
14811echo "${ECHO_T}$enable_static" >&6
14812
14813# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014814# libtool distribution, otherwise you forgot to ship ltmain.sh
14815# with your package, and you will get complaints that there are
14816# no rules to generate ltmain.sh.
14817if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014818 # See if we are running on zsh, and set the options which allow our commands through
14819 # without removal of \ escapes.
14820 if test -n "${ZSH_VERSION+set}" ; then
14821 setopt NO_GLOB_SUBST
14822 fi
John Criswell7a73b802003-06-30 21:59:07 +000014823 # Now quote all the things that may contain metacharacters while being
14824 # careful not to overquote the AC_SUBSTed values. We take copies of the
14825 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014826 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14827 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14830 deplibs_check_method reload_flag reload_cmds need_locks \
14831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14832 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014834 old_postinstall_cmds old_postuninstall_cmds \
14835 compiler \
14836 CC \
14837 LD \
14838 lt_prog_compiler_wl \
14839 lt_prog_compiler_pic \
14840 lt_prog_compiler_static \
14841 lt_prog_compiler_no_builtin_flag \
14842 export_dynamic_flag_spec \
14843 thread_safe_flag_spec \
14844 whole_archive_flag_spec \
14845 enable_shared_with_static_runtimes \
14846 old_archive_cmds \
14847 old_archive_from_new_cmds \
14848 predep_objects \
14849 postdep_objects \
14850 predeps \
14851 postdeps \
14852 compiler_lib_search_path \
14853 archive_cmds \
14854 archive_expsym_cmds \
14855 postinstall_cmds \
14856 postuninstall_cmds \
14857 old_archive_from_expsyms_cmds \
14858 allow_undefined_flag \
14859 no_undefined_flag \
14860 export_symbols_cmds \
14861 hardcode_libdir_flag_spec \
14862 hardcode_libdir_flag_spec_ld \
14863 hardcode_libdir_separator \
14864 hardcode_automatic \
14865 module_cmds \
14866 module_expsym_cmds \
14867 lt_cv_prog_compiler_c_o \
14868 exclude_expsyms \
14869 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014870
14871 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014872 old_archive_cmds | \
14873 old_archive_from_new_cmds | \
14874 archive_cmds | \
14875 archive_expsym_cmds | \
14876 module_cmds | \
14877 module_expsym_cmds | \
14878 old_archive_from_expsyms_cmds | \
14879 export_symbols_cmds | \
14880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014881 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014882 old_postinstall_cmds | old_postuninstall_cmds | \
14883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014884 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014885 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 +000014886 ;;
14887 *)
14888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14889 ;;
14890 esac
14891 done
14892
John Criswell47fdd832003-07-14 16:52:07 +000014893 case $lt_echo in
14894 *'\$0 --fallback-echo"')
14895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14896 ;;
14897 esac
14898
14899cfgfile="${ofile}T"
14900 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14901 $rm -f "$cfgfile"
14902 { echo "$as_me:$LINENO: creating $ofile" >&5
14903echo "$as_me: creating $ofile" >&6;}
14904
14905 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014906#! $SHELL
14907
John Criswell47fdd832003-07-14 16:52:07 +000014908# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014909# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14910# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14911#
John Criswell47fdd832003-07-14 16:52:07 +000014912# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14913# Free Software Foundation, Inc.
14914#
14915# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014916# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14917#
14918# This program is free software; you can redistribute it and/or modify
14919# it under the terms of the GNU General Public License as published by
14920# the Free Software Foundation; either version 2 of the License, or
14921# (at your option) any later version.
14922#
14923# This program is distributed in the hope that it will be useful, but
14924# WITHOUT ANY WARRANTY; without even the implied warranty of
14925# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14926# General Public License for more details.
14927#
14928# You should have received a copy of the GNU General Public License
14929# along with this program; if not, write to the Free Software
14930# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14931#
14932# As a special exception to the GNU General Public License, if you
14933# distribute this file as part of a program that contains a
14934# configuration script generated by Autoconf, you may include it under
14935# the same distribution terms that you use for the rest of that program.
14936
John Criswell47fdd832003-07-14 16:52:07 +000014937# A sed program that does not truncate output.
14938SED=$lt_SED
14939
John Criswell7a73b802003-06-30 21:59:07 +000014940# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014941Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014942
14943# The HP-UX ksh and POSIX shell print the target directory to stdout
14944# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014946
John Criswell47fdd832003-07-14 16:52:07 +000014947# The names of the tagged configurations supported by this script.
14948available_tags=
14949
John Criswell7a73b802003-06-30 21:59:07 +000014950# ### BEGIN LIBTOOL CONFIG
14951
14952# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14953
14954# Shell to use when invoking shell scripts.
14955SHELL=$lt_SHELL
14956
14957# Whether or not to build shared libraries.
14958build_libtool_libs=$enable_shared
14959
14960# Whether or not to build static libraries.
14961build_old_libs=$enable_static
14962
14963# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014964build_libtool_need_lc=$archive_cmds_need_lc
14965
14966# Whether or not to disallow shared libs when runtime libs are static
14967allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014968
14969# Whether or not to optimize for fast installation.
14970fast_install=$enable_fast_install
14971
14972# The host system.
14973host_alias=$host_alias
14974host=$host
14975
14976# An echo program that does not interpret backslashes.
14977echo=$lt_echo
14978
14979# The archiver.
14980AR=$lt_AR
14981AR_FLAGS=$lt_AR_FLAGS
14982
John Criswell47fdd832003-07-14 16:52:07 +000014983# A C compiler.
14984LTCC=$lt_LTCC
14985
14986# A language-specific compiler.
14987CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014988
14989# Is the compiler the GNU C compiler?
14990with_gcc=$GCC
14991
John Criswell47fdd832003-07-14 16:52:07 +000014992# An ERE matcher.
14993EGREP=$lt_EGREP
14994
John Criswell7a73b802003-06-30 21:59:07 +000014995# The linker used to build libraries.
14996LD=$lt_LD
14997
14998# Whether we need hard or soft links.
14999LN_S=$lt_LN_S
15000
15001# A BSD-compatible nm program.
15002NM=$lt_NM
15003
15004# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015005STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000015006
15007# Used to examine libraries when file_magic_cmd begins "file"
15008MAGIC_CMD=$MAGIC_CMD
15009
15010# Used on cygwin: DLL creation program.
15011DLLTOOL="$DLLTOOL"
15012
15013# Used on cygwin: object dumper.
15014OBJDUMP="$OBJDUMP"
15015
15016# Used on cygwin: assembler.
15017AS="$AS"
15018
15019# The name of the directory that contains temporary libtool files.
15020objdir=$objdir
15021
15022# How to create reloadable object files.
15023reload_flag=$lt_reload_flag
15024reload_cmds=$lt_reload_cmds
15025
15026# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000015027wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000015028
15029# Object file suffix (normally "o").
15030objext="$ac_objext"
15031
15032# Old archive suffix (normally "a").
15033libext="$libext"
15034
John Criswell47fdd832003-07-14 16:52:07 +000015035# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015036shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015037
John Criswell7a73b802003-06-30 21:59:07 +000015038# Executable file suffix (normally "").
15039exeext="$exeext"
15040
15041# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000015042pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000015043pic_mode=$pic_mode
15044
John Criswell47fdd832003-07-14 16:52:07 +000015045# What is the maximum length of a command?
15046max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000015047
John Criswell47fdd832003-07-14 16:52:07 +000015048# Does compiler simultaneously support -c and -o options?
15049compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000015050
15051# Must we lock files when doing compilation ?
15052need_locks=$lt_need_locks
15053
15054# Do we need the lib prefix for modules?
15055need_lib_prefix=$need_lib_prefix
15056
15057# Do we need a version for libraries?
15058need_version=$need_version
15059
15060# Whether dlopen is supported.
15061dlopen_support=$enable_dlopen
15062
15063# Whether dlopen of programs is supported.
15064dlopen_self=$enable_dlopen_self
15065
15066# Whether dlopen of statically linked programs is supported.
15067dlopen_self_static=$enable_dlopen_self_static
15068
15069# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000015070link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000015071
15072# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000015073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000015074
15075# Compiler flag to allow reflexive dlopens.
15076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15077
15078# Compiler flag to generate shared objects directly from archives.
15079whole_archive_flag_spec=$lt_whole_archive_flag_spec
15080
15081# Compiler flag to generate thread-safe objects.
15082thread_safe_flag_spec=$lt_thread_safe_flag_spec
15083
15084# Library versioning type.
15085version_type=$version_type
15086
15087# Format of library name prefix.
15088libname_spec=$lt_libname_spec
15089
15090# List of archive names. First name is the real one, the rest are links.
15091# The last name is the one that the linker finds with -lNAME.
15092library_names_spec=$lt_library_names_spec
15093
15094# The coded name of the library, if different from the real name.
15095soname_spec=$lt_soname_spec
15096
15097# Commands used to build and install an old-style archive.
15098RANLIB=$lt_RANLIB
15099old_archive_cmds=$lt_old_archive_cmds
15100old_postinstall_cmds=$lt_old_postinstall_cmds
15101old_postuninstall_cmds=$lt_old_postuninstall_cmds
15102
15103# Create an old-style archive from a shared archive.
15104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15105
15106# Create a temporary old-style archive to link instead of a shared archive.
15107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15108
15109# Commands used to build and install a shared archive.
15110archive_cmds=$lt_archive_cmds
15111archive_expsym_cmds=$lt_archive_expsym_cmds
15112postinstall_cmds=$lt_postinstall_cmds
15113postuninstall_cmds=$lt_postuninstall_cmds
15114
John Criswell47fdd832003-07-14 16:52:07 +000015115# Commands used to build a loadable module (assumed same as above if empty)
15116module_cmds=$lt_module_cmds
15117module_expsym_cmds=$lt_module_expsym_cmds
15118
John Criswell7a73b802003-06-30 21:59:07 +000015119# Commands to strip libraries.
15120old_striplib=$lt_old_striplib
15121striplib=$lt_striplib
15122
John Criswell47fdd832003-07-14 16:52:07 +000015123# Dependencies to place before the objects being linked to create a
15124# shared library.
15125predep_objects=$lt_predep_objects
15126
15127# Dependencies to place after the objects being linked to create a
15128# shared library.
15129postdep_objects=$lt_postdep_objects
15130
15131# Dependencies to place before the objects being linked to create a
15132# shared library.
15133predeps=$lt_predeps
15134
15135# Dependencies to place after the objects being linked to create a
15136# shared library.
15137postdeps=$lt_postdeps
15138
15139# The library search path used internally by the compiler when linking
15140# a shared library.
15141compiler_lib_search_path=$lt_compiler_lib_search_path
15142
John Criswell7a73b802003-06-30 21:59:07 +000015143# Method to check whether dependent libraries are shared objects.
15144deplibs_check_method=$lt_deplibs_check_method
15145
15146# Command to use when deplibs_check_method == file_magic.
15147file_magic_cmd=$lt_file_magic_cmd
15148
15149# Flag that allows shared libraries with undefined symbols to be built.
15150allow_undefined_flag=$lt_allow_undefined_flag
15151
15152# Flag that forces no undefined symbols.
15153no_undefined_flag=$lt_no_undefined_flag
15154
15155# Commands used to finish a libtool library installation in a directory.
15156finish_cmds=$lt_finish_cmds
15157
15158# Same as above, but a single script fragment to be evaled but not shown.
15159finish_eval=$lt_finish_eval
15160
15161# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015162global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015163
15164# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015165global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015166
15167# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015168global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015169
15170# This is the shared library runtime path variable.
15171runpath_var=$runpath_var
15172
15173# This is the shared library path variable.
15174shlibpath_var=$shlibpath_var
15175
15176# Is shlibpath searched before the hard-coded library search path?
15177shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15178
15179# How to hardcode a shared library path into an executable.
15180hardcode_action=$hardcode_action
15181
15182# Whether we should hardcode library paths into libraries.
15183hardcode_into_libs=$hardcode_into_libs
15184
15185# Flag to hardcode \$libdir into a binary during linking.
15186# This must work even if \$libdir does not exist.
15187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15188
John Criswell47fdd832003-07-14 16:52:07 +000015189# If ld is used when linking, flag to hardcode \$libdir into
15190# a binary during linking. This must work even if \$libdir does
15191# not exist.
15192hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15193
John Criswell7a73b802003-06-30 21:59:07 +000015194# Whether we need a single -rpath flag with a separated argument.
15195hardcode_libdir_separator=$lt_hardcode_libdir_separator
15196
John Criswell47fdd832003-07-14 16:52:07 +000015197# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015198# resulting binary.
15199hardcode_direct=$hardcode_direct
15200
15201# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15202# resulting binary.
15203hardcode_minus_L=$hardcode_minus_L
15204
15205# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15206# the resulting binary.
15207hardcode_shlibpath_var=$hardcode_shlibpath_var
15208
John Criswell47fdd832003-07-14 16:52:07 +000015209# Set to yes if building a shared library automatically hardcodes DIR into the library
15210# and all subsequent libraries and executables linked against it.
15211hardcode_automatic=$hardcode_automatic
15212
John Criswell7a73b802003-06-30 21:59:07 +000015213# Variables whose values should be saved in libtool wrapper scripts and
15214# restored at relink time.
15215variables_saved_for_relink="$variables_saved_for_relink"
15216
15217# Whether libtool must link a program against all its dependency libraries.
15218link_all_deplibs=$link_all_deplibs
15219
15220# Compile-time system search path for libraries
15221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15222
15223# Run-time system search path for libraries
15224sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15225
15226# Fix the shell variable \$srcfile for the compiler.
15227fix_srcfile_path="$fix_srcfile_path"
15228
15229# Set to yes if exported symbols are required.
15230always_export_symbols=$always_export_symbols
15231
15232# The commands to list exported symbols.
15233export_symbols_cmds=$lt_export_symbols_cmds
15234
15235# The commands to extract the exported symbol list from a shared archive.
15236extract_expsyms_cmds=$lt_extract_expsyms_cmds
15237
15238# Symbols that should not be listed in the preloaded symbols.
15239exclude_expsyms=$lt_exclude_expsyms
15240
15241# Symbols that must always be exported.
15242include_expsyms=$lt_include_expsyms
15243
15244# ### END LIBTOOL CONFIG
15245
15246__EOF__
15247
John Criswell47fdd832003-07-14 16:52:07 +000015248
John Criswell7a73b802003-06-30 21:59:07 +000015249 case $host_os in
15250 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015251 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015252
15253# AIX sometimes has problems with the GCC collect2 program. For some
15254# reason, if we set the COLLECT_NAMES environment variable, the problems
15255# vanish in a puff of smoke.
15256if test "X${COLLECT_NAMES+set}" != Xset; then
15257 COLLECT_NAMES=
15258 export COLLECT_NAMES
15259fi
15260EOF
15261 ;;
15262 esac
15263
John Criswell7a73b802003-06-30 21:59:07 +000015264 # We use sed instead of cat because bash on DJGPP gets confused if
15265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15266 # text mode, it properly converts lines to CR/LF. This bash problem
15267 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015268 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015269
John Criswell47fdd832003-07-14 16:52:07 +000015270 mv -f "$cfgfile" "$ofile" || \
15271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015272 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015273
15274else
15275 # If there is no Makefile yet, we rely on a make rule to execute
15276 # `config.status --recheck' to rerun these tests and create the
15277 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015278 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15279 if test -f "$ltmain_in"; then
15280 test -f Makefile && make "$ltmain"
15281 fi
John Criswell7a73b802003-06-30 21:59:07 +000015282fi
John Criswell7a73b802003-06-30 21:59:07 +000015283
15284
John Criswell47fdd832003-07-14 16:52:07 +000015285ac_ext=c
15286ac_cpp='$CPP $CPPFLAGS'
15287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290
15291CC="$lt_save_CC"
15292
15293
15294# Check whether --with-tags or --without-tags was given.
15295if test "${with_tags+set}" = set; then
15296 withval="$with_tags"
15297 tagnames="$withval"
15298fi;
15299
15300if test -f "$ltmain" && test -n "$tagnames"; then
15301 if test ! -f "${ofile}"; then
15302 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15303echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15304 fi
15305
15306 if test -z "$LTCC"; then
15307 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15308 if test -z "$LTCC"; then
15309 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15310echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15311 else
15312 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15313echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15314 fi
15315 fi
15316
15317 # Extract list of available tagged configurations in $ofile.
15318 # Note that this assumes the entire list is on one line.
15319 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15320
15321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15322 for tagname in $tagnames; do
15323 IFS="$lt_save_ifs"
15324 # Check whether tagname contains only valid characters
15325 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15326 "") ;;
15327 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15328echo "$as_me: error: invalid tag name: $tagname" >&2;}
15329 { (exit 1); exit 1; }; }
15330 ;;
15331 esac
15332
15333 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15334 then
15335 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15336echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15337 { (exit 1); exit 1; }; }
15338 fi
15339
15340 # Update the list of available tags.
15341 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015342 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015343
15344 case $tagname in
15345 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015346 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15347 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15348 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015349 ac_ext=cc
15350ac_cpp='$CXXCPP $CPPFLAGS'
15351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15354
15355
15356
15357
15358archive_cmds_need_lc_CXX=no
15359allow_undefined_flag_CXX=
15360always_export_symbols_CXX=no
15361archive_expsym_cmds_CXX=
15362export_dynamic_flag_spec_CXX=
15363hardcode_direct_CXX=no
15364hardcode_libdir_flag_spec_CXX=
15365hardcode_libdir_flag_spec_ld_CXX=
15366hardcode_libdir_separator_CXX=
15367hardcode_minus_L_CXX=no
15368hardcode_automatic_CXX=no
15369module_cmds_CXX=
15370module_expsym_cmds_CXX=
15371link_all_deplibs_CXX=unknown
15372old_archive_cmds_CXX=$old_archive_cmds
15373no_undefined_flag_CXX=
15374whole_archive_flag_spec_CXX=
15375enable_shared_with_static_runtimes_CXX=no
15376
15377# Dependencies to place before and after the object being linked:
15378predep_objects_CXX=
15379postdep_objects_CXX=
15380predeps_CXX=
15381postdeps_CXX=
15382compiler_lib_search_path_CXX=
15383
15384# Source file extension for C++ test sources.
15385ac_ext=cc
15386
15387# Object file extension for compiled C++ test sources.
15388objext=o
15389objext_CXX=$objext
15390
15391# Code to be used in simple compile tests
15392lt_simple_compile_test_code="int some_variable = 0;\n"
15393
15394# Code to be used in simple link tests
15395lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15396
15397# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15398
15399# If no C compiler was specified, use CC.
15400LTCC=${LTCC-"$CC"}
15401
15402# Allow CC to be a program name with arguments.
15403compiler=$CC
15404
15405
15406# Allow CC to be a program name with arguments.
15407lt_save_CC=$CC
15408lt_save_LD=$LD
15409lt_save_GCC=$GCC
15410GCC=$GXX
15411lt_save_with_gnu_ld=$with_gnu_ld
15412lt_save_path_LD=$lt_cv_path_LD
15413if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15414 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15415else
15416 unset lt_cv_prog_gnu_ld
15417fi
15418if test -n "${lt_cv_path_LDCXX+set}"; then
15419 lt_cv_path_LD=$lt_cv_path_LDCXX
15420else
15421 unset lt_cv_path_LD
15422fi
15423test -z "${LDCXX+set}" || LD=$LDCXX
15424CC=${CXX-"c++"}
15425compiler=$CC
15426compiler_CXX=$CC
15427cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15428
15429# We don't want -fno-exception wen compiling C++ code, so set the
15430# no_builtin_flag separately
15431if test "$GXX" = yes; then
15432 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15433else
15434 lt_prog_compiler_no_builtin_flag_CXX=
15435fi
15436
15437if test "$GXX" = yes; then
15438 # Set up default GNU C++ configuration
15439
15440
15441# Check whether --with-gnu-ld or --without-gnu-ld was given.
15442if test "${with_gnu_ld+set}" = set; then
15443 withval="$with_gnu_ld"
15444 test "$withval" = no || with_gnu_ld=yes
15445else
15446 with_gnu_ld=no
15447fi;
15448ac_prog=ld
15449if test "$GCC" = yes; then
15450 # Check if gcc -print-prog-name=ld gives a path.
15451 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15452echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15453 case $host in
15454 *-*-mingw*)
15455 # gcc leaves a trailing carriage return which upsets mingw
15456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15457 *)
15458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15459 esac
15460 case $ac_prog in
15461 # Accept absolute paths.
15462 [\\/]* | ?:[\\/]*)
15463 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015464 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015465 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15466 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15467 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15468 done
15469 test -z "$LD" && LD="$ac_prog"
15470 ;;
15471 "")
15472 # If it fails, then pretend we aren't using GCC.
15473 ac_prog=ld
15474 ;;
15475 *)
15476 # If it is relative, then search for the first ld in PATH.
15477 with_gnu_ld=unknown
15478 ;;
15479 esac
15480elif test "$with_gnu_ld" = yes; then
15481 echo "$as_me:$LINENO: checking for GNU ld" >&5
15482echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15483else
15484 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15485echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15486fi
15487if test "${lt_cv_path_LD+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15489else
15490 if test -z "$LD"; then
15491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15492 for ac_dir in $PATH; do
15493 IFS="$lt_save_ifs"
15494 test -z "$ac_dir" && ac_dir=.
15495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15496 lt_cv_path_LD="$ac_dir/$ac_prog"
15497 # Check to see if the program is GNU ld. I'd rather use --version,
15498 # but apparently some GNU ld's only accept -v.
15499 # Break only if it was the GNU/non-GNU ld that we prefer.
15500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15501 *GNU* | *'with BFD'*)
15502 test "$with_gnu_ld" != no && break
15503 ;;
15504 *)
15505 test "$with_gnu_ld" != yes && break
15506 ;;
15507 esac
15508 fi
15509 done
15510 IFS="$lt_save_ifs"
15511else
15512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15513fi
15514fi
15515
15516LD="$lt_cv_path_LD"
15517if test -n "$LD"; then
15518 echo "$as_me:$LINENO: result: $LD" >&5
15519echo "${ECHO_T}$LD" >&6
15520else
15521 echo "$as_me:$LINENO: result: no" >&5
15522echo "${ECHO_T}no" >&6
15523fi
15524test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15525echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15526 { (exit 1); exit 1; }; }
15527echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15528echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15529if test "${lt_cv_prog_gnu_ld+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531else
15532 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015534*GNU* | *'with BFD'*)
15535 lt_cv_prog_gnu_ld=yes
15536 ;;
15537*)
15538 lt_cv_prog_gnu_ld=no
15539 ;;
15540esac
15541fi
15542echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15543echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15544with_gnu_ld=$lt_cv_prog_gnu_ld
15545
15546
15547
15548 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15549 # archiving commands below assume that GNU ld is being used.
15550 if test "$with_gnu_ld" = yes; then
15551 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15552 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'
15553
15554 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15556
15557 # If archive_cmds runs LD, not CC, wlarc should be empty
15558 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15559 # investigate it a little bit more. (MM)
15560 wlarc='${wl}'
15561
15562 # ancient GNU ld didn't support --whole-archive et. al.
15563 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15564 grep 'no-whole-archive' > /dev/null; then
15565 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15566 else
15567 whole_archive_flag_spec_CXX=
15568 fi
15569 else
15570 with_gnu_ld=no
15571 wlarc=
15572
15573 # A generic and very simple default shared library creation
15574 # command for GNU C++ for the case where it uses the native
15575 # linker, instead of GNU ld. If possible, this setting should
15576 # overridden to take advantage of the native linker features on
15577 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015578 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015579 fi
15580
15581 # Commands to make compiler produce verbose output that lists
15582 # what "hidden" libraries, object files and flags are used when
15583 # linking a shared library.
15584 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15585
15586else
15587 GXX=no
15588 with_gnu_ld=no
15589 wlarc=
15590fi
15591
15592# PORTME: fill in a description of your system's C++ link characteristics
15593echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15595ld_shlibs_CXX=yes
15596case $host_os in
15597 aix3*)
15598 # FIXME: insert proper C++ library support
15599 ld_shlibs_CXX=no
15600 ;;
15601 aix4* | aix5*)
15602 if test "$host_cpu" = ia64; then
15603 # On IA64, the linker does run time linking by default, so we don't
15604 # have to do anything special.
15605 aix_use_runtimelinking=no
15606 exp_sym_flag='-Bexport'
15607 no_entry_flag=""
15608 else
15609 aix_use_runtimelinking=no
15610
15611 # Test if we are trying to use run time linking or normal
15612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15613 # need to do runtime linking.
15614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15615 for ld_flag in $LDFLAGS; do
15616 case $ld_flag in
15617 *-brtl*)
15618 aix_use_runtimelinking=yes
15619 break
15620 ;;
15621 esac
15622 done
15623 esac
15624
15625 exp_sym_flag='-bexport'
15626 no_entry_flag='-bnoentry'
15627 fi
15628
15629 # When large executables or shared objects are built, AIX ld can
15630 # have problems creating the table of contents. If linking a library
15631 # or program results in "error TOC overflow" add -mminimal-toc to
15632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15634
15635 archive_cmds_CXX=''
15636 hardcode_direct_CXX=yes
15637 hardcode_libdir_separator_CXX=':'
15638 link_all_deplibs_CXX=yes
15639
15640 if test "$GXX" = yes; then
15641 case $host_os in aix4.012|aix4.012.*)
15642 # We only want to do this on AIX 4.2 and lower, the check
15643 # below for broken collect2 doesn't work under 4.3+
15644 collect2name=`${CC} -print-prog-name=collect2`
15645 if test -f "$collect2name" && \
15646 strings "$collect2name" | grep resolve_lib_name >/dev/null
15647 then
15648 # We have reworked collect2
15649 hardcode_direct_CXX=yes
15650 else
15651 # We have old collect2
15652 hardcode_direct_CXX=unsupported
15653 # It fails to find uninstalled libraries when the uninstalled
15654 # path is not listed in the libpath. Setting hardcode_minus_L
15655 # to unsupported forces relinking
15656 hardcode_minus_L_CXX=yes
15657 hardcode_libdir_flag_spec_CXX='-L$libdir'
15658 hardcode_libdir_separator_CXX=
15659 fi
15660 esac
15661 shared_flag='-shared'
15662 else
15663 # not using gcc
15664 if test "$host_cpu" = ia64; then
15665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15666 # chokes on -Wl,-G. The following line is correct:
15667 shared_flag='-G'
15668 else
15669 if test "$aix_use_runtimelinking" = yes; then
15670 shared_flag='${wl}-G'
15671 else
15672 shared_flag='${wl}-bM:SRE'
15673 fi
15674 fi
15675 fi
15676
15677 # It seems that -bexpall does not export symbols beginning with
15678 # underscore (_), so it is better to generate a list of symbols to export.
15679 always_export_symbols_CXX=yes
15680 if test "$aix_use_runtimelinking" = yes; then
15681 # Warning - without using the other runtime loading flags (-brtl),
15682 # -berok will link without error, but may produce a broken library.
15683 allow_undefined_flag_CXX='-berok'
15684 # Determine the default libpath from the value encoded in an empty executable.
15685 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015691
John Criswell47fdd832003-07-14 16:52:07 +000015692int
15693main ()
15694{
15695
15696 ;
15697 return 0;
15698}
15699_ACEOF
15700rm -f conftest.$ac_objext conftest$ac_exeext
15701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015702 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015709 { ac_try='test -z "$ac_cxx_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722
15723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15724}'`
15725# Check for a 64-bit object if we didn't find anything.
15726if 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; }
15727}'`; fi
15728else
15729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015730sed 's/^/| /' conftest.$ac_ext >&5
15731
John Criswell47fdd832003-07-14 16:52:07 +000015732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015733rm -f conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15736
15737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15738
15739 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"
15740 else
15741 if test "$host_cpu" = ia64; then
15742 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15743 allow_undefined_flag_CXX="-z nodefs"
15744 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"
15745 else
15746 # Determine the default libpath from the value encoded in an empty executable.
15747 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015753
John Criswell47fdd832003-07-14 16:52:07 +000015754int
15755main ()
15756{
15757
15758 ;
15759 return 0;
15760}
15761_ACEOF
15762rm -f conftest.$ac_objext conftest$ac_exeext
15763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015764 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015765 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015771 { ac_try='test -z "$ac_cxx_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784
15785aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15786}'`
15787# Check for a 64-bit object if we didn't find anything.
15788if 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; }
15789}'`; fi
15790else
15791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015792sed 's/^/| /' conftest.$ac_ext >&5
15793
John Criswell47fdd832003-07-14 16:52:07 +000015794fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015795rm -f conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15798
15799 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15800 # Warning - without using the other run time loading flags,
15801 # -berok will link without error, but may produce a broken library.
15802 no_undefined_flag_CXX=' ${wl}-bernotok'
15803 allow_undefined_flag_CXX=' ${wl}-berok'
15804 # -bexpall does not export symbols beginning with underscore (_)
15805 always_export_symbols_CXX=yes
15806 # Exported symbols can be pulled into shared objects from archives
15807 whole_archive_flag_spec_CXX=' '
15808 archive_cmds_need_lc_CXX=yes
15809 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015810 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 +000015811 fi
15812 fi
15813 ;;
15814 chorus*)
15815 case $cc_basename in
15816 *)
15817 # FIXME: insert proper C++ library support
15818 ld_shlibs_CXX=no
15819 ;;
15820 esac
15821 ;;
15822
Reid Spencer2706f8c2004-09-19 23:53:36 +000015823
John Criswell47fdd832003-07-14 16:52:07 +000015824 cygwin* | mingw* | pw32*)
15825 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15826 # as there is no search path for DLLs.
15827 hardcode_libdir_flag_spec_CXX='-L$libdir'
15828 allow_undefined_flag_CXX=unsupported
15829 always_export_symbols_CXX=no
15830 enable_shared_with_static_runtimes_CXX=yes
15831
15832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15833 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'
15834 # If the export-symbols file already is a .def file (1st line
15835 # is EXPORTS), use it as is; otherwise, prepend...
15836 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15837 cp $export_symbols $output_objdir/$soname.def;
15838 else
15839 echo EXPORTS > $output_objdir/$soname.def;
15840 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015841 fi~
15842 $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 +000015843 else
15844 ld_shlibs_CXX=no
15845 fi
15846 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015847 darwin* | rhapsody*)
15848 case "$host_os" in
15849 rhapsody* | darwin1.[012])
15850 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15851 ;;
15852 *) # Darwin 1.3 on
15853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15854 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15855 else
15856 case ${MACOSX_DEPLOYMENT_TARGET} in
15857 10.[012])
15858 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15859 ;;
15860 10.*)
15861 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15862 ;;
15863 esac
15864 fi
15865 ;;
15866 esac
15867 archive_cmds_need_lc_CXX=no
15868 hardcode_direct_CXX=no
15869 hardcode_automatic_CXX=yes
15870 hardcode_shlibpath_var_CXX=unsupported
15871 whole_archive_flag_spec_CXX=''
15872 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015873
Reid Spencer2706f8c2004-09-19 23:53:36 +000015874 if test "$GXX" = yes ; then
15875 lt_int_apple_cc_single_mod=no
15876 output_verbose_link_cmd='echo'
15877 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15878 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015879 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015880 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015881 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 +000015882 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015883 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 +000015884 fi
15885 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15887 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015888 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 +000015889 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015890 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 +000015891 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015892 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 +000015893 else
15894 case "$cc_basename" in
15895 xlc*)
15896 output_verbose_link_cmd='echo'
15897 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'
15898 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15899 # 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 +000015900 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}'
15901 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 +000015902 ;;
15903 *)
15904 ld_shlibs_CXX=no
15905 ;;
15906 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015907 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015908 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015909
15910 dgux*)
15911 case $cc_basename in
15912 ec++)
15913 # FIXME: insert proper C++ library support
15914 ld_shlibs_CXX=no
15915 ;;
15916 ghcx)
15917 # Green Hills C++ Compiler
15918 # FIXME: insert proper C++ library support
15919 ld_shlibs_CXX=no
15920 ;;
15921 *)
15922 # FIXME: insert proper C++ library support
15923 ld_shlibs_CXX=no
15924 ;;
15925 esac
15926 ;;
15927 freebsd12*)
15928 # C++ shared libraries reported to be fairly broken before switch to ELF
15929 ld_shlibs_CXX=no
15930 ;;
15931 freebsd-elf*)
15932 archive_cmds_need_lc_CXX=no
15933 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015934 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015935 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15936 # conventions
15937 ld_shlibs_CXX=yes
15938 ;;
15939 gnu*)
15940 ;;
15941 hpux9*)
15942 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15943 hardcode_libdir_separator_CXX=:
15944 export_dynamic_flag_spec_CXX='${wl}-E'
15945 hardcode_direct_CXX=yes
15946 hardcode_minus_L_CXX=yes # Not in the search PATH,
15947 # but as the default
15948 # location of the library.
15949
15950 case $cc_basename in
15951 CC)
15952 # FIXME: insert proper C++ library support
15953 ld_shlibs_CXX=no
15954 ;;
15955 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015956 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 +000015957 # Commands to make compiler produce verbose output that lists
15958 # what "hidden" libraries, object files and flags are used when
15959 # linking a shared library.
15960 #
15961 # There doesn't appear to be a way to prevent this compiler from
15962 # explicitly linking system object files so we need to strip them
15963 # from the output so that they don't get included in the library
15964 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015965 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 +000015966 ;;
15967 *)
15968 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015969 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 +000015970 else
15971 # FIXME: insert proper C++ library support
15972 ld_shlibs_CXX=no
15973 fi
15974 ;;
15975 esac
15976 ;;
15977 hpux10*|hpux11*)
15978 if test $with_gnu_ld = no; then
15979 case "$host_cpu" in
15980 hppa*64*)
15981 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15983 hardcode_libdir_separator_CXX=:
15984 ;;
15985 ia64*)
15986 hardcode_libdir_flag_spec_CXX='-L$libdir'
15987 ;;
15988 *)
15989 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15990 hardcode_libdir_separator_CXX=:
15991 export_dynamic_flag_spec_CXX='${wl}-E'
15992 ;;
15993 esac
15994 fi
15995 case "$host_cpu" in
15996 hppa*64*)
15997 hardcode_direct_CXX=no
15998 hardcode_shlibpath_var_CXX=no
15999 ;;
16000 ia64*)
16001 hardcode_direct_CXX=no
16002 hardcode_shlibpath_var_CXX=no
16003 hardcode_minus_L_CXX=yes # Not in the search PATH,
16004 # but as the default
16005 # location of the library.
16006 ;;
16007 *)
16008 hardcode_direct_CXX=yes
16009 hardcode_minus_L_CXX=yes # Not in the search PATH,
16010 # but as the default
16011 # location of the library.
16012 ;;
16013 esac
16014
16015 case $cc_basename in
16016 CC)
16017 # FIXME: insert proper C++ library support
16018 ld_shlibs_CXX=no
16019 ;;
16020 aCC)
16021 case "$host_cpu" in
16022 hppa*64*|ia64*)
16023 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16024 ;;
16025 *)
16026 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16027 ;;
16028 esac
16029 # Commands to make compiler produce verbose output that lists
16030 # what "hidden" libraries, object files and flags are used when
16031 # linking a shared library.
16032 #
16033 # There doesn't appear to be a way to prevent this compiler from
16034 # explicitly linking system object files so we need to strip them
16035 # from the output so that they don't get included in the library
16036 # dependencies.
16037 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'
16038 ;;
16039 *)
16040 if test "$GXX" = yes; then
16041 if test $with_gnu_ld = no; then
16042 case "$host_cpu" in
16043 ia64*|hppa*64*)
16044 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16045 ;;
16046 *)
16047 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'
16048 ;;
16049 esac
16050 fi
16051 else
16052 # FIXME: insert proper C++ library support
16053 ld_shlibs_CXX=no
16054 fi
16055 ;;
16056 esac
16057 ;;
16058 irix5* | irix6*)
16059 case $cc_basename in
16060 CC)
16061 # SGI C++
16062 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'
16063
16064 # Archives containing C++ object files must be created using
16065 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16066 # necessary to make sure instantiated templates are included
16067 # in the archive.
16068 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16069 ;;
16070 *)
16071 if test "$GXX" = yes; then
16072 if test "$with_gnu_ld" = no; then
16073 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'
16074 else
16075 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'
16076 fi
16077 fi
16078 link_all_deplibs_CXX=yes
16079 ;;
16080 esac
16081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16082 hardcode_libdir_separator_CXX=:
16083 ;;
16084 linux*)
16085 case $cc_basename in
16086 KCC)
16087 # Kuck and Associates, Inc. (KAI) C++ Compiler
16088
16089 # KCC will only create a shared library if the output file
16090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16091 # to its proper name (with version) after linking.
16092 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'
16093 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'
16094 # Commands to make compiler produce verbose output that lists
16095 # what "hidden" libraries, object files and flags are used when
16096 # linking a shared library.
16097 #
16098 # There doesn't appear to be a way to prevent this compiler from
16099 # explicitly linking system object files so we need to strip them
16100 # from the output so that they don't get included in the library
16101 # dependencies.
16102 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'
16103
16104 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16106
16107 # Archives containing C++ object files must be created using
16108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16110 ;;
16111 icpc)
16112 # Intel C++
16113 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016114 # version 8.0 and above of icpc choke on multiply defined symbols
16115 # if we add $predep_objects and $postdep_objects, however 7.1 and
16116 # earlier do not add the objects themselves.
16117 case `$CC -V 2>&1` in
16118 *"Version 7."*)
16119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16120 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'
16121 ;;
16122 *) # Version 8.0 or newer
16123 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16125 ;;
16126 esac
John Criswell47fdd832003-07-14 16:52:07 +000016127 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16130 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16131 ;;
16132 cxx)
16133 # Compaq C++
16134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16135 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'
16136
16137 runpath_var=LD_RUN_PATH
16138 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16139 hardcode_libdir_separator_CXX=:
16140
16141 # Commands to make compiler produce verbose output that lists
16142 # what "hidden" libraries, object files and flags are used when
16143 # linking a shared library.
16144 #
16145 # There doesn't appear to be a way to prevent this compiler from
16146 # explicitly linking system object files so we need to strip them
16147 # from the output so that they don't get included in the library
16148 # dependencies.
16149 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'
16150 ;;
16151 esac
16152 ;;
16153 lynxos*)
16154 # FIXME: insert proper C++ library support
16155 ld_shlibs_CXX=no
16156 ;;
16157 m88k*)
16158 # FIXME: insert proper C++ library support
16159 ld_shlibs_CXX=no
16160 ;;
16161 mvs*)
16162 case $cc_basename in
16163 cxx)
16164 # FIXME: insert proper C++ library support
16165 ld_shlibs_CXX=no
16166 ;;
16167 *)
16168 # FIXME: insert proper C++ library support
16169 ld_shlibs_CXX=no
16170 ;;
16171 esac
16172 ;;
16173 netbsd*)
16174 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16175 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16176 wlarc=
16177 hardcode_libdir_flag_spec_CXX='-R$libdir'
16178 hardcode_direct_CXX=yes
16179 hardcode_shlibpath_var_CXX=no
16180 fi
16181 # Workaround some broken pre-1.5 toolchains
16182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16183 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016184 openbsd2*)
16185 # C++ shared libraries are fairly broken
16186 ld_shlibs_CXX=no
16187 ;;
16188 openbsd*)
16189 hardcode_direct_CXX=yes
16190 hardcode_shlibpath_var_CXX=no
16191 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16192 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16194 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16195 export_dynamic_flag_spec_CXX='${wl}-E'
16196 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16197 fi
16198 output_verbose_link_cmd='echo'
16199 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016200 osf3*)
16201 case $cc_basename in
16202 KCC)
16203 # Kuck and Associates, Inc. (KAI) C++ Compiler
16204
16205 # KCC will only create a shared library if the output file
16206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16207 # to its proper name (with version) after linking.
16208 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'
16209
16210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16211 hardcode_libdir_separator_CXX=:
16212
16213 # Archives containing C++ object files must be created using
16214 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16215 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16216
16217 ;;
16218 RCC)
16219 # Rational C++ 2.4.1
16220 # FIXME: insert proper C++ library support
16221 ld_shlibs_CXX=no
16222 ;;
16223 cxx)
16224 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16225 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'
16226
16227 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16228 hardcode_libdir_separator_CXX=:
16229
16230 # Commands to make compiler produce verbose output that lists
16231 # what "hidden" libraries, object files and flags are used when
16232 # linking a shared library.
16233 #
16234 # There doesn't appear to be a way to prevent this compiler from
16235 # explicitly linking system object files so we need to strip them
16236 # from the output so that they don't get included in the library
16237 # dependencies.
16238 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'
16239 ;;
16240 *)
16241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16243 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'
16244
16245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16246 hardcode_libdir_separator_CXX=:
16247
16248 # Commands to make compiler produce verbose output that lists
16249 # what "hidden" libraries, object files and flags are used when
16250 # linking a shared library.
16251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16252
16253 else
16254 # FIXME: insert proper C++ library support
16255 ld_shlibs_CXX=no
16256 fi
16257 ;;
16258 esac
16259 ;;
16260 osf4* | osf5*)
16261 case $cc_basename in
16262 KCC)
16263 # Kuck and Associates, Inc. (KAI) C++ Compiler
16264
16265 # KCC will only create a shared library if the output file
16266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16267 # to its proper name (with version) after linking.
16268 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'
16269
16270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16271 hardcode_libdir_separator_CXX=:
16272
16273 # Archives containing C++ object files must be created using
16274 # the KAI C++ compiler.
16275 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16276 ;;
16277 RCC)
16278 # Rational C++ 2.4.1
16279 # FIXME: insert proper C++ library support
16280 ld_shlibs_CXX=no
16281 ;;
16282 cxx)
16283 allow_undefined_flag_CXX=' -expect_unresolved \*'
16284 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 +000016285 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16286 echo "-hidden">> $lib.exp~
16287 $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~
16288 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016289
16290 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16291 hardcode_libdir_separator_CXX=:
16292
16293 # Commands to make compiler produce verbose output that lists
16294 # what "hidden" libraries, object files and flags are used when
16295 # linking a shared library.
16296 #
16297 # There doesn't appear to be a way to prevent this compiler from
16298 # explicitly linking system object files so we need to strip them
16299 # from the output so that they don't get included in the library
16300 # dependencies.
16301 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'
16302 ;;
16303 *)
16304 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16305 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16306 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'
16307
16308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16309 hardcode_libdir_separator_CXX=:
16310
16311 # Commands to make compiler produce verbose output that lists
16312 # what "hidden" libraries, object files and flags are used when
16313 # linking a shared library.
16314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16315
16316 else
16317 # FIXME: insert proper C++ library support
16318 ld_shlibs_CXX=no
16319 fi
16320 ;;
16321 esac
16322 ;;
16323 psos*)
16324 # FIXME: insert proper C++ library support
16325 ld_shlibs_CXX=no
16326 ;;
16327 sco*)
16328 archive_cmds_need_lc_CXX=no
16329 case $cc_basename in
16330 CC)
16331 # FIXME: insert proper C++ library support
16332 ld_shlibs_CXX=no
16333 ;;
16334 *)
16335 # FIXME: insert proper C++ library support
16336 ld_shlibs_CXX=no
16337 ;;
16338 esac
16339 ;;
16340 sunos4*)
16341 case $cc_basename in
16342 CC)
16343 # Sun C++ 4.x
16344 # FIXME: insert proper C++ library support
16345 ld_shlibs_CXX=no
16346 ;;
16347 lcc)
16348 # Lucid
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16351 ;;
16352 *)
16353 # FIXME: insert proper C++ library support
16354 ld_shlibs_CXX=no
16355 ;;
16356 esac
16357 ;;
16358 solaris*)
16359 case $cc_basename in
16360 CC)
16361 # Sun C++ 4.2, 5.x and Centerline C++
16362 no_undefined_flag_CXX=' -zdefs'
16363 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 +000016364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16365 $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 +000016366
16367 hardcode_libdir_flag_spec_CXX='-R$libdir'
16368 hardcode_shlibpath_var_CXX=no
16369 case $host_os in
16370 solaris2.0-5 | solaris2.0-5.*) ;;
16371 *)
16372 # The C++ compiler is used as linker so we must use $wl
16373 # flag to pass the commands to the underlying system
16374 # linker.
16375 # Supported since Solaris 2.6 (maybe 2.5.1?)
16376 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16377 ;;
16378 esac
16379 link_all_deplibs_CXX=yes
16380
16381 # Commands to make compiler produce verbose output that lists
16382 # what "hidden" libraries, object files and flags are used when
16383 # linking a shared library.
16384 #
16385 # There doesn't appear to be a way to prevent this compiler from
16386 # explicitly linking system object files so we need to strip them
16387 # from the output so that they don't get included in the library
16388 # dependencies.
16389 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'
16390
16391 # Archives containing C++ object files must be created using
16392 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16393 # necessary to make sure instantiated templates are included
16394 # in the archive.
16395 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16396 ;;
16397 gcx)
16398 # Green Hills C++ Compiler
16399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16400
16401 # The C++ compiler must be used to create the archive.
16402 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16403 ;;
16404 *)
16405 # GNU C++ compiler with Solaris linker
16406 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16407 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16408 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016409 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 +000016410 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16411 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16412
John Criswell47fdd832003-07-14 16:52:07 +000016413 # Commands to make compiler produce verbose output that lists
16414 # what "hidden" libraries, object files and flags are used when
16415 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016416 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016417 else
16418 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16419 # platform.
16420 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 +000016421 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16422 $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 +000016423
16424 # Commands to make compiler produce verbose output that lists
16425 # what "hidden" libraries, object files and flags are used when
16426 # linking a shared library.
16427 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16428 fi
16429
16430 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16431 fi
16432 ;;
16433 esac
16434 ;;
16435 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16436 archive_cmds_need_lc_CXX=no
16437 ;;
16438 tandem*)
16439 case $cc_basename in
16440 NCC)
16441 # NonStop-UX NCC 3.20
16442 # FIXME: insert proper C++ library support
16443 ld_shlibs_CXX=no
16444 ;;
16445 *)
16446 # FIXME: insert proper C++ library support
16447 ld_shlibs_CXX=no
16448 ;;
16449 esac
16450 ;;
16451 vxworks*)
16452 # FIXME: insert proper C++ library support
16453 ld_shlibs_CXX=no
16454 ;;
16455 *)
16456 # FIXME: insert proper C++ library support
16457 ld_shlibs_CXX=no
16458 ;;
16459esac
16460echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16461echo "${ECHO_T}$ld_shlibs_CXX" >&6
16462test "$ld_shlibs_CXX" = no && can_build_shared=no
16463
16464GCC_CXX="$GXX"
16465LD_CXX="$LD"
16466
John Criswell47fdd832003-07-14 16:52:07 +000016467
16468cat > conftest.$ac_ext <<EOF
16469class Foo
16470{
16471public:
16472 Foo (void) { a = 0; }
16473private:
16474 int a;
16475};
16476EOF
16477
16478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; then
16483 # Parse the compiler output and extract the necessary
16484 # objects, libraries and library flags.
16485
16486 # Sentinel used to keep track of whether or not we are before
16487 # the conftest object file.
16488 pre_test_object_deps_done=no
16489
16490 # The `*' in the case matches for architectures that use `case' in
16491 # $output_verbose_cmd can trigger glob expansion during the loop
16492 # eval without this substitution.
16493 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16494
16495 for p in `eval $output_verbose_link_cmd`; do
16496 case $p in
16497
16498 -L* | -R* | -l*)
16499 # Some compilers place space between "-{L,R}" and the path.
16500 # Remove the space.
16501 if test $p = "-L" \
16502 || test $p = "-R"; then
16503 prev=$p
16504 continue
16505 else
16506 prev=
16507 fi
16508
16509 if test "$pre_test_object_deps_done" = no; then
16510 case $p in
16511 -L* | -R*)
16512 # Internal compiler library paths should come after those
16513 # provided the user. The postdeps already come after the
16514 # user supplied libs so there is no need to process them.
16515 if test -z "$compiler_lib_search_path_CXX"; then
16516 compiler_lib_search_path_CXX="${prev}${p}"
16517 else
16518 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16519 fi
16520 ;;
16521 # The "-l" case would never come before the object being
16522 # linked, so don't bother handling this case.
16523 esac
16524 else
16525 if test -z "$postdeps_CXX"; then
16526 postdeps_CXX="${prev}${p}"
16527 else
16528 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16529 fi
16530 fi
16531 ;;
16532
16533 *.$objext)
16534 # This assumes that the test object file only shows up
16535 # once in the compiler output.
16536 if test "$p" = "conftest.$objext"; then
16537 pre_test_object_deps_done=yes
16538 continue
16539 fi
16540
16541 if test "$pre_test_object_deps_done" = no; then
16542 if test -z "$predep_objects_CXX"; then
16543 predep_objects_CXX="$p"
16544 else
16545 predep_objects_CXX="$predep_objects_CXX $p"
16546 fi
16547 else
16548 if test -z "$postdep_objects_CXX"; then
16549 postdep_objects_CXX="$p"
16550 else
16551 postdep_objects_CXX="$postdep_objects_CXX $p"
16552 fi
16553 fi
16554 ;;
16555
16556 *) ;; # Ignore the rest.
16557
16558 esac
16559 done
16560
16561 # Clean up.
16562 rm -f a.out a.exe
16563else
16564 echo "libtool.m4: error: problem compiling CXX test program"
16565fi
16566
16567$rm -f confest.$objext
16568
16569case " $postdeps_CXX " in
16570*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16571esac
16572
16573lt_prog_compiler_wl_CXX=
16574lt_prog_compiler_pic_CXX=
16575lt_prog_compiler_static_CXX=
16576
16577echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16578echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16579
16580 # C++ specific cases for pic, static, wl, etc.
16581 if test "$GXX" = yes; then
16582 lt_prog_compiler_wl_CXX='-Wl,'
16583 lt_prog_compiler_static_CXX='-static'
16584
16585 case $host_os in
16586 aix*)
16587 # All AIX code is PIC.
16588 if test "$host_cpu" = ia64; then
16589 # AIX 5 now supports IA64 processor
16590 lt_prog_compiler_static_CXX='-Bstatic'
16591 fi
16592 ;;
16593 amigaos*)
16594 # FIXME: we need at least 68020 code to build shared libraries, but
16595 # adding the `-m68020' flag to GCC prevents building anything better,
16596 # like `-m68040'.
16597 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16598 ;;
16599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16600 # PIC is the default for these OSes.
16601 ;;
16602 mingw* | os2* | pw32*)
16603 # This hack is so that the source file can tell whether it is being
16604 # built for inclusion in a dll (and should export symbols for example).
16605 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16606 ;;
16607 darwin* | rhapsody*)
16608 # PIC is the default on this platform
16609 # Common symbols not allowed in MH_DYLIB files
16610 lt_prog_compiler_pic_CXX='-fno-common'
16611 ;;
16612 *djgpp*)
16613 # DJGPP does not support shared libraries at all
16614 lt_prog_compiler_pic_CXX=
16615 ;;
16616 sysv4*MP*)
16617 if test -d /usr/nec; then
16618 lt_prog_compiler_pic_CXX=-Kconform_pic
16619 fi
16620 ;;
16621 hpux*)
16622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16623 # not for PA HP-UX.
16624 case "$host_cpu" in
16625 hppa*64*|ia64*)
16626 ;;
16627 *)
16628 lt_prog_compiler_pic_CXX='-fPIC'
16629 ;;
16630 esac
16631 ;;
16632 *)
16633 lt_prog_compiler_pic_CXX='-fPIC'
16634 ;;
16635 esac
16636 else
16637 case $host_os in
16638 aix4* | aix5*)
16639 # All AIX code is PIC.
16640 if test "$host_cpu" = ia64; then
16641 # AIX 5 now supports IA64 processor
16642 lt_prog_compiler_static_CXX='-Bstatic'
16643 else
16644 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16645 fi
16646 ;;
16647 chorus*)
16648 case $cc_basename in
16649 cxch68)
16650 # Green Hills C++ Compiler
16651 # _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"
16652 ;;
16653 esac
16654 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016655 darwin*)
16656 # PIC is the default on this platform
16657 # Common symbols not allowed in MH_DYLIB files
16658 case "$cc_basename" in
16659 xlc*)
16660 lt_prog_compiler_pic_CXX='-qnocommon'
16661 lt_prog_compiler_wl_CXX='-Wl,'
16662 ;;
16663 esac
16664 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016665 dgux*)
16666 case $cc_basename in
16667 ec++)
16668 lt_prog_compiler_pic_CXX='-KPIC'
16669 ;;
16670 ghcx)
16671 # Green Hills C++ Compiler
16672 lt_prog_compiler_pic_CXX='-pic'
16673 ;;
16674 *)
16675 ;;
16676 esac
16677 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016678 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016679 # FreeBSD uses GNU C++
16680 ;;
16681 hpux9* | hpux10* | hpux11*)
16682 case $cc_basename in
16683 CC)
16684 lt_prog_compiler_wl_CXX='-Wl,'
16685 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16686 if test "$host_cpu" != ia64; then
16687 lt_prog_compiler_pic_CXX='+Z'
16688 fi
16689 ;;
16690 aCC)
16691 lt_prog_compiler_wl_CXX='-Wl,'
16692 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16693 case "$host_cpu" in
16694 hppa*64*|ia64*)
16695 # +Z the default
16696 ;;
16697 *)
16698 lt_prog_compiler_pic_CXX='+Z'
16699 ;;
16700 esac
16701 ;;
16702 *)
16703 ;;
16704 esac
16705 ;;
16706 irix5* | irix6* | nonstopux*)
16707 case $cc_basename in
16708 CC)
16709 lt_prog_compiler_wl_CXX='-Wl,'
16710 lt_prog_compiler_static_CXX='-non_shared'
16711 # CC pic flag -KPIC is the default.
16712 ;;
16713 *)
16714 ;;
16715 esac
16716 ;;
16717 linux*)
16718 case $cc_basename in
16719 KCC)
16720 # KAI C++ Compiler
16721 lt_prog_compiler_wl_CXX='--backend -Wl,'
16722 lt_prog_compiler_pic_CXX='-fPIC'
16723 ;;
16724 icpc)
16725 # Intel C++
16726 lt_prog_compiler_wl_CXX='-Wl,'
16727 lt_prog_compiler_pic_CXX='-KPIC'
16728 lt_prog_compiler_static_CXX='-static'
16729 ;;
16730 cxx)
16731 # Compaq C++
16732 # Make sure the PIC flag is empty. It appears that all Alpha
16733 # Linux and Compaq Tru64 Unix objects are PIC.
16734 lt_prog_compiler_pic_CXX=
16735 lt_prog_compiler_static_CXX='-non_shared'
16736 ;;
16737 *)
16738 ;;
16739 esac
16740 ;;
16741 lynxos*)
16742 ;;
16743 m88k*)
16744 ;;
16745 mvs*)
16746 case $cc_basename in
16747 cxx)
16748 lt_prog_compiler_pic_CXX='-W c,exportall'
16749 ;;
16750 *)
16751 ;;
16752 esac
16753 ;;
16754 netbsd*)
16755 ;;
16756 osf3* | osf4* | osf5*)
16757 case $cc_basename in
16758 KCC)
16759 lt_prog_compiler_wl_CXX='--backend -Wl,'
16760 ;;
16761 RCC)
16762 # Rational C++ 2.4.1
16763 lt_prog_compiler_pic_CXX='-pic'
16764 ;;
16765 cxx)
16766 # Digital/Compaq C++
16767 lt_prog_compiler_wl_CXX='-Wl,'
16768 # Make sure the PIC flag is empty. It appears that all Alpha
16769 # Linux and Compaq Tru64 Unix objects are PIC.
16770 lt_prog_compiler_pic_CXX=
16771 lt_prog_compiler_static_CXX='-non_shared'
16772 ;;
16773 *)
16774 ;;
16775 esac
16776 ;;
16777 psos*)
16778 ;;
16779 sco*)
16780 case $cc_basename in
16781 CC)
16782 lt_prog_compiler_pic_CXX='-fPIC'
16783 ;;
16784 *)
16785 ;;
16786 esac
16787 ;;
16788 solaris*)
16789 case $cc_basename in
16790 CC)
16791 # Sun C++ 4.2, 5.x and Centerline C++
16792 lt_prog_compiler_pic_CXX='-KPIC'
16793 lt_prog_compiler_static_CXX='-Bstatic'
16794 lt_prog_compiler_wl_CXX='-Qoption ld '
16795 ;;
16796 gcx)
16797 # Green Hills C++ Compiler
16798 lt_prog_compiler_pic_CXX='-PIC'
16799 ;;
16800 *)
16801 ;;
16802 esac
16803 ;;
16804 sunos4*)
16805 case $cc_basename in
16806 CC)
16807 # Sun C++ 4.x
16808 lt_prog_compiler_pic_CXX='-pic'
16809 lt_prog_compiler_static_CXX='-Bstatic'
16810 ;;
16811 lcc)
16812 # Lucid
16813 lt_prog_compiler_pic_CXX='-pic'
16814 ;;
16815 *)
16816 ;;
16817 esac
16818 ;;
16819 tandem*)
16820 case $cc_basename in
16821 NCC)
16822 # NonStop-UX NCC 3.20
16823 lt_prog_compiler_pic_CXX='-KPIC'
16824 ;;
16825 *)
16826 ;;
16827 esac
16828 ;;
16829 unixware*)
16830 ;;
16831 vxworks*)
16832 ;;
16833 *)
16834 lt_prog_compiler_can_build_shared_CXX=no
16835 ;;
16836 esac
16837 fi
16838
16839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16840echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16841
16842#
16843# Check to make sure the PIC flag actually works.
16844#
16845if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846
16847echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016848echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16849if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851else
16852 lt_prog_compiler_pic_works_CXX=no
16853 ac_outfile=conftest.$ac_objext
16854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16855 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16856 # Insert the option either (1) after the last *FLAGS variable, or
16857 # (2) before a word containing "conftest.", or (3) at the end.
16858 # Note that $ac_compile itself does not contain backslashes and begins
16859 # with a dollar sign (not a hyphen), so the echo should work correctly.
16860 # The option is referenced via a variable to avoid confusing sed.
16861 lt_compile=`echo "$ac_compile" | $SED \
16862 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16864 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000016865 (eval echo "\"\$as_me:16865: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016866 (eval "$lt_compile" 2>conftest.err)
16867 ac_status=$?
16868 cat conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000016869 echo "$as_me:16869: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016870 if (exit $ac_status) && test -s "$ac_outfile"; then
16871 # The compiler can only warn and ignore the option if not recognized
16872 # So say no if there are warnings
16873 if test ! -s conftest.err; then
16874 lt_prog_compiler_pic_works_CXX=yes
16875 fi
16876 fi
16877 $rm conftest*
16878
16879fi
16880echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16881echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16882
16883if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16884 case $lt_prog_compiler_pic_CXX in
16885 "" | " "*) ;;
16886 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16887 esac
16888else
16889 lt_prog_compiler_pic_CXX=
16890 lt_prog_compiler_can_build_shared_CXX=no
16891fi
16892
16893fi
16894case "$host_os" in
16895 # For platforms which do not support PIC, -DPIC is meaningless:
16896 *djgpp*)
16897 lt_prog_compiler_pic_CXX=
16898 ;;
16899 *)
16900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16901 ;;
16902esac
16903
16904echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16905echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16906if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
16909 lt_cv_prog_compiler_c_o_CXX=no
16910 $rm -r conftest 2>/dev/null
16911 mkdir conftest
16912 cd conftest
16913 mkdir out
16914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16915
John Criswell47fdd832003-07-14 16:52:07 +000016916 lt_compiler_flag="-o out/conftest2.$ac_objext"
16917 # Insert the option either (1) after the last *FLAGS variable, or
16918 # (2) before a word containing "conftest.", or (3) at the end.
16919 # Note that $ac_compile itself does not contain backslashes and begins
16920 # with a dollar sign (not a hyphen), so the echo should work correctly.
16921 lt_compile=`echo "$ac_compile" | $SED \
16922 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16924 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000016925 (eval echo "\"\$as_me:16925: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016926 (eval "$lt_compile" 2>out/conftest.err)
16927 ac_status=$?
16928 cat out/conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000016929 echo "$as_me:16929: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16931 then
16932 # The compiler can only warn and ignore the option if not recognized
16933 # So say no if there are warnings
16934 if test ! -s out/conftest.err; then
16935 lt_cv_prog_compiler_c_o_CXX=yes
16936 fi
16937 fi
16938 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016939 $rm conftest*
16940 # SGI C++ compiler will create directory out/ii_files/ for
16941 # template instantiation
16942 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16943 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016944 cd ..
16945 rmdir conftest
16946 $rm conftest*
16947
16948fi
16949echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16950echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16951
16952
16953hard_links="nottested"
16954if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16955 # do not overwrite the value of need_locks provided by the user
16956 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16957echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16958 hard_links=yes
16959 $rm conftest*
16960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16961 touch conftest.a
16962 ln conftest.a conftest.b 2>&5 || hard_links=no
16963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16964 echo "$as_me:$LINENO: result: $hard_links" >&5
16965echo "${ECHO_T}$hard_links" >&6
16966 if test "$hard_links" = no; then
16967 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16968echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16969 need_locks=warn
16970 fi
16971else
16972 need_locks=no
16973fi
16974
16975echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16976echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16977
16978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16979 case $host_os in
16980 aix4* | aix5*)
16981 # If we're using GNU nm, then we don't want the "-C" option.
16982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16984 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'
16985 else
16986 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'
16987 fi
16988 ;;
16989 pw32*)
16990 export_symbols_cmds_CXX="$ltdll_cmds"
16991 ;;
16992 cygwin* | mingw*)
16993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16994 ;;
16995 *)
16996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16997 ;;
16998 esac
16999
17000echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17001echo "${ECHO_T}$ld_shlibs_CXX" >&6
17002test "$ld_shlibs_CXX" = no && can_build_shared=no
17003
17004variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17005if test "$GCC" = yes; then
17006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17007fi
17008
17009#
17010# Do we need to explicitly link libc?
17011#
17012case "x$archive_cmds_need_lc_CXX" in
17013x|xyes)
17014 # Assume -lc should be added
17015 archive_cmds_need_lc_CXX=yes
17016
17017 if test "$enable_shared" = yes && test "$GCC" = yes; then
17018 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017019 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017020 # FIXME: we may have to deal with multi-command sequences.
17021 ;;
17022 '$CC '*)
17023 # Test whether the compiler implicitly links with -lc since on some
17024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17025 # to ld, don't add -lc before -lgcc.
17026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17028 $rm conftest*
17029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17030
17031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032 (eval $ac_compile) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } 2>conftest.err; then
17036 soname=conftest
17037 lib=conftest
17038 libobjs=conftest.$ac_objext
17039 deplibs=
17040 wl=$lt_prog_compiler_wl_CXX
17041 compiler_flags=-v
17042 linker_flags=-v
17043 verstring=
17044 output_objdir=.
17045 libname=conftest
17046 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17047 allow_undefined_flag_CXX=
17048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17049 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }
17053 then
17054 archive_cmds_need_lc_CXX=no
17055 else
17056 archive_cmds_need_lc_CXX=yes
17057 fi
17058 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17059 else
17060 cat conftest.err 1>&5
17061 fi
17062 $rm conftest*
17063 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17064echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17065 ;;
17066 esac
17067 fi
17068 ;;
17069esac
17070
John Criswell47fdd832003-07-14 16:52:07 +000017071echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17072echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17073library_names_spec=
17074libname_spec='lib$name'
17075soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017077postinstall_cmds=
17078postuninstall_cmds=
17079finish_cmds=
17080finish_eval=
17081shlibpath_var=
17082shlibpath_overrides_runpath=unknown
17083version_type=none
17084dynamic_linker="$host_os ld.so"
17085sys_lib_dlsearch_path_spec="/lib /usr/lib"
17086if test "$GCC" = yes; then
17087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17089 # if the path contains ";" then we assume it to be the separator
17090 # otherwise default to the standard path separator (i.e. ":") - it is
17091 # assumed that no part of a normal pathname contains ";" but that should
17092 # okay in the real world where ";" in dirpaths is itself problematic.
17093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17094 else
17095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17096 fi
17097else
17098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17099fi
17100need_lib_prefix=unknown
17101hardcode_into_libs=no
17102
17103# when you set need_version to no, make sure it does not cause -set_version
17104# flags to be left without arguments
17105need_version=unknown
17106
17107case $host_os in
17108aix3*)
17109 version_type=linux
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17111 shlibpath_var=LIBPATH
17112
17113 # AIX 3 has no versioning support, so we append a major version to the name.
17114 soname_spec='${libname}${release}${shared_ext}$major'
17115 ;;
17116
17117aix4* | aix5*)
17118 version_type=linux
17119 need_lib_prefix=no
17120 need_version=no
17121 hardcode_into_libs=yes
17122 if test "$host_cpu" = ia64; then
17123 # AIX 5 supports IA64
17124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17125 shlibpath_var=LD_LIBRARY_PATH
17126 else
17127 # With GCC up to 2.95.x, collect2 would create an import file
17128 # for dependence libraries. The import file would start with
17129 # the line `#! .'. This would cause the generated library to
17130 # depend on `.', always an invalid library. This was fixed in
17131 # development snapshots of GCC prior to 3.0.
17132 case $host_os in
17133 aix4 | aix4.[01] | aix4.[01].*)
17134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17135 echo ' yes '
17136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17137 :
17138 else
17139 can_build_shared=no
17140 fi
17141 ;;
17142 esac
17143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17144 # soname into executable. Probably we can add versioning support to
17145 # collect2, so additional links can be useful in future.
17146 if test "$aix_use_runtimelinking" = yes; then
17147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17148 # instead of lib<name>.a to let people know that these are not
17149 # typical AIX shared libraries.
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 else
17152 # We preserve .a as extension for shared libraries through AIX4.2
17153 # and later when we are not doing run time linking.
17154 library_names_spec='${libname}${release}.a $libname.a'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 fi
17157 shlibpath_var=LIBPATH
17158 fi
17159 ;;
17160
17161amigaos*)
17162 library_names_spec='$libname.ixlibrary $libname.a'
17163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017164 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 +000017165 ;;
17166
17167beos*)
17168 library_names_spec='${libname}${shared_ext}'
17169 dynamic_linker="$host_os ld.so"
17170 shlibpath_var=LIBRARY_PATH
17171 ;;
17172
Reid Spencer2706f8c2004-09-19 23:53:36 +000017173bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017174 version_type=linux
17175 need_version=no
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17182 # the default ld.so.conf also contains /usr/contrib/lib and
17183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17184 # libtool to hard-code these into programs
17185 ;;
17186
17187cygwin* | mingw* | pw32*)
17188 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017189 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017190 need_version=no
17191 need_lib_prefix=no
17192
17193 case $GCC,$host_os in
17194 yes,cygwin* | yes,mingw* | yes,pw32*)
17195 library_names_spec='$libname.dll.a'
17196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017197 postinstall_cmds='base_file=`basename \${file}`~
17198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17199 dldir=$destdir/`dirname \$dlpath`~
17200 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017201 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17203 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017204 $rm \$dlpath'
17205 shlibpath_overrides_runpath=yes
17206
17207 case $host_os in
17208 cygwin*)
17209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17210 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 +000017211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017212 ;;
17213 mingw*)
17214 # MinGW DLLs use traditional 'lib' prefix
17215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17218 # It is most probably a Windows format PATH printed by
17219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17220 # path with ; separators, and with drive letters. We can handle the
17221 # drive letters (cygwin fileutils understands them), so leave them,
17222 # especially as we might pass files found there to a mingw objdump,
17223 # which wouldn't understand a cygwinified path. Ahh.
17224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17225 else
17226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17227 fi
17228 ;;
17229 pw32*)
17230 # pw32 DLLs use 'pw' prefix rather than 'lib'
17231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17232 ;;
17233 esac
17234 ;;
17235
17236 *)
17237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17238 ;;
17239 esac
17240 dynamic_linker='Win32 ld.exe'
17241 # FIXME: first we should search . and the directory the executable is in
17242 shlibpath_var=PATH
17243 ;;
17244
17245darwin* | rhapsody*)
17246 dynamic_linker="$host_os dyld"
17247 version_type=darwin
17248 need_lib_prefix=no
17249 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017251 soname_spec='${libname}${release}${major}$shared_ext'
17252 shlibpath_overrides_runpath=yes
17253 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017254 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017256 if test "$GCC" = yes; then
17257 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"`
17258 else
17259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017260 fi
17261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17262 ;;
17263
17264dgux*)
17265 version_type=linux
17266 need_lib_prefix=no
17267 need_version=no
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 ;;
17272
17273freebsd1*)
17274 dynamic_linker=no
17275 ;;
17276
Reid Spencer2706f8c2004-09-19 23:53:36 +000017277kfreebsd*-gnu)
17278 version_type=linux
17279 need_lib_prefix=no
17280 need_version=no
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath=no
17285 hardcode_into_libs=yes
17286 dynamic_linker='GNU ld.so'
17287 ;;
17288
John Criswell47fdd832003-07-14 16:52:07 +000017289freebsd*)
17290 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17291 version_type=freebsd-$objformat
17292 case $version_type in
17293 freebsd-elf*)
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17295 need_version=no
17296 need_lib_prefix=no
17297 ;;
17298 freebsd-*)
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17300 need_version=yes
17301 ;;
17302 esac
17303 shlibpath_var=LD_LIBRARY_PATH
17304 case $host_os in
17305 freebsd2*)
17306 shlibpath_overrides_runpath=yes
17307 ;;
17308 freebsd3.01* | freebsdelf3.01*)
17309 shlibpath_overrides_runpath=yes
17310 hardcode_into_libs=yes
17311 ;;
17312 *) # from 3.2 on
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17315 ;;
17316 esac
17317 ;;
17318
17319gnu*)
17320 version_type=linux
17321 need_lib_prefix=no
17322 need_version=no
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17324 soname_spec='${libname}${release}${shared_ext}$major'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 hardcode_into_libs=yes
17327 ;;
17328
17329hpux9* | hpux10* | hpux11*)
17330 # Give a soname corresponding to the major version so that dld.sl refuses to
17331 # link against other versions.
17332 version_type=sunos
17333 need_lib_prefix=no
17334 need_version=no
17335 case "$host_cpu" in
17336 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017337 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017338 hardcode_into_libs=yes
17339 dynamic_linker="$host_os dld.so"
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 if test "X$HPUX_IA64_MODE" = X32; then
17345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17346 else
17347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17348 fi
17349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17350 ;;
17351 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017352 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017353 hardcode_into_libs=yes
17354 dynamic_linker="$host_os dld.sl"
17355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17361 ;;
17362 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017363 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017364 dynamic_linker="$host_os dld.sl"
17365 shlibpath_var=SHLIB_PATH
17366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 ;;
17370 esac
17371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17372 postinstall_cmds='chmod 555 $lib'
17373 ;;
17374
17375irix5* | irix6* | nonstopux*)
17376 case $host_os in
17377 nonstopux*) version_type=nonstopux ;;
17378 *)
17379 if test "$lt_cv_prog_gnu_ld" = yes; then
17380 version_type=linux
17381 else
17382 version_type=irix
17383 fi ;;
17384 esac
17385 need_lib_prefix=no
17386 need_version=no
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17389 case $host_os in
17390 irix5* | nonstopux*)
17391 libsuff= shlibsuff=
17392 ;;
17393 *)
17394 case $LD in # libtool.m4 will add one of these switches to LD
17395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17396 libsuff= shlibsuff= libmagic=32-bit;;
17397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17398 libsuff=32 shlibsuff=N32 libmagic=N32;;
17399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17401 *) libsuff= shlibsuff= libmagic=never-match;;
17402 esac
17403 ;;
17404 esac
17405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17406 shlibpath_overrides_runpath=no
17407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17409 hardcode_into_libs=yes
17410 ;;
17411
17412# No shared lib support for Linux oldld, aout, or coff.
17413linux*oldld* | linux*aout* | linux*coff*)
17414 dynamic_linker=no
17415 ;;
17416
17417# This must be Linux ELF.
17418linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath=no
17427 # This implies no fast_install, which is unacceptable.
17428 # Some rework will be needed to allow for fast_install
17429 # before this can be enabled.
17430 hardcode_into_libs=yes
17431
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432 # Append ld.so.conf contents to the search path
17433 if test -f /etc/ld.so.conf; then
17434 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17436 fi
17437
John Criswell47fdd832003-07-14 16:52:07 +000017438 # We used to test for /lib/ld.so.1 and disable shared libraries on
17439 # powerpc, because MkLinux only supported shared libraries with the
17440 # GNU dynamic linker. Since this was broken with cross compilers,
17441 # most powerpc-linux boxes support dynamic linking these days and
17442 # people can always --disable-shared, the test was removed, and we
17443 # assume the GNU/Linux dynamic linker is in use.
17444 dynamic_linker='GNU/Linux ld.so'
17445 ;;
17446
Reid Spencer2706f8c2004-09-19 23:53:36 +000017447knetbsd*-gnu)
17448 version_type=linux
17449 need_lib_prefix=no
17450 need_version=no
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=no
17455 hardcode_into_libs=yes
17456 dynamic_linker='GNU ld.so'
17457 ;;
17458
John Criswell47fdd832003-07-14 16:52:07 +000017459netbsd*)
17460 version_type=sunos
17461 need_lib_prefix=no
17462 need_version=no
17463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466 dynamic_linker='NetBSD (a.out) ld.so'
17467 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017469 soname_spec='${libname}${release}${shared_ext}$major'
17470 dynamic_linker='NetBSD ld.elf_so'
17471 fi
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=yes
17474 hardcode_into_libs=yes
17475 ;;
17476
17477newsos6)
17478 version_type=linux
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=yes
17482 ;;
17483
Reid Spencer2706f8c2004-09-19 23:53:36 +000017484nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017485 version_type=linux
17486 need_lib_prefix=no
17487 need_version=no
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 shlibpath_overrides_runpath=yes
17492 ;;
17493
17494openbsd*)
17495 version_type=sunos
17496 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017497 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17502 case $host_os in
17503 openbsd2.[89] | openbsd2.[89].*)
17504 shlibpath_overrides_runpath=no
17505 ;;
17506 *)
17507 shlibpath_overrides_runpath=yes
17508 ;;
17509 esac
17510 else
17511 shlibpath_overrides_runpath=yes
17512 fi
17513 ;;
17514
17515os2*)
17516 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017517 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017518 need_lib_prefix=no
17519 library_names_spec='$libname${shared_ext} $libname.a'
17520 dynamic_linker='OS/2 ld.exe'
17521 shlibpath_var=LIBPATH
17522 ;;
17523
17524osf3* | osf4* | osf5*)
17525 version_type=osf
17526 need_lib_prefix=no
17527 need_version=no
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17533 ;;
17534
17535sco3.2v5*)
17536 version_type=osf
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539 shlibpath_var=LD_LIBRARY_PATH
17540 ;;
17541
17542solaris*)
17543 version_type=linux
17544 need_lib_prefix=no
17545 need_version=no
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547 soname_spec='${libname}${release}${shared_ext}$major'
17548 shlibpath_var=LD_LIBRARY_PATH
17549 shlibpath_overrides_runpath=yes
17550 hardcode_into_libs=yes
17551 # ldd complains unless libraries are executable
17552 postinstall_cmds='chmod +x $lib'
17553 ;;
17554
17555sunos4*)
17556 version_type=sunos
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath=yes
17561 if test "$with_gnu_ld" = yes; then
17562 need_lib_prefix=no
17563 fi
17564 need_version=yes
17565 ;;
17566
17567sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17568 version_type=linux
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 case $host_vendor in
17573 sni)
17574 shlibpath_overrides_runpath=no
17575 need_lib_prefix=no
17576 export_dynamic_flag_spec='${wl}-Blargedynsym'
17577 runpath_var=LD_RUN_PATH
17578 ;;
17579 siemens)
17580 need_lib_prefix=no
17581 ;;
17582 motorola)
17583 need_lib_prefix=no
17584 need_version=no
17585 shlibpath_overrides_runpath=no
17586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17587 ;;
17588 esac
17589 ;;
17590
17591sysv4*MP*)
17592 if test -d /usr/nec ;then
17593 version_type=linux
17594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17595 soname_spec='$libname${shared_ext}.$major'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 fi
17598 ;;
17599
17600uts4*)
17601 version_type=linux
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 ;;
17606
17607*)
17608 dynamic_linker=no
17609 ;;
17610esac
17611echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17612echo "${ECHO_T}$dynamic_linker" >&6
17613test "$dynamic_linker" = no && can_build_shared=no
17614
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17616echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17617hardcode_action_CXX=
17618if test -n "$hardcode_libdir_flag_spec_CXX" || \
17619 test -n "$runpath_var_CXX" || \
17620 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17621
17622 # We can hardcode non-existant directories.
17623 if test "$hardcode_direct_CXX" != no &&
17624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17625 # have to relink, otherwise we might link with an installed library
17626 # when we should be linking with a yet-to-be-installed one
17627 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17628 test "$hardcode_minus_L_CXX" != no; then
17629 # Linking always hardcodes the temporary library directory.
17630 hardcode_action_CXX=relink
17631 else
17632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17633 hardcode_action_CXX=immediate
17634 fi
17635else
17636 # We cannot hardcode anything, or else we can only hardcode existing
17637 # directories.
17638 hardcode_action_CXX=unsupported
17639fi
17640echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17641echo "${ECHO_T}$hardcode_action_CXX" >&6
17642
17643if test "$hardcode_action_CXX" = relink; then
17644 # Fast installation is not supported
17645 enable_fast_install=no
17646elif test "$shlibpath_overrides_runpath" = yes ||
17647 test "$enable_shared" = no; then
17648 # Fast installation is not necessary
17649 enable_fast_install=needless
17650fi
17651
17652striplib=
17653old_striplib=
17654echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17655echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17656if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17658 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17659 echo "$as_me:$LINENO: result: yes" >&5
17660echo "${ECHO_T}yes" >&6
17661else
17662# FIXME - insert some real tests, host_os isn't really good enough
17663 case $host_os in
17664 darwin*)
17665 if test -n "$STRIP" ; then
17666 striplib="$STRIP -x"
17667 echo "$as_me:$LINENO: result: yes" >&5
17668echo "${ECHO_T}yes" >&6
17669 else
17670 echo "$as_me:$LINENO: result: no" >&5
17671echo "${ECHO_T}no" >&6
17672fi
17673 ;;
17674 *)
17675 echo "$as_me:$LINENO: result: no" >&5
17676echo "${ECHO_T}no" >&6
17677 ;;
17678 esac
17679fi
17680
John Criswell47fdd832003-07-14 16:52:07 +000017681if test "x$enable_dlopen" != xyes; then
17682 enable_dlopen=unknown
17683 enable_dlopen_self=unknown
17684 enable_dlopen_self_static=unknown
17685else
17686 lt_cv_dlopen=no
17687 lt_cv_dlopen_libs=
17688
17689 case $host_os in
17690 beos*)
17691 lt_cv_dlopen="load_add_on"
17692 lt_cv_dlopen_libs=
17693 lt_cv_dlopen_self=yes
17694 ;;
17695
17696 mingw* | pw32*)
17697 lt_cv_dlopen="LoadLibrary"
17698 lt_cv_dlopen_libs=
17699 ;;
17700
17701 cygwin*)
17702 lt_cv_dlopen="dlopen"
17703 lt_cv_dlopen_libs=
17704 ;;
17705
17706 darwin*)
17707 # if libdl is installed we need to link against it
17708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17710if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17712else
17713 ac_check_lib_save_LIBS=$LIBS
17714LIBS="-ldl $LIBS"
17715cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017721
17722/* Override any gcc2 internal prototype to avoid an error. */
17723#ifdef __cplusplus
17724extern "C"
17725#endif
17726/* We use char because int might match the return type of a gcc2
17727 builtin and then its argument prototype would still apply. */
17728char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017729int
17730main ()
17731{
17732dlopen ();
17733 ;
17734 return 0;
17735}
17736_ACEOF
17737rm -f conftest.$ac_objext conftest$ac_exeext
17738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017739 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017741 grep -v '^ *+' conftest.er1 >conftest.err
17742 rm -f conftest.er1
17743 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 { ac_try='test -z "$ac_cxx_werror_flag"
17747 || test ! -s conftest.err'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_dl_dlopen=yes
17760else
17761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017762sed 's/^/| /' conftest.$ac_ext >&5
17763
John Criswell47fdd832003-07-14 16:52:07 +000017764ac_cv_lib_dl_dlopen=no
17765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017766rm -f conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017768LIBS=$ac_check_lib_save_LIBS
17769fi
17770echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772if test $ac_cv_lib_dl_dlopen = yes; then
17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17774else
17775
17776 lt_cv_dlopen="dyld"
17777 lt_cv_dlopen_libs=
17778 lt_cv_dlopen_self=yes
17779
17780fi
17781
17782 ;;
17783
17784 *)
17785 echo "$as_me:$LINENO: checking for shl_load" >&5
17786echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17787if test "${ac_cv_func_shl_load+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789else
17790 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017791/* confdefs.h. */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
17795/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017796/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798#define shl_load innocuous_shl_load
17799
John Criswell47fdd832003-07-14 16:52:07 +000017800/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017801 which can conflict with char shl_load (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017804
John Criswell0c38eaf2003-09-10 15:17:25 +000017805#ifdef __STDC__
17806# include <limits.h>
17807#else
17808# include <assert.h>
17809#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017810
17811#undef shl_load
17812
John Criswell47fdd832003-07-14 16:52:07 +000017813/* Override any gcc2 internal prototype to avoid an error. */
17814#ifdef __cplusplus
17815extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017816{
John Criswell47fdd832003-07-14 16:52:07 +000017817#endif
17818/* We use char because int might match the return type of a gcc2
17819 builtin and then its argument prototype would still apply. */
17820char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017821/* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824#if defined (__stub_shl_load) || defined (__stub___shl_load)
17825choke me
17826#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017827char (*f) () = shl_load;
17828#endif
17829#ifdef __cplusplus
17830}
John Criswell47fdd832003-07-14 16:52:07 +000017831#endif
17832
John Criswell0c38eaf2003-09-10 15:17:25 +000017833int
17834main ()
17835{
17836return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017843 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017844 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017850 { ac_try='test -z "$ac_cxx_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_func_shl_load=yes
17864else
17865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017866sed 's/^/| /' conftest.$ac_ext >&5
17867
John Criswell47fdd832003-07-14 16:52:07 +000017868ac_cv_func_shl_load=no
17869fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017870rm -f conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017872fi
17873echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17874echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17875if test $ac_cv_func_shl_load = yes; then
17876 lt_cv_dlopen="shl_load"
17877else
17878 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17879echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17880if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882else
17883 ac_check_lib_save_LIBS=$LIBS
17884LIBS="-ldld $LIBS"
17885cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017886/* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017891
17892/* Override any gcc2 internal prototype to avoid an error. */
17893#ifdef __cplusplus
17894extern "C"
17895#endif
17896/* We use char because int might match the return type of a gcc2
17897 builtin and then its argument prototype would still apply. */
17898char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017899int
17900main ()
17901{
17902shl_load ();
17903 ;
17904 return 0;
17905}
17906_ACEOF
17907rm -f conftest.$ac_objext conftest$ac_exeext
17908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017909 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017910 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017911 grep -v '^ *+' conftest.er1 >conftest.err
17912 rm -f conftest.er1
17913 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017916 { ac_try='test -z "$ac_cxx_werror_flag"
17917 || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_lib_dld_shl_load=yes
17930else
17931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017932sed 's/^/| /' conftest.$ac_ext >&5
17933
John Criswell47fdd832003-07-14 16:52:07 +000017934ac_cv_lib_dld_shl_load=no
17935fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017936rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017938LIBS=$ac_check_lib_save_LIBS
17939fi
17940echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17941echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17942if test $ac_cv_lib_dld_shl_load = yes; then
17943 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17944else
17945 echo "$as_me:$LINENO: checking for dlopen" >&5
17946echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17947if test "${ac_cv_func_dlopen+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949else
17950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017956/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17958#define dlopen innocuous_dlopen
17959
John Criswell47fdd832003-07-14 16:52:07 +000017960/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017961 which can conflict with char dlopen (); below.
17962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17963 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017964
John Criswell0c38eaf2003-09-10 15:17:25 +000017965#ifdef __STDC__
17966# include <limits.h>
17967#else
17968# include <assert.h>
17969#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017970
17971#undef dlopen
17972
John Criswell47fdd832003-07-14 16:52:07 +000017973/* Override any gcc2 internal prototype to avoid an error. */
17974#ifdef __cplusplus
17975extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017976{
John Criswell47fdd832003-07-14 16:52:07 +000017977#endif
17978/* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17980char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017981/* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984#if defined (__stub_dlopen) || defined (__stub___dlopen)
17985choke me
17986#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017987char (*f) () = dlopen;
17988#endif
17989#ifdef __cplusplus
17990}
John Criswell47fdd832003-07-14 16:52:07 +000017991#endif
17992
John Criswell0c38eaf2003-09-10 15:17:25 +000017993int
17994main ()
17995{
17996return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018003 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018010 { ac_try='test -z "$ac_cxx_werror_flag"
18011 || test ! -s conftest.err'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_cv_func_dlopen=yes
18024else
18025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018026sed 's/^/| /' conftest.$ac_ext >&5
18027
John Criswell47fdd832003-07-14 16:52:07 +000018028ac_cv_func_dlopen=no
18029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018030rm -f conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018032fi
18033echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18034echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18035if test $ac_cv_func_dlopen = yes; then
18036 lt_cv_dlopen="dlopen"
18037else
18038 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18039echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18040if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18042else
18043 ac_check_lib_save_LIBS=$LIBS
18044LIBS="-ldl $LIBS"
18045cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018051
18052/* Override any gcc2 internal prototype to avoid an error. */
18053#ifdef __cplusplus
18054extern "C"
18055#endif
18056/* We use char because int might match the return type of a gcc2
18057 builtin and then its argument prototype would still apply. */
18058char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018059int
18060main ()
18061{
18062dlopen ();
18063 ;
18064 return 0;
18065}
18066_ACEOF
18067rm -f conftest.$ac_objext conftest$ac_exeext
18068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018069 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018070 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018076 { ac_try='test -z "$ac_cxx_werror_flag"
18077 || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_lib_dl_dlopen=yes
18090else
18091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018092sed 's/^/| /' conftest.$ac_ext >&5
18093
John Criswell47fdd832003-07-14 16:52:07 +000018094ac_cv_lib_dl_dlopen=no
18095fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018096rm -f conftest.err conftest.$ac_objext \
18097 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018098LIBS=$ac_check_lib_save_LIBS
18099fi
18100echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18101echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18102if test $ac_cv_lib_dl_dlopen = yes; then
18103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18104else
18105 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18106echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18107if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109else
18110 ac_check_lib_save_LIBS=$LIBS
18111LIBS="-lsvld $LIBS"
18112cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018113/* confdefs.h. */
18114_ACEOF
18115cat confdefs.h >>conftest.$ac_ext
18116cat >>conftest.$ac_ext <<_ACEOF
18117/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018118
18119/* Override any gcc2 internal prototype to avoid an error. */
18120#ifdef __cplusplus
18121extern "C"
18122#endif
18123/* We use char because int might match the return type of a gcc2
18124 builtin and then its argument prototype would still apply. */
18125char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018126int
18127main ()
18128{
18129dlopen ();
18130 ;
18131 return 0;
18132}
18133_ACEOF
18134rm -f conftest.$ac_objext conftest$ac_exeext
18135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018136 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018143 { ac_try='test -z "$ac_cxx_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_lib_svld_dlopen=yes
18157else
18158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018159sed 's/^/| /' conftest.$ac_ext >&5
18160
John Criswell47fdd832003-07-14 16:52:07 +000018161ac_cv_lib_svld_dlopen=no
18162fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018163rm -f conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018165LIBS=$ac_check_lib_save_LIBS
18166fi
18167echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18168echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18169if test $ac_cv_lib_svld_dlopen = yes; then
18170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18171else
18172 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18173echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18174if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18176else
18177 ac_check_lib_save_LIBS=$LIBS
18178LIBS="-ldld $LIBS"
18179cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018180/* confdefs.h. */
18181_ACEOF
18182cat confdefs.h >>conftest.$ac_ext
18183cat >>conftest.$ac_ext <<_ACEOF
18184/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018185
18186/* Override any gcc2 internal prototype to avoid an error. */
18187#ifdef __cplusplus
18188extern "C"
18189#endif
18190/* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18192char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018193int
18194main ()
18195{
18196dld_link ();
18197 ;
18198 return 0;
18199}
18200_ACEOF
18201rm -f conftest.$ac_objext conftest$ac_exeext
18202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018203 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018204 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018205 grep -v '^ *+' conftest.er1 >conftest.err
18206 rm -f conftest.er1
18207 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018210 { ac_try='test -z "$ac_cxx_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_cv_lib_dld_dld_link=yes
18224else
18225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018226sed 's/^/| /' conftest.$ac_ext >&5
18227
John Criswell47fdd832003-07-14 16:52:07 +000018228ac_cv_lib_dld_dld_link=no
18229fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018230rm -f conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018232LIBS=$ac_check_lib_save_LIBS
18233fi
18234echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18235echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18236if test $ac_cv_lib_dld_dld_link = yes; then
18237 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18238fi
18239
18240
18241fi
18242
18243
18244fi
18245
18246
18247fi
18248
18249
18250fi
18251
18252
18253fi
18254
18255 ;;
18256 esac
18257
18258 if test "x$lt_cv_dlopen" != xno; then
18259 enable_dlopen=yes
18260 else
18261 enable_dlopen=no
18262 fi
18263
18264 case $lt_cv_dlopen in
18265 dlopen)
18266 save_CPPFLAGS="$CPPFLAGS"
18267 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18268
18269 save_LDFLAGS="$LDFLAGS"
18270 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18271
18272 save_LIBS="$LIBS"
18273 LIBS="$lt_cv_dlopen_libs $LIBS"
18274
18275 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18276echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18277if test "${lt_cv_dlopen_self+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279else
18280 if test "$cross_compiling" = yes; then :
18281 lt_cv_dlopen_self=cross
18282else
18283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18284 lt_status=$lt_dlunknown
18285 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +000018286#line 18286 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018287#include "confdefs.h"
18288
18289#if HAVE_DLFCN_H
18290#include <dlfcn.h>
18291#endif
18292
18293#include <stdio.h>
18294
18295#ifdef RTLD_GLOBAL
18296# define LT_DLGLOBAL RTLD_GLOBAL
18297#else
18298# ifdef DL_GLOBAL
18299# define LT_DLGLOBAL DL_GLOBAL
18300# else
18301# define LT_DLGLOBAL 0
18302# endif
18303#endif
18304
18305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18306 find out it does not work in some platform. */
18307#ifndef LT_DLLAZY_OR_NOW
18308# ifdef RTLD_LAZY
18309# define LT_DLLAZY_OR_NOW RTLD_LAZY
18310# else
18311# ifdef DL_LAZY
18312# define LT_DLLAZY_OR_NOW DL_LAZY
18313# else
18314# ifdef RTLD_NOW
18315# define LT_DLLAZY_OR_NOW RTLD_NOW
18316# else
18317# ifdef DL_NOW
18318# define LT_DLLAZY_OR_NOW DL_NOW
18319# else
18320# define LT_DLLAZY_OR_NOW 0
18321# endif
18322# endif
18323# endif
18324# endif
18325#endif
18326
18327#ifdef __cplusplus
18328extern "C" void exit (int);
18329#endif
18330
18331void fnord() { int i=42;}
18332int main ()
18333{
18334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18335 int status = $lt_dlunknown;
18336
18337 if (self)
18338 {
18339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18340 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18341 /* dlclose (self); */
18342 }
18343
18344 exit (status);
18345}
18346EOF
18347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348 (eval $ac_link) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18352 (./conftest; exit; ) 2>/dev/null
18353 lt_status=$?
18354 case x$lt_status in
18355 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18356 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18357 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18358 esac
18359 else :
18360 # compilation failed
18361 lt_cv_dlopen_self=no
18362 fi
18363fi
18364rm -fr conftest*
18365
18366
18367fi
18368echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18369echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18370
18371 if test "x$lt_cv_dlopen_self" = xyes; then
18372 LDFLAGS="$LDFLAGS $link_static_flag"
18373 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18374echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18375if test "${lt_cv_dlopen_self_static+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377else
18378 if test "$cross_compiling" = yes; then :
18379 lt_cv_dlopen_self_static=cross
18380else
18381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18382 lt_status=$lt_dlunknown
18383 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +000018384#line 18384 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018385#include "confdefs.h"
18386
18387#if HAVE_DLFCN_H
18388#include <dlfcn.h>
18389#endif
18390
18391#include <stdio.h>
18392
18393#ifdef RTLD_GLOBAL
18394# define LT_DLGLOBAL RTLD_GLOBAL
18395#else
18396# ifdef DL_GLOBAL
18397# define LT_DLGLOBAL DL_GLOBAL
18398# else
18399# define LT_DLGLOBAL 0
18400# endif
18401#endif
18402
18403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18404 find out it does not work in some platform. */
18405#ifndef LT_DLLAZY_OR_NOW
18406# ifdef RTLD_LAZY
18407# define LT_DLLAZY_OR_NOW RTLD_LAZY
18408# else
18409# ifdef DL_LAZY
18410# define LT_DLLAZY_OR_NOW DL_LAZY
18411# else
18412# ifdef RTLD_NOW
18413# define LT_DLLAZY_OR_NOW RTLD_NOW
18414# else
18415# ifdef DL_NOW
18416# define LT_DLLAZY_OR_NOW DL_NOW
18417# else
18418# define LT_DLLAZY_OR_NOW 0
18419# endif
18420# endif
18421# endif
18422# endif
18423#endif
18424
18425#ifdef __cplusplus
18426extern "C" void exit (int);
18427#endif
18428
18429void fnord() { int i=42;}
18430int main ()
18431{
18432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18433 int status = $lt_dlunknown;
18434
18435 if (self)
18436 {
18437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18438 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18439 /* dlclose (self); */
18440 }
18441
18442 exit (status);
18443}
18444EOF
18445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446 (eval $ac_link) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18450 (./conftest; exit; ) 2>/dev/null
18451 lt_status=$?
18452 case x$lt_status in
18453 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18454 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18455 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18456 esac
18457 else :
18458 # compilation failed
18459 lt_cv_dlopen_self_static=no
18460 fi
18461fi
18462rm -fr conftest*
18463
18464
18465fi
18466echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18467echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18468 fi
18469
18470 CPPFLAGS="$save_CPPFLAGS"
18471 LDFLAGS="$save_LDFLAGS"
18472 LIBS="$save_LIBS"
18473 ;;
18474 esac
18475
18476 case $lt_cv_dlopen_self in
18477 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18478 *) enable_dlopen_self=unknown ;;
18479 esac
18480
18481 case $lt_cv_dlopen_self_static in
18482 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18483 *) enable_dlopen_self_static=unknown ;;
18484 esac
18485fi
18486
18487
18488# The else clause should only fire when bootstrapping the
18489# libtool distribution, otherwise you forgot to ship ltmain.sh
18490# with your package, and you will get complaints that there are
18491# no rules to generate ltmain.sh.
18492if test -f "$ltmain"; then
18493 # See if we are running on zsh, and set the options which allow our commands through
18494 # without removal of \ escapes.
18495 if test -n "${ZSH_VERSION+set}" ; then
18496 setopt NO_GLOB_SUBST
18497 fi
18498 # Now quote all the things that may contain metacharacters while being
18499 # careful not to overquote the AC_SUBSTed values. We take copies of the
18500 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18502 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18505 deplibs_check_method reload_flag reload_cmds need_locks \
18506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18507 lt_cv_sys_global_symbol_to_c_name_address \
18508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18509 old_postinstall_cmds old_postuninstall_cmds \
18510 compiler_CXX \
18511 CC_CXX \
18512 LD_CXX \
18513 lt_prog_compiler_wl_CXX \
18514 lt_prog_compiler_pic_CXX \
18515 lt_prog_compiler_static_CXX \
18516 lt_prog_compiler_no_builtin_flag_CXX \
18517 export_dynamic_flag_spec_CXX \
18518 thread_safe_flag_spec_CXX \
18519 whole_archive_flag_spec_CXX \
18520 enable_shared_with_static_runtimes_CXX \
18521 old_archive_cmds_CXX \
18522 old_archive_from_new_cmds_CXX \
18523 predep_objects_CXX \
18524 postdep_objects_CXX \
18525 predeps_CXX \
18526 postdeps_CXX \
18527 compiler_lib_search_path_CXX \
18528 archive_cmds_CXX \
18529 archive_expsym_cmds_CXX \
18530 postinstall_cmds_CXX \
18531 postuninstall_cmds_CXX \
18532 old_archive_from_expsyms_cmds_CXX \
18533 allow_undefined_flag_CXX \
18534 no_undefined_flag_CXX \
18535 export_symbols_cmds_CXX \
18536 hardcode_libdir_flag_spec_CXX \
18537 hardcode_libdir_flag_spec_ld_CXX \
18538 hardcode_libdir_separator_CXX \
18539 hardcode_automatic_CXX \
18540 module_cmds_CXX \
18541 module_expsym_cmds_CXX \
18542 lt_cv_prog_compiler_c_o_CXX \
18543 exclude_expsyms_CXX \
18544 include_expsyms_CXX; do
18545
18546 case $var in
18547 old_archive_cmds_CXX | \
18548 old_archive_from_new_cmds_CXX | \
18549 archive_cmds_CXX | \
18550 archive_expsym_cmds_CXX | \
18551 module_cmds_CXX | \
18552 module_expsym_cmds_CXX | \
18553 old_archive_from_expsyms_cmds_CXX | \
18554 export_symbols_cmds_CXX | \
18555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18556 postinstall_cmds | postuninstall_cmds | \
18557 old_postinstall_cmds | old_postuninstall_cmds | \
18558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18559 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018560 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 +000018561 ;;
18562 *)
18563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18564 ;;
18565 esac
18566 done
18567
18568 case $lt_echo in
18569 *'\$0 --fallback-echo"')
18570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18571 ;;
18572 esac
18573
18574cfgfile="$ofile"
18575
18576 cat <<__EOF__ >> "$cfgfile"
18577# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18578
18579# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18580
18581# Shell to use when invoking shell scripts.
18582SHELL=$lt_SHELL
18583
18584# Whether or not to build shared libraries.
18585build_libtool_libs=$enable_shared
18586
18587# Whether or not to build static libraries.
18588build_old_libs=$enable_static
18589
18590# Whether or not to add -lc for building shared libraries.
18591build_libtool_need_lc=$archive_cmds_need_lc_CXX
18592
18593# Whether or not to disallow shared libs when runtime libs are static
18594allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18595
18596# Whether or not to optimize for fast installation.
18597fast_install=$enable_fast_install
18598
18599# The host system.
18600host_alias=$host_alias
18601host=$host
18602
18603# An echo program that does not interpret backslashes.
18604echo=$lt_echo
18605
18606# The archiver.
18607AR=$lt_AR
18608AR_FLAGS=$lt_AR_FLAGS
18609
18610# A C compiler.
18611LTCC=$lt_LTCC
18612
18613# A language-specific compiler.
18614CC=$lt_compiler_CXX
18615
18616# Is the compiler the GNU C compiler?
18617with_gcc=$GCC_CXX
18618
18619# An ERE matcher.
18620EGREP=$lt_EGREP
18621
18622# The linker used to build libraries.
18623LD=$lt_LD_CXX
18624
18625# Whether we need hard or soft links.
18626LN_S=$lt_LN_S
18627
18628# A BSD-compatible nm program.
18629NM=$lt_NM
18630
18631# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018632STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018633
18634# Used to examine libraries when file_magic_cmd begins "file"
18635MAGIC_CMD=$MAGIC_CMD
18636
18637# Used on cygwin: DLL creation program.
18638DLLTOOL="$DLLTOOL"
18639
18640# Used on cygwin: object dumper.
18641OBJDUMP="$OBJDUMP"
18642
18643# Used on cygwin: assembler.
18644AS="$AS"
18645
18646# The name of the directory that contains temporary libtool files.
18647objdir=$objdir
18648
18649# How to create reloadable object files.
18650reload_flag=$lt_reload_flag
18651reload_cmds=$lt_reload_cmds
18652
18653# How to pass a linker flag through the compiler.
18654wl=$lt_lt_prog_compiler_wl_CXX
18655
18656# Object file suffix (normally "o").
18657objext="$ac_objext"
18658
18659# Old archive suffix (normally "a").
18660libext="$libext"
18661
18662# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018663shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018664
18665# Executable file suffix (normally "").
18666exeext="$exeext"
18667
18668# Additional compiler flags for building library objects.
18669pic_flag=$lt_lt_prog_compiler_pic_CXX
18670pic_mode=$pic_mode
18671
18672# What is the maximum length of a command?
18673max_cmd_len=$lt_cv_sys_max_cmd_len
18674
18675# Does compiler simultaneously support -c and -o options?
18676compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18677
18678# Must we lock files when doing compilation ?
18679need_locks=$lt_need_locks
18680
18681# Do we need the lib prefix for modules?
18682need_lib_prefix=$need_lib_prefix
18683
18684# Do we need a version for libraries?
18685need_version=$need_version
18686
18687# Whether dlopen is supported.
18688dlopen_support=$enable_dlopen
18689
18690# Whether dlopen of programs is supported.
18691dlopen_self=$enable_dlopen_self
18692
18693# Whether dlopen of statically linked programs is supported.
18694dlopen_self_static=$enable_dlopen_self_static
18695
18696# Compiler flag to prevent dynamic linking.
18697link_static_flag=$lt_lt_prog_compiler_static_CXX
18698
18699# Compiler flag to turn off builtin functions.
18700no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18701
18702# Compiler flag to allow reflexive dlopens.
18703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18704
18705# Compiler flag to generate shared objects directly from archives.
18706whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18707
18708# Compiler flag to generate thread-safe objects.
18709thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18710
18711# Library versioning type.
18712version_type=$version_type
18713
18714# Format of library name prefix.
18715libname_spec=$lt_libname_spec
18716
18717# List of archive names. First name is the real one, the rest are links.
18718# The last name is the one that the linker finds with -lNAME.
18719library_names_spec=$lt_library_names_spec
18720
18721# The coded name of the library, if different from the real name.
18722soname_spec=$lt_soname_spec
18723
18724# Commands used to build and install an old-style archive.
18725RANLIB=$lt_RANLIB
18726old_archive_cmds=$lt_old_archive_cmds_CXX
18727old_postinstall_cmds=$lt_old_postinstall_cmds
18728old_postuninstall_cmds=$lt_old_postuninstall_cmds
18729
18730# Create an old-style archive from a shared archive.
18731old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18732
18733# Create a temporary old-style archive to link instead of a shared archive.
18734old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18735
18736# Commands used to build and install a shared archive.
18737archive_cmds=$lt_archive_cmds_CXX
18738archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18739postinstall_cmds=$lt_postinstall_cmds
18740postuninstall_cmds=$lt_postuninstall_cmds
18741
18742# Commands used to build a loadable module (assumed same as above if empty)
18743module_cmds=$lt_module_cmds_CXX
18744module_expsym_cmds=$lt_module_expsym_cmds_CXX
18745
18746# Commands to strip libraries.
18747old_striplib=$lt_old_striplib
18748striplib=$lt_striplib
18749
18750# Dependencies to place before the objects being linked to create a
18751# shared library.
18752predep_objects=$lt_predep_objects_CXX
18753
18754# Dependencies to place after the objects being linked to create a
18755# shared library.
18756postdep_objects=$lt_postdep_objects_CXX
18757
18758# Dependencies to place before the objects being linked to create a
18759# shared library.
18760predeps=$lt_predeps_CXX
18761
18762# Dependencies to place after the objects being linked to create a
18763# shared library.
18764postdeps=$lt_postdeps_CXX
18765
18766# The library search path used internally by the compiler when linking
18767# a shared library.
18768compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18769
18770# Method to check whether dependent libraries are shared objects.
18771deplibs_check_method=$lt_deplibs_check_method
18772
18773# Command to use when deplibs_check_method == file_magic.
18774file_magic_cmd=$lt_file_magic_cmd
18775
18776# Flag that allows shared libraries with undefined symbols to be built.
18777allow_undefined_flag=$lt_allow_undefined_flag_CXX
18778
18779# Flag that forces no undefined symbols.
18780no_undefined_flag=$lt_no_undefined_flag_CXX
18781
18782# Commands used to finish a libtool library installation in a directory.
18783finish_cmds=$lt_finish_cmds
18784
18785# Same as above, but a single script fragment to be evaled but not shown.
18786finish_eval=$lt_finish_eval
18787
18788# Take the output of nm and produce a listing of raw symbols and C names.
18789global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18790
18791# Transform the output of nm in a proper C declaration
18792global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18793
18794# Transform the output of nm in a C name address pair
18795global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18796
18797# This is the shared library runtime path variable.
18798runpath_var=$runpath_var
18799
18800# This is the shared library path variable.
18801shlibpath_var=$shlibpath_var
18802
18803# Is shlibpath searched before the hard-coded library search path?
18804shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18805
18806# How to hardcode a shared library path into an executable.
18807hardcode_action=$hardcode_action_CXX
18808
18809# Whether we should hardcode library paths into libraries.
18810hardcode_into_libs=$hardcode_into_libs
18811
18812# Flag to hardcode \$libdir into a binary during linking.
18813# This must work even if \$libdir does not exist.
18814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18815
18816# If ld is used when linking, flag to hardcode \$libdir into
18817# a binary during linking. This must work even if \$libdir does
18818# not exist.
18819hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18820
18821# Whether we need a single -rpath flag with a separated argument.
18822hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18823
18824# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18825# resulting binary.
18826hardcode_direct=$hardcode_direct_CXX
18827
18828# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18829# resulting binary.
18830hardcode_minus_L=$hardcode_minus_L_CXX
18831
18832# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18833# the resulting binary.
18834hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18835
18836# Set to yes if building a shared library automatically hardcodes DIR into the library
18837# and all subsequent libraries and executables linked against it.
18838hardcode_automatic=$hardcode_automatic_CXX
18839
18840# Variables whose values should be saved in libtool wrapper scripts and
18841# restored at relink time.
18842variables_saved_for_relink="$variables_saved_for_relink"
18843
18844# Whether libtool must link a program against all its dependency libraries.
18845link_all_deplibs=$link_all_deplibs_CXX
18846
18847# Compile-time system search path for libraries
18848sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18849
18850# Run-time system search path for libraries
18851sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18852
18853# Fix the shell variable \$srcfile for the compiler.
18854fix_srcfile_path="$fix_srcfile_path_CXX"
18855
18856# Set to yes if exported symbols are required.
18857always_export_symbols=$always_export_symbols_CXX
18858
18859# The commands to list exported symbols.
18860export_symbols_cmds=$lt_export_symbols_cmds_CXX
18861
18862# The commands to extract the exported symbol list from a shared archive.
18863extract_expsyms_cmds=$lt_extract_expsyms_cmds
18864
18865# Symbols that should not be listed in the preloaded symbols.
18866exclude_expsyms=$lt_exclude_expsyms_CXX
18867
18868# Symbols that must always be exported.
18869include_expsyms=$lt_include_expsyms_CXX
18870
18871# ### END LIBTOOL TAG CONFIG: $tagname
18872
18873__EOF__
18874
18875
18876else
18877 # If there is no Makefile yet, we rely on a make rule to execute
18878 # `config.status --recheck' to rerun these tests and create the
18879 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18881 if test -f "$ltmain_in"; then
18882 test -f Makefile && make "$ltmain"
18883 fi
John Criswell47fdd832003-07-14 16:52:07 +000018884fi
18885
18886
18887ac_ext=c
18888ac_cpp='$CPP $CPPFLAGS'
18889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893CC=$lt_save_CC
18894LDCXX=$LD
18895LD=$lt_save_LD
18896GCC=$lt_save_GCC
18897with_gnu_ldcxx=$with_gnu_ld
18898with_gnu_ld=$lt_save_with_gnu_ld
18899lt_cv_path_LDCXX=$lt_cv_path_LD
18900lt_cv_path_LD=$lt_save_path_LD
18901lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18902lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18903
18904 else
18905 tagname=""
18906 fi
18907 ;;
18908
18909 F77)
18910 if test -n "$F77" && test "X$F77" != "Xno"; then
18911
18912ac_ext=f
18913ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18914ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18916
18917
18918archive_cmds_need_lc_F77=no
18919allow_undefined_flag_F77=
18920always_export_symbols_F77=no
18921archive_expsym_cmds_F77=
18922export_dynamic_flag_spec_F77=
18923hardcode_direct_F77=no
18924hardcode_libdir_flag_spec_F77=
18925hardcode_libdir_flag_spec_ld_F77=
18926hardcode_libdir_separator_F77=
18927hardcode_minus_L_F77=no
18928hardcode_automatic_F77=no
18929module_cmds_F77=
18930module_expsym_cmds_F77=
18931link_all_deplibs_F77=unknown
18932old_archive_cmds_F77=$old_archive_cmds
18933no_undefined_flag_F77=
18934whole_archive_flag_spec_F77=
18935enable_shared_with_static_runtimes_F77=no
18936
18937# Source file extension for f77 test sources.
18938ac_ext=f
18939
18940# Object file extension for compiled f77 test sources.
18941objext=o
18942objext_F77=$objext
18943
18944# Code to be used in simple compile tests
18945lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18946
18947# Code to be used in simple link tests
18948lt_simple_link_test_code=" program t\n end\n"
18949
18950# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18951
18952# If no C compiler was specified, use CC.
18953LTCC=${LTCC-"$CC"}
18954
18955# Allow CC to be a program name with arguments.
18956compiler=$CC
18957
18958
18959# Allow CC to be a program name with arguments.
18960lt_save_CC="$CC"
18961CC=${F77-"f77"}
18962compiler=$CC
18963compiler_F77=$CC
18964cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18965
18966echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18967echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18968echo "$as_me:$LINENO: result: $can_build_shared" >&5
18969echo "${ECHO_T}$can_build_shared" >&6
18970
18971echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18972echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18973test "$can_build_shared" = "no" && enable_shared=no
18974
18975# On AIX, shared libraries and static libraries use the same namespace, and
18976# are all built from PIC.
18977case "$host_os" in
18978aix3*)
18979 test "$enable_shared" = yes && enable_static=no
18980 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018982 postinstall_cmds='$RANLIB $lib'
18983 fi
18984 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018985aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018986 test "$enable_shared" = yes && enable_static=no
18987 ;;
18988esac
18989echo "$as_me:$LINENO: result: $enable_shared" >&5
18990echo "${ECHO_T}$enable_shared" >&6
18991
18992echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18993echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18994# Make sure either enable_shared or enable_static is yes.
18995test "$enable_shared" = yes || enable_static=yes
18996echo "$as_me:$LINENO: result: $enable_static" >&5
18997echo "${ECHO_T}$enable_static" >&6
18998
18999test "$ld_shlibs_F77" = no && can_build_shared=no
19000
19001GCC_F77="$G77"
19002LD_F77="$LD"
19003
19004lt_prog_compiler_wl_F77=
19005lt_prog_compiler_pic_F77=
19006lt_prog_compiler_static_F77=
19007
19008echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19009echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19010
19011 if test "$GCC" = yes; then
19012 lt_prog_compiler_wl_F77='-Wl,'
19013 lt_prog_compiler_static_F77='-static'
19014
19015 case $host_os in
19016 aix*)
19017 # All AIX code is PIC.
19018 if test "$host_cpu" = ia64; then
19019 # AIX 5 now supports IA64 processor
19020 lt_prog_compiler_static_F77='-Bstatic'
19021 fi
19022 ;;
19023
19024 amigaos*)
19025 # FIXME: we need at least 68020 code to build shared libraries, but
19026 # adding the `-m68020' flag to GCC prevents building anything better,
19027 # like `-m68040'.
19028 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19029 ;;
19030
19031 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19032 # PIC is the default for these OSes.
19033 ;;
19034
19035 mingw* | pw32* | os2*)
19036 # This hack is so that the source file can tell whether it is being
19037 # built for inclusion in a dll (and should export symbols for example).
19038 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19039 ;;
19040
19041 darwin* | rhapsody*)
19042 # PIC is the default on this platform
19043 # Common symbols not allowed in MH_DYLIB files
19044 lt_prog_compiler_pic_F77='-fno-common'
19045 ;;
19046
19047 msdosdjgpp*)
19048 # Just because we use GCC doesn't mean we suddenly get shared libraries
19049 # on systems that don't support them.
19050 lt_prog_compiler_can_build_shared_F77=no
19051 enable_shared=no
19052 ;;
19053
19054 sysv4*MP*)
19055 if test -d /usr/nec; then
19056 lt_prog_compiler_pic_F77=-Kconform_pic
19057 fi
19058 ;;
19059
19060 hpux*)
19061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19062 # not for PA HP-UX.
19063 case "$host_cpu" in
19064 hppa*64*|ia64*)
19065 # +Z the default
19066 ;;
19067 *)
19068 lt_prog_compiler_pic_F77='-fPIC'
19069 ;;
19070 esac
19071 ;;
19072
19073 *)
19074 lt_prog_compiler_pic_F77='-fPIC'
19075 ;;
19076 esac
19077 else
19078 # PORTME Check for flag to pass linker flags through the system compiler.
19079 case $host_os in
19080 aix*)
19081 lt_prog_compiler_wl_F77='-Wl,'
19082 if test "$host_cpu" = ia64; then
19083 # AIX 5 now supports IA64 processor
19084 lt_prog_compiler_static_F77='-Bstatic'
19085 else
19086 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19087 fi
19088 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019089 darwin*)
19090 # PIC is the default on this platform
19091 # Common symbols not allowed in MH_DYLIB files
19092 case "$cc_basename" in
19093 xlc*)
19094 lt_prog_compiler_pic_F77='-qnocommon'
19095 lt_prog_compiler_wl_F77='-Wl,'
19096 ;;
19097 esac
19098 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019099
19100 mingw* | pw32* | os2*)
19101 # This hack is so that the source file can tell whether it is being
19102 # built for inclusion in a dll (and should export symbols for example).
19103 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19104 ;;
19105
19106 hpux9* | hpux10* | hpux11*)
19107 lt_prog_compiler_wl_F77='-Wl,'
19108 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19109 # not for PA HP-UX.
19110 case "$host_cpu" in
19111 hppa*64*|ia64*)
19112 # +Z the default
19113 ;;
19114 *)
19115 lt_prog_compiler_pic_F77='+Z'
19116 ;;
19117 esac
19118 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19119 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19120 ;;
19121
19122 irix5* | irix6* | nonstopux*)
19123 lt_prog_compiler_wl_F77='-Wl,'
19124 # PIC (with -KPIC) is the default.
19125 lt_prog_compiler_static_F77='-non_shared'
19126 ;;
19127
19128 newsos6)
19129 lt_prog_compiler_pic_F77='-KPIC'
19130 lt_prog_compiler_static_F77='-Bstatic'
19131 ;;
19132
19133 linux*)
19134 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019135 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019136 lt_prog_compiler_wl_F77='-Wl,'
19137 lt_prog_compiler_pic_F77='-KPIC'
19138 lt_prog_compiler_static_F77='-static'
19139 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019140 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019141 lt_prog_compiler_wl_F77='-Wl,'
19142 # All Alpha code is PIC.
19143 lt_prog_compiler_static_F77='-non_shared'
19144 ;;
19145 esac
19146 ;;
19147
19148 osf3* | osf4* | osf5*)
19149 lt_prog_compiler_wl_F77='-Wl,'
19150 # All OSF/1 code is PIC.
19151 lt_prog_compiler_static_F77='-non_shared'
19152 ;;
19153
19154 sco3.2v5*)
19155 lt_prog_compiler_pic_F77='-Kpic'
19156 lt_prog_compiler_static_F77='-dn'
19157 ;;
19158
19159 solaris*)
19160 lt_prog_compiler_wl_F77='-Wl,'
19161 lt_prog_compiler_pic_F77='-KPIC'
19162 lt_prog_compiler_static_F77='-Bstatic'
19163 ;;
19164
19165 sunos4*)
19166 lt_prog_compiler_wl_F77='-Qoption ld '
19167 lt_prog_compiler_pic_F77='-PIC'
19168 lt_prog_compiler_static_F77='-Bstatic'
19169 ;;
19170
19171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19172 lt_prog_compiler_wl_F77='-Wl,'
19173 lt_prog_compiler_pic_F77='-KPIC'
19174 lt_prog_compiler_static_F77='-Bstatic'
19175 ;;
19176
19177 sysv4*MP*)
19178 if test -d /usr/nec ;then
19179 lt_prog_compiler_pic_F77='-Kconform_pic'
19180 lt_prog_compiler_static_F77='-Bstatic'
19181 fi
19182 ;;
19183
19184 uts4*)
19185 lt_prog_compiler_pic_F77='-pic'
19186 lt_prog_compiler_static_F77='-Bstatic'
19187 ;;
19188
19189 *)
19190 lt_prog_compiler_can_build_shared_F77=no
19191 ;;
19192 esac
19193 fi
19194
19195echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19196echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19197
19198#
19199# Check to make sure the PIC flag actually works.
19200#
19201if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019202
19203echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019204echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19205if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207else
19208 lt_prog_compiler_pic_works_F77=no
19209 ac_outfile=conftest.$ac_objext
19210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19211 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19212 # Insert the option either (1) after the last *FLAGS variable, or
19213 # (2) before a word containing "conftest.", or (3) at the end.
19214 # Note that $ac_compile itself does not contain backslashes and begins
19215 # with a dollar sign (not a hyphen), so the echo should work correctly.
19216 # The option is referenced via a variable to avoid confusing sed.
19217 lt_compile=`echo "$ac_compile" | $SED \
19218 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19220 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000019221 (eval echo "\"\$as_me:19221: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019222 (eval "$lt_compile" 2>conftest.err)
19223 ac_status=$?
19224 cat conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000019225 echo "$as_me:19225: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019226 if (exit $ac_status) && test -s "$ac_outfile"; then
19227 # The compiler can only warn and ignore the option if not recognized
19228 # So say no if there are warnings
19229 if test ! -s conftest.err; then
19230 lt_prog_compiler_pic_works_F77=yes
19231 fi
19232 fi
19233 $rm conftest*
19234
19235fi
19236echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19237echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19238
19239if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19240 case $lt_prog_compiler_pic_F77 in
19241 "" | " "*) ;;
19242 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19243 esac
19244else
19245 lt_prog_compiler_pic_F77=
19246 lt_prog_compiler_can_build_shared_F77=no
19247fi
19248
19249fi
19250case "$host_os" in
19251 # For platforms which do not support PIC, -DPIC is meaningless:
19252 *djgpp*)
19253 lt_prog_compiler_pic_F77=
19254 ;;
19255 *)
19256 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19257 ;;
19258esac
19259
19260echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19261echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19262if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264else
19265 lt_cv_prog_compiler_c_o_F77=no
19266 $rm -r conftest 2>/dev/null
19267 mkdir conftest
19268 cd conftest
19269 mkdir out
19270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19271
John Criswell47fdd832003-07-14 16:52:07 +000019272 lt_compiler_flag="-o out/conftest2.$ac_objext"
19273 # Insert the option either (1) after the last *FLAGS variable, or
19274 # (2) before a word containing "conftest.", or (3) at the end.
19275 # Note that $ac_compile itself does not contain backslashes and begins
19276 # with a dollar sign (not a hyphen), so the echo should work correctly.
19277 lt_compile=`echo "$ac_compile" | $SED \
19278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19280 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000019281 (eval echo "\"\$as_me:19281: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019282 (eval "$lt_compile" 2>out/conftest.err)
19283 ac_status=$?
19284 cat out/conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000019285 echo "$as_me:19285: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19287 then
19288 # The compiler can only warn and ignore the option if not recognized
19289 # So say no if there are warnings
19290 if test ! -s out/conftest.err; then
19291 lt_cv_prog_compiler_c_o_F77=yes
19292 fi
19293 fi
19294 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019295 $rm conftest*
19296 # SGI C++ compiler will create directory out/ii_files/ for
19297 # template instantiation
19298 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19299 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019300 cd ..
19301 rmdir conftest
19302 $rm conftest*
19303
19304fi
19305echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19306echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19307
19308
19309hard_links="nottested"
19310if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19311 # do not overwrite the value of need_locks provided by the user
19312 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19313echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19314 hard_links=yes
19315 $rm conftest*
19316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19317 touch conftest.a
19318 ln conftest.a conftest.b 2>&5 || hard_links=no
19319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19320 echo "$as_me:$LINENO: result: $hard_links" >&5
19321echo "${ECHO_T}$hard_links" >&6
19322 if test "$hard_links" = no; then
19323 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19324echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19325 need_locks=warn
19326 fi
19327else
19328 need_locks=no
19329fi
19330
19331echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19332echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19333
19334 runpath_var=
19335 allow_undefined_flag_F77=
19336 enable_shared_with_static_runtimes_F77=no
19337 archive_cmds_F77=
19338 archive_expsym_cmds_F77=
19339 old_archive_From_new_cmds_F77=
19340 old_archive_from_expsyms_cmds_F77=
19341 export_dynamic_flag_spec_F77=
19342 whole_archive_flag_spec_F77=
19343 thread_safe_flag_spec_F77=
19344 hardcode_libdir_flag_spec_F77=
19345 hardcode_libdir_flag_spec_ld_F77=
19346 hardcode_libdir_separator_F77=
19347 hardcode_direct_F77=no
19348 hardcode_minus_L_F77=no
19349 hardcode_shlibpath_var_F77=unsupported
19350 link_all_deplibs_F77=unknown
19351 hardcode_automatic_F77=no
19352 module_cmds_F77=
19353 module_expsym_cmds_F77=
19354 always_export_symbols_F77=no
19355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19356 # include_expsyms should be a list of space-separated symbols to be *always*
19357 # included in the symbol list
19358 include_expsyms_F77=
19359 # exclude_expsyms can be an extended regexp of symbols to exclude
19360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19362 # as well as any symbol that contains `d'.
19363 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19365 # platforms (ab)use it in PIC code, but their linkers get confused if
19366 # the symbol is explicitly referenced. Since portable code cannot
19367 # rely on this symbol name, it's probably fine to never include it in
19368 # preloaded symbol tables.
19369 extract_expsyms_cmds=
19370
19371 case $host_os in
19372 cygwin* | mingw* | pw32*)
19373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19374 # When not using gcc, we currently assume that we are using
19375 # Microsoft Visual C++.
19376 if test "$GCC" != yes; then
19377 with_gnu_ld=no
19378 fi
19379 ;;
19380 openbsd*)
19381 with_gnu_ld=no
19382 ;;
19383 esac
19384
19385 ld_shlibs_F77=yes
19386 if test "$with_gnu_ld" = yes; then
19387 # If archive_cmds runs LD, not CC, wlarc should be empty
19388 wlarc='${wl}'
19389
19390 # See if GNU ld supports shared libraries.
19391 case $host_os in
19392 aix3* | aix4* | aix5*)
19393 # On AIX/PPC, the GNU linker is very broken
19394 if test "$host_cpu" != ia64; then
19395 ld_shlibs_F77=no
19396 cat <<EOF 1>&2
19397
19398*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19399*** to be unable to reliably create shared libraries on AIX.
19400*** Therefore, libtool is disabling shared libraries support. If you
19401*** really care for shared libraries, you may want to modify your PATH
19402*** so that a non-GNU linker is found, and then restart.
19403
19404EOF
19405 fi
19406 ;;
19407
19408 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019409 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 +000019410 hardcode_libdir_flag_spec_F77='-L$libdir'
19411 hardcode_minus_L_F77=yes
19412
19413 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19414 # that the semantics of dynamic libraries on AmigaOS, at least up
19415 # to version 4, is to share data among multiple programs linked
19416 # with the same dynamic library. Since this doesn't match the
19417 # behavior of shared libraries on other platforms, we can't use
19418 # them.
19419 ld_shlibs_F77=no
19420 ;;
19421
19422 beos*)
19423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19424 allow_undefined_flag_F77=unsupported
19425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19426 # support --undefined. This deserves some investigation. FIXME
19427 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19428 else
19429 ld_shlibs_F77=no
19430 fi
19431 ;;
19432
19433 cygwin* | mingw* | pw32*)
19434 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19435 # as there is no search path for DLLs.
19436 hardcode_libdir_flag_spec_F77='-L$libdir'
19437 allow_undefined_flag_F77=unsupported
19438 always_export_symbols_F77=no
19439 enable_shared_with_static_runtimes_F77=yes
19440 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19441
19442 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19443 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19444 # If the export-symbols file already is a .def file (1st line
19445 # is EXPORTS), use it as is; otherwise, prepend...
19446 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19447 cp $export_symbols $output_objdir/$soname.def;
19448 else
19449 echo EXPORTS > $output_objdir/$soname.def;
19450 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019451 fi~
19452 $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 +000019453 else
19454 ld_shlibs=no
19455 fi
19456 ;;
19457
19458 netbsd*)
19459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19460 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19461 wlarc=
19462 else
19463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19464 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19465 fi
19466 ;;
19467
19468 solaris* | sysv5*)
19469 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19470 ld_shlibs_F77=no
19471 cat <<EOF 1>&2
19472
19473*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19474*** create shared libraries on Solaris systems. Therefore, libtool
19475*** is disabling shared libraries support. We urge you to upgrade GNU
19476*** binutils to release 2.9.1 or newer. Another option is to modify
19477*** your PATH or compiler configuration so that the native linker is
19478*** used, and then restart.
19479
19480EOF
19481 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19482 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19483 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19484 else
19485 ld_shlibs_F77=no
19486 fi
19487 ;;
19488
19489 sunos4*)
19490 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19491 wlarc=
19492 hardcode_direct_F77=yes
19493 hardcode_shlibpath_var_F77=no
19494 ;;
19495
Reid Spencer2706f8c2004-09-19 23:53:36 +000019496 linux*)
19497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19498 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19499 archive_cmds_F77="$tmp_archive_cmds"
19500 supports_anon_versioning=no
19501 case `$LD -v 2>/dev/null` in
19502 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19503 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19504 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19505 *\ 2.11.*) ;; # other 2.11 versions
19506 *) supports_anon_versioning=yes ;;
19507 esac
19508 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019509 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19510cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19511$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019512 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19513 else
19514 archive_expsym_cmds_F77="$tmp_archive_cmds"
19515 fi
19516 else
19517 ld_shlibs_F77=no
19518 fi
19519 ;;
19520
John Criswell47fdd832003-07-14 16:52:07 +000019521 *)
19522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19524 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19525 else
19526 ld_shlibs_F77=no
19527 fi
19528 ;;
19529 esac
19530
19531 if test "$ld_shlibs_F77" = yes; then
19532 runpath_var=LD_RUN_PATH
19533 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19534 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19535 # ancient GNU ld didn't support --whole-archive et. al.
19536 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19537 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19538 else
19539 whole_archive_flag_spec_F77=
19540 fi
19541 fi
19542 else
19543 # PORTME fill in a description of your system's linker (not GNU ld)
19544 case $host_os in
19545 aix3*)
19546 allow_undefined_flag_F77=unsupported
19547 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019548 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 +000019549 # Note: this linker hardcodes the directories in LIBPATH if there
19550 # are no directories specified by -L.
19551 hardcode_minus_L_F77=yes
19552 if test "$GCC" = yes && test -z "$link_static_flag"; then
19553 # Neither direct hardcoding nor static linking is supported with a
19554 # broken collect2.
19555 hardcode_direct_F77=unsupported
19556 fi
19557 ;;
19558
19559 aix4* | aix5*)
19560 if test "$host_cpu" = ia64; then
19561 # On IA64, the linker does run time linking by default, so we don't
19562 # have to do anything special.
19563 aix_use_runtimelinking=no
19564 exp_sym_flag='-Bexport'
19565 no_entry_flag=""
19566 else
19567 # If we're using GNU nm, then we don't want the "-C" option.
19568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19569 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19570 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'
19571 else
19572 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'
19573 fi
19574 aix_use_runtimelinking=no
19575
19576 # Test if we are trying to use run time linking or normal
19577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19578 # need to do runtime linking.
19579 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19580 for ld_flag in $LDFLAGS; do
19581 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19582 aix_use_runtimelinking=yes
19583 break
19584 fi
19585 done
19586 esac
19587
19588 exp_sym_flag='-bexport'
19589 no_entry_flag='-bnoentry'
19590 fi
19591
19592 # When large executables or shared objects are built, AIX ld can
19593 # have problems creating the table of contents. If linking a library
19594 # or program results in "error TOC overflow" add -mminimal-toc to
19595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19597
19598 archive_cmds_F77=''
19599 hardcode_direct_F77=yes
19600 hardcode_libdir_separator_F77=':'
19601 link_all_deplibs_F77=yes
19602
19603 if test "$GCC" = yes; then
19604 case $host_os in aix4.012|aix4.012.*)
19605 # We only want to do this on AIX 4.2 and lower, the check
19606 # below for broken collect2 doesn't work under 4.3+
19607 collect2name=`${CC} -print-prog-name=collect2`
19608 if test -f "$collect2name" && \
19609 strings "$collect2name" | grep resolve_lib_name >/dev/null
19610 then
19611 # We have reworked collect2
19612 hardcode_direct_F77=yes
19613 else
19614 # We have old collect2
19615 hardcode_direct_F77=unsupported
19616 # It fails to find uninstalled libraries when the uninstalled
19617 # path is not listed in the libpath. Setting hardcode_minus_L
19618 # to unsupported forces relinking
19619 hardcode_minus_L_F77=yes
19620 hardcode_libdir_flag_spec_F77='-L$libdir'
19621 hardcode_libdir_separator_F77=
19622 fi
19623 esac
19624 shared_flag='-shared'
19625 else
19626 # not using gcc
19627 if test "$host_cpu" = ia64; then
19628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19629 # chokes on -Wl,-G. The following line is correct:
19630 shared_flag='-G'
19631 else
19632 if test "$aix_use_runtimelinking" = yes; then
19633 shared_flag='${wl}-G'
19634 else
19635 shared_flag='${wl}-bM:SRE'
19636 fi
19637 fi
19638 fi
19639
19640 # It seems that -bexpall does not export symbols beginning with
19641 # underscore (_), so it is better to generate a list of symbols to export.
19642 always_export_symbols_F77=yes
19643 if test "$aix_use_runtimelinking" = yes; then
19644 # Warning - without using the other runtime loading flags (-brtl),
19645 # -berok will link without error, but may produce a broken library.
19646 allow_undefined_flag_F77='-berok'
19647 # Determine the default libpath from the value encoded in an empty executable.
19648 cat >conftest.$ac_ext <<_ACEOF
19649 program main
19650
19651 end
19652_ACEOF
19653rm -f conftest.$ac_objext conftest$ac_exeext
19654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019655 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019662 { ac_try='test -z "$ac_f77_werror_flag"
19663 || test ! -s conftest.err'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } &&
19669 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675
19676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19677}'`
19678# Check for a 64-bit object if we didn't find anything.
19679if 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; }
19680}'`; fi
19681else
19682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019683sed 's/^/| /' conftest.$ac_ext >&5
19684
John Criswell47fdd832003-07-14 16:52:07 +000019685fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019686rm -f conftest.err conftest.$ac_objext \
19687 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19689
19690 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19691 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"
19692 else
19693 if test "$host_cpu" = ia64; then
19694 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19695 allow_undefined_flag_F77="-z nodefs"
19696 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"
19697 else
19698 # Determine the default libpath from the value encoded in an empty executable.
19699 cat >conftest.$ac_ext <<_ACEOF
19700 program main
19701
19702 end
19703_ACEOF
19704rm -f conftest.$ac_objext conftest$ac_exeext
19705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019706 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019713 { ac_try='test -z "$ac_f77_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726
19727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19728}'`
19729# Check for a 64-bit object if we didn't find anything.
19730if 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; }
19731}'`; fi
19732else
19733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019734sed 's/^/| /' conftest.$ac_ext >&5
19735
John Criswell47fdd832003-07-14 16:52:07 +000019736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019737rm -f conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19740
19741 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19742 # Warning - without using the other run time loading flags,
19743 # -berok will link without error, but may produce a broken library.
19744 no_undefined_flag_F77=' ${wl}-bernotok'
19745 allow_undefined_flag_F77=' ${wl}-berok'
19746 # -bexpall does not export symbols beginning with underscore (_)
19747 always_export_symbols_F77=yes
19748 # Exported symbols can be pulled into shared objects from archives
19749 whole_archive_flag_spec_F77=' '
19750 archive_cmds_need_lc_F77=yes
19751 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019752 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 +000019753 fi
19754 fi
19755 ;;
19756
19757 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019758 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 +000019759 hardcode_libdir_flag_spec_F77='-L$libdir'
19760 hardcode_minus_L_F77=yes
19761 # see comment about different semantics on the GNU ld section
19762 ld_shlibs_F77=no
19763 ;;
19764
Reid Spencer2706f8c2004-09-19 23:53:36 +000019765 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019766 export_dynamic_flag_spec_F77=-rdynamic
19767 ;;
19768
19769 cygwin* | mingw* | pw32*)
19770 # When not using gcc, we currently assume that we are using
19771 # Microsoft Visual C++.
19772 # hardcode_libdir_flag_spec is actually meaningless, as there is
19773 # no search path for DLLs.
19774 hardcode_libdir_flag_spec_F77=' '
19775 allow_undefined_flag_F77=unsupported
19776 # Tell ltmain to make .lib files, not .a files.
19777 libext=lib
19778 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019779 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019780 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019781 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 +000019782 # The linker will automatically build a .lib file if we build a DLL.
19783 old_archive_From_new_cmds_F77='true'
19784 # FIXME: Should let the user specify the lib program.
19785 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19786 fix_srcfile_path='`cygpath -w "$srcfile"`'
19787 enable_shared_with_static_runtimes_F77=yes
19788 ;;
19789
19790 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019791 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019792 rhapsody* | darwin1.[012])
19793 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19794 ;;
19795 *) # Darwin 1.3 on
19796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19797 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19798 else
19799 case ${MACOSX_DEPLOYMENT_TARGET} in
19800 10.[012])
19801 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19802 ;;
19803 10.*)
19804 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19805 ;;
19806 esac
19807 fi
19808 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019809 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019810 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019811 hardcode_direct_F77=no
19812 hardcode_automatic_F77=yes
19813 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019814 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019815 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019816 if test "$GCC" = yes ; then
19817 output_verbose_link_cmd='echo'
19818 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19819 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19820 # 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 +000019821 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}'
19822 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 +000019823 else
19824 case "$cc_basename" in
19825 xlc*)
19826 output_verbose_link_cmd='echo'
19827 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19828 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19829 # 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 +000019830 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}'
19831 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 +000019832 ;;
19833 *)
19834 ld_shlibs_F77=no
19835 ;;
19836 esac
John Criswell47fdd832003-07-14 16:52:07 +000019837 fi
19838 ;;
19839
19840 dgux*)
19841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842 hardcode_libdir_flag_spec_F77='-L$libdir'
19843 hardcode_shlibpath_var_F77=no
19844 ;;
19845
19846 freebsd1*)
19847 ld_shlibs_F77=no
19848 ;;
19849
19850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19851 # support. Future versions do this automatically, but an explicit c++rt0.o
19852 # does not break anything, and helps significantly (at the cost of a little
19853 # extra space).
19854 freebsd2.2*)
19855 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19856 hardcode_libdir_flag_spec_F77='-R$libdir'
19857 hardcode_direct_F77=yes
19858 hardcode_shlibpath_var_F77=no
19859 ;;
19860
19861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19862 freebsd2*)
19863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19864 hardcode_direct_F77=yes
19865 hardcode_minus_L_F77=yes
19866 hardcode_shlibpath_var_F77=no
19867 ;;
19868
19869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019870 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019871 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19872 hardcode_libdir_flag_spec_F77='-R$libdir'
19873 hardcode_direct_F77=yes
19874 hardcode_shlibpath_var_F77=no
19875 ;;
19876
19877 hpux9*)
19878 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019879 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 +000019880 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019881 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 +000019882 fi
19883 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19884 hardcode_libdir_separator_F77=:
19885 hardcode_direct_F77=yes
19886
19887 # hardcode_minus_L: Not really in the search PATH,
19888 # but as the default location of the library.
19889 hardcode_minus_L_F77=yes
19890 export_dynamic_flag_spec_F77='${wl}-E'
19891 ;;
19892
19893 hpux10* | hpux11*)
19894 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19895 case "$host_cpu" in
19896 hppa*64*|ia64*)
19897 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19898 ;;
19899 *)
19900 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19901 ;;
19902 esac
19903 else
19904 case "$host_cpu" in
19905 hppa*64*|ia64*)
19906 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19907 ;;
19908 *)
19909 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19910 ;;
19911 esac
19912 fi
19913 if test "$with_gnu_ld" = no; then
19914 case "$host_cpu" in
19915 hppa*64*)
19916 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19917 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19918 hardcode_libdir_separator_F77=:
19919 hardcode_direct_F77=no
19920 hardcode_shlibpath_var_F77=no
19921 ;;
19922 ia64*)
19923 hardcode_libdir_flag_spec_F77='-L$libdir'
19924 hardcode_direct_F77=no
19925 hardcode_shlibpath_var_F77=no
19926
19927 # hardcode_minus_L: Not really in the search PATH,
19928 # but as the default location of the library.
19929 hardcode_minus_L_F77=yes
19930 ;;
19931 *)
19932 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19933 hardcode_libdir_separator_F77=:
19934 hardcode_direct_F77=yes
19935 export_dynamic_flag_spec_F77='${wl}-E'
19936
19937 # hardcode_minus_L: Not really in the search PATH,
19938 # but as the default location of the library.
19939 hardcode_minus_L_F77=yes
19940 ;;
19941 esac
19942 fi
19943 ;;
19944
19945 irix5* | irix6* | nonstopux*)
19946 if test "$GCC" = yes; then
19947 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'
19948 else
19949 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'
19950 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19951 fi
19952 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19953 hardcode_libdir_separator_F77=:
19954 link_all_deplibs_F77=yes
19955 ;;
19956
19957 netbsd*)
19958 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19959 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19960 else
19961 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19962 fi
19963 hardcode_libdir_flag_spec_F77='-R$libdir'
19964 hardcode_direct_F77=yes
19965 hardcode_shlibpath_var_F77=no
19966 ;;
19967
19968 newsos6)
19969 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19970 hardcode_direct_F77=yes
19971 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19972 hardcode_libdir_separator_F77=:
19973 hardcode_shlibpath_var_F77=no
19974 ;;
19975
19976 openbsd*)
19977 hardcode_direct_F77=yes
19978 hardcode_shlibpath_var_F77=no
19979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19980 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981 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 +000019982 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19983 export_dynamic_flag_spec_F77='${wl}-E'
19984 else
19985 case $host_os in
19986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19987 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19988 hardcode_libdir_flag_spec_F77='-R$libdir'
19989 ;;
19990 *)
19991 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19992 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19993 ;;
19994 esac
19995 fi
19996 ;;
19997
19998 os2*)
19999 hardcode_libdir_flag_spec_F77='-L$libdir'
20000 hardcode_minus_L_F77=yes
20001 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000020002 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 +000020003 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20004 ;;
20005
20006 osf3*)
20007 if test "$GCC" = yes; then
20008 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20009 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'
20010 else
20011 allow_undefined_flag_F77=' -expect_unresolved \*'
20012 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'
20013 fi
20014 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20015 hardcode_libdir_separator_F77=:
20016 ;;
20017
20018 osf4* | osf5*) # as osf3* with the addition of -msym flag
20019 if test "$GCC" = yes; then
20020 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20021 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'
20022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20023 else
20024 allow_undefined_flag_F77=' -expect_unresolved \*'
20025 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 +000020026 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~
20027 $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'
20028
John Criswell47fdd832003-07-14 16:52:07 +000020029 # Both c and cxx compiler support -rpath directly
20030 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20031 fi
20032 hardcode_libdir_separator_F77=:
20033 ;;
20034
20035 sco3.2v5*)
20036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20037 hardcode_shlibpath_var_F77=no
20038 export_dynamic_flag_spec_F77='${wl}-Bexport'
20039 runpath_var=LD_RUN_PATH
20040 hardcode_runpath_var=yes
20041 ;;
20042
20043 solaris*)
20044 no_undefined_flag_F77=' -z text'
20045 if test "$GCC" = yes; then
20046 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020047 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20048 $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 +000020049 else
20050 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020051 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20052 $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 +000020053 fi
20054 hardcode_libdir_flag_spec_F77='-R$libdir'
20055 hardcode_shlibpath_var_F77=no
20056 case $host_os in
20057 solaris2.[0-5] | solaris2.[0-5].*) ;;
20058 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20059 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20060 esac
20061 link_all_deplibs_F77=yes
20062 ;;
20063
20064 sunos4*)
20065 if test "x$host_vendor" = xsequent; then
20066 # Use $CC to link under sequent, because it throws in some extra .o
20067 # files that make .init and .fini sections work.
20068 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20069 else
20070 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20071 fi
20072 hardcode_libdir_flag_spec_F77='-L$libdir'
20073 hardcode_direct_F77=yes
20074 hardcode_minus_L_F77=yes
20075 hardcode_shlibpath_var_F77=no
20076 ;;
20077
20078 sysv4)
20079 case $host_vendor in
20080 sni)
20081 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20082 hardcode_direct_F77=yes # is this really true???
20083 ;;
20084 siemens)
20085 ## LD is ld it makes a PLAMLIB
20086 ## CC just makes a GrossModule.
20087 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20088 reload_cmds_F77='$CC -r -o $output$reload_objs'
20089 hardcode_direct_F77=no
20090 ;;
20091 motorola)
20092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20094 ;;
20095 esac
20096 runpath_var='LD_RUN_PATH'
20097 hardcode_shlibpath_var_F77=no
20098 ;;
20099
20100 sysv4.3*)
20101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20102 hardcode_shlibpath_var_F77=no
20103 export_dynamic_flag_spec_F77='-Bexport'
20104 ;;
20105
20106 sysv4*MP*)
20107 if test -d /usr/nec; then
20108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20109 hardcode_shlibpath_var_F77=no
20110 runpath_var=LD_RUN_PATH
20111 hardcode_runpath_var=yes
20112 ld_shlibs_F77=yes
20113 fi
20114 ;;
20115
20116 sysv4.2uw2*)
20117 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20118 hardcode_direct_F77=yes
20119 hardcode_minus_L_F77=no
20120 hardcode_shlibpath_var_F77=no
20121 hardcode_runpath_var=yes
20122 runpath_var=LD_RUN_PATH
20123 ;;
20124
20125 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20126 no_undefined_flag_F77='${wl}-z ${wl}text'
20127 if test "$GCC" = yes; then
20128 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20129 else
20130 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20131 fi
20132 runpath_var='LD_RUN_PATH'
20133 hardcode_shlibpath_var_F77=no
20134 ;;
20135
20136 sysv5*)
20137 no_undefined_flag_F77=' -z text'
20138 # $CC -shared without GNU ld will not create a library from C++
20139 # object files and a static libstdc++, better avoid it by now
20140 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020141 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20142 $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 +000020143 hardcode_libdir_flag_spec_F77=
20144 hardcode_shlibpath_var_F77=no
20145 runpath_var='LD_RUN_PATH'
20146 ;;
20147
20148 uts4*)
20149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20150 hardcode_libdir_flag_spec_F77='-L$libdir'
20151 hardcode_shlibpath_var_F77=no
20152 ;;
20153
20154 *)
20155 ld_shlibs_F77=no
20156 ;;
20157 esac
20158 fi
20159
20160echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20161echo "${ECHO_T}$ld_shlibs_F77" >&6
20162test "$ld_shlibs_F77" = no && can_build_shared=no
20163
20164variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20165if test "$GCC" = yes; then
20166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20167fi
20168
20169#
20170# Do we need to explicitly link libc?
20171#
20172case "x$archive_cmds_need_lc_F77" in
20173x|xyes)
20174 # Assume -lc should be added
20175 archive_cmds_need_lc_F77=yes
20176
20177 if test "$enable_shared" = yes && test "$GCC" = yes; then
20178 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020180 # FIXME: we may have to deal with multi-command sequences.
20181 ;;
20182 '$CC '*)
20183 # Test whether the compiler implicitly links with -lc since on some
20184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185 # to ld, don't add -lc before -lgcc.
20186 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20188 $rm conftest*
20189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20190
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } 2>conftest.err; then
20196 soname=conftest
20197 lib=conftest
20198 libobjs=conftest.$ac_objext
20199 deplibs=
20200 wl=$lt_prog_compiler_wl_F77
20201 compiler_flags=-v
20202 linker_flags=-v
20203 verstring=
20204 output_objdir=.
20205 libname=conftest
20206 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20207 allow_undefined_flag_F77=
20208 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20209 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }
20213 then
20214 archive_cmds_need_lc_F77=no
20215 else
20216 archive_cmds_need_lc_F77=yes
20217 fi
20218 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20219 else
20220 cat conftest.err 1>&5
20221 fi
20222 $rm conftest*
20223 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20224echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20225 ;;
20226 esac
20227 fi
20228 ;;
20229esac
20230
John Criswell47fdd832003-07-14 16:52:07 +000020231echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20232echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20233library_names_spec=
20234libname_spec='lib$name'
20235soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020236shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020237postinstall_cmds=
20238postuninstall_cmds=
20239finish_cmds=
20240finish_eval=
20241shlibpath_var=
20242shlibpath_overrides_runpath=unknown
20243version_type=none
20244dynamic_linker="$host_os ld.so"
20245sys_lib_dlsearch_path_spec="/lib /usr/lib"
20246if test "$GCC" = yes; then
20247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20248 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20249 # if the path contains ";" then we assume it to be the separator
20250 # otherwise default to the standard path separator (i.e. ":") - it is
20251 # assumed that no part of a normal pathname contains ";" but that should
20252 # okay in the real world where ";" in dirpaths is itself problematic.
20253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20254 else
20255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20256 fi
20257else
20258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20259fi
20260need_lib_prefix=unknown
20261hardcode_into_libs=no
20262
20263# when you set need_version to no, make sure it does not cause -set_version
20264# flags to be left without arguments
20265need_version=unknown
20266
20267case $host_os in
20268aix3*)
20269 version_type=linux
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20271 shlibpath_var=LIBPATH
20272
20273 # AIX 3 has no versioning support, so we append a major version to the name.
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 ;;
20276
20277aix4* | aix5*)
20278 version_type=linux
20279 need_lib_prefix=no
20280 need_version=no
20281 hardcode_into_libs=yes
20282 if test "$host_cpu" = ia64; then
20283 # AIX 5 supports IA64
20284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20285 shlibpath_var=LD_LIBRARY_PATH
20286 else
20287 # With GCC up to 2.95.x, collect2 would create an import file
20288 # for dependence libraries. The import file would start with
20289 # the line `#! .'. This would cause the generated library to
20290 # depend on `.', always an invalid library. This was fixed in
20291 # development snapshots of GCC prior to 3.0.
20292 case $host_os in
20293 aix4 | aix4.[01] | aix4.[01].*)
20294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20295 echo ' yes '
20296 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20297 :
20298 else
20299 can_build_shared=no
20300 fi
20301 ;;
20302 esac
20303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20304 # soname into executable. Probably we can add versioning support to
20305 # collect2, so additional links can be useful in future.
20306 if test "$aix_use_runtimelinking" = yes; then
20307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20308 # instead of lib<name>.a to let people know that these are not
20309 # typical AIX shared libraries.
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 else
20312 # We preserve .a as extension for shared libraries through AIX4.2
20313 # and later when we are not doing run time linking.
20314 library_names_spec='${libname}${release}.a $libname.a'
20315 soname_spec='${libname}${release}${shared_ext}$major'
20316 fi
20317 shlibpath_var=LIBPATH
20318 fi
20319 ;;
20320
20321amigaos*)
20322 library_names_spec='$libname.ixlibrary $libname.a'
20323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020324 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 +000020325 ;;
20326
20327beos*)
20328 library_names_spec='${libname}${shared_ext}'
20329 dynamic_linker="$host_os ld.so"
20330 shlibpath_var=LIBRARY_PATH
20331 ;;
20332
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020334 version_type=linux
20335 need_version=no
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20342 # the default ld.so.conf also contains /usr/contrib/lib and
20343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20344 # libtool to hard-code these into programs
20345 ;;
20346
20347cygwin* | mingw* | pw32*)
20348 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020349 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020350 need_version=no
20351 need_lib_prefix=no
20352
20353 case $GCC,$host_os in
20354 yes,cygwin* | yes,mingw* | yes,pw32*)
20355 library_names_spec='$libname.dll.a'
20356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020357 postinstall_cmds='base_file=`basename \${file}`~
20358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20359 dldir=$destdir/`dirname \$dlpath`~
20360 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020361 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20363 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020364 $rm \$dlpath'
20365 shlibpath_overrides_runpath=yes
20366
20367 case $host_os in
20368 cygwin*)
20369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20370 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 +000020371 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020372 ;;
20373 mingw*)
20374 # MinGW DLLs use traditional 'lib' prefix
20375 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20376 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20377 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20378 # It is most probably a Windows format PATH printed by
20379 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20380 # path with ; separators, and with drive letters. We can handle the
20381 # drive letters (cygwin fileutils understands them), so leave them,
20382 # especially as we might pass files found there to a mingw objdump,
20383 # which wouldn't understand a cygwinified path. Ahh.
20384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20385 else
20386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20387 fi
20388 ;;
20389 pw32*)
20390 # pw32 DLLs use 'pw' prefix rather than 'lib'
20391 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20392 ;;
20393 esac
20394 ;;
20395
20396 *)
20397 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20398 ;;
20399 esac
20400 dynamic_linker='Win32 ld.exe'
20401 # FIXME: first we should search . and the directory the executable is in
20402 shlibpath_var=PATH
20403 ;;
20404
20405darwin* | rhapsody*)
20406 dynamic_linker="$host_os dyld"
20407 version_type=darwin
20408 need_lib_prefix=no
20409 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020410 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020411 soname_spec='${libname}${release}${major}$shared_ext'
20412 shlibpath_overrides_runpath=yes
20413 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020414 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020415 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020416 if test "$GCC" = yes; then
20417 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"`
20418 else
20419 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020420 fi
20421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20422 ;;
20423
20424dgux*)
20425 version_type=linux
20426 need_lib_prefix=no
20427 need_version=no
20428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 ;;
20432
20433freebsd1*)
20434 dynamic_linker=no
20435 ;;
20436
Reid Spencer2706f8c2004-09-19 23:53:36 +000020437kfreebsd*-gnu)
20438 version_type=linux
20439 need_lib_prefix=no
20440 need_version=no
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 shlibpath_overrides_runpath=no
20445 hardcode_into_libs=yes
20446 dynamic_linker='GNU ld.so'
20447 ;;
20448
John Criswell47fdd832003-07-14 16:52:07 +000020449freebsd*)
20450 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20451 version_type=freebsd-$objformat
20452 case $version_type in
20453 freebsd-elf*)
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20455 need_version=no
20456 need_lib_prefix=no
20457 ;;
20458 freebsd-*)
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20460 need_version=yes
20461 ;;
20462 esac
20463 shlibpath_var=LD_LIBRARY_PATH
20464 case $host_os in
20465 freebsd2*)
20466 shlibpath_overrides_runpath=yes
20467 ;;
20468 freebsd3.01* | freebsdelf3.01*)
20469 shlibpath_overrides_runpath=yes
20470 hardcode_into_libs=yes
20471 ;;
20472 *) # from 3.2 on
20473 shlibpath_overrides_runpath=no
20474 hardcode_into_libs=yes
20475 ;;
20476 esac
20477 ;;
20478
20479gnu*)
20480 version_type=linux
20481 need_lib_prefix=no
20482 need_version=no
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 hardcode_into_libs=yes
20487 ;;
20488
20489hpux9* | hpux10* | hpux11*)
20490 # Give a soname corresponding to the major version so that dld.sl refuses to
20491 # link against other versions.
20492 version_type=sunos
20493 need_lib_prefix=no
20494 need_version=no
20495 case "$host_cpu" in
20496 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020497 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020498 hardcode_into_libs=yes
20499 dynamic_linker="$host_os dld.so"
20500 shlibpath_var=LD_LIBRARY_PATH
20501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 if test "X$HPUX_IA64_MODE" = X32; then
20505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20506 else
20507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20508 fi
20509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20510 ;;
20511 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020512 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020513 hardcode_into_libs=yes
20514 dynamic_linker="$host_os dld.sl"
20515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20521 ;;
20522 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020523 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020524 dynamic_linker="$host_os dld.sl"
20525 shlibpath_var=SHLIB_PATH
20526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528 soname_spec='${libname}${release}${shared_ext}$major'
20529 ;;
20530 esac
20531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20532 postinstall_cmds='chmod 555 $lib'
20533 ;;
20534
20535irix5* | irix6* | nonstopux*)
20536 case $host_os in
20537 nonstopux*) version_type=nonstopux ;;
20538 *)
20539 if test "$lt_cv_prog_gnu_ld" = yes; then
20540 version_type=linux
20541 else
20542 version_type=irix
20543 fi ;;
20544 esac
20545 need_lib_prefix=no
20546 need_version=no
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20549 case $host_os in
20550 irix5* | nonstopux*)
20551 libsuff= shlibsuff=
20552 ;;
20553 *)
20554 case $LD in # libtool.m4 will add one of these switches to LD
20555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20556 libsuff= shlibsuff= libmagic=32-bit;;
20557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20558 libsuff=32 shlibsuff=N32 libmagic=N32;;
20559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20561 *) libsuff= shlibsuff= libmagic=never-match;;
20562 esac
20563 ;;
20564 esac
20565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20566 shlibpath_overrides_runpath=no
20567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20569 hardcode_into_libs=yes
20570 ;;
20571
20572# No shared lib support for Linux oldld, aout, or coff.
20573linux*oldld* | linux*aout* | linux*coff*)
20574 dynamic_linker=no
20575 ;;
20576
20577# This must be Linux ELF.
20578linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20585 shlibpath_var=LD_LIBRARY_PATH
20586 shlibpath_overrides_runpath=no
20587 # This implies no fast_install, which is unacceptable.
20588 # Some rework will be needed to allow for fast_install
20589 # before this can be enabled.
20590 hardcode_into_libs=yes
20591
Reid Spencer2706f8c2004-09-19 23:53:36 +000020592 # Append ld.so.conf contents to the search path
20593 if test -f /etc/ld.so.conf; then
20594 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20596 fi
20597
John Criswell47fdd832003-07-14 16:52:07 +000020598 # We used to test for /lib/ld.so.1 and disable shared libraries on
20599 # powerpc, because MkLinux only supported shared libraries with the
20600 # GNU dynamic linker. Since this was broken with cross compilers,
20601 # most powerpc-linux boxes support dynamic linking these days and
20602 # people can always --disable-shared, the test was removed, and we
20603 # assume the GNU/Linux dynamic linker is in use.
20604 dynamic_linker='GNU/Linux ld.so'
20605 ;;
20606
Reid Spencer2706f8c2004-09-19 23:53:36 +000020607knetbsd*-gnu)
20608 version_type=linux
20609 need_lib_prefix=no
20610 need_version=no
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20612 soname_spec='${libname}${release}${shared_ext}$major'
20613 shlibpath_var=LD_LIBRARY_PATH
20614 shlibpath_overrides_runpath=no
20615 hardcode_into_libs=yes
20616 dynamic_linker='GNU ld.so'
20617 ;;
20618
John Criswell47fdd832003-07-14 16:52:07 +000020619netbsd*)
20620 version_type=sunos
20621 need_lib_prefix=no
20622 need_version=no
20623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20626 dynamic_linker='NetBSD (a.out) ld.so'
20627 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020629 soname_spec='${libname}${release}${shared_ext}$major'
20630 dynamic_linker='NetBSD ld.elf_so'
20631 fi
20632 shlibpath_var=LD_LIBRARY_PATH
20633 shlibpath_overrides_runpath=yes
20634 hardcode_into_libs=yes
20635 ;;
20636
20637newsos6)
20638 version_type=linux
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20640 shlibpath_var=LD_LIBRARY_PATH
20641 shlibpath_overrides_runpath=yes
20642 ;;
20643
Reid Spencer2706f8c2004-09-19 23:53:36 +000020644nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020645 version_type=linux
20646 need_lib_prefix=no
20647 need_version=no
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 shlibpath_overrides_runpath=yes
20652 ;;
20653
20654openbsd*)
20655 version_type=sunos
20656 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020657 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20660 shlibpath_var=LD_LIBRARY_PATH
20661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20662 case $host_os in
20663 openbsd2.[89] | openbsd2.[89].*)
20664 shlibpath_overrides_runpath=no
20665 ;;
20666 *)
20667 shlibpath_overrides_runpath=yes
20668 ;;
20669 esac
20670 else
20671 shlibpath_overrides_runpath=yes
20672 fi
20673 ;;
20674
20675os2*)
20676 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020677 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020678 need_lib_prefix=no
20679 library_names_spec='$libname${shared_ext} $libname.a'
20680 dynamic_linker='OS/2 ld.exe'
20681 shlibpath_var=LIBPATH
20682 ;;
20683
20684osf3* | osf4* | osf5*)
20685 version_type=osf
20686 need_lib_prefix=no
20687 need_version=no
20688 soname_spec='${libname}${release}${shared_ext}$major'
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20690 shlibpath_var=LD_LIBRARY_PATH
20691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20693 ;;
20694
20695sco3.2v5*)
20696 version_type=osf
20697 soname_spec='${libname}${release}${shared_ext}$major'
20698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20699 shlibpath_var=LD_LIBRARY_PATH
20700 ;;
20701
20702solaris*)
20703 version_type=linux
20704 need_lib_prefix=no
20705 need_version=no
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707 soname_spec='${libname}${release}${shared_ext}$major'
20708 shlibpath_var=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath=yes
20710 hardcode_into_libs=yes
20711 # ldd complains unless libraries are executable
20712 postinstall_cmds='chmod +x $lib'
20713 ;;
20714
20715sunos4*)
20716 version_type=sunos
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=yes
20721 if test "$with_gnu_ld" = yes; then
20722 need_lib_prefix=no
20723 fi
20724 need_version=yes
20725 ;;
20726
20727sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20728 version_type=linux
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 shlibpath_var=LD_LIBRARY_PATH
20732 case $host_vendor in
20733 sni)
20734 shlibpath_overrides_runpath=no
20735 need_lib_prefix=no
20736 export_dynamic_flag_spec='${wl}-Blargedynsym'
20737 runpath_var=LD_RUN_PATH
20738 ;;
20739 siemens)
20740 need_lib_prefix=no
20741 ;;
20742 motorola)
20743 need_lib_prefix=no
20744 need_version=no
20745 shlibpath_overrides_runpath=no
20746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20747 ;;
20748 esac
20749 ;;
20750
20751sysv4*MP*)
20752 if test -d /usr/nec ;then
20753 version_type=linux
20754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20755 soname_spec='$libname${shared_ext}.$major'
20756 shlibpath_var=LD_LIBRARY_PATH
20757 fi
20758 ;;
20759
20760uts4*)
20761 version_type=linux
20762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 soname_spec='${libname}${release}${shared_ext}$major'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 ;;
20766
20767*)
20768 dynamic_linker=no
20769 ;;
20770esac
20771echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20772echo "${ECHO_T}$dynamic_linker" >&6
20773test "$dynamic_linker" = no && can_build_shared=no
20774
Reid Spencer2706f8c2004-09-19 23:53:36 +000020775echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20776echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20777hardcode_action_F77=
20778if test -n "$hardcode_libdir_flag_spec_F77" || \
20779 test -n "$runpath_var_F77" || \
20780 test "X$hardcode_automatic_F77" = "Xyes" ; then
20781
20782 # We can hardcode non-existant directories.
20783 if test "$hardcode_direct_F77" != no &&
20784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20785 # have to relink, otherwise we might link with an installed library
20786 # when we should be linking with a yet-to-be-installed one
20787 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20788 test "$hardcode_minus_L_F77" != no; then
20789 # Linking always hardcodes the temporary library directory.
20790 hardcode_action_F77=relink
20791 else
20792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20793 hardcode_action_F77=immediate
20794 fi
20795else
20796 # We cannot hardcode anything, or else we can only hardcode existing
20797 # directories.
20798 hardcode_action_F77=unsupported
20799fi
20800echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20801echo "${ECHO_T}$hardcode_action_F77" >&6
20802
20803if test "$hardcode_action_F77" = relink; then
20804 # Fast installation is not supported
20805 enable_fast_install=no
20806elif test "$shlibpath_overrides_runpath" = yes ||
20807 test "$enable_shared" = no; then
20808 # Fast installation is not necessary
20809 enable_fast_install=needless
20810fi
20811
20812striplib=
20813old_striplib=
20814echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20815echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20816if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20819 echo "$as_me:$LINENO: result: yes" >&5
20820echo "${ECHO_T}yes" >&6
20821else
20822# FIXME - insert some real tests, host_os isn't really good enough
20823 case $host_os in
20824 darwin*)
20825 if test -n "$STRIP" ; then
20826 striplib="$STRIP -x"
20827 echo "$as_me:$LINENO: result: yes" >&5
20828echo "${ECHO_T}yes" >&6
20829 else
20830 echo "$as_me:$LINENO: result: no" >&5
20831echo "${ECHO_T}no" >&6
20832fi
20833 ;;
20834 *)
20835 echo "$as_me:$LINENO: result: no" >&5
20836echo "${ECHO_T}no" >&6
20837 ;;
20838 esac
20839fi
20840
20841
John Criswell47fdd832003-07-14 16:52:07 +000020842
20843# The else clause should only fire when bootstrapping the
20844# libtool distribution, otherwise you forgot to ship ltmain.sh
20845# with your package, and you will get complaints that there are
20846# no rules to generate ltmain.sh.
20847if test -f "$ltmain"; then
20848 # See if we are running on zsh, and set the options which allow our commands through
20849 # without removal of \ escapes.
20850 if test -n "${ZSH_VERSION+set}" ; then
20851 setopt NO_GLOB_SUBST
20852 fi
20853 # Now quote all the things that may contain metacharacters while being
20854 # careful not to overquote the AC_SUBSTed values. We take copies of the
20855 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20857 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20860 deplibs_check_method reload_flag reload_cmds need_locks \
20861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20862 lt_cv_sys_global_symbol_to_c_name_address \
20863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20864 old_postinstall_cmds old_postuninstall_cmds \
20865 compiler_F77 \
20866 CC_F77 \
20867 LD_F77 \
20868 lt_prog_compiler_wl_F77 \
20869 lt_prog_compiler_pic_F77 \
20870 lt_prog_compiler_static_F77 \
20871 lt_prog_compiler_no_builtin_flag_F77 \
20872 export_dynamic_flag_spec_F77 \
20873 thread_safe_flag_spec_F77 \
20874 whole_archive_flag_spec_F77 \
20875 enable_shared_with_static_runtimes_F77 \
20876 old_archive_cmds_F77 \
20877 old_archive_from_new_cmds_F77 \
20878 predep_objects_F77 \
20879 postdep_objects_F77 \
20880 predeps_F77 \
20881 postdeps_F77 \
20882 compiler_lib_search_path_F77 \
20883 archive_cmds_F77 \
20884 archive_expsym_cmds_F77 \
20885 postinstall_cmds_F77 \
20886 postuninstall_cmds_F77 \
20887 old_archive_from_expsyms_cmds_F77 \
20888 allow_undefined_flag_F77 \
20889 no_undefined_flag_F77 \
20890 export_symbols_cmds_F77 \
20891 hardcode_libdir_flag_spec_F77 \
20892 hardcode_libdir_flag_spec_ld_F77 \
20893 hardcode_libdir_separator_F77 \
20894 hardcode_automatic_F77 \
20895 module_cmds_F77 \
20896 module_expsym_cmds_F77 \
20897 lt_cv_prog_compiler_c_o_F77 \
20898 exclude_expsyms_F77 \
20899 include_expsyms_F77; do
20900
20901 case $var in
20902 old_archive_cmds_F77 | \
20903 old_archive_from_new_cmds_F77 | \
20904 archive_cmds_F77 | \
20905 archive_expsym_cmds_F77 | \
20906 module_cmds_F77 | \
20907 module_expsym_cmds_F77 | \
20908 old_archive_from_expsyms_cmds_F77 | \
20909 export_symbols_cmds_F77 | \
20910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20911 postinstall_cmds | postuninstall_cmds | \
20912 old_postinstall_cmds | old_postuninstall_cmds | \
20913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20914 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020915 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 +000020916 ;;
20917 *)
20918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20919 ;;
20920 esac
20921 done
20922
20923 case $lt_echo in
20924 *'\$0 --fallback-echo"')
20925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20926 ;;
20927 esac
20928
20929cfgfile="$ofile"
20930
20931 cat <<__EOF__ >> "$cfgfile"
20932# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20933
20934# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20935
20936# Shell to use when invoking shell scripts.
20937SHELL=$lt_SHELL
20938
20939# Whether or not to build shared libraries.
20940build_libtool_libs=$enable_shared
20941
20942# Whether or not to build static libraries.
20943build_old_libs=$enable_static
20944
20945# Whether or not to add -lc for building shared libraries.
20946build_libtool_need_lc=$archive_cmds_need_lc_F77
20947
20948# Whether or not to disallow shared libs when runtime libs are static
20949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20950
20951# Whether or not to optimize for fast installation.
20952fast_install=$enable_fast_install
20953
20954# The host system.
20955host_alias=$host_alias
20956host=$host
20957
20958# An echo program that does not interpret backslashes.
20959echo=$lt_echo
20960
20961# The archiver.
20962AR=$lt_AR
20963AR_FLAGS=$lt_AR_FLAGS
20964
20965# A C compiler.
20966LTCC=$lt_LTCC
20967
20968# A language-specific compiler.
20969CC=$lt_compiler_F77
20970
20971# Is the compiler the GNU C compiler?
20972with_gcc=$GCC_F77
20973
20974# An ERE matcher.
20975EGREP=$lt_EGREP
20976
20977# The linker used to build libraries.
20978LD=$lt_LD_F77
20979
20980# Whether we need hard or soft links.
20981LN_S=$lt_LN_S
20982
20983# A BSD-compatible nm program.
20984NM=$lt_NM
20985
20986# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020987STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020988
20989# Used to examine libraries when file_magic_cmd begins "file"
20990MAGIC_CMD=$MAGIC_CMD
20991
20992# Used on cygwin: DLL creation program.
20993DLLTOOL="$DLLTOOL"
20994
20995# Used on cygwin: object dumper.
20996OBJDUMP="$OBJDUMP"
20997
20998# Used on cygwin: assembler.
20999AS="$AS"
21000
21001# The name of the directory that contains temporary libtool files.
21002objdir=$objdir
21003
21004# How to create reloadable object files.
21005reload_flag=$lt_reload_flag
21006reload_cmds=$lt_reload_cmds
21007
21008# How to pass a linker flag through the compiler.
21009wl=$lt_lt_prog_compiler_wl_F77
21010
21011# Object file suffix (normally "o").
21012objext="$ac_objext"
21013
21014# Old archive suffix (normally "a").
21015libext="$libext"
21016
21017# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021018shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021019
21020# Executable file suffix (normally "").
21021exeext="$exeext"
21022
21023# Additional compiler flags for building library objects.
21024pic_flag=$lt_lt_prog_compiler_pic_F77
21025pic_mode=$pic_mode
21026
21027# What is the maximum length of a command?
21028max_cmd_len=$lt_cv_sys_max_cmd_len
21029
21030# Does compiler simultaneously support -c and -o options?
21031compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21032
21033# Must we lock files when doing compilation ?
21034need_locks=$lt_need_locks
21035
21036# Do we need the lib prefix for modules?
21037need_lib_prefix=$need_lib_prefix
21038
21039# Do we need a version for libraries?
21040need_version=$need_version
21041
21042# Whether dlopen is supported.
21043dlopen_support=$enable_dlopen
21044
21045# Whether dlopen of programs is supported.
21046dlopen_self=$enable_dlopen_self
21047
21048# Whether dlopen of statically linked programs is supported.
21049dlopen_self_static=$enable_dlopen_self_static
21050
21051# Compiler flag to prevent dynamic linking.
21052link_static_flag=$lt_lt_prog_compiler_static_F77
21053
21054# Compiler flag to turn off builtin functions.
21055no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21056
21057# Compiler flag to allow reflexive dlopens.
21058export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21059
21060# Compiler flag to generate shared objects directly from archives.
21061whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21062
21063# Compiler flag to generate thread-safe objects.
21064thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21065
21066# Library versioning type.
21067version_type=$version_type
21068
21069# Format of library name prefix.
21070libname_spec=$lt_libname_spec
21071
21072# List of archive names. First name is the real one, the rest are links.
21073# The last name is the one that the linker finds with -lNAME.
21074library_names_spec=$lt_library_names_spec
21075
21076# The coded name of the library, if different from the real name.
21077soname_spec=$lt_soname_spec
21078
21079# Commands used to build and install an old-style archive.
21080RANLIB=$lt_RANLIB
21081old_archive_cmds=$lt_old_archive_cmds_F77
21082old_postinstall_cmds=$lt_old_postinstall_cmds
21083old_postuninstall_cmds=$lt_old_postuninstall_cmds
21084
21085# Create an old-style archive from a shared archive.
21086old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21087
21088# Create a temporary old-style archive to link instead of a shared archive.
21089old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21090
21091# Commands used to build and install a shared archive.
21092archive_cmds=$lt_archive_cmds_F77
21093archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21094postinstall_cmds=$lt_postinstall_cmds
21095postuninstall_cmds=$lt_postuninstall_cmds
21096
21097# Commands used to build a loadable module (assumed same as above if empty)
21098module_cmds=$lt_module_cmds_F77
21099module_expsym_cmds=$lt_module_expsym_cmds_F77
21100
21101# Commands to strip libraries.
21102old_striplib=$lt_old_striplib
21103striplib=$lt_striplib
21104
21105# Dependencies to place before the objects being linked to create a
21106# shared library.
21107predep_objects=$lt_predep_objects_F77
21108
21109# Dependencies to place after the objects being linked to create a
21110# shared library.
21111postdep_objects=$lt_postdep_objects_F77
21112
21113# Dependencies to place before the objects being linked to create a
21114# shared library.
21115predeps=$lt_predeps_F77
21116
21117# Dependencies to place after the objects being linked to create a
21118# shared library.
21119postdeps=$lt_postdeps_F77
21120
21121# The library search path used internally by the compiler when linking
21122# a shared library.
21123compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21124
21125# Method to check whether dependent libraries are shared objects.
21126deplibs_check_method=$lt_deplibs_check_method
21127
21128# Command to use when deplibs_check_method == file_magic.
21129file_magic_cmd=$lt_file_magic_cmd
21130
21131# Flag that allows shared libraries with undefined symbols to be built.
21132allow_undefined_flag=$lt_allow_undefined_flag_F77
21133
21134# Flag that forces no undefined symbols.
21135no_undefined_flag=$lt_no_undefined_flag_F77
21136
21137# Commands used to finish a libtool library installation in a directory.
21138finish_cmds=$lt_finish_cmds
21139
21140# Same as above, but a single script fragment to be evaled but not shown.
21141finish_eval=$lt_finish_eval
21142
21143# Take the output of nm and produce a listing of raw symbols and C names.
21144global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21145
21146# Transform the output of nm in a proper C declaration
21147global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21148
21149# Transform the output of nm in a C name address pair
21150global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21151
21152# This is the shared library runtime path variable.
21153runpath_var=$runpath_var
21154
21155# This is the shared library path variable.
21156shlibpath_var=$shlibpath_var
21157
21158# Is shlibpath searched before the hard-coded library search path?
21159shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21160
21161# How to hardcode a shared library path into an executable.
21162hardcode_action=$hardcode_action_F77
21163
21164# Whether we should hardcode library paths into libraries.
21165hardcode_into_libs=$hardcode_into_libs
21166
21167# Flag to hardcode \$libdir into a binary during linking.
21168# This must work even if \$libdir does not exist.
21169hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21170
21171# If ld is used when linking, flag to hardcode \$libdir into
21172# a binary during linking. This must work even if \$libdir does
21173# not exist.
21174hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21175
21176# Whether we need a single -rpath flag with a separated argument.
21177hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21178
21179# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21180# resulting binary.
21181hardcode_direct=$hardcode_direct_F77
21182
21183# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21184# resulting binary.
21185hardcode_minus_L=$hardcode_minus_L_F77
21186
21187# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21188# the resulting binary.
21189hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21190
21191# Set to yes if building a shared library automatically hardcodes DIR into the library
21192# and all subsequent libraries and executables linked against it.
21193hardcode_automatic=$hardcode_automatic_F77
21194
21195# Variables whose values should be saved in libtool wrapper scripts and
21196# restored at relink time.
21197variables_saved_for_relink="$variables_saved_for_relink"
21198
21199# Whether libtool must link a program against all its dependency libraries.
21200link_all_deplibs=$link_all_deplibs_F77
21201
21202# Compile-time system search path for libraries
21203sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21204
21205# Run-time system search path for libraries
21206sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21207
21208# Fix the shell variable \$srcfile for the compiler.
21209fix_srcfile_path="$fix_srcfile_path_F77"
21210
21211# Set to yes if exported symbols are required.
21212always_export_symbols=$always_export_symbols_F77
21213
21214# The commands to list exported symbols.
21215export_symbols_cmds=$lt_export_symbols_cmds_F77
21216
21217# The commands to extract the exported symbol list from a shared archive.
21218extract_expsyms_cmds=$lt_extract_expsyms_cmds
21219
21220# Symbols that should not be listed in the preloaded symbols.
21221exclude_expsyms=$lt_exclude_expsyms_F77
21222
21223# Symbols that must always be exported.
21224include_expsyms=$lt_include_expsyms_F77
21225
21226# ### END LIBTOOL TAG CONFIG: $tagname
21227
21228__EOF__
21229
21230
21231else
21232 # If there is no Makefile yet, we rely on a make rule to execute
21233 # `config.status --recheck' to rerun these tests and create the
21234 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021235 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21236 if test -f "$ltmain_in"; then
21237 test -f Makefile && make "$ltmain"
21238 fi
John Criswell47fdd832003-07-14 16:52:07 +000021239fi
21240
21241
21242ac_ext=c
21243ac_cpp='$CPP $CPPFLAGS'
21244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246ac_compiler_gnu=$ac_cv_c_compiler_gnu
21247
21248CC="$lt_save_CC"
21249
21250 else
21251 tagname=""
21252 fi
21253 ;;
21254
21255 GCJ)
21256 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021257 ac_ext=c
21258ac_cpp='$CPP $CPPFLAGS'
21259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021262
21263
21264# Source file extension for Java test sources.
21265ac_ext=java
21266
21267# Object file extension for compiled Java test sources.
21268objext=o
21269objext_GCJ=$objext
21270
21271# Code to be used in simple compile tests
21272lt_simple_compile_test_code="class foo {}\n"
21273
21274# Code to be used in simple link tests
21275lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21276
21277# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21278
21279# If no C compiler was specified, use CC.
21280LTCC=${LTCC-"$CC"}
21281
21282# Allow CC to be a program name with arguments.
21283compiler=$CC
21284
21285
21286# Allow CC to be a program name with arguments.
21287lt_save_CC="$CC"
21288CC=${GCJ-"gcj"}
21289compiler=$CC
21290compiler_GCJ=$CC
21291
21292# GCJ did not exist at the time GCC didn't implicitly link libc in.
21293archive_cmds_need_lc_GCJ=no
21294
John Criswell47fdd832003-07-14 16:52:07 +000021295
21296lt_prog_compiler_no_builtin_flag_GCJ=
21297
21298if test "$GCC" = yes; then
21299 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21300
Reid Spencer2706f8c2004-09-19 23:53:36 +000021301
21302echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021303echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21304if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306else
21307 lt_cv_prog_compiler_rtti_exceptions=no
21308 ac_outfile=conftest.$ac_objext
21309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21310 lt_compiler_flag="-fno-rtti -fno-exceptions"
21311 # Insert the option either (1) after the last *FLAGS variable, or
21312 # (2) before a word containing "conftest.", or (3) at the end.
21313 # Note that $ac_compile itself does not contain backslashes and begins
21314 # with a dollar sign (not a hyphen), so the echo should work correctly.
21315 # The option is referenced via a variable to avoid confusing sed.
21316 lt_compile=`echo "$ac_compile" | $SED \
21317 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21319 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000021320 (eval echo "\"\$as_me:21320: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021321 (eval "$lt_compile" 2>conftest.err)
21322 ac_status=$?
21323 cat conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000021324 echo "$as_me:21324: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021325 if (exit $ac_status) && test -s "$ac_outfile"; then
21326 # The compiler can only warn and ignore the option if not recognized
21327 # So say no if there are warnings
21328 if test ! -s conftest.err; then
21329 lt_cv_prog_compiler_rtti_exceptions=yes
21330 fi
21331 fi
21332 $rm conftest*
21333
21334fi
21335echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21336echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21337
21338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21339 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21340else
21341 :
21342fi
21343
21344fi
21345
21346lt_prog_compiler_wl_GCJ=
21347lt_prog_compiler_pic_GCJ=
21348lt_prog_compiler_static_GCJ=
21349
21350echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21351echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21352
21353 if test "$GCC" = yes; then
21354 lt_prog_compiler_wl_GCJ='-Wl,'
21355 lt_prog_compiler_static_GCJ='-static'
21356
21357 case $host_os in
21358 aix*)
21359 # All AIX code is PIC.
21360 if test "$host_cpu" = ia64; then
21361 # AIX 5 now supports IA64 processor
21362 lt_prog_compiler_static_GCJ='-Bstatic'
21363 fi
21364 ;;
21365
21366 amigaos*)
21367 # FIXME: we need at least 68020 code to build shared libraries, but
21368 # adding the `-m68020' flag to GCC prevents building anything better,
21369 # like `-m68040'.
21370 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21371 ;;
21372
21373 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21374 # PIC is the default for these OSes.
21375 ;;
21376
21377 mingw* | pw32* | os2*)
21378 # This hack is so that the source file can tell whether it is being
21379 # built for inclusion in a dll (and should export symbols for example).
21380 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21381 ;;
21382
21383 darwin* | rhapsody*)
21384 # PIC is the default on this platform
21385 # Common symbols not allowed in MH_DYLIB files
21386 lt_prog_compiler_pic_GCJ='-fno-common'
21387 ;;
21388
21389 msdosdjgpp*)
21390 # Just because we use GCC doesn't mean we suddenly get shared libraries
21391 # on systems that don't support them.
21392 lt_prog_compiler_can_build_shared_GCJ=no
21393 enable_shared=no
21394 ;;
21395
21396 sysv4*MP*)
21397 if test -d /usr/nec; then
21398 lt_prog_compiler_pic_GCJ=-Kconform_pic
21399 fi
21400 ;;
21401
21402 hpux*)
21403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21404 # not for PA HP-UX.
21405 case "$host_cpu" in
21406 hppa*64*|ia64*)
21407 # +Z the default
21408 ;;
21409 *)
21410 lt_prog_compiler_pic_GCJ='-fPIC'
21411 ;;
21412 esac
21413 ;;
21414
21415 *)
21416 lt_prog_compiler_pic_GCJ='-fPIC'
21417 ;;
21418 esac
21419 else
21420 # PORTME Check for flag to pass linker flags through the system compiler.
21421 case $host_os in
21422 aix*)
21423 lt_prog_compiler_wl_GCJ='-Wl,'
21424 if test "$host_cpu" = ia64; then
21425 # AIX 5 now supports IA64 processor
21426 lt_prog_compiler_static_GCJ='-Bstatic'
21427 else
21428 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21429 fi
21430 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021431 darwin*)
21432 # PIC is the default on this platform
21433 # Common symbols not allowed in MH_DYLIB files
21434 case "$cc_basename" in
21435 xlc*)
21436 lt_prog_compiler_pic_GCJ='-qnocommon'
21437 lt_prog_compiler_wl_GCJ='-Wl,'
21438 ;;
21439 esac
21440 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021441
21442 mingw* | pw32* | os2*)
21443 # This hack is so that the source file can tell whether it is being
21444 # built for inclusion in a dll (and should export symbols for example).
21445 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21446 ;;
21447
21448 hpux9* | hpux10* | hpux11*)
21449 lt_prog_compiler_wl_GCJ='-Wl,'
21450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21451 # not for PA HP-UX.
21452 case "$host_cpu" in
21453 hppa*64*|ia64*)
21454 # +Z the default
21455 ;;
21456 *)
21457 lt_prog_compiler_pic_GCJ='+Z'
21458 ;;
21459 esac
21460 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21461 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21462 ;;
21463
21464 irix5* | irix6* | nonstopux*)
21465 lt_prog_compiler_wl_GCJ='-Wl,'
21466 # PIC (with -KPIC) is the default.
21467 lt_prog_compiler_static_GCJ='-non_shared'
21468 ;;
21469
21470 newsos6)
21471 lt_prog_compiler_pic_GCJ='-KPIC'
21472 lt_prog_compiler_static_GCJ='-Bstatic'
21473 ;;
21474
21475 linux*)
21476 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021477 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021478 lt_prog_compiler_wl_GCJ='-Wl,'
21479 lt_prog_compiler_pic_GCJ='-KPIC'
21480 lt_prog_compiler_static_GCJ='-static'
21481 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021482 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021483 lt_prog_compiler_wl_GCJ='-Wl,'
21484 # All Alpha code is PIC.
21485 lt_prog_compiler_static_GCJ='-non_shared'
21486 ;;
21487 esac
21488 ;;
21489
21490 osf3* | osf4* | osf5*)
21491 lt_prog_compiler_wl_GCJ='-Wl,'
21492 # All OSF/1 code is PIC.
21493 lt_prog_compiler_static_GCJ='-non_shared'
21494 ;;
21495
21496 sco3.2v5*)
21497 lt_prog_compiler_pic_GCJ='-Kpic'
21498 lt_prog_compiler_static_GCJ='-dn'
21499 ;;
21500
21501 solaris*)
21502 lt_prog_compiler_wl_GCJ='-Wl,'
21503 lt_prog_compiler_pic_GCJ='-KPIC'
21504 lt_prog_compiler_static_GCJ='-Bstatic'
21505 ;;
21506
21507 sunos4*)
21508 lt_prog_compiler_wl_GCJ='-Qoption ld '
21509 lt_prog_compiler_pic_GCJ='-PIC'
21510 lt_prog_compiler_static_GCJ='-Bstatic'
21511 ;;
21512
21513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21514 lt_prog_compiler_wl_GCJ='-Wl,'
21515 lt_prog_compiler_pic_GCJ='-KPIC'
21516 lt_prog_compiler_static_GCJ='-Bstatic'
21517 ;;
21518
21519 sysv4*MP*)
21520 if test -d /usr/nec ;then
21521 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21522 lt_prog_compiler_static_GCJ='-Bstatic'
21523 fi
21524 ;;
21525
21526 uts4*)
21527 lt_prog_compiler_pic_GCJ='-pic'
21528 lt_prog_compiler_static_GCJ='-Bstatic'
21529 ;;
21530
21531 *)
21532 lt_prog_compiler_can_build_shared_GCJ=no
21533 ;;
21534 esac
21535 fi
21536
21537echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21538echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21539
21540#
21541# Check to make sure the PIC flag actually works.
21542#
21543if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021544
21545echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021546echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21547if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550 lt_prog_compiler_pic_works_GCJ=no
21551 ac_outfile=conftest.$ac_objext
21552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21553 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21554 # Insert the option either (1) after the last *FLAGS variable, or
21555 # (2) before a word containing "conftest.", or (3) at the end.
21556 # Note that $ac_compile itself does not contain backslashes and begins
21557 # with a dollar sign (not a hyphen), so the echo should work correctly.
21558 # The option is referenced via a variable to avoid confusing sed.
21559 lt_compile=`echo "$ac_compile" | $SED \
21560 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21562 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000021563 (eval echo "\"\$as_me:21563: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021564 (eval "$lt_compile" 2>conftest.err)
21565 ac_status=$?
21566 cat conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000021567 echo "$as_me:21567: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021568 if (exit $ac_status) && test -s "$ac_outfile"; then
21569 # The compiler can only warn and ignore the option if not recognized
21570 # So say no if there are warnings
21571 if test ! -s conftest.err; then
21572 lt_prog_compiler_pic_works_GCJ=yes
21573 fi
21574 fi
21575 $rm conftest*
21576
21577fi
21578echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21579echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21580
21581if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21582 case $lt_prog_compiler_pic_GCJ in
21583 "" | " "*) ;;
21584 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21585 esac
21586else
21587 lt_prog_compiler_pic_GCJ=
21588 lt_prog_compiler_can_build_shared_GCJ=no
21589fi
21590
21591fi
21592case "$host_os" in
21593 # For platforms which do not support PIC, -DPIC is meaningless:
21594 *djgpp*)
21595 lt_prog_compiler_pic_GCJ=
21596 ;;
21597 *)
21598 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21599 ;;
21600esac
21601
21602echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21603echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21604if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606else
21607 lt_cv_prog_compiler_c_o_GCJ=no
21608 $rm -r conftest 2>/dev/null
21609 mkdir conftest
21610 cd conftest
21611 mkdir out
21612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21613
John Criswell47fdd832003-07-14 16:52:07 +000021614 lt_compiler_flag="-o out/conftest2.$ac_objext"
21615 # Insert the option either (1) after the last *FLAGS variable, or
21616 # (2) before a word containing "conftest.", or (3) at the end.
21617 # Note that $ac_compile itself does not contain backslashes and begins
21618 # with a dollar sign (not a hyphen), so the echo should work correctly.
21619 lt_compile=`echo "$ac_compile" | $SED \
21620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21622 -e 's:$: $lt_compiler_flag:'`
Reid Spencercaf0ece2006-06-05 15:54:38 +000021623 (eval echo "\"\$as_me:21623: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021624 (eval "$lt_compile" 2>out/conftest.err)
21625 ac_status=$?
21626 cat out/conftest.err >&5
Reid Spencercaf0ece2006-06-05 15:54:38 +000021627 echo "$as_me:21627: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21629 then
21630 # The compiler can only warn and ignore the option if not recognized
21631 # So say no if there are warnings
21632 if test ! -s out/conftest.err; then
21633 lt_cv_prog_compiler_c_o_GCJ=yes
21634 fi
21635 fi
21636 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021637 $rm conftest*
21638 # SGI C++ compiler will create directory out/ii_files/ for
21639 # template instantiation
21640 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21641 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021642 cd ..
21643 rmdir conftest
21644 $rm conftest*
21645
21646fi
21647echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21648echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21649
21650
21651hard_links="nottested"
21652if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21653 # do not overwrite the value of need_locks provided by the user
21654 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21655echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21656 hard_links=yes
21657 $rm conftest*
21658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21659 touch conftest.a
21660 ln conftest.a conftest.b 2>&5 || hard_links=no
21661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21662 echo "$as_me:$LINENO: result: $hard_links" >&5
21663echo "${ECHO_T}$hard_links" >&6
21664 if test "$hard_links" = no; then
21665 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21666echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21667 need_locks=warn
21668 fi
21669else
21670 need_locks=no
21671fi
21672
21673echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21674echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21675
21676 runpath_var=
21677 allow_undefined_flag_GCJ=
21678 enable_shared_with_static_runtimes_GCJ=no
21679 archive_cmds_GCJ=
21680 archive_expsym_cmds_GCJ=
21681 old_archive_From_new_cmds_GCJ=
21682 old_archive_from_expsyms_cmds_GCJ=
21683 export_dynamic_flag_spec_GCJ=
21684 whole_archive_flag_spec_GCJ=
21685 thread_safe_flag_spec_GCJ=
21686 hardcode_libdir_flag_spec_GCJ=
21687 hardcode_libdir_flag_spec_ld_GCJ=
21688 hardcode_libdir_separator_GCJ=
21689 hardcode_direct_GCJ=no
21690 hardcode_minus_L_GCJ=no
21691 hardcode_shlibpath_var_GCJ=unsupported
21692 link_all_deplibs_GCJ=unknown
21693 hardcode_automatic_GCJ=no
21694 module_cmds_GCJ=
21695 module_expsym_cmds_GCJ=
21696 always_export_symbols_GCJ=no
21697 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21698 # include_expsyms should be a list of space-separated symbols to be *always*
21699 # included in the symbol list
21700 include_expsyms_GCJ=
21701 # exclude_expsyms can be an extended regexp of symbols to exclude
21702 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21704 # as well as any symbol that contains `d'.
21705 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21707 # platforms (ab)use it in PIC code, but their linkers get confused if
21708 # the symbol is explicitly referenced. Since portable code cannot
21709 # rely on this symbol name, it's probably fine to never include it in
21710 # preloaded symbol tables.
21711 extract_expsyms_cmds=
21712
21713 case $host_os in
21714 cygwin* | mingw* | pw32*)
21715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21716 # When not using gcc, we currently assume that we are using
21717 # Microsoft Visual C++.
21718 if test "$GCC" != yes; then
21719 with_gnu_ld=no
21720 fi
21721 ;;
21722 openbsd*)
21723 with_gnu_ld=no
21724 ;;
21725 esac
21726
21727 ld_shlibs_GCJ=yes
21728 if test "$with_gnu_ld" = yes; then
21729 # If archive_cmds runs LD, not CC, wlarc should be empty
21730 wlarc='${wl}'
21731
21732 # See if GNU ld supports shared libraries.
21733 case $host_os in
21734 aix3* | aix4* | aix5*)
21735 # On AIX/PPC, the GNU linker is very broken
21736 if test "$host_cpu" != ia64; then
21737 ld_shlibs_GCJ=no
21738 cat <<EOF 1>&2
21739
21740*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21741*** to be unable to reliably create shared libraries on AIX.
21742*** Therefore, libtool is disabling shared libraries support. If you
21743*** really care for shared libraries, you may want to modify your PATH
21744*** so that a non-GNU linker is found, and then restart.
21745
21746EOF
21747 fi
21748 ;;
21749
21750 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021751 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 +000021752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21753 hardcode_minus_L_GCJ=yes
21754
21755 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21756 # that the semantics of dynamic libraries on AmigaOS, at least up
21757 # to version 4, is to share data among multiple programs linked
21758 # with the same dynamic library. Since this doesn't match the
21759 # behavior of shared libraries on other platforms, we can't use
21760 # them.
21761 ld_shlibs_GCJ=no
21762 ;;
21763
21764 beos*)
21765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21766 allow_undefined_flag_GCJ=unsupported
21767 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21768 # support --undefined. This deserves some investigation. FIXME
21769 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21770 else
21771 ld_shlibs_GCJ=no
21772 fi
21773 ;;
21774
21775 cygwin* | mingw* | pw32*)
21776 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21777 # as there is no search path for DLLs.
21778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21779 allow_undefined_flag_GCJ=unsupported
21780 always_export_symbols_GCJ=no
21781 enable_shared_with_static_runtimes_GCJ=yes
21782 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21783
21784 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21786 # If the export-symbols file already is a .def file (1st line
21787 # is EXPORTS), use it as is; otherwise, prepend...
21788 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21789 cp $export_symbols $output_objdir/$soname.def;
21790 else
21791 echo EXPORTS > $output_objdir/$soname.def;
21792 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021793 fi~
21794 $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 +000021795 else
21796 ld_shlibs=no
21797 fi
21798 ;;
21799
21800 netbsd*)
21801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21802 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21803 wlarc=
21804 else
21805 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21806 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21807 fi
21808 ;;
21809
21810 solaris* | sysv5*)
21811 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21812 ld_shlibs_GCJ=no
21813 cat <<EOF 1>&2
21814
21815*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21816*** create shared libraries on Solaris systems. Therefore, libtool
21817*** is disabling shared libraries support. We urge you to upgrade GNU
21818*** binutils to release 2.9.1 or newer. Another option is to modify
21819*** your PATH or compiler configuration so that the native linker is
21820*** used, and then restart.
21821
21822EOF
21823 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21825 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21826 else
21827 ld_shlibs_GCJ=no
21828 fi
21829 ;;
21830
21831 sunos4*)
21832 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21833 wlarc=
21834 hardcode_direct_GCJ=yes
21835 hardcode_shlibpath_var_GCJ=no
21836 ;;
21837
Reid Spencer2706f8c2004-09-19 23:53:36 +000021838 linux*)
21839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21840 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21841 archive_cmds_GCJ="$tmp_archive_cmds"
21842 supports_anon_versioning=no
21843 case `$LD -v 2>/dev/null` in
21844 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21847 *\ 2.11.*) ;; # other 2.11 versions
21848 *) supports_anon_versioning=yes ;;
21849 esac
21850 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021851 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21852cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21853$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021854 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21855 else
21856 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21857 fi
21858 else
21859 ld_shlibs_GCJ=no
21860 fi
21861 ;;
21862
John Criswell47fdd832003-07-14 16:52:07 +000021863 *)
21864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21866 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21867 else
21868 ld_shlibs_GCJ=no
21869 fi
21870 ;;
21871 esac
21872
21873 if test "$ld_shlibs_GCJ" = yes; then
21874 runpath_var=LD_RUN_PATH
21875 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21876 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21877 # ancient GNU ld didn't support --whole-archive et. al.
21878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21879 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21880 else
21881 whole_archive_flag_spec_GCJ=
21882 fi
21883 fi
21884 else
21885 # PORTME fill in a description of your system's linker (not GNU ld)
21886 case $host_os in
21887 aix3*)
21888 allow_undefined_flag_GCJ=unsupported
21889 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021890 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 +000021891 # Note: this linker hardcodes the directories in LIBPATH if there
21892 # are no directories specified by -L.
21893 hardcode_minus_L_GCJ=yes
21894 if test "$GCC" = yes && test -z "$link_static_flag"; then
21895 # Neither direct hardcoding nor static linking is supported with a
21896 # broken collect2.
21897 hardcode_direct_GCJ=unsupported
21898 fi
21899 ;;
21900
21901 aix4* | aix5*)
21902 if test "$host_cpu" = ia64; then
21903 # On IA64, the linker does run time linking by default, so we don't
21904 # have to do anything special.
21905 aix_use_runtimelinking=no
21906 exp_sym_flag='-Bexport'
21907 no_entry_flag=""
21908 else
21909 # If we're using GNU nm, then we don't want the "-C" option.
21910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21912 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'
21913 else
21914 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'
21915 fi
21916 aix_use_runtimelinking=no
21917
21918 # Test if we are trying to use run time linking or normal
21919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21920 # need to do runtime linking.
21921 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21922 for ld_flag in $LDFLAGS; do
21923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21924 aix_use_runtimelinking=yes
21925 break
21926 fi
21927 done
21928 esac
21929
21930 exp_sym_flag='-bexport'
21931 no_entry_flag='-bnoentry'
21932 fi
21933
21934 # When large executables or shared objects are built, AIX ld can
21935 # have problems creating the table of contents. If linking a library
21936 # or program results in "error TOC overflow" add -mminimal-toc to
21937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21939
21940 archive_cmds_GCJ=''
21941 hardcode_direct_GCJ=yes
21942 hardcode_libdir_separator_GCJ=':'
21943 link_all_deplibs_GCJ=yes
21944
21945 if test "$GCC" = yes; then
21946 case $host_os in aix4.012|aix4.012.*)
21947 # We only want to do this on AIX 4.2 and lower, the check
21948 # below for broken collect2 doesn't work under 4.3+
21949 collect2name=`${CC} -print-prog-name=collect2`
21950 if test -f "$collect2name" && \
21951 strings "$collect2name" | grep resolve_lib_name >/dev/null
21952 then
21953 # We have reworked collect2
21954 hardcode_direct_GCJ=yes
21955 else
21956 # We have old collect2
21957 hardcode_direct_GCJ=unsupported
21958 # It fails to find uninstalled libraries when the uninstalled
21959 # path is not listed in the libpath. Setting hardcode_minus_L
21960 # to unsupported forces relinking
21961 hardcode_minus_L_GCJ=yes
21962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21963 hardcode_libdir_separator_GCJ=
21964 fi
21965 esac
21966 shared_flag='-shared'
21967 else
21968 # not using gcc
21969 if test "$host_cpu" = ia64; then
21970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21971 # chokes on -Wl,-G. The following line is correct:
21972 shared_flag='-G'
21973 else
21974 if test "$aix_use_runtimelinking" = yes; then
21975 shared_flag='${wl}-G'
21976 else
21977 shared_flag='${wl}-bM:SRE'
21978 fi
21979 fi
21980 fi
21981
21982 # It seems that -bexpall does not export symbols beginning with
21983 # underscore (_), so it is better to generate a list of symbols to export.
21984 always_export_symbols_GCJ=yes
21985 if test "$aix_use_runtimelinking" = yes; then
21986 # Warning - without using the other runtime loading flags (-brtl),
21987 # -berok will link without error, but may produce a broken library.
21988 allow_undefined_flag_GCJ='-berok'
21989 # Determine the default libpath from the value encoded in an empty executable.
21990 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021991/* confdefs.h. */
21992_ACEOF
21993cat confdefs.h >>conftest.$ac_ext
21994cat >>conftest.$ac_ext <<_ACEOF
21995/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021996
John Criswell47fdd832003-07-14 16:52:07 +000021997int
21998main ()
21999{
22000
22001 ;
22002 return 0;
22003}
22004_ACEOF
22005rm -f conftest.$ac_objext conftest$ac_exeext
22006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022007 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022008 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022014 { ac_try='test -z "$ac_c_werror_flag"
22015 || test ! -s conftest.err'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; } &&
22021 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027
22028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22029}'`
22030# Check for a 64-bit object if we didn't find anything.
22031if 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; }
22032}'`; fi
22033else
22034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022035sed 's/^/| /' conftest.$ac_ext >&5
22036
John Criswell47fdd832003-07-14 16:52:07 +000022037fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022038rm -f conftest.err conftest.$ac_objext \
22039 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22041
22042 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22043 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"
22044 else
22045 if test "$host_cpu" = ia64; then
22046 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22047 allow_undefined_flag_GCJ="-z nodefs"
22048 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"
22049 else
22050 # Determine the default libpath from the value encoded in an empty executable.
22051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022057
John Criswell47fdd832003-07-14 16:52:07 +000022058int
22059main ()
22060{
22061
22062 ;
22063 return 0;
22064}
22065_ACEOF
22066rm -f conftest.$ac_objext conftest$ac_exeext
22067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022068 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022070 grep -v '^ *+' conftest.er1 >conftest.err
22071 rm -f conftest.er1
22072 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 { ac_try='test -z "$ac_c_werror_flag"
22076 || test ! -s conftest.err'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22088
22089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22090}'`
22091# Check for a 64-bit object if we didn't find anything.
22092if 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; }
22093}'`; fi
22094else
22095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022096sed 's/^/| /' conftest.$ac_ext >&5
22097
John Criswell47fdd832003-07-14 16:52:07 +000022098fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022099rm -f conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022101if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22102
22103 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22104 # Warning - without using the other run time loading flags,
22105 # -berok will link without error, but may produce a broken library.
22106 no_undefined_flag_GCJ=' ${wl}-bernotok'
22107 allow_undefined_flag_GCJ=' ${wl}-berok'
22108 # -bexpall does not export symbols beginning with underscore (_)
22109 always_export_symbols_GCJ=yes
22110 # Exported symbols can be pulled into shared objects from archives
22111 whole_archive_flag_spec_GCJ=' '
22112 archive_cmds_need_lc_GCJ=yes
22113 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022114 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 +000022115 fi
22116 fi
22117 ;;
22118
22119 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022120 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 +000022121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122 hardcode_minus_L_GCJ=yes
22123 # see comment about different semantics on the GNU ld section
22124 ld_shlibs_GCJ=no
22125 ;;
22126
Reid Spencer2706f8c2004-09-19 23:53:36 +000022127 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022128 export_dynamic_flag_spec_GCJ=-rdynamic
22129 ;;
22130
22131 cygwin* | mingw* | pw32*)
22132 # When not using gcc, we currently assume that we are using
22133 # Microsoft Visual C++.
22134 # hardcode_libdir_flag_spec is actually meaningless, as there is
22135 # no search path for DLLs.
22136 hardcode_libdir_flag_spec_GCJ=' '
22137 allow_undefined_flag_GCJ=unsupported
22138 # Tell ltmain to make .lib files, not .a files.
22139 libext=lib
22140 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022141 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022142 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022143 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 +000022144 # The linker will automatically build a .lib file if we build a DLL.
22145 old_archive_From_new_cmds_GCJ='true'
22146 # FIXME: Should let the user specify the lib program.
22147 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22148 fix_srcfile_path='`cygpath -w "$srcfile"`'
22149 enable_shared_with_static_runtimes_GCJ=yes
22150 ;;
22151
22152 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022153 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022154 rhapsody* | darwin1.[012])
22155 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22156 ;;
22157 *) # Darwin 1.3 on
22158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22159 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22160 else
22161 case ${MACOSX_DEPLOYMENT_TARGET} in
22162 10.[012])
22163 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22164 ;;
22165 10.*)
22166 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22167 ;;
22168 esac
22169 fi
22170 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022171 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022172 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022173 hardcode_direct_GCJ=no
22174 hardcode_automatic_GCJ=yes
22175 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022176 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022177 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022178 if test "$GCC" = yes ; then
22179 output_verbose_link_cmd='echo'
22180 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22181 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22182 # 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 +000022183 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}'
22184 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 +000022185 else
22186 case "$cc_basename" in
22187 xlc*)
22188 output_verbose_link_cmd='echo'
22189 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22191 # 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 +000022192 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}'
22193 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 +000022194 ;;
22195 *)
22196 ld_shlibs_GCJ=no
22197 ;;
22198 esac
John Criswell47fdd832003-07-14 16:52:07 +000022199 fi
22200 ;;
22201
22202 dgux*)
22203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22205 hardcode_shlibpath_var_GCJ=no
22206 ;;
22207
22208 freebsd1*)
22209 ld_shlibs_GCJ=no
22210 ;;
22211
22212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22213 # support. Future versions do this automatically, but an explicit c++rt0.o
22214 # does not break anything, and helps significantly (at the cost of a little
22215 # extra space).
22216 freebsd2.2*)
22217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22218 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22219 hardcode_direct_GCJ=yes
22220 hardcode_shlibpath_var_GCJ=no
22221 ;;
22222
22223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22224 freebsd2*)
22225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_direct_GCJ=yes
22227 hardcode_minus_L_GCJ=yes
22228 hardcode_shlibpath_var_GCJ=no
22229 ;;
22230
22231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022232 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022233 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22235 hardcode_direct_GCJ=yes
22236 hardcode_shlibpath_var_GCJ=no
22237 ;;
22238
22239 hpux9*)
22240 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022241 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 +000022242 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022243 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 +000022244 fi
22245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22246 hardcode_libdir_separator_GCJ=:
22247 hardcode_direct_GCJ=yes
22248
22249 # hardcode_minus_L: Not really in the search PATH,
22250 # but as the default location of the library.
22251 hardcode_minus_L_GCJ=yes
22252 export_dynamic_flag_spec_GCJ='${wl}-E'
22253 ;;
22254
22255 hpux10* | hpux11*)
22256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22257 case "$host_cpu" in
22258 hppa*64*|ia64*)
22259 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22260 ;;
22261 *)
22262 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263 ;;
22264 esac
22265 else
22266 case "$host_cpu" in
22267 hppa*64*|ia64*)
22268 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22269 ;;
22270 *)
22271 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22272 ;;
22273 esac
22274 fi
22275 if test "$with_gnu_ld" = no; then
22276 case "$host_cpu" in
22277 hppa*64*)
22278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22279 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22280 hardcode_libdir_separator_GCJ=:
22281 hardcode_direct_GCJ=no
22282 hardcode_shlibpath_var_GCJ=no
22283 ;;
22284 ia64*)
22285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22286 hardcode_direct_GCJ=no
22287 hardcode_shlibpath_var_GCJ=no
22288
22289 # hardcode_minus_L: Not really in the search PATH,
22290 # but as the default location of the library.
22291 hardcode_minus_L_GCJ=yes
22292 ;;
22293 *)
22294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22295 hardcode_libdir_separator_GCJ=:
22296 hardcode_direct_GCJ=yes
22297 export_dynamic_flag_spec_GCJ='${wl}-E'
22298
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_GCJ=yes
22302 ;;
22303 esac
22304 fi
22305 ;;
22306
22307 irix5* | irix6* | nonstopux*)
22308 if test "$GCC" = yes; then
22309 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'
22310 else
22311 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'
22312 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22313 fi
22314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22315 hardcode_libdir_separator_GCJ=:
22316 link_all_deplibs_GCJ=yes
22317 ;;
22318
22319 netbsd*)
22320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22322 else
22323 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22324 fi
22325 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22326 hardcode_direct_GCJ=yes
22327 hardcode_shlibpath_var_GCJ=no
22328 ;;
22329
22330 newsos6)
22331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22332 hardcode_direct_GCJ=yes
22333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22334 hardcode_libdir_separator_GCJ=:
22335 hardcode_shlibpath_var_GCJ=no
22336 ;;
22337
22338 openbsd*)
22339 hardcode_direct_GCJ=yes
22340 hardcode_shlibpath_var_GCJ=no
22341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22342 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022343 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 +000022344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22345 export_dynamic_flag_spec_GCJ='${wl}-E'
22346 else
22347 case $host_os in
22348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22350 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22351 ;;
22352 *)
22353 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22355 ;;
22356 esac
22357 fi
22358 ;;
22359
22360 os2*)
22361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22362 hardcode_minus_L_GCJ=yes
22363 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022364 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 +000022365 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22366 ;;
22367
22368 osf3*)
22369 if test "$GCC" = yes; then
22370 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22371 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'
22372 else
22373 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22374 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'
22375 fi
22376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22377 hardcode_libdir_separator_GCJ=:
22378 ;;
22379
22380 osf4* | osf5*) # as osf3* with the addition of -msym flag
22381 if test "$GCC" = yes; then
22382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22383 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'
22384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22385 else
22386 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22387 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 +000022388 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~
22389 $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'
22390
John Criswell47fdd832003-07-14 16:52:07 +000022391 # Both c and cxx compiler support -rpath directly
22392 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22393 fi
22394 hardcode_libdir_separator_GCJ=:
22395 ;;
22396
22397 sco3.2v5*)
22398 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22399 hardcode_shlibpath_var_GCJ=no
22400 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22401 runpath_var=LD_RUN_PATH
22402 hardcode_runpath_var=yes
22403 ;;
22404
22405 solaris*)
22406 no_undefined_flag_GCJ=' -z text'
22407 if test "$GCC" = yes; then
22408 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22410 $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 +000022411 else
22412 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022413 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22414 $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 +000022415 fi
22416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22417 hardcode_shlibpath_var_GCJ=no
22418 case $host_os in
22419 solaris2.[0-5] | solaris2.[0-5].*) ;;
22420 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22421 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22422 esac
22423 link_all_deplibs_GCJ=yes
22424 ;;
22425
22426 sunos4*)
22427 if test "x$host_vendor" = xsequent; then
22428 # Use $CC to link under sequent, because it throws in some extra .o
22429 # files that make .init and .fini sections work.
22430 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22431 else
22432 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22433 fi
22434 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22435 hardcode_direct_GCJ=yes
22436 hardcode_minus_L_GCJ=yes
22437 hardcode_shlibpath_var_GCJ=no
22438 ;;
22439
22440 sysv4)
22441 case $host_vendor in
22442 sni)
22443 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22444 hardcode_direct_GCJ=yes # is this really true???
22445 ;;
22446 siemens)
22447 ## LD is ld it makes a PLAMLIB
22448 ## CC just makes a GrossModule.
22449 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22450 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22451 hardcode_direct_GCJ=no
22452 ;;
22453 motorola)
22454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22455 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22456 ;;
22457 esac
22458 runpath_var='LD_RUN_PATH'
22459 hardcode_shlibpath_var_GCJ=no
22460 ;;
22461
22462 sysv4.3*)
22463 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22464 hardcode_shlibpath_var_GCJ=no
22465 export_dynamic_flag_spec_GCJ='-Bexport'
22466 ;;
22467
22468 sysv4*MP*)
22469 if test -d /usr/nec; then
22470 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471 hardcode_shlibpath_var_GCJ=no
22472 runpath_var=LD_RUN_PATH
22473 hardcode_runpath_var=yes
22474 ld_shlibs_GCJ=yes
22475 fi
22476 ;;
22477
22478 sysv4.2uw2*)
22479 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22480 hardcode_direct_GCJ=yes
22481 hardcode_minus_L_GCJ=no
22482 hardcode_shlibpath_var_GCJ=no
22483 hardcode_runpath_var=yes
22484 runpath_var=LD_RUN_PATH
22485 ;;
22486
22487 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22488 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22489 if test "$GCC" = yes; then
22490 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22491 else
22492 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22493 fi
22494 runpath_var='LD_RUN_PATH'
22495 hardcode_shlibpath_var_GCJ=no
22496 ;;
22497
22498 sysv5*)
22499 no_undefined_flag_GCJ=' -z text'
22500 # $CC -shared without GNU ld will not create a library from C++
22501 # object files and a static libstdc++, better avoid it by now
22502 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022503 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22504 $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 +000022505 hardcode_libdir_flag_spec_GCJ=
22506 hardcode_shlibpath_var_GCJ=no
22507 runpath_var='LD_RUN_PATH'
22508 ;;
22509
22510 uts4*)
22511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22513 hardcode_shlibpath_var_GCJ=no
22514 ;;
22515
22516 *)
22517 ld_shlibs_GCJ=no
22518 ;;
22519 esac
22520 fi
22521
22522echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22523echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22524test "$ld_shlibs_GCJ" = no && can_build_shared=no
22525
22526variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22527if test "$GCC" = yes; then
22528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22529fi
22530
22531#
22532# Do we need to explicitly link libc?
22533#
22534case "x$archive_cmds_need_lc_GCJ" in
22535x|xyes)
22536 # Assume -lc should be added
22537 archive_cmds_need_lc_GCJ=yes
22538
22539 if test "$enable_shared" = yes && test "$GCC" = yes; then
22540 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022541 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022542 # FIXME: we may have to deal with multi-command sequences.
22543 ;;
22544 '$CC '*)
22545 # Test whether the compiler implicitly links with -lc since on some
22546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22547 # to ld, don't add -lc before -lgcc.
22548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22549echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22550 $rm conftest*
22551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22552
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554 (eval $ac_compile) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } 2>conftest.err; then
22558 soname=conftest
22559 lib=conftest
22560 libobjs=conftest.$ac_objext
22561 deplibs=
22562 wl=$lt_prog_compiler_wl_GCJ
22563 compiler_flags=-v
22564 linker_flags=-v
22565 verstring=
22566 output_objdir=.
22567 libname=conftest
22568 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22569 allow_undefined_flag_GCJ=
22570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22571 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }
22575 then
22576 archive_cmds_need_lc_GCJ=no
22577 else
22578 archive_cmds_need_lc_GCJ=yes
22579 fi
22580 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22581 else
22582 cat conftest.err 1>&5
22583 fi
22584 $rm conftest*
22585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22586echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22587 ;;
22588 esac
22589 fi
22590 ;;
22591esac
22592
John Criswell47fdd832003-07-14 16:52:07 +000022593echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22594echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22595library_names_spec=
22596libname_spec='lib$name'
22597soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022598shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022599postinstall_cmds=
22600postuninstall_cmds=
22601finish_cmds=
22602finish_eval=
22603shlibpath_var=
22604shlibpath_overrides_runpath=unknown
22605version_type=none
22606dynamic_linker="$host_os ld.so"
22607sys_lib_dlsearch_path_spec="/lib /usr/lib"
22608if test "$GCC" = yes; then
22609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22611 # if the path contains ";" then we assume it to be the separator
22612 # otherwise default to the standard path separator (i.e. ":") - it is
22613 # assumed that no part of a normal pathname contains ";" but that should
22614 # okay in the real world where ";" in dirpaths is itself problematic.
22615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22616 else
22617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22618 fi
22619else
22620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22621fi
22622need_lib_prefix=unknown
22623hardcode_into_libs=no
22624
22625# when you set need_version to no, make sure it does not cause -set_version
22626# flags to be left without arguments
22627need_version=unknown
22628
22629case $host_os in
22630aix3*)
22631 version_type=linux
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22633 shlibpath_var=LIBPATH
22634
22635 # AIX 3 has no versioning support, so we append a major version to the name.
22636 soname_spec='${libname}${release}${shared_ext}$major'
22637 ;;
22638
22639aix4* | aix5*)
22640 version_type=linux
22641 need_lib_prefix=no
22642 need_version=no
22643 hardcode_into_libs=yes
22644 if test "$host_cpu" = ia64; then
22645 # AIX 5 supports IA64
22646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22647 shlibpath_var=LD_LIBRARY_PATH
22648 else
22649 # With GCC up to 2.95.x, collect2 would create an import file
22650 # for dependence libraries. The import file would start with
22651 # the line `#! .'. This would cause the generated library to
22652 # depend on `.', always an invalid library. This was fixed in
22653 # development snapshots of GCC prior to 3.0.
22654 case $host_os in
22655 aix4 | aix4.[01] | aix4.[01].*)
22656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22657 echo ' yes '
22658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22659 :
22660 else
22661 can_build_shared=no
22662 fi
22663 ;;
22664 esac
22665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22666 # soname into executable. Probably we can add versioning support to
22667 # collect2, so additional links can be useful in future.
22668 if test "$aix_use_runtimelinking" = yes; then
22669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22670 # instead of lib<name>.a to let people know that these are not
22671 # typical AIX shared libraries.
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673 else
22674 # We preserve .a as extension for shared libraries through AIX4.2
22675 # and later when we are not doing run time linking.
22676 library_names_spec='${libname}${release}.a $libname.a'
22677 soname_spec='${libname}${release}${shared_ext}$major'
22678 fi
22679 shlibpath_var=LIBPATH
22680 fi
22681 ;;
22682
22683amigaos*)
22684 library_names_spec='$libname.ixlibrary $libname.a'
22685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022686 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 +000022687 ;;
22688
22689beos*)
22690 library_names_spec='${libname}${shared_ext}'
22691 dynamic_linker="$host_os ld.so"
22692 shlibpath_var=LIBRARY_PATH
22693 ;;
22694
Reid Spencer2706f8c2004-09-19 23:53:36 +000022695bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022696 version_type=linux
22697 need_version=no
22698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22699 soname_spec='${libname}${release}${shared_ext}$major'
22700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22704 # the default ld.so.conf also contains /usr/contrib/lib and
22705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22706 # libtool to hard-code these into programs
22707 ;;
22708
22709cygwin* | mingw* | pw32*)
22710 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022711 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022712 need_version=no
22713 need_lib_prefix=no
22714
22715 case $GCC,$host_os in
22716 yes,cygwin* | yes,mingw* | yes,pw32*)
22717 library_names_spec='$libname.dll.a'
22718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022719 postinstall_cmds='base_file=`basename \${file}`~
22720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22721 dldir=$destdir/`dirname \$dlpath`~
22722 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022723 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22725 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022726 $rm \$dlpath'
22727 shlibpath_overrides_runpath=yes
22728
22729 case $host_os in
22730 cygwin*)
22731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22732 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 +000022733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022734 ;;
22735 mingw*)
22736 # MinGW DLLs use traditional 'lib' prefix
22737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22740 # It is most probably a Windows format PATH printed by
22741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22742 # path with ; separators, and with drive letters. We can handle the
22743 # drive letters (cygwin fileutils understands them), so leave them,
22744 # especially as we might pass files found there to a mingw objdump,
22745 # which wouldn't understand a cygwinified path. Ahh.
22746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22747 else
22748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22749 fi
22750 ;;
22751 pw32*)
22752 # pw32 DLLs use 'pw' prefix rather than 'lib'
22753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22754 ;;
22755 esac
22756 ;;
22757
22758 *)
22759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22760 ;;
22761 esac
22762 dynamic_linker='Win32 ld.exe'
22763 # FIXME: first we should search . and the directory the executable is in
22764 shlibpath_var=PATH
22765 ;;
22766
22767darwin* | rhapsody*)
22768 dynamic_linker="$host_os dyld"
22769 version_type=darwin
22770 need_lib_prefix=no
22771 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022773 soname_spec='${libname}${release}${major}$shared_ext'
22774 shlibpath_overrides_runpath=yes
22775 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022776 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022778 if test "$GCC" = yes; then
22779 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"`
22780 else
22781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022782 fi
22783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22784 ;;
22785
22786dgux*)
22787 version_type=linux
22788 need_lib_prefix=no
22789 need_version=no
22790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22791 soname_spec='${libname}${release}${shared_ext}$major'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 ;;
22794
22795freebsd1*)
22796 dynamic_linker=no
22797 ;;
22798
Reid Spencer2706f8c2004-09-19 23:53:36 +000022799kfreebsd*-gnu)
22800 version_type=linux
22801 need_lib_prefix=no
22802 need_version=no
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22804 soname_spec='${libname}${release}${shared_ext}$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 shlibpath_overrides_runpath=no
22807 hardcode_into_libs=yes
22808 dynamic_linker='GNU ld.so'
22809 ;;
22810
John Criswell47fdd832003-07-14 16:52:07 +000022811freebsd*)
22812 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22813 version_type=freebsd-$objformat
22814 case $version_type in
22815 freebsd-elf*)
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22817 need_version=no
22818 need_lib_prefix=no
22819 ;;
22820 freebsd-*)
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22822 need_version=yes
22823 ;;
22824 esac
22825 shlibpath_var=LD_LIBRARY_PATH
22826 case $host_os in
22827 freebsd2*)
22828 shlibpath_overrides_runpath=yes
22829 ;;
22830 freebsd3.01* | freebsdelf3.01*)
22831 shlibpath_overrides_runpath=yes
22832 hardcode_into_libs=yes
22833 ;;
22834 *) # from 3.2 on
22835 shlibpath_overrides_runpath=no
22836 hardcode_into_libs=yes
22837 ;;
22838 esac
22839 ;;
22840
22841gnu*)
22842 version_type=linux
22843 need_lib_prefix=no
22844 need_version=no
22845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22846 soname_spec='${libname}${release}${shared_ext}$major'
22847 shlibpath_var=LD_LIBRARY_PATH
22848 hardcode_into_libs=yes
22849 ;;
22850
22851hpux9* | hpux10* | hpux11*)
22852 # Give a soname corresponding to the major version so that dld.sl refuses to
22853 # link against other versions.
22854 version_type=sunos
22855 need_lib_prefix=no
22856 need_version=no
22857 case "$host_cpu" in
22858 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022859 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022860 hardcode_into_libs=yes
22861 dynamic_linker="$host_os dld.so"
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 if test "X$HPUX_IA64_MODE" = X32; then
22867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22868 else
22869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22870 fi
22871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22872 ;;
22873 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022874 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022875 hardcode_into_libs=yes
22876 dynamic_linker="$host_os dld.sl"
22877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880 soname_spec='${libname}${release}${shared_ext}$major'
22881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22883 ;;
22884 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022885 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022886 dynamic_linker="$host_os dld.sl"
22887 shlibpath_var=SHLIB_PATH
22888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22890 soname_spec='${libname}${release}${shared_ext}$major'
22891 ;;
22892 esac
22893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22894 postinstall_cmds='chmod 555 $lib'
22895 ;;
22896
22897irix5* | irix6* | nonstopux*)
22898 case $host_os in
22899 nonstopux*) version_type=nonstopux ;;
22900 *)
22901 if test "$lt_cv_prog_gnu_ld" = yes; then
22902 version_type=linux
22903 else
22904 version_type=irix
22905 fi ;;
22906 esac
22907 need_lib_prefix=no
22908 need_version=no
22909 soname_spec='${libname}${release}${shared_ext}$major'
22910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22911 case $host_os in
22912 irix5* | nonstopux*)
22913 libsuff= shlibsuff=
22914 ;;
22915 *)
22916 case $LD in # libtool.m4 will add one of these switches to LD
22917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22918 libsuff= shlibsuff= libmagic=32-bit;;
22919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22920 libsuff=32 shlibsuff=N32 libmagic=N32;;
22921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22923 *) libsuff= shlibsuff= libmagic=never-match;;
22924 esac
22925 ;;
22926 esac
22927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22928 shlibpath_overrides_runpath=no
22929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22931 hardcode_into_libs=yes
22932 ;;
22933
22934# No shared lib support for Linux oldld, aout, or coff.
22935linux*oldld* | linux*aout* | linux*coff*)
22936 dynamic_linker=no
22937 ;;
22938
22939# This must be Linux ELF.
22940linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22947 shlibpath_var=LD_LIBRARY_PATH
22948 shlibpath_overrides_runpath=no
22949 # This implies no fast_install, which is unacceptable.
22950 # Some rework will be needed to allow for fast_install
22951 # before this can be enabled.
22952 hardcode_into_libs=yes
22953
Reid Spencer2706f8c2004-09-19 23:53:36 +000022954 # Append ld.so.conf contents to the search path
22955 if test -f /etc/ld.so.conf; then
22956 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22958 fi
22959
John Criswell47fdd832003-07-14 16:52:07 +000022960 # We used to test for /lib/ld.so.1 and disable shared libraries on
22961 # powerpc, because MkLinux only supported shared libraries with the
22962 # GNU dynamic linker. Since this was broken with cross compilers,
22963 # most powerpc-linux boxes support dynamic linking these days and
22964 # people can always --disable-shared, the test was removed, and we
22965 # assume the GNU/Linux dynamic linker is in use.
22966 dynamic_linker='GNU/Linux ld.so'
22967 ;;
22968
Reid Spencer2706f8c2004-09-19 23:53:36 +000022969knetbsd*-gnu)
22970 version_type=linux
22971 need_lib_prefix=no
22972 need_version=no
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=no
22977 hardcode_into_libs=yes
22978 dynamic_linker='GNU ld.so'
22979 ;;
22980
John Criswell47fdd832003-07-14 16:52:07 +000022981netbsd*)
22982 version_type=sunos
22983 need_lib_prefix=no
22984 need_version=no
22985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22988 dynamic_linker='NetBSD (a.out) ld.so'
22989 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022991 soname_spec='${libname}${release}${shared_ext}$major'
22992 dynamic_linker='NetBSD ld.elf_so'
22993 fi
22994 shlibpath_var=LD_LIBRARY_PATH
22995 shlibpath_overrides_runpath=yes
22996 hardcode_into_libs=yes
22997 ;;
22998
22999newsos6)
23000 version_type=linux
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002 shlibpath_var=LD_LIBRARY_PATH
23003 shlibpath_overrides_runpath=yes
23004 ;;
23005
Reid Spencer2706f8c2004-09-19 23:53:36 +000023006nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023007 version_type=linux
23008 need_lib_prefix=no
23009 need_version=no
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011 soname_spec='${libname}${release}${shared_ext}$major'
23012 shlibpath_var=LD_LIBRARY_PATH
23013 shlibpath_overrides_runpath=yes
23014 ;;
23015
23016openbsd*)
23017 version_type=sunos
23018 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000023019 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000023020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23022 shlibpath_var=LD_LIBRARY_PATH
23023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23024 case $host_os in
23025 openbsd2.[89] | openbsd2.[89].*)
23026 shlibpath_overrides_runpath=no
23027 ;;
23028 *)
23029 shlibpath_overrides_runpath=yes
23030 ;;
23031 esac
23032 else
23033 shlibpath_overrides_runpath=yes
23034 fi
23035 ;;
23036
23037os2*)
23038 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023039 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023040 need_lib_prefix=no
23041 library_names_spec='$libname${shared_ext} $libname.a'
23042 dynamic_linker='OS/2 ld.exe'
23043 shlibpath_var=LIBPATH
23044 ;;
23045
23046osf3* | osf4* | osf5*)
23047 version_type=osf
23048 need_lib_prefix=no
23049 need_version=no
23050 soname_spec='${libname}${release}${shared_ext}$major'
23051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23052 shlibpath_var=LD_LIBRARY_PATH
23053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23055 ;;
23056
23057sco3.2v5*)
23058 version_type=osf
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23061 shlibpath_var=LD_LIBRARY_PATH
23062 ;;
23063
23064solaris*)
23065 version_type=linux
23066 need_lib_prefix=no
23067 need_version=no
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath=yes
23072 hardcode_into_libs=yes
23073 # ldd complains unless libraries are executable
23074 postinstall_cmds='chmod +x $lib'
23075 ;;
23076
23077sunos4*)
23078 version_type=sunos
23079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes
23083 if test "$with_gnu_ld" = yes; then
23084 need_lib_prefix=no
23085 fi
23086 need_version=yes
23087 ;;
23088
23089sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23090 version_type=linux
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 soname_spec='${libname}${release}${shared_ext}$major'
23093 shlibpath_var=LD_LIBRARY_PATH
23094 case $host_vendor in
23095 sni)
23096 shlibpath_overrides_runpath=no
23097 need_lib_prefix=no
23098 export_dynamic_flag_spec='${wl}-Blargedynsym'
23099 runpath_var=LD_RUN_PATH
23100 ;;
23101 siemens)
23102 need_lib_prefix=no
23103 ;;
23104 motorola)
23105 need_lib_prefix=no
23106 need_version=no
23107 shlibpath_overrides_runpath=no
23108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23109 ;;
23110 esac
23111 ;;
23112
23113sysv4*MP*)
23114 if test -d /usr/nec ;then
23115 version_type=linux
23116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23117 soname_spec='$libname${shared_ext}.$major'
23118 shlibpath_var=LD_LIBRARY_PATH
23119 fi
23120 ;;
23121
23122uts4*)
23123 version_type=linux
23124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23125 soname_spec='${libname}${release}${shared_ext}$major'
23126 shlibpath_var=LD_LIBRARY_PATH
23127 ;;
23128
23129*)
23130 dynamic_linker=no
23131 ;;
23132esac
23133echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23134echo "${ECHO_T}$dynamic_linker" >&6
23135test "$dynamic_linker" = no && can_build_shared=no
23136
Reid Spencer2706f8c2004-09-19 23:53:36 +000023137echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23138echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23139hardcode_action_GCJ=
23140if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23141 test -n "$runpath_var_GCJ" || \
23142 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23143
23144 # We can hardcode non-existant directories.
23145 if test "$hardcode_direct_GCJ" != no &&
23146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23147 # have to relink, otherwise we might link with an installed library
23148 # when we should be linking with a yet-to-be-installed one
23149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23150 test "$hardcode_minus_L_GCJ" != no; then
23151 # Linking always hardcodes the temporary library directory.
23152 hardcode_action_GCJ=relink
23153 else
23154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23155 hardcode_action_GCJ=immediate
23156 fi
23157else
23158 # We cannot hardcode anything, or else we can only hardcode existing
23159 # directories.
23160 hardcode_action_GCJ=unsupported
23161fi
23162echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23163echo "${ECHO_T}$hardcode_action_GCJ" >&6
23164
23165if test "$hardcode_action_GCJ" = relink; then
23166 # Fast installation is not supported
23167 enable_fast_install=no
23168elif test "$shlibpath_overrides_runpath" = yes ||
23169 test "$enable_shared" = no; then
23170 # Fast installation is not necessary
23171 enable_fast_install=needless
23172fi
23173
23174striplib=
23175old_striplib=
23176echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23177echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23178if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23181 echo "$as_me:$LINENO: result: yes" >&5
23182echo "${ECHO_T}yes" >&6
23183else
23184# FIXME - insert some real tests, host_os isn't really good enough
23185 case $host_os in
23186 darwin*)
23187 if test -n "$STRIP" ; then
23188 striplib="$STRIP -x"
23189 echo "$as_me:$LINENO: result: yes" >&5
23190echo "${ECHO_T}yes" >&6
23191 else
23192 echo "$as_me:$LINENO: result: no" >&5
23193echo "${ECHO_T}no" >&6
23194fi
23195 ;;
23196 *)
23197 echo "$as_me:$LINENO: result: no" >&5
23198echo "${ECHO_T}no" >&6
23199 ;;
23200 esac
23201fi
23202
John Criswell47fdd832003-07-14 16:52:07 +000023203if test "x$enable_dlopen" != xyes; then
23204 enable_dlopen=unknown
23205 enable_dlopen_self=unknown
23206 enable_dlopen_self_static=unknown
23207else
23208 lt_cv_dlopen=no
23209 lt_cv_dlopen_libs=
23210
23211 case $host_os in
23212 beos*)
23213 lt_cv_dlopen="load_add_on"
23214 lt_cv_dlopen_libs=
23215 lt_cv_dlopen_self=yes
23216 ;;
23217
23218 mingw* | pw32*)
23219 lt_cv_dlopen="LoadLibrary"
23220 lt_cv_dlopen_libs=
23221 ;;
23222
23223 cygwin*)
23224 lt_cv_dlopen="dlopen"
23225 lt_cv_dlopen_libs=
23226 ;;
23227
23228 darwin*)
23229 # if libdl is installed we need to link against it
23230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23234else
23235 ac_check_lib_save_LIBS=$LIBS
23236LIBS="-ldl $LIBS"
23237cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023243
23244/* Override any gcc2 internal prototype to avoid an error. */
23245#ifdef __cplusplus
23246extern "C"
23247#endif
23248/* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23250char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023251int
23252main ()
23253{
23254dlopen ();
23255 ;
23256 return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext conftest$ac_exeext
23260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023261 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_dl_dlopen=yes
23282else
23283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023284sed 's/^/| /' conftest.$ac_ext >&5
23285
John Criswell47fdd832003-07-14 16:52:07 +000023286ac_cv_lib_dl_dlopen=no
23287fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023288rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023290LIBS=$ac_check_lib_save_LIBS
23291fi
23292echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294if test $ac_cv_lib_dl_dlopen = yes; then
23295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23296else
23297
23298 lt_cv_dlopen="dyld"
23299 lt_cv_dlopen_libs=
23300 lt_cv_dlopen_self=yes
23301
23302fi
23303
23304 ;;
23305
23306 *)
23307 echo "$as_me:$LINENO: checking for shl_load" >&5
23308echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23309if test "${ac_cv_func_shl_load+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23311else
23312 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023313/* confdefs.h. */
23314_ACEOF
23315cat confdefs.h >>conftest.$ac_ext
23316cat >>conftest.$ac_ext <<_ACEOF
23317/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023318/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23320#define shl_load innocuous_shl_load
23321
John Criswell47fdd832003-07-14 16:52:07 +000023322/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023323 which can conflict with char shl_load (); below.
23324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23325 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023326
John Criswell0c38eaf2003-09-10 15:17:25 +000023327#ifdef __STDC__
23328# include <limits.h>
23329#else
23330# include <assert.h>
23331#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023332
23333#undef shl_load
23334
John Criswell47fdd832003-07-14 16:52:07 +000023335/* Override any gcc2 internal prototype to avoid an error. */
23336#ifdef __cplusplus
23337extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023338{
John Criswell47fdd832003-07-14 16:52:07 +000023339#endif
23340/* We use char because int might match the return type of a gcc2
23341 builtin and then its argument prototype would still apply. */
23342char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023343/* The GNU C library defines this for functions which it implements
23344 to always fail with ENOSYS. Some functions are actually named
23345 something starting with __ and the normal name is an alias. */
23346#if defined (__stub_shl_load) || defined (__stub___shl_load)
23347choke me
23348#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023349char (*f) () = shl_load;
23350#endif
23351#ifdef __cplusplus
23352}
John Criswell47fdd832003-07-14 16:52:07 +000023353#endif
23354
John Criswell0c38eaf2003-09-10 15:17:25 +000023355int
23356main ()
23357{
23358return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023359 ;
23360 return 0;
23361}
23362_ACEOF
23363rm -f conftest.$ac_objext conftest$ac_exeext
23364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023365 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023372 { ac_try='test -z "$ac_c_werror_flag"
23373 || test ! -s conftest.err'
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; } &&
23379 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_func_shl_load=yes
23386else
23387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023388sed 's/^/| /' conftest.$ac_ext >&5
23389
John Criswell47fdd832003-07-14 16:52:07 +000023390ac_cv_func_shl_load=no
23391fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023392rm -f conftest.err conftest.$ac_objext \
23393 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023394fi
23395echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23396echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23397if test $ac_cv_func_shl_load = yes; then
23398 lt_cv_dlopen="shl_load"
23399else
23400 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23401echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23402if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23403 echo $ECHO_N "(cached) $ECHO_C" >&6
23404else
23405 ac_check_lib_save_LIBS=$LIBS
23406LIBS="-ldld $LIBS"
23407cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023408/* confdefs.h. */
23409_ACEOF
23410cat confdefs.h >>conftest.$ac_ext
23411cat >>conftest.$ac_ext <<_ACEOF
23412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023413
23414/* Override any gcc2 internal prototype to avoid an error. */
23415#ifdef __cplusplus
23416extern "C"
23417#endif
23418/* We use char because int might match the return type of a gcc2
23419 builtin and then its argument prototype would still apply. */
23420char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023421int
23422main ()
23423{
23424shl_load ();
23425 ;
23426 return 0;
23427}
23428_ACEOF
23429rm -f conftest.$ac_objext conftest$ac_exeext
23430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023431 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023438 { ac_try='test -z "$ac_c_werror_flag"
23439 || test ! -s conftest.err'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; } &&
23445 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; }; then
23451 ac_cv_lib_dld_shl_load=yes
23452else
23453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023454sed 's/^/| /' conftest.$ac_ext >&5
23455
John Criswell47fdd832003-07-14 16:52:07 +000023456ac_cv_lib_dld_shl_load=no
23457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023458rm -f conftest.err conftest.$ac_objext \
23459 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023460LIBS=$ac_check_lib_save_LIBS
23461fi
23462echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23463echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23464if test $ac_cv_lib_dld_shl_load = yes; then
23465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23466else
23467 echo "$as_me:$LINENO: checking for dlopen" >&5
23468echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23469if test "${ac_cv_func_dlopen+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23471else
23472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023473/* confdefs.h. */
23474_ACEOF
23475cat confdefs.h >>conftest.$ac_ext
23476cat >>conftest.$ac_ext <<_ACEOF
23477/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023478/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23480#define dlopen innocuous_dlopen
23481
John Criswell47fdd832003-07-14 16:52:07 +000023482/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023483 which can conflict with char dlopen (); below.
23484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23485 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023486
John Criswell0c38eaf2003-09-10 15:17:25 +000023487#ifdef __STDC__
23488# include <limits.h>
23489#else
23490# include <assert.h>
23491#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023492
23493#undef dlopen
23494
John Criswell47fdd832003-07-14 16:52:07 +000023495/* Override any gcc2 internal prototype to avoid an error. */
23496#ifdef __cplusplus
23497extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023498{
John Criswell47fdd832003-07-14 16:52:07 +000023499#endif
23500/* We use char because int might match the return type of a gcc2
23501 builtin and then its argument prototype would still apply. */
23502char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023503/* The GNU C library defines this for functions which it implements
23504 to always fail with ENOSYS. Some functions are actually named
23505 something starting with __ and the normal name is an alias. */
23506#if defined (__stub_dlopen) || defined (__stub___dlopen)
23507choke me
23508#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023509char (*f) () = dlopen;
23510#endif
23511#ifdef __cplusplus
23512}
John Criswell47fdd832003-07-14 16:52:07 +000023513#endif
23514
John Criswell0c38eaf2003-09-10 15:17:25 +000023515int
23516main ()
23517{
23518return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023519 ;
23520 return 0;
23521}
23522_ACEOF
23523rm -f conftest.$ac_objext conftest$ac_exeext
23524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023525 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023527 grep -v '^ *+' conftest.er1 >conftest.err
23528 rm -f conftest.er1
23529 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023532 { ac_try='test -z "$ac_c_werror_flag"
23533 || test ! -s conftest.err'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; } &&
23539 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; }; then
23545 ac_cv_func_dlopen=yes
23546else
23547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023548sed 's/^/| /' conftest.$ac_ext >&5
23549
John Criswell47fdd832003-07-14 16:52:07 +000023550ac_cv_func_dlopen=no
23551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023552rm -f conftest.err conftest.$ac_objext \
23553 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023554fi
23555echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23556echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23557if test $ac_cv_func_dlopen = yes; then
23558 lt_cv_dlopen="dlopen"
23559else
23560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23561echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23562if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23564else
23565 ac_check_lib_save_LIBS=$LIBS
23566LIBS="-ldl $LIBS"
23567cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023568/* confdefs.h. */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023573
23574/* Override any gcc2 internal prototype to avoid an error. */
23575#ifdef __cplusplus
23576extern "C"
23577#endif
23578/* We use char because int might match the return type of a gcc2
23579 builtin and then its argument prototype would still apply. */
23580char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023581int
23582main ()
23583{
23584dlopen ();
23585 ;
23586 return 0;
23587}
23588_ACEOF
23589rm -f conftest.$ac_objext conftest$ac_exeext
23590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023591 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023598 { ac_try='test -z "$ac_c_werror_flag"
23599 || test ! -s conftest.err'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; } &&
23605 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23608 ac_status=$?
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; }; then
23611 ac_cv_lib_dl_dlopen=yes
23612else
23613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023614sed 's/^/| /' conftest.$ac_ext >&5
23615
John Criswell47fdd832003-07-14 16:52:07 +000023616ac_cv_lib_dl_dlopen=no
23617fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023618rm -f conftest.err conftest.$ac_objext \
23619 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023620LIBS=$ac_check_lib_save_LIBS
23621fi
23622echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23623echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23624if test $ac_cv_lib_dl_dlopen = yes; then
23625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23626else
23627 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23628echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23629if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631else
23632 ac_check_lib_save_LIBS=$LIBS
23633LIBS="-lsvld $LIBS"
23634cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023635/* confdefs.h. */
23636_ACEOF
23637cat confdefs.h >>conftest.$ac_ext
23638cat >>conftest.$ac_ext <<_ACEOF
23639/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023640
23641/* Override any gcc2 internal prototype to avoid an error. */
23642#ifdef __cplusplus
23643extern "C"
23644#endif
23645/* We use char because int might match the return type of a gcc2
23646 builtin and then its argument prototype would still apply. */
23647char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023648int
23649main ()
23650{
23651dlopen ();
23652 ;
23653 return 0;
23654}
23655_ACEOF
23656rm -f conftest.$ac_objext conftest$ac_exeext
23657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023658 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023665 { ac_try='test -z "$ac_c_werror_flag"
23666 || test ! -s conftest.err'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23669 ac_status=$?
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; } &&
23672 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674 (eval $ac_try) 2>&5
23675 ac_status=$?
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; }; then
23678 ac_cv_lib_svld_dlopen=yes
23679else
23680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023681sed 's/^/| /' conftest.$ac_ext >&5
23682
John Criswell47fdd832003-07-14 16:52:07 +000023683ac_cv_lib_svld_dlopen=no
23684fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023685rm -f conftest.err conftest.$ac_objext \
23686 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023687LIBS=$ac_check_lib_save_LIBS
23688fi
23689echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23690echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23691if test $ac_cv_lib_svld_dlopen = yes; then
23692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23693else
23694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23695echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23696if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23698else
23699 ac_check_lib_save_LIBS=$LIBS
23700LIBS="-ldld $LIBS"
23701cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023702/* confdefs.h. */
23703_ACEOF
23704cat confdefs.h >>conftest.$ac_ext
23705cat >>conftest.$ac_ext <<_ACEOF
23706/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023707
23708/* Override any gcc2 internal prototype to avoid an error. */
23709#ifdef __cplusplus
23710extern "C"
23711#endif
23712/* We use char because int might match the return type of a gcc2
23713 builtin and then its argument prototype would still apply. */
23714char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023715int
23716main ()
23717{
23718dld_link ();
23719 ;
23720 return 0;
23721}
23722_ACEOF
23723rm -f conftest.$ac_objext conftest$ac_exeext
23724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023725 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023732 { ac_try='test -z "$ac_c_werror_flag"
23733 || test ! -s conftest.err'
23734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); }; } &&
23739 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 ac_cv_lib_dld_dld_link=yes
23746else
23747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023748sed 's/^/| /' conftest.$ac_ext >&5
23749
John Criswell47fdd832003-07-14 16:52:07 +000023750ac_cv_lib_dld_dld_link=no
23751fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023752rm -f conftest.err conftest.$ac_objext \
23753 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023754LIBS=$ac_check_lib_save_LIBS
23755fi
23756echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23757echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23758if test $ac_cv_lib_dld_dld_link = yes; then
23759 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23760fi
23761
23762
23763fi
23764
23765
23766fi
23767
23768
23769fi
23770
23771
23772fi
23773
23774
23775fi
23776
23777 ;;
23778 esac
23779
23780 if test "x$lt_cv_dlopen" != xno; then
23781 enable_dlopen=yes
23782 else
23783 enable_dlopen=no
23784 fi
23785
23786 case $lt_cv_dlopen in
23787 dlopen)
23788 save_CPPFLAGS="$CPPFLAGS"
23789 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23790
23791 save_LDFLAGS="$LDFLAGS"
23792 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23793
23794 save_LIBS="$LIBS"
23795 LIBS="$lt_cv_dlopen_libs $LIBS"
23796
23797 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23798echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23799if test "${lt_cv_dlopen_self+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23801else
23802 if test "$cross_compiling" = yes; then :
23803 lt_cv_dlopen_self=cross
23804else
23805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23806 lt_status=$lt_dlunknown
23807 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +000023808#line 23808 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023809#include "confdefs.h"
23810
23811#if HAVE_DLFCN_H
23812#include <dlfcn.h>
23813#endif
23814
23815#include <stdio.h>
23816
23817#ifdef RTLD_GLOBAL
23818# define LT_DLGLOBAL RTLD_GLOBAL
23819#else
23820# ifdef DL_GLOBAL
23821# define LT_DLGLOBAL DL_GLOBAL
23822# else
23823# define LT_DLGLOBAL 0
23824# endif
23825#endif
23826
23827/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23828 find out it does not work in some platform. */
23829#ifndef LT_DLLAZY_OR_NOW
23830# ifdef RTLD_LAZY
23831# define LT_DLLAZY_OR_NOW RTLD_LAZY
23832# else
23833# ifdef DL_LAZY
23834# define LT_DLLAZY_OR_NOW DL_LAZY
23835# else
23836# ifdef RTLD_NOW
23837# define LT_DLLAZY_OR_NOW RTLD_NOW
23838# else
23839# ifdef DL_NOW
23840# define LT_DLLAZY_OR_NOW DL_NOW
23841# else
23842# define LT_DLLAZY_OR_NOW 0
23843# endif
23844# endif
23845# endif
23846# endif
23847#endif
23848
23849#ifdef __cplusplus
23850extern "C" void exit (int);
23851#endif
23852
23853void fnord() { int i=42;}
23854int main ()
23855{
23856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23857 int status = $lt_dlunknown;
23858
23859 if (self)
23860 {
23861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23862 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23863 /* dlclose (self); */
23864 }
23865
23866 exit (status);
23867}
23868EOF
23869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870 (eval $ac_link) 2>&5
23871 ac_status=$?
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23874 (./conftest; exit; ) 2>/dev/null
23875 lt_status=$?
23876 case x$lt_status in
23877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23879 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23880 esac
23881 else :
23882 # compilation failed
23883 lt_cv_dlopen_self=no
23884 fi
23885fi
23886rm -fr conftest*
23887
23888
23889fi
23890echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23891echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23892
23893 if test "x$lt_cv_dlopen_self" = xyes; then
23894 LDFLAGS="$LDFLAGS $link_static_flag"
23895 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23896echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23897if test "${lt_cv_dlopen_self_static+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23899else
23900 if test "$cross_compiling" = yes; then :
23901 lt_cv_dlopen_self_static=cross
23902else
23903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23904 lt_status=$lt_dlunknown
23905 cat > conftest.$ac_ext <<EOF
Reid Spencercaf0ece2006-06-05 15:54:38 +000023906#line 23906 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023907#include "confdefs.h"
23908
23909#if HAVE_DLFCN_H
23910#include <dlfcn.h>
23911#endif
23912
23913#include <stdio.h>
23914
23915#ifdef RTLD_GLOBAL
23916# define LT_DLGLOBAL RTLD_GLOBAL
23917#else
23918# ifdef DL_GLOBAL
23919# define LT_DLGLOBAL DL_GLOBAL
23920# else
23921# define LT_DLGLOBAL 0
23922# endif
23923#endif
23924
23925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23926 find out it does not work in some platform. */
23927#ifndef LT_DLLAZY_OR_NOW
23928# ifdef RTLD_LAZY
23929# define LT_DLLAZY_OR_NOW RTLD_LAZY
23930# else
23931# ifdef DL_LAZY
23932# define LT_DLLAZY_OR_NOW DL_LAZY
23933# else
23934# ifdef RTLD_NOW
23935# define LT_DLLAZY_OR_NOW RTLD_NOW
23936# else
23937# ifdef DL_NOW
23938# define LT_DLLAZY_OR_NOW DL_NOW
23939# else
23940# define LT_DLLAZY_OR_NOW 0
23941# endif
23942# endif
23943# endif
23944# endif
23945#endif
23946
23947#ifdef __cplusplus
23948extern "C" void exit (int);
23949#endif
23950
23951void fnord() { int i=42;}
23952int main ()
23953{
23954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23955 int status = $lt_dlunknown;
23956
23957 if (self)
23958 {
23959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23961 /* dlclose (self); */
23962 }
23963
23964 exit (status);
23965}
23966EOF
23967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23968 (eval $ac_link) 2>&5
23969 ac_status=$?
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23972 (./conftest; exit; ) 2>/dev/null
23973 lt_status=$?
23974 case x$lt_status in
23975 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23976 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23977 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23978 esac
23979 else :
23980 # compilation failed
23981 lt_cv_dlopen_self_static=no
23982 fi
23983fi
23984rm -fr conftest*
23985
23986
23987fi
23988echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23989echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23990 fi
23991
23992 CPPFLAGS="$save_CPPFLAGS"
23993 LDFLAGS="$save_LDFLAGS"
23994 LIBS="$save_LIBS"
23995 ;;
23996 esac
23997
23998 case $lt_cv_dlopen_self in
23999 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24000 *) enable_dlopen_self=unknown ;;
24001 esac
24002
24003 case $lt_cv_dlopen_self_static in
24004 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24005 *) enable_dlopen_self_static=unknown ;;
24006 esac
24007fi
24008
24009
24010# The else clause should only fire when bootstrapping the
24011# libtool distribution, otherwise you forgot to ship ltmain.sh
24012# with your package, and you will get complaints that there are
24013# no rules to generate ltmain.sh.
24014if test -f "$ltmain"; then
24015 # See if we are running on zsh, and set the options which allow our commands through
24016 # without removal of \ escapes.
24017 if test -n "${ZSH_VERSION+set}" ; then
24018 setopt NO_GLOB_SUBST
24019 fi
24020 # Now quote all the things that may contain metacharacters while being
24021 # careful not to overquote the AC_SUBSTed values. We take copies of the
24022 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024023 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24024 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24027 deplibs_check_method reload_flag reload_cmds need_locks \
24028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24029 lt_cv_sys_global_symbol_to_c_name_address \
24030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24031 old_postinstall_cmds old_postuninstall_cmds \
24032 compiler_GCJ \
24033 CC_GCJ \
24034 LD_GCJ \
24035 lt_prog_compiler_wl_GCJ \
24036 lt_prog_compiler_pic_GCJ \
24037 lt_prog_compiler_static_GCJ \
24038 lt_prog_compiler_no_builtin_flag_GCJ \
24039 export_dynamic_flag_spec_GCJ \
24040 thread_safe_flag_spec_GCJ \
24041 whole_archive_flag_spec_GCJ \
24042 enable_shared_with_static_runtimes_GCJ \
24043 old_archive_cmds_GCJ \
24044 old_archive_from_new_cmds_GCJ \
24045 predep_objects_GCJ \
24046 postdep_objects_GCJ \
24047 predeps_GCJ \
24048 postdeps_GCJ \
24049 compiler_lib_search_path_GCJ \
24050 archive_cmds_GCJ \
24051 archive_expsym_cmds_GCJ \
24052 postinstall_cmds_GCJ \
24053 postuninstall_cmds_GCJ \
24054 old_archive_from_expsyms_cmds_GCJ \
24055 allow_undefined_flag_GCJ \
24056 no_undefined_flag_GCJ \
24057 export_symbols_cmds_GCJ \
24058 hardcode_libdir_flag_spec_GCJ \
24059 hardcode_libdir_flag_spec_ld_GCJ \
24060 hardcode_libdir_separator_GCJ \
24061 hardcode_automatic_GCJ \
24062 module_cmds_GCJ \
24063 module_expsym_cmds_GCJ \
24064 lt_cv_prog_compiler_c_o_GCJ \
24065 exclude_expsyms_GCJ \
24066 include_expsyms_GCJ; do
24067
24068 case $var in
24069 old_archive_cmds_GCJ | \
24070 old_archive_from_new_cmds_GCJ | \
24071 archive_cmds_GCJ | \
24072 archive_expsym_cmds_GCJ | \
24073 module_cmds_GCJ | \
24074 module_expsym_cmds_GCJ | \
24075 old_archive_from_expsyms_cmds_GCJ | \
24076 export_symbols_cmds_GCJ | \
24077 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24078 postinstall_cmds | postuninstall_cmds | \
24079 old_postinstall_cmds | old_postuninstall_cmds | \
24080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24081 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024082 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 +000024083 ;;
24084 *)
24085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24086 ;;
24087 esac
24088 done
24089
24090 case $lt_echo in
24091 *'\$0 --fallback-echo"')
24092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24093 ;;
24094 esac
24095
24096cfgfile="$ofile"
24097
24098 cat <<__EOF__ >> "$cfgfile"
24099# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24100
24101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24102
24103# Shell to use when invoking shell scripts.
24104SHELL=$lt_SHELL
24105
24106# Whether or not to build shared libraries.
24107build_libtool_libs=$enable_shared
24108
24109# Whether or not to build static libraries.
24110build_old_libs=$enable_static
24111
24112# Whether or not to add -lc for building shared libraries.
24113build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24114
24115# Whether or not to disallow shared libs when runtime libs are static
24116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24117
24118# Whether or not to optimize for fast installation.
24119fast_install=$enable_fast_install
24120
24121# The host system.
24122host_alias=$host_alias
24123host=$host
24124
24125# An echo program that does not interpret backslashes.
24126echo=$lt_echo
24127
24128# The archiver.
24129AR=$lt_AR
24130AR_FLAGS=$lt_AR_FLAGS
24131
24132# A C compiler.
24133LTCC=$lt_LTCC
24134
24135# A language-specific compiler.
24136CC=$lt_compiler_GCJ
24137
24138# Is the compiler the GNU C compiler?
24139with_gcc=$GCC_GCJ
24140
24141# An ERE matcher.
24142EGREP=$lt_EGREP
24143
24144# The linker used to build libraries.
24145LD=$lt_LD_GCJ
24146
24147# Whether we need hard or soft links.
24148LN_S=$lt_LN_S
24149
24150# A BSD-compatible nm program.
24151NM=$lt_NM
24152
24153# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024154STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024155
24156# Used to examine libraries when file_magic_cmd begins "file"
24157MAGIC_CMD=$MAGIC_CMD
24158
24159# Used on cygwin: DLL creation program.
24160DLLTOOL="$DLLTOOL"
24161
24162# Used on cygwin: object dumper.
24163OBJDUMP="$OBJDUMP"
24164
24165# Used on cygwin: assembler.
24166AS="$AS"
24167
24168# The name of the directory that contains temporary libtool files.
24169objdir=$objdir
24170
24171# How to create reloadable object files.
24172reload_flag=$lt_reload_flag
24173reload_cmds=$lt_reload_cmds
24174
24175# How to pass a linker flag through the compiler.
24176wl=$lt_lt_prog_compiler_wl_GCJ
24177
24178# Object file suffix (normally "o").
24179objext="$ac_objext"
24180
24181# Old archive suffix (normally "a").
24182libext="$libext"
24183
24184# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024185shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024186
24187# Executable file suffix (normally "").
24188exeext="$exeext"
24189
24190# Additional compiler flags for building library objects.
24191pic_flag=$lt_lt_prog_compiler_pic_GCJ
24192pic_mode=$pic_mode
24193
24194# What is the maximum length of a command?
24195max_cmd_len=$lt_cv_sys_max_cmd_len
24196
24197# Does compiler simultaneously support -c and -o options?
24198compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24199
24200# Must we lock files when doing compilation ?
24201need_locks=$lt_need_locks
24202
24203# Do we need the lib prefix for modules?
24204need_lib_prefix=$need_lib_prefix
24205
24206# Do we need a version for libraries?
24207need_version=$need_version
24208
24209# Whether dlopen is supported.
24210dlopen_support=$enable_dlopen
24211
24212# Whether dlopen of programs is supported.
24213dlopen_self=$enable_dlopen_self
24214
24215# Whether dlopen of statically linked programs is supported.
24216dlopen_self_static=$enable_dlopen_self_static
24217
24218# Compiler flag to prevent dynamic linking.
24219link_static_flag=$lt_lt_prog_compiler_static_GCJ
24220
24221# Compiler flag to turn off builtin functions.
24222no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24223
24224# Compiler flag to allow reflexive dlopens.
24225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24226
24227# Compiler flag to generate shared objects directly from archives.
24228whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24229
24230# Compiler flag to generate thread-safe objects.
24231thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24232
24233# Library versioning type.
24234version_type=$version_type
24235
24236# Format of library name prefix.
24237libname_spec=$lt_libname_spec
24238
24239# List of archive names. First name is the real one, the rest are links.
24240# The last name is the one that the linker finds with -lNAME.
24241library_names_spec=$lt_library_names_spec
24242
24243# The coded name of the library, if different from the real name.
24244soname_spec=$lt_soname_spec
24245
24246# Commands used to build and install an old-style archive.
24247RANLIB=$lt_RANLIB
24248old_archive_cmds=$lt_old_archive_cmds_GCJ
24249old_postinstall_cmds=$lt_old_postinstall_cmds
24250old_postuninstall_cmds=$lt_old_postuninstall_cmds
24251
24252# Create an old-style archive from a shared archive.
24253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24254
24255# Create a temporary old-style archive to link instead of a shared archive.
24256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24257
24258# Commands used to build and install a shared archive.
24259archive_cmds=$lt_archive_cmds_GCJ
24260archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24261postinstall_cmds=$lt_postinstall_cmds
24262postuninstall_cmds=$lt_postuninstall_cmds
24263
24264# Commands used to build a loadable module (assumed same as above if empty)
24265module_cmds=$lt_module_cmds_GCJ
24266module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24267
24268# Commands to strip libraries.
24269old_striplib=$lt_old_striplib
24270striplib=$lt_striplib
24271
24272# Dependencies to place before the objects being linked to create a
24273# shared library.
24274predep_objects=$lt_predep_objects_GCJ
24275
24276# Dependencies to place after the objects being linked to create a
24277# shared library.
24278postdep_objects=$lt_postdep_objects_GCJ
24279
24280# Dependencies to place before the objects being linked to create a
24281# shared library.
24282predeps=$lt_predeps_GCJ
24283
24284# Dependencies to place after the objects being linked to create a
24285# shared library.
24286postdeps=$lt_postdeps_GCJ
24287
24288# The library search path used internally by the compiler when linking
24289# a shared library.
24290compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24291
24292# Method to check whether dependent libraries are shared objects.
24293deplibs_check_method=$lt_deplibs_check_method
24294
24295# Command to use when deplibs_check_method == file_magic.
24296file_magic_cmd=$lt_file_magic_cmd
24297
24298# Flag that allows shared libraries with undefined symbols to be built.
24299allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24300
24301# Flag that forces no undefined symbols.
24302no_undefined_flag=$lt_no_undefined_flag_GCJ
24303
24304# Commands used to finish a libtool library installation in a directory.
24305finish_cmds=$lt_finish_cmds
24306
24307# Same as above, but a single script fragment to be evaled but not shown.
24308finish_eval=$lt_finish_eval
24309
24310# Take the output of nm and produce a listing of raw symbols and C names.
24311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24312
24313# Transform the output of nm in a proper C declaration
24314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24315
24316# Transform the output of nm in a C name address pair
24317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24318
24319# This is the shared library runtime path variable.
24320runpath_var=$runpath_var
24321
24322# This is the shared library path variable.
24323shlibpath_var=$shlibpath_var
24324
24325# Is shlibpath searched before the hard-coded library search path?
24326shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24327
24328# How to hardcode a shared library path into an executable.
24329hardcode_action=$hardcode_action_GCJ
24330
24331# Whether we should hardcode library paths into libraries.
24332hardcode_into_libs=$hardcode_into_libs
24333
24334# Flag to hardcode \$libdir into a binary during linking.
24335# This must work even if \$libdir does not exist.
24336hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24337
24338# If ld is used when linking, flag to hardcode \$libdir into
24339# a binary during linking. This must work even if \$libdir does
24340# not exist.
24341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24342
24343# Whether we need a single -rpath flag with a separated argument.
24344hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24345
24346# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24347# resulting binary.
24348hardcode_direct=$hardcode_direct_GCJ
24349
24350# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24351# resulting binary.
24352hardcode_minus_L=$hardcode_minus_L_GCJ
24353
24354# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24355# the resulting binary.
24356hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24357
24358# Set to yes if building a shared library automatically hardcodes DIR into the library
24359# and all subsequent libraries and executables linked against it.
24360hardcode_automatic=$hardcode_automatic_GCJ
24361
24362# Variables whose values should be saved in libtool wrapper scripts and
24363# restored at relink time.
24364variables_saved_for_relink="$variables_saved_for_relink"
24365
24366# Whether libtool must link a program against all its dependency libraries.
24367link_all_deplibs=$link_all_deplibs_GCJ
24368
24369# Compile-time system search path for libraries
24370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24371
24372# Run-time system search path for libraries
24373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24374
24375# Fix the shell variable \$srcfile for the compiler.
24376fix_srcfile_path="$fix_srcfile_path_GCJ"
24377
24378# Set to yes if exported symbols are required.
24379always_export_symbols=$always_export_symbols_GCJ
24380
24381# The commands to list exported symbols.
24382export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24383
24384# The commands to extract the exported symbol list from a shared archive.
24385extract_expsyms_cmds=$lt_extract_expsyms_cmds
24386
24387# Symbols that should not be listed in the preloaded symbols.
24388exclude_expsyms=$lt_exclude_expsyms_GCJ
24389
24390# Symbols that must always be exported.
24391include_expsyms=$lt_include_expsyms_GCJ
24392
24393# ### END LIBTOOL TAG CONFIG: $tagname
24394
24395__EOF__
24396
24397
24398else
24399 # If there is no Makefile yet, we rely on a make rule to execute
24400 # `config.status --recheck' to rerun these tests and create the
24401 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24403 if test -f "$ltmain_in"; then
24404 test -f Makefile && make "$ltmain"
24405 fi
John Criswell47fdd832003-07-14 16:52:07 +000024406fi
24407
24408
24409ac_ext=c
24410ac_cpp='$CPP $CPPFLAGS'
24411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24413ac_compiler_gnu=$ac_cv_c_compiler_gnu
24414
24415CC="$lt_save_CC"
24416
24417 else
24418 tagname=""
24419 fi
24420 ;;
24421
24422 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024423 ac_ext=c
24424ac_cpp='$CPP $CPPFLAGS'
24425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24427ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024428
24429
24430# Source file extension for RC test sources.
24431ac_ext=rc
24432
24433# Object file extension for compiled RC test sources.
24434objext=o
24435objext_RC=$objext
24436
24437# Code to be used in simple compile tests
24438lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24439
24440# Code to be used in simple link tests
24441lt_simple_link_test_code="$lt_simple_compile_test_code"
24442
24443# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24444
24445# If no C compiler was specified, use CC.
24446LTCC=${LTCC-"$CC"}
24447
24448# Allow CC to be a program name with arguments.
24449compiler=$CC
24450
24451
24452# Allow CC to be a program name with arguments.
24453lt_save_CC="$CC"
24454CC=${RC-"windres"}
24455compiler=$CC
24456compiler_RC=$CC
24457lt_cv_prog_compiler_c_o_RC=yes
24458
24459# The else clause should only fire when bootstrapping the
24460# libtool distribution, otherwise you forgot to ship ltmain.sh
24461# with your package, and you will get complaints that there are
24462# no rules to generate ltmain.sh.
24463if test -f "$ltmain"; then
24464 # See if we are running on zsh, and set the options which allow our commands through
24465 # without removal of \ escapes.
24466 if test -n "${ZSH_VERSION+set}" ; then
24467 setopt NO_GLOB_SUBST
24468 fi
24469 # Now quote all the things that may contain metacharacters while being
24470 # careful not to overquote the AC_SUBSTed values. We take copies of the
24471 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24473 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24476 deplibs_check_method reload_flag reload_cmds need_locks \
24477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24478 lt_cv_sys_global_symbol_to_c_name_address \
24479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24480 old_postinstall_cmds old_postuninstall_cmds \
24481 compiler_RC \
24482 CC_RC \
24483 LD_RC \
24484 lt_prog_compiler_wl_RC \
24485 lt_prog_compiler_pic_RC \
24486 lt_prog_compiler_static_RC \
24487 lt_prog_compiler_no_builtin_flag_RC \
24488 export_dynamic_flag_spec_RC \
24489 thread_safe_flag_spec_RC \
24490 whole_archive_flag_spec_RC \
24491 enable_shared_with_static_runtimes_RC \
24492 old_archive_cmds_RC \
24493 old_archive_from_new_cmds_RC \
24494 predep_objects_RC \
24495 postdep_objects_RC \
24496 predeps_RC \
24497 postdeps_RC \
24498 compiler_lib_search_path_RC \
24499 archive_cmds_RC \
24500 archive_expsym_cmds_RC \
24501 postinstall_cmds_RC \
24502 postuninstall_cmds_RC \
24503 old_archive_from_expsyms_cmds_RC \
24504 allow_undefined_flag_RC \
24505 no_undefined_flag_RC \
24506 export_symbols_cmds_RC \
24507 hardcode_libdir_flag_spec_RC \
24508 hardcode_libdir_flag_spec_ld_RC \
24509 hardcode_libdir_separator_RC \
24510 hardcode_automatic_RC \
24511 module_cmds_RC \
24512 module_expsym_cmds_RC \
24513 lt_cv_prog_compiler_c_o_RC \
24514 exclude_expsyms_RC \
24515 include_expsyms_RC; do
24516
24517 case $var in
24518 old_archive_cmds_RC | \
24519 old_archive_from_new_cmds_RC | \
24520 archive_cmds_RC | \
24521 archive_expsym_cmds_RC | \
24522 module_cmds_RC | \
24523 module_expsym_cmds_RC | \
24524 old_archive_from_expsyms_cmds_RC | \
24525 export_symbols_cmds_RC | \
24526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24527 postinstall_cmds | postuninstall_cmds | \
24528 old_postinstall_cmds | old_postuninstall_cmds | \
24529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24530 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024531 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 +000024532 ;;
24533 *)
24534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24535 ;;
24536 esac
24537 done
24538
24539 case $lt_echo in
24540 *'\$0 --fallback-echo"')
24541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24542 ;;
24543 esac
24544
24545cfgfile="$ofile"
24546
24547 cat <<__EOF__ >> "$cfgfile"
24548# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24549
24550# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24551
24552# Shell to use when invoking shell scripts.
24553SHELL=$lt_SHELL
24554
24555# Whether or not to build shared libraries.
24556build_libtool_libs=$enable_shared
24557
24558# Whether or not to build static libraries.
24559build_old_libs=$enable_static
24560
24561# Whether or not to add -lc for building shared libraries.
24562build_libtool_need_lc=$archive_cmds_need_lc_RC
24563
24564# Whether or not to disallow shared libs when runtime libs are static
24565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24566
24567# Whether or not to optimize for fast installation.
24568fast_install=$enable_fast_install
24569
24570# The host system.
24571host_alias=$host_alias
24572host=$host
24573
24574# An echo program that does not interpret backslashes.
24575echo=$lt_echo
24576
24577# The archiver.
24578AR=$lt_AR
24579AR_FLAGS=$lt_AR_FLAGS
24580
24581# A C compiler.
24582LTCC=$lt_LTCC
24583
24584# A language-specific compiler.
24585CC=$lt_compiler_RC
24586
24587# Is the compiler the GNU C compiler?
24588with_gcc=$GCC_RC
24589
24590# An ERE matcher.
24591EGREP=$lt_EGREP
24592
24593# The linker used to build libraries.
24594LD=$lt_LD_RC
24595
24596# Whether we need hard or soft links.
24597LN_S=$lt_LN_S
24598
24599# A BSD-compatible nm program.
24600NM=$lt_NM
24601
24602# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024603STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024604
24605# Used to examine libraries when file_magic_cmd begins "file"
24606MAGIC_CMD=$MAGIC_CMD
24607
24608# Used on cygwin: DLL creation program.
24609DLLTOOL="$DLLTOOL"
24610
24611# Used on cygwin: object dumper.
24612OBJDUMP="$OBJDUMP"
24613
24614# Used on cygwin: assembler.
24615AS="$AS"
24616
24617# The name of the directory that contains temporary libtool files.
24618objdir=$objdir
24619
24620# How to create reloadable object files.
24621reload_flag=$lt_reload_flag
24622reload_cmds=$lt_reload_cmds
24623
24624# How to pass a linker flag through the compiler.
24625wl=$lt_lt_prog_compiler_wl_RC
24626
24627# Object file suffix (normally "o").
24628objext="$ac_objext"
24629
24630# Old archive suffix (normally "a").
24631libext="$libext"
24632
24633# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024634shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024635
24636# Executable file suffix (normally "").
24637exeext="$exeext"
24638
24639# Additional compiler flags for building library objects.
24640pic_flag=$lt_lt_prog_compiler_pic_RC
24641pic_mode=$pic_mode
24642
24643# What is the maximum length of a command?
24644max_cmd_len=$lt_cv_sys_max_cmd_len
24645
24646# Does compiler simultaneously support -c and -o options?
24647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24648
24649# Must we lock files when doing compilation ?
24650need_locks=$lt_need_locks
24651
24652# Do we need the lib prefix for modules?
24653need_lib_prefix=$need_lib_prefix
24654
24655# Do we need a version for libraries?
24656need_version=$need_version
24657
24658# Whether dlopen is supported.
24659dlopen_support=$enable_dlopen
24660
24661# Whether dlopen of programs is supported.
24662dlopen_self=$enable_dlopen_self
24663
24664# Whether dlopen of statically linked programs is supported.
24665dlopen_self_static=$enable_dlopen_self_static
24666
24667# Compiler flag to prevent dynamic linking.
24668link_static_flag=$lt_lt_prog_compiler_static_RC
24669
24670# Compiler flag to turn off builtin functions.
24671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24672
24673# Compiler flag to allow reflexive dlopens.
24674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24675
24676# Compiler flag to generate shared objects directly from archives.
24677whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24678
24679# Compiler flag to generate thread-safe objects.
24680thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24681
24682# Library versioning type.
24683version_type=$version_type
24684
24685# Format of library name prefix.
24686libname_spec=$lt_libname_spec
24687
24688# List of archive names. First name is the real one, the rest are links.
24689# The last name is the one that the linker finds with -lNAME.
24690library_names_spec=$lt_library_names_spec
24691
24692# The coded name of the library, if different from the real name.
24693soname_spec=$lt_soname_spec
24694
24695# Commands used to build and install an old-style archive.
24696RANLIB=$lt_RANLIB
24697old_archive_cmds=$lt_old_archive_cmds_RC
24698old_postinstall_cmds=$lt_old_postinstall_cmds
24699old_postuninstall_cmds=$lt_old_postuninstall_cmds
24700
24701# Create an old-style archive from a shared archive.
24702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24703
24704# Create a temporary old-style archive to link instead of a shared archive.
24705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24706
24707# Commands used to build and install a shared archive.
24708archive_cmds=$lt_archive_cmds_RC
24709archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24710postinstall_cmds=$lt_postinstall_cmds
24711postuninstall_cmds=$lt_postuninstall_cmds
24712
24713# Commands used to build a loadable module (assumed same as above if empty)
24714module_cmds=$lt_module_cmds_RC
24715module_expsym_cmds=$lt_module_expsym_cmds_RC
24716
24717# Commands to strip libraries.
24718old_striplib=$lt_old_striplib
24719striplib=$lt_striplib
24720
24721# Dependencies to place before the objects being linked to create a
24722# shared library.
24723predep_objects=$lt_predep_objects_RC
24724
24725# Dependencies to place after the objects being linked to create a
24726# shared library.
24727postdep_objects=$lt_postdep_objects_RC
24728
24729# Dependencies to place before the objects being linked to create a
24730# shared library.
24731predeps=$lt_predeps_RC
24732
24733# Dependencies to place after the objects being linked to create a
24734# shared library.
24735postdeps=$lt_postdeps_RC
24736
24737# The library search path used internally by the compiler when linking
24738# a shared library.
24739compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24740
24741# Method to check whether dependent libraries are shared objects.
24742deplibs_check_method=$lt_deplibs_check_method
24743
24744# Command to use when deplibs_check_method == file_magic.
24745file_magic_cmd=$lt_file_magic_cmd
24746
24747# Flag that allows shared libraries with undefined symbols to be built.
24748allow_undefined_flag=$lt_allow_undefined_flag_RC
24749
24750# Flag that forces no undefined symbols.
24751no_undefined_flag=$lt_no_undefined_flag_RC
24752
24753# Commands used to finish a libtool library installation in a directory.
24754finish_cmds=$lt_finish_cmds
24755
24756# Same as above, but a single script fragment to be evaled but not shown.
24757finish_eval=$lt_finish_eval
24758
24759# Take the output of nm and produce a listing of raw symbols and C names.
24760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24761
24762# Transform the output of nm in a proper C declaration
24763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24764
24765# Transform the output of nm in a C name address pair
24766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24767
24768# This is the shared library runtime path variable.
24769runpath_var=$runpath_var
24770
24771# This is the shared library path variable.
24772shlibpath_var=$shlibpath_var
24773
24774# Is shlibpath searched before the hard-coded library search path?
24775shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24776
24777# How to hardcode a shared library path into an executable.
24778hardcode_action=$hardcode_action_RC
24779
24780# Whether we should hardcode library paths into libraries.
24781hardcode_into_libs=$hardcode_into_libs
24782
24783# Flag to hardcode \$libdir into a binary during linking.
24784# This must work even if \$libdir does not exist.
24785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24786
24787# If ld is used when linking, flag to hardcode \$libdir into
24788# a binary during linking. This must work even if \$libdir does
24789# not exist.
24790hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24791
24792# Whether we need a single -rpath flag with a separated argument.
24793hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24794
24795# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24796# resulting binary.
24797hardcode_direct=$hardcode_direct_RC
24798
24799# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24800# resulting binary.
24801hardcode_minus_L=$hardcode_minus_L_RC
24802
24803# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24804# the resulting binary.
24805hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24806
24807# Set to yes if building a shared library automatically hardcodes DIR into the library
24808# and all subsequent libraries and executables linked against it.
24809hardcode_automatic=$hardcode_automatic_RC
24810
24811# Variables whose values should be saved in libtool wrapper scripts and
24812# restored at relink time.
24813variables_saved_for_relink="$variables_saved_for_relink"
24814
24815# Whether libtool must link a program against all its dependency libraries.
24816link_all_deplibs=$link_all_deplibs_RC
24817
24818# Compile-time system search path for libraries
24819sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24820
24821# Run-time system search path for libraries
24822sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24823
24824# Fix the shell variable \$srcfile for the compiler.
24825fix_srcfile_path="$fix_srcfile_path_RC"
24826
24827# Set to yes if exported symbols are required.
24828always_export_symbols=$always_export_symbols_RC
24829
24830# The commands to list exported symbols.
24831export_symbols_cmds=$lt_export_symbols_cmds_RC
24832
24833# The commands to extract the exported symbol list from a shared archive.
24834extract_expsyms_cmds=$lt_extract_expsyms_cmds
24835
24836# Symbols that should not be listed in the preloaded symbols.
24837exclude_expsyms=$lt_exclude_expsyms_RC
24838
24839# Symbols that must always be exported.
24840include_expsyms=$lt_include_expsyms_RC
24841
24842# ### END LIBTOOL TAG CONFIG: $tagname
24843
24844__EOF__
24845
24846
24847else
24848 # If there is no Makefile yet, we rely on a make rule to execute
24849 # `config.status --recheck' to rerun these tests and create the
24850 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24852 if test -f "$ltmain_in"; then
24853 test -f Makefile && make "$ltmain"
24854 fi
John Criswell47fdd832003-07-14 16:52:07 +000024855fi
24856
24857
24858ac_ext=c
24859ac_cpp='$CPP $CPPFLAGS'
24860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24862ac_compiler_gnu=$ac_cv_c_compiler_gnu
24863
24864CC="$lt_save_CC"
24865
24866 ;;
24867
24868 *)
24869 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24870echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24871 { (exit 1); exit 1; }; }
24872 ;;
24873 esac
24874
24875 # Append the new tag name to the list of available tags.
24876 if test -n "$tagname" ; then
24877 available_tags="$available_tags $tagname"
24878 fi
24879 fi
24880 done
24881 IFS="$lt_save_ifs"
24882
24883 # Now substitute the updated list of available tags.
24884 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24885 mv "${ofile}T" "$ofile"
24886 chmod +x "$ofile"
24887 else
24888 rm -f "${ofile}T"
24889 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24890echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24891 { (exit 1); exit 1; }; }
24892 fi
24893fi
John Criswell7a73b802003-06-30 21:59:07 +000024894
24895
24896
24897# This can be used to rebuild libtool when needed
24898LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24899
24900# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024901LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024902
24903# Prevent multiple expansion
24904
24905
24906
John Criswell47fdd832003-07-14 16:52:07 +000024907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024924
Reid Spencer582a23c2004-12-29 07:07:57 +000024925if test "$lt_cv_dlopen_self" = "yes" ; then
24926
24927cat >>confdefs.h <<\_ACEOF
24928#define CAN_DLOPEN_SELF 1
24929_ACEOF
24930
24931fi
24932
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024933etags_version=`$ETAGS --version 2>&1`
24934case "$etags_version" in
24935 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24936 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24937 *) ETAGSFLAGS="" ;;
24938esac
24939ETAGSFLAGS=$ETAGSFLAGS
24940
24941
Reid Spencer7931a782004-12-27 06:15:02 +000024942if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024943 LLVMGCC="llvm-gcc${EXEEXT}"
24944 LLVMGXX="llvm-g++${EXEEXT}"
24945 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24946set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024947echo "$as_me:$LINENO: checking for $ac_word" >&5
24948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24949if test "${ac_cv_path_LLVMGCC+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951else
24952 case $LLVMGCC in
24953 [\\/]* | ?:[\\/]*)
24954 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24955 ;;
24956 *)
24957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24958for as_dir in $PATH
24959do
24960 IFS=$as_save_IFS
24961 test -z "$as_dir" && as_dir=.
24962 for ac_exec_ext in '' $ac_executable_extensions; do
24963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24964 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24966 break 2
24967 fi
24968done
24969done
24970
Reid Spencer59473af2004-12-25 07:31:29 +000024971 ;;
24972esac
24973fi
24974LLVMGCC=$ac_cv_path_LLVMGCC
24975
24976if test -n "$LLVMGCC"; then
24977 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24978echo "${ECHO_T}$LLVMGCC" >&6
24979else
24980 echo "$as_me:$LINENO: result: no" >&5
24981echo "${ECHO_T}no" >&6
24982fi
24983
Reid Spencerc84492c2005-06-02 22:34:49 +000024984 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24985set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024986echo "$as_me:$LINENO: checking for $ac_word" >&5
24987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24988if test "${ac_cv_path_LLVMGXX+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24990else
24991 case $LLVMGXX in
24992 [\\/]* | ?:[\\/]*)
24993 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24994 ;;
24995 *)
24996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24997for as_dir in $PATH
24998do
24999 IFS=$as_save_IFS
25000 test -z "$as_dir" && as_dir=.
25001 for ac_exec_ext in '' $ac_executable_extensions; do
25002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25003 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25005 break 2
25006 fi
25007done
25008done
25009
Reid Spencer59473af2004-12-25 07:31:29 +000025010 ;;
25011esac
25012fi
25013LLVMGXX=$ac_cv_path_LLVMGXX
25014
25015if test -n "$LLVMGXX"; then
25016 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25017echo "${ECHO_T}$LLVMGXX" >&6
25018else
25019 echo "$as_me:$LINENO: result: no" >&5
25020echo "${ECHO_T}no" >&6
25021fi
25022
25023else
Reid Spencerc84492c2005-06-02 22:34:49 +000025024 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25025 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000025026 LLVMGCC=$LLVMGCC
25027
25028 LLVMGXX=$LLVMGXX
25029
25030fi
25031
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025032echo "$as_me:$LINENO: checking tool compatibility" >&5
25033echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25034
Reid Spencer86901802004-12-08 23:07:27 +000025035ICC=no
25036IXX=no
25037case $CC in
25038 icc*|icpc*)
25039 ICC=yes
25040 IXX=yes
25041 ;;
25042 *)
25043 ;;
25044esac
25045
Duraid Madina937c60a2006-02-15 07:57:42 +000025046if test "$GCC" != "yes" && test "$ICC" != "yes"
25047then
25048 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25049echo "$as_me: error: gcc|icc required but not found" >&2;}
25050 { (exit 1); exit 1; }; }
25051fi
25052
25053if test "$GXX" != "yes" && test "$IXX" != "yes"
25054then
25055 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25056echo "$as_me: error: g++|icc required but not found" >&2;}
25057 { (exit 1); exit 1; }; }
25058fi
25059
Reid Spencer86901802004-12-08 23:07:27 +000025060if test "$GCC" = "yes"
25061then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025062 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025063 if test "$gccmajor" -lt "3"
25064 then
25065 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025066echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25067 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025068 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025069fi
25070
25071if test -z "$llvm_cv_gnu_make_command"
25072then
25073 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25074echo "$as_me: error: GNU Make required but not found" >&2;}
25075 { (exit 1); exit 1; }; }
25076fi
25077
25078echo "$as_me:$LINENO: result: ok" >&5
25079echo "${ECHO_T}ok" >&6
25080
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025081
John Criswell7a73b802003-06-30 21:59:07 +000025082
John Criswell7a73b802003-06-30 21:59:07 +000025083echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25084echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25085if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25086 echo $ECHO_N "(cached) $ECHO_C" >&6
25087else
25088 ac_check_lib_save_LIBS=$LIBS
25089LIBS="-lelf $LIBS"
25090cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025091/* confdefs.h. */
25092_ACEOF
25093cat confdefs.h >>conftest.$ac_ext
25094cat >>conftest.$ac_ext <<_ACEOF
25095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025096
25097/* Override any gcc2 internal prototype to avoid an error. */
25098#ifdef __cplusplus
25099extern "C"
25100#endif
25101/* We use char because int might match the return type of a gcc2
25102 builtin and then its argument prototype would still apply. */
25103char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025104int
25105main ()
25106{
25107elf_begin ();
25108 ;
25109 return 0;
25110}
25111_ACEOF
25112rm -f conftest.$ac_objext conftest$ac_exeext
25113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025114 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025115 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025121 { ac_try='test -z "$ac_c_werror_flag"
25122 || test ! -s conftest.err'
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; } &&
25128 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_lib_elf_elf_begin=yes
25135else
25136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025137sed 's/^/| /' conftest.$ac_ext >&5
25138
John Criswell7a73b802003-06-30 21:59:07 +000025139ac_cv_lib_elf_elf_begin=no
25140fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025141rm -f conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025143LIBS=$ac_check_lib_save_LIBS
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25146echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25147if test $ac_cv_lib_elf_elf_begin = yes; then
25148 cat >>confdefs.h <<_ACEOF
25149#define HAVE_LIBELF 1
25150_ACEOF
25151
25152 LIBS="-lelf $LIBS"
25153
25154fi
25155
25156
Reid Spencer3484a992006-01-19 08:31:08 +000025157echo "$as_me:$LINENO: checking for sin in -lm" >&5
25158echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25159if test "${ac_cv_lib_m_sin+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162 ac_check_lib_save_LIBS=$LIBS
25163LIBS="-lm $LIBS"
25164cat >conftest.$ac_ext <<_ACEOF
25165/* confdefs.h. */
25166_ACEOF
25167cat confdefs.h >>conftest.$ac_ext
25168cat >>conftest.$ac_ext <<_ACEOF
25169/* end confdefs.h. */
25170
25171/* Override any gcc2 internal prototype to avoid an error. */
25172#ifdef __cplusplus
25173extern "C"
25174#endif
25175/* We use char because int might match the return type of a gcc2
25176 builtin and then its argument prototype would still apply. */
25177char sin ();
25178int
25179main ()
25180{
25181sin ();
25182 ;
25183 return 0;
25184}
25185_ACEOF
25186rm -f conftest.$ac_objext conftest$ac_exeext
25187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188 (eval $ac_link) 2>conftest.er1
25189 ac_status=$?
25190 grep -v '^ *+' conftest.er1 >conftest.err
25191 rm -f conftest.er1
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
25195 { ac_try='test -z "$ac_c_werror_flag"
25196 || test ! -s conftest.err'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest$ac_exeext'
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_lib_m_sin=yes
25209else
25210 echo "$as_me: failed program was:" >&5
25211sed 's/^/| /' conftest.$ac_ext >&5
25212
25213ac_cv_lib_m_sin=no
25214fi
25215rm -f conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
25217LIBS=$ac_check_lib_save_LIBS
25218fi
25219echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25220echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25221if test $ac_cv_lib_m_sin = yes; then
25222 cat >>confdefs.h <<_ACEOF
25223#define HAVE_LIBM 1
25224_ACEOF
25225
25226 LIBS="-lm $LIBS"
25227
25228fi
25229
Reid Spencer484fc8e2006-06-01 16:55:59 +000025230if test "$llvm_cv_os_type" == "MingW" ; then
25231
Reid Spencer48fdf912006-06-01 19:03:21 +000025232echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25233echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25234if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025235 echo $ECHO_N "(cached) $ECHO_C" >&6
25236else
25237 ac_check_lib_save_LIBS=$LIBS
25238LIBS="-limagehlp $LIBS"
25239cat >conftest.$ac_ext <<_ACEOF
25240/* confdefs.h. */
25241_ACEOF
25242cat confdefs.h >>conftest.$ac_ext
25243cat >>conftest.$ac_ext <<_ACEOF
25244/* end confdefs.h. */
25245
Reid Spencer48fdf912006-06-01 19:03:21 +000025246
Reid Spencer484fc8e2006-06-01 16:55:59 +000025247int
25248main ()
25249{
Reid Spencer48fdf912006-06-01 19:03:21 +000025250main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025251 ;
25252 return 0;
25253}
25254_ACEOF
25255rm -f conftest.$ac_objext conftest$ac_exeext
25256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257 (eval $ac_link) 2>conftest.er1
25258 ac_status=$?
25259 grep -v '^ *+' conftest.er1 >conftest.err
25260 rm -f conftest.er1
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
25264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025277 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025278else
25279 echo "$as_me: failed program was:" >&5
25280sed 's/^/| /' conftest.$ac_ext >&5
25281
Reid Spencer48fdf912006-06-01 19:03:21 +000025282ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025283fi
25284rm -f conftest.err conftest.$ac_objext \
25285 conftest$ac_exeext conftest.$ac_ext
25286LIBS=$ac_check_lib_save_LIBS
25287fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025288echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25289echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25290if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025291 cat >>confdefs.h <<_ACEOF
25292#define HAVE_LIBIMAGEHLP 1
25293_ACEOF
25294
25295 LIBS="-limagehlp $LIBS"
25296
25297fi
25298
25299
Reid Spencer48fdf912006-06-01 19:03:21 +000025300echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25301echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25302if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025303 echo $ECHO_N "(cached) $ECHO_C" >&6
25304else
25305 ac_check_lib_save_LIBS=$LIBS
25306LIBS="-lpsapi $LIBS"
25307cat >conftest.$ac_ext <<_ACEOF
25308/* confdefs.h. */
25309_ACEOF
25310cat confdefs.h >>conftest.$ac_ext
25311cat >>conftest.$ac_ext <<_ACEOF
25312/* end confdefs.h. */
25313
Reid Spencer48fdf912006-06-01 19:03:21 +000025314
Reid Spencer484fc8e2006-06-01 16:55:59 +000025315int
25316main ()
25317{
Reid Spencer48fdf912006-06-01 19:03:21 +000025318main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025319 ;
25320 return 0;
25321}
25322_ACEOF
25323rm -f conftest.$ac_objext conftest$ac_exeext
25324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25325 (eval $ac_link) 2>conftest.er1
25326 ac_status=$?
25327 grep -v '^ *+' conftest.er1 >conftest.err
25328 rm -f conftest.er1
25329 cat conftest.err >&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } &&
25332 { ac_try='test -z "$ac_c_werror_flag"
25333 || test ! -s conftest.err'
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; } &&
25339 { ac_try='test -s conftest$ac_exeext'
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025345 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025346else
25347 echo "$as_me: failed program was:" >&5
25348sed 's/^/| /' conftest.$ac_ext >&5
25349
Reid Spencer48fdf912006-06-01 19:03:21 +000025350ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025351fi
25352rm -f conftest.err conftest.$ac_objext \
25353 conftest$ac_exeext conftest.$ac_ext
25354LIBS=$ac_check_lib_save_LIBS
25355fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025356echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25357echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25358if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025359 cat >>confdefs.h <<_ACEOF
25360#define HAVE_LIBPSAPI 1
25361_ACEOF
25362
25363 LIBS="-lpsapi $LIBS"
25364
25365fi
25366
25367fi
Reid Spencer22177fe2005-07-12 15:24:20 +000025368
Reid Spencer17795972004-11-18 09:47:37 +000025369echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25370echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25371if test "${ac_cv_search_lt_dlopen+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25373else
25374 ac_func_search_save_LIBS=$LIBS
25375ac_cv_search_lt_dlopen=no
25376cat >conftest.$ac_ext <<_ACEOF
25377/* confdefs.h. */
25378_ACEOF
25379cat confdefs.h >>conftest.$ac_ext
25380cat >>conftest.$ac_ext <<_ACEOF
25381/* end confdefs.h. */
25382
25383/* Override any gcc2 internal prototype to avoid an error. */
25384#ifdef __cplusplus
25385extern "C"
25386#endif
25387/* We use char because int might match the return type of a gcc2
25388 builtin and then its argument prototype would still apply. */
25389char lt_dlopen ();
25390int
25391main ()
25392{
25393lt_dlopen ();
25394 ;
25395 return 0;
25396}
25397_ACEOF
25398rm -f conftest.$ac_objext conftest$ac_exeext
25399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25400 (eval $ac_link) 2>conftest.er1
25401 ac_status=$?
25402 grep -v '^ *+' conftest.er1 >conftest.err
25403 rm -f conftest.er1
25404 cat conftest.err >&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } &&
25407 { ac_try='test -z "$ac_c_werror_flag"
25408 || test ! -s conftest.err'
25409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; } &&
25414 { ac_try='test -s conftest$ac_exeext'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25417 ac_status=$?
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420 ac_cv_search_lt_dlopen="none required"
25421else
25422 echo "$as_me: failed program was:" >&5
25423sed 's/^/| /' conftest.$ac_ext >&5
25424
25425fi
25426rm -f conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
25428if test "$ac_cv_search_lt_dlopen" = no; then
25429 for ac_lib in ltdl; do
25430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25431 cat >conftest.$ac_ext <<_ACEOF
25432/* confdefs.h. */
25433_ACEOF
25434cat confdefs.h >>conftest.$ac_ext
25435cat >>conftest.$ac_ext <<_ACEOF
25436/* end confdefs.h. */
25437
25438/* Override any gcc2 internal prototype to avoid an error. */
25439#ifdef __cplusplus
25440extern "C"
25441#endif
25442/* We use char because int might match the return type of a gcc2
25443 builtin and then its argument prototype would still apply. */
25444char lt_dlopen ();
25445int
25446main ()
25447{
25448lt_dlopen ();
25449 ;
25450 return 0;
25451}
25452_ACEOF
25453rm -f conftest.$ac_objext conftest$ac_exeext
25454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455 (eval $ac_link) 2>conftest.er1
25456 ac_status=$?
25457 grep -v '^ *+' conftest.er1 >conftest.err
25458 rm -f conftest.er1
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } &&
25462 { ac_try='test -z "$ac_c_werror_flag"
25463 || test ! -s conftest.err'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; } &&
25469 { ac_try='test -s conftest$ac_exeext'
25470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); }; }; then
25475 ac_cv_search_lt_dlopen="-l$ac_lib"
25476break
25477else
25478 echo "$as_me: failed program was:" >&5
25479sed 's/^/| /' conftest.$ac_ext >&5
25480
25481fi
25482rm -f conftest.err conftest.$ac_objext \
25483 conftest$ac_exeext conftest.$ac_ext
25484 done
25485fi
25486LIBS=$ac_func_search_save_LIBS
25487fi
25488echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25489echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25490if test "$ac_cv_search_lt_dlopen" != no; then
25491 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25492
25493cat >>confdefs.h <<\_ACEOF
25494#define HAVE_LT_DLOPEN 1
25495_ACEOF
25496
25497else
25498 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25499 not be available" >&5
25500echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25501 not be available" >&2;}
25502fi
25503
25504
John Criswell7a73b802003-06-30 21:59:07 +000025505echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25506echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25507if test "${ac_cv_search_dlopen+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25509else
25510 ac_func_search_save_LIBS=$LIBS
25511ac_cv_search_dlopen=no
25512cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025513/* confdefs.h. */
25514_ACEOF
25515cat confdefs.h >>conftest.$ac_ext
25516cat >>conftest.$ac_ext <<_ACEOF
25517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025518
25519/* Override any gcc2 internal prototype to avoid an error. */
25520#ifdef __cplusplus
25521extern "C"
25522#endif
25523/* We use char because int might match the return type of a gcc2
25524 builtin and then its argument prototype would still apply. */
25525char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025526int
25527main ()
25528{
25529dlopen ();
25530 ;
25531 return 0;
25532}
25533_ACEOF
25534rm -f conftest.$ac_objext conftest$ac_exeext
25535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025536 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025543 { ac_try='test -z "$ac_c_werror_flag"
25544 || test ! -s conftest.err'
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; } &&
25550 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; }; then
25556 ac_cv_search_dlopen="none required"
25557else
25558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025559sed 's/^/| /' conftest.$ac_ext >&5
25560
John Criswell7a73b802003-06-30 21:59:07 +000025561fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025562rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025564if test "$ac_cv_search_dlopen" = no; then
25565 for ac_lib in dl; do
25566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25567 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025568/* confdefs.h. */
25569_ACEOF
25570cat confdefs.h >>conftest.$ac_ext
25571cat >>conftest.$ac_ext <<_ACEOF
25572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025573
25574/* Override any gcc2 internal prototype to avoid an error. */
25575#ifdef __cplusplus
25576extern "C"
25577#endif
25578/* We use char because int might match the return type of a gcc2
25579 builtin and then its argument prototype would still apply. */
25580char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025581int
25582main ()
25583{
25584dlopen ();
25585 ;
25586 return 0;
25587}
25588_ACEOF
25589rm -f conftest.$ac_objext conftest$ac_exeext
25590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025591 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025593 grep -v '^ *+' conftest.er1 >conftest.err
25594 rm -f conftest.er1
25595 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025598 { ac_try='test -z "$ac_c_werror_flag"
25599 || test ! -s conftest.err'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; } &&
25605 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_search_dlopen="-l$ac_lib"
25612break
25613else
25614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025615sed 's/^/| /' conftest.$ac_ext >&5
25616
John Criswell7a73b802003-06-30 21:59:07 +000025617fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025618rm -f conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025620 done
25621fi
25622LIBS=$ac_func_search_save_LIBS
25623fi
25624echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25625echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25626if test "$ac_cv_search_dlopen" != no; then
25627 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025628
25629cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025630#define HAVE_DLOPEN 1
25631_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025632
25633else
Brian Gaekec45be042003-10-07 06:01:34 +000025634 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25635echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025636fi
25637
25638
25639echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25640echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25641if test "${ac_cv_search_mallinfo+set}" = set; then
25642 echo $ECHO_N "(cached) $ECHO_C" >&6
25643else
25644 ac_func_search_save_LIBS=$LIBS
25645ac_cv_search_mallinfo=no
25646cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025647/* confdefs.h. */
25648_ACEOF
25649cat confdefs.h >>conftest.$ac_ext
25650cat >>conftest.$ac_ext <<_ACEOF
25651/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025652
25653/* Override any gcc2 internal prototype to avoid an error. */
25654#ifdef __cplusplus
25655extern "C"
25656#endif
25657/* We use char because int might match the return type of a gcc2
25658 builtin and then its argument prototype would still apply. */
25659char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025660int
25661main ()
25662{
25663mallinfo ();
25664 ;
25665 return 0;
25666}
25667_ACEOF
25668rm -f conftest.$ac_objext conftest$ac_exeext
25669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025670 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025672 grep -v '^ *+' conftest.er1 >conftest.err
25673 rm -f conftest.er1
25674 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025677 { ac_try='test -z "$ac_c_werror_flag"
25678 || test ! -s conftest.err'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; } &&
25684 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_search_mallinfo="none required"
25691else
25692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025693sed 's/^/| /' conftest.$ac_ext >&5
25694
John Criswell7a73b802003-06-30 21:59:07 +000025695fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025696rm -f conftest.err conftest.$ac_objext \
25697 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025698if test "$ac_cv_search_mallinfo" = no; then
25699 for ac_lib in malloc; do
25700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25701 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025702/* confdefs.h. */
25703_ACEOF
25704cat confdefs.h >>conftest.$ac_ext
25705cat >>conftest.$ac_ext <<_ACEOF
25706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025707
25708/* Override any gcc2 internal prototype to avoid an error. */
25709#ifdef __cplusplus
25710extern "C"
25711#endif
25712/* We use char because int might match the return type of a gcc2
25713 builtin and then its argument prototype would still apply. */
25714char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025715int
25716main ()
25717{
25718mallinfo ();
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723rm -f conftest.$ac_objext conftest$ac_exeext
25724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025725 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025727 grep -v '^ *+' conftest.er1 >conftest.err
25728 rm -f conftest.er1
25729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025732 { ac_try='test -z "$ac_c_werror_flag"
25733 || test ! -s conftest.err'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_search_mallinfo="-l$ac_lib"
25746break
25747else
25748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025749sed 's/^/| /' conftest.$ac_ext >&5
25750
John Criswell7a73b802003-06-30 21:59:07 +000025751fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025752rm -f conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025754 done
25755fi
25756LIBS=$ac_func_search_save_LIBS
25757fi
25758echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25759echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25760if test "$ac_cv_search_mallinfo" != no; then
25761 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025762
25763cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025764#define HAVE_MALLINFO 1
25765_ACEOF
25766
25767fi
25768
25769
Reid Spencer0a262ba2005-08-24 10:07:20 +000025770if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025771
25772echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25773echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25774if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25776else
25777 ac_check_lib_save_LIBS=$LIBS
25778LIBS="-lpthread $LIBS"
25779cat >conftest.$ac_ext <<_ACEOF
25780/* confdefs.h. */
25781_ACEOF
25782cat confdefs.h >>conftest.$ac_ext
25783cat >>conftest.$ac_ext <<_ACEOF
25784/* end confdefs.h. */
25785
25786/* Override any gcc2 internal prototype to avoid an error. */
25787#ifdef __cplusplus
25788extern "C"
25789#endif
25790/* We use char because int might match the return type of a gcc2
25791 builtin and then its argument prototype would still apply. */
25792char pthread_mutex_init ();
25793int
25794main ()
25795{
25796pthread_mutex_init ();
25797 ;
25798 return 0;
25799}
25800_ACEOF
25801rm -f conftest.$ac_objext conftest$ac_exeext
25802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803 (eval $ac_link) 2>conftest.er1
25804 ac_status=$?
25805 grep -v '^ *+' conftest.er1 >conftest.err
25806 rm -f conftest.er1
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } &&
25810 { ac_try='test -z "$ac_c_werror_flag"
25811 || test ! -s conftest.err'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; } &&
25817 { ac_try='test -s conftest$ac_exeext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
25823 ac_cv_lib_pthread_pthread_mutex_init=yes
25824else
25825 echo "$as_me: failed program was:" >&5
25826sed 's/^/| /' conftest.$ac_ext >&5
25827
25828ac_cv_lib_pthread_pthread_mutex_init=no
25829fi
25830rm -f conftest.err conftest.$ac_objext \
25831 conftest$ac_exeext conftest.$ac_ext
25832LIBS=$ac_check_lib_save_LIBS
25833fi
25834echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25835echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25836if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25837 cat >>confdefs.h <<_ACEOF
25838#define HAVE_LIBPTHREAD 1
25839_ACEOF
25840
25841 LIBS="-lpthread $LIBS"
25842
25843fi
25844
Reid Spencer0a262ba2005-08-24 10:07:20 +000025845 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025846echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25847if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25849else
25850 ac_func_search_save_LIBS=$LIBS
25851ac_cv_search_pthread_mutex_lock=no
25852cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025853/* confdefs.h. */
25854_ACEOF
25855cat confdefs.h >>conftest.$ac_ext
25856cat >>conftest.$ac_ext <<_ACEOF
25857/* end confdefs.h. */
25858
25859/* Override any gcc2 internal prototype to avoid an error. */
25860#ifdef __cplusplus
25861extern "C"
25862#endif
25863/* We use char because int might match the return type of a gcc2
25864 builtin and then its argument prototype would still apply. */
25865char pthread_mutex_lock ();
25866int
25867main ()
25868{
25869pthread_mutex_lock ();
25870 ;
25871 return 0;
25872}
25873_ACEOF
25874rm -f conftest.$ac_objext conftest$ac_exeext
25875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025876 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025877 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025878 grep -v '^ *+' conftest.er1 >conftest.err
25879 rm -f conftest.er1
25880 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025883 { ac_try='test -z "$ac_c_werror_flag"
25884 || test ! -s conftest.err'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; } &&
25890 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; }; then
25896 ac_cv_search_pthread_mutex_lock="none required"
25897else
25898 echo "$as_me: failed program was:" >&5
25899sed 's/^/| /' conftest.$ac_ext >&5
25900
25901fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025902rm -f conftest.err conftest.$ac_objext \
25903 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025904if test "$ac_cv_search_pthread_mutex_lock" = no; then
25905 for ac_lib in pthread; do
25906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25907 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
25913
25914/* Override any gcc2 internal prototype to avoid an error. */
25915#ifdef __cplusplus
25916extern "C"
25917#endif
25918/* We use char because int might match the return type of a gcc2
25919 builtin and then its argument prototype would still apply. */
25920char pthread_mutex_lock ();
25921int
25922main ()
25923{
25924pthread_mutex_lock ();
25925 ;
25926 return 0;
25927}
25928_ACEOF
25929rm -f conftest.$ac_objext conftest$ac_exeext
25930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025931 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025932 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025933 grep -v '^ *+' conftest.er1 >conftest.err
25934 rm -f conftest.er1
25935 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025938 { ac_try='test -z "$ac_c_werror_flag"
25939 || test ! -s conftest.err'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25952break
25953else
25954 echo "$as_me: failed program was:" >&5
25955sed 's/^/| /' conftest.$ac_ext >&5
25956
25957fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025958rm -f conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025960 done
25961fi
25962LIBS=$ac_func_search_save_LIBS
25963fi
25964echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25965echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25966if test "$ac_cv_search_pthread_mutex_lock" != no; then
25967 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025968
John Criswell40468462004-09-24 21:19:06 +000025969cat >>confdefs.h <<\_ACEOF
25970#define HAVE_PTHREAD_MUTEX_LOCK 1
25971_ACEOF
25972
25973fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025974
Reid Spencer0a262ba2005-08-24 10:07:20 +000025975fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025976
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025977
Reid Spencer59473af2004-12-25 07:31:29 +000025978
25979
25980
25981
25982
25983ac_header_dirent=no
25984for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25985 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25986echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25987echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25988if eval "test \"\${$as_ac_Header+set}\" = set"; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25990else
25991 cat >conftest.$ac_ext <<_ACEOF
25992/* confdefs.h. */
25993_ACEOF
25994cat confdefs.h >>conftest.$ac_ext
25995cat >>conftest.$ac_ext <<_ACEOF
25996/* end confdefs.h. */
25997#include <sys/types.h>
25998#include <$ac_hdr>
25999
26000int
26001main ()
26002{
26003if ((DIR *) 0)
26004return 0;
26005 ;
26006 return 0;
26007}
26008_ACEOF
26009rm -f conftest.$ac_objext
26010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011 (eval $ac_compile) 2>conftest.er1
26012 ac_status=$?
26013 grep -v '^ *+' conftest.er1 >conftest.err
26014 rm -f conftest.er1
26015 cat conftest.err >&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); } &&
26018 { ac_try='test -z "$ac_c_werror_flag"
26019 || test ! -s conftest.err'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest.$ac_objext'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 eval "$as_ac_Header=yes"
26032else
26033 echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
26036eval "$as_ac_Header=no"
26037fi
26038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26039fi
26040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26042if test `eval echo '${'$as_ac_Header'}'` = yes; then
26043 cat >>confdefs.h <<_ACEOF
26044#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26045_ACEOF
26046
26047ac_header_dirent=$ac_hdr; break
26048fi
26049
26050done
26051# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26052if test $ac_header_dirent = dirent.h; then
26053 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26054echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26055if test "${ac_cv_search_opendir+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26057else
26058 ac_func_search_save_LIBS=$LIBS
26059ac_cv_search_opendir=no
26060cat >conftest.$ac_ext <<_ACEOF
26061/* confdefs.h. */
26062_ACEOF
26063cat confdefs.h >>conftest.$ac_ext
26064cat >>conftest.$ac_ext <<_ACEOF
26065/* end confdefs.h. */
26066
26067/* Override any gcc2 internal prototype to avoid an error. */
26068#ifdef __cplusplus
26069extern "C"
26070#endif
26071/* We use char because int might match the return type of a gcc2
26072 builtin and then its argument prototype would still apply. */
26073char opendir ();
26074int
26075main ()
26076{
26077opendir ();
26078 ;
26079 return 0;
26080}
26081_ACEOF
26082rm -f conftest.$ac_objext conftest$ac_exeext
26083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084 (eval $ac_link) 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest$ac_exeext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_cv_search_opendir="none required"
26105else
26106 echo "$as_me: failed program was:" >&5
26107sed 's/^/| /' conftest.$ac_ext >&5
26108
26109fi
26110rm -f conftest.err conftest.$ac_objext \
26111 conftest$ac_exeext conftest.$ac_ext
26112if test "$ac_cv_search_opendir" = no; then
26113 for ac_lib in dir; do
26114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26115 cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121
26122/* Override any gcc2 internal prototype to avoid an error. */
26123#ifdef __cplusplus
26124extern "C"
26125#endif
26126/* We use char because int might match the return type of a gcc2
26127 builtin and then its argument prototype would still apply. */
26128char opendir ();
26129int
26130main ()
26131{
26132opendir ();
26133 ;
26134 return 0;
26135}
26136_ACEOF
26137rm -f conftest.$ac_objext conftest$ac_exeext
26138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26139 (eval $ac_link) 2>conftest.er1
26140 ac_status=$?
26141 grep -v '^ *+' conftest.er1 >conftest.err
26142 rm -f conftest.er1
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } &&
26146 { ac_try='test -z "$ac_c_werror_flag"
26147 || test ! -s conftest.err'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; } &&
26153 { ac_try='test -s conftest$ac_exeext'
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; }; then
26159 ac_cv_search_opendir="-l$ac_lib"
26160break
26161else
26162 echo "$as_me: failed program was:" >&5
26163sed 's/^/| /' conftest.$ac_ext >&5
26164
26165fi
26166rm -f conftest.err conftest.$ac_objext \
26167 conftest$ac_exeext conftest.$ac_ext
26168 done
26169fi
26170LIBS=$ac_func_search_save_LIBS
26171fi
26172echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26173echo "${ECHO_T}$ac_cv_search_opendir" >&6
26174if test "$ac_cv_search_opendir" != no; then
26175 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26176
26177fi
26178
26179else
26180 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26181echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26182if test "${ac_cv_search_opendir+set}" = set; then
26183 echo $ECHO_N "(cached) $ECHO_C" >&6
26184else
26185 ac_func_search_save_LIBS=$LIBS
26186ac_cv_search_opendir=no
26187cat >conftest.$ac_ext <<_ACEOF
26188/* confdefs.h. */
26189_ACEOF
26190cat confdefs.h >>conftest.$ac_ext
26191cat >>conftest.$ac_ext <<_ACEOF
26192/* end confdefs.h. */
26193
26194/* Override any gcc2 internal prototype to avoid an error. */
26195#ifdef __cplusplus
26196extern "C"
26197#endif
26198/* We use char because int might match the return type of a gcc2
26199 builtin and then its argument prototype would still apply. */
26200char opendir ();
26201int
26202main ()
26203{
26204opendir ();
26205 ;
26206 return 0;
26207}
26208_ACEOF
26209rm -f conftest.$ac_objext conftest$ac_exeext
26210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26211 (eval $ac_link) 2>conftest.er1
26212 ac_status=$?
26213 grep -v '^ *+' conftest.er1 >conftest.err
26214 rm -f conftest.er1
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } &&
26218 { ac_try='test -z "$ac_c_werror_flag"
26219 || test ! -s conftest.err'
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; } &&
26225 { ac_try='test -s conftest$ac_exeext'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; }; then
26231 ac_cv_search_opendir="none required"
26232else
26233 echo "$as_me: failed program was:" >&5
26234sed 's/^/| /' conftest.$ac_ext >&5
26235
26236fi
26237rm -f conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
26239if test "$ac_cv_search_opendir" = no; then
26240 for ac_lib in x; do
26241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26242 cat >conftest.$ac_ext <<_ACEOF
26243/* confdefs.h. */
26244_ACEOF
26245cat confdefs.h >>conftest.$ac_ext
26246cat >>conftest.$ac_ext <<_ACEOF
26247/* end confdefs.h. */
26248
26249/* Override any gcc2 internal prototype to avoid an error. */
26250#ifdef __cplusplus
26251extern "C"
26252#endif
26253/* We use char because int might match the return type of a gcc2
26254 builtin and then its argument prototype would still apply. */
26255char opendir ();
26256int
26257main ()
26258{
26259opendir ();
26260 ;
26261 return 0;
26262}
26263_ACEOF
26264rm -f conftest.$ac_objext conftest$ac_exeext
26265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26266 (eval $ac_link) 2>conftest.er1
26267 ac_status=$?
26268 grep -v '^ *+' conftest.er1 >conftest.err
26269 rm -f conftest.er1
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } &&
26273 { ac_try='test -z "$ac_c_werror_flag"
26274 || test ! -s conftest.err'
26275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26276 (eval $ac_try) 2>&5
26277 ac_status=$?
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); }; } &&
26280 { ac_try='test -s conftest$ac_exeext'
26281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26282 (eval $ac_try) 2>&5
26283 ac_status=$?
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); }; }; then
26286 ac_cv_search_opendir="-l$ac_lib"
26287break
26288else
26289 echo "$as_me: failed program was:" >&5
26290sed 's/^/| /' conftest.$ac_ext >&5
26291
26292fi
26293rm -f conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
26295 done
26296fi
26297LIBS=$ac_func_search_save_LIBS
26298fi
26299echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26300echo "${ECHO_T}$ac_cv_search_opendir" >&6
26301if test "$ac_cv_search_opendir" != no; then
26302 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26303
26304fi
26305
26306fi
26307
26308echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26309echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26310if test "${ac_cv_header_mmap_anon+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26312else
26313 ac_ext=c
26314ac_cpp='$CPP $CPPFLAGS'
26315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317ac_compiler_gnu=$ac_cv_c_compiler_gnu
26318
26319 cat >conftest.$ac_ext <<_ACEOF
26320/* confdefs.h. */
26321_ACEOF
26322cat confdefs.h >>conftest.$ac_ext
26323cat >>conftest.$ac_ext <<_ACEOF
26324/* end confdefs.h. */
26325#include <sys/mman.h>
26326#include <unistd.h>
26327#include <fcntl.h>
26328int
26329main ()
26330{
26331mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26332 ;
26333 return 0;
26334}
26335_ACEOF
26336rm -f conftest.$ac_objext
26337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338 (eval $ac_compile) 2>conftest.er1
26339 ac_status=$?
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 ac_cv_header_mmap_anon=yes
26359else
26360 echo "$as_me: failed program was:" >&5
26361sed 's/^/| /' conftest.$ac_ext >&5
26362
26363ac_cv_header_mmap_anon=no
26364fi
26365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26366 ac_ext=c
26367ac_cpp='$CPP $CPPFLAGS'
26368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26370ac_compiler_gnu=$ac_cv_c_compiler_gnu
26371
26372
26373fi
26374echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26375echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26376if test "$ac_cv_header_mmap_anon" = yes; then
26377
26378cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026379#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026380_ACEOF
26381
26382fi
26383
26384echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26385echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26386if test "${ac_cv_header_stat_broken+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26388else
26389 cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h. */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h. */
26395#include <sys/types.h>
26396#include <sys/stat.h>
26397
26398#if defined(S_ISBLK) && defined(S_IFDIR)
26399# if S_ISBLK (S_IFDIR)
26400You lose.
26401# endif
26402#endif
26403
26404#if defined(S_ISBLK) && defined(S_IFCHR)
26405# if S_ISBLK (S_IFCHR)
26406You lose.
26407# endif
26408#endif
26409
26410#if defined(S_ISLNK) && defined(S_IFREG)
26411# if S_ISLNK (S_IFREG)
26412You lose.
26413# endif
26414#endif
26415
26416#if defined(S_ISSOCK) && defined(S_IFREG)
26417# if S_ISSOCK (S_IFREG)
26418You lose.
26419# endif
26420#endif
26421
26422_ACEOF
26423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26424 $EGREP "You lose" >/dev/null 2>&1; then
26425 ac_cv_header_stat_broken=yes
26426else
26427 ac_cv_header_stat_broken=no
26428fi
26429rm -f conftest*
26430
26431fi
26432echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26433echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26434if test $ac_cv_header_stat_broken = yes; then
26435
26436cat >>confdefs.h <<\_ACEOF
26437#define STAT_MACROS_BROKEN 1
26438_ACEOF
26439
26440fi
26441
John Criswell7a73b802003-06-30 21:59:07 +000026442echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26443echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26444if test "${ac_cv_header_stdc+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26446else
26447 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026448/* confdefs.h. */
26449_ACEOF
26450cat confdefs.h >>conftest.$ac_ext
26451cat >>conftest.$ac_ext <<_ACEOF
26452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026453#include <stdlib.h>
26454#include <stdarg.h>
26455#include <string.h>
26456#include <float.h>
26457
John Criswell0c38eaf2003-09-10 15:17:25 +000026458int
26459main ()
26460{
26461
26462 ;
26463 return 0;
26464}
John Criswell7a73b802003-06-30 21:59:07 +000026465_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026466rm -f conftest.$ac_objext
26467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026468 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026470 grep -v '^ *+' conftest.er1 >conftest.err
26471 rm -f conftest.er1
26472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026474 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026475 { ac_try='test -z "$ac_c_werror_flag"
26476 || test ! -s conftest.err'
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; } &&
26482 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026488 ac_cv_header_stdc=yes
26489else
26490 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026491sed 's/^/| /' conftest.$ac_ext >&5
26492
26493ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026494fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026496
26497if test $ac_cv_header_stdc = yes; then
26498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026505#include <string.h>
26506
26507_ACEOF
26508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026509 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026510 :
26511else
26512 ac_cv_header_stdc=no
26513fi
26514rm -f conftest*
26515
26516fi
26517
26518if test $ac_cv_header_stdc = yes; then
26519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026526#include <stdlib.h>
26527
26528_ACEOF
26529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026530 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026531 :
26532else
26533 ac_cv_header_stdc=no
26534fi
26535rm -f conftest*
26536
26537fi
26538
26539if test $ac_cv_header_stdc = yes; then
26540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26541 if test "$cross_compiling" = yes; then
26542 :
26543else
26544 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026545/* confdefs.h. */
26546_ACEOF
26547cat confdefs.h >>conftest.$ac_ext
26548cat >>conftest.$ac_ext <<_ACEOF
26549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026550#include <ctype.h>
26551#if ((' ' & 0x0FF) == 0x020)
26552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26554#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026555# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026556 (('a' <= (c) && (c) <= 'i') \
26557 || ('j' <= (c) && (c) <= 'r') \
26558 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26560#endif
26561
26562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26563int
26564main ()
26565{
26566 int i;
26567 for (i = 0; i < 256; i++)
26568 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026569 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026570 exit(2);
26571 exit (0);
26572}
26573_ACEOF
26574rm -f conftest$ac_exeext
26575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26576 (eval $ac_link) 2>&5
26577 ac_status=$?
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581 (eval $ac_try) 2>&5
26582 ac_status=$?
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; }; then
26585 :
26586else
26587 echo "$as_me: program exited with status $ac_status" >&5
26588echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026589sed 's/^/| /' conftest.$ac_ext >&5
26590
John Criswell7a73b802003-06-30 21:59:07 +000026591( exit $ac_status )
26592ac_cv_header_stdc=no
26593fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026595fi
26596fi
26597fi
26598echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26599echo "${ECHO_T}$ac_cv_header_stdc" >&6
26600if test $ac_cv_header_stdc = yes; then
26601
26602cat >>confdefs.h <<\_ACEOF
26603#define STDC_HEADERS 1
26604_ACEOF
26605
26606fi
26607
26608echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26609echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26610if test "${ac_cv_header_sys_wait_h+set}" = set; then
26611 echo $ECHO_N "(cached) $ECHO_C" >&6
26612else
26613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026614/* confdefs.h. */
26615_ACEOF
26616cat confdefs.h >>conftest.$ac_ext
26617cat >>conftest.$ac_ext <<_ACEOF
26618/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026619#include <sys/types.h>
26620#include <sys/wait.h>
26621#ifndef WEXITSTATUS
26622# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26623#endif
26624#ifndef WIFEXITED
26625# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26626#endif
26627
John Criswell7a73b802003-06-30 21:59:07 +000026628int
26629main ()
26630{
26631 int s;
26632 wait (&s);
26633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26634 ;
26635 return 0;
26636}
26637_ACEOF
26638rm -f conftest.$ac_objext
26639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026640 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026642 grep -v '^ *+' conftest.er1 >conftest.err
26643 rm -f conftest.er1
26644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026647 { ac_try='test -z "$ac_c_werror_flag"
26648 || test ! -s conftest.err'
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; } &&
26654 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; }; then
26660 ac_cv_header_sys_wait_h=yes
26661else
26662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026663sed 's/^/| /' conftest.$ac_ext >&5
26664
John Criswell7a73b802003-06-30 21:59:07 +000026665ac_cv_header_sys_wait_h=no
26666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026668fi
26669echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26670echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26671if test $ac_cv_header_sys_wait_h = yes; then
26672
26673cat >>confdefs.h <<\_ACEOF
26674#define HAVE_SYS_WAIT_H 1
26675_ACEOF
26676
26677fi
26678
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026679echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26680echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26681if test "${ac_cv_header_time+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26683else
26684 cat >conftest.$ac_ext <<_ACEOF
26685/* confdefs.h. */
26686_ACEOF
26687cat confdefs.h >>conftest.$ac_ext
26688cat >>conftest.$ac_ext <<_ACEOF
26689/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026690#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026691#include <sys/time.h>
26692#include <time.h>
26693
26694int
26695main ()
26696{
26697if ((struct tm *) 0)
26698return 0;
26699 ;
26700 return 0;
26701}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026702_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026703rm -f conftest.$ac_objext
26704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26705 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026706 ac_status=$?
26707 grep -v '^ *+' conftest.er1 >conftest.err
26708 rm -f conftest.er1
26709 cat conftest.err >&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026711 (exit $ac_status); } &&
26712 { ac_try='test -z "$ac_c_werror_flag"
26713 || test ! -s conftest.err'
26714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26716 ac_status=$?
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; } &&
26719 { ac_try='test -s conftest.$ac_objext'
26720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721 (eval $ac_try) 2>&5
26722 ac_status=$?
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; }; then
26725 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026726else
26727 echo "$as_me: failed program was:" >&5
26728sed 's/^/| /' conftest.$ac_ext >&5
26729
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026730ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026731fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26733fi
26734echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26735echo "${ECHO_T}$ac_cv_header_time" >&6
26736if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026737
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026738cat >>confdefs.h <<\_ACEOF
26739#define TIME_WITH_SYS_TIME 1
26740_ACEOF
26741
26742fi
26743
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026744
Reid Spencer59473af2004-12-25 07:31:29 +000026745
26746
26747
26748
26749
26750
26751for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26752do
26753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759fi
26760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26762else
26763 # Is the header compilable?
26764echo "$as_me:$LINENO: checking $ac_header usability" >&5
26765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26766cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026767/* confdefs.h. */
26768_ACEOF
26769cat confdefs.h >>conftest.$ac_ext
26770cat >>conftest.$ac_ext <<_ACEOF
26771/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026772$ac_includes_default
26773#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026774_ACEOF
26775rm -f conftest.$ac_objext
26776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26777 (eval $ac_compile) 2>conftest.er1
26778 ac_status=$?
26779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } &&
26784 { ac_try='test -z "$ac_c_werror_flag"
26785 || test ! -s conftest.err'
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; } &&
26791 { ac_try='test -s conftest.$ac_objext'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026797 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026798else
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
Reid Spencer59473af2004-12-25 07:31:29 +000026802ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026803fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026807
Reid Spencer59473af2004-12-25 07:31:29 +000026808# Is the header present?
26809echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26811cat >conftest.$ac_ext <<_ACEOF
26812/* confdefs.h. */
26813_ACEOF
26814cat confdefs.h >>conftest.$ac_ext
26815cat >>conftest.$ac_ext <<_ACEOF
26816/* end confdefs.h. */
26817#include <$ac_header>
26818_ACEOF
26819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26821 ac_status=$?
26822 grep -v '^ *+' conftest.er1 >conftest.err
26823 rm -f conftest.er1
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } >/dev/null; then
26827 if test -s conftest.err; then
26828 ac_cpp_err=$ac_c_preproc_warn_flag
26829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26830 else
26831 ac_cpp_err=
26832 fi
26833else
26834 ac_cpp_err=yes
26835fi
26836if test -z "$ac_cpp_err"; then
26837 ac_header_preproc=yes
26838else
26839 echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842 ac_header_preproc=no
26843fi
26844rm -f conftest.err conftest.$ac_ext
26845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26846echo "${ECHO_T}$ac_header_preproc" >&6
26847
26848# So? What about this header?
26849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26850 yes:no: )
26851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26855 ac_header_preproc=yes
26856 ;;
26857 no:yes:* )
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870 (
26871 cat <<\_ASBOX
26872## ----------------------------------- ##
26873## Report this to llvmbugs@cs.uiuc.edu ##
26874## ----------------------------------- ##
26875_ASBOX
26876 ) |
26877 sed "s/^/$as_me: WARNING: /" >&2
26878 ;;
26879esac
26880echo "$as_me:$LINENO: checking for $ac_header" >&5
26881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26882if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26884else
26885 eval "$as_ac_Header=\$ac_header_preproc"
26886fi
26887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026889
26890fi
Reid Spencer59473af2004-12-25 07:31:29 +000026891if test `eval echo '${'$as_ac_Header'}'` = yes; then
26892 cat >>confdefs.h <<_ACEOF
26893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026894_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026895
26896fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026897
Reid Spencer59473af2004-12-25 07:31:29 +000026898done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026900
26901
Reid Spencer59473af2004-12-25 07:31:29 +000026902
26903
26904
26905
Reid Spencercdb08a32006-06-05 16:11:07 +000026906for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000026907do
26908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26909if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910 echo "$as_me:$LINENO: checking for $ac_header" >&5
26911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26912if eval "test \"\${$as_ac_Header+set}\" = set"; then
26913 echo $ECHO_N "(cached) $ECHO_C" >&6
26914fi
26915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26917else
26918 # Is the header compilable?
26919echo "$as_me:$LINENO: checking $ac_header usability" >&5
26920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26921cat >conftest.$ac_ext <<_ACEOF
26922/* confdefs.h. */
26923_ACEOF
26924cat confdefs.h >>conftest.$ac_ext
26925cat >>conftest.$ac_ext <<_ACEOF
26926/* end confdefs.h. */
26927$ac_includes_default
26928#include <$ac_header>
26929_ACEOF
26930rm -f conftest.$ac_objext
26931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26932 (eval $ac_compile) 2>conftest.er1
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag"
26940 || test ! -s conftest.err'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26943 ac_status=$?
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; } &&
26946 { ac_try='test -s conftest.$ac_objext'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26949 ac_status=$?
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; }; then
26952 ac_header_compiler=yes
26953else
26954 echo "$as_me: failed program was:" >&5
26955sed 's/^/| /' conftest.$ac_ext >&5
26956
26957ac_header_compiler=no
26958fi
26959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26961echo "${ECHO_T}$ac_header_compiler" >&6
26962
26963# Is the header present?
26964echo "$as_me:$LINENO: checking $ac_header presence" >&5
26965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26966cat >conftest.$ac_ext <<_ACEOF
26967/* confdefs.h. */
26968_ACEOF
26969cat confdefs.h >>conftest.$ac_ext
26970cat >>conftest.$ac_ext <<_ACEOF
26971/* end confdefs.h. */
26972#include <$ac_header>
26973_ACEOF
26974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26976 ac_status=$?
26977 grep -v '^ *+' conftest.er1 >conftest.err
26978 rm -f conftest.er1
26979 cat conftest.err >&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } >/dev/null; then
26982 if test -s conftest.err; then
26983 ac_cpp_err=$ac_c_preproc_warn_flag
26984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26985 else
26986 ac_cpp_err=
26987 fi
26988else
26989 ac_cpp_err=yes
26990fi
26991if test -z "$ac_cpp_err"; then
26992 ac_header_preproc=yes
26993else
26994 echo "$as_me: failed program was:" >&5
26995sed 's/^/| /' conftest.$ac_ext >&5
26996
26997 ac_header_preproc=no
26998fi
26999rm -f conftest.err conftest.$ac_ext
27000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27001echo "${ECHO_T}$ac_header_preproc" >&6
27002
27003# So? What about this header?
27004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27005 yes:no: )
27006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27010 ac_header_preproc=yes
27011 ;;
27012 no:yes:* )
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27025 (
27026 cat <<\_ASBOX
27027## ----------------------------------- ##
27028## Report this to llvmbugs@cs.uiuc.edu ##
27029## ----------------------------------- ##
27030_ASBOX
27031 ) |
27032 sed "s/^/$as_me: WARNING: /" >&2
27033 ;;
27034esac
27035echo "$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
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27039else
27040 eval "$as_ac_Header=\$ac_header_preproc"
27041fi
27042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27044
27045fi
27046if test `eval echo '${'$as_ac_Header'}'` = yes; then
27047 cat >>confdefs.h <<_ACEOF
27048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27049_ACEOF
27050
27051fi
27052
27053done
27054
27055
27056
27057
27058
27059
Reid Spencercdb08a32006-06-05 16:11:07 +000027060for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027061do
27062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27063if eval "test \"\${$as_ac_Header+set}\" = set"; then
27064 echo "$as_me:$LINENO: checking for $ac_header" >&5
27065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27066if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027067 echo $ECHO_N "(cached) $ECHO_C" >&6
27068fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027071else
27072 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027073echo "$as_me:$LINENO: checking $ac_header usability" >&5
27074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027075cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027076/* confdefs.h. */
27077_ACEOF
27078cat confdefs.h >>conftest.$ac_ext
27079cat >>conftest.$ac_ext <<_ACEOF
27080/* end confdefs.h. */
27081$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027082#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027083_ACEOF
27084rm -f conftest.$ac_objext
27085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027086 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027088 grep -v '^ *+' conftest.er1 >conftest.err
27089 rm -f conftest.er1
27090 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027093 { ac_try='test -z "$ac_c_werror_flag"
27094 || test ! -s conftest.err'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; } &&
27100 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; }; then
27106 ac_header_compiler=yes
27107else
27108 echo "$as_me: failed program was:" >&5
27109sed 's/^/| /' conftest.$ac_ext >&5
27110
27111ac_header_compiler=no
27112fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27115echo "${ECHO_T}$ac_header_compiler" >&6
27116
27117# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027118echo "$as_me:$LINENO: checking $ac_header presence" >&5
27119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027120cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027126#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027127_ACEOF
27128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27130 ac_status=$?
27131 grep -v '^ *+' conftest.er1 >conftest.err
27132 rm -f conftest.er1
27133 cat conftest.err >&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); } >/dev/null; then
27136 if test -s conftest.err; then
27137 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000027138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027139 else
27140 ac_cpp_err=
27141 fi
27142else
27143 ac_cpp_err=yes
27144fi
27145if test -z "$ac_cpp_err"; then
27146 ac_header_preproc=yes
27147else
27148 echo "$as_me: failed program was:" >&5
27149sed 's/^/| /' conftest.$ac_ext >&5
27150
27151 ac_header_preproc=no
27152fi
27153rm -f conftest.err conftest.$ac_ext
27154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27155echo "${ECHO_T}$ac_header_preproc" >&6
27156
27157# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27159 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027164 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027165 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027166 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27170echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27174echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000027179 (
27180 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027181## ----------------------------------- ##
27182## Report this to llvmbugs@cs.uiuc.edu ##
27183## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027184_ASBOX
27185 ) |
27186 sed "s/^/$as_me: WARNING: /" >&2
27187 ;;
27188esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027189echo "$as_me:$LINENO: checking for $ac_header" >&5
27190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27191if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027194 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027195fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027198
27199fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027200if test `eval echo '${'$as_ac_Header'}'` = yes; then
27201 cat >>confdefs.h <<_ACEOF
27202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027203_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027204
27205fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027206
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027207done
27208
John Criswell7ed43ad2004-07-19 16:12:29 +000027209
Reid Spencercdb08a32006-06-05 16:11:07 +000027210
27211for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000027212do
27213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27214if eval "test \"\${$as_ac_Header+set}\" = set"; then
27215 echo "$as_me:$LINENO: checking for $ac_header" >&5
27216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27217if eval "test \"\${$as_ac_Header+set}\" = set"; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27219fi
27220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27222else
27223 # Is the header compilable?
27224echo "$as_me:$LINENO: checking $ac_header usability" >&5
27225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27226cat >conftest.$ac_ext <<_ACEOF
27227/* confdefs.h. */
27228_ACEOF
27229cat confdefs.h >>conftest.$ac_ext
27230cat >>conftest.$ac_ext <<_ACEOF
27231/* end confdefs.h. */
27232$ac_includes_default
27233#include <$ac_header>
27234_ACEOF
27235rm -f conftest.$ac_objext
27236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27237 (eval $ac_compile) 2>conftest.er1
27238 ac_status=$?
27239 grep -v '^ *+' conftest.er1 >conftest.err
27240 rm -f conftest.er1
27241 cat conftest.err >&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); } &&
27244 { ac_try='test -z "$ac_c_werror_flag"
27245 || test ! -s conftest.err'
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; } &&
27251 { ac_try='test -s conftest.$ac_objext'
27252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27253 (eval $ac_try) 2>&5
27254 ac_status=$?
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
27257 ac_header_compiler=yes
27258else
27259 echo "$as_me: failed program was:" >&5
27260sed 's/^/| /' conftest.$ac_ext >&5
27261
27262ac_header_compiler=no
27263fi
27264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27266echo "${ECHO_T}$ac_header_compiler" >&6
27267
27268# Is the header present?
27269echo "$as_me:$LINENO: checking $ac_header presence" >&5
27270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27271cat >conftest.$ac_ext <<_ACEOF
27272/* confdefs.h. */
27273_ACEOF
27274cat confdefs.h >>conftest.$ac_ext
27275cat >>conftest.$ac_ext <<_ACEOF
27276/* end confdefs.h. */
27277#include <$ac_header>
27278_ACEOF
27279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27281 ac_status=$?
27282 grep -v '^ *+' conftest.er1 >conftest.err
27283 rm -f conftest.er1
27284 cat conftest.err >&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); } >/dev/null; then
27287 if test -s conftest.err; then
27288 ac_cpp_err=$ac_c_preproc_warn_flag
27289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27290 else
27291 ac_cpp_err=
27292 fi
27293else
27294 ac_cpp_err=yes
27295fi
27296if test -z "$ac_cpp_err"; then
27297 ac_header_preproc=yes
27298else
27299 echo "$as_me: failed program was:" >&5
27300sed 's/^/| /' conftest.$ac_ext >&5
27301
27302 ac_header_preproc=no
27303fi
27304rm -f conftest.err conftest.$ac_ext
27305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27306echo "${ECHO_T}$ac_header_preproc" >&6
27307
27308# So? What about this header?
27309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27310 yes:no: )
27311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27315 ac_header_preproc=yes
27316 ;;
27317 no:yes:* )
27318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27330 (
27331 cat <<\_ASBOX
27332## ----------------------------------- ##
27333## Report this to llvmbugs@cs.uiuc.edu ##
27334## ----------------------------------- ##
27335_ASBOX
27336 ) |
27337 sed "s/^/$as_me: WARNING: /" >&2
27338 ;;
27339esac
27340echo "$as_me:$LINENO: checking for $ac_header" >&5
27341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27342if eval "test \"\${$as_ac_Header+set}\" = set"; then
27343 echo $ECHO_N "(cached) $ECHO_C" >&6
27344else
27345 eval "$as_ac_Header=\$ac_header_preproc"
27346fi
27347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27349
27350fi
27351if test `eval echo '${'$as_ac_Header'}'` = yes; then
27352 cat >>confdefs.h <<_ACEOF
27353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27354_ACEOF
27355
27356fi
27357
27358done
27359
Reid Spencer0a262ba2005-08-24 10:07:20 +000027360if test "$ENABLE_THREADS" -eq 1 ; then
27361
27362for ac_header in pthread.h
27363do
27364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27365if eval "test \"\${$as_ac_Header+set}\" = set"; then
27366 echo "$as_me:$LINENO: checking for $ac_header" >&5
27367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27368if eval "test \"\${$as_ac_Header+set}\" = set"; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
27370fi
27371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27373else
27374 # Is the header compilable?
27375echo "$as_me:$LINENO: checking $ac_header usability" >&5
27376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27377cat >conftest.$ac_ext <<_ACEOF
27378/* confdefs.h. */
27379_ACEOF
27380cat confdefs.h >>conftest.$ac_ext
27381cat >>conftest.$ac_ext <<_ACEOF
27382/* end confdefs.h. */
27383$ac_includes_default
27384#include <$ac_header>
27385_ACEOF
27386rm -f conftest.$ac_objext
27387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27388 (eval $ac_compile) 2>conftest.er1
27389 ac_status=$?
27390 grep -v '^ *+' conftest.er1 >conftest.err
27391 rm -f conftest.er1
27392 cat conftest.err >&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
27395 { ac_try='test -z "$ac_c_werror_flag"
27396 || test ! -s conftest.err'
27397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27399 ac_status=$?
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); }; } &&
27402 { ac_try='test -s conftest.$ac_objext'
27403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404 (eval $ac_try) 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
27408 ac_header_compiler=yes
27409else
27410 echo "$as_me: failed program was:" >&5
27411sed 's/^/| /' conftest.$ac_ext >&5
27412
27413ac_header_compiler=no
27414fi
27415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27417echo "${ECHO_T}$ac_header_compiler" >&6
27418
27419# Is the header present?
27420echo "$as_me:$LINENO: checking $ac_header presence" >&5
27421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27422cat >conftest.$ac_ext <<_ACEOF
27423/* confdefs.h. */
27424_ACEOF
27425cat confdefs.h >>conftest.$ac_ext
27426cat >>conftest.$ac_ext <<_ACEOF
27427/* end confdefs.h. */
27428#include <$ac_header>
27429_ACEOF
27430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27432 ac_status=$?
27433 grep -v '^ *+' conftest.er1 >conftest.err
27434 rm -f conftest.er1
27435 cat conftest.err >&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); } >/dev/null; then
27438 if test -s conftest.err; then
27439 ac_cpp_err=$ac_c_preproc_warn_flag
27440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27441 else
27442 ac_cpp_err=
27443 fi
27444else
27445 ac_cpp_err=yes
27446fi
27447if test -z "$ac_cpp_err"; then
27448 ac_header_preproc=yes
27449else
27450 echo "$as_me: failed program was:" >&5
27451sed 's/^/| /' conftest.$ac_ext >&5
27452
27453 ac_header_preproc=no
27454fi
27455rm -f conftest.err conftest.$ac_ext
27456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27457echo "${ECHO_T}$ac_header_preproc" >&6
27458
27459# So? What about this header?
27460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27461 yes:no: )
27462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27466 ac_header_preproc=yes
27467 ;;
27468 no:yes:* )
27469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27481 (
27482 cat <<\_ASBOX
27483## ----------------------------------- ##
27484## Report this to llvmbugs@cs.uiuc.edu ##
27485## ----------------------------------- ##
27486_ASBOX
27487 ) |
27488 sed "s/^/$as_me: WARNING: /" >&2
27489 ;;
27490esac
27491echo "$as_me:$LINENO: checking for $ac_header" >&5
27492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27493if eval "test \"\${$as_ac_Header+set}\" = set"; then
27494 echo $ECHO_N "(cached) $ECHO_C" >&6
27495else
27496 eval "$as_ac_Header=\$ac_header_preproc"
27497fi
27498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27500
27501fi
27502if test `eval echo '${'$as_ac_Header'}'` = yes; then
27503 cat >>confdefs.h <<_ACEOF
27504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27505_ACEOF
27506
27507fi
27508
27509done
27510
27511fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027512
27513
John Criswell7a73b802003-06-30 21:59:07 +000027514echo "$as_me:$LINENO: checking for pid_t" >&5
27515echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27516if test "${ac_cv_type_pid_t+set}" = set; then
27517 echo $ECHO_N "(cached) $ECHO_C" >&6
27518else
27519 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027520/* confdefs.h. */
27521_ACEOF
27522cat confdefs.h >>conftest.$ac_ext
27523cat >>conftest.$ac_ext <<_ACEOF
27524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027525$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027526int
27527main ()
27528{
27529if ((pid_t *) 0)
27530 return 0;
27531if (sizeof (pid_t))
27532 return 0;
27533 ;
27534 return 0;
27535}
27536_ACEOF
27537rm -f conftest.$ac_objext
27538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027539 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027541 grep -v '^ *+' conftest.er1 >conftest.err
27542 rm -f conftest.er1
27543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027546 { ac_try='test -z "$ac_c_werror_flag"
27547 || test ! -s conftest.err'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; } &&
27553 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 ac_cv_type_pid_t=yes
27560else
27561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027562sed 's/^/| /' conftest.$ac_ext >&5
27563
John Criswell7a73b802003-06-30 21:59:07 +000027564ac_cv_type_pid_t=no
27565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027567fi
27568echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27569echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27570if test $ac_cv_type_pid_t = yes; then
27571 :
27572else
27573
27574cat >>confdefs.h <<_ACEOF
27575#define pid_t int
27576_ACEOF
27577
27578fi
27579
27580echo "$as_me:$LINENO: checking for size_t" >&5
27581echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27582if test "${ac_cv_type_size_t+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584else
27585 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027586/* confdefs.h. */
27587_ACEOF
27588cat confdefs.h >>conftest.$ac_ext
27589cat >>conftest.$ac_ext <<_ACEOF
27590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027591$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027592int
27593main ()
27594{
27595if ((size_t *) 0)
27596 return 0;
27597if (sizeof (size_t))
27598 return 0;
27599 ;
27600 return 0;
27601}
27602_ACEOF
27603rm -f conftest.$ac_objext
27604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027605 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027606 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027607 grep -v '^ *+' conftest.er1 >conftest.err
27608 rm -f conftest.er1
27609 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027612 { ac_try='test -z "$ac_c_werror_flag"
27613 || test ! -s conftest.err'
27614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27615 (eval $ac_try) 2>&5
27616 ac_status=$?
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); }; } &&
27619 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621 (eval $ac_try) 2>&5
27622 ac_status=$?
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; }; then
27625 ac_cv_type_size_t=yes
27626else
27627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027628sed 's/^/| /' conftest.$ac_ext >&5
27629
John Criswell7a73b802003-06-30 21:59:07 +000027630ac_cv_type_size_t=no
27631fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027633fi
27634echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27635echo "${ECHO_T}$ac_cv_type_size_t" >&6
27636if test $ac_cv_type_size_t = yes; then
27637 :
27638else
27639
27640cat >>confdefs.h <<_ACEOF
27641#define size_t unsigned
27642_ACEOF
27643
27644fi
27645
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027646echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27647echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27648if test "${ac_cv_type_signal+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27650else
27651 cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657#include <sys/types.h>
27658#include <signal.h>
27659#ifdef signal
27660# undef signal
27661#endif
27662#ifdef __cplusplus
27663extern "C" void (*signal (int, void (*)(int)))(int);
27664#else
27665void (*signal ()) ();
27666#endif
27667
27668int
27669main ()
27670{
27671int i;
27672 ;
27673 return 0;
27674}
27675_ACEOF
27676rm -f conftest.$ac_objext
27677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27678 (eval $ac_compile) 2>conftest.er1
27679 ac_status=$?
27680 grep -v '^ *+' conftest.er1 >conftest.err
27681 rm -f conftest.er1
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag"
27686 || test ! -s conftest.err'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27689 ac_status=$?
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest.$ac_objext'
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; }; then
27698 ac_cv_type_signal=void
27699else
27700 echo "$as_me: failed program was:" >&5
27701sed 's/^/| /' conftest.$ac_ext >&5
27702
27703ac_cv_type_signal=int
27704fi
27705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27706fi
27707echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27708echo "${ECHO_T}$ac_cv_type_signal" >&6
27709
27710cat >>confdefs.h <<_ACEOF
27711#define RETSIGTYPE $ac_cv_type_signal
27712_ACEOF
27713
27714
27715echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27716echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27717if test "${ac_cv_struct_tm+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27719else
27720 cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
27726#include <sys/types.h>
27727#include <time.h>
27728
27729int
27730main ()
27731{
27732struct tm *tp; tp->tm_sec;
27733 ;
27734 return 0;
27735}
27736_ACEOF
27737rm -f conftest.$ac_objext
27738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739 (eval $ac_compile) 2>conftest.er1
27740 ac_status=$?
27741 grep -v '^ *+' conftest.er1 >conftest.err
27742 rm -f conftest.er1
27743 cat conftest.err >&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
27746 { ac_try='test -z "$ac_c_werror_flag"
27747 || test ! -s conftest.err'
27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749 (eval $ac_try) 2>&5
27750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; } &&
27753 { ac_try='test -s conftest.$ac_objext'
27754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755 (eval $ac_try) 2>&5
27756 ac_status=$?
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); }; }; then
27759 ac_cv_struct_tm=time.h
27760else
27761 echo "$as_me: failed program was:" >&5
27762sed 's/^/| /' conftest.$ac_ext >&5
27763
27764ac_cv_struct_tm=sys/time.h
27765fi
27766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27767fi
27768echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27769echo "${ECHO_T}$ac_cv_struct_tm" >&6
27770if test $ac_cv_struct_tm = sys/time.h; then
27771
27772cat >>confdefs.h <<\_ACEOF
27773#define TM_IN_SYS_TIME 1
27774_ACEOF
27775
27776fi
27777
John Criswell7a73b802003-06-30 21:59:07 +000027778echo "$as_me:$LINENO: checking for int64_t" >&5
27779echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27780if test "${ac_cv_type_int64_t+set}" = set; then
27781 echo $ECHO_N "(cached) $ECHO_C" >&6
27782else
27783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027784/* confdefs.h. */
27785_ACEOF
27786cat confdefs.h >>conftest.$ac_ext
27787cat >>conftest.$ac_ext <<_ACEOF
27788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027789$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027790int
27791main ()
27792{
27793if ((int64_t *) 0)
27794 return 0;
27795if (sizeof (int64_t))
27796 return 0;
27797 ;
27798 return 0;
27799}
27800_ACEOF
27801rm -f conftest.$ac_objext
27802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027803 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027805 grep -v '^ *+' conftest.er1 >conftest.err
27806 rm -f conftest.er1
27807 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027810 { ac_try='test -z "$ac_c_werror_flag"
27811 || test ! -s conftest.err'
27812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813 (eval $ac_try) 2>&5
27814 ac_status=$?
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; } &&
27817 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27819 (eval $ac_try) 2>&5
27820 ac_status=$?
27821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); }; }; then
27823 ac_cv_type_int64_t=yes
27824else
27825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027826sed 's/^/| /' conftest.$ac_ext >&5
27827
John Criswell7a73b802003-06-30 21:59:07 +000027828ac_cv_type_int64_t=no
27829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027831fi
27832echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27833echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27834if test $ac_cv_type_int64_t = yes; then
27835
27836cat >>confdefs.h <<_ACEOF
27837#define HAVE_INT64_T 1
27838_ACEOF
27839
27840
27841else
27842 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27843echo "$as_me: error: Type int64_t required but not found" >&2;}
27844 { (exit 1); exit 1; }; }
27845fi
27846
27847echo "$as_me:$LINENO: checking for uint64_t" >&5
27848echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27849if test "${ac_cv_type_uint64_t+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27851else
27852 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027858$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027859int
27860main ()
27861{
27862if ((uint64_t *) 0)
27863 return 0;
27864if (sizeof (uint64_t))
27865 return 0;
27866 ;
27867 return 0;
27868}
27869_ACEOF
27870rm -f conftest.$ac_objext
27871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027872 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027879 { ac_try='test -z "$ac_c_werror_flag"
27880 || test ! -s conftest.err'
27881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 ac_cv_type_uint64_t=yes
27893else
27894 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027895sed 's/^/| /' conftest.$ac_ext >&5
27896
John Criswell7a73b802003-06-30 21:59:07 +000027897ac_cv_type_uint64_t=no
27898fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027900fi
27901echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27902echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27903if test $ac_cv_type_uint64_t = yes; then
27904
27905cat >>confdefs.h <<_ACEOF
27906#define HAVE_UINT64_T 1
27907_ACEOF
27908
27909
27910else
Misha Brukmanceca9042004-09-02 23:02:30 +000027911 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027912echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27913if test "${ac_cv_type_u_int64_t+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915else
27916 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027917/* confdefs.h. */
27918_ACEOF
27919cat confdefs.h >>conftest.$ac_ext
27920cat >>conftest.$ac_ext <<_ACEOF
27921/* end confdefs.h. */
27922$ac_includes_default
27923int
27924main ()
27925{
27926if ((u_int64_t *) 0)
27927 return 0;
27928if (sizeof (u_int64_t))
27929 return 0;
27930 ;
27931 return 0;
27932}
27933_ACEOF
27934rm -f conftest.$ac_objext
27935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027936 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027938 grep -v '^ *+' conftest.er1 >conftest.err
27939 rm -f conftest.er1
27940 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027943 { ac_try='test -z "$ac_c_werror_flag"
27944 || test ! -s conftest.err'
27945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27946 (eval $ac_try) 2>&5
27947 ac_status=$?
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; } &&
27950 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; }; then
27956 ac_cv_type_u_int64_t=yes
27957else
27958 echo "$as_me: failed program was:" >&5
27959sed 's/^/| /' conftest.$ac_ext >&5
27960
27961ac_cv_type_u_int64_t=no
27962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027964fi
27965echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27966echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27967if test $ac_cv_type_u_int64_t = yes; then
27968
27969cat >>confdefs.h <<_ACEOF
27970#define HAVE_U_INT64_T 1
27971_ACEOF
27972
27973
Misha Brukmanceca9042004-09-02 23:02:30 +000027974else
27975 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27976echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27977 { (exit 1); exit 1; }; }
27978fi
27979
John Criswell679ff312004-09-02 18:44:44 +000027980fi
27981
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027982
27983
27984
27985
27986
27987
27988
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027989
27990
Reid Spencerdf3be822006-01-23 08:15:53 +000027991for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027992do
27993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27994echo "$as_me:$LINENO: checking for $ac_func" >&5
27995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27996if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027997 echo $ECHO_N "(cached) $ECHO_C" >&6
27998else
27999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028000/* confdefs.h. */
28001_ACEOF
28002cat confdefs.h >>conftest.$ac_ext
28003cat >>conftest.$ac_ext <<_ACEOF
28004/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28007#define $ac_func innocuous_$ac_func
28008
28009/* System header to define __stub macros and hopefully few prototypes,
28010 which can conflict with char $ac_func (); below.
28011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28012 <limits.h> exists even on freestanding compilers. */
28013
28014#ifdef __STDC__
28015# include <limits.h>
28016#else
28017# include <assert.h>
28018#endif
28019
28020#undef $ac_func
28021
28022/* Override any gcc2 internal prototype to avoid an error. */
28023#ifdef __cplusplus
28024extern "C"
28025{
28026#endif
28027/* We use char because int might match the return type of a gcc2
28028 builtin and then its argument prototype would still apply. */
28029char $ac_func ();
28030/* The GNU C library defines this for functions which it implements
28031 to always fail with ENOSYS. Some functions are actually named
28032 something starting with __ and the normal name is an alias. */
28033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28034choke me
28035#else
28036char (*f) () = $ac_func;
28037#endif
28038#ifdef __cplusplus
28039}
28040#endif
John Criswell7a73b802003-06-30 21:59:07 +000028041
John Criswell7a73b802003-06-30 21:59:07 +000028042int
28043main ()
28044{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028045return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028046 ;
28047 return 0;
28048}
28049_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028050rm -f conftest.$ac_objext conftest$ac_exeext
28051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28052 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028054 grep -v '^ *+' conftest.er1 >conftest.err
28055 rm -f conftest.er1
28056 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028059 { ac_try='test -z "$ac_c_werror_flag"
28060 || test ! -s conftest.err'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028066 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28068 (eval $ac_try) 2>&5
28069 ac_status=$?
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028072 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028073else
28074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028075sed 's/^/| /' conftest.$ac_ext >&5
28076
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028077eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028078fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028079rm -f conftest.err conftest.$ac_objext \
28080 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028081fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28084if test `eval echo '${'$as_ac_var'}'` = yes; then
28085 cat >>confdefs.h <<_ACEOF
28086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028087_ACEOF
28088
28089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028090done
John Criswell7a73b802003-06-30 21:59:07 +000028091
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028092
28093
28094
Reid Spencer6af3d262004-12-15 04:01:48 +000028095
28096
Reid Spencer59473af2004-12-25 07:31:29 +000028097
Reid Spencerdf3be822006-01-23 08:15:53 +000028098for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28099do
28100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28101echo "$as_me:$LINENO: checking for $ac_func" >&5
28102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28103if eval "test \"\${$as_ac_var+set}\" = set"; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28105else
28106 cat >conftest.$ac_ext <<_ACEOF
28107/* confdefs.h. */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h. */
28112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28114#define $ac_func innocuous_$ac_func
28115
28116/* System header to define __stub macros and hopefully few prototypes,
28117 which can conflict with char $ac_func (); below.
28118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28119 <limits.h> exists even on freestanding compilers. */
28120
28121#ifdef __STDC__
28122# include <limits.h>
28123#else
28124# include <assert.h>
28125#endif
28126
28127#undef $ac_func
28128
28129/* Override any gcc2 internal prototype to avoid an error. */
28130#ifdef __cplusplus
28131extern "C"
28132{
28133#endif
28134/* We use char because int might match the return type of a gcc2
28135 builtin and then its argument prototype would still apply. */
28136char $ac_func ();
28137/* The GNU C library defines this for functions which it implements
28138 to always fail with ENOSYS. Some functions are actually named
28139 something starting with __ and the normal name is an alias. */
28140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28141choke me
28142#else
28143char (*f) () = $ac_func;
28144#endif
28145#ifdef __cplusplus
28146}
28147#endif
28148
28149int
28150main ()
28151{
28152return f != $ac_func;
28153 ;
28154 return 0;
28155}
28156_ACEOF
28157rm -f conftest.$ac_objext conftest$ac_exeext
28158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28159 (eval $ac_link) 2>conftest.er1
28160 ac_status=$?
28161 grep -v '^ *+' conftest.er1 >conftest.err
28162 rm -f conftest.er1
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } &&
28166 { ac_try='test -z "$ac_c_werror_flag"
28167 || test ! -s conftest.err'
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; } &&
28173 { ac_try='test -s conftest$ac_exeext'
28174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175 (eval $ac_try) 2>&5
28176 ac_status=$?
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
28179 eval "$as_ac_var=yes"
28180else
28181 echo "$as_me: failed program was:" >&5
28182sed 's/^/| /' conftest.$ac_ext >&5
28183
28184eval "$as_ac_var=no"
28185fi
28186rm -f conftest.err conftest.$ac_objext \
28187 conftest$ac_exeext conftest.$ac_ext
28188fi
28189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28191if test `eval echo '${'$as_ac_var'}'` = yes; then
28192 cat >>confdefs.h <<_ACEOF
28193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28194_ACEOF
28195
28196fi
28197done
28198
28199
28200
28201
28202
28203
28204
28205
28206for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000028207do
28208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28209echo "$as_me:$LINENO: checking for $ac_func" >&5
28210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28211if eval "test \"\${$as_ac_var+set}\" = set"; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213else
28214 cat >conftest.$ac_ext <<_ACEOF
28215/* confdefs.h. */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h. */
28220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28222#define $ac_func innocuous_$ac_func
28223
28224/* System header to define __stub macros and hopefully few prototypes,
28225 which can conflict with char $ac_func (); below.
28226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28227 <limits.h> exists even on freestanding compilers. */
28228
28229#ifdef __STDC__
28230# include <limits.h>
28231#else
28232# include <assert.h>
28233#endif
28234
28235#undef $ac_func
28236
28237/* Override any gcc2 internal prototype to avoid an error. */
28238#ifdef __cplusplus
28239extern "C"
28240{
28241#endif
28242/* We use char because int might match the return type of a gcc2
28243 builtin and then its argument prototype would still apply. */
28244char $ac_func ();
28245/* The GNU C library defines this for functions which it implements
28246 to always fail with ENOSYS. Some functions are actually named
28247 something starting with __ and the normal name is an alias. */
28248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28249choke me
28250#else
28251char (*f) () = $ac_func;
28252#endif
28253#ifdef __cplusplus
28254}
28255#endif
28256
28257int
28258main ()
28259{
28260return f != $ac_func;
28261 ;
28262 return 0;
28263}
28264_ACEOF
28265rm -f conftest.$ac_objext conftest$ac_exeext
28266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28267 (eval $ac_link) 2>conftest.er1
28268 ac_status=$?
28269 grep -v '^ *+' conftest.er1 >conftest.err
28270 rm -f conftest.er1
28271 cat conftest.err >&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); } &&
28274 { ac_try='test -z "$ac_c_werror_flag"
28275 || test ! -s conftest.err'
28276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277 (eval $ac_try) 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; } &&
28281 { ac_try='test -s conftest$ac_exeext'
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; }; then
28287 eval "$as_ac_var=yes"
28288else
28289 echo "$as_me: failed program was:" >&5
28290sed 's/^/| /' conftest.$ac_ext >&5
28291
28292eval "$as_ac_var=no"
28293fi
28294rm -f conftest.err conftest.$ac_objext \
28295 conftest$ac_exeext conftest.$ac_ext
28296fi
28297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28299if test `eval echo '${'$as_ac_var'}'` = yes; then
28300 cat >>confdefs.h <<_ACEOF
28301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28302_ACEOF
28303
28304fi
28305done
28306
28307
Reid Spencerba46ca32004-12-31 05:49:15 +000028308
28309
Chris Lattner0b142592005-11-14 06:57:34 +000028310
Chris Lattner511f11d2005-11-14 07:25:50 +000028311for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028312do
28313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28314echo "$as_me:$LINENO: checking for $ac_func" >&5
28315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28316if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028317 echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028320/* confdefs.h. */
28321_ACEOF
28322cat confdefs.h >>conftest.$ac_ext
28323cat >>conftest.$ac_ext <<_ACEOF
28324/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28327#define $ac_func innocuous_$ac_func
28328
28329/* System header to define __stub macros and hopefully few prototypes,
28330 which can conflict with char $ac_func (); below.
28331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28332 <limits.h> exists even on freestanding compilers. */
28333
28334#ifdef __STDC__
28335# include <limits.h>
28336#else
28337# include <assert.h>
28338#endif
28339
28340#undef $ac_func
28341
28342/* Override any gcc2 internal prototype to avoid an error. */
28343#ifdef __cplusplus
28344extern "C"
28345{
28346#endif
28347/* We use char because int might match the return type of a gcc2
28348 builtin and then its argument prototype would still apply. */
28349char $ac_func ();
28350/* The GNU C library defines this for functions which it implements
28351 to always fail with ENOSYS. Some functions are actually named
28352 something starting with __ and the normal name is an alias. */
28353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28354choke me
28355#else
28356char (*f) () = $ac_func;
28357#endif
28358#ifdef __cplusplus
28359}
28360#endif
John Criswell7a73b802003-06-30 21:59:07 +000028361
John Criswell7a73b802003-06-30 21:59:07 +000028362int
28363main ()
28364{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028365return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028366 ;
28367 return 0;
28368}
28369_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028370rm -f conftest.$ac_objext conftest$ac_exeext
28371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28372 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028374 grep -v '^ *+' conftest.er1 >conftest.err
28375 rm -f conftest.er1
28376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028379 { ac_try='test -z "$ac_c_werror_flag"
28380 || test ! -s conftest.err'
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028386 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028392 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028393else
28394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028395sed 's/^/| /' conftest.$ac_ext >&5
28396
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028397eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028398fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028399rm -f conftest.err conftest.$ac_objext \
28400 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028401fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28404if test `eval echo '${'$as_ac_var'}'` = yes; then
28405 cat >>confdefs.h <<_ACEOF
28406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028407_ACEOF
28408
28409fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028410done
John Criswell7a73b802003-06-30 21:59:07 +000028411
Reid Spencercdb08a32006-06-05 16:11:07 +000028412
28413
28414
28415
28416
28417
28418for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28419do
28420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28421echo "$as_me:$LINENO: checking for $ac_func" >&5
28422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28423if eval "test \"\${$as_ac_var+set}\" = set"; then
28424 echo $ECHO_N "(cached) $ECHO_C" >&6
28425else
28426 cat >conftest.$ac_ext <<_ACEOF
28427/* confdefs.h. */
28428_ACEOF
28429cat confdefs.h >>conftest.$ac_ext
28430cat >>conftest.$ac_ext <<_ACEOF
28431/* end confdefs.h. */
28432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28434#define $ac_func innocuous_$ac_func
28435
28436/* System header to define __stub macros and hopefully few prototypes,
28437 which can conflict with char $ac_func (); below.
28438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28439 <limits.h> exists even on freestanding compilers. */
28440
28441#ifdef __STDC__
28442# include <limits.h>
28443#else
28444# include <assert.h>
28445#endif
28446
28447#undef $ac_func
28448
28449/* Override any gcc2 internal prototype to avoid an error. */
28450#ifdef __cplusplus
28451extern "C"
28452{
28453#endif
28454/* We use char because int might match the return type of a gcc2
28455 builtin and then its argument prototype would still apply. */
28456char $ac_func ();
28457/* The GNU C library defines this for functions which it implements
28458 to always fail with ENOSYS. Some functions are actually named
28459 something starting with __ and the normal name is an alias. */
28460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28461choke me
28462#else
28463char (*f) () = $ac_func;
28464#endif
28465#ifdef __cplusplus
28466}
28467#endif
28468
28469int
28470main ()
28471{
28472return f != $ac_func;
28473 ;
28474 return 0;
28475}
28476_ACEOF
28477rm -f conftest.$ac_objext conftest$ac_exeext
28478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28479 (eval $ac_link) 2>conftest.er1
28480 ac_status=$?
28481 grep -v '^ *+' conftest.er1 >conftest.err
28482 rm -f conftest.er1
28483 cat conftest.err >&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); } &&
28486 { ac_try='test -z "$ac_c_werror_flag"
28487 || test ! -s conftest.err'
28488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489 (eval $ac_try) 2>&5
28490 ac_status=$?
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; } &&
28493 { ac_try='test -s conftest$ac_exeext'
28494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28495 (eval $ac_try) 2>&5
28496 ac_status=$?
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); }; }; then
28499 eval "$as_ac_var=yes"
28500else
28501 echo "$as_me: failed program was:" >&5
28502sed 's/^/| /' conftest.$ac_ext >&5
28503
28504eval "$as_ac_var=no"
28505fi
28506rm -f conftest.err conftest.$ac_objext \
28507 conftest$ac_exeext conftest.$ac_ext
28508fi
28509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28511if test `eval echo '${'$as_ac_var'}'` = yes; then
28512 cat >>confdefs.h <<_ACEOF
28513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28514_ACEOF
28515
28516fi
28517done
28518
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028519echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28520echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028521if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028522 echo $ECHO_N "(cached) $ECHO_C" >&6
28523else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028524 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028525ac_cpp='$CPP $CPPFLAGS'
28526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28528ac_compiler_gnu=$ac_cv_c_compiler_gnu
28529
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028530 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028531 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028532else
28533 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028534
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028535 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028536_ACEOF
28537cat confdefs.h >>conftest.$ac_ext
28538cat >>conftest.$ac_ext <<_ACEOF
28539/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028540
John Criswella0137d32003-10-13 16:22:01 +000028541#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028542#include <stdlib.h>
28543
John Criswella0137d32003-10-13 16:22:01 +000028544int
28545main ()
28546{
28547
Reid Spencer2706f8c2004-09-19 23:53:36 +000028548volatile double A, B;
28549char Buffer[100];
28550A = 1;
28551A /= 10.0;
28552sprintf(Buffer, "%a", A);
28553B = atof(Buffer);
28554if (A != B)
28555 return (1);
28556if (A != 0x1.999999999999ap-4)
28557 return (1);
28558return (0);
John Criswella0137d32003-10-13 16:22:01 +000028559 ;
28560 return 0;
28561}
28562_ACEOF
28563rm -f conftest$ac_exeext
28564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28565 (eval $ac_link) 2>&5
28566 ac_status=$?
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028574 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028575else
28576 echo "$as_me: program exited with status $ac_status" >&5
28577echo "$as_me: failed program was:" >&5
28578sed 's/^/| /' conftest.$ac_ext >&5
28579
28580( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028581llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028582fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028584fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028585 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028586ac_cpp='$CPP $CPPFLAGS'
28587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28589ac_compiler_gnu=$ac_cv_c_compiler_gnu
28590
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028591fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028592echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28593echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28594 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028595
28596cat >>confdefs.h <<\_ACEOF
28597#define HAVE_PRINTF_A 1
28598_ACEOF
28599
Reid Spencer2706f8c2004-09-19 23:53:36 +000028600 fi
John Criswella0137d32003-10-13 16:22:01 +000028601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028602# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28603# for constant arguments. Useless!
28604echo "$as_me:$LINENO: checking for working alloca.h" >&5
28605echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28606if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028607 echo $ECHO_N "(cached) $ECHO_C" >&6
28608else
John Criswell0021c312004-02-13 21:57:29 +000028609 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028610/* confdefs.h. */
28611_ACEOF
28612cat confdefs.h >>conftest.$ac_ext
28613cat >>conftest.$ac_ext <<_ACEOF
28614/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028615#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028616int
28617main ()
28618{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028619char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028620 ;
28621 return 0;
28622}
28623_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028624rm -f conftest.$ac_objext conftest$ac_exeext
28625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28626 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028628 grep -v '^ *+' conftest.er1 >conftest.err
28629 rm -f conftest.er1
28630 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028633 { ac_try='test -z "$ac_c_werror_flag"
28634 || test ! -s conftest.err'
28635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636 (eval $ac_try) 2>&5
28637 ac_status=$?
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028640 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642 (eval $ac_try) 2>&5
28643 ac_status=$?
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028646 ac_cv_working_alloca_h=yes
28647else
28648 echo "$as_me: failed program was:" >&5
28649sed 's/^/| /' conftest.$ac_ext >&5
28650
28651ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028652fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028653rm -f conftest.err conftest.$ac_objext \
28654 conftest$ac_exeext conftest.$ac_ext
28655fi
28656echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28657echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28658if test $ac_cv_working_alloca_h = yes; then
28659
28660cat >>confdefs.h <<\_ACEOF
28661#define HAVE_ALLOCA_H 1
28662_ACEOF
28663
28664fi
28665
28666echo "$as_me:$LINENO: checking for alloca" >&5
28667echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28668if test "${ac_cv_func_alloca_works+set}" = set; then
28669 echo $ECHO_N "(cached) $ECHO_C" >&6
28670else
28671 cat >conftest.$ac_ext <<_ACEOF
28672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
28677#ifdef __GNUC__
28678# define alloca __builtin_alloca
28679#else
28680# ifdef _MSC_VER
28681# include <malloc.h>
28682# define alloca _alloca
28683# else
28684# if HAVE_ALLOCA_H
28685# include <alloca.h>
28686# else
28687# ifdef _AIX
28688 #pragma alloca
28689# else
28690# ifndef alloca /* predefined by HP cc +Olibcalls */
28691char *alloca ();
28692# endif
28693# endif
28694# endif
28695# endif
28696#endif
28697
28698int
28699main ()
28700{
28701char *p = (char *) alloca (1);
28702 ;
28703 return 0;
28704}
28705_ACEOF
28706rm -f conftest.$ac_objext conftest$ac_exeext
28707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708 (eval $ac_link) 2>conftest.er1
28709 ac_status=$?
28710 grep -v '^ *+' conftest.er1 >conftest.err
28711 rm -f conftest.er1
28712 cat conftest.err >&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
28715 { ac_try='test -z "$ac_c_werror_flag"
28716 || test ! -s conftest.err'
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest$ac_exeext'
28723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724 (eval $ac_try) 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 ac_cv_func_alloca_works=yes
28729else
28730 echo "$as_me: failed program was:" >&5
28731sed 's/^/| /' conftest.$ac_ext >&5
28732
28733ac_cv_func_alloca_works=no
28734fi
28735rm -f conftest.err conftest.$ac_objext \
28736 conftest$ac_exeext conftest.$ac_ext
28737fi
28738echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28739echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28740
28741if test $ac_cv_func_alloca_works = yes; then
28742
28743cat >>confdefs.h <<\_ACEOF
28744#define HAVE_ALLOCA 1
28745_ACEOF
28746
28747else
28748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28749# that cause trouble. Some versions do not even contain alloca or
28750# contain a buggy version. If you still want to use their alloca,
28751# use ar to extract alloca.o from them instead of compiling alloca.c.
28752
28753ALLOCA=alloca.$ac_objext
28754
28755cat >>confdefs.h <<\_ACEOF
28756#define C_ALLOCA 1
28757_ACEOF
28758
28759
28760echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28761echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28762if test "${ac_cv_os_cray+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
28771#if defined(CRAY) && ! defined(CRAY2)
28772webecray
28773#else
28774wenotbecray
28775#endif
28776
28777_ACEOF
28778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28779 $EGREP "webecray" >/dev/null 2>&1; then
28780 ac_cv_os_cray=yes
28781else
28782 ac_cv_os_cray=no
28783fi
28784rm -f conftest*
28785
28786fi
28787echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28788echo "${ECHO_T}$ac_cv_os_cray" >&6
28789if test $ac_cv_os_cray = yes; then
28790 for ac_func in _getb67 GETB67 getb67; do
28791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28792echo "$as_me:$LINENO: checking for $ac_func" >&5
28793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28794if eval "test \"\${$as_ac_var+set}\" = set"; then
28795 echo $ECHO_N "(cached) $ECHO_C" >&6
28796else
28797 cat >conftest.$ac_ext <<_ACEOF
28798/* confdefs.h. */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h. */
28803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28805#define $ac_func innocuous_$ac_func
28806
28807/* System header to define __stub macros and hopefully few prototypes,
28808 which can conflict with char $ac_func (); below.
28809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28810 <limits.h> exists even on freestanding compilers. */
28811
28812#ifdef __STDC__
28813# include <limits.h>
28814#else
28815# include <assert.h>
28816#endif
28817
28818#undef $ac_func
28819
28820/* Override any gcc2 internal prototype to avoid an error. */
28821#ifdef __cplusplus
28822extern "C"
28823{
28824#endif
28825/* We use char because int might match the return type of a gcc2
28826 builtin and then its argument prototype would still apply. */
28827char $ac_func ();
28828/* The GNU C library defines this for functions which it implements
28829 to always fail with ENOSYS. Some functions are actually named
28830 something starting with __ and the normal name is an alias. */
28831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28832choke me
28833#else
28834char (*f) () = $ac_func;
28835#endif
28836#ifdef __cplusplus
28837}
28838#endif
28839
28840int
28841main ()
28842{
28843return f != $ac_func;
28844 ;
28845 return 0;
28846}
28847_ACEOF
28848rm -f conftest.$ac_objext conftest$ac_exeext
28849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28850 (eval $ac_link) 2>conftest.er1
28851 ac_status=$?
28852 grep -v '^ *+' conftest.er1 >conftest.err
28853 rm -f conftest.er1
28854 cat conftest.err >&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
28857 { ac_try='test -z "$ac_c_werror_flag"
28858 || test ! -s conftest.err'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest$ac_exeext'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 eval "$as_ac_var=yes"
28871else
28872 echo "$as_me: failed program was:" >&5
28873sed 's/^/| /' conftest.$ac_ext >&5
28874
28875eval "$as_ac_var=no"
28876fi
28877rm -f conftest.err conftest.$ac_objext \
28878 conftest$ac_exeext conftest.$ac_ext
28879fi
28880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28882if test `eval echo '${'$as_ac_var'}'` = yes; then
28883
28884cat >>confdefs.h <<_ACEOF
28885#define CRAY_STACKSEG_END $ac_func
28886_ACEOF
28887
28888 break
28889fi
28890
28891 done
28892fi
28893
28894echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28895echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28896if test "${ac_cv_c_stack_direction+set}" = set; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28898else
28899 if test "$cross_compiling" = yes; then
28900 ac_cv_c_stack_direction=0
28901else
28902 cat >conftest.$ac_ext <<_ACEOF
28903/* confdefs.h. */
28904_ACEOF
28905cat confdefs.h >>conftest.$ac_ext
28906cat >>conftest.$ac_ext <<_ACEOF
28907/* end confdefs.h. */
28908int
28909find_stack_direction ()
28910{
28911 static char *addr = 0;
28912 auto char dummy;
28913 if (addr == 0)
28914 {
28915 addr = &dummy;
28916 return find_stack_direction ();
28917 }
John Criswell0021c312004-02-13 21:57:29 +000028918 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028919 return (&dummy > addr) ? 1 : -1;
28920}
John Criswell0021c312004-02-13 21:57:29 +000028921
John Criswell0021c312004-02-13 21:57:29 +000028922int
28923main ()
28924{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028925 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028926}
28927_ACEOF
28928rm -f conftest$ac_exeext
28929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28930 (eval $ac_link) 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28936 ac_status=$?
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028939 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028940else
28941 echo "$as_me: program exited with status $ac_status" >&5
28942echo "$as_me: failed program was:" >&5
28943sed 's/^/| /' conftest.$ac_ext >&5
28944
28945( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028946ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028947fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028949fi
28950fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028951echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28952echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28953
28954cat >>confdefs.h <<_ACEOF
28955#define STACK_DIRECTION $ac_cv_c_stack_direction
28956_ACEOF
28957
28958
John Criswell0021c312004-02-13 21:57:29 +000028959fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028960
28961
28962echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28963echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28964if test "${ac_cv_func_rand48+set}" = set; then
28965 echo $ECHO_N "(cached) $ECHO_C" >&6
28966else
28967 ac_ext=cc
28968ac_cpp='$CXXCPP $CPPFLAGS'
28969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28972
28973 cat >conftest.$ac_ext <<_ACEOF
28974/* confdefs.h. */
28975_ACEOF
28976cat confdefs.h >>conftest.$ac_ext
28977cat >>conftest.$ac_ext <<_ACEOF
28978/* end confdefs.h. */
28979#include <stdlib.h>
28980int
28981main ()
28982{
28983srand48(0);lrand48();drand48();
28984 ;
28985 return 0;
28986}
28987_ACEOF
28988rm -f conftest.$ac_objext
28989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28990 (eval $ac_compile) 2>conftest.er1
28991 ac_status=$?
28992 grep -v '^ *+' conftest.er1 >conftest.err
28993 rm -f conftest.er1
28994 cat conftest.err >&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); } &&
28997 { ac_try='test -z "$ac_cxx_werror_flag"
28998 || test ! -s conftest.err'
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
29001 ac_status=$?
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; } &&
29004 { ac_try='test -s conftest.$ac_objext'
29005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006 (eval $ac_try) 2>&5
29007 ac_status=$?
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; }; then
29010 ac_cv_func_rand48=yes
29011else
29012 echo "$as_me: failed program was:" >&5
29013sed 's/^/| /' conftest.$ac_ext >&5
29014
29015ac_cv_func_rand48=no
29016fi
29017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29018 ac_ext=c
29019ac_cpp='$CPP $CPPFLAGS'
29020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022ac_compiler_gnu=$ac_cv_c_compiler_gnu
29023
29024fi
29025echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29026echo "${ECHO_T}$ac_cv_func_rand48" >&6
29027
29028if test "$ac_cv_func_rand48" = "yes" ; then
29029
29030cat >>confdefs.h <<\_ACEOF
29031#define HAVE_RAND48 1
29032_ACEOF
29033
29034fi
John Criswell0021c312004-02-13 21:57:29 +000029035
29036
John Criswell7a73b802003-06-30 21:59:07 +000029037echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29038echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29039if test "${ac_cv_cxx_namespaces+set}" = set; then
29040 echo $ECHO_N "(cached) $ECHO_C" >&6
29041else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029042 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000029043ac_cpp='$CXXCPP $CPPFLAGS'
29044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29047
29048 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029049/* confdefs.h. */
29050_ACEOF
29051cat confdefs.h >>conftest.$ac_ext
29052cat >>conftest.$ac_ext <<_ACEOF
29053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029054namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029055int
29056main ()
29057{
29058using namespace Outer::Inner; return i;
29059 ;
29060 return 0;
29061}
29062_ACEOF
29063rm -f conftest.$ac_objext
29064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029065 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029066 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029067 grep -v '^ *+' conftest.er1 >conftest.err
29068 rm -f conftest.er1
29069 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029072 { ac_try='test -z "$ac_cxx_werror_flag"
29073 || test ! -s conftest.err'
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; } &&
29079 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081 (eval $ac_try) 2>&5
29082 ac_status=$?
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 ac_cv_cxx_namespaces=yes
29086else
29087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029088sed 's/^/| /' conftest.$ac_ext >&5
29089
John Criswell7a73b802003-06-30 21:59:07 +000029090ac_cv_cxx_namespaces=no
29091fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029093 ac_ext=c
29094ac_cpp='$CPP $CPPFLAGS'
29095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097ac_compiler_gnu=$ac_cv_c_compiler_gnu
29098
29099
29100fi
29101echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29102echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29103if test "$ac_cv_cxx_namespaces" = yes; then
29104
29105cat >>confdefs.h <<\_ACEOF
29106#define HAVE_NAMESPACES
29107_ACEOF
29108
29109fi
29110
Brian Gaeke90583492003-11-10 03:06:28 +000029111echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29112echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29113if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029114 echo $ECHO_N "(cached) $ECHO_C" >&6
29115else
29116
John Criswell7a73b802003-06-30 21:59:07 +000029117 ac_ext=cc
29118ac_cpp='$CXXCPP $CPPFLAGS'
29119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29122
29123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029124/* confdefs.h. */
29125_ACEOF
29126cat confdefs.h >>conftest.$ac_ext
29127cat >>conftest.$ac_ext <<_ACEOF
29128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029129#include <ext/hash_map>
29130#ifdef HAVE_NAMESPACES
29131using namespace std;
29132#endif
John Criswell7a73b802003-06-30 21:59:07 +000029133int
29134main ()
29135{
Brian Gaeke90583492003-11-10 03:06:28 +000029136hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029137 ;
29138 return 0;
29139}
29140_ACEOF
29141rm -f conftest.$ac_objext
29142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029143 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029145 grep -v '^ *+' conftest.er1 >conftest.err
29146 rm -f conftest.er1
29147 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029150 { ac_try='test -z "$ac_cxx_werror_flag"
29151 || test ! -s conftest.err'
29152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153 (eval $ac_try) 2>&5
29154 ac_status=$?
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; } &&
29157 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159 (eval $ac_try) 2>&5
29160 ac_status=$?
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029163 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029164else
29165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029166sed 's/^/| /' conftest.$ac_ext >&5
29167
Brian Gaeke90583492003-11-10 03:06:28 +000029168ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029169fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029171 ac_ext=c
29172ac_cpp='$CPP $CPPFLAGS'
29173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29175ac_compiler_gnu=$ac_cv_c_compiler_gnu
29176
John Criswell7a73b802003-06-30 21:59:07 +000029177fi
Brian Gaeke90583492003-11-10 03:06:28 +000029178echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29179echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029180 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29181 then
John Criswell9f011862004-09-24 18:28:00 +000029182
29183cat >>confdefs.h <<\_ACEOF
29184#define HAVE_STD_EXT_HASH_MAP 1
29185_ACEOF
29186
29187 else
29188
29189cat >>confdefs.h <<\_ACEOF
29190#define HAVE_STD_EXT_HASH_MAP 0
29191_ACEOF
29192
Brian Gaeke90583492003-11-10 03:06:28 +000029193 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029194
Brian Gaeke90583492003-11-10 03:06:28 +000029195 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29196echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29197if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29199else
29200
Brian Gaeke90583492003-11-10 03:06:28 +000029201 ac_ext=cc
29202ac_cpp='$CXXCPP $CPPFLAGS'
29203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29206
29207 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029208/* confdefs.h. */
29209_ACEOF
29210cat confdefs.h >>conftest.$ac_ext
29211cat >>conftest.$ac_ext <<_ACEOF
29212/* end confdefs.h. */
29213#include <ext/hash_map>
29214#ifdef HAVE_NAMESPACES
29215using namespace __gnu_cxx;
29216#endif
29217int
29218main ()
29219{
29220hash_map<int,int> t;
29221 ;
29222 return 0;
29223}
29224_ACEOF
29225rm -f conftest.$ac_objext
29226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029227 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029229 grep -v '^ *+' conftest.er1 >conftest.err
29230 rm -f conftest.er1
29231 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029234 { ac_try='test -z "$ac_cxx_werror_flag"
29235 || test ! -s conftest.err'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243 (eval $ac_try) 2>&5
29244 ac_status=$?
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_cv_cxx_have_gnu_ext_hash_map=yes
29248else
29249 echo "$as_me: failed program was:" >&5
29250sed 's/^/| /' conftest.$ac_ext >&5
29251
29252ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029253fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029255 ac_ext=c
29256ac_cpp='$CPP $CPPFLAGS'
29257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29259ac_compiler_gnu=$ac_cv_c_compiler_gnu
29260
29261fi
29262echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29263echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029264 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29265 then
John Criswell9f011862004-09-24 18:28:00 +000029266
29267cat >>confdefs.h <<\_ACEOF
29268#define HAVE_GNU_EXT_HASH_MAP 1
29269_ACEOF
29270
29271 else
29272
29273cat >>confdefs.h <<\_ACEOF
29274#define HAVE_GNU_EXT_HASH_MAP 0
29275_ACEOF
29276
Brian Gaeke90583492003-11-10 03:06:28 +000029277 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029278
Brian Gaeke90583492003-11-10 03:06:28 +000029279 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29280echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29281if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283else
John Criswell7a73b802003-06-30 21:59:07 +000029284
Brian Gaeke90583492003-11-10 03:06:28 +000029285 ac_ext=cc
29286ac_cpp='$CXXCPP $CPPFLAGS'
29287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29290
29291 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
29297#include <hash_map>
29298int
29299main ()
29300{
29301hash_map<int,int> t;
29302 ;
29303 return 0;
29304}
29305_ACEOF
29306rm -f conftest.$ac_objext
29307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029308 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029309 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029310 grep -v '^ *+' conftest.er1 >conftest.err
29311 rm -f conftest.er1
29312 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029315 { ac_try='test -z "$ac_cxx_werror_flag"
29316 || test ! -s conftest.err'
29317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318 (eval $ac_try) 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; } &&
29322 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; }; then
29328 ac_cv_cxx_have_global_hash_map=yes
29329else
29330 echo "$as_me: failed program was:" >&5
29331sed 's/^/| /' conftest.$ac_ext >&5
29332
29333ac_cv_cxx_have_global_hash_map=no
29334fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029336 ac_ext=c
29337ac_cpp='$CPP $CPPFLAGS'
29338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29340ac_compiler_gnu=$ac_cv_c_compiler_gnu
29341
29342fi
29343echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29344echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029345 if test "$ac_cv_cxx_have_global_hash_map" = yes
29346 then
John Criswell9f011862004-09-24 18:28:00 +000029347
29348cat >>confdefs.h <<\_ACEOF
29349#define HAVE_GLOBAL_HASH_MAP 1
29350_ACEOF
29351
29352 else
29353
29354cat >>confdefs.h <<\_ACEOF
29355#define HAVE_GLOBAL_HASH_MAP 0
29356_ACEOF
29357
Brian Gaeke90583492003-11-10 03:06:28 +000029358 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029359
Brian Gaeke90583492003-11-10 03:06:28 +000029360echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29361echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29362if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029363 echo $ECHO_N "(cached) $ECHO_C" >&6
29364else
29365
John Criswell7a73b802003-06-30 21:59:07 +000029366 ac_ext=cc
29367ac_cpp='$CXXCPP $CPPFLAGS'
29368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29371
29372 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029373/* confdefs.h. */
29374_ACEOF
29375cat confdefs.h >>conftest.$ac_ext
29376cat >>conftest.$ac_ext <<_ACEOF
29377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029378#include <ext/hash_set>
29379#ifdef HAVE_NAMESPACES
29380using namespace std;
29381#endif
John Criswell7a73b802003-06-30 21:59:07 +000029382int
29383main ()
29384{
Brian Gaeke90583492003-11-10 03:06:28 +000029385hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029386 ;
29387 return 0;
29388}
29389_ACEOF
29390rm -f conftest.$ac_objext
29391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029392 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029394 grep -v '^ *+' conftest.er1 >conftest.err
29395 rm -f conftest.er1
29396 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 { ac_try='test -z "$ac_cxx_werror_flag"
29400 || test ! -s conftest.err'
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; } &&
29406 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029412 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029413else
29414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029415sed 's/^/| /' conftest.$ac_ext >&5
29416
Brian Gaeke90583492003-11-10 03:06:28 +000029417ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029420 ac_ext=c
29421ac_cpp='$CPP $CPPFLAGS'
29422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425
29426fi
29427echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29428echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029429 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29430 then
John Criswell9f011862004-09-24 18:28:00 +000029431
29432cat >>confdefs.h <<\_ACEOF
29433#define HAVE_STD_EXT_HASH_SET 1
29434_ACEOF
29435
29436 else
29437
29438cat >>confdefs.h <<\_ACEOF
29439#define HAVE_STD_EXT_HASH_SET 0
29440_ACEOF
29441
Brian Gaeke90583492003-11-10 03:06:28 +000029442 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029443
Brian Gaeke90583492003-11-10 03:06:28 +000029444 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29445echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29446if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29448else
29449
Brian Gaeke90583492003-11-10 03:06:28 +000029450 ac_ext=cc
29451ac_cpp='$CXXCPP $CPPFLAGS'
29452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29455
John Criswell7a73b802003-06-30 21:59:07 +000029456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029457/* confdefs.h. */
29458_ACEOF
29459cat confdefs.h >>conftest.$ac_ext
29460cat >>conftest.$ac_ext <<_ACEOF
29461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029462#include <ext/hash_set>
29463#ifdef HAVE_NAMESPACES
29464using namespace __gnu_cxx;
29465#endif
John Criswell7a73b802003-06-30 21:59:07 +000029466int
29467main ()
29468{
Brian Gaeke90583492003-11-10 03:06:28 +000029469hash_set<int> t;
29470 ;
29471 return 0;
29472}
29473_ACEOF
29474rm -f conftest.$ac_objext
29475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029476 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029478 grep -v '^ *+' conftest.er1 >conftest.err
29479 rm -f conftest.er1
29480 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029483 { ac_try='test -z "$ac_cxx_werror_flag"
29484 || test ! -s conftest.err'
29485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486 (eval $ac_try) 2>&5
29487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; } &&
29490 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
29496 ac_cv_cxx_have_gnu_ext_hash_set=yes
29497else
29498 echo "$as_me: failed program was:" >&5
29499sed 's/^/| /' conftest.$ac_ext >&5
29500
29501ac_cv_cxx_have_gnu_ext_hash_set=no
29502fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029504 ac_ext=c
29505ac_cpp='$CPP $CPPFLAGS'
29506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29508ac_compiler_gnu=$ac_cv_c_compiler_gnu
29509
29510fi
29511echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29512echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029513 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29514 then
John Criswell9f011862004-09-24 18:28:00 +000029515
29516cat >>confdefs.h <<\_ACEOF
29517#define HAVE_GNU_EXT_HASH_SET 1
29518_ACEOF
29519
29520 else
29521
29522cat >>confdefs.h <<\_ACEOF
29523#define HAVE_GNU_EXT_HASH_SET 0
29524_ACEOF
29525
Brian Gaeke90583492003-11-10 03:06:28 +000029526 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029527
Brian Gaeke90583492003-11-10 03:06:28 +000029528 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29529echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29530if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29531 echo $ECHO_N "(cached) $ECHO_C" >&6
29532else
29533
Brian Gaeke90583492003-11-10 03:06:28 +000029534 ac_ext=cc
29535ac_cpp='$CXXCPP $CPPFLAGS'
29536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29539
29540 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
29546#include <hash_set>
29547int
29548main ()
29549{
John Criswell7a73b802003-06-30 21:59:07 +000029550hash_set<int> t; return 0;
29551 ;
29552 return 0;
29553}
29554_ACEOF
29555rm -f conftest.$ac_objext
29556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029557 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029559 grep -v '^ *+' conftest.er1 >conftest.err
29560 rm -f conftest.er1
29561 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029564 { ac_try='test -z "$ac_cxx_werror_flag"
29565 || test ! -s conftest.err'
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; } &&
29571 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573 (eval $ac_try) 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029577 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029578else
29579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029580sed 's/^/| /' conftest.$ac_ext >&5
29581
Brian Gaeke90583492003-11-10 03:06:28 +000029582ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029583fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029585 ac_ext=c
29586ac_cpp='$CPP $CPPFLAGS'
29587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29589ac_compiler_gnu=$ac_cv_c_compiler_gnu
29590
John Criswell7a73b802003-06-30 21:59:07 +000029591fi
Brian Gaeke90583492003-11-10 03:06:28 +000029592echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29593echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029594 if test "$ac_cv_cxx_have_global_hash_set" = yes
29595 then
John Criswell9f011862004-09-24 18:28:00 +000029596
29597cat >>confdefs.h <<\_ACEOF
29598#define HAVE_GLOBAL_HASH_SET 1
29599_ACEOF
29600
29601 else
29602
29603cat >>confdefs.h <<\_ACEOF
29604#define HAVE_GLOBAL_HASH_SET 0
29605_ACEOF
29606
Brian Gaeke90583492003-11-10 03:06:28 +000029607 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029608
John Criswell7a73b802003-06-30 21:59:07 +000029609echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29610echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29611if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29613else
29614
John Criswell7a73b802003-06-30 21:59:07 +000029615 ac_ext=cc
29616ac_cpp='$CXXCPP $CPPFLAGS'
29617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29620
29621 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029622/* confdefs.h. */
29623_ACEOF
29624cat confdefs.h >>conftest.$ac_ext
29625cat >>conftest.$ac_ext <<_ACEOF
29626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029627#include <iterator>
29628#ifdef HAVE_NAMESPACES
29629using namespace std;
29630#endif
John Criswell7a73b802003-06-30 21:59:07 +000029631int
29632main ()
29633{
29634iterator<int,int,int> t; return 0;
29635 ;
29636 return 0;
29637}
29638_ACEOF
29639rm -f conftest.$ac_objext
29640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029641 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029642 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029643 grep -v '^ *+' conftest.er1 >conftest.err
29644 rm -f conftest.er1
29645 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029648 { ac_try='test -z "$ac_cxx_werror_flag"
29649 || test ! -s conftest.err'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; } &&
29655 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29658 ac_status=$?
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; }; then
29661 ac_cv_cxx_have_std_iterator=yes
29662else
29663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029664sed 's/^/| /' conftest.$ac_ext >&5
29665
John Criswell7a73b802003-06-30 21:59:07 +000029666ac_cv_cxx_have_std_iterator=no
29667fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029669 ac_ext=c
29670ac_cpp='$CPP $CPPFLAGS'
29671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29673ac_compiler_gnu=$ac_cv_c_compiler_gnu
29674
29675
29676fi
29677echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29678echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029679if test "$ac_cv_cxx_have_std_iterator" = yes
29680then
John Criswell40468462004-09-24 21:19:06 +000029681
29682cat >>confdefs.h <<\_ACEOF
29683#define HAVE_STD_ITERATOR 1
29684_ACEOF
29685
29686else
29687
29688cat >>confdefs.h <<\_ACEOF
29689#define HAVE_STD_ITERATOR 0
29690_ACEOF
29691
John Criswell7a73b802003-06-30 21:59:07 +000029692fi
29693
29694echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29695echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29696if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29698else
29699
John Criswell7a73b802003-06-30 21:59:07 +000029700 ac_ext=cc
29701ac_cpp='$CXXCPP $CPPFLAGS'
29702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29705
29706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029707/* confdefs.h. */
29708_ACEOF
29709cat confdefs.h >>conftest.$ac_ext
29710cat >>conftest.$ac_ext <<_ACEOF
29711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029712#include <iterator>
29713#ifdef HAVE_NAMESPACES
29714using namespace std;
29715#endif
John Criswell7a73b802003-06-30 21:59:07 +000029716int
29717main ()
29718{
John Criswellc78022e2003-07-29 19:11:58 +000029719bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029720 ;
29721 return 0;
29722}
29723_ACEOF
29724rm -f conftest.$ac_objext
29725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029726 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029727 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029728 grep -v '^ *+' conftest.er1 >conftest.err
29729 rm -f conftest.er1
29730 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029733 { ac_try='test -z "$ac_cxx_werror_flag"
29734 || test ! -s conftest.err'
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; } &&
29740 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); }; }; then
29746 ac_cv_cxx_have_bi_iterator=yes
29747else
29748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029749sed 's/^/| /' conftest.$ac_ext >&5
29750
John Criswell7a73b802003-06-30 21:59:07 +000029751ac_cv_cxx_have_bi_iterator=no
29752fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029754 ac_ext=c
29755ac_cpp='$CPP $CPPFLAGS'
29756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29758ac_compiler_gnu=$ac_cv_c_compiler_gnu
29759
29760
29761fi
29762echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29763echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029764if test "$ac_cv_cxx_have_bi_iterator" = yes
29765then
John Criswell40468462004-09-24 21:19:06 +000029766
29767cat >>confdefs.h <<\_ACEOF
29768#define HAVE_BI_ITERATOR 1
29769_ACEOF
29770
29771else
29772
29773cat >>confdefs.h <<\_ACEOF
29774#define HAVE_BI_ITERATOR 0
29775_ACEOF
29776
John Criswell7a73b802003-06-30 21:59:07 +000029777fi
29778
29779echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29780echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29781if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29782 echo $ECHO_N "(cached) $ECHO_C" >&6
29783else
29784
John Criswell7a73b802003-06-30 21:59:07 +000029785 ac_ext=cc
29786ac_cpp='$CXXCPP $CPPFLAGS'
29787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29790
29791 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029792/* confdefs.h. */
29793_ACEOF
29794cat confdefs.h >>conftest.$ac_ext
29795cat >>conftest.$ac_ext <<_ACEOF
29796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029797#include <iterator>
29798#ifdef HAVE_NAMESPACES
29799using namespace std;
29800#endif
John Criswell7a73b802003-06-30 21:59:07 +000029801int
29802main ()
29803{
John Criswellc78022e2003-07-29 19:11:58 +000029804forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029805 ;
29806 return 0;
29807}
29808_ACEOF
29809rm -f conftest.$ac_objext
29810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029811 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029813 grep -v '^ *+' conftest.er1 >conftest.err
29814 rm -f conftest.er1
29815 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029818 { ac_try='test -z "$ac_cxx_werror_flag"
29819 || test ! -s conftest.err'
29820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29821 (eval $ac_try) 2>&5
29822 ac_status=$?
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); }; } &&
29825 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; }; then
29831 ac_cv_cxx_have_fwd_iterator=yes
29832else
29833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029834sed 's/^/| /' conftest.$ac_ext >&5
29835
John Criswell7a73b802003-06-30 21:59:07 +000029836ac_cv_cxx_have_fwd_iterator=no
29837fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029839 ac_ext=c
29840ac_cpp='$CPP $CPPFLAGS'
29841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29843ac_compiler_gnu=$ac_cv_c_compiler_gnu
29844
29845
29846fi
29847echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29848echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029849if test "$ac_cv_cxx_have_fwd_iterator" = yes
29850then
John Criswell40468462004-09-24 21:19:06 +000029851
29852cat >>confdefs.h <<\_ACEOF
29853#define HAVE_FWD_ITERATOR 1
29854_ACEOF
29855
29856else
29857
29858cat >>confdefs.h <<\_ACEOF
29859#define HAVE_FWD_ITERATOR 0
29860_ACEOF
29861
John Criswell7a73b802003-06-30 21:59:07 +000029862fi
29863
29864
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029865echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29866echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29867if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29868 echo $ECHO_N "(cached) $ECHO_C" >&6
29869else
29870 ac_ext=cc
29871ac_cpp='$CXXCPP $CPPFLAGS'
29872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29875
Reid Spencerabec8f92004-10-27 23:03:44 +000029876 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029877/* confdefs.h. */
29878_ACEOF
29879cat confdefs.h >>conftest.$ac_ext
29880cat >>conftest.$ac_ext <<_ACEOF
29881/* end confdefs.h. */
29882#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029883int
29884main ()
29885{
29886float f; isnan(f);
29887 ;
29888 return 0;
29889}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029890_ACEOF
29891rm -f conftest.$ac_objext
29892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029893 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029894 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029895 grep -v '^ *+' conftest.er1 >conftest.err
29896 rm -f conftest.er1
29897 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029900 { ac_try='test -z "$ac_cxx_werror_flag"
29901 || test ! -s conftest.err'
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; } &&
29907 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909 (eval $ac_try) 2>&5
29910 ac_status=$?
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; }; then
29913 ac_cv_func_isnan_in_math_h=yes
29914else
29915 echo "$as_me: failed program was:" >&5
29916sed 's/^/| /' conftest.$ac_ext >&5
29917
29918ac_cv_func_isnan_in_math_h=no
29919fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029921 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029922ac_cpp='$CPP $CPPFLAGS'
29923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29925ac_compiler_gnu=$ac_cv_c_compiler_gnu
29926
29927fi
29928echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29929echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029930
29931
29932if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029933
29934cat >>confdefs.h <<\_ACEOF
29935#define HAVE_ISNAN_IN_MATH_H 1
29936_ACEOF
29937
Reid Spencerabec8f92004-10-27 23:03:44 +000029938fi
29939
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029940echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29941echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29942if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29943 echo $ECHO_N "(cached) $ECHO_C" >&6
29944else
29945 ac_ext=cc
29946ac_cpp='$CXXCPP $CPPFLAGS'
29947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29950
Reid Spencerabec8f92004-10-27 23:03:44 +000029951 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
29957#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029958int
29959main ()
29960{
29961float f; isnan(f);
29962 ;
29963 return 0;
29964}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029965_ACEOF
29966rm -f conftest.$ac_objext
29967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029968 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029970 grep -v '^ *+' conftest.er1 >conftest.err
29971 rm -f conftest.er1
29972 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029975 { ac_try='test -z "$ac_cxx_werror_flag"
29976 || test ! -s conftest.err'
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; } &&
29982 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984 (eval $ac_try) 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; }; then
29988 ac_cv_func_isnan_in_cmath=yes
29989else
29990 echo "$as_me: failed program was:" >&5
29991sed 's/^/| /' conftest.$ac_ext >&5
29992
29993ac_cv_func_isnan_in_cmath=no
29994fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029996 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029997ac_cpp='$CPP $CPPFLAGS'
29998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30000ac_compiler_gnu=$ac_cv_c_compiler_gnu
30001
30002fi
30003echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30004echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030005
30006if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030007
30008cat >>confdefs.h <<\_ACEOF
30009#define HAVE_ISNAN_IN_CMATH 1
30010_ACEOF
30011
Reid Spencerabec8f92004-10-27 23:03:44 +000030012fi
30013
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030014echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30015echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30016if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019 ac_ext=cc
30020ac_cpp='$CXXCPP $CPPFLAGS'
30021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30024
Reid Spencerabec8f92004-10-27 23:03:44 +000030025 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030026/* confdefs.h. */
30027_ACEOF
30028cat confdefs.h >>conftest.$ac_ext
30029cat >>conftest.$ac_ext <<_ACEOF
30030/* end confdefs.h. */
30031#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030032int
30033main ()
30034{
30035float f; std::isnan(f);
30036 ;
30037 return 0;
30038}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030039_ACEOF
30040rm -f conftest.$ac_objext
30041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030042 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030049 { ac_try='test -z "$ac_cxx_werror_flag"
30050 || test ! -s conftest.err'
30051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30052 (eval $ac_try) 2>&5
30053 ac_status=$?
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); }; } &&
30056 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30058 (eval $ac_try) 2>&5
30059 ac_status=$?
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); }; }; then
30062 ac_cv_func_std_isnan_in_cmath=yes
30063else
30064 echo "$as_me: failed program was:" >&5
30065sed 's/^/| /' conftest.$ac_ext >&5
30066
30067ac_cv_func_std_isnan_in_cmath=no
30068fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030070 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030071ac_cpp='$CPP $CPPFLAGS'
30072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30074ac_compiler_gnu=$ac_cv_c_compiler_gnu
30075
30076fi
30077echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30078echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030079
30080if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030081
30082cat >>confdefs.h <<\_ACEOF
30083#define HAVE_STD_ISNAN_IN_CMATH 1
30084_ACEOF
30085
Reid Spencerabec8f92004-10-27 23:03:44 +000030086fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030087
30088
Brian Gaeke52a551d2004-07-21 03:14:12 +000030089echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30090echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30091if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30092 echo $ECHO_N "(cached) $ECHO_C" >&6
30093else
30094 ac_ext=cc
30095ac_cpp='$CXXCPP $CPPFLAGS'
30096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30099
Reid Spencerabec8f92004-10-27 23:03:44 +000030100 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030101/* confdefs.h. */
30102_ACEOF
30103cat confdefs.h >>conftest.$ac_ext
30104cat >>conftest.$ac_ext <<_ACEOF
30105/* end confdefs.h. */
30106#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030107int
30108main ()
30109{
30110float f; isinf(f);
30111 ;
30112 return 0;
30113}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030114_ACEOF
30115rm -f conftest.$ac_objext
30116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030117 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030118 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030124 { ac_try='test -z "$ac_cxx_werror_flag"
30125 || test ! -s conftest.err'
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
30137 ac_cv_func_isinf_in_math_h=yes
30138else
30139 echo "$as_me: failed program was:" >&5
30140sed 's/^/| /' conftest.$ac_ext >&5
30141
30142ac_cv_func_isinf_in_math_h=no
30143fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030145 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030146ac_cpp='$CPP $CPPFLAGS'
30147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30149ac_compiler_gnu=$ac_cv_c_compiler_gnu
30150
30151fi
30152echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30153echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030154
30155if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030156
30157cat >>confdefs.h <<\_ACEOF
30158#define HAVE_ISINF_IN_MATH_H 1
30159_ACEOF
30160
Reid Spencerabec8f92004-10-27 23:03:44 +000030161fi
30162
Brian Gaeke52a551d2004-07-21 03:14:12 +000030163echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30164echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30165if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30166 echo $ECHO_N "(cached) $ECHO_C" >&6
30167else
30168 ac_ext=cc
30169ac_cpp='$CXXCPP $CPPFLAGS'
30170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30173
Reid Spencerabec8f92004-10-27 23:03:44 +000030174 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
30180#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030181int
30182main ()
30183{
30184float f; isinf(f);
30185 ;
30186 return 0;
30187}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030188_ACEOF
30189rm -f conftest.$ac_objext
30190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030191 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030193 grep -v '^ *+' conftest.er1 >conftest.err
30194 rm -f conftest.er1
30195 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030198 { ac_try='test -z "$ac_cxx_werror_flag"
30199 || test ! -s conftest.err'
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_cv_func_isinf_in_cmath=yes
30212else
30213 echo "$as_me: failed program was:" >&5
30214sed 's/^/| /' conftest.$ac_ext >&5
30215
30216ac_cv_func_isinf_in_cmath=no
30217fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030219 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030220ac_cpp='$CPP $CPPFLAGS'
30221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30223ac_compiler_gnu=$ac_cv_c_compiler_gnu
30224
30225fi
30226echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30227echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030228
30229if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030230
30231cat >>confdefs.h <<\_ACEOF
30232#define HAVE_ISINF_IN_CMATH 1
30233_ACEOF
30234
Reid Spencerabec8f92004-10-27 23:03:44 +000030235fi
30236
Brian Gaeke52a551d2004-07-21 03:14:12 +000030237echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30238echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30239if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30241else
30242 ac_ext=cc
30243ac_cpp='$CXXCPP $CPPFLAGS'
30244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30247
Reid Spencerabec8f92004-10-27 23:03:44 +000030248 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030249/* confdefs.h. */
30250_ACEOF
30251cat confdefs.h >>conftest.$ac_ext
30252cat >>conftest.$ac_ext <<_ACEOF
30253/* end confdefs.h. */
30254#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030255int
30256main ()
30257{
30258float f; std::isinf(f)}
30259 ;
30260 return 0;
30261}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030262_ACEOF
30263rm -f conftest.$ac_objext
30264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030265 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030272 { ac_try='test -z "$ac_cxx_werror_flag"
30273 || test ! -s conftest.err'
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285 ac_cv_func_std_isinf_in_cmath=yes
30286else
30287 echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
30290ac_cv_func_std_isinf_in_cmath=no
30291fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030293 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030294ac_cpp='$CPP $CPPFLAGS'
30295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30297ac_compiler_gnu=$ac_cv_c_compiler_gnu
30298
30299fi
30300echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30301echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030302
30303if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030304
30305cat >>confdefs.h <<\_ACEOF
30306#define HAVE_STD_ISINF_IN_CMATH 1
30307_ACEOF
30308
Reid Spencerabec8f92004-10-27 23:03:44 +000030309fi
30310
Brian Gaeked59a6472004-07-21 03:33:58 +000030311echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30312echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30313if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30315else
30316 ac_ext=cc
30317ac_cpp='$CXXCPP $CPPFLAGS'
30318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30321
Reid Spencerabec8f92004-10-27 23:03:44 +000030322 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000030323/* confdefs.h. */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h. */
30328#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030329int
30330main ()
30331{
30332float f; finite(f);
30333 ;
30334 return 0;
30335}
Brian Gaeked59a6472004-07-21 03:33:58 +000030336_ACEOF
30337rm -f conftest.$ac_objext
30338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030339 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030346 { ac_try='test -z "$ac_cxx_werror_flag"
30347 || test ! -s conftest.err'
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; } &&
30353 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 ac_cv_func_finite_in_ieeefp_h=yes
30360else
30361 echo "$as_me: failed program was:" >&5
30362sed 's/^/| /' conftest.$ac_ext >&5
30363
30364ac_cv_func_finite_in_ieeefp_h=no
30365fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030367 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030368ac_cpp='$CPP $CPPFLAGS'
30369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371ac_compiler_gnu=$ac_cv_c_compiler_gnu
30372
30373fi
30374echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30375echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030376
Brian Gaeke6802b552004-10-28 05:06:45 +000030377if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030378
30379cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030380#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030381_ACEOF
30382
Reid Spencerabec8f92004-10-27 23:03:44 +000030383fi
30384
30385
30386
John Criswell7a73b802003-06-30 21:59:07 +000030387
30388
30389for ac_header in stdlib.h unistd.h
30390do
30391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30392if eval "test \"\${$as_ac_Header+set}\" = set"; then
30393 echo "$as_me:$LINENO: checking for $ac_header" >&5
30394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30395if eval "test \"\${$as_ac_Header+set}\" = set"; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30397fi
30398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30400else
30401 # Is the header compilable?
30402echo "$as_me:$LINENO: checking $ac_header usability" >&5
30403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30404cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030405/* confdefs.h. */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030410$ac_includes_default
30411#include <$ac_header>
30412_ACEOF
30413rm -f conftest.$ac_objext
30414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030415 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030416 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030417 grep -v '^ *+' conftest.er1 >conftest.err
30418 rm -f conftest.er1
30419 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030422 { ac_try='test -z "$ac_c_werror_flag"
30423 || test ! -s conftest.err'
30424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425 (eval $ac_try) 2>&5
30426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 ac_header_compiler=yes
30436else
30437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030438sed 's/^/| /' conftest.$ac_ext >&5
30439
John Criswell7a73b802003-06-30 21:59:07 +000030440ac_header_compiler=no
30441fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30444echo "${ECHO_T}$ac_header_compiler" >&6
30445
30446# Is the header present?
30447echo "$as_me:$LINENO: checking $ac_header presence" >&5
30448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30449cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030450/* confdefs.h. */
30451_ACEOF
30452cat confdefs.h >>conftest.$ac_ext
30453cat >>conftest.$ac_ext <<_ACEOF
30454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030455#include <$ac_header>
30456_ACEOF
30457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30459 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030460 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030461 rm -f conftest.er1
30462 cat conftest.err >&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } >/dev/null; then
30465 if test -s conftest.err; then
30466 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030468 else
30469 ac_cpp_err=
30470 fi
30471else
30472 ac_cpp_err=yes
30473fi
30474if test -z "$ac_cpp_err"; then
30475 ac_header_preproc=yes
30476else
30477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030478sed 's/^/| /' conftest.$ac_ext >&5
30479
John Criswell7a73b802003-06-30 21:59:07 +000030480 ac_header_preproc=no
30481fi
30482rm -f conftest.err conftest.$ac_ext
30483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30484echo "${ECHO_T}$ac_header_preproc" >&6
30485
30486# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30488 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30493 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030494 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030495 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30503echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030508 (
30509 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030510## ----------------------------------- ##
30511## Report this to llvmbugs@cs.uiuc.edu ##
30512## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030513_ASBOX
30514 ) |
30515 sed "s/^/$as_me: WARNING: /" >&2
30516 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030517esac
30518echo "$as_me:$LINENO: checking for $ac_header" >&5
30519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30520if eval "test \"\${$as_ac_Header+set}\" = set"; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30522else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030523 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030524fi
30525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30527
30528fi
30529if test `eval echo '${'$as_ac_Header'}'` = yes; then
30530 cat >>confdefs.h <<_ACEOF
30531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30532_ACEOF
30533
30534fi
30535
30536done
30537
30538
30539for ac_func in getpagesize
30540do
30541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30542echo "$as_me:$LINENO: checking for $ac_func" >&5
30543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30544if eval "test \"\${$as_ac_var+set}\" = set"; then
30545 echo $ECHO_N "(cached) $ECHO_C" >&6
30546else
30547 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030548/* confdefs.h. */
30549_ACEOF
30550cat confdefs.h >>conftest.$ac_ext
30551cat >>conftest.$ac_ext <<_ACEOF
30552/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30555#define $ac_func innocuous_$ac_func
30556
John Criswell7a73b802003-06-30 21:59:07 +000030557/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030558 which can conflict with char $ac_func (); below.
30559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30560 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030561
John Criswell0c38eaf2003-09-10 15:17:25 +000030562#ifdef __STDC__
30563# include <limits.h>
30564#else
30565# include <assert.h>
30566#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030567
30568#undef $ac_func
30569
John Criswell7a73b802003-06-30 21:59:07 +000030570/* Override any gcc2 internal prototype to avoid an error. */
30571#ifdef __cplusplus
30572extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030573{
John Criswell7a73b802003-06-30 21:59:07 +000030574#endif
30575/* We use char because int might match the return type of a gcc2
30576 builtin and then its argument prototype would still apply. */
30577char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030578/* The GNU C library defines this for functions which it implements
30579 to always fail with ENOSYS. Some functions are actually named
30580 something starting with __ and the normal name is an alias. */
30581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30582choke me
30583#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030584char (*f) () = $ac_func;
30585#endif
30586#ifdef __cplusplus
30587}
John Criswell7a73b802003-06-30 21:59:07 +000030588#endif
30589
John Criswell0c38eaf2003-09-10 15:17:25 +000030590int
30591main ()
30592{
30593return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030594 ;
30595 return 0;
30596}
30597_ACEOF
30598rm -f conftest.$ac_objext conftest$ac_exeext
30599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030600 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030607 { ac_try='test -z "$ac_c_werror_flag"
30608 || test ! -s conftest.err'
30609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610 (eval $ac_try) 2>&5
30611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; } &&
30614 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616 (eval $ac_try) 2>&5
30617 ac_status=$?
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; }; then
30620 eval "$as_ac_var=yes"
30621else
30622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030623sed 's/^/| /' conftest.$ac_ext >&5
30624
John Criswell7a73b802003-06-30 21:59:07 +000030625eval "$as_ac_var=no"
30626fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030627rm -f conftest.err conftest.$ac_objext \
30628 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030629fi
30630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30632if test `eval echo '${'$as_ac_var'}'` = yes; then
30633 cat >>confdefs.h <<_ACEOF
30634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30635_ACEOF
30636
30637fi
30638done
30639
30640echo "$as_me:$LINENO: checking for working mmap" >&5
30641echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30642if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30644else
30645 if test "$cross_compiling" = yes; then
30646 ac_cv_func_mmap_fixed_mapped=no
30647else
30648 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030649/* confdefs.h. */
30650_ACEOF
30651cat confdefs.h >>conftest.$ac_ext
30652cat >>conftest.$ac_ext <<_ACEOF
30653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030654$ac_includes_default
30655/* malloc might have been renamed as rpl_malloc. */
30656#undef malloc
30657
30658/* Thanks to Mike Haertel and Jim Avera for this test.
30659 Here is a matrix of mmap possibilities:
30660 mmap private not fixed
30661 mmap private fixed at somewhere currently unmapped
30662 mmap private fixed at somewhere already mapped
30663 mmap shared not fixed
30664 mmap shared fixed at somewhere currently unmapped
30665 mmap shared fixed at somewhere already mapped
30666 For private mappings, we should verify that changes cannot be read()
30667 back from the file, nor mmap's back from the file at a different
30668 address. (There have been systems where private was not correctly
30669 implemented like the infamous i386 svr4.0, and systems where the
30670 VM page cache was not coherent with the file system buffer cache
30671 like early versions of FreeBSD and possibly contemporary NetBSD.)
30672 For shared mappings, we should conversely verify that changes get
30673 propagated back to all the places they're supposed to be.
30674
30675 Grep wants private fixed already mapped.
30676 The main things grep needs to know about mmap are:
30677 * does it exist and is it safe to write into the mmap'd area
30678 * how to use it (BSD variants) */
30679
30680#include <fcntl.h>
30681#include <sys/mman.h>
30682
30683#if !STDC_HEADERS && !HAVE_STDLIB_H
30684char *malloc ();
30685#endif
30686
30687/* This mess was copied from the GNU getpagesize.h. */
30688#if !HAVE_GETPAGESIZE
30689/* Assume that all systems that can run configure have sys/param.h. */
30690# if !HAVE_SYS_PARAM_H
30691# define HAVE_SYS_PARAM_H 1
30692# endif
30693
30694# ifdef _SC_PAGESIZE
30695# define getpagesize() sysconf(_SC_PAGESIZE)
30696# else /* no _SC_PAGESIZE */
30697# if HAVE_SYS_PARAM_H
30698# include <sys/param.h>
30699# ifdef EXEC_PAGESIZE
30700# define getpagesize() EXEC_PAGESIZE
30701# else /* no EXEC_PAGESIZE */
30702# ifdef NBPG
30703# define getpagesize() NBPG * CLSIZE
30704# ifndef CLSIZE
30705# define CLSIZE 1
30706# endif /* no CLSIZE */
30707# else /* no NBPG */
30708# ifdef NBPC
30709# define getpagesize() NBPC
30710# else /* no NBPC */
30711# ifdef PAGESIZE
30712# define getpagesize() PAGESIZE
30713# endif /* PAGESIZE */
30714# endif /* no NBPC */
30715# endif /* no NBPG */
30716# endif /* no EXEC_PAGESIZE */
30717# else /* no HAVE_SYS_PARAM_H */
30718# define getpagesize() 8192 /* punt totally */
30719# endif /* no HAVE_SYS_PARAM_H */
30720# endif /* no _SC_PAGESIZE */
30721
30722#endif /* no HAVE_GETPAGESIZE */
30723
30724int
30725main ()
30726{
30727 char *data, *data2, *data3;
30728 int i, pagesize;
30729 int fd;
30730
30731 pagesize = getpagesize ();
30732
30733 /* First, make a file with some known garbage in it. */
30734 data = (char *) malloc (pagesize);
30735 if (!data)
30736 exit (1);
30737 for (i = 0; i < pagesize; ++i)
30738 *(data + i) = rand ();
30739 umask (0);
30740 fd = creat ("conftest.mmap", 0600);
30741 if (fd < 0)
30742 exit (1);
30743 if (write (fd, data, pagesize) != pagesize)
30744 exit (1);
30745 close (fd);
30746
30747 /* Next, try to mmap the file at a fixed address which already has
30748 something else allocated at it. If we can, also make sure that
30749 we see the same garbage. */
30750 fd = open ("conftest.mmap", O_RDWR);
30751 if (fd < 0)
30752 exit (1);
30753 data2 = (char *) malloc (2 * pagesize);
30754 if (!data2)
30755 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030756 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030757 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030759 exit (1);
30760 for (i = 0; i < pagesize; ++i)
30761 if (*(data + i) != *(data2 + i))
30762 exit (1);
30763
30764 /* Finally, make sure that changes to the mapped area do not
30765 percolate back to the file as seen by read(). (This is a bug on
30766 some variants of i386 svr4.0.) */
30767 for (i = 0; i < pagesize; ++i)
30768 *(data2 + i) = *(data2 + i) + 1;
30769 data3 = (char *) malloc (pagesize);
30770 if (!data3)
30771 exit (1);
30772 if (read (fd, data3, pagesize) != pagesize)
30773 exit (1);
30774 for (i = 0; i < pagesize; ++i)
30775 if (*(data + i) != *(data3 + i))
30776 exit (1);
30777 close (fd);
30778 exit (0);
30779}
30780_ACEOF
30781rm -f conftest$ac_exeext
30782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30783 (eval $ac_link) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30788 (eval $ac_try) 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; }; then
30792 ac_cv_func_mmap_fixed_mapped=yes
30793else
30794 echo "$as_me: program exited with status $ac_status" >&5
30795echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030796sed 's/^/| /' conftest.$ac_ext >&5
30797
John Criswell7a73b802003-06-30 21:59:07 +000030798( exit $ac_status )
30799ac_cv_func_mmap_fixed_mapped=no
30800fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030802fi
30803fi
30804echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30805echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30806if test $ac_cv_func_mmap_fixed_mapped = yes; then
30807
30808cat >>confdefs.h <<\_ACEOF
30809#define HAVE_MMAP 1
30810_ACEOF
30811
30812fi
30813rm -f conftest.mmap
30814
30815echo "$as_me:$LINENO: checking for mmap of files" >&5
30816echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30817if test "${ac_cv_func_mmap_file+set}" = set; then
30818 echo $ECHO_N "(cached) $ECHO_C" >&6
30819else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030820 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030821ac_cpp='$CPP $CPPFLAGS'
30822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30824ac_compiler_gnu=$ac_cv_c_compiler_gnu
30825
30826 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030827 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030828else
30829 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030830
Reid Spencer777ce172004-09-20 04:09:56 +000030831 /* confdefs.h. */
30832_ACEOF
30833cat confdefs.h >>conftest.$ac_ext
30834cat >>conftest.$ac_ext <<_ACEOF
30835/* end confdefs.h. */
30836
John Criswell7a73b802003-06-30 21:59:07 +000030837#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030838#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030839#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030840
30841int
30842main ()
30843{
John Criswell7a73b802003-06-30 21:59:07 +000030844
30845 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030846 fd = creat ("foo",0777);
30847 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30848 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030849 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030850 ;
30851 return 0;
30852}
John Criswell7a73b802003-06-30 21:59:07 +000030853_ACEOF
30854rm -f conftest$ac_exeext
30855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30856 (eval $ac_link) 2>&5
30857 ac_status=$?
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861 (eval $ac_try) 2>&5
30862 ac_status=$?
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); }; }; then
30865 ac_cv_func_mmap_file=yes
30866else
30867 echo "$as_me: program exited with status $ac_status" >&5
30868echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030869sed 's/^/| /' conftest.$ac_ext >&5
30870
John Criswell7a73b802003-06-30 21:59:07 +000030871( exit $ac_status )
30872ac_cv_func_mmap_file=no
30873fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030875fi
30876 ac_ext=c
30877ac_cpp='$CPP $CPPFLAGS'
30878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30880ac_compiler_gnu=$ac_cv_c_compiler_gnu
30881
30882
30883fi
30884echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30885echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30886if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030887
30888cat >>confdefs.h <<\_ACEOF
30889#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030890_ACEOF
30891
30892 MMAP_FILE=yes
30893
30894fi
30895
Reid Spencer7931a782004-12-27 06:15:02 +000030896echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30897echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30898if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30900else
Reid Spencer582a23c2004-12-29 07:07:57 +000030901 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030902 ac_cv_need_dev_zero_for_mmap=yes
30903 else
30904 ac_cv_need_dev_zero_for_mmap=no
30905 fi
30906
30907fi
30908echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30909echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30910if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30911
30912cat >>confdefs.h <<\_ACEOF
30913#define NEED_DEV_ZERO_FOR_MMAP 1
30914_ACEOF
30915
30916fi
John Criswell7a73b802003-06-30 21:59:07 +000030917echo "$as_me:$LINENO: checking for mprotect" >&5
30918echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30919if test "${ac_cv_func_mprotect+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030923/* confdefs.h. */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030928/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30930#define mprotect innocuous_mprotect
30931
John Criswell7a73b802003-06-30 21:59:07 +000030932/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030933 which can conflict with char mprotect (); below.
30934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030936
John Criswell0c38eaf2003-09-10 15:17:25 +000030937#ifdef __STDC__
30938# include <limits.h>
30939#else
30940# include <assert.h>
30941#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030942
30943#undef mprotect
30944
John Criswell7a73b802003-06-30 21:59:07 +000030945/* Override any gcc2 internal prototype to avoid an error. */
30946#ifdef __cplusplus
30947extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030948{
John Criswell7a73b802003-06-30 21:59:07 +000030949#endif
30950/* We use char because int might match the return type of a gcc2
30951 builtin and then its argument prototype would still apply. */
30952char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030953/* The GNU C library defines this for functions which it implements
30954 to always fail with ENOSYS. Some functions are actually named
30955 something starting with __ and the normal name is an alias. */
30956#if defined (__stub_mprotect) || defined (__stub___mprotect)
30957choke me
30958#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030959char (*f) () = mprotect;
30960#endif
30961#ifdef __cplusplus
30962}
John Criswell7a73b802003-06-30 21:59:07 +000030963#endif
30964
John Criswell0c38eaf2003-09-10 15:17:25 +000030965int
30966main ()
30967{
30968return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030969 ;
30970 return 0;
30971}
30972_ACEOF
30973rm -f conftest.$ac_objext conftest$ac_exeext
30974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030975 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030977 grep -v '^ *+' conftest.er1 >conftest.err
30978 rm -f conftest.er1
30979 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030982 { ac_try='test -z "$ac_c_werror_flag"
30983 || test ! -s conftest.err'
30984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985 (eval $ac_try) 2>&5
30986 ac_status=$?
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); }; } &&
30989 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 (eval $ac_try) 2>&5
30992 ac_status=$?
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; }; then
30995 ac_cv_func_mprotect=yes
30996else
30997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030998sed 's/^/| /' conftest.$ac_ext >&5
30999
John Criswell7a73b802003-06-30 21:59:07 +000031000ac_cv_func_mprotect=no
31001fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031002rm -f conftest.err conftest.$ac_objext \
31003 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031004fi
31005echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31006echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31007if test $ac_cv_func_mprotect = yes; then
31008 :
31009else
31010 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31011echo "$as_me: error: Function mprotect() required but not found" >&2;}
31012 { (exit 1); exit 1; }; }
31013fi
31014
31015
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031016if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031017then
Reid Spencer582a23c2004-12-29 07:07:57 +000031018 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31019echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031020fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031021if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031022then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31024echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031025fi
John Criswell7a73b802003-06-30 21:59:07 +000031026
31027
Brian Gaekef3b24102003-11-16 18:38:14 +000031028echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31029echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031030if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31032else
31033 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031034if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031035 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000031036 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031037 if test $? -eq 0 ; then
31038 llvm_cv_llvmgcc_sanity="yes"
31039 fi
31040 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031041fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031042fi
31043echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31044echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31045
31046if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031047 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031048 LLVMCC1=$llvmcc1path
31049
Reid Spencer502935f2004-12-22 05:56:56 +000031050 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031051 LLVMCC1PLUS=$llvmcc1pluspath
31052
Reid Spencer502935f2004-12-22 05:56:56 +000031053 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31054 LLVMGCCDIR=$llvmgccdir
31055
Reid Spencerb5d75b82006-05-09 00:31:01 +000031056 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031057 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31058 LLVMGCC_VERSION=$llvmgccversion
31059
31060 LLVMGCC_MAJVERS=$llvmgccmajvers
31061
Brian Gaekef3b24102003-11-16 18:38:14 +000031062fi
31063
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031064SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031065
31066
Reid Spencere9de0912004-08-20 09:03:57 +000031067# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031068# information into substitutions that will end up in Makefile.config.in
31069# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000031070if test "${prefix}" == "NONE" ; then
31071 prefix="/usr/local"
31072fi
Reid Spencere9de0912004-08-20 09:03:57 +000031073eval LLVM_PREFIX="${prefix}";
31074eval LLVM_BINDIR="${prefix}/bin";
31075eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031076eval LLVM_DATADIR="${prefix}/share/llvm";
31077eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31078eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031079eval LLVM_INCLUDEDIR="${prefix}/include";
31080eval LLVM_INFODIR="${prefix}/info";
31081eval LLVM_MANDIR="${prefix}/man";
31082LLVM_CONFIGTIME=`date`
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031094# Place the various directores into the config.h file as #defines so that we
31095# can know about the installation paths within LLVM.
31096
Reid Spencere9de0912004-08-20 09:03:57 +000031097cat >>confdefs.h <<_ACEOF
31098#define LLVM_PREFIX "$LLVM_PREFIX"
31099_ACEOF
31100
31101
31102cat >>confdefs.h <<_ACEOF
31103#define LLVM_BINDIR "$LLVM_BINDIR"
31104_ACEOF
31105
31106
31107cat >>confdefs.h <<_ACEOF
31108#define LLVM_LIBDIR "$LLVM_LIBDIR"
31109_ACEOF
31110
31111
31112cat >>confdefs.h <<_ACEOF
31113#define LLVM_DATADIR "$LLVM_DATADIR"
31114_ACEOF
31115
31116
31117cat >>confdefs.h <<_ACEOF
31118#define LLVM_DATADIR "$LLVM_DOCSDIR"
31119_ACEOF
31120
31121
31122cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031123#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031124_ACEOF
31125
31126
31127cat >>confdefs.h <<_ACEOF
31128#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31129_ACEOF
31130
31131
31132cat >>confdefs.h <<_ACEOF
31133#define LLVM_INFODIR "$LLVM_INFODIR"
31134_ACEOF
31135
31136
31137cat >>confdefs.h <<_ACEOF
31138#define LLVM_MANDIR "$LLVM_MANDIR"
31139_ACEOF
31140
31141
31142cat >>confdefs.h <<_ACEOF
31143#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31144_ACEOF
31145
31146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031147
31148 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31149
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031150 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31151
31152 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31153
31154 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31155
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031156 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31157
31158
31159 ac_config_files="$ac_config_files Makefile.config"
31160
31161
Reid Spencer1f319422004-11-29 04:56:35 +000031162 ac_config_files="$ac_config_files docs/doxygen.cfg"
31163
31164
Reid Spencere198afc2006-04-20 22:15:30 +000031165 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000031166
31167
Reid Spencerc0682832005-02-24 19:05:19 +000031168 ac_config_commands="$ac_config_commands setup"
31169
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031170 ac_config_commands="$ac_config_commands Makefile"
31171
31172
31173 ac_config_commands="$ac_config_commands Makefile.common"
31174
31175
31176 ac_config_commands="$ac_config_commands examples/Makefile"
31177
31178
31179 ac_config_commands="$ac_config_commands lib/Makefile"
31180
31181
31182 ac_config_commands="$ac_config_commands runtime/Makefile"
31183
31184
31185 ac_config_commands="$ac_config_commands test/Makefile"
31186
31187
31188 ac_config_commands="$ac_config_commands test/Makefile.tests"
31189
31190
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031191 ac_config_commands="$ac_config_commands tools/Makefile"
31192
31193
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031194 ac_config_commands="$ac_config_commands utils/Makefile"
31195
31196
31197 ac_config_commands="$ac_config_commands projects/Makefile"
31198
31199
31200
John Criswell7a73b802003-06-30 21:59:07 +000031201cat >confcache <<\_ACEOF
31202# This file is a shell script that caches the results of configure
31203# tests run on this system so they can be shared between configure
31204# scripts and configure runs, see configure's option --config-cache.
31205# It is not useful on other systems. If it contains results you don't
31206# want to keep, you may remove or edit it.
31207#
31208# config.status only pays attention to the cache file if you give it
31209# the --recheck option to rerun configure.
31210#
John Criswell0c38eaf2003-09-10 15:17:25 +000031211# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000031212# loading this file, other *unset* `ac_cv_foo' will be assigned the
31213# following values.
31214
31215_ACEOF
31216
31217# The following way of writing the cache mishandles newlines in values,
31218# but we know of no workaround that is simple, portable, and efficient.
31219# So, don't put newlines in cache variables' values.
31220# Ultrix sh set writes to stderr and can't be redirected directly,
31221# and sets the high bit in the cache file unless we assign to the vars.
31222{
31223 (set) 2>&1 |
31224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31225 *ac_space=\ *)
31226 # `set' does not quote correctly, so add quotes (double-quote
31227 # substitution turns \\\\ into \\, and sed turns \\ into \).
31228 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031229 "s/'/'\\\\''/g;
31230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000031231 ;;
31232 *)
31233 # `set' quotes correctly as required by POSIX, so do not add quotes.
31234 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000031236 ;;
31237 esac;
31238} |
31239 sed '
31240 t clear
31241 : clear
31242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31243 t end
31244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31245 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000031246if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000031247 if test -w $cache_file; then
31248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31249 cat confcache >$cache_file
31250 else
31251 echo "not updating unwritable cache $cache_file"
31252 fi
31253fi
31254rm -f confcache
31255
31256test "x$prefix" = xNONE && prefix=$ac_default_prefix
31257# Let make expand exec_prefix.
31258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31259
31260# VPATH may cause trouble with some makes, so we remove $(srcdir),
31261# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31262# trailing colons and then remove the whole line if VPATH becomes empty
31263# (actually we leave an empty line to preserve line numbers).
31264if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000031266s/:*\$(srcdir):*/:/;
31267s/:*\${srcdir}:*/:/;
31268s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031269s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000031270s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031271s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000031272}'
31273fi
31274
31275DEFS=-DHAVE_CONFIG_H
31276
John Criswell0c38eaf2003-09-10 15:17:25 +000031277ac_libobjs=
31278ac_ltlibobjs=
31279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31280 # 1. Remove the extension, and $U if already installed.
31281 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031283 # 2. Add them.
31284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31286done
31287LIBOBJS=$ac_libobjs
31288
31289LTLIBOBJS=$ac_ltlibobjs
31290
31291
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031292if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31293 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31294Usually this means the macro was only invoked conditionally." >&5
31295echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31296Usually this means the macro was only invoked conditionally." >&2;}
31297 { (exit 1); exit 1; }; }
31298fi
31299if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31300 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31301Usually this means the macro was only invoked conditionally." >&5
31302echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31303Usually this means the macro was only invoked conditionally." >&2;}
31304 { (exit 1); exit 1; }; }
31305fi
John Criswell7a73b802003-06-30 21:59:07 +000031306
31307: ${CONFIG_STATUS=./config.status}
31308ac_clean_files_save=$ac_clean_files
31309ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31310{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31311echo "$as_me: creating $CONFIG_STATUS" >&6;}
31312cat >$CONFIG_STATUS <<_ACEOF
31313#! $SHELL
31314# Generated by $as_me.
31315# Run this file to recreate the current configuration.
31316# Compiler output produced by configure, useful for debugging
31317# configure, is in config.log if it exists.
31318
31319debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000031320ac_cs_recheck=false
31321ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000031322SHELL=\${CONFIG_SHELL-$SHELL}
31323_ACEOF
31324
31325cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031326## --------------------- ##
31327## M4sh Initialization. ##
31328## --------------------- ##
31329
31330# Be Bourne compatible
31331if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31332 emulate sh
31333 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031334 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31335 # is contrary to our usage. Disable this feature.
31336 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031337elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31338 set -o posix
31339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031340DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031341
John Criswell7a73b802003-06-30 21:59:07 +000031342# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031343if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031344 as_unset=unset
31345else
31346 as_unset=false
31347fi
31348
John Criswell0c38eaf2003-09-10 15:17:25 +000031349
31350# Work around bugs in pre-3.0 UWIN ksh.
31351$as_unset ENV MAIL MAILPATH
31352PS1='$ '
31353PS2='> '
31354PS4='+ '
31355
31356# NLS nuisances.
31357for as_var in \
31358 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31359 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31360 LC_TELEPHONE LC_TIME
31361do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031362 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031363 eval $as_var=C; export $as_var
31364 else
31365 $as_unset $as_var
31366 fi
31367done
31368
31369# Required to use basename.
31370if expr a : '\(a\)' >/dev/null 2>&1; then
31371 as_expr=expr
31372else
31373 as_expr=false
31374fi
31375
31376if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31377 as_basename=basename
31378else
31379 as_basename=false
31380fi
John Criswell7a73b802003-06-30 21:59:07 +000031381
31382
31383# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031384as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31386 X"$0" : 'X\(//\)$' \| \
31387 X"$0" : 'X\(/\)$' \| \
31388 . : '\(.\)' 2>/dev/null ||
31389echo X/"$0" |
31390 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31391 /^X\/\(\/\/\)$/{ s//\1/; q; }
31392 /^X\/\(\/\).*/{ s//\1/; q; }
31393 s/.*/./; q'`
31394
John Criswell0c38eaf2003-09-10 15:17:25 +000031395
John Criswell7a73b802003-06-30 21:59:07 +000031396# PATH needs CR, and LINENO needs CR and PATH.
31397# Avoid depending upon Character Ranges.
31398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31401as_cr_digits='0123456789'
31402as_cr_alnum=$as_cr_Letters$as_cr_digits
31403
31404# The user is always right.
31405if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031406 echo "#! /bin/sh" >conf$$.sh
31407 echo "exit 0" >>conf$$.sh
31408 chmod +x conf$$.sh
31409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031410 PATH_SEPARATOR=';'
31411 else
31412 PATH_SEPARATOR=:
31413 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031414 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031415fi
31416
31417
31418 as_lineno_1=$LINENO
31419 as_lineno_2=$LINENO
31420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31421 test "x$as_lineno_1" != "x$as_lineno_2" &&
31422 test "x$as_lineno_3" = "x$as_lineno_2" || {
31423 # Find who we are. Look in the path if we contain no path at all
31424 # relative or not.
31425 case $0 in
31426 *[\\/]* ) as_myself=$0 ;;
31427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31428for as_dir in $PATH
31429do
31430 IFS=$as_save_IFS
31431 test -z "$as_dir" && as_dir=.
31432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31433done
31434
31435 ;;
31436 esac
31437 # We did not find ourselves, most probably we were run as `sh COMMAND'
31438 # in which case we are not to be found in the path.
31439 if test "x$as_myself" = x; then
31440 as_myself=$0
31441 fi
31442 if test ! -f "$as_myself"; then
31443 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31444echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31445 { (exit 1); exit 1; }; }
31446 fi
31447 case $CONFIG_SHELL in
31448 '')
31449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31450for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31451do
31452 IFS=$as_save_IFS
31453 test -z "$as_dir" && as_dir=.
31454 for as_base in sh bash ksh sh5; do
31455 case $as_dir in
31456 /*)
31457 if ("$as_dir/$as_base" -c '
31458 as_lineno_1=$LINENO
31459 as_lineno_2=$LINENO
31460 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31461 test "x$as_lineno_1" != "x$as_lineno_2" &&
31462 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031463 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31464 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031465 CONFIG_SHELL=$as_dir/$as_base
31466 export CONFIG_SHELL
31467 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31468 fi;;
31469 esac
31470 done
31471done
31472;;
31473 esac
31474
31475 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31476 # uniformly replaced by the line number. The first 'sed' inserts a
31477 # line-number line before each line; the second 'sed' does the real
31478 # work. The second script uses 'N' to pair each line-number line
31479 # with the numbered line, and appends trailing '-' during
31480 # substitution so that $LINENO is not a special case at line end.
31481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31482 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31483 sed '=' <$as_myself |
31484 sed '
31485 N
31486 s,$,-,
31487 : loop
31488 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31489 t loop
31490 s,-$,,
31491 s,^['$as_cr_digits']*\n,,
31492 ' >$as_me.lineno &&
31493 chmod +x $as_me.lineno ||
31494 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31495echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31496 { (exit 1); exit 1; }; }
31497
31498 # Don't try to exec as it changes $[0], causing all sort of problems
31499 # (the dirname of $[0] is not the place where we might find the
31500 # original and so on. Autoconf is especially sensible to this).
31501 . ./$as_me.lineno
31502 # Exit status is that of the last command.
31503 exit
31504}
31505
31506
31507case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31508 *c*,-n*) ECHO_N= ECHO_C='
31509' ECHO_T=' ' ;;
31510 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31511 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31512esac
31513
31514if expr a : '\(a\)' >/dev/null 2>&1; then
31515 as_expr=expr
31516else
31517 as_expr=false
31518fi
31519
31520rm -f conf$$ conf$$.exe conf$$.file
31521echo >conf$$.file
31522if ln -s conf$$.file conf$$ 2>/dev/null; then
31523 # We could just check for DJGPP; but this test a) works b) is more generic
31524 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31525 if test -f conf$$.exe; then
31526 # Don't use ln at all; we don't have any links
31527 as_ln_s='cp -p'
31528 else
31529 as_ln_s='ln -s'
31530 fi
31531elif ln conf$$.file conf$$ 2>/dev/null; then
31532 as_ln_s=ln
31533else
31534 as_ln_s='cp -p'
31535fi
31536rm -f conf$$ conf$$.exe conf$$.file
31537
John Criswell0c38eaf2003-09-10 15:17:25 +000031538if mkdir -p . 2>/dev/null; then
31539 as_mkdir_p=:
31540else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031541 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031542 as_mkdir_p=false
31543fi
31544
John Criswell7a73b802003-06-30 21:59:07 +000031545as_executable_p="test -f"
31546
31547# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031549
31550# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031552
31553
31554# IFS
31555# We need space, tab and new line, in precisely that order.
31556as_nl='
31557'
31558IFS=" $as_nl"
31559
31560# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031561$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031562
31563exec 6>&1
31564
31565# Open the log real soon, to keep \$[0] and so on meaningful, and to
31566# report actual input values of CONFIG_FILES etc. instead of their
31567# values after options handling. Logging --version etc. is OK.
31568exec 5>>config.log
31569{
31570 echo
31571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31572## Running $as_me. ##
31573_ASBOX
31574} >&5
31575cat >&5 <<_CSEOF
31576
Reid Spencer57d37252006-04-14 03:01:27 +000031577This file was extended by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031578generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031579
31580 CONFIG_FILES = $CONFIG_FILES
31581 CONFIG_HEADERS = $CONFIG_HEADERS
31582 CONFIG_LINKS = $CONFIG_LINKS
31583 CONFIG_COMMANDS = $CONFIG_COMMANDS
31584 $ $0 $@
31585
31586_CSEOF
31587echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31588echo >&5
31589_ACEOF
31590
31591# Files that config.status was made for.
31592if test -n "$ac_config_files"; then
31593 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31594fi
31595
31596if test -n "$ac_config_headers"; then
31597 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31598fi
31599
31600if test -n "$ac_config_links"; then
31601 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31602fi
31603
31604if test -n "$ac_config_commands"; then
31605 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31606fi
31607
31608cat >>$CONFIG_STATUS <<\_ACEOF
31609
31610ac_cs_usage="\
31611\`$as_me' instantiates files from templates according to the
31612current configuration.
31613
31614Usage: $0 [OPTIONS] [FILE]...
31615
31616 -h, --help print this help, then exit
31617 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031618 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031619 -d, --debug don't remove temporary files
31620 --recheck update $as_me by reconfiguring in the same conditions
31621 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031622 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031623 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031624 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031625
31626Configuration files:
31627$config_files
31628
31629Configuration headers:
31630$config_headers
31631
John Criswellc764fbc2003-09-06 15:17:13 +000031632Configuration commands:
31633$config_commands
31634
John Criswell7a73b802003-06-30 21:59:07 +000031635Report bugs to <bug-autoconf@gnu.org>."
31636_ACEOF
31637
31638cat >>$CONFIG_STATUS <<_ACEOF
31639ac_cs_version="\\
Reid Spencer57d37252006-04-14 03:01:27 +000031640llvm config.status 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031641configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31643
Reid Spencer2706f8c2004-09-19 23:53:36 +000031644Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031645This config.status script is free software; the Free Software Foundation
31646gives unlimited permission to copy, distribute and modify it."
31647srcdir=$srcdir
31648INSTALL="$INSTALL"
31649_ACEOF
31650
31651cat >>$CONFIG_STATUS <<\_ACEOF
31652# If no file are specified by the user, then we need to provide default
31653# value. By we need to know if files were specified by the user.
31654ac_need_defaults=:
31655while test $# != 0
31656do
31657 case $1 in
31658 --*=*)
31659 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31660 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031661 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031662 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031663 -*)
31664 ac_option=$1
31665 ac_optarg=$2
31666 ac_shift=shift
31667 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031668 *) # This is not an option, so the user has probably given explicit
31669 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031670 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031671 ac_need_defaults=false;;
31672 esac
31673
John Criswell0c38eaf2003-09-10 15:17:25 +000031674 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031675 # Handling of the options.
31676_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031677cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31679 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031680 --version | --vers* | -V )
31681 echo "$ac_cs_version"; exit 0 ;;
31682 --he | --h)
31683 # Conflict between --help and --header
31684 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31685Try \`$0 --help' for more information." >&5
31686echo "$as_me: error: ambiguous option: $1
31687Try \`$0 --help' for more information." >&2;}
31688 { (exit 1); exit 1; }; };;
31689 --help | --hel | -h )
31690 echo "$ac_cs_usage"; exit 0 ;;
31691 --debug | --d* | -d )
31692 debug=: ;;
31693 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031694 $ac_shift
31695 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031696 ac_need_defaults=false;;
31697 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031698 $ac_shift
31699 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031700 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31703 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031704
31705 # This is an error.
31706 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31707Try \`$0 --help' for more information." >&5
31708echo "$as_me: error: unrecognized option: $1
31709Try \`$0 --help' for more information." >&2;}
31710 { (exit 1); exit 1; }; } ;;
31711
31712 *) ac_config_targets="$ac_config_targets $1" ;;
31713
31714 esac
31715 shift
31716done
31717
John Criswell0c38eaf2003-09-10 15:17:25 +000031718ac_configure_extra_args=
31719
31720if $ac_cs_silent; then
31721 exec 6>/dev/null
31722 ac_configure_extra_args="$ac_configure_extra_args --silent"
31723fi
31724
31725_ACEOF
31726cat >>$CONFIG_STATUS <<_ACEOF
31727if \$ac_cs_recheck; then
31728 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31729 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31730fi
31731
John Criswell7a73b802003-06-30 21:59:07 +000031732_ACEOF
31733
John Criswellc764fbc2003-09-06 15:17:13 +000031734cat >>$CONFIG_STATUS <<_ACEOF
31735#
31736# INIT-COMMANDS section.
31737#
John Criswell7a73b802003-06-30 21:59:07 +000031738
Reid Spencerc0682832005-02-24 19:05:19 +000031739llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031740
31741_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031742
31743
31744
31745cat >>$CONFIG_STATUS <<\_ACEOF
31746for ac_config_target in $ac_config_targets
31747do
31748 case "$ac_config_target" in
31749 # Handling of arguments.
31750 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031751 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencere198afc2006-04-20 22:15:30 +000031752 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031753 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031754 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31755 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031756 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031757 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031758 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031759 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31760 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031761 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031762 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031763 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031764 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031765 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031766 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31767 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031768 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31770echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31771 { (exit 1); exit 1; }; };;
31772 esac
31773done
31774
31775# If the user did not use the arguments to specify the items to instantiate,
31776# then the envvar interface is used. Set only those that are not.
31777# We use the long form for the default assignment because of an extremely
31778# bizarre bug on SunOS 4.1.3.
31779if $ac_need_defaults; then
31780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031783fi
31784
John Criswell0c38eaf2003-09-10 15:17:25 +000031785# Have a temporary directory for convenience. Make it in the build tree
31786# simply because there is no reason to put it here, and in addition,
31787# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031788# Create a temporary directory, and hook for its removal unless debugging.
31789$debug ||
31790{
31791 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31792 trap '{ (exit 1); exit 1; }' 1 2 13 15
31793}
31794
31795# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031796
John Criswell7a73b802003-06-30 21:59:07 +000031797{
John Criswell0c38eaf2003-09-10 15:17:25 +000031798 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031799 test -n "$tmp" && test -d "$tmp"
31800} ||
31801{
John Criswell0c38eaf2003-09-10 15:17:25 +000031802 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031803 (umask 077 && mkdir $tmp)
31804} ||
31805{
John Criswell0c38eaf2003-09-10 15:17:25 +000031806 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031807 { (exit 1); exit 1; }
31808}
31809
31810_ACEOF
31811
31812cat >>$CONFIG_STATUS <<_ACEOF
31813
31814#
31815# CONFIG_FILES section.
31816#
31817
31818# No need to generate the scripts if there are no CONFIG_FILES.
31819# This happens for instance when ./config.status config.h
31820if test -n "\$CONFIG_FILES"; then
31821 # Protect against being on the right side of a sed subst in config.status.
31822 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31823 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31824s,@SHELL@,$SHELL,;t t
31825s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31826s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31827s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31828s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31829s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31830s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31831s,@exec_prefix@,$exec_prefix,;t t
31832s,@prefix@,$prefix,;t t
31833s,@program_transform_name@,$program_transform_name,;t t
31834s,@bindir@,$bindir,;t t
31835s,@sbindir@,$sbindir,;t t
31836s,@libexecdir@,$libexecdir,;t t
31837s,@datadir@,$datadir,;t t
31838s,@sysconfdir@,$sysconfdir,;t t
31839s,@sharedstatedir@,$sharedstatedir,;t t
31840s,@localstatedir@,$localstatedir,;t t
31841s,@libdir@,$libdir,;t t
31842s,@includedir@,$includedir,;t t
31843s,@oldincludedir@,$oldincludedir,;t t
31844s,@infodir@,$infodir,;t t
31845s,@mandir@,$mandir,;t t
31846s,@build_alias@,$build_alias,;t t
31847s,@host_alias@,$host_alias,;t t
31848s,@target_alias@,$target_alias,;t t
31849s,@DEFS@,$DEFS,;t t
31850s,@ECHO_C@,$ECHO_C,;t t
31851s,@ECHO_N@,$ECHO_N,;t t
31852s,@ECHO_T@,$ECHO_T,;t t
31853s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031854s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031855s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031856s,@build@,$build,;t t
31857s,@build_cpu@,$build_cpu,;t t
31858s,@build_vendor@,$build_vendor,;t t
31859s,@build_os@,$build_os,;t t
31860s,@host@,$host,;t t
31861s,@host_cpu@,$host_cpu,;t t
31862s,@host_vendor@,$host_vendor,;t t
31863s,@host_os@,$host_os,;t t
31864s,@target@,$target,;t t
31865s,@target_cpu@,$target_cpu,;t t
31866s,@target_vendor@,$target_vendor,;t t
31867s,@target_os@,$target_os,;t t
31868s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031869s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31870s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031871s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031872s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031873s,@CC@,$CC,;t t
31874s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031875s,@LDFLAGS@,$LDFLAGS,;t t
31876s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031877s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031878s,@EXEEXT@,$EXEEXT,;t t
31879s,@OBJEXT@,$OBJEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031880s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031881s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000031882s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031883s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031884s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031885s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031886s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031887s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031888s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031889s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031890s,@CXX@,$CXX,;t t
31891s,@CXXFLAGS@,$CXXFLAGS,;t t
31892s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031893s,@LEX@,$LEX,;t t
31894s,@LEXLIB@,$LEXLIB,;t t
31895s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031896s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031897s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031898s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031899s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031900s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031901s,@CMP@,$CMP,;t t
31902s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031903s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904s,@FIND@,$FIND,;t t
31905s,@GREP@,$GREP,;t t
31906s,@MKDIR@,$MKDIR,;t t
31907s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031908s,@RANLIB@,$RANLIB,;t t
31909s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031910s,@RM@,$RM,;t t
31911s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031912s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031913s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencercaf0ece2006-06-05 15:54:38 +000031914s,@DOT@,$DOT,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031915s,@GV@,$GV,;t t
Reid Spencerecbd2422006-06-02 23:13:18 +000031916s,@DOTTY@,$DOTTY,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031917s,@PERL@,$PERL,;t t
31918s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031919s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31920s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31921s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031922s,@BZIP2@,$BZIP2,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031923s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031924s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031925s,@GROFF@,$GROFF,;t t
31926s,@GZIP@,$GZIP,;t t
31927s,@POD2HTML@,$POD2HTML,;t t
31928s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031929s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031930s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031931s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031932s,@EGREP@,$EGREP,;t t
31933s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31934s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31935s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31936s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31937s,@LIBADD_DL@,$LIBADD_DL,;t t
31938s,@ECHO@,$ECHO,;t t
31939s,@AR@,$AR,;t t
31940s,@ac_ct_AR@,$ac_ct_AR,;t t
31941s,@STRIP@,$STRIP,;t t
31942s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31943s,@CXXCPP@,$CXXCPP,;t t
31944s,@F77@,$F77,;t t
31945s,@FFLAGS@,$FFLAGS,;t t
31946s,@ac_ct_F77@,$ac_ct_F77,;t t
31947s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031948s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031949s,@LLVMGCC@,$LLVMGCC,;t t
31950s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031951s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031952s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031953s,@LLVMCC1@,$LLVMCC1,;t t
31954s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031955s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031956s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31957s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031958s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031959s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31960s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31961s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31962s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31963s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31964s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31965s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31966s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31967s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31968s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031969s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031970s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031971CEOF
31972
31973_ACEOF
31974
31975 cat >>$CONFIG_STATUS <<\_ACEOF
31976 # Split the substitutions into bite-sized pieces for seds with
31977 # small command number limits, like on Digital OSF/1 and HP-UX.
31978 ac_max_sed_lines=48
31979 ac_sed_frag=1 # Number of current file.
31980 ac_beg=1 # First line for current file.
31981 ac_end=$ac_max_sed_lines # Line after last line for current file.
31982 ac_more_lines=:
31983 ac_sed_cmds=
31984 while $ac_more_lines; do
31985 if test $ac_beg -gt 1; then
31986 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31987 else
31988 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31989 fi
31990 if test ! -s $tmp/subs.frag; then
31991 ac_more_lines=false
31992 else
31993 # The purpose of the label and of the branching condition is to
31994 # speed up the sed processing (if there are no `@' at all, there
31995 # is no need to browse any of the substitutions).
31996 # These are the two extra sed commands mentioned above.
31997 (echo ':t
31998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31999 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000032000 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032001 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032002 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032003 fi
32004 ac_sed_frag=`expr $ac_sed_frag + 1`
32005 ac_beg=$ac_end
32006 ac_end=`expr $ac_end + $ac_max_sed_lines`
32007 fi
32008 done
32009 if test -z "$ac_sed_cmds"; then
32010 ac_sed_cmds=cat
32011 fi
32012fi # test -n "$CONFIG_FILES"
32013
32014_ACEOF
32015cat >>$CONFIG_STATUS <<\_ACEOF
32016for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32018 case $ac_file in
32019 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032020 cat >$tmp/stdin
32021 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32022 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032023 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032025 * ) ac_file_in=$ac_file.in ;;
32026 esac
32027
32028 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32029 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32030$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032031 X"$ac_file" : 'X\(//\)[^/]' \| \
32032 X"$ac_file" : 'X\(//\)$' \| \
32033 X"$ac_file" : 'X\(/\)' \| \
32034 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032035echo X"$ac_file" |
32036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32038 /^X\(\/\/\)$/{ s//\1/; q; }
32039 /^X\(\/\).*/{ s//\1/; q; }
32040 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032041 { if $as_mkdir_p; then
32042 mkdir -p "$ac_dir"
32043 else
32044 as_dir="$ac_dir"
32045 as_dirs=
32046 while test ! -d "$as_dir"; do
32047 as_dirs="$as_dir $as_dirs"
32048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032050 X"$as_dir" : 'X\(//\)[^/]' \| \
32051 X"$as_dir" : 'X\(//\)$' \| \
32052 X"$as_dir" : 'X\(/\)' \| \
32053 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032054echo X"$as_dir" |
32055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32057 /^X\(\/\/\)$/{ s//\1/; q; }
32058 /^X\(\/\).*/{ s//\1/; q; }
32059 s/.*/./; q'`
32060 done
32061 test ! -n "$as_dirs" || mkdir $as_dirs
32062 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32063echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32064 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032065
32066 ac_builddir=.
32067
32068if test "$ac_dir" != .; then
32069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32070 # A "../" for each directory in $ac_dir_suffix.
32071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32072else
32073 ac_dir_suffix= ac_top_builddir=
32074fi
32075
32076case $srcdir in
32077 .) # No --srcdir option. We are building in place.
32078 ac_srcdir=.
32079 if test -z "$ac_top_builddir"; then
32080 ac_top_srcdir=.
32081 else
32082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32083 fi ;;
32084 [\\/]* | ?:[\\/]* ) # Absolute path.
32085 ac_srcdir=$srcdir$ac_dir_suffix;
32086 ac_top_srcdir=$srcdir ;;
32087 *) # Relative path.
32088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32090esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032091
32092# Do not use `cd foo && pwd` to compute absolute paths, because
32093# the directories may not exist.
32094case `pwd` in
32095.) ac_abs_builddir="$ac_dir";;
32096*)
32097 case "$ac_dir" in
32098 .) ac_abs_builddir=`pwd`;;
32099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32101 esac;;
32102esac
32103case $ac_abs_builddir in
32104.) ac_abs_top_builddir=${ac_top_builddir}.;;
32105*)
32106 case ${ac_top_builddir}. in
32107 .) ac_abs_top_builddir=$ac_abs_builddir;;
32108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32110 esac;;
32111esac
32112case $ac_abs_builddir in
32113.) ac_abs_srcdir=$ac_srcdir;;
32114*)
32115 case $ac_srcdir in
32116 .) ac_abs_srcdir=$ac_abs_builddir;;
32117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32119 esac;;
32120esac
32121case $ac_abs_builddir in
32122.) ac_abs_top_srcdir=$ac_top_srcdir;;
32123*)
32124 case $ac_top_srcdir in
32125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32128 esac;;
32129esac
John Criswell7a73b802003-06-30 21:59:07 +000032130
32131
32132 case $INSTALL in
32133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32134 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32135 esac
32136
32137 if test x"$ac_file" != x-; then
32138 { echo "$as_me:$LINENO: creating $ac_file" >&5
32139echo "$as_me: creating $ac_file" >&6;}
32140 rm -f "$ac_file"
32141 fi
32142 # Let's still pretend it is `configure' which instantiates (i.e., don't
32143 # use $as_me), people would be surprised to read:
32144 # /* config.h. Generated by config.status. */
32145 if test x"$ac_file" = x-; then
32146 configure_input=
32147 else
32148 configure_input="$ac_file. "
32149 fi
32150 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000032151 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000032152
32153 # First look for the input files in the build tree, otherwise in the
32154 # src tree.
32155 ac_file_inputs=`IFS=:
32156 for f in $ac_file_in; do
32157 case $f in
32158 -) echo $tmp/stdin ;;
32159 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032160 # Absolute (can't be DOS-style, as IFS=:)
32161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032162echo "$as_me: error: cannot find input file: $f" >&2;}
32163 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032164 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032165 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032166 if test -f "$f"; then
32167 # Build tree
32168 echo "$f"
32169 elif test -f "$srcdir/$f"; then
32170 # Source tree
32171 echo "$srcdir/$f"
32172 else
32173 # /dev/null tree
32174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032175echo "$as_me: error: cannot find input file: $f" >&2;}
32176 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032177 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032178 esac
32179 done` || { (exit 1); exit 1; }
32180_ACEOF
32181cat >>$CONFIG_STATUS <<_ACEOF
32182 sed "$ac_vpsub
32183$extrasub
32184_ACEOF
32185cat >>$CONFIG_STATUS <<\_ACEOF
32186:t
32187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32188s,@configure_input@,$configure_input,;t t
32189s,@srcdir@,$ac_srcdir,;t t
32190s,@abs_srcdir@,$ac_abs_srcdir,;t t
32191s,@top_srcdir@,$ac_top_srcdir,;t t
32192s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32193s,@builddir@,$ac_builddir,;t t
32194s,@abs_builddir@,$ac_abs_builddir,;t t
32195s,@top_builddir@,$ac_top_builddir,;t t
32196s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32197s,@INSTALL@,$ac_INSTALL,;t t
32198" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32199 rm -f $tmp/stdin
32200 if test x"$ac_file" != x-; then
32201 mv $tmp/out $ac_file
32202 else
32203 cat $tmp/out
32204 rm -f $tmp/out
32205 fi
32206
32207done
32208_ACEOF
32209cat >>$CONFIG_STATUS <<\_ACEOF
32210
32211#
32212# CONFIG_HEADER section.
32213#
32214
32215# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32216# NAME is the cpp macro being defined and VALUE is the value it is being given.
32217#
32218# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032219ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32220ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000032221ac_dC=' '
32222ac_dD=',;t'
32223# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000032224ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000032225ac_uB='$,\1#\2define\3'
32226ac_uC=' '
32227ac_uD=',;t'
32228
32229for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32231 case $ac_file in
32232 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032233 cat >$tmp/stdin
32234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032238 * ) ac_file_in=$ac_file.in ;;
32239 esac
32240
32241 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32242echo "$as_me: creating $ac_file" >&6;}
32243
32244 # First look for the input files in the build tree, otherwise in the
32245 # src tree.
32246 ac_file_inputs=`IFS=:
32247 for f in $ac_file_in; do
32248 case $f in
32249 -) echo $tmp/stdin ;;
32250 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032251 # Absolute (can't be DOS-style, as IFS=:)
32252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032253echo "$as_me: error: cannot find input file: $f" >&2;}
32254 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032255 # Do quote $f, to prevent DOS paths from being IFS'd.
32256 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032257 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032258 if test -f "$f"; then
32259 # Build tree
32260 echo "$f"
32261 elif test -f "$srcdir/$f"; then
32262 # Source tree
32263 echo "$srcdir/$f"
32264 else
32265 # /dev/null tree
32266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032267echo "$as_me: error: cannot find input file: $f" >&2;}
32268 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032269 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032270 esac
32271 done` || { (exit 1); exit 1; }
32272 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032273 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000032274
32275_ACEOF
32276
32277# Transform confdefs.h into two sed scripts, `conftest.defines' and
32278# `conftest.undefs', that substitutes the proper values into
32279# config.h.in to produce config.h. The first handles `#define'
32280# templates, and the second `#undef' templates.
32281# And first: Protect against being on the right side of a sed subst in
32282# config.status. Protect against being in an unquoted here document
32283# in config.status.
32284rm -f conftest.defines conftest.undefs
32285# Using a here document instead of a string reduces the quoting nightmare.
32286# Putting comments in sed scripts is not portable.
32287#
32288# `end' is used to avoid that the second main sed command (meant for
32289# 0-ary CPP macros) applies to n-ary macro definitions.
32290# See the Autoconf documentation for `clear'.
32291cat >confdef2sed.sed <<\_ACEOF
32292s/[\\&,]/\\&/g
32293s,[\\$`],\\&,g
32294t clear
32295: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000032296s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032297t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000032298s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032299: end
32300_ACEOF
32301# If some macros were called several times there might be several times
32302# the same #defines, which is useless. Nevertheless, we may not want to
32303# sort them, since we want the *last* AC-DEFINE to be honored.
32304uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32305sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32306rm -f confdef2sed.sed
32307
32308# This sed command replaces #undef with comments. This is necessary, for
32309# example, in the case of _POSIX_SOURCE, which is predefined and required
32310# on some systems where configure will not decide to define it.
32311cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032312s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000032313_ACEOF
32314
32315# Break up conftest.defines because some shells have a limit on the size
32316# of here documents, and old seds have small limits too (100 cmds).
32317echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000032318echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032319echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32320echo ' :' >>$CONFIG_STATUS
32321rm -f conftest.tail
32322while grep . conftest.defines >/dev/null
32323do
32324 # Write a limited-size here document to $tmp/defines.sed.
32325 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32326 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032327 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032328 # Work around the forget-to-reset-the-flag bug.
32329 echo 't clr' >>$CONFIG_STATUS
32330 echo ': clr' >>$CONFIG_STATUS
32331 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32332 echo 'CEOF
32333 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32334 rm -f $tmp/in
32335 mv $tmp/out $tmp/in
32336' >>$CONFIG_STATUS
32337 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32338 rm -f conftest.defines
32339 mv conftest.tail conftest.defines
32340done
32341rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032342echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032343echo >>$CONFIG_STATUS
32344
32345# Break up conftest.undefs because some shells have a limit on the size
32346# of here documents, and old seds have small limits too (100 cmds).
32347echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32348rm -f conftest.tail
32349while grep . conftest.undefs >/dev/null
32350do
32351 # Write a limited-size here document to $tmp/undefs.sed.
32352 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32353 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032354 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032355 # Work around the forget-to-reset-the-flag bug.
32356 echo 't clr' >>$CONFIG_STATUS
32357 echo ': clr' >>$CONFIG_STATUS
32358 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32359 echo 'CEOF
32360 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32361 rm -f $tmp/in
32362 mv $tmp/out $tmp/in
32363' >>$CONFIG_STATUS
32364 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32365 rm -f conftest.undefs
32366 mv conftest.tail conftest.undefs
32367done
32368rm -f conftest.undefs
32369
32370cat >>$CONFIG_STATUS <<\_ACEOF
32371 # Let's still pretend it is `configure' which instantiates (i.e., don't
32372 # use $as_me), people would be surprised to read:
32373 # /* config.h. Generated by config.status. */
32374 if test x"$ac_file" = x-; then
32375 echo "/* Generated by configure. */" >$tmp/config.h
32376 else
32377 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32378 fi
32379 cat $tmp/in >>$tmp/config.h
32380 rm -f $tmp/in
32381 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032382 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32384echo "$as_me: $ac_file is unchanged" >&6;}
32385 else
32386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032388 X"$ac_file" : 'X\(//\)[^/]' \| \
32389 X"$ac_file" : 'X\(//\)$' \| \
32390 X"$ac_file" : 'X\(/\)' \| \
32391 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032392echo X"$ac_file" |
32393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32395 /^X\(\/\/\)$/{ s//\1/; q; }
32396 /^X\(\/\).*/{ s//\1/; q; }
32397 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032398 { if $as_mkdir_p; then
32399 mkdir -p "$ac_dir"
32400 else
32401 as_dir="$ac_dir"
32402 as_dirs=
32403 while test ! -d "$as_dir"; do
32404 as_dirs="$as_dir $as_dirs"
32405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032407 X"$as_dir" : 'X\(//\)[^/]' \| \
32408 X"$as_dir" : 'X\(//\)$' \| \
32409 X"$as_dir" : 'X\(/\)' \| \
32410 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032411echo X"$as_dir" |
32412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32414 /^X\(\/\/\)$/{ s//\1/; q; }
32415 /^X\(\/\).*/{ s//\1/; q; }
32416 s/.*/./; q'`
32417 done
32418 test ! -n "$as_dirs" || mkdir $as_dirs
32419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32420echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32421 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032422
32423 rm -f $ac_file
32424 mv $tmp/config.h $ac_file
32425 fi
32426 else
32427 cat $tmp/config.h
32428 rm -f $tmp/config.h
32429 fi
32430done
32431_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032432cat >>$CONFIG_STATUS <<\_ACEOF
32433
32434#
32435# CONFIG_COMMANDS section.
32436#
32437for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32438 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32439 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32440 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32441$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032442 X"$ac_dest" : 'X\(//\)[^/]' \| \
32443 X"$ac_dest" : 'X\(//\)$' \| \
32444 X"$ac_dest" : 'X\(/\)' \| \
32445 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032446echo X"$ac_dest" |
32447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32449 /^X\(\/\/\)$/{ s//\1/; q; }
32450 /^X\(\/\).*/{ s//\1/; q; }
32451 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032452 { if $as_mkdir_p; then
32453 mkdir -p "$ac_dir"
32454 else
32455 as_dir="$ac_dir"
32456 as_dirs=
32457 while test ! -d "$as_dir"; do
32458 as_dirs="$as_dir $as_dirs"
32459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32460$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32461 X"$as_dir" : 'X\(//\)[^/]' \| \
32462 X"$as_dir" : 'X\(//\)$' \| \
32463 X"$as_dir" : 'X\(/\)' \| \
32464 . : '\(.\)' 2>/dev/null ||
32465echo X"$as_dir" |
32466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32468 /^X\(\/\/\)$/{ s//\1/; q; }
32469 /^X\(\/\).*/{ s//\1/; q; }
32470 s/.*/./; q'`
32471 done
32472 test ! -n "$as_dirs" || mkdir $as_dirs
32473 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32474echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32475 { (exit 1); exit 1; }; }; }
32476
John Criswellc764fbc2003-09-06 15:17:13 +000032477 ac_builddir=.
32478
32479if test "$ac_dir" != .; then
32480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32481 # A "../" for each directory in $ac_dir_suffix.
32482 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32483else
32484 ac_dir_suffix= ac_top_builddir=
32485fi
32486
32487case $srcdir in
32488 .) # No --srcdir option. We are building in place.
32489 ac_srcdir=.
32490 if test -z "$ac_top_builddir"; then
32491 ac_top_srcdir=.
32492 else
32493 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32494 fi ;;
32495 [\\/]* | ?:[\\/]* ) # Absolute path.
32496 ac_srcdir=$srcdir$ac_dir_suffix;
32497 ac_top_srcdir=$srcdir ;;
32498 *) # Relative path.
32499 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32500 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32501esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032502
32503# Do not use `cd foo && pwd` to compute absolute paths, because
32504# the directories may not exist.
32505case `pwd` in
32506.) ac_abs_builddir="$ac_dir";;
32507*)
32508 case "$ac_dir" in
32509 .) ac_abs_builddir=`pwd`;;
32510 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32511 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32512 esac;;
32513esac
32514case $ac_abs_builddir in
32515.) ac_abs_top_builddir=${ac_top_builddir}.;;
32516*)
32517 case ${ac_top_builddir}. in
32518 .) ac_abs_top_builddir=$ac_abs_builddir;;
32519 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32520 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32521 esac;;
32522esac
32523case $ac_abs_builddir in
32524.) ac_abs_srcdir=$ac_srcdir;;
32525*)
32526 case $ac_srcdir in
32527 .) ac_abs_srcdir=$ac_abs_builddir;;
32528 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32529 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32530 esac;;
32531esac
32532case $ac_abs_builddir in
32533.) ac_abs_top_srcdir=$ac_top_srcdir;;
32534*)
32535 case $ac_top_srcdir in
32536 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32537 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32538 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32539 esac;;
32540esac
John Criswellc764fbc2003-09-06 15:17:13 +000032541
32542
32543 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32544echo "$as_me: executing $ac_dest commands" >&6;}
32545 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032546 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32547 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32548 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32549 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32550 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32551 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32552 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32553 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32554 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32555 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32556 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32557 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32558 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32559 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32560 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32561 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32562 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32563 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32564 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32565 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032566 esac
32567done
32568_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032569
32570cat >>$CONFIG_STATUS <<\_ACEOF
32571
32572{ (exit 0); exit 0; }
32573_ACEOF
32574chmod +x $CONFIG_STATUS
32575ac_clean_files=$ac_clean_files_save
32576
32577
32578# configure is writing to config.log, and then calls config.status.
32579# config.status does its own redirection, appending to config.log.
32580# Unfortunately, on DOS this fails, as config.log is still kept open
32581# by configure, so config.status won't be able to write to it; its
32582# output is simply discarded. So we exec the FD to /dev/null,
32583# effectively closing config.log, so it can be properly (re)opened and
32584# appended to by config.status. When coming back to configure, we
32585# need to make the FD available again.
32586if test "$no_create" != yes; then
32587 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032588 ac_config_status_args=
32589 test "$silent" = yes &&
32590 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032591 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032593 exec 5>>config.log
32594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32595 # would make configure fail if this is the last instruction.
32596 $ac_cs_success || { (exit 1); exit 1; }
32597fi
32598
John Criswell12399a12003-09-30 15:55:44 +000032599#
32600# CONFIG_SUBDIRS section.
32601#
32602if test "$no_recursion" != yes; then
32603
32604 # Remove --cache-file and --srcdir arguments so they do not pile up.
32605 ac_sub_configure_args=
32606 ac_prev=
32607 for ac_arg in $ac_configure_args; do
32608 if test -n "$ac_prev"; then
32609 ac_prev=
32610 continue
32611 fi
32612 case $ac_arg in
32613 -cache-file | --cache-file | --cache-fil | --cache-fi \
32614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32615 ac_prev=cache_file ;;
32616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32618 | --c=*)
32619 ;;
32620 --config-cache | -C)
32621 ;;
32622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32623 ac_prev=srcdir ;;
32624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32625 ;;
32626 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32627 ac_prev=prefix ;;
32628 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32629 ;;
32630 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32631 esac
32632 done
32633
32634 # Always prepend --prefix to ensure using the same prefix
32635 # in subdir configurations.
32636 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32637
32638 ac_popdir=`pwd`
32639 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32640
32641 # Do not complain, so a configure script can configure whichever
32642 # parts of a large source tree are present.
32643 test -d $srcdir/$ac_dir || continue
32644
32645 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32646echo "$as_me: configuring in $ac_dir" >&6;}
32647 { if $as_mkdir_p; then
32648 mkdir -p "$ac_dir"
32649 else
32650 as_dir="$ac_dir"
32651 as_dirs=
32652 while test ! -d "$as_dir"; do
32653 as_dirs="$as_dir $as_dirs"
32654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032656 X"$as_dir" : 'X\(//\)[^/]' \| \
32657 X"$as_dir" : 'X\(//\)$' \| \
32658 X"$as_dir" : 'X\(/\)' \| \
32659 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032660echo X"$as_dir" |
32661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32663 /^X\(\/\/\)$/{ s//\1/; q; }
32664 /^X\(\/\).*/{ s//\1/; q; }
32665 s/.*/./; q'`
32666 done
32667 test ! -n "$as_dirs" || mkdir $as_dirs
32668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32669echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32670 { (exit 1); exit 1; }; }; }
32671
32672 ac_builddir=.
32673
32674if test "$ac_dir" != .; then
32675 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32676 # A "../" for each directory in $ac_dir_suffix.
32677 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32678else
32679 ac_dir_suffix= ac_top_builddir=
32680fi
32681
32682case $srcdir in
32683 .) # No --srcdir option. We are building in place.
32684 ac_srcdir=.
32685 if test -z "$ac_top_builddir"; then
32686 ac_top_srcdir=.
32687 else
32688 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32689 fi ;;
32690 [\\/]* | ?:[\\/]* ) # Absolute path.
32691 ac_srcdir=$srcdir$ac_dir_suffix;
32692 ac_top_srcdir=$srcdir ;;
32693 *) # Relative path.
32694 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32695 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32696esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032697
32698# Do not use `cd foo && pwd` to compute absolute paths, because
32699# the directories may not exist.
32700case `pwd` in
32701.) ac_abs_builddir="$ac_dir";;
32702*)
32703 case "$ac_dir" in
32704 .) ac_abs_builddir=`pwd`;;
32705 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32706 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32707 esac;;
32708esac
32709case $ac_abs_builddir in
32710.) ac_abs_top_builddir=${ac_top_builddir}.;;
32711*)
32712 case ${ac_top_builddir}. in
32713 .) ac_abs_top_builddir=$ac_abs_builddir;;
32714 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32715 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32716 esac;;
32717esac
32718case $ac_abs_builddir in
32719.) ac_abs_srcdir=$ac_srcdir;;
32720*)
32721 case $ac_srcdir in
32722 .) ac_abs_srcdir=$ac_abs_builddir;;
32723 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32724 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32725 esac;;
32726esac
32727case $ac_abs_builddir in
32728.) ac_abs_top_srcdir=$ac_top_srcdir;;
32729*)
32730 case $ac_top_srcdir in
32731 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32732 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32733 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32734 esac;;
32735esac
John Criswell12399a12003-09-30 15:55:44 +000032736
32737
32738 cd $ac_dir
32739
32740 # Check for guested configure; otherwise get Cygnus style configure.
32741 if test -f $ac_srcdir/configure.gnu; then
32742 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32743 elif test -f $ac_srcdir/configure; then
32744 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32745 elif test -f $ac_srcdir/configure.in; then
32746 ac_sub_configure=$ac_configure
32747 else
32748 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32749echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32750 ac_sub_configure=
32751 fi
32752
32753 # The recursion is here.
32754 if test -n "$ac_sub_configure"; then
32755 # Make the cache file name correct relative to the subdirectory.
32756 case $cache_file in
32757 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32758 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032759 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032760 esac
32761
32762 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32763echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32764 # The eval makes quoting arguments work.
32765 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032766 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32767 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032768echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32769 { (exit 1); exit 1; }; }
32770 fi
32771
32772 cd $ac_popdir
32773 done
32774fi
32775
Brian Gaekef3b24102003-11-16 18:38:14 +000032776
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032777if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032778 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32779echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032780 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32781echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32782 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32783echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32784 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32785echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32786 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32787echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032788fi