blob: 26b1e058cdd934deec607e98ed18998bad972f51 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell5690c532005-05-18 20:18:40 +00003# Generated by GNU Autoconf 2.59 for llvm 1.6cvs.
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#
11# $LLVM_COPYRIGHT
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-'
John Criswell5690c532005-05-18 20:18:40 +0000428PACKAGE_VERSION='1.6cvs'
429PACKAGE_STRING='llvm 1.6cvs'
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 Criswell7a73b802003-06-30 21:59:07 +0000441# Factoring default headers for most tests.
442ac_includes_default="\
443#include <stdio.h>
444#if HAVE_SYS_TYPES_H
445# include <sys/types.h>
446#endif
447#if HAVE_SYS_STAT_H
448# include <sys/stat.h>
449#endif
450#if STDC_HEADERS
451# include <stdlib.h>
452# include <stddef.h>
453#else
454# if HAVE_STDLIB_H
455# include <stdlib.h>
456# endif
457#endif
458#if HAVE_STRING_H
459# if !STDC_HEADERS && HAVE_MEMORY_H
460# include <memory.h>
461# endif
462# include <string.h>
463#endif
464#if HAVE_STRINGS_H
465# include <strings.h>
466#endif
467#if HAVE_INTTYPES_H
468# include <inttypes.h>
469#else
470# if HAVE_STDINT_H
471# include <stdint.h>
472# endif
473#endif
474#if HAVE_UNISTD_H
475# include <unistd.h>
476#endif"
477
Reid Spencer8a2246f2005-07-13 03:20:14 +0000478ac_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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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 +0000479ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000480
481# Initialize some variables set by options.
482ac_init_help=
483ac_init_version=false
484# The variables have the same names as the options, with
485# dashes changed to underlines.
486cache_file=/dev/null
487exec_prefix=NONE
488no_create=
489no_recursion=
490prefix=NONE
491program_prefix=NONE
492program_suffix=NONE
493program_transform_name=s,x,x,
494silent=
495site=
496srcdir=
497verbose=
498x_includes=NONE
499x_libraries=NONE
500
501# Installation directory options.
502# These are left unexpanded so users can "make install exec_prefix=/foo"
503# and all the variables that are supposed to be based on exec_prefix
504# by default will actually change.
505# Use braces instead of parens because sh, perl, etc. also accept them.
506bindir='${exec_prefix}/bin'
507sbindir='${exec_prefix}/sbin'
508libexecdir='${exec_prefix}/libexec'
509datadir='${prefix}/share'
510sysconfdir='${prefix}/etc'
511sharedstatedir='${prefix}/com'
512localstatedir='${prefix}/var'
513libdir='${exec_prefix}/lib'
514includedir='${prefix}/include'
515oldincludedir='/usr/include'
516infodir='${prefix}/info'
517mandir='${prefix}/man'
518
519ac_prev=
520for ac_option
521do
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
525 ac_prev=
526 continue
527 fi
528
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531 # Accept the important Cygnus configure options, so we can diagnose typos.
532
533 case $ac_option in
534
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 ac_prev=bindir ;;
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 bindir=$ac_optarg ;;
539
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
544
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
551
552 --config-cache | -C)
553 cache_file=config.cache ;;
554
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 ac_prev=datadir ;;
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 | --da=*)
559 datadir=$ac_optarg ;;
560
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
569
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 case $ac_option in
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 *) ac_optarg=yes ;;
580 esac
581 eval "enable_$ac_feature='$ac_optarg'" ;;
582
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
591
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
594 with_gas=yes ;;
595
596 -help | --help | --hel | --he | -h)
597 ac_init_help=long ;;
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
602
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
607
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
614
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 ac_prev=infodir ;;
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
619
620 -libdir | --libdir | --libdi | --libd)
621 ac_prev=libdir ;;
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 libdir=$ac_optarg ;;
624
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
631
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
640
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 ac_prev=mandir ;;
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644 mandir=$ac_optarg ;;
645
646 -nfp | --nfp | --nf)
647 # Obsolete; use --without-fp.
648 with_fp=no ;;
649
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
652 no_create=yes ;;
653
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 no_recursion=yes ;;
657
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
666
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 ac_prev=prefix ;;
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 prefix=$ac_optarg ;;
671
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
678
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
685
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
702
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
705 silent=yes ;;
706
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 ac_prev=sbindir ;;
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 | --sbi=* | --sb=*)
711 sbindir=$ac_optarg ;;
712
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
716 | --sha | --sh)
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 | --sha=* | --sh=*)
722 sharedstatedir=$ac_optarg ;;
723
724 -site | --site | --sit)
725 ac_prev=site ;;
726 -site=* | --site=* | --sit=*)
727 site=$ac_optarg ;;
728
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 ac_prev=srcdir ;;
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 srcdir=$ac_optarg ;;
733
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
740
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
745
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 verbose=yes ;;
748
749 -version | --version | --versio | --versi | --vers | -V)
750 ac_init_version=: ;;
751
752 -with-* | --with-*)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 case $ac_option in
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 *) ac_optarg=yes ;;
762 esac
763 eval "with_$ac_package='$ac_optarg'" ;;
764
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
773
774 --x)
775 # Obsolete; use --with-x.
776 with_x=yes ;;
777
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
784
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
791
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
795 ;;
796
797 *=*)
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
805 export $ac_envvar ;;
806
807 *)
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 ;;
814
815 esac
816done
817
818if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
822fi
823
824# Be sure to have absolute paths.
825for ac_var in exec_prefix prefix
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# Be sure to have absolute paths.
836for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000837 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000838do
839 eval ac_val=$`echo $ac_var`
840 case $ac_val in
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
844 esac
845done
846
847# There might be people who depend on the old broken behavior: `$host'
848# used to hold the argument of --host etc.
849# FIXME: To remove some day.
850build=$build_alias
851host=$host_alias
852target=$target_alias
853
854# FIXME: To remove some day.
855if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
861 cross_compiling=yes
862 fi
863fi
864
865ac_tool_prefix=
866test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868test "$silent" = yes && exec 6>/dev/null
869
870
871# Find the source files, if location was not specified.
872if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000881echo X"$0" |
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
886 s/.*/./; q'`
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
898 else
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
901 fi
902fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000903(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000906srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907ac_env_build_alias_set=${build_alias+set}
908ac_env_build_alias_value=$build_alias
909ac_cv_env_build_alias_set=${build_alias+set}
910ac_cv_env_build_alias_value=$build_alias
911ac_env_host_alias_set=${host_alias+set}
912ac_env_host_alias_value=$host_alias
913ac_cv_env_host_alias_set=${host_alias+set}
914ac_cv_env_host_alias_value=$host_alias
915ac_env_target_alias_set=${target_alias+set}
916ac_env_target_alias_value=$target_alias
917ac_cv_env_target_alias_set=${target_alias+set}
918ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000919ac_env_CC_set=${CC+set}
920ac_env_CC_value=$CC
921ac_cv_env_CC_set=${CC+set}
922ac_cv_env_CC_value=$CC
923ac_env_CFLAGS_set=${CFLAGS+set}
924ac_env_CFLAGS_value=$CFLAGS
925ac_cv_env_CFLAGS_set=${CFLAGS+set}
926ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000927ac_env_LDFLAGS_set=${LDFLAGS+set}
928ac_env_LDFLAGS_value=$LDFLAGS
929ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930ac_cv_env_LDFLAGS_value=$LDFLAGS
931ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_env_CPPFLAGS_value=$CPPFLAGS
933ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000939ac_env_CXX_set=${CXX+set}
940ac_env_CXX_value=$CXX
941ac_cv_env_CXX_set=${CXX+set}
942ac_cv_env_CXX_value=$CXX
943ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944ac_env_CXXFLAGS_value=$CXXFLAGS
945ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000947ac_env_CXXCPP_set=${CXXCPP+set}
948ac_env_CXXCPP_value=$CXXCPP
949ac_cv_env_CXXCPP_set=${CXXCPP+set}
950ac_cv_env_CXXCPP_value=$CXXCPP
951ac_env_F77_set=${F77+set}
952ac_env_F77_value=$F77
953ac_cv_env_F77_set=${F77+set}
954ac_cv_env_F77_value=$F77
955ac_env_FFLAGS_set=${FFLAGS+set}
956ac_env_FFLAGS_value=$FFLAGS
957ac_cv_env_FFLAGS_set=${FFLAGS+set}
958ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000959
960#
961# Report the --help message.
962#
963if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
966 cat <<_ACEOF
John Criswell5690c532005-05-18 20:18:40 +0000967\`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000968
969Usage: $0 [OPTION]... [VAR=VALUE]...
970
971To assign environment variables (e.g., CC, CFLAGS...), specify them as
972VAR=VALUE. See below for descriptions of some of the useful variables.
973
974Defaults for the options are specified in brackets.
975
976Configuration:
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
986
987_ACEOF
988
989 cat <<_ACEOF
990Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000992 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000995
996By default, \`make install' will install all the files in
997\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999for instance \`--prefix=\$HOME'.
1000
1001For better control, use the options below.
1002
1003Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1016_ACEOF
1017
1018 cat <<\_ACEOF
1019
1020System types:
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028 case $ac_init_help in
John Criswell5690c532005-05-18 20:18:40 +00001029 short | recursive ) echo "Configuration of llvm 1.6cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001030 esac
1031 cat <<\_ACEOF
1032
1033Optional Features:
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001036 --enable-optimized
1037 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001038 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001039 --enable-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001041 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001049
1050Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001055 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001061
1062Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001063 CC C compiler command
1064 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001069 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079Report bugs to <llvmbugs@cs.uiuc.edu>.
1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001113
1114# Do not use `cd foo && pwd` to compute absolute paths, because
1115# the directories may not exist.
1116case `pwd` in
1117.) ac_abs_builddir="$ac_dir";;
1118*)
1119 case "$ac_dir" in
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_builddir=${ac_top_builddir}.;;
1127*)
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_srcdir=$ac_srcdir;;
1136*)
1137 case $ac_srcdir in
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_srcdir=$ac_top_srcdir;;
1145*)
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 esac;;
1151esac
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 cd $ac_dir
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1156 echo
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1159 echo
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001162 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001163 echo
1164 $ac_configure --help
1165 else
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 fi
1168 cd $ac_popdir
1169 done
1170fi
1171
1172test -n "$ac_init_help" && exit 0
1173if $ac_init_version; then
1174 cat <<\_ACEOF
John Criswell5690c532005-05-18 20:18:40 +00001175llvm configure 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001177
Reid Spencer2706f8c2004-09-19 23:53:36 +00001178Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001181
1182$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001183_ACEOF
1184 exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
John Criswell5690c532005-05-18 20:18:40 +00001191It was created by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001192generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001193
1194 $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
1212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225 IFS=$as_save_IFS
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001245# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001246# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_configure_args0=
1249ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001250ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001251ac_must_keep_next=false
1252for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001253do
John Criswell0c38eaf2003-09-10 15:17:25 +00001254 for ac_arg
1255 do
1256 case $ac_arg in
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 continue ;;
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 esac
1264 case $ac_pass in
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 2)
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001270 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001271 case $ac_arg in
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 esac
1279 ;;
1280 -* ) ac_must_keep_next=true ;;
1281 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001282 fi
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1285 ac_sep=" "
1286 ;;
1287 esac
1288 done
John Criswell7a73b802003-06-30 21:59:07 +00001289done
John Criswell0c38eaf2003-09-10 15:17:25 +00001290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$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 +00001292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log. We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1300 {
1301 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001302
John Criswell7a73b802003-06-30 21:59:07 +00001303 cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308 echo
1309 # The following way of writing the cache mishandles newlines in values,
1310{
1311 (set) 2>&1 |
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 *ac_space=\ *)
1314 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001317 ;;
1318 *)
1319 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 esac;
1323}
1324 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001325
1326 cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331 echo
1332 for ac_var in $ac_subst_vars
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338
1339 if test -n "$ac_subst_files"; then
1340 cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_files
1347 do
1348 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001349 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001350 done | sort
1351 echo
1352 fi
1353
John Criswell7a73b802003-06-30 21:59:07 +00001354 if test -s confdefs.h; then
1355 cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001361 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001362 echo
1363 fi
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1367 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001368 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 exit $exit_status
1371 ' 0
1372for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 else
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1423 . "$ac_site_file"
1424 fi
1425done
1426
1427if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433 case $cache_file in
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1436 esac
1437 fi
1438else
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441 >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1454 set,)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,set)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,);;
1463 *)
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001472 fi;;
1473 esac
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1476 case $ac_new_val in
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1480 esac
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 esac
1485 fi
1486done
1487if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527
Misha Brukman19098e52005-05-12 22:15:34 +00001528LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529
1530
1531
1532
1533
1534
1535
John Criswell7a73b802003-06-30 21:59:07 +00001536ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001537for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001538 if test -f $ac_dir/install-sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 break
1542 elif 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/shtool; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 break
1550 fi
1551done
1552if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001555 { (exit 1); exit 1; }; }
1556fi
1557ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
John Criswell392aaa32003-07-22 19:18:09 +00001561
Reid Spencer2706f8c2004-09-19 23:53:36 +00001562if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001565echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 fi
John Criswell93e1c722003-09-15 17:04:06 +00001568fi
1569
John Criswell33a911a2003-11-25 20:36:46 +00001570for i in `ls ${srcdir}/projects`
1571do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001572 if test -d ${srcdir}/projects/${i} ; then
1573 case ${i} in
1574 "CVS") ;;
1575 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001576
Reid Spencer4d68ba22004-09-07 16:35:45 +00001577subdirs="$subdirs projects/sample"
1578 ;;
1579 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/Stacker"
1582 ;;
1583 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/llvm-test"
1586 ;;
1587 "llvm-reopt")
1588
1589subdirs="$subdirs projects/llvm-reopt"
1590;;
1591 "llvm-gcc")
1592
1593subdirs="$subdirs projects/llvm-gcc"
1594 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001595 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001597subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001598 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599 "llvm-tv")
1600
1601subdirs="$subdirs projects/llvm-tv"
1602 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001603 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001604
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001605subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001607 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001610 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001611 esac
John Criswell33a911a2003-11-25 20:36:46 +00001612 fi
1613done
John Criswell559a6c12003-09-30 16:31:48 +00001614
John Criswell7a73b802003-06-30 21:59:07 +00001615
1616# Make sure we can run config.sub.
1617$ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622echo "$as_me:$LINENO: checking build system type" >&5
1623echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_build_alias=$build_alias
1628test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641echo "${ECHO_T}$ac_cv_build" >&6
1642build=$ac_cv_build
1643build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648echo "$as_me:$LINENO: checking host system type" >&5
1649echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 ac_cv_host_alias=$host_alias
1654test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661fi
1662echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663echo "${ECHO_T}$ac_cv_host" >&6
1664host=$ac_cv_host
1665host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670echo "$as_me:$LINENO: checking target system type" >&5
1671echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 ac_cv_target_alias=$target_alias
1676test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683fi
1684echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685echo "${ECHO_T}$ac_cv_target" >&6
1686target=$ac_cv_target
1687target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692# The aliases save the names the user supplied, while $host etc.
1693# will get canonicalized.
1694test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1696 NONENONEs,x,x, &&
1697 program_prefix=${target_alias}-
1698
Reid Spencer7b3e8512004-12-24 06:29:05 +00001699echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001705 *-*-aix*)
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1708 *-*-cygwin*)
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-darwin*)
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-freebsd*)
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001717 *-*-hpux*)
1718 llvm_cv_os_type="HP-UX"
1719 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001720 *-*-interix*)
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1723 *-*-linux*)
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1726 *-*-solaris*)
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1729 *-*-win32*)
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1732 *-*-mingw*)
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1735 *)
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001738esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001739fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001742
Reid Spencer7b3e8512004-12-24 06:29:05 +00001743if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001746 { (exit 1); exit 1; }; }
1747fi
1748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750
1751
Reid Spencer7b3e8512004-12-24 06:29:05 +00001752case $llvm_cv_platform_type in
1753 Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001759 LLVM_ON_UNIX=1
1760
1761 LLVM_ON_WIN32=0
1762
Reid Spencer7b3e8512004-12-24 06:29:05 +00001763 ;;
1764 Win32)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_WIN32 1
1768_ACEOF
1769
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001770 LLVM_ON_UNIX=0
1771
1772 LLVM_ON_WIN32=1
1773
Reid Spencer7b3e8512004-12-24 06:29:05 +00001774 ;;
1775esac
1776
Reid Spencer73fb5482004-08-31 14:20:36 +00001777echo "$as_me:$LINENO: checking target architecture" >&5
1778echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001779if test "${llvm_cv_target_arch+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001783 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001784 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001785 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1786 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001787 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001788 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001789 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001790esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001791fi
1792echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1793echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001794
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001795if test "$llvm_cv_target_arch" = "Unknown" ; then
1796 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1797echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1798fi
John Criswell76595452003-07-01 22:07:39 +00001799
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001800ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001801
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001808if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1810set dummy ${ac_tool_prefix}gcc; ac_word=$2
1811echo "$as_me:$LINENO: checking for $ac_word" >&5
1812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813if test "${ac_cv_prog_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815else
1816 if test -n "$CC"; then
1817 ac_cv_prog_CC="$CC" # Let the user override the test.
1818else
1819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
1821do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1829 fi
1830done
1831done
1832
1833fi
1834fi
1835CC=$ac_cv_prog_CC
1836if test -n "$CC"; then
1837 echo "$as_me:$LINENO: result: $CC" >&5
1838echo "${ECHO_T}$CC" >&6
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842fi
1843
1844fi
1845if test -z "$ac_cv_prog_CC"; then
1846 ac_ct_CC=$CC
1847 # Extract the first word of "gcc", so it can be a program name with args.
1848set dummy gcc; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876echo "${ECHO_T}$ac_ct_CC" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882 CC=$ac_ct_CC
1883else
1884 CC="$ac_cv_prog_CC"
1885fi
1886
1887if test -z "$CC"; then
1888 if test -n "$ac_tool_prefix"; then
1889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1890set dummy ${ac_tool_prefix}cc; ac_word=$2
1891echo "$as_me:$LINENO: checking for $ac_word" >&5
1892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893if test "${ac_cv_prog_CC+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC="$CC" # Let the user override the test.
1898else
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH
1901do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_CC="${ac_tool_prefix}cc"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 break 2
1909 fi
1910done
1911done
1912
1913fi
1914fi
1915CC=$ac_cv_prog_CC
1916if test -n "$CC"; then
1917 echo "$as_me:$LINENO: result: $CC" >&5
1918echo "${ECHO_T}$CC" >&6
1919else
1920 echo "$as_me:$LINENO: result: no" >&5
1921echo "${ECHO_T}no" >&6
1922fi
1923
1924fi
1925if test -z "$ac_cv_prog_CC"; then
1926 ac_ct_CC=$CC
1927 # Extract the first word of "cc", so it can be a program name with args.
1928set dummy cc; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_ac_ct_CC="cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948done
1949done
1950
1951fi
1952fi
1953ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954if test -n "$ac_ct_CC"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956echo "${ECHO_T}$ac_ct_CC" >&6
1957else
1958 echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960fi
1961
1962 CC=$ac_ct_CC
1963else
1964 CC="$ac_cv_prog_CC"
1965fi
1966
1967fi
1968if test -z "$CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970set dummy cc; ac_word=$2
1971echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1978else
1979 ac_prog_rejected=no
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988 ac_prog_rejected=yes
1989 continue
1990 fi
1991 ac_cv_prog_CC="cc"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997
1998if test $ac_prog_rejected = yes; then
1999 # We found a bogon in the path, so make sure we never use it.
2000 set dummy $ac_cv_prog_CC
2001 shift
2002 if test $# != 0; then
2003 # We chose a different compiler from the bogus one.
2004 # However, it has the same basename, so the bogon will be chosen
2005 # first if we set CC to just the basename; use the full file name.
2006 shift
2007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008 fi
2009fi
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
2016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021fi
2022if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002025 do
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049
2050fi
2051fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052CC=$ac_cv_prog_CC
2053if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002056else
2057 echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002062 done
2063fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064if test -z "$CC"; then
2065 ac_ct_CC=$CC
2066 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002067do
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069set dummy $ac_prog; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002085 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
2090done
2091
2092fi
2093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002098else
2099 echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002103 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002104done
John Criswell7a73b802003-06-30 21:59:07 +00002105
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002106 CC=$ac_ct_CC
2107fi
2108
John Criswell7a73b802003-06-30 21:59:07 +00002109fi
2110
2111
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002112test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2117
John Criswell7a73b802003-06-30 21:59:07 +00002118# Provide some information about the compiler.
2119echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002121ac_compiler=`set X $ac_compile; echo $2`
2122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123 (eval $ac_compiler --version </dev/null >&5) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128 (eval $ac_compiler -v </dev/null >&5) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133 (eval $ac_compiler -V </dev/null >&5) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137
2138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002139/* confdefs.h. */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002144
John Criswell7a73b802003-06-30 21:59:07 +00002145int
2146main ()
2147{
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002154ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002155# Try to create an executable without -o first, disregard a.out.
2156# It will help us diagnose broken compilers, and finding out an intuition
2157# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002158echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002160ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162 (eval $ac_link_default) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Find the output, starting from the most likely. This scheme is
2167# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168# resort.
2169
2170# Be careful to initialize this variable, since it used to be cached.
2171# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002173# b.out is created by i960 compilers.
2174for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175do
2176 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002177 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002179 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002180 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 # This is the source file.
2182 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002184 # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 # FIXME: I believe we export ac_cv_exeext for Libtool,
2190 # but it would be cool to find out if it's true. Does anybody
2191 # maintain Libtool? --akim.
2192 export ac_cv_exeext
2193 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002196 esac
2197done
2198else
2199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002200sed 's/^/| /' conftest.$ac_ext >&5
2201
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002203See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002204echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002205See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002206 { (exit 77); exit 77; }; }
2207fi
2208
2209ac_exeext=$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6
2212
2213# Check the compiler produces executables we can run. If not, either
2214# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002215echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 cross_compiling=no
2227 else
2228 if test "$cross_compiling" = maybe; then
2229 cross_compiling=yes
2230 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002234echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002237 { (exit 1); exit 1; }; }
2238 fi
2239 fi
2240fi
2241echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6
2243
John Criswell0c38eaf2003-09-10 15:17:25 +00002244rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002245ac_clean_files=$ac_clean_files_save
2246# Check the compiler produces executables we can run. If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6
2252
2253echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256 (eval $ac_link) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2262# work properly (i.e., refer to `conftest.exe'), while it won't with
2263# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002264for ac_file in conftest.exe conftest conftest.*; do
2265 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002266 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002269 export ac_cv_exeext
2270 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002271 * ) break;;
2272 esac
2273done
2274else
John Criswell0c38eaf2003-09-10 15:17:25 +00002275 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002279 { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest$ac_cv_exeext
2283echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286rm -f conftest.$ac_ext
2287EXEEXT=$ac_cv_exeext
2288ac_exeext=$EXEEXT
2289echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291if test "${ac_cv_objext+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002300
John Criswell7a73b802003-06-30 21:59:07 +00002301int
2302main ()
2303{
2304
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.o conftest.obj
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 break;;
2320 esac
2321done
2322else
2323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002330 { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6
2337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002339echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002350
John Criswell7a73b802003-06-30 21:59:07 +00002351int
2352main ()
2353{
2354#ifndef __GNUC__
2355 choke me
2356#endif
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002364 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002366 grep -v '^ *+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 ac_compiler_gnu=yes
2385else
2386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002387sed 's/^/| /' conftest.$ac_ext >&5
2388
John Criswell7a73b802003-06-30 21:59:07 +00002389ac_compiler_gnu=no
2390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002393
2394fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397GCC=`test $ac_compiler_gnu = yes && echo yes`
2398ac_test_CFLAGS=${CFLAGS+set}
2399ac_save_CFLAGS=$CFLAGS
2400CFLAGS="-g"
2401echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002407/* confdefs.h. */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002412
John Criswell7a73b802003-06-30 21:59:07 +00002413int
2414main ()
2415{
2416
2417 ;
2418 return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002423 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002444else
2445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002446sed 's/^/| /' conftest.$ac_ext >&5
2447
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002451fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454if test "$ac_test_CFLAGS" = set; then
2455 CFLAGS=$ac_save_CFLAGS
2456elif test $ac_cv_prog_cc_g = yes; then
2457 if test "$GCC" = yes; then
2458 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002459 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002461 fi
2462else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463 if test "$GCC" = yes; then
2464 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002465 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002467 fi
2468fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 ac_cv_prog_cc_stdc=no
2475ac_save_CC=$CC
2476cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482#include <stdarg.h>
2483#include <stdio.h>
2484#include <sys/types.h>
2485#include <sys/stat.h>
2486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2487struct buf { int x; };
2488FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489static char *e (p, i)
2490 char **p;
2491 int i;
2492{
2493 return p[i];
2494}
2495static char *f (char * (*g) (char **, int), char **p, ...)
2496{
2497 char *s;
2498 va_list v;
2499 va_start (v,p);
2500 s = g (p, va_arg (v,int));
2501 va_end (v);
2502 return s;
2503}
2504
2505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2506 function prototypes and stuff, but not '\xHH' hex character constants.
2507 These don't provoke an error unfortunately, instead are silently treated
2508 as 'x'. The following induces an error, until -std1 is added to get
2509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2510 array size at least. It's necessary to write '\x00'==0 to get something
2511 that's true only with -std1. */
2512int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514int test (int i, double x);
2515struct s1 {int (*f) (int a);};
2516struct s2 {int (*f) (double a);};
2517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518int argc;
2519char **argv;
2520int
2521main ()
2522{
2523return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2524 ;
2525 return 0;
2526}
2527_ACEOF
2528# Don't try gcc -ansi; that turns off useful extensions and
2529# breaks some systems' header files.
2530# AIX -qlanglvl=ansi
2531# Ultrix and OSF/1 -std1
2532# HP-UX 10.20 and later -Ae
2533# HP-UX older versions -Aa -D_HPUX_SOURCE
2534# SVR4 -Xc -D__EXTENSIONS__
2535for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536do
2537 CC="$ac_save_CC $ac_arg"
2538 rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>conftest.er1
2541 ac_status=$?
2542 grep -v '^ *+' conftest.er1 >conftest.err
2543 rm -f conftest.er1
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_c_werror_flag"
2548 || test ! -s conftest.err'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 ac_cv_prog_cc_stdc=$ac_arg
2561break
2562else
2563 echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext
2568done
2569rm -f conftest.$ac_ext conftest.$ac_objext
2570CC=$ac_save_CC
2571
2572fi
2573
2574case "x$ac_cv_prog_cc_stdc" in
2575 x|xno)
2576 echo "$as_me:$LINENO: result: none needed" >&5
2577echo "${ECHO_T}none needed" >&6 ;;
2578 *)
2579 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581 CC="$CC $ac_cv_prog_cc_stdc" ;;
2582esac
2583
2584# Some people use a C++ compiler to compile C. Since we use `exit',
2585# in C++ we need to declare it. In case someone uses the same compiler
2586# for both compiling C and C++ we need to have the C++ compiler decide
2587# the declaration of exit, since it's the most demanding environment.
2588cat >conftest.$ac_ext <<_ACEOF
2589#ifndef __cplusplus
2590 choke me
2591#endif
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002616 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002617 'extern "C" void std::exit (int) throw (); using std::exit;' \
2618 'extern "C" void std::exit (int); using std::exit;' \
2619 'extern "C" void exit (int) throw ();' \
2620 'extern "C" void exit (int);' \
2621 'void exit (int);'
2622do
2623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002629$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002630#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002631int
2632main ()
2633{
2634exit (42);
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002641 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002642 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 :
2662else
2663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002664sed 's/^/| /' conftest.$ac_ext >&5
2665
John Criswell7a73b802003-06-30 21:59:07 +00002666continue
2667fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002675$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002676int
2677main ()
2678{
2679exit (42);
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002686 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 break
2707else
2708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002709sed 's/^/| /' conftest.$ac_ext >&5
2710
John Criswell7a73b802003-06-30 21:59:07 +00002711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002713done
2714rm -f conftest*
2715if test -n "$ac_declaration"; then
2716 echo '#ifdef __cplusplus' >>confdefs.h
2717 echo $ac_declaration >>confdefs.h
2718 echo '#endif' >>confdefs.h
2719fi
2720
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721else
2722 echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2735echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2736if test "${ac_cv_c_bigendian+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
2739 # See if sys/param.h defines the BYTE_ORDER macro.
2740cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746#include <sys/types.h>
2747#include <sys/param.h>
2748
2749int
2750main ()
2751{
2752#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2753 bogus endian macros
2754#endif
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 # It does; now see whether it defined to BIG_ENDIAN or not.
2783cat >conftest.$ac_ext <<_ACEOF
2784/* confdefs.h. */
2785_ACEOF
2786cat confdefs.h >>conftest.$ac_ext
2787cat >>conftest.$ac_ext <<_ACEOF
2788/* end confdefs.h. */
2789#include <sys/types.h>
2790#include <sys/param.h>
2791
2792int
2793main ()
2794{
2795#if BYTE_ORDER != BIG_ENDIAN
2796 not big endian
2797#endif
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
2804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_c_bigendian=yes
2826else
2827 echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830ac_cv_c_bigendian=no
2831fi
2832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837# It does not; compile a test program.
2838if test "$cross_compiling" = yes; then
2839 # try to guess the endianness by grepping values into an object file
2840 ac_cv_c_bigendian=unknown
2841 cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
2847short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2848short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2849void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2850short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2851short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2852void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2853int
2854main ()
2855{
2856 _ascii (); _ebcdic ();
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2884 ac_cv_c_bigendian=yes
2885fi
2886if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2887 if test "$ac_cv_c_bigendian" = unknown; then
2888 ac_cv_c_bigendian=no
2889 else
2890 # finding both strings is unlikely to happen, but who knows?
2891 ac_cv_c_bigendian=unknown
2892 fi
2893fi
2894else
2895 echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900else
2901 cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h. */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h. */
2907int
2908main ()
2909{
2910 /* Are we little or big endian? From Harbison&Steele. */
2911 union
2912 {
2913 long l;
2914 char c[sizeof (long)];
2915 } u;
2916 u.l = 1;
2917 exit (u.c[sizeof (long) - 1] == 1);
2918}
2919_ACEOF
2920rm -f conftest$ac_exeext
2921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_c_bigendian=no
2932else
2933 echo "$as_me: program exited with status $ac_status" >&5
2934echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937( exit $ac_status )
2938ac_cv_c_bigendian=yes
2939fi
2940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2941fi
2942fi
2943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944fi
2945echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2946echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2947case $ac_cv_c_bigendian in
2948 yes)
2949 ENDIAN=big
2950 ;;
2951 no)
2952 ENDIAN=little
2953 ;;
2954 *)
2955 { { echo "$as_me:$LINENO: error: unknown endianness
2956presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2957echo "$as_me: error: unknown endianness
2958presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2959 { (exit 1); exit 1; }; } ;;
2960esac
2961
2962
2963
2964# Check whether --enable-optimized or --disable-optimized was given.
2965if test "${enable_optimized+set}" = set; then
2966 enableval="$enable_optimized"
2967
2968else
2969 enableval=no
2970fi;
2971if test ${enableval} = "no" ; then
2972 ENABLE_OPTIMIZED=
2973
2974else
2975 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2976
2977fi
2978
2979# Check whether --enable-jit or --disable-jit was given.
2980if test "${enable_jit+set}" = set; then
2981 enableval="$enable_jit"
2982
2983else
2984 enableval=default
2985fi;
2986if test ${enableval} = "no"
2987then
2988 JIT=
2989
2990else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002991 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002992 x86) JIT=TARGET_HAS_JIT=1
2993 ;;
2994 Sparc) JIT=TARGET_HAS_JIT=1
2995 ;;
2996 PowerPC) JIT=TARGET_HAS_JIT=1
2997 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00002998 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00002999 ;;
Reid Spencer945de9b2005-04-22 07:27:28 +00003000 Alpha) JIT=
3001 ;;
3002 IA64) JIT=
3003 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003004 *) JIT=
3005 ;;
3006 esac
3007fi
3008
Reid Spencer1f319422004-11-29 04:56:35 +00003009# Check whether --enable-doxygen or --disable-doxygen was given.
3010if test "${enable_doxygen+set}" = set; then
3011 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003012
Reid Spencer1f319422004-11-29 04:56:35 +00003013else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003014 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003015fi;
3016case "$enableval" in
3017 yes) ENABLE_DOXYGEN=1
3018 ;;
3019 no) ENABLE_DOXYGEN=0
3020 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003021 default) ENABLE_DOXYGEN=0
3022 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025 { (exit 1); exit 1; }; } ;;
3026esac
3027
Reid Spencer945de9b2005-04-22 07:27:28 +00003028TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003029# Check whether --enable-targets or --disable-targets was given.
3030if test "${enable_targets+set}" = set; then
3031 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003032
3033else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003034 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003035fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003036case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003037 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003038 host-only)
3039 case "$llvm_cv_target_arch" in
3040 x86) TARGETS_TO_BUILD="X86" ;;
3041 x86_64) TARGETS_TO_BUILD="X86" ;;
3042 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3043 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3044 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3045 IA64) TARGETS_TO_BUILD="IA64" ;;
3046 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003047echo "$as_me: error: Can not set target to build" >&2;}
3048 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003049 esac
3050 ;;
3051 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3052 case "$a_target" in
3053 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3054 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3055 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3056 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3057 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3058 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3059 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3060 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3061echo "$as_me: error: Unrecognized target $a_target" >&2;}
3062 { (exit 1); exit 1; }; } ;;
3063 esac
3064 done
3065 ;;
3066esac
Reid Spencer675f0922005-04-22 17:06:18 +00003067TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003068TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3069
3070
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003071
Reid Spencer59473af2004-12-25 07:31:29 +00003072# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3073if test "${with_llvmgccdir+set}" = set; then
3074 withval="$with_llvmgccdir"
3075
3076else
3077 withval=default
3078fi;
3079case "$withval" in
3080 default) WITH_LLVMGCCDIR=default ;;
3081 /*) WITH_LLVMGCCDIR=$withval ;;
3082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3083echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3084 { (exit 1); exit 1; }; } ;;
3085esac
3086
3087
Reid Spencer945de9b2005-04-22 07:27:28 +00003088
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003089ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3096# On Suns, sometimes $CPP names a directory.
3097if test -n "$CPP" && test -d "$CPP"; then
3098 CPP=
3099fi
3100if test -z "$CPP"; then
3101 if test "${ac_cv_prog_CPP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 # Double quotes because CPP needs to be expanded
3105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106 do
3107 ac_preproc_ok=false
3108for ac_c_preproc_warn_flag in '' yes
3109do
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#ifdef __STDC__
3123# include <limits.h>
3124#else
3125# include <assert.h>
3126#endif
3127 Syntax error
3128_ACEOF
3129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140 else
3141 ac_cpp_err=
3142 fi
3143else
3144 ac_cpp_err=yes
3145fi
3146if test -z "$ac_cpp_err"; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Broken: fails on valid input.
3153continue
3154fi
3155rm -f conftest.err conftest.$ac_ext
3156
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165#include <ac_nonexistent.h>
3166_ACEOF
3167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178 else
3179 ac_cpp_err=
3180 fi
3181else
3182 ac_cpp_err=yes
3183fi
3184if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3186continue
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 # Passes both tests.
3192ac_preproc_ok=:
3193break
3194fi
3195rm -f conftest.err conftest.$ac_ext
3196
3197done
3198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199rm -f conftest.err conftest.$ac_ext
3200if $ac_preproc_ok; then
3201 break
3202fi
3203
3204 done
3205 ac_cv_prog_CPP=$CPP
3206
3207fi
3208 CPP=$ac_cv_prog_CPP
3209else
3210 ac_cv_prog_CPP=$CPP
3211fi
3212echo "$as_me:$LINENO: result: $CPP" >&5
3213echo "${ECHO_T}$CPP" >&6
3214ac_preproc_ok=false
3215for ac_c_preproc_warn_flag in '' yes
3216do
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229#ifdef __STDC__
3230# include <limits.h>
3231#else
3232# include <assert.h>
3233#endif
3234 Syntax error
3235_ACEOF
3236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3249 fi
3250else
3251 ac_cpp_err=yes
3252fi
3253if test -z "$ac_cpp_err"; then
3254 :
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 # Broken: fails on valid input.
3260continue
3261fi
3262rm -f conftest.err conftest.$ac_ext
3263
3264 # OK, works on sane cases. Now check whether non-existent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#include <ac_nonexistent.h>
3273_ACEOF
3274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285 else
3286 ac_cpp_err=
3287 fi
3288else
3289 ac_cpp_err=yes
3290fi
3291if test -z "$ac_cpp_err"; then
3292 # Broken: success on invalid input.
3293continue
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 # Passes both tests.
3299ac_preproc_ok=:
3300break
3301fi
3302rm -f conftest.err conftest.$ac_ext
3303
3304done
3305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3306rm -f conftest.err conftest.$ac_ext
3307if $ac_preproc_ok; then
3308 :
3309else
3310 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3311See \`config.log' for more details." >&5
3312echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3313See \`config.log' for more details." >&2;}
3314 { (exit 1); exit 1; }; }
3315fi
3316
John Criswell7a73b802003-06-30 21:59:07 +00003317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328if test -n "$ac_tool_prefix"; then
3329 for ac_prog in gcc
3330 do
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_CC+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353done
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359 echo "$as_me:$LINENO: result: $CC" >&5
3360echo "${ECHO_T}$CC" >&6
3361else
3362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366 test -n "$CC" && break
3367 done
3368fi
3369if test -z "$CC"; then
3370 ac_ct_CC=$CC
3371 for ac_prog in gcc
3372do
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374set dummy $ac_prog; ac_word=$2
3375echo "$as_me:$LINENO: checking for $ac_word" >&5
3376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395done
3396
3397fi
3398fi
3399ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400if test -n "$ac_ct_CC"; then
3401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402echo "${ECHO_T}$ac_ct_CC" >&6
3403else
3404 echo "$as_me:$LINENO: result: no" >&5
3405echo "${ECHO_T}no" >&6
3406fi
3407
3408 test -n "$ac_ct_CC" && break
3409done
3410
3411 CC=$ac_ct_CC
3412fi
3413
3414
John Criswell0c38eaf2003-09-10 15:17:25 +00003415test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416See \`config.log' for more details." >&5
3417echo "$as_me: error: no acceptable C compiler found in \$PATH
3418See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003419 { (exit 1); exit 1; }; }
3420
3421# Provide some information about the compiler.
3422echo "$as_me:$LINENO:" \
3423 "checking for C compiler version" >&5
3424ac_compiler=`set X $ac_compile; echo $2`
3425{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3426 (eval $ac_compiler --version </dev/null >&5) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }
3430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3431 (eval $ac_compiler -v </dev/null >&5) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }
3435{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3436 (eval $ac_compiler -V </dev/null >&5) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }
3440
3441echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3443if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003452
John Criswell7a73b802003-06-30 21:59:07 +00003453int
3454main ()
3455{
3456#ifndef __GNUC__
3457 choke me
3458#endif
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003466 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_compiler_gnu=yes
3487else
3488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003489sed 's/^/| /' conftest.$ac_ext >&5
3490
John Criswell7a73b802003-06-30 21:59:07 +00003491ac_compiler_gnu=no
3492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003494ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496fi
3497echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3498echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3499GCC=`test $ac_compiler_gnu = yes && echo yes`
3500ac_test_CFLAGS=${CFLAGS+set}
3501ac_save_CFLAGS=$CFLAGS
3502CFLAGS="-g"
3503echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3505if test "${ac_cv_prog_cc_g+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003514
John Criswell7a73b802003-06-30 21:59:07 +00003515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003525 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_cc_g=yes
3546else
3547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003548sed 's/^/| /' conftest.$ac_ext >&5
3549
John Criswell7a73b802003-06-30 21:59:07 +00003550ac_cv_prog_cc_g=no
3551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003553fi
3554echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3556if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3560 CFLAGS="-g -O2"
3561 else
3562 CFLAGS="-g"
3563 fi
3564else
3565 if test "$GCC" = yes; then
3566 CFLAGS="-O2"
3567 else
3568 CFLAGS=
3569 fi
3570fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003571echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3572echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3573if test "${ac_cv_prog_cc_stdc+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576 ac_cv_prog_cc_stdc=no
3577ac_save_CC=$CC
3578cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584#include <stdarg.h>
3585#include <stdio.h>
3586#include <sys/types.h>
3587#include <sys/stat.h>
3588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589struct buf { int x; };
3590FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591static char *e (p, i)
3592 char **p;
3593 int i;
3594{
3595 return p[i];
3596}
3597static char *f (char * (*g) (char **, int), char **p, ...)
3598{
3599 char *s;
3600 va_list v;
3601 va_start (v,p);
3602 s = g (p, va_arg (v,int));
3603 va_end (v);
3604 return s;
3605}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003606
3607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3608 function prototypes and stuff, but not '\xHH' hex character constants.
3609 These don't provoke an error unfortunately, instead are silently treated
3610 as 'x'. The following induces an error, until -std1 is added to get
3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3612 array size at least. It's necessary to write '\x00'==0 to get something
3613 that's true only with -std1. */
3614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
John Criswell0c38eaf2003-09-10 15:17:25 +00003616int test (int i, double x);
3617struct s1 {int (*f) (int a);};
3618struct s2 {int (*f) (double a);};
3619int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620int argc;
3621char **argv;
3622int
3623main ()
3624{
3625return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630# Don't try gcc -ansi; that turns off useful extensions and
3631# breaks some systems' header files.
3632# AIX -qlanglvl=ansi
3633# Ultrix and OSF/1 -std1
3634# HP-UX 10.20 and later -Ae
3635# HP-UX older versions -Aa -D_HPUX_SOURCE
3636# SVR4 -Xc -D__EXTENSIONS__
3637for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638do
3639 CC="$ac_save_CC $ac_arg"
3640 rm -f conftest.$ac_objext
3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003642 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_prog_cc_stdc=$ac_arg
3663break
3664else
3665 echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003669rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003670done
3671rm -f conftest.$ac_ext conftest.$ac_objext
3672CC=$ac_save_CC
3673
3674fi
3675
3676case "x$ac_cv_prog_cc_stdc" in
3677 x|xno)
3678 echo "$as_me:$LINENO: result: none needed" >&5
3679echo "${ECHO_T}none needed" >&6 ;;
3680 *)
3681 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3683 CC="$CC $ac_cv_prog_cc_stdc" ;;
3684esac
3685
John Criswell7a73b802003-06-30 21:59:07 +00003686# Some people use a C++ compiler to compile C. Since we use `exit',
3687# in C++ we need to declare it. In case someone uses the same compiler
3688# for both compiling C and C++ we need to have the C++ compiler decide
3689# the declaration of exit, since it's the most demanding environment.
3690cat >conftest.$ac_ext <<_ACEOF
3691#ifndef __cplusplus
3692 choke me
3693#endif
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003697 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003718 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003719 'extern "C" void std::exit (int) throw (); using std::exit;' \
3720 'extern "C" void std::exit (int); using std::exit;' \
3721 'extern "C" void exit (int) throw ();' \
3722 'extern "C" void exit (int);' \
3723 'void exit (int);'
3724do
3725 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003726/* confdefs.h. */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003731$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003732#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003733int
3734main ()
3735{
3736exit (42);
3737 ;
3738 return 0;
3739}
3740_ACEOF
3741rm -f conftest.$ac_objext
3742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003743 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003750 { ac_try='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 :
3764else
3765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003766sed 's/^/| /' conftest.$ac_ext >&5
3767
John Criswell7a73b802003-06-30 21:59:07 +00003768continue
3769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003771 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003777$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003778int
3779main ()
3780{
3781exit (42);
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003788 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 break
3809else
3810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003811sed 's/^/| /' conftest.$ac_ext >&5
3812
John Criswell7a73b802003-06-30 21:59:07 +00003813fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003815done
3816rm -f conftest*
3817if test -n "$ac_declaration"; then
3818 echo '#ifdef __cplusplus' >>confdefs.h
3819 echo $ac_declaration >>confdefs.h
3820 echo '#endif' >>confdefs.h
3821fi
3822
3823else
3824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003825sed 's/^/| /' conftest.$ac_ext >&5
3826
John Criswell7a73b802003-06-30 21:59:07 +00003827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003829ac_ext=c
3830ac_cpp='$CPP $CPPFLAGS'
3831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003835ac_ext=cc
3836ac_cpp='$CXXCPP $CPPFLAGS'
3837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840if test -n "$ac_tool_prefix"; then
3841 for ac_prog in $CCC g++
3842 do
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003850 if test -n "$CXX"; then
3851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003855do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864done
3865done
3866
3867fi
3868fi
3869CXX=$ac_cv_prog_CXX
3870if test -n "$CXX"; then
3871 echo "$as_me:$LINENO: result: $CXX" >&5
3872echo "${ECHO_T}$CXX" >&6
3873else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876fi
3877
3878 test -n "$CXX" && break
3879 done
3880fi
3881if test -z "$CXX"; then
3882 ac_ct_CXX=$CXX
3883 for ac_prog in $CCC g++
3884do
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886set dummy $ac_prog; ac_word=$2
3887echo "$as_me:$LINENO: checking for $ac_word" >&5
3888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 if test -n "$ac_ct_CXX"; then
3893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_ac_ct_CXX="$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907done
3908
3909fi
3910fi
3911ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912if test -n "$ac_ct_CXX"; then
3913 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914echo "${ECHO_T}$ac_ct_CXX" >&6
3915else
3916 echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6
3918fi
3919
3920 test -n "$ac_ct_CXX" && break
3921done
3922test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3923
3924 CXX=$ac_ct_CXX
3925fi
3926
3927
3928# Provide some information about the compiler.
3929echo "$as_me:$LINENO:" \
3930 "checking for C++ compiler version" >&5
3931ac_compiler=`set X $ac_compile; echo $2`
3932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3933 (eval $ac_compiler --version </dev/null >&5) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }
3937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3938 (eval $ac_compiler -v </dev/null >&5) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }
3942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3943 (eval $ac_compiler -V </dev/null >&5) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947
3948echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3949echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3950if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
John Criswell7a73b802003-06-30 21:59:07 +00003953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003959
3960int
3961main ()
3962{
3963#ifndef __GNUC__
3964 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003965#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003966
3967 ;
3968 return 0;
3969}
John Criswell7a73b802003-06-30 21:59:07 +00003970_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003971rm -f conftest.$ac_objext
3972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003974 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003975 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_compiler_gnu=yes
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998ac_compiler_gnu=no
3999fi
4000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4002
4003fi
4004echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4005echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4006GXX=`test $ac_compiler_gnu = yes && echo yes`
4007ac_test_CXXFLAGS=${CXXFLAGS+set}
4008ac_save_CXXFLAGS=$CXXFLAGS
4009CXXFLAGS="-g"
4010echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4011echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4012if test "${ac_cv_prog_cxx_g+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015 cat >conftest.$ac_ext <<_ACEOF
4016/* confdefs.h. */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h. */
4021
4022int
4023main ()
4024{
4025
4026 ;
4027 return 0;
4028}
4029_ACEOF
4030rm -f conftest.$ac_objext
4031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>conftest.er1
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_cxx_werror_flag"
4040 || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_prog_cxx_g=yes
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057ac_cv_prog_cxx_g=no
4058fi
4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4062echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4063if test "$ac_test_CXXFLAGS" = set; then
4064 CXXFLAGS=$ac_save_CXXFLAGS
4065elif test $ac_cv_prog_cxx_g = yes; then
4066 if test "$GXX" = yes; then
4067 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004068 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004069 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004070 fi
4071else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004072 if test "$GXX" = yes; then
4073 CXXFLAGS="-O2"
4074 else
4075 CXXFLAGS=
4076 fi
John Criswell7a73b802003-06-30 21:59:07 +00004077fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004078for ac_declaration in \
4079 '' \
4080 'extern "C" void std::exit (int) throw (); using std::exit;' \
4081 'extern "C" void std::exit (int); using std::exit;' \
4082 'extern "C" void exit (int) throw ();' \
4083 'extern "C" void exit (int);' \
4084 'void exit (int);'
4085do
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092$ac_declaration
4093#include <stdlib.h>
4094int
4095main ()
4096{
4097exit (42);
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
John Criswell7a73b802003-06-30 21:59:07 +00004124 :
4125else
4126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004127sed 's/^/| /' conftest.$ac_ext >&5
4128
John Criswell7a73b802003-06-30 21:59:07 +00004129continue
4130fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004138$ac_declaration
4139int
4140main ()
4141{
4142exit (42);
4143 ;
4144 return 0;
4145}
John Criswell7a73b802003-06-30 21:59:07 +00004146_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004147rm -f conftest.$ac_objext
4148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004150 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004151 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_cxx_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004169 break
John Criswell7a73b802003-06-30 21:59:07 +00004170else
4171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004172sed 's/^/| /' conftest.$ac_ext >&5
4173
John Criswell7a73b802003-06-30 21:59:07 +00004174fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004176done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004177rm -f conftest*
4178if test -n "$ac_declaration"; then
4179 echo '#ifdef __cplusplus' >>confdefs.h
4180 echo $ac_declaration >>confdefs.h
4181 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004182fi
4183
4184ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
John Criswell7a73b802003-06-30 21:59:07 +00004190echo "$as_me:$LINENO: checking " >&5
4191echo $ECHO_N "checking ... $ECHO_C" >&6
4192if test "${ac_cv_has_flex+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 for ac_prog in flex lex
4196do
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198set dummy $ac_prog; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_prog_LEX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if test -n "$LEX"; then
4205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4206else
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_LEX="$ac_prog"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218done
4219done
4220
4221fi
4222fi
4223LEX=$ac_cv_prog_LEX
4224if test -n "$LEX"; then
4225 echo "$as_me:$LINENO: result: $LEX" >&5
4226echo "${ECHO_T}$LEX" >&6
4227else
4228 echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6
4230fi
4231
4232 test -n "$LEX" && break
4233done
4234test -n "$LEX" || LEX=":"
4235
4236if test -z "$LEXLIB"
4237then
4238 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4239echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4240if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 ac_check_lib_save_LIBS=$LIBS
4244LIBS="-lfl $LIBS"
4245cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004251
4252/* Override any gcc2 internal prototype to avoid an error. */
4253#ifdef __cplusplus
4254extern "C"
4255#endif
4256/* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004259int
4260main ()
4261{
4262yywrap ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext conftest$ac_exeext
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004269 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_fl_yywrap=yes
4290else
4291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004292sed 's/^/| /' conftest.$ac_ext >&5
4293
John Criswell7a73b802003-06-30 21:59:07 +00004294ac_cv_lib_fl_yywrap=no
4295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004296rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004298LIBS=$ac_check_lib_save_LIBS
4299fi
4300echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4301echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4302if test $ac_cv_lib_fl_yywrap = yes; then
4303 LEXLIB="-lfl"
4304else
4305 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4306echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4307if test "${ac_cv_lib_l_yywrap+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 ac_check_lib_save_LIBS=$LIBS
4311LIBS="-ll $LIBS"
4312cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004318
4319/* Override any gcc2 internal prototype to avoid an error. */
4320#ifdef __cplusplus
4321extern "C"
4322#endif
4323/* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4325char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004326int
4327main ()
4328{
4329yywrap ();
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext conftest$ac_exeext
4335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004336 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_lib_l_yywrap=yes
4357else
4358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004359sed 's/^/| /' conftest.$ac_ext >&5
4360
John Criswell7a73b802003-06-30 21:59:07 +00004361ac_cv_lib_l_yywrap=no
4362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004363rm -f conftest.err conftest.$ac_objext \
4364 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004365LIBS=$ac_check_lib_save_LIBS
4366fi
4367echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4368echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4369if test $ac_cv_lib_l_yywrap = yes; then
4370 LEXLIB="-ll"
4371fi
4372
4373fi
4374
4375fi
4376
4377if test "x$LEX" != "x:"; then
4378 echo "$as_me:$LINENO: checking lex output file root" >&5
4379echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4380if test "${ac_cv_prog_lex_root+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 # The minimal lex program is just a single line: %%. But some broken lexes
4384# (Solaris, I think it was) want two %% lines, so accommodate them.
4385cat >conftest.l <<_ACEOF
4386%%
4387%%
4388_ACEOF
4389{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4390 (eval $LEX conftest.l) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4394if test -f lex.yy.c; then
4395 ac_cv_prog_lex_root=lex.yy
4396elif test -f lexyy.c; then
4397 ac_cv_prog_lex_root=lexyy
4398else
4399 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4400echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4401 { (exit 1); exit 1; }; }
4402fi
4403fi
4404echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4405echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4406rm -f conftest.l
4407LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4408
4409echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4410echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4411if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414 # POSIX says lex can declare yytext either as a pointer or an array; the
4415# default is implementation-dependent. Figure out which it is, since
4416# not all implementations provide the %pointer and %array declarations.
4417ac_cv_prog_lex_yytext_pointer=no
4418echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4419ac_save_LIBS=$LIBS
4420LIBS="$LIBS $LEXLIB"
4421cat >conftest.$ac_ext <<_ACEOF
4422`cat $LEX_OUTPUT_ROOT.c`
4423_ACEOF
4424rm -f conftest.$ac_objext conftest$ac_exeext
4425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004426 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004433 { ac_try='test -z "$ac_c_werror_flag"
4434 || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_prog_lex_yytext_pointer=yes
4447else
4448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004449sed 's/^/| /' conftest.$ac_ext >&5
4450
John Criswell7a73b802003-06-30 21:59:07 +00004451fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004452rm -f conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004454LIBS=$ac_save_LIBS
4455rm -f "${LEX_OUTPUT_ROOT}.c"
4456
4457fi
4458echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4459echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4460if test $ac_cv_prog_lex_yytext_pointer = yes; then
4461
4462cat >>confdefs.h <<\_ACEOF
4463#define YYTEXT_POINTER 1
4464_ACEOF
4465
4466fi
4467
4468fi
4469
4470fi
4471echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4472echo "${ECHO_T}$ac_cv_has_flex" >&6
4473if test "$LEX" != "flex"; then
4474 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4475echo "$as_me: error: flex not found but required" >&2;}
4476 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004477else
4478 FLEX=flex
4479
John Criswell7a73b802003-06-30 21:59:07 +00004480fi
4481
4482echo "$as_me:$LINENO: checking " >&5
4483echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004484if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487 for ac_prog in 'bison -y' byacc
4488do
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490set dummy $ac_prog; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_YACC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test -n "$YACC"; then
4497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_YACC="$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512
4513fi
4514fi
4515YACC=$ac_cv_prog_YACC
4516if test -n "$YACC"; then
4517 echo "$as_me:$LINENO: result: $YACC" >&5
4518echo "${ECHO_T}$YACC" >&6
4519else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522fi
4523
4524 test -n "$YACC" && break
4525done
4526test -n "$YACC" || YACC="yacc"
4527
John Criswell7a73b802003-06-30 21:59:07 +00004528fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004529echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4530echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004531if test "$YACC" != "bison -y"; then
4532 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4533echo "$as_me: error: bison not found but required" >&2;}
4534 { (exit 1); exit 1; }; }
4535else
Brian Gaeke12810632004-01-13 06:52:10 +00004536 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004537
4538fi
4539
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004540echo "$as_me:$LINENO: checking for GNU make" >&5
4541echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4542if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004545 llvm_cv_gnu_make_command=''
4546 for a in "$MAKE" make gmake gnumake ; do
4547 if test -z "$a" ; then continue ; fi ;
4548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4549 then
4550 llvm_cv_gnu_make_command=$a ;
4551 break;
John Criswell47fdd832003-07-14 16:52:07 +00004552 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004553 done
John Criswell7a73b802003-06-30 21:59:07 +00004554fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004555echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4556echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4557 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4558 ifGNUmake='' ;
4559 else
4560 ifGNUmake='#' ;
4561 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4562echo "${ECHO_T}\"Not found\"" >&6;
4563 fi
John Criswell7a73b802003-06-30 21:59:07 +00004564
John Criswell7a73b802003-06-30 21:59:07 +00004565
4566echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4568LN_S=$as_ln_s
4569if test "$LN_S" = "ln -s"; then
4570 echo "$as_me:$LINENO: result: yes" >&5
4571echo "${ECHO_T}yes" >&6
4572else
4573 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574echo "${ECHO_T}no, using $LN_S" >&6
4575fi
4576
Reid Spencer8a2d4712004-12-16 17:48:14 +00004577# Extract the first word of "cmp", so it can be a program name with args.
4578set dummy cmp; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_path_CMP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 case $CMP in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600done
4601done
4602
4603 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4604 ;;
4605esac
4606fi
4607CMP=$ac_cv_path_CMP
4608
4609if test -n "$CMP"; then
4610 echo "$as_me:$LINENO: result: $CMP" >&5
4611echo "${ECHO_T}$CMP" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617# Extract the first word of "cp", so it can be a program name with args.
4618set dummy cp; ac_word=$2
4619echo "$as_me:$LINENO: checking for $ac_word" >&5
4620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621if test "${ac_cv_path_CP+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 case $CP in
4625 [\\/]* | ?:[\\/]*)
4626 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4627 ;;
4628 *)
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4644 ;;
4645esac
4646fi
4647CP=$ac_cv_path_CP
4648
4649if test -n "$CP"; then
4650 echo "$as_me:$LINENO: result: $CP" >&5
4651echo "${ECHO_T}$CP" >&6
4652else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655fi
4656
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004657# Extract the first word of "date", so it can be a program name with args.
4658set dummy date; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004664 case $DATE in
4665 [\\/]* | ?:[\\/]*)
4666 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004667 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004668 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004679 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004680done
4681done
John Criswell7a73b802003-06-30 21:59:07 +00004682
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004683 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004684 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004685esac
John Criswell7a73b802003-06-30 21:59:07 +00004686fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004687DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004689if test -n "$DATE"; then
4690 echo "$as_me:$LINENO: result: $DATE" >&5
4691echo "${ECHO_T}$DATE" >&6
4692else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695fi
John Criswell7a73b802003-06-30 21:59:07 +00004696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004697# Extract the first word of "find", so it can be a program name with args.
4698set dummy find; ac_word=$2
4699echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004704 case $FIND in
4705 [\\/]* | ?:[\\/]*)
4706 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4707 ;;
4708 *)
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722
4723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4724 ;;
4725esac
4726fi
4727FIND=$ac_cv_path_FIND
4728
4729if test -n "$FIND"; then
4730 echo "$as_me:$LINENO: result: $FIND" >&5
4731echo "${ECHO_T}$FIND" >&6
4732else
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735fi
4736
4737# Extract the first word of "grep", so it can be a program name with args.
4738set dummy grep; ac_word=$2
4739echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741if test "${ac_cv_path_GREP+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 case $GREP in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4764 ;;
4765esac
4766fi
4767GREP=$ac_cv_path_GREP
4768
4769if test -n "$GREP"; then
4770 echo "$as_me:$LINENO: result: $GREP" >&5
4771echo "${ECHO_T}$GREP" >&6
4772else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777# Extract the first word of "mkdir", so it can be a program name with args.
4778set dummy mkdir; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_path_MKDIR+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 case $MKDIR in
4785 [\\/]* | ?:[\\/]*)
4786 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4787 ;;
4788 *)
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802
4803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4804 ;;
4805esac
4806fi
4807MKDIR=$ac_cv_path_MKDIR
4808
4809if test -n "$MKDIR"; then
4810 echo "$as_me:$LINENO: result: $MKDIR" >&5
4811echo "${ECHO_T}$MKDIR" >&6
4812else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815fi
4816
4817# Extract the first word of "mv", so it can be a program name with args.
4818set dummy mv; ac_word=$2
4819echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821if test "${ac_cv_path_MV+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 case $MV in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841done
4842
4843 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4844 ;;
4845esac
4846fi
4847MV=$ac_cv_path_MV
4848
4849if test -n "$MV"; then
4850 echo "$as_me:$LINENO: result: $MV" >&5
4851echo "${ECHO_T}$MV" >&6
4852else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855fi
4856
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004857if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_prog_RANLIB+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881
4882fi
4883fi
4884RANLIB=$ac_cv_prog_RANLIB
4885if test -n "$RANLIB"; then
4886 echo "$as_me:$LINENO: result: $RANLIB" >&5
4887echo "${ECHO_T}$RANLIB" >&6
4888else
4889 echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891fi
4892
4893fi
4894if test -z "$ac_cv_prog_RANLIB"; then
4895 ac_ct_RANLIB=$RANLIB
4896 # Extract the first word of "ranlib", so it can be a program name with args.
4897set dummy ranlib; ac_word=$2
4898echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 if test -n "$ac_ct_RANLIB"; then
4904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_RANLIB="ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918done
4919
4920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4921fi
4922fi
4923ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924if test -n "$ac_ct_RANLIB"; then
4925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926echo "${ECHO_T}$ac_ct_RANLIB" >&6
4927else
4928 echo "$as_me:$LINENO: result: no" >&5
4929echo "${ECHO_T}no" >&6
4930fi
4931
4932 RANLIB=$ac_ct_RANLIB
4933else
4934 RANLIB="$ac_cv_prog_RANLIB"
4935fi
4936
4937# Extract the first word of "rm", so it can be a program name with args.
4938set dummy rm; ac_word=$2
4939echo "$as_me:$LINENO: checking for $ac_word" >&5
4940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941if test "${ac_cv_path_RM+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 case $RM in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4947 ;;
4948 *)
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960done
4961done
4962
4963 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4964 ;;
4965esac
4966fi
4967RM=$ac_cv_path_RM
4968
4969if test -n "$RM"; then
4970 echo "$as_me:$LINENO: result: $RM" >&5
4971echo "${ECHO_T}$RM" >&6
4972else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975fi
4976
4977# Extract the first word of "sed", so it can be a program name with args.
4978set dummy sed; ac_word=$2
4979echo "$as_me:$LINENO: checking for $ac_word" >&5
4980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981if test "${ac_cv_path_SED+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 case $SED in
4985 [\\/]* | ?:[\\/]*)
4986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4987 ;;
4988 *)
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5004 ;;
5005esac
5006fi
5007SED=$ac_cv_path_SED
5008
5009if test -n "$SED"; then
5010 echo "$as_me:$LINENO: result: $SED" >&5
5011echo "${ECHO_T}$SED" >&6
5012else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017# Extract the first word of "tar", so it can be a program name with args.
5018set dummy tar; ac_word=$2
5019echo "$as_me:$LINENO: checking for $ac_word" >&5
5020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021if test "${ac_cv_path_TAR+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 case $TAR in
5025 [\\/]* | ?:[\\/]*)
5026 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5027 ;;
5028 *)
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041done
5042
5043 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5044 ;;
5045esac
5046fi
5047TAR=$ac_cv_path_TAR
5048
5049if test -n "$TAR"; then
5050 echo "$as_me:$LINENO: result: $TAR" >&5
5051echo "${ECHO_T}$TAR" >&6
5052else
5053 echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055fi
5056
Reid Spencer8a2246f2005-07-13 03:20:14 +00005057# Extract the first word of "Graphviz", so it can be a program name with args.
5058set dummy Graphviz; ac_word=$2
5059echo "$as_me:$LINENO: checking for $ac_word" >&5
5060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064 case $GRAPHVIZ in
5065 [\\/]* | ?:[\\/]*)
5066 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5067 ;;
5068 *)
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080done
5081done
5082
Reid Spencerc232a652005-07-14 02:25:12 +00005083 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005084 ;;
5085esac
5086fi
5087GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5088
5089if test -n "$GRAPHVIZ"; then
5090 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5091echo "${ECHO_T}$GRAPHVIZ" >&6
5092else
5093 echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
5095fi
5096
Reid Spencerc232a652005-07-14 02:25:12 +00005097if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005098
5099cat >>confdefs.h <<\_ACEOF
5100#define HAVE_GRAPHVIZ 1
5101_ACEOF
5102
Reid Spencerc232a652005-07-14 02:25:12 +00005103
5104cat >>confdefs.h <<\_ACEOF
5105#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5106_ACEOF
5107
Reid Spencer8a2246f2005-07-13 03:20:14 +00005108fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005109
5110# Find a good install program. We prefer a C program (faster),
5111# so one script is as good as another. But avoid the broken or
5112# incompatible versions:
5113# SysV /etc/install, /usr/sbin/install
5114# SunOS /usr/etc/install
5115# IRIX /sbin/install
5116# AIX /bin/install
5117# AmigaOS /C/install, which installs bootblocks on floppy discs
5118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5121# OS/2's system install, which has a completely different semantic
5122# ./install, which can be erroneously created by make from ./install.sh.
5123echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5124echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5125if test -z "$INSTALL"; then
5126if test "${ac_cv_path_install+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 # Account for people who put trailing slashes in PATH elements.
5135case $as_dir/ in
5136 ./ | .// | /cC/* | \
5137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5139 /usr/ucb/* ) ;;
5140 *)
5141 # OSF1 and SCO ODT 3.0 have their own names for install.
5142 # Don't use installbsd from OSF since it installs stuff as root
5143 # by default.
5144 for ac_prog in ginstall scoinst install; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5147 if test $ac_prog = install &&
5148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5149 # AIX install. It has an incompatible calling convention.
5150 :
5151 elif test $ac_prog = install &&
5152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5153 # program-specific install script used by HP pwplus--don't use.
5154 :
5155 else
5156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5157 break 3
5158 fi
5159 fi
5160 done
5161 done
5162 ;;
5163esac
5164done
5165
5166
5167fi
5168 if test "${ac_cv_path_install+set}" = set; then
5169 INSTALL=$ac_cv_path_install
5170 else
5171 # As a last resort, use the slow shell script. We don't cache a
5172 # path for INSTALL within a source directory, because that will
5173 # break other packages using the cache if that directory is
5174 # removed, or if the path is relative.
5175 INSTALL=$ac_install_sh
5176 fi
5177fi
5178echo "$as_me:$LINENO: result: $INSTALL" >&5
5179echo "${ECHO_T}$INSTALL" >&6
5180
5181# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5182# It thinks the first close brace ends the variable substitution.
5183test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5184
5185test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5186
5187test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5188
5189
5190# Extract the first word of "bzip2", so it can be a program name with args.
5191set dummy bzip2; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_path_BZIP2+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197 case $BZIP2 in
5198 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5200 ;;
5201 *)
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
5216 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5217 ;;
5218esac
5219fi
5220BZIP2=$ac_cv_path_BZIP2
5221
5222if test -n "$BZIP2"; then
5223 echo "$as_me:$LINENO: result: $BZIP2" >&5
5224echo "${ECHO_T}$BZIP2" >&6
5225else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229
5230# Extract the first word of "dot", so it can be a program name with args.
5231set dummy dot; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_path_DOT+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 case $DOT in
5238 [\\/]* | ?:[\\/]*)
5239 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5240 ;;
5241 *)
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253done
5254done
5255
5256 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5257 ;;
5258esac
5259fi
5260DOT=$ac_cv_path_DOT
5261
5262if test -n "$DOT"; then
5263 echo "$as_me:$LINENO: result: $DOT" >&5
5264echo "${ECHO_T}$DOT" >&6
5265else
5266 echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
5268fi
5269
5270# Extract the first word of "doxygen", so it can be a program name with args.
5271set dummy doxygen; ac_word=$2
5272echo "$as_me:$LINENO: checking for $ac_word" >&5
5273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274if test "${ac_cv_path_DOXYGEN+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277 case $DOXYGEN in
5278 [\\/]* | ?:[\\/]*)
5279 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5280 ;;
5281 *)
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293done
5294done
5295
5296 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5297 ;;
5298esac
5299fi
5300DOXYGEN=$ac_cv_path_DOXYGEN
5301
5302if test -n "$DOXYGEN"; then
5303 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5304echo "${ECHO_T}$DOXYGEN" >&6
5305else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308fi
5309
5310# Extract the first word of "etags", so it can be a program name with args.
5311set dummy etags; ac_word=$2
5312echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314if test "${ac_cv_path_ETAGS+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 case $ETAGS in
5318 [\\/]* | ?:[\\/]*)
5319 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5320 ;;
5321 *)
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333done
5334done
5335
5336 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5337 ;;
5338esac
5339fi
5340ETAGS=$ac_cv_path_ETAGS
5341
5342if test -n "$ETAGS"; then
5343 echo "$as_me:$LINENO: result: $ETAGS" >&5
5344echo "${ECHO_T}$ETAGS" >&6
5345else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348fi
5349
5350# Extract the first word of "groff", so it can be a program name with args.
5351set dummy groff; ac_word=$2
5352echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354if test "${ac_cv_path_GROFF+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 case $GROFF in
5358 [\\/]* | ?:[\\/]*)
5359 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5360 ;;
5361 *)
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373done
5374done
5375
5376 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5377 ;;
5378esac
5379fi
5380GROFF=$ac_cv_path_GROFF
5381
5382if test -n "$GROFF"; then
5383 echo "$as_me:$LINENO: result: $GROFF" >&5
5384echo "${ECHO_T}$GROFF" >&6
5385else
5386 echo "$as_me:$LINENO: result: no" >&5
5387echo "${ECHO_T}no" >&6
5388fi
5389
5390# Extract the first word of "gzip", so it can be a program name with args.
5391set dummy gzip; ac_word=$2
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_path_GZIP+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 case $GZIP in
5398 [\\/]* | ?:[\\/]*)
5399 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5400 ;;
5401 *)
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5417 ;;
5418esac
5419fi
5420GZIP=$ac_cv_path_GZIP
5421
5422if test -n "$GZIP"; then
5423 echo "$as_me:$LINENO: result: $GZIP" >&5
5424echo "${ECHO_T}$GZIP" >&6
5425else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428fi
5429
5430# Extract the first word of "pod2html", so it can be a program name with args.
5431set dummy pod2html; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_path_POD2HTML+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 case $POD2HTML in
5438 [\\/]* | ?:[\\/]*)
5439 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5440 ;;
5441 *)
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454done
5455
5456 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5457 ;;
5458esac
5459fi
5460POD2HTML=$ac_cv_path_POD2HTML
5461
5462if test -n "$POD2HTML"; then
5463 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5464echo "${ECHO_T}$POD2HTML" >&6
5465else
5466 echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6
5468fi
5469
5470# Extract the first word of "pod2man", so it can be a program name with args.
5471set dummy pod2man; ac_word=$2
5472echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474if test "${ac_cv_path_POD2MAN+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477 case $POD2MAN in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5480 ;;
5481 *)
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494done
5495
5496 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5497 ;;
5498esac
5499fi
5500POD2MAN=$ac_cv_path_POD2MAN
5501
5502if test -n "$POD2MAN"; then
5503 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5504echo "${ECHO_T}$POD2MAN" >&6
5505else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508fi
5509
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005510# Extract the first word of "runtest", so it can be a program name with args.
5511set dummy runtest; ac_word=$2
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_path_RUNTEST+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $RUNTEST in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5537 ;;
5538esac
5539fi
5540RUNTEST=$ac_cv_path_RUNTEST
5541
5542if test -n "$RUNTEST"; then
5543 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5544echo "${ECHO_T}$RUNTEST" >&6
5545else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
Reid Spencer0fcb9412004-11-30 08:11:54 +00005550
Reid Spencer0fcb9412004-11-30 08:11:54 +00005551no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005552echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5553echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005554
5555# Check whether --with-tclinclude or --without-tclinclude was given.
5556if test "${with_tclinclude+set}" = set; then
5557 withval="$with_tclinclude"
5558 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005559else
5560 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005561fi;
5562if test "${ac_cv_path_tclsh+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564else
5565
5566if test x"${with_tclinclude}" != x ; then
5567 if test -f ${with_tclinclude}/tclsh ; then
5568 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5569 elif test -f ${with_tclinclude}/src/tclsh ; then
5570 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5571 else
5572 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5573echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5574 { (exit 1); exit 1; }; }
5575 fi
5576fi
5577
Reid Spencer0fcb9412004-11-30 08:11:54 +00005578if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005579 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005580echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005581 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 +00005582do
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005585echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005587if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
Reid Spencercda35f82004-12-02 04:17:20 +00005590 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005591 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005592 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005593 ;;
5594 *)
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005602 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5605 fi
5606done
5607done
5608
5609 ;;
5610esac
5611fi
Reid Spencercda35f82004-12-02 04:17:20 +00005612TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005613
Reid Spencercda35f82004-12-02 04:17:20 +00005614if test -n "$TCLSH"; then
5615 echo "$as_me:$LINENO: result: $TCLSH" >&5
5616echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005617else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620fi
5621
Reid Spencercda35f82004-12-02 04:17:20 +00005622 test -n "$TCLSH" && break
5623done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005624
Reid Spencercda35f82004-12-02 04:17:20 +00005625 if test x"${TCLSH}" = x ; then
5626 ac_cv_path_tclsh='';
5627 else
5628 ac_cv_path_tclsh="${TCLSH}";
5629 fi
5630else
5631 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5632echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5633 TCLSH="${ac_cv_path_tclsh}"
5634
5635fi
5636
5637fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005638
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005639# Extract the first word of "zip", so it can be a program name with args.
5640set dummy zip; ac_word=$2
5641echo "$as_me:$LINENO: checking for $ac_word" >&5
5642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643if test "${ac_cv_path_ZIP+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 case $ZIP in
5647 [\\/]* | ?:[\\/]*)
5648 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5649 ;;
5650 *)
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662done
5663done
5664
5665 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5666 ;;
5667esac
5668fi
5669ZIP=$ac_cv_path_ZIP
5670
5671if test -n "$ZIP"; then
5672 echo "$as_me:$LINENO: result: $ZIP" >&5
5673echo "${ECHO_T}$ZIP" >&6
5674else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677fi
5678
5679
5680echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5681echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5682if test "${llvm_cv_link_use_r+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005686ac_cpp='$CPP $CPPFLAGS'
5687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005691 oldcflags="$CFLAGS"
5692 CFLAGS="$CFLAGS -Wl,-R."
5693 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005699
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005700int
5701main ()
5702{
5703int main() { return 0; }
5704 ;
5705 return 0;
5706}
John Criswell47fdd832003-07-14 16:52:07 +00005707_ACEOF
5708rm -f conftest.$ac_objext conftest$ac_exeext
5709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005710 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005730 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005731else
John Criswell47fdd832003-07-14 16:52:07 +00005732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005733sed 's/^/| /' conftest.$ac_ext >&5
5734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005735llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005737rm -f conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005739 CFLAGS="$oldcflags"
5740 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005741ac_cpp='$CPP $CPPFLAGS'
5742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005746
John Criswell7a73b802003-06-30 21:59:07 +00005747fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005748echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5749echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5750if test "$llvm_cv_link_use_r" = yes ; then
5751
5752cat >>confdefs.h <<\_ACEOF
5753#define HAVE_LINK_R 1
5754_ACEOF
5755
John Criswell47fdd832003-07-14 16:52:07 +00005756 fi
John Criswell47fdd832003-07-14 16:52:07 +00005757
John Criswell47fdd832003-07-14 16:52:07 +00005758
John Criswell47fdd832003-07-14 16:52:07 +00005759
John Criswell7a73b802003-06-30 21:59:07 +00005760
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005761echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5762echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5763if test "${ac_cv_c_const+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h. */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h. */
5772
5773int
5774main ()
5775{
5776/* FIXME: Include the comments suggested by Paul. */
5777#ifndef __cplusplus
5778 /* Ultrix mips cc rejects this. */
5779 typedef int charset[2];
5780 const charset x;
5781 /* SunOS 4.1.1 cc rejects this. */
5782 char const *const *ccp;
5783 char **p;
5784 /* NEC SVR4.0.2 mips cc rejects this. */
5785 struct point {int x, y;};
5786 static struct point const zero = {0,0};
5787 /* AIX XL C 1.02.0.0 rejects this.
5788 It does not let you subtract one const X* pointer from another in
5789 an arm of an if-expression whose if-part is not a constant
5790 expression */
5791 const char *g = "string";
5792 ccp = &g + (g ? g-g : 0);
5793 /* HPUX 7.0 cc rejects these. */
5794 ++ccp;
5795 p = (char**) ccp;
5796 ccp = (char const *const *) p;
5797 { /* SCO 3.2v4 cc rejects this. */
5798 char *t;
5799 char const *s = 0 ? (char *) 0 : (char const *) 0;
5800
5801 *t++ = 0;
5802 }
5803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5804 int x[] = {25, 17};
5805 const int *foo = &x[0];
5806 ++foo;
5807 }
5808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5809 typedef const int *iptr;
5810 iptr p = 0;
5811 ++p;
5812 }
5813 { /* AIX XL C 1.02.0.0 rejects this saying
5814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5815 struct s { int j; const int *ap[3]; };
5816 struct s *b; b->j = 5;
5817 }
5818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5819 const int foo = 10;
5820 }
5821#endif
5822
5823 ;
5824 return 0;
5825}
5826_ACEOF
5827rm -f conftest.$ac_objext
5828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_cv_c_const=yes
5850else
5851 echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854ac_cv_c_const=no
5855fi
5856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857fi
5858echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5859echo "${ECHO_T}$ac_cv_c_const" >&6
5860if test $ac_cv_c_const = no; then
5861
5862cat >>confdefs.h <<\_ACEOF
5863#define const
5864_ACEOF
5865
5866fi
5867
5868
5869echo "$as_me:$LINENO: checking for egrep" >&5
5870echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5871if test "${ac_cv_prog_egrep+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5875 then ac_cv_prog_egrep='grep -E'
5876 else ac_cv_prog_egrep='egrep'
5877 fi
5878fi
5879echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5880echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5881 EGREP=$ac_cv_prog_egrep
5882
John Criswell7a73b802003-06-30 21:59:07 +00005883
5884echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5885echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5886if test "${ac_cv_header_stdc+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005895#include <stdlib.h>
5896#include <stdarg.h>
5897#include <string.h>
5898#include <float.h>
5899
John Criswell0c38eaf2003-09-10 15:17:25 +00005900int
5901main ()
5902{
5903
5904 ;
5905 return 0;
5906}
John Criswell7a73b802003-06-30 21:59:07 +00005907_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005908rm -f conftest.$ac_objext
5909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005910 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005911 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005916 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005930 ac_cv_header_stdc=yes
5931else
5932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005936fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005938
5939if test $ac_cv_header_stdc = yes; then
5940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5941 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005947#include <string.h>
5948
5949_ACEOF
5950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005951 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005952 :
5953else
5954 ac_cv_header_stdc=no
5955fi
5956rm -f conftest*
5957
5958fi
5959
5960if test $ac_cv_header_stdc = yes; then
5961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 Criswell7a73b802003-06-30 21:59:07 +00005968#include <stdlib.h>
5969
5970_ACEOF
5971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005972 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005973 :
5974else
5975 ac_cv_header_stdc=no
5976fi
5977rm -f conftest*
5978
5979fi
5980
5981if test $ac_cv_header_stdc = yes; then
5982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5983 if test "$cross_compiling" = yes; then
5984 :
5985else
5986 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005992#include <ctype.h>
5993#if ((' ' & 0x0FF) == 0x020)
5994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5996#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005997# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005998 (('a' <= (c) && (c) <= 'i') \
5999 || ('j' <= (c) && (c) <= 'r') \
6000 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6002#endif
6003
6004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6005int
6006main ()
6007{
6008 int i;
6009 for (i = 0; i < 256; i++)
6010 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006011 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006012 exit(2);
6013 exit (0);
6014}
6015_ACEOF
6016rm -f conftest$ac_exeext
6017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 :
6028else
6029 echo "$as_me: program exited with status $ac_status" >&5
6030echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006031sed 's/^/| /' conftest.$ac_ext >&5
6032
John Criswell7a73b802003-06-30 21:59:07 +00006033( exit $ac_status )
6034ac_cv_header_stdc=no
6035fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006037fi
6038fi
6039fi
6040echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6041echo "${ECHO_T}$ac_cv_header_stdc" >&6
6042if test $ac_cv_header_stdc = yes; then
6043
6044cat >>confdefs.h <<\_ACEOF
6045#define STDC_HEADERS 1
6046_ACEOF
6047
6048fi
6049
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006050
6051
6052
6053
6054
6055ac_header_dirent=no
6056for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6057 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6058echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6059echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6060if eval "test \"\${$as_ac_Header+set}\" = set"; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069#include <sys/types.h>
6070#include <$ac_hdr>
6071
6072int
6073main ()
6074{
6075if ((DIR *) 0)
6076return 0;
6077 ;
6078 return 0;
6079}
6080_ACEOF
6081rm -f conftest.$ac_objext
6082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -z "$ac_c_werror_flag"
6091 || test ! -s conftest.err'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; } &&
6097 { ac_try='test -s conftest.$ac_objext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 eval "$as_ac_Header=yes"
6104else
6105 echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108eval "$as_ac_Header=no"
6109fi
6110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111fi
6112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6114if test `eval echo '${'$as_ac_Header'}'` = yes; then
6115 cat >>confdefs.h <<_ACEOF
6116#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6117_ACEOF
6118
6119ac_header_dirent=$ac_hdr; break
6120fi
6121
6122done
6123# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6124if test $ac_header_dirent = dirent.h; then
6125 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6126echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6127if test "${ac_cv_search_opendir+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130 ac_func_search_save_LIBS=$LIBS
6131ac_cv_search_opendir=no
6132cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h. */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h. */
6138
6139/* Override any gcc2 internal prototype to avoid an error. */
6140#ifdef __cplusplus
6141extern "C"
6142#endif
6143/* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6145char opendir ();
6146int
6147main ()
6148{
6149opendir ();
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext conftest$ac_exeext
6155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_search_opendir="none required"
6177else
6178 echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181fi
6182rm -f conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184if test "$ac_cv_search_opendir" = no; then
6185 for ac_lib in dir; do
6186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
6193
6194/* Override any gcc2 internal prototype to avoid an error. */
6195#ifdef __cplusplus
6196extern "C"
6197#endif
6198/* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6200char opendir ();
6201int
6202main ()
6203{
6204opendir ();
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext conftest$ac_exeext
6210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211 (eval $ac_link) 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_search_opendir="-l$ac_lib"
6232break
6233else
6234 echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237fi
6238rm -f conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6240 done
6241fi
6242LIBS=$ac_func_search_save_LIBS
6243fi
6244echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6245echo "${ECHO_T}$ac_cv_search_opendir" >&6
6246if test "$ac_cv_search_opendir" != no; then
6247 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6248
6249fi
6250
6251else
6252 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6253echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6254if test "${ac_cv_search_opendir+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256else
6257 ac_func_search_save_LIBS=$LIBS
6258ac_cv_search_opendir=no
6259cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h. */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h. */
6265
6266/* Override any gcc2 internal prototype to avoid an error. */
6267#ifdef __cplusplus
6268extern "C"
6269#endif
6270/* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272char opendir ();
6273int
6274main ()
6275{
6276opendir ();
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281rm -f conftest.$ac_objext conftest$ac_exeext
6282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_search_opendir="none required"
6304else
6305 echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308fi
6309rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311if test "$ac_cv_search_opendir" = no; then
6312 for ac_lib in x; do
6313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6314 cat >conftest.$ac_ext <<_ACEOF
6315/* confdefs.h. */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h. */
6320
6321/* Override any gcc2 internal prototype to avoid an error. */
6322#ifdef __cplusplus
6323extern "C"
6324#endif
6325/* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6327char opendir ();
6328int
6329main ()
6330{
6331opendir ();
6332 ;
6333 return 0;
6334}
6335_ACEOF
6336rm -f conftest.$ac_objext conftest$ac_exeext
6337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_search_opendir="-l$ac_lib"
6359break
6360else
6361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364fi
6365rm -f conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 done
6368fi
6369LIBS=$ac_func_search_save_LIBS
6370fi
6371echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6372echo "${ECHO_T}$ac_cv_search_opendir" >&6
6373if test "$ac_cv_search_opendir" != no; then
6374 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6375
6376fi
6377
6378fi
6379
John Criswell7a73b802003-06-30 21:59:07 +00006380# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006391 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006392do
6393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394echo "$as_me:$LINENO: checking for $ac_header" >&5
6395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6396if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006400/* confdefs.h. */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
6404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006405$ac_includes_default
6406
6407#include <$ac_header>
6408_ACEOF
6409rm -f conftest.$ac_objext
6410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006411 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006418 { ac_try='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 eval "$as_ac_Header=yes"
6432else
6433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006434sed 's/^/| /' conftest.$ac_ext >&5
6435
John Criswell7a73b802003-06-30 21:59:07 +00006436eval "$as_ac_Header=no"
6437fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006439fi
6440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445_ACEOF
6446
6447fi
6448
6449done
6450
6451
6452
6453for ac_header in dlfcn.h
6454do
6455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006456if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006461fi
6462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006464else
Brian Gaeke0a621332004-09-08 20:38:05 +00006465 # Is the header compilable?
6466echo "$as_me:$LINENO: checking $ac_header usability" >&5
6467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6468cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006469/* confdefs.h. */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006474$ac_includes_default
6475#include <$ac_header>
6476_ACEOF
6477rm -f conftest.$ac_objext
6478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006479 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006499 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006500else
6501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006502sed 's/^/| /' conftest.$ac_ext >&5
6503
Brian Gaeke0a621332004-09-08 20:38:05 +00006504ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006505fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6508echo "${ECHO_T}$ac_header_compiler" >&6
6509
6510# Is the header present?
6511echo "$as_me:$LINENO: checking $ac_header presence" >&5
6512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6513cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006514/* confdefs.h. */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h. */
6519#include <$ac_header>
6520_ACEOF
6521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } >/dev/null; then
6529 if test -s conftest.err; then
6530 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006532 else
6533 ac_cpp_err=
6534 fi
6535else
6536 ac_cpp_err=yes
6537fi
6538if test -z "$ac_cpp_err"; then
6539 ac_header_preproc=yes
6540else
6541 echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_header_preproc=no
6545fi
6546rm -f conftest.err conftest.$ac_ext
6547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6548echo "${ECHO_T}$ac_header_preproc" >&6
6549
6550# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6552 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6557 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006558 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006559 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006572 (
6573 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006574## ----------------------------------- ##
6575## Report this to llvmbugs@cs.uiuc.edu ##
6576## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006577_ASBOX
6578 ) |
6579 sed "s/^/$as_me: WARNING: /" >&2
6580 ;;
6581esac
6582echo "$as_me:$LINENO: checking for $ac_header" >&5
6583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6584if eval "test \"\${$as_ac_Header+set}\" = set"; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006587 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006588fi
6589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006591
6592fi
John Criswell7a73b802003-06-30 21:59:07 +00006593if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596_ACEOF
6597
6598fi
6599
6600done
6601
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006602# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6603if test "${enable_ltdl_install+set}" = set; then
6604 enableval="$enable_ltdl_install"
6605
6606fi;
6607
6608
6609
6610if test x"${enable_ltdl_install-no}" != xno; then
6611 INSTALL_LTDL_TRUE=
6612 INSTALL_LTDL_FALSE='#'
6613else
6614 INSTALL_LTDL_TRUE='#'
6615 INSTALL_LTDL_FALSE=
6616fi
6617
6618
6619
6620if test x"${enable_ltdl_convenience-no}" != xno; then
6621 CONVENIENCE_LTDL_TRUE=
6622 CONVENIENCE_LTDL_FALSE='#'
6623else
6624 CONVENIENCE_LTDL_TRUE='#'
6625 CONVENIENCE_LTDL_FALSE=
6626fi
6627
6628
6629echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6630echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6631library_names_spec=
6632libname_spec='lib$name'
6633soname_spec=
6634shrext_cmds=".so"
6635postinstall_cmds=
6636postuninstall_cmds=
6637finish_cmds=
6638finish_eval=
6639shlibpath_var=
6640shlibpath_overrides_runpath=unknown
6641version_type=none
6642dynamic_linker="$host_os ld.so"
6643sys_lib_dlsearch_path_spec="/lib /usr/lib"
6644if test "$GCC" = yes; then
6645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6647 # if the path contains ";" then we assume it to be the separator
6648 # otherwise default to the standard path separator (i.e. ":") - it is
6649 # assumed that no part of a normal pathname contains ";" but that should
6650 # okay in the real world where ";" in dirpaths is itself problematic.
6651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6652 else
6653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6654 fi
6655else
6656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6657fi
6658need_lib_prefix=unknown
6659hardcode_into_libs=no
6660
6661# when you set need_version to no, make sure it does not cause -set_version
6662# flags to be left without arguments
6663need_version=unknown
6664
6665case $host_os in
6666aix3*)
6667 version_type=linux
6668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6669 shlibpath_var=LIBPATH
6670
6671 # AIX 3 has no versioning support, so we append a major version to the name.
6672 soname_spec='${libname}${release}${shared_ext}$major'
6673 ;;
6674
6675aix4* | aix5*)
6676 version_type=linux
6677 need_lib_prefix=no
6678 need_version=no
6679 hardcode_into_libs=yes
6680 if test "$host_cpu" = ia64; then
6681 # AIX 5 supports IA64
6682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6683 shlibpath_var=LD_LIBRARY_PATH
6684 else
6685 # With GCC up to 2.95.x, collect2 would create an import file
6686 # for dependence libraries. The import file would start with
6687 # the line `#! .'. This would cause the generated library to
6688 # depend on `.', always an invalid library. This was fixed in
6689 # development snapshots of GCC prior to 3.0.
6690 case $host_os in
6691 aix4 | aix4.[01] | aix4.[01].*)
6692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6693 echo ' yes '
6694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6695 :
6696 else
6697 can_build_shared=no
6698 fi
6699 ;;
6700 esac
6701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6702 # soname into executable. Probably we can add versioning support to
6703 # collect2, so additional links can be useful in future.
6704 if test "$aix_use_runtimelinking" = yes; then
6705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6706 # instead of lib<name>.a to let people know that these are not
6707 # typical AIX shared libraries.
6708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6709 else
6710 # We preserve .a as extension for shared libraries through AIX4.2
6711 # and later when we are not doing run time linking.
6712 library_names_spec='${libname}${release}.a $libname.a'
6713 soname_spec='${libname}${release}${shared_ext}$major'
6714 fi
6715 shlibpath_var=LIBPATH
6716 fi
6717 ;;
6718
6719amigaos*)
6720 library_names_spec='$libname.ixlibrary $libname.a'
6721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6722 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'
6723 ;;
6724
6725beos*)
6726 library_names_spec='${libname}${shared_ext}'
6727 dynamic_linker="$host_os ld.so"
6728 shlibpath_var=LIBRARY_PATH
6729 ;;
6730
6731bsdi[45]*)
6732 version_type=linux
6733 need_version=no
6734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6735 soname_spec='${libname}${release}${shared_ext}$major'
6736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6737 shlibpath_var=LD_LIBRARY_PATH
6738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6740 # the default ld.so.conf also contains /usr/contrib/lib and
6741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6742 # libtool to hard-code these into programs
6743 ;;
6744
6745cygwin* | mingw* | pw32*)
6746 version_type=windows
6747 shrext_cmds=".dll"
6748 need_version=no
6749 need_lib_prefix=no
6750
6751 case $GCC,$host_os in
6752 yes,cygwin* | yes,mingw* | yes,pw32*)
6753 library_names_spec='$libname.dll.a'
6754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6755 postinstall_cmds='base_file=`basename \${file}`~
6756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6757 dldir=$destdir/`dirname \$dlpath`~
6758 test -d \$dldir || mkdir -p \$dldir~
6759 $install_prog $dir/$dlname \$dldir/$dlname'
6760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6761 dlpath=$dir/\$dldll~
6762 $rm \$dlpath'
6763 shlibpath_overrides_runpath=yes
6764
6765 case $host_os in
6766 cygwin*)
6767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6770 ;;
6771 mingw*)
6772 # MinGW DLLs use traditional 'lib' prefix
6773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6775 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6776 # It is most probably a Windows format PATH printed by
6777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6778 # path with ; separators, and with drive letters. We can handle the
6779 # drive letters (cygwin fileutils understands them), so leave them,
6780 # especially as we might pass files found there to a mingw objdump,
6781 # which wouldn't understand a cygwinified path. Ahh.
6782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6783 else
6784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6785 fi
6786 ;;
6787 pw32*)
6788 # pw32 DLLs use 'pw' prefix rather than 'lib'
6789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6790 ;;
6791 esac
6792 ;;
6793
6794 *)
6795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6796 ;;
6797 esac
6798 dynamic_linker='Win32 ld.exe'
6799 # FIXME: first we should search . and the directory the executable is in
6800 shlibpath_var=PATH
6801 ;;
6802
6803darwin* | rhapsody*)
6804 dynamic_linker="$host_os dyld"
6805 version_type=darwin
6806 need_lib_prefix=no
6807 need_version=no
6808 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6809 soname_spec='${libname}${release}${major}$shared_ext'
6810 shlibpath_overrides_runpath=yes
6811 shlibpath_var=DYLD_LIBRARY_PATH
6812 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6813 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6814 if test "$GCC" = yes; then
6815 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"`
6816 else
6817 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6818 fi
6819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6820 ;;
6821
6822dgux*)
6823 version_type=linux
6824 need_lib_prefix=no
6825 need_version=no
6826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6827 soname_spec='${libname}${release}${shared_ext}$major'
6828 shlibpath_var=LD_LIBRARY_PATH
6829 ;;
6830
6831freebsd1*)
6832 dynamic_linker=no
6833 ;;
6834
6835kfreebsd*-gnu)
6836 version_type=linux
6837 need_lib_prefix=no
6838 need_version=no
6839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6840 soname_spec='${libname}${release}${shared_ext}$major'
6841 shlibpath_var=LD_LIBRARY_PATH
6842 shlibpath_overrides_runpath=no
6843 hardcode_into_libs=yes
6844 dynamic_linker='GNU ld.so'
6845 ;;
6846
6847freebsd*)
6848 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6849 version_type=freebsd-$objformat
6850 case $version_type in
6851 freebsd-elf*)
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6853 need_version=no
6854 need_lib_prefix=no
6855 ;;
6856 freebsd-*)
6857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6858 need_version=yes
6859 ;;
6860 esac
6861 shlibpath_var=LD_LIBRARY_PATH
6862 case $host_os in
6863 freebsd2*)
6864 shlibpath_overrides_runpath=yes
6865 ;;
6866 freebsd3.01* | freebsdelf3.01*)
6867 shlibpath_overrides_runpath=yes
6868 hardcode_into_libs=yes
6869 ;;
6870 *) # from 3.2 on
6871 shlibpath_overrides_runpath=no
6872 hardcode_into_libs=yes
6873 ;;
6874 esac
6875 ;;
6876
6877gnu*)
6878 version_type=linux
6879 need_lib_prefix=no
6880 need_version=no
6881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6882 soname_spec='${libname}${release}${shared_ext}$major'
6883 shlibpath_var=LD_LIBRARY_PATH
6884 hardcode_into_libs=yes
6885 ;;
6886
6887hpux9* | hpux10* | hpux11*)
6888 # Give a soname corresponding to the major version so that dld.sl refuses to
6889 # link against other versions.
6890 version_type=sunos
6891 need_lib_prefix=no
6892 need_version=no
6893 case "$host_cpu" in
6894 ia64*)
6895 shrext_cmds='.so'
6896 hardcode_into_libs=yes
6897 dynamic_linker="$host_os dld.so"
6898 shlibpath_var=LD_LIBRARY_PATH
6899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6901 soname_spec='${libname}${release}${shared_ext}$major'
6902 if test "X$HPUX_IA64_MODE" = X32; then
6903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6904 else
6905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6906 fi
6907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6908 ;;
6909 hppa*64*)
6910 shrext_cmds='.sl'
6911 hardcode_into_libs=yes
6912 dynamic_linker="$host_os dld.sl"
6913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916 soname_spec='${libname}${release}${shared_ext}$major'
6917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6919 ;;
6920 *)
6921 shrext_cmds='.sl'
6922 dynamic_linker="$host_os dld.sl"
6923 shlibpath_var=SHLIB_PATH
6924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926 soname_spec='${libname}${release}${shared_ext}$major'
6927 ;;
6928 esac
6929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6930 postinstall_cmds='chmod 555 $lib'
6931 ;;
6932
6933irix5* | irix6* | nonstopux*)
6934 case $host_os in
6935 nonstopux*) version_type=nonstopux ;;
6936 *)
6937 if test "$lt_cv_prog_gnu_ld" = yes; then
6938 version_type=linux
6939 else
6940 version_type=irix
6941 fi ;;
6942 esac
6943 need_lib_prefix=no
6944 need_version=no
6945 soname_spec='${libname}${release}${shared_ext}$major'
6946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6947 case $host_os in
6948 irix5* | nonstopux*)
6949 libsuff= shlibsuff=
6950 ;;
6951 *)
6952 case $LD in # libtool.m4 will add one of these switches to LD
6953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6954 libsuff= shlibsuff= libmagic=32-bit;;
6955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6956 libsuff=32 shlibsuff=N32 libmagic=N32;;
6957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6959 *) libsuff= shlibsuff= libmagic=never-match;;
6960 esac
6961 ;;
6962 esac
6963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6964 shlibpath_overrides_runpath=no
6965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6967 hardcode_into_libs=yes
6968 ;;
6969
6970# No shared lib support for Linux oldld, aout, or coff.
6971linux*oldld* | linux*aout* | linux*coff*)
6972 dynamic_linker=no
6973 ;;
6974
6975# This must be Linux ELF.
6976linux*)
6977 version_type=linux
6978 need_lib_prefix=no
6979 need_version=no
6980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6981 soname_spec='${libname}${release}${shared_ext}$major'
6982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6983 shlibpath_var=LD_LIBRARY_PATH
6984 shlibpath_overrides_runpath=no
6985 # This implies no fast_install, which is unacceptable.
6986 # Some rework will be needed to allow for fast_install
6987 # before this can be enabled.
6988 hardcode_into_libs=yes
6989
6990 # Append ld.so.conf contents to the search path
6991 if test -f /etc/ld.so.conf; then
6992 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6994 fi
6995
6996 # We used to test for /lib/ld.so.1 and disable shared libraries on
6997 # powerpc, because MkLinux only supported shared libraries with the
6998 # GNU dynamic linker. Since this was broken with cross compilers,
6999 # most powerpc-linux boxes support dynamic linking these days and
7000 # people can always --disable-shared, the test was removed, and we
7001 # assume the GNU/Linux dynamic linker is in use.
7002 dynamic_linker='GNU/Linux ld.so'
7003 ;;
7004
7005knetbsd*-gnu)
7006 version_type=linux
7007 need_lib_prefix=no
7008 need_version=no
7009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7010 soname_spec='${libname}${release}${shared_ext}$major'
7011 shlibpath_var=LD_LIBRARY_PATH
7012 shlibpath_overrides_runpath=no
7013 hardcode_into_libs=yes
7014 dynamic_linker='GNU ld.so'
7015 ;;
7016
7017netbsd*)
7018 version_type=sunos
7019 need_lib_prefix=no
7020 need_version=no
7021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7024 dynamic_linker='NetBSD (a.out) ld.so'
7025 else
7026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027 soname_spec='${libname}${release}${shared_ext}$major'
7028 dynamic_linker='NetBSD ld.elf_so'
7029 fi
7030 shlibpath_var=LD_LIBRARY_PATH
7031 shlibpath_overrides_runpath=yes
7032 hardcode_into_libs=yes
7033 ;;
7034
7035newsos6)
7036 version_type=linux
7037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7038 shlibpath_var=LD_LIBRARY_PATH
7039 shlibpath_overrides_runpath=yes
7040 ;;
7041
7042nto-qnx*)
7043 version_type=linux
7044 need_lib_prefix=no
7045 need_version=no
7046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7047 soname_spec='${libname}${release}${shared_ext}$major'
7048 shlibpath_var=LD_LIBRARY_PATH
7049 shlibpath_overrides_runpath=yes
7050 ;;
7051
7052openbsd*)
7053 version_type=sunos
7054 need_lib_prefix=no
7055 need_version=no
7056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7058 shlibpath_var=LD_LIBRARY_PATH
7059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7060 case $host_os in
7061 openbsd2.[89] | openbsd2.[89].*)
7062 shlibpath_overrides_runpath=no
7063 ;;
7064 *)
7065 shlibpath_overrides_runpath=yes
7066 ;;
7067 esac
7068 else
7069 shlibpath_overrides_runpath=yes
7070 fi
7071 ;;
7072
7073os2*)
7074 libname_spec='$name'
7075 shrext_cmds=".dll"
7076 need_lib_prefix=no
7077 library_names_spec='$libname${shared_ext} $libname.a'
7078 dynamic_linker='OS/2 ld.exe'
7079 shlibpath_var=LIBPATH
7080 ;;
7081
7082osf3* | osf4* | osf5*)
7083 version_type=osf
7084 need_lib_prefix=no
7085 need_version=no
7086 soname_spec='${libname}${release}${shared_ext}$major'
7087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088 shlibpath_var=LD_LIBRARY_PATH
7089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7091 ;;
7092
7093sco3.2v5*)
7094 version_type=osf
7095 soname_spec='${libname}${release}${shared_ext}$major'
7096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097 shlibpath_var=LD_LIBRARY_PATH
7098 ;;
7099
7100solaris*)
7101 version_type=linux
7102 need_lib_prefix=no
7103 need_version=no
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7107 shlibpath_overrides_runpath=yes
7108 hardcode_into_libs=yes
7109 # ldd complains unless libraries are executable
7110 postinstall_cmds='chmod +x $lib'
7111 ;;
7112
7113sunos4*)
7114 version_type=sunos
7115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7117 shlibpath_var=LD_LIBRARY_PATH
7118 shlibpath_overrides_runpath=yes
7119 if test "$with_gnu_ld" = yes; then
7120 need_lib_prefix=no
7121 fi
7122 need_version=yes
7123 ;;
7124
7125sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7126 version_type=linux
7127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7128 soname_spec='${libname}${release}${shared_ext}$major'
7129 shlibpath_var=LD_LIBRARY_PATH
7130 case $host_vendor in
7131 sni)
7132 shlibpath_overrides_runpath=no
7133 need_lib_prefix=no
7134 export_dynamic_flag_spec='${wl}-Blargedynsym'
7135 runpath_var=LD_RUN_PATH
7136 ;;
7137 siemens)
7138 need_lib_prefix=no
7139 ;;
7140 motorola)
7141 need_lib_prefix=no
7142 need_version=no
7143 shlibpath_overrides_runpath=no
7144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7145 ;;
7146 esac
7147 ;;
7148
7149sysv4*MP*)
7150 if test -d /usr/nec ;then
7151 version_type=linux
7152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7153 soname_spec='$libname${shared_ext}.$major'
7154 shlibpath_var=LD_LIBRARY_PATH
7155 fi
7156 ;;
7157
7158uts4*)
7159 version_type=linux
7160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7161 soname_spec='${libname}${release}${shared_ext}$major'
7162 shlibpath_var=LD_LIBRARY_PATH
7163 ;;
7164
7165*)
7166 dynamic_linker=no
7167 ;;
7168esac
7169echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7170echo "${ECHO_T}$dynamic_linker" >&6
7171test "$dynamic_linker" = no && can_build_shared=no
7172
7173
7174echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7175echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7176if test "${libltdl_cv_shlibext+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179
7180module=yes
7181eval libltdl_cv_shlibext=$shrext_cmds
7182
7183fi
7184echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7185echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7186if test -n "$libltdl_cv_shlibext"; then
7187
7188cat >>confdefs.h <<_ACEOF
7189#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7190_ACEOF
7191
7192fi
7193
7194
7195echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7196echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7197if test "${libltdl_cv_shlibpath_var+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 libltdl_cv_shlibpath_var="$shlibpath_var"
7201fi
7202echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7203echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7204if test -n "$libltdl_cv_shlibpath_var"; then
7205
7206cat >>confdefs.h <<_ACEOF
7207#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7208_ACEOF
7209
7210fi
7211
7212
7213echo "$as_me:$LINENO: checking for the default library search path" >&5
7214echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7215if test "${libltdl_cv_sys_search_path+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7219fi
7220echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7221echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7222if test -n "$libltdl_cv_sys_search_path"; then
7223 sys_search_path=
7224 for dir in $libltdl_cv_sys_search_path; do
7225 if test -z "$sys_search_path"; then
7226 sys_search_path="$dir"
7227 else
7228 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7229 fi
7230 done
7231
7232cat >>confdefs.h <<_ACEOF
7233#define LTDL_SYSSEARCHPATH "$sys_search_path"
7234_ACEOF
7235
7236fi
7237
7238echo "$as_me:$LINENO: checking for objdir" >&5
7239echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7240if test "${libltdl_cv_objdir+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242else
7243 libltdl_cv_objdir="$objdir"
7244 if test -n "$objdir"; then
7245 :
7246 else
7247 rm -f .libs 2>/dev/null
7248 mkdir .libs 2>/dev/null
7249 if test -d .libs; then
7250 libltdl_cv_objdir=.libs
7251 else
7252 # MS-DOS does not allow filenames that begin with a dot.
7253 libltdl_cv_objdir=_libs
7254 fi
7255 rmdir .libs 2>/dev/null
7256 fi
7257
7258fi
7259echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7260echo "${ECHO_T}$libltdl_cv_objdir" >&6
7261
7262cat >>confdefs.h <<_ACEOF
7263#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7264_ACEOF
7265
7266
7267echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7268echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7269if test "${lt_cv_path_NM+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272 if test -n "$NM"; then
7273 # Let the user override the test.
7274 lt_cv_path_NM="$NM"
7275else
7276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7278 IFS="$lt_save_ifs"
7279 test -z "$ac_dir" && ac_dir=.
7280 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7281 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7282 # Check to see if the nm accepts a BSD-compat flag.
7283 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7284 # nm: unknown option "B" ignored
7285 # Tru64's nm complains that /dev/null is an invalid object file
7286 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7287 */dev/null* | *'Invalid file or object type'*)
7288 lt_cv_path_NM="$tmp_nm -B"
7289 break
7290 ;;
7291 *)
7292 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7293 */dev/null*)
7294 lt_cv_path_NM="$tmp_nm -p"
7295 break
7296 ;;
7297 *)
7298 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7299 continue # so that we can try to find one that supports BSD flags
7300 ;;
7301 esac
7302 esac
7303 fi
7304 done
7305 IFS="$lt_save_ifs"
7306 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7307fi
7308fi
7309echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7310echo "${ECHO_T}$lt_cv_path_NM" >&6
7311NM="$lt_cv_path_NM"
7312
7313
7314
7315
7316
7317# Check for command to grab the raw symbol name followed by C symbol from nm.
7318echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7319echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7320if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323
7324# These are sane defaults that work on at least a few old systems.
7325# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7326
7327# Character class describing NM global symbol codes.
7328symcode='[BCDEGRST]'
7329
7330# Regexp to match symbols that can be accessed directly from C.
7331sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7332
7333# Transform the above into a raw symbol and a C symbol.
7334symxfrm='\1 \2\3 \3'
7335
7336# Transform an extracted symbol line into a proper C declaration
7337lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7338
7339# Transform an extracted symbol line into symbol name and symbol address
7340lt_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'"
7341
7342# Define system-specific variables.
7343case $host_os in
7344aix*)
7345 symcode='[BCDT]'
7346 ;;
7347cygwin* | mingw* | pw32*)
7348 symcode='[ABCDGISTW]'
7349 ;;
7350hpux*) # Its linker distinguishes data from code symbols
7351 if test "$host_cpu" = ia64; then
7352 symcode='[ABCDEGRST]'
7353 fi
7354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7355 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'"
7356 ;;
7357linux*)
7358 if test "$host_cpu" = ia64; then
7359 symcode='[ABCDGIRSTW]'
7360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7361 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'"
7362 fi
7363 ;;
7364irix* | nonstopux*)
7365 symcode='[BCDEGRST]'
7366 ;;
7367osf*)
7368 symcode='[BCDEGQRST]'
7369 ;;
7370solaris* | sysv5*)
7371 symcode='[BDRT]'
7372 ;;
7373sysv4)
7374 symcode='[DFNSTU]'
7375 ;;
7376esac
7377
7378# Handle CRLF in mingw tool chain
7379opt_cr=
7380case $build_os in
7381mingw*)
7382 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7383 ;;
7384esac
7385
7386# If we're using GNU nm, then use its standard symbol codes.
7387case `$NM -V 2>&1` in
7388*GNU* | *'with BFD'*)
7389 symcode='[ABCDGIRSTW]' ;;
7390esac
7391
7392# Try without a prefix undercore, then with it.
7393for ac_symprfx in "" "_"; do
7394
7395 # Write the raw and C identifiers.
7396 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7397
7398 # Check to see that the pipe works correctly.
7399 pipe_works=no
7400
7401 rm -f conftest*
7402 cat > conftest.$ac_ext <<EOF
7403#ifdef __cplusplus
7404extern "C" {
7405#endif
7406char nm_test_var;
7407void nm_test_func(){}
7408#ifdef __cplusplus
7409}
7410#endif
7411int main(){nm_test_var='a';nm_test_func();return(0);}
7412EOF
7413
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; then
7419 # Now try to grab the symbols.
7420 nlist=conftest.nm
7421 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && test -s "$nlist"; then
7426 # Try sorting and uniquifying the output.
7427 if sort "$nlist" | uniq > "$nlist"T; then
7428 mv -f "$nlist"T "$nlist"
7429 else
7430 rm -f "$nlist"T
7431 fi
7432
7433 # Make sure that we snagged all the symbols we need.
7434 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7435 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7436 cat <<EOF > conftest.$ac_ext
7437#ifdef __cplusplus
7438extern "C" {
7439#endif
7440
7441EOF
7442 # Now generate the symbol file.
7443 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7444
7445 cat <<EOF >> conftest.$ac_ext
7446#if defined (__STDC__) && __STDC__
7447# define lt_ptr_t void *
7448#else
7449# define lt_ptr_t char *
7450# define const
7451#endif
7452
7453/* The mapping between symbol names and symbols. */
7454const struct {
7455 const char *name;
7456 lt_ptr_t address;
7457}
7458lt_preloaded_symbols[] =
7459{
7460EOF
7461 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7462 cat <<\EOF >> conftest.$ac_ext
7463 {0, (lt_ptr_t) 0}
7464};
7465
7466#ifdef __cplusplus
7467}
7468#endif
7469EOF
7470 # Now try linking the two files.
7471 mv conftest.$ac_objext conftstm.$ac_objext
7472 lt_save_LIBS="$LIBS"
7473 lt_save_CFLAGS="$CFLAGS"
7474 LIBS="conftstm.$ac_objext"
7475 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7481 pipe_works=yes
7482 fi
7483 LIBS="$lt_save_LIBS"
7484 CFLAGS="$lt_save_CFLAGS"
7485 else
7486 echo "cannot find nm_test_func in $nlist" >&5
7487 fi
7488 else
7489 echo "cannot find nm_test_var in $nlist" >&5
7490 fi
7491 else
7492 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7493 fi
7494 else
7495 echo "$progname: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7497 fi
7498 rm -f conftest* conftst*
7499
7500 # Do not use the global_symbol_pipe unless it works.
7501 if test "$pipe_works" = yes; then
7502 break
7503 else
7504 lt_cv_sys_global_symbol_pipe=
7505 fi
7506done
7507
7508fi
7509
7510if test -z "$lt_cv_sys_global_symbol_pipe"; then
7511 lt_cv_sys_global_symbol_to_cdecl=
7512fi
7513if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7514 echo "$as_me:$LINENO: result: failed" >&5
7515echo "${ECHO_T}failed" >&6
7516else
7517 echo "$as_me:$LINENO: result: ok" >&5
7518echo "${ECHO_T}ok" >&6
7519fi
7520
7521
7522echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7523echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7524if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7528 libltdl_cv_preloaded_symbols=yes
7529 else
7530 libltdl_cv_preloaded_symbols=no
7531 fi
7532
7533fi
7534echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7535echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7536if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7537
7538cat >>confdefs.h <<\_ACEOF
7539#define HAVE_PRELOADED_SYMBOLS 1
7540_ACEOF
7541
7542fi
7543
7544LIBADD_DL=
7545
7546ac_ext=c
7547ac_cpp='$CPP $CPPFLAGS'
7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551
7552
7553echo "$as_me:$LINENO: checking for shl_load" >&5
7554echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7555if test "${ac_cv_func_shl_load+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 cat >conftest.$ac_ext <<_ACEOF
7559/* confdefs.h. */
7560_ACEOF
7561cat confdefs.h >>conftest.$ac_ext
7562cat >>conftest.$ac_ext <<_ACEOF
7563/* end confdefs.h. */
7564/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7566#define shl_load innocuous_shl_load
7567
7568/* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char shl_load (); below.
7570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 <limits.h> exists even on freestanding compilers. */
7572
7573#ifdef __STDC__
7574# include <limits.h>
7575#else
7576# include <assert.h>
7577#endif
7578
7579#undef shl_load
7580
7581/* Override any gcc2 internal prototype to avoid an error. */
7582#ifdef __cplusplus
7583extern "C"
7584{
7585#endif
7586/* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7588char shl_load ();
7589/* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592#if defined (__stub_shl_load) || defined (__stub___shl_load)
7593choke me
7594#else
7595char (*f) () = shl_load;
7596#endif
7597#ifdef __cplusplus
7598}
7599#endif
7600
7601int
7602main ()
7603{
7604return f != shl_load;
7605 ;
7606 return 0;
7607}
7608_ACEOF
7609rm -f conftest.$ac_objext conftest$ac_exeext
7610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_func_shl_load=yes
7632else
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7636ac_cv_func_shl_load=no
7637fi
7638rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640fi
7641echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7642echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7643if test $ac_cv_func_shl_load = yes; then
7644
7645cat >>confdefs.h <<\_ACEOF
7646#define HAVE_SHL_LOAD 1
7647_ACEOF
7648
7649else
7650 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7651echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7652if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655 ac_check_lib_save_LIBS=$LIBS
7656LIBS="-ldld $LIBS"
7657cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h. */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h. */
7663
7664/* Override any gcc2 internal prototype to avoid an error. */
7665#ifdef __cplusplus
7666extern "C"
7667#endif
7668/* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7670char shl_load ();
7671int
7672main ()
7673{
7674shl_load ();
7675 ;
7676 return 0;
7677}
7678_ACEOF
7679rm -f conftest.$ac_objext conftest$ac_exeext
7680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 ac_cv_lib_dld_shl_load=yes
7702else
7703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7706ac_cv_lib_dld_shl_load=no
7707fi
7708rm -f conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710LIBS=$ac_check_lib_save_LIBS
7711fi
7712echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7713echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7714if test $ac_cv_lib_dld_shl_load = yes; then
7715
7716cat >>confdefs.h <<\_ACEOF
7717#define HAVE_SHL_LOAD 1
7718_ACEOF
7719
7720 LIBADD_DL="$LIBADD_DL -ldld"
7721else
7722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7723echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7724if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727 ac_check_lib_save_LIBS=$LIBS
7728LIBS="-ldl $LIBS"
7729cat >conftest.$ac_ext <<_ACEOF
7730/* confdefs.h. */
7731_ACEOF
7732cat confdefs.h >>conftest.$ac_ext
7733cat >>conftest.$ac_ext <<_ACEOF
7734/* end confdefs.h. */
7735
7736/* Override any gcc2 internal prototype to avoid an error. */
7737#ifdef __cplusplus
7738extern "C"
7739#endif
7740/* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742char dlopen ();
7743int
7744main ()
7745{
7746dlopen ();
7747 ;
7748 return 0;
7749}
7750_ACEOF
7751rm -f conftest.$ac_objext conftest$ac_exeext
7752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_lib_dl_dlopen=yes
7774else
7775 echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778ac_cv_lib_dl_dlopen=no
7779fi
7780rm -f conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782LIBS=$ac_check_lib_save_LIBS
7783fi
7784echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7785echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7786if test $ac_cv_lib_dl_dlopen = yes; then
7787
7788cat >>confdefs.h <<\_ACEOF
7789#define HAVE_LIBDL 1
7790_ACEOF
7791
7792 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7793else
7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800#if HAVE_DLFCN_H
7801# include <dlfcn.h>
7802#endif
7803
7804int
7805main ()
7806{
7807dlopen(0, 0);
7808 ;
7809 return 0;
7810}
7811_ACEOF
7812rm -f conftest.$ac_objext conftest$ac_exeext
7813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834
7835cat >>confdefs.h <<\_ACEOF
7836#define HAVE_LIBDL 1
7837_ACEOF
7838 libltdl_cv_func_dlopen="yes"
7839else
7840 echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7844echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7845if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848 ac_check_lib_save_LIBS=$LIBS
7849LIBS="-lsvld $LIBS"
7850cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h. */
7856
7857/* Override any gcc2 internal prototype to avoid an error. */
7858#ifdef __cplusplus
7859extern "C"
7860#endif
7861/* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863char dlopen ();
7864int
7865main ()
7866{
7867dlopen ();
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest.$ac_objext conftest$ac_exeext
7873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 (eval $ac_try) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7894 ac_cv_lib_svld_dlopen=yes
7895else
7896 echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899ac_cv_lib_svld_dlopen=no
7900fi
7901rm -f conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903LIBS=$ac_check_lib_save_LIBS
7904fi
7905echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7906echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7907if test $ac_cv_lib_svld_dlopen = yes; then
7908
7909cat >>confdefs.h <<\_ACEOF
7910#define HAVE_LIBDL 1
7911_ACEOF
7912
7913 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7914else
7915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 ac_check_lib_save_LIBS=$LIBS
7921LIBS="-ldld $LIBS"
7922cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928
7929/* Override any gcc2 internal prototype to avoid an error. */
7930#ifdef __cplusplus
7931extern "C"
7932#endif
7933/* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935char dld_link ();
7936int
7937main ()
7938{
7939dld_link ();
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 (eval $ac_try) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_lib_dld_dld_link=yes
7967else
7968 echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971ac_cv_lib_dld_dld_link=no
7972fi
7973rm -f conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975LIBS=$ac_check_lib_save_LIBS
7976fi
7977echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979if test $ac_cv_lib_dld_dld_link = yes; then
7980
7981cat >>confdefs.h <<\_ACEOF
7982#define HAVE_DLD 1
7983_ACEOF
7984
7985 LIBADD_DL="$LIBADD_DL -ldld"
7986else
7987 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7988echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7989if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 cat >conftest.$ac_ext <<_ACEOF
7993/* confdefs.h. */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */
7998/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8000#define _dyld_func_lookup innocuous__dyld_func_lookup
8001
8002/* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char _dyld_func_lookup (); below.
8004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 <limits.h> exists even on freestanding compilers. */
8006
8007#ifdef __STDC__
8008# include <limits.h>
8009#else
8010# include <assert.h>
8011#endif
8012
8013#undef _dyld_func_lookup
8014
8015/* Override any gcc2 internal prototype to avoid an error. */
8016#ifdef __cplusplus
8017extern "C"
8018{
8019#endif
8020/* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022char _dyld_func_lookup ();
8023/* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
8026#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8027choke me
8028#else
8029char (*f) () = _dyld_func_lookup;
8030#endif
8031#ifdef __cplusplus
8032}
8033#endif
8034
8035int
8036main ()
8037{
8038return f != _dyld_func_lookup;
8039 ;
8040 return 0;
8041}
8042_ACEOF
8043rm -f conftest.$ac_objext conftest$ac_exeext
8044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_func__dyld_func_lookup=yes
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070ac_cv_func__dyld_func_lookup=no
8071fi
8072rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074fi
8075echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8076echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8077if test $ac_cv_func__dyld_func_lookup = yes; then
8078
8079cat >>confdefs.h <<\_ACEOF
8080#define HAVE_DYLD 1
8081_ACEOF
8082
8083fi
8084
8085
8086fi
8087
8088
8089fi
8090
8091
8092fi
8093rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095
8096fi
8097
8098
8099fi
8100
8101
8102fi
8103
8104
8105if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8106then
8107 lt_save_LIBS="$LIBS"
8108 LIBS="$LIBS $LIBADD_DL"
8109
8110for ac_func in dlerror
8111do
8112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113echo "$as_me:$LINENO: checking for $ac_func" >&5
8114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115if eval "test \"\${$as_ac_var+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117else
8118 cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8126#define $ac_func innocuous_$ac_func
8127
8128/* System header to define __stub macros and hopefully few prototypes,
8129 which can conflict with char $ac_func (); below.
8130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131 <limits.h> exists even on freestanding compilers. */
8132
8133#ifdef __STDC__
8134# include <limits.h>
8135#else
8136# include <assert.h>
8137#endif
8138
8139#undef $ac_func
8140
8141/* Override any gcc2 internal prototype to avoid an error. */
8142#ifdef __cplusplus
8143extern "C"
8144{
8145#endif
8146/* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148char $ac_func ();
8149/* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8153choke me
8154#else
8155char (*f) () = $ac_func;
8156#endif
8157#ifdef __cplusplus
8158}
8159#endif
8160
8161int
8162main ()
8163{
8164return f != $ac_func;
8165 ;
8166 return 0;
8167}
8168_ACEOF
8169rm -f conftest.$ac_objext conftest$ac_exeext
8170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 eval "$as_ac_var=yes"
8192else
8193 echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196eval "$as_ac_var=no"
8197fi
8198rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200fi
8201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8203if test `eval echo '${'$as_ac_var'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206_ACEOF
8207
8208fi
8209done
8210
8211 LIBS="$lt_save_LIBS"
8212fi
8213ac_ext=c
8214ac_cpp='$CPP $CPPFLAGS'
8215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219
8220
8221echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8222echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8223if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 ac_cv_sys_symbol_underscore=no
8227 cat > conftest.$ac_ext <<EOF
8228void nm_test_func(){}
8229int main(){nm_test_func;return 0;}
8230EOF
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 (eval $ac_compile) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; then
8236 # Now try to grab the symbols.
8237 ac_nlist=conftest.nm
8238 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && test -s "$ac_nlist"; then
8243 # See whether the symbols have a leading underscore.
8244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8245 ac_cv_sys_symbol_underscore=yes
8246 else
8247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8248 :
8249 else
8250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8251 fi
8252 fi
8253 else
8254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8255 fi
8256 else
8257 echo "configure: failed program was:" >&5
8258 cat conftest.c >&5
8259 fi
8260 rm -rf conftest*
8261
8262fi
8263echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8264echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8265
8266
8267if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8268 if test x"$libltdl_cv_func_dlopen" = xyes ||
8269 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8270 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8271echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8272if test "${libltdl_cv_need_uscore+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 libltdl_cv_need_uscore=unknown
8276 save_LIBS="$LIBS"
8277 LIBS="$LIBS $LIBADD_DL"
8278 if test "$cross_compiling" = yes; then :
8279 libltdl_cv_need_uscore=cross
8280else
8281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8282 lt_status=$lt_dlunknown
8283 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +00008284#line 8284 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008285#include "confdefs.h"
8286
8287#if HAVE_DLFCN_H
8288#include <dlfcn.h>
8289#endif
8290
8291#include <stdio.h>
8292
8293#ifdef RTLD_GLOBAL
8294# define LT_DLGLOBAL RTLD_GLOBAL
8295#else
8296# ifdef DL_GLOBAL
8297# define LT_DLGLOBAL DL_GLOBAL
8298# else
8299# define LT_DLGLOBAL 0
8300# endif
8301#endif
8302
8303/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8304 find out it does not work in some platform. */
8305#ifndef LT_DLLAZY_OR_NOW
8306# ifdef RTLD_LAZY
8307# define LT_DLLAZY_OR_NOW RTLD_LAZY
8308# else
8309# ifdef DL_LAZY
8310# define LT_DLLAZY_OR_NOW DL_LAZY
8311# else
8312# ifdef RTLD_NOW
8313# define LT_DLLAZY_OR_NOW RTLD_NOW
8314# else
8315# ifdef DL_NOW
8316# define LT_DLLAZY_OR_NOW DL_NOW
8317# else
8318# define LT_DLLAZY_OR_NOW 0
8319# endif
8320# endif
8321# endif
8322# endif
8323#endif
8324
8325#ifdef __cplusplus
8326extern "C" void exit (int);
8327#endif
8328
8329void fnord() { int i=42;}
8330int main ()
8331{
8332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8333 int status = $lt_dlunknown;
8334
8335 if (self)
8336 {
8337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8339 /* dlclose (self); */
8340 }
8341
8342 exit (status);
8343}
8344EOF
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8350 (./conftest; exit; ) 2>/dev/null
8351 lt_status=$?
8352 case x$lt_status in
8353 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8354 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8355 x$lt_unknown|x*) ;;
8356 esac
8357 else :
8358 # compilation failed
8359
8360 fi
8361fi
8362rm -fr conftest*
8363
8364 LIBS="$save_LIBS"
8365
8366fi
8367echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8368echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8369 fi
8370fi
8371
8372if test x"$libltdl_cv_need_uscore" = xyes; then
8373
8374cat >>confdefs.h <<\_ACEOF
8375#define NEED_USCORE 1
8376_ACEOF
8377
8378fi
8379
8380
8381echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8382echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8383if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 # PORTME does your system automatically load deplibs for dlopen?
8387 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8388 # For now, we just catch OSes we know something about -- in the
8389 # future, we'll try test this programmatically.
8390 libltdl_cv_sys_dlopen_deplibs=unknown
8391 case "$host_os" in
8392 aix3*|aix4.1.*|aix4.2.*)
8393 # Unknown whether this is true for these versions of AIX, but
8394 # we want this `case' here to explicitly catch those versions.
8395 libltdl_cv_sys_dlopen_deplibs=unknown
8396 ;;
8397 aix[45]*)
8398 libltdl_cv_sys_dlopen_deplibs=yes
8399 ;;
8400 darwin*)
8401 # Assuming the user has installed a libdl from somewhere, this is true
8402 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8403 libltdl_cv_sys_dlopen_deplibs=yes
8404 ;;
8405 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8406 # GNU and its variants, using gnu ld.so (Glibc)
8407 libltdl_cv_sys_dlopen_deplibs=yes
8408 ;;
8409 hpux10*|hpux11*)
8410 libltdl_cv_sys_dlopen_deplibs=yes
8411 ;;
8412 irix[12345]*|irix6.[01]*)
8413 # Catch all versions of IRIX before 6.2, and indicate that we don't
8414 # know how it worked for any of those versions.
8415 libltdl_cv_sys_dlopen_deplibs=unknown
8416 ;;
8417 irix*)
8418 # The case above catches anything before 6.2, and it's known that
8419 # at 6.2 and later dlopen does load deplibs.
8420 libltdl_cv_sys_dlopen_deplibs=yes
8421 ;;
8422 netbsd*)
8423 libltdl_cv_sys_dlopen_deplibs=yes
8424 ;;
8425 openbsd*)
8426 libltdl_cv_sys_dlopen_deplibs=yes
8427 ;;
8428 osf[1234]*)
8429 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8430 # it did *not* use an RPATH in a shared library to find objects the
8431 # library depends on, so we explictly say `no'.
8432 libltdl_cv_sys_dlopen_deplibs=no
8433 ;;
8434 osf5.0|osf5.0a|osf5.1)
8435 # dlopen *does* load deplibs and with the right loader patch applied
8436 # it even uses RPATH in a shared library to search for shared objects
8437 # that the library depends on, but there's no easy way to know if that
8438 # patch is installed. Since this is the case, all we can really
8439 # say is unknown -- it depends on the patch being installed. If
8440 # it is, this changes to `yes'. Without it, it would be `no'.
8441 libltdl_cv_sys_dlopen_deplibs=unknown
8442 ;;
8443 osf*)
8444 # the two cases above should catch all versions of osf <= 5.1. Read
8445 # the comments above for what we know about them.
8446 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8447 # is used to find them so we can finally say `yes'.
8448 libltdl_cv_sys_dlopen_deplibs=yes
8449 ;;
8450 solaris*)
8451 libltdl_cv_sys_dlopen_deplibs=yes
8452 ;;
8453 esac
8454
8455fi
8456echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8457echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8458if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8459
8460cat >>confdefs.h <<\_ACEOF
8461#define LTDL_DLOPEN_DEPLIBS 1
8462_ACEOF
8463
8464fi
8465
8466
8467for ac_header in argz.h
8468do
8469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo "$as_me:$LINENO: checking for $ac_header" >&5
8472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475fi
8476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478else
8479 # Is the header compilable?
8480echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482cat >conftest.$ac_ext <<_ACEOF
8483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
8488$ac_includes_default
8489#include <$ac_header>
8490_ACEOF
8491rm -f conftest.$ac_objext
8492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag"
8501 || test ! -s conftest.err'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_header_compiler=yes
8514else
8515 echo "$as_me: failed program was:" >&5
8516sed 's/^/| /' conftest.$ac_ext >&5
8517
8518ac_header_compiler=no
8519fi
8520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8522echo "${ECHO_T}$ac_header_compiler" >&6
8523
8524# Is the header present?
8525echo "$as_me:$LINENO: checking $ac_header presence" >&5
8526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8527cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533#include <$ac_header>
8534_ACEOF
8535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } >/dev/null; then
8543 if test -s conftest.err; then
8544 ac_cpp_err=$ac_c_preproc_warn_flag
8545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8546 else
8547 ac_cpp_err=
8548 fi
8549else
8550 ac_cpp_err=yes
8551fi
8552if test -z "$ac_cpp_err"; then
8553 ac_header_preproc=yes
8554else
8555 echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558 ac_header_preproc=no
8559fi
8560rm -f conftest.err conftest.$ac_ext
8561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562echo "${ECHO_T}$ac_header_preproc" >&6
8563
8564# So? What about this header?
8565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8566 yes:no: )
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8571 ac_header_preproc=yes
8572 ;;
8573 no:yes:* )
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8586 (
8587 cat <<\_ASBOX
8588## ----------------------------------- ##
8589## Report this to llvmbugs@cs.uiuc.edu ##
8590## ----------------------------------- ##
8591_ASBOX
8592 ) |
8593 sed "s/^/$as_me: WARNING: /" >&2
8594 ;;
8595esac
8596echo "$as_me:$LINENO: checking for $ac_header" >&5
8597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600else
8601 eval "$as_ac_Header=\$ac_header_preproc"
8602fi
8603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605
8606fi
8607if test `eval echo '${'$as_ac_Header'}'` = yes; then
8608 cat >>confdefs.h <<_ACEOF
8609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610_ACEOF
8611
8612fi
8613
8614done
8615
8616
8617echo "$as_me:$LINENO: checking for error_t" >&5
8618echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8619if test "${ac_cv_type_error_t+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628#if HAVE_ARGZ_H
8629# include <argz.h>
8630#endif
8631
8632int
8633main ()
8634{
8635if ((error_t *) 0)
8636 return 0;
8637if (sizeof (error_t))
8638 return 0;
8639 ;
8640 return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext
8644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645 (eval $ac_compile) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_type_error_t=yes
8666else
8667 echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670ac_cv_type_error_t=no
8671fi
8672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8673fi
8674echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8675echo "${ECHO_T}$ac_cv_type_error_t" >&6
8676if test $ac_cv_type_error_t = yes; then
8677
8678cat >>confdefs.h <<_ACEOF
8679#define HAVE_ERROR_T 1
8680_ACEOF
8681
8682
8683else
8684
8685cat >>confdefs.h <<\_ACEOF
8686#define error_t int
8687_ACEOF
8688
8689fi
8690
8691
8692
8693
8694
8695
8696
8697for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8698do
8699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700echo "$as_me:$LINENO: checking for $ac_func" >&5
8701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8702if eval "test \"\${$as_ac_var+set}\" = set"; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705 cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713#define $ac_func innocuous_$ac_func
8714
8715/* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char $ac_func (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8719
8720#ifdef __STDC__
8721# include <limits.h>
8722#else
8723# include <assert.h>
8724#endif
8725
8726#undef $ac_func
8727
8728/* Override any gcc2 internal prototype to avoid an error. */
8729#ifdef __cplusplus
8730extern "C"
8731{
8732#endif
8733/* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735char $ac_func ();
8736/* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8740choke me
8741#else
8742char (*f) () = $ac_func;
8743#endif
8744#ifdef __cplusplus
8745}
8746#endif
8747
8748int
8749main ()
8750{
8751return f != $ac_func;
8752 ;
8753 return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext conftest$ac_exeext
8757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 eval "$as_ac_var=yes"
8779else
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783eval "$as_ac_var=no"
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787fi
8788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8790if test `eval echo '${'$as_ac_var'}'` = yes; then
8791 cat >>confdefs.h <<_ACEOF
8792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8793_ACEOF
8794
8795fi
8796done
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8826 stdio.h unistd.h
8827do
8828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8829if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830 echo "$as_me:$LINENO: checking for $ac_header" >&5
8831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8832if eval "test \"\${$as_ac_Header+set}\" = set"; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834fi
8835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837else
8838 # Is the header compilable?
8839echo "$as_me:$LINENO: checking $ac_header usability" >&5
8840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8841cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848#include <$ac_header>
8849_ACEOF
8850rm -f conftest.$ac_objext
8851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_header_compiler=yes
8873else
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877ac_header_compiler=no
8878fi
8879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8881echo "${ECHO_T}$ac_header_compiler" >&6
8882
8883# Is the header present?
8884echo "$as_me:$LINENO: checking $ac_header presence" >&5
8885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8886cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h. */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h. */
8892#include <$ac_header>
8893_ACEOF
8894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null; then
8902 if test -s conftest.err; then
8903 ac_cpp_err=$ac_c_preproc_warn_flag
8904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8905 else
8906 ac_cpp_err=
8907 fi
8908else
8909 ac_cpp_err=yes
8910fi
8911if test -z "$ac_cpp_err"; then
8912 ac_header_preproc=yes
8913else
8914 echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 ac_header_preproc=no
8918fi
8919rm -f conftest.err conftest.$ac_ext
8920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8921echo "${ECHO_T}$ac_header_preproc" >&6
8922
8923# So? What about this header?
8924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8925 yes:no: )
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8930 ac_header_preproc=yes
8931 ;;
8932 no:yes:* )
8933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8945 (
8946 cat <<\_ASBOX
8947## ----------------------------------- ##
8948## Report this to llvmbugs@cs.uiuc.edu ##
8949## ----------------------------------- ##
8950_ASBOX
8951 ) |
8952 sed "s/^/$as_me: WARNING: /" >&2
8953 ;;
8954esac
8955echo "$as_me:$LINENO: checking for $ac_header" >&5
8956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 eval "$as_ac_Header=\$ac_header_preproc"
8961fi
8962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8964
8965fi
8966if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969_ACEOF
8970
8971fi
8972
8973done
8974
8975
8976
8977
8978
8979for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8980do
8981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8982if eval "test \"\${$as_ac_Header+set}\" = set"; then
8983 echo "$as_me:$LINENO: checking for $ac_header" >&5
8984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8985if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987fi
8988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8990else
8991 # Is the header compilable?
8992echo "$as_me:$LINENO: checking $ac_header usability" >&5
8993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8994cat >conftest.$ac_ext <<_ACEOF
8995/* confdefs.h. */
8996_ACEOF
8997cat confdefs.h >>conftest.$ac_ext
8998cat >>conftest.$ac_ext <<_ACEOF
8999/* end confdefs.h. */
9000$ac_includes_default
9001#include <$ac_header>
9002_ACEOF
9003rm -f conftest.$ac_objext
9004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -z "$ac_c_werror_flag"
9013 || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_header_compiler=yes
9026else
9027 echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
9029
9030ac_header_compiler=no
9031fi
9032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034echo "${ECHO_T}$ac_header_compiler" >&6
9035
9036# Is the header present?
9037echo "$as_me:$LINENO: checking $ac_header presence" >&5
9038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9039cat >conftest.$ac_ext <<_ACEOF
9040/* confdefs.h. */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h. */
9045#include <$ac_header>
9046_ACEOF
9047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } >/dev/null; then
9055 if test -s conftest.err; then
9056 ac_cpp_err=$ac_c_preproc_warn_flag
9057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9058 else
9059 ac_cpp_err=
9060 fi
9061else
9062 ac_cpp_err=yes
9063fi
9064if test -z "$ac_cpp_err"; then
9065 ac_header_preproc=yes
9066else
9067 echo "$as_me: failed program was:" >&5
9068sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_header_preproc=no
9071fi
9072rm -f conftest.err conftest.$ac_ext
9073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074echo "${ECHO_T}$ac_header_preproc" >&6
9075
9076# So? What about this header?
9077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9078 yes:no: )
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9083 ac_header_preproc=yes
9084 ;;
9085 no:yes:* )
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9098 (
9099 cat <<\_ASBOX
9100## ----------------------------------- ##
9101## Report this to llvmbugs@cs.uiuc.edu ##
9102## ----------------------------------- ##
9103_ASBOX
9104 ) |
9105 sed "s/^/$as_me: WARNING: /" >&2
9106 ;;
9107esac
9108echo "$as_me:$LINENO: checking for $ac_header" >&5
9109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9110if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112else
9113 eval "$as_ac_Header=\$ac_header_preproc"
9114fi
9115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9117
9118fi
9119if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120 cat >>confdefs.h <<_ACEOF
9121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9122_ACEOF
9123
9124fi
9125
9126done
9127
9128
9129
9130for ac_header in string.h strings.h
9131do
9132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134 echo "$as_me:$LINENO: checking for $ac_header" >&5
9135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9136if eval "test \"\${$as_ac_Header+set}\" = set"; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138fi
9139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9141else
9142 # Is the header compilable?
9143echo "$as_me:$LINENO: checking $ac_header usability" >&5
9144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9145cat >conftest.$ac_ext <<_ACEOF
9146/* confdefs.h. */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h. */
9151$ac_includes_default
9152#include <$ac_header>
9153_ACEOF
9154rm -f conftest.$ac_objext
9155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_header_compiler=yes
9177else
9178 echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181ac_header_compiler=no
9182fi
9183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9185echo "${ECHO_T}$ac_header_compiler" >&6
9186
9187# Is the header present?
9188echo "$as_me:$LINENO: checking $ac_header presence" >&5
9189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9190cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
9196#include <$ac_header>
9197_ACEOF
9198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9200 ac_status=$?
9201 grep -v '^ *+' conftest.er1 >conftest.err
9202 rm -f conftest.er1
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev/null; then
9206 if test -s conftest.err; then
9207 ac_cpp_err=$ac_c_preproc_warn_flag
9208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9209 else
9210 ac_cpp_err=
9211 fi
9212else
9213 ac_cpp_err=yes
9214fi
9215if test -z "$ac_cpp_err"; then
9216 ac_header_preproc=yes
9217else
9218 echo "$as_me: failed program was:" >&5
9219sed 's/^/| /' conftest.$ac_ext >&5
9220
9221 ac_header_preproc=no
9222fi
9223rm -f conftest.err conftest.$ac_ext
9224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225echo "${ECHO_T}$ac_header_preproc" >&6
9226
9227# So? What about this header?
9228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9229 yes:no: )
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9231echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9233echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9234 ac_header_preproc=yes
9235 ;;
9236 no:yes:* )
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9238echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9240echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9242echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9244echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9248echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9249 (
9250 cat <<\_ASBOX
9251## ----------------------------------- ##
9252## Report this to llvmbugs@cs.uiuc.edu ##
9253## ----------------------------------- ##
9254_ASBOX
9255 ) |
9256 sed "s/^/$as_me: WARNING: /" >&2
9257 ;;
9258esac
9259echo "$as_me:$LINENO: checking for $ac_header" >&5
9260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9261if eval "test \"\${$as_ac_Header+set}\" = set"; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264 eval "$as_ac_Header=\$ac_header_preproc"
9265fi
9266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9268
9269fi
9270if test `eval echo '${'$as_ac_Header'}'` = yes; then
9271 cat >>confdefs.h <<_ACEOF
9272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9273_ACEOF
9274 break
9275fi
9276
9277done
9278
9279
9280
9281
9282for ac_func in strchr index
9283do
9284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9285echo "$as_me:$LINENO: checking for $ac_func" >&5
9286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9287if eval "test \"\${$as_ac_var+set}\" = set"; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290 cat >conftest.$ac_ext <<_ACEOF
9291/* confdefs.h. */
9292_ACEOF
9293cat confdefs.h >>conftest.$ac_ext
9294cat >>conftest.$ac_ext <<_ACEOF
9295/* end confdefs.h. */
9296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9298#define $ac_func innocuous_$ac_func
9299
9300/* System header to define __stub macros and hopefully few prototypes,
9301 which can conflict with char $ac_func (); below.
9302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9303 <limits.h> exists even on freestanding compilers. */
9304
9305#ifdef __STDC__
9306# include <limits.h>
9307#else
9308# include <assert.h>
9309#endif
9310
9311#undef $ac_func
9312
9313/* Override any gcc2 internal prototype to avoid an error. */
9314#ifdef __cplusplus
9315extern "C"
9316{
9317#endif
9318/* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9320char $ac_func ();
9321/* The GNU C library defines this for functions which it implements
9322 to always fail with ENOSYS. Some functions are actually named
9323 something starting with __ and the normal name is an alias. */
9324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9325choke me
9326#else
9327char (*f) () = $ac_func;
9328#endif
9329#ifdef __cplusplus
9330}
9331#endif
9332
9333int
9334main ()
9335{
9336return f != $ac_func;
9337 ;
9338 return 0;
9339}
9340_ACEOF
9341rm -f conftest.$ac_objext conftest$ac_exeext
9342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 eval "$as_ac_var=yes"
9364else
9365 echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368eval "$as_ac_var=no"
9369fi
9370rm -f conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372fi
9373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9375if test `eval echo '${'$as_ac_var'}'` = yes; then
9376 cat >>confdefs.h <<_ACEOF
9377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9378_ACEOF
9379 break
9380fi
9381done
9382
9383
9384
9385for ac_func in strrchr rindex
9386do
9387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388echo "$as_me:$LINENO: checking for $ac_func" >&5
9389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390if eval "test \"\${$as_ac_var+set}\" = set"; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393 cat >conftest.$ac_ext <<_ACEOF
9394/* confdefs.h. */
9395_ACEOF
9396cat confdefs.h >>conftest.$ac_ext
9397cat >>conftest.$ac_ext <<_ACEOF
9398/* end confdefs.h. */
9399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401#define $ac_func innocuous_$ac_func
9402
9403/* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char $ac_func (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9407
9408#ifdef __STDC__
9409# include <limits.h>
9410#else
9411# include <assert.h>
9412#endif
9413
9414#undef $ac_func
9415
9416/* Override any gcc2 internal prototype to avoid an error. */
9417#ifdef __cplusplus
9418extern "C"
9419{
9420#endif
9421/* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9423char $ac_func ();
9424/* The GNU C library defines this for functions which it implements
9425 to always fail with ENOSYS. Some functions are actually named
9426 something starting with __ and the normal name is an alias. */
9427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9428choke me
9429#else
9430char (*f) () = $ac_func;
9431#endif
9432#ifdef __cplusplus
9433}
9434#endif
9435
9436int
9437main ()
9438{
9439return f != $ac_func;
9440 ;
9441 return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext conftest$ac_exeext
9445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 eval "$as_ac_var=yes"
9467else
9468 echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471eval "$as_ac_var=no"
9472fi
9473rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475fi
9476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9478if test `eval echo '${'$as_ac_var'}'` = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9481_ACEOF
9482 break
9483fi
9484done
9485
9486
9487
9488for ac_func in memcpy bcopy
9489do
9490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9491echo "$as_me:$LINENO: checking for $ac_func" >&5
9492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9493if eval "test \"\${$as_ac_var+set}\" = set"; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
9496 cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
9502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9504#define $ac_func innocuous_$ac_func
9505
9506/* System header to define __stub macros and hopefully few prototypes,
9507 which can conflict with char $ac_func (); below.
9508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9509 <limits.h> exists even on freestanding compilers. */
9510
9511#ifdef __STDC__
9512# include <limits.h>
9513#else
9514# include <assert.h>
9515#endif
9516
9517#undef $ac_func
9518
9519/* Override any gcc2 internal prototype to avoid an error. */
9520#ifdef __cplusplus
9521extern "C"
9522{
9523#endif
9524/* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9526char $ac_func ();
9527/* The GNU C library defines this for functions which it implements
9528 to always fail with ENOSYS. Some functions are actually named
9529 something starting with __ and the normal name is an alias. */
9530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9531choke me
9532#else
9533char (*f) () = $ac_func;
9534#endif
9535#ifdef __cplusplus
9536}
9537#endif
9538
9539int
9540main ()
9541{
9542return f != $ac_func;
9543 ;
9544 return 0;
9545}
9546_ACEOF
9547rm -f conftest.$ac_objext conftest$ac_exeext
9548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag"
9557 || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 eval "$as_ac_var=yes"
9570else
9571 echo "$as_me: failed program was:" >&5
9572sed 's/^/| /' conftest.$ac_ext >&5
9573
9574eval "$as_ac_var=no"
9575fi
9576rm -f conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578fi
9579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9581if test `eval echo '${'$as_ac_var'}'` = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9584_ACEOF
9585 break
9586fi
9587done
9588
9589
9590
9591for ac_func in memmove strcmp
9592do
9593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9594echo "$as_me:$LINENO: checking for $ac_func" >&5
9595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9596if eval "test \"\${$as_ac_var+set}\" = set"; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607#define $ac_func innocuous_$ac_func
9608
9609/* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char $ac_func (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9613
9614#ifdef __STDC__
9615# include <limits.h>
9616#else
9617# include <assert.h>
9618#endif
9619
9620#undef $ac_func
9621
9622/* Override any gcc2 internal prototype to avoid an error. */
9623#ifdef __cplusplus
9624extern "C"
9625{
9626#endif
9627/* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629char $ac_func ();
9630/* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9634choke me
9635#else
9636char (*f) () = $ac_func;
9637#endif
9638#ifdef __cplusplus
9639}
9640#endif
9641
9642int
9643main ()
9644{
9645return f != $ac_func;
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650rm -f conftest.$ac_objext conftest$ac_exeext
9651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 eval "$as_ac_var=yes"
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677eval "$as_ac_var=no"
9678fi
9679rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681fi
9682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684if test `eval echo '${'$as_ac_var'}'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9687_ACEOF
9688
9689fi
9690done
9691
9692
9693
9694
9695for ac_func in closedir opendir readdir
9696do
9697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9698echo "$as_me:$LINENO: checking for $ac_func" >&5
9699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9700if eval "test \"\${$as_ac_var+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 cat >conftest.$ac_ext <<_ACEOF
9704/* confdefs.h. */
9705_ACEOF
9706cat confdefs.h >>conftest.$ac_ext
9707cat >>conftest.$ac_ext <<_ACEOF
9708/* end confdefs.h. */
9709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711#define $ac_func innocuous_$ac_func
9712
9713/* System header to define __stub macros and hopefully few prototypes,
9714 which can conflict with char $ac_func (); below.
9715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716 <limits.h> exists even on freestanding compilers. */
9717
9718#ifdef __STDC__
9719# include <limits.h>
9720#else
9721# include <assert.h>
9722#endif
9723
9724#undef $ac_func
9725
9726/* Override any gcc2 internal prototype to avoid an error. */
9727#ifdef __cplusplus
9728extern "C"
9729{
9730#endif
9731/* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733char $ac_func ();
9734/* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9738choke me
9739#else
9740char (*f) () = $ac_func;
9741#endif
9742#ifdef __cplusplus
9743}
9744#endif
9745
9746int
9747main ()
9748{
9749return f != $ac_func;
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext conftest$ac_exeext
9755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 eval "$as_ac_var=yes"
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781eval "$as_ac_var=no"
9782fi
9783rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785fi
9786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9788if test `eval echo '${'$as_ac_var'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9791_ACEOF
9792
9793fi
9794done
9795
9796
9797# Check whether --enable-shared or --disable-shared was given.
9798if test "${enable_shared+set}" = set; then
9799 enableval="$enable_shared"
9800 p=${PACKAGE-default}
9801 case $enableval in
9802 yes) enable_shared=yes ;;
9803 no) enable_shared=no ;;
9804 *)
9805 enable_shared=no
9806 # Look at the argument we got. We use all the common list separators.
9807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9808 for pkg in $enableval; do
9809 IFS="$lt_save_ifs"
9810 if test "X$pkg" = "X$p"; then
9811 enable_shared=yes
9812 fi
9813 done
9814 IFS="$lt_save_ifs"
9815 ;;
9816 esac
9817else
9818 enable_shared=yes
9819fi;
9820
9821# Check whether --enable-static or --disable-static was given.
9822if test "${enable_static+set}" = set; then
9823 enableval="$enable_static"
9824 p=${PACKAGE-default}
9825 case $enableval in
9826 yes) enable_static=yes ;;
9827 no) enable_static=no ;;
9828 *)
9829 enable_static=no
9830 # Look at the argument we got. We use all the common list separators.
9831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9832 for pkg in $enableval; do
9833 IFS="$lt_save_ifs"
9834 if test "X$pkg" = "X$p"; then
9835 enable_static=yes
9836 fi
9837 done
9838 IFS="$lt_save_ifs"
9839 ;;
9840 esac
9841else
9842 enable_static=yes
9843fi;
9844
9845# Check whether --enable-fast-install or --disable-fast-install was given.
9846if test "${enable_fast_install+set}" = set; then
9847 enableval="$enable_fast_install"
9848 p=${PACKAGE-default}
9849 case $enableval in
9850 yes) enable_fast_install=yes ;;
9851 no) enable_fast_install=no ;;
9852 *)
9853 enable_fast_install=no
9854 # Look at the argument we got. We use all the common list separators.
9855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9856 for pkg in $enableval; do
9857 IFS="$lt_save_ifs"
9858 if test "X$pkg" = "X$p"; then
9859 enable_fast_install=yes
9860 fi
9861 done
9862 IFS="$lt_save_ifs"
9863 ;;
9864 esac
9865else
9866 enable_fast_install=yes
9867fi;
9868
9869echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9870echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9871if test "${lt_cv_path_SED+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873else
9874 # Loop through the user's path and test for sed and gsed.
9875# Then use that list of sed's as ones to test for truncation.
9876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for lt_ac_prog in sed gsed; do
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9884 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9885 fi
9886 done
9887 done
9888done
9889lt_ac_max=0
9890lt_ac_count=0
9891# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9892# along with /bin/sed that truncates output.
9893for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9894 test ! -f $lt_ac_sed && break
9895 cat /dev/null > conftest.in
9896 lt_ac_count=0
9897 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9898 # Check for GNU sed and select it if it is found.
9899 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9900 lt_cv_path_SED=$lt_ac_sed
9901 break
9902 fi
9903 while true; do
9904 cat conftest.in conftest.in >conftest.tmp
9905 mv conftest.tmp conftest.in
9906 cp conftest.in conftest.nl
9907 echo >>conftest.nl
9908 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9909 cmp -s conftest.out conftest.nl || break
9910 # 10000 chars as input seems more than enough
9911 test $lt_ac_count -gt 10 && break
9912 lt_ac_count=`expr $lt_ac_count + 1`
9913 if test $lt_ac_count -gt $lt_ac_max; then
9914 lt_ac_max=$lt_ac_count
9915 lt_cv_path_SED=$lt_ac_sed
9916 fi
9917 done
9918done
9919
9920fi
9921
9922SED=$lt_cv_path_SED
9923echo "$as_me:$LINENO: result: $SED" >&5
9924echo "${ECHO_T}$SED" >&6
9925
9926
9927# Check whether --with-gnu-ld or --without-gnu-ld was given.
9928if test "${with_gnu_ld+set}" = set; then
9929 withval="$with_gnu_ld"
9930 test "$withval" = no || with_gnu_ld=yes
9931else
9932 with_gnu_ld=no
9933fi;
9934ac_prog=ld
9935if test "$GCC" = yes; then
9936 # Check if gcc -print-prog-name=ld gives a path.
9937 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9938echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9939 case $host in
9940 *-*-mingw*)
9941 # gcc leaves a trailing carriage return which upsets mingw
9942 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9943 *)
9944 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9945 esac
9946 case $ac_prog in
9947 # Accept absolute paths.
9948 [\\/]* | ?:[\\/]*)
9949 re_direlt='/[^/][^/]*/\.\./'
9950 # Canonicalize the pathname of ld
9951 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9952 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9953 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9954 done
9955 test -z "$LD" && LD="$ac_prog"
9956 ;;
9957 "")
9958 # If it fails, then pretend we aren't using GCC.
9959 ac_prog=ld
9960 ;;
9961 *)
9962 # If it is relative, then search for the first ld in PATH.
9963 with_gnu_ld=unknown
9964 ;;
9965 esac
9966elif test "$with_gnu_ld" = yes; then
9967 echo "$as_me:$LINENO: checking for GNU ld" >&5
9968echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9969else
9970 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9971echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9972fi
9973if test "${lt_cv_path_LD+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975else
9976 if test -z "$LD"; then
9977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9978 for ac_dir in $PATH; do
9979 IFS="$lt_save_ifs"
9980 test -z "$ac_dir" && ac_dir=.
9981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9982 lt_cv_path_LD="$ac_dir/$ac_prog"
9983 # Check to see if the program is GNU ld. I'd rather use --version,
9984 # but apparently some GNU ld's only accept -v.
9985 # Break only if it was the GNU/non-GNU ld that we prefer.
9986 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9987 *GNU* | *'with BFD'*)
9988 test "$with_gnu_ld" != no && break
9989 ;;
9990 *)
9991 test "$with_gnu_ld" != yes && break
9992 ;;
9993 esac
9994 fi
9995 done
9996 IFS="$lt_save_ifs"
9997else
9998 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9999fi
10000fi
10001
10002LD="$lt_cv_path_LD"
10003if test -n "$LD"; then
10004 echo "$as_me:$LINENO: result: $LD" >&5
10005echo "${ECHO_T}$LD" >&6
10006else
10007 echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6
10009fi
10010test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10011echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10012 { (exit 1); exit 1; }; }
10013echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10014echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10015if test "${lt_cv_prog_gnu_ld+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017else
10018 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10019case `$LD -v 2>&1 </dev/null` in
10020*GNU* | *'with BFD'*)
10021 lt_cv_prog_gnu_ld=yes
10022 ;;
10023*)
10024 lt_cv_prog_gnu_ld=no
10025 ;;
10026esac
10027fi
10028echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10029echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10030with_gnu_ld=$lt_cv_prog_gnu_ld
10031
10032
10033echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10034echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10035if test "${lt_cv_ld_reload_flag+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037else
10038 lt_cv_ld_reload_flag='-r'
10039fi
10040echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10041echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10042reload_flag=$lt_cv_ld_reload_flag
10043case $reload_flag in
10044"" | " "*) ;;
10045*) reload_flag=" $reload_flag" ;;
10046esac
10047reload_cmds='$LD$reload_flag -o $output$reload_objs'
10048case $host_os in
10049 darwin*)
10050 if test "$GCC" = yes; then
10051 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10052 else
10053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10054 fi
10055 ;;
10056esac
10057
10058echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10059echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10060if test "${lt_cv_deplibs_check_method+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063 lt_cv_file_magic_cmd='$MAGIC_CMD'
10064lt_cv_file_magic_test_file=
10065lt_cv_deplibs_check_method='unknown'
10066# Need to set the preceding variable on all platforms that support
10067# interlibrary dependencies.
10068# 'none' -- dependencies not supported.
10069# `unknown' -- same as none, but documents that we really don't know.
10070# 'pass_all' -- all dependencies passed with no checks.
10071# 'test_compile' -- check by making test program.
10072# 'file_magic [[regex]]' -- check by looking for files in library path
10073# which responds to the $file_magic_cmd with a given extended regex.
10074# If you have `file' or equivalent on your system and you're not sure
10075# whether `pass_all' will *always* work, you probably want this one.
10076
10077case $host_os in
10078aix4* | aix5*)
10079 lt_cv_deplibs_check_method=pass_all
10080 ;;
10081
10082beos*)
10083 lt_cv_deplibs_check_method=pass_all
10084 ;;
10085
10086bsdi[45]*)
10087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10088 lt_cv_file_magic_cmd='/usr/bin/file -L'
10089 lt_cv_file_magic_test_file=/shlib/libc.so
10090 ;;
10091
10092cygwin*)
10093 # func_win32_libid is a shell function defined in ltmain.sh
10094 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10095 lt_cv_file_magic_cmd='func_win32_libid'
10096 ;;
10097
10098mingw* | pw32*)
10099 # Base MSYS/MinGW do not provide the 'file' command needed by
10100 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10101 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10102 lt_cv_file_magic_cmd='$OBJDUMP -f'
10103 ;;
10104
10105darwin* | rhapsody*)
10106 lt_cv_deplibs_check_method=pass_all
10107 ;;
10108
10109freebsd* | kfreebsd*-gnu)
10110 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10111 case $host_cpu in
10112 i*86 )
10113 # Not sure whether the presence of OpenBSD here was a mistake.
10114 # Let's accept both of them until this is cleared up.
10115 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10116 lt_cv_file_magic_cmd=/usr/bin/file
10117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10118 ;;
10119 esac
10120 else
10121 lt_cv_deplibs_check_method=pass_all
10122 fi
10123 ;;
10124
10125gnu*)
10126 lt_cv_deplibs_check_method=pass_all
10127 ;;
10128
10129hpux10.20* | hpux11*)
10130 lt_cv_file_magic_cmd=/usr/bin/file
10131 case "$host_cpu" in
10132 ia64*)
10133 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10134 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10135 ;;
10136 hppa*64*)
10137 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]'
10138 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10139 ;;
10140 *)
10141 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10142 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10143 ;;
10144 esac
10145 ;;
10146
10147irix5* | irix6* | nonstopux*)
10148 case $LD in
10149 *-32|*"-32 ") libmagic=32-bit;;
10150 *-n32|*"-n32 ") libmagic=N32;;
10151 *-64|*"-64 ") libmagic=64-bit;;
10152 *) libmagic=never-match;;
10153 esac
10154 lt_cv_deplibs_check_method=pass_all
10155 ;;
10156
10157# This must be Linux ELF.
10158linux*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162netbsd*)
10163 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10165 else
10166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10167 fi
10168 ;;
10169
10170newos6*)
10171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10172 lt_cv_file_magic_cmd=/usr/bin/file
10173 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10174 ;;
10175
10176nto-qnx*)
10177 lt_cv_deplibs_check_method=unknown
10178 ;;
10179
10180openbsd*)
10181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10183 else
10184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10185 fi
10186 ;;
10187
10188osf3* | osf4* | osf5*)
10189 lt_cv_deplibs_check_method=pass_all
10190 ;;
10191
10192sco3.2v5*)
10193 lt_cv_deplibs_check_method=pass_all
10194 ;;
10195
10196solaris*)
10197 lt_cv_deplibs_check_method=pass_all
10198 ;;
10199
10200sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201 case $host_vendor in
10202 motorola)
10203 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]'
10204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10205 ;;
10206 ncr)
10207 lt_cv_deplibs_check_method=pass_all
10208 ;;
10209 sequent)
10210 lt_cv_file_magic_cmd='/bin/file'
10211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10212 ;;
10213 sni)
10214 lt_cv_file_magic_cmd='/bin/file'
10215 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10216 lt_cv_file_magic_test_file=/lib/libc.so
10217 ;;
10218 siemens)
10219 lt_cv_deplibs_check_method=pass_all
10220 ;;
10221 esac
10222 ;;
10223
10224sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10225 lt_cv_deplibs_check_method=pass_all
10226 ;;
10227esac
10228
10229fi
10230echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10231echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10232file_magic_cmd=$lt_cv_file_magic_cmd
10233deplibs_check_method=$lt_cv_deplibs_check_method
10234test -z "$deplibs_check_method" && deplibs_check_method=unknown
10235
10236
10237
10238# If no C compiler was specified, use CC.
10239LTCC=${LTCC-"$CC"}
10240
10241# Allow CC to be a program name with arguments.
10242compiler=$CC
10243
10244# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10245if test "${enable_libtool_lock+set}" = set; then
10246 enableval="$enable_libtool_lock"
10247
10248fi;
10249test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10250
10251# Some flags need to be propagated to the compiler or linker for good
10252# libtool support.
10253case $host in
10254ia64-*-hpux*)
10255 # Find out which ABI we are using.
10256 echo 'int i;' > conftest.$ac_ext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; then
10262 case `/usr/bin/file conftest.$ac_objext` in
10263 *ELF-32*)
10264 HPUX_IA64_MODE="32"
10265 ;;
10266 *ELF-64*)
10267 HPUX_IA64_MODE="64"
10268 ;;
10269 esac
10270 fi
10271 rm -rf conftest*
10272 ;;
10273*-*-irix6*)
10274 # Find out which ABI we are using.
Reid Spencerc232a652005-07-14 02:25:12 +000010275 echo '#line 10275 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 if test "$lt_cv_prog_gnu_ld" = yes; then
10282 case `/usr/bin/file conftest.$ac_objext` in
10283 *32-bit*)
10284 LD="${LD-ld} -melf32bsmip"
10285 ;;
10286 *N32*)
10287 LD="${LD-ld} -melf32bmipn32"
10288 ;;
10289 *64-bit*)
10290 LD="${LD-ld} -melf64bmip"
10291 ;;
10292 esac
10293 else
10294 case `/usr/bin/file conftest.$ac_objext` in
10295 *32-bit*)
10296 LD="${LD-ld} -32"
10297 ;;
10298 *N32*)
10299 LD="${LD-ld} -n32"
10300 ;;
10301 *64-bit*)
10302 LD="${LD-ld} -64"
10303 ;;
10304 esac
10305 fi
10306 fi
10307 rm -rf conftest*
10308 ;;
10309
10310x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10311 # Find out which ABI we are using.
10312 echo 'int i;' > conftest.$ac_ext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314 (eval $ac_compile) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; then
10318 case "`/usr/bin/file conftest.o`" in
10319 *32-bit*)
10320 case $host in
10321 x86_64-*linux*)
10322 LD="${LD-ld} -m elf_i386"
10323 ;;
10324 ppc64-*linux*|powerpc64-*linux*)
10325 LD="${LD-ld} -m elf32ppclinux"
10326 ;;
10327 s390x-*linux*)
10328 LD="${LD-ld} -m elf_s390"
10329 ;;
10330 sparc64-*linux*)
10331 LD="${LD-ld} -m elf32_sparc"
10332 ;;
10333 esac
10334 ;;
10335 *64-bit*)
10336 case $host in
10337 x86_64-*linux*)
10338 LD="${LD-ld} -m elf_x86_64"
10339 ;;
10340 ppc*-*linux*|powerpc*-*linux*)
10341 LD="${LD-ld} -m elf64ppc"
10342 ;;
10343 s390*-*linux*)
10344 LD="${LD-ld} -m elf64_s390"
10345 ;;
10346 sparc*-*linux*)
10347 LD="${LD-ld} -m elf64_sparc"
10348 ;;
10349 esac
10350 ;;
10351 esac
10352 fi
10353 rm -rf conftest*
10354 ;;
10355
10356*-*-sco3.2v5*)
10357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10358 SAVE_CFLAGS="$CFLAGS"
10359 CFLAGS="$CFLAGS -belf"
10360 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10361echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10362if test "${lt_cv_cc_needs_belf+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365 ac_ext=c
10366ac_cpp='$CPP $CPPFLAGS'
10367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10369ac_compiler_gnu=$ac_cv_c_compiler_gnu
10370
10371 cat >conftest.$ac_ext <<_ACEOF
10372/* confdefs.h. */
10373_ACEOF
10374cat confdefs.h >>conftest.$ac_ext
10375cat >>conftest.$ac_ext <<_ACEOF
10376/* end confdefs.h. */
10377
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
10380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag"
10389 || test ! -s conftest.err'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 lt_cv_cc_needs_belf=yes
10402else
10403 echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
10406lt_cv_cc_needs_belf=no
10407fi
10408rm -f conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 ac_ext=c
10411ac_cpp='$CPP $CPPFLAGS'
10412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10414ac_compiler_gnu=$ac_cv_c_compiler_gnu
10415
10416fi
10417echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10418echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10419 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10420 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10421 CFLAGS="$SAVE_CFLAGS"
10422 fi
10423 ;;
10424
10425esac
10426
10427need_locks="$enable_libtool_lock"
10428
10429
Reid Spencer2706f8c2004-09-19 23:53:36 +000010430
10431
10432if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10433 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10434 (test "X$CXX" != "Xg++"))) ; then
10435 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010436ac_cpp='$CXXCPP $CPPFLAGS'
10437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10440echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10441echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10442if test -z "$CXXCPP"; then
10443 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445else
John Criswell47fdd832003-07-14 16:52:07 +000010446 # Double quotes because CXXCPP needs to be expanded
10447 for CXXCPP in "$CXX -E" "/lib/cpp"
10448 do
10449 ac_preproc_ok=false
10450for ac_cxx_preproc_warn_flag in '' yes
10451do
10452 # Use a header file that comes with gcc, so configuring glibc
10453 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10455 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010456 # On the NeXT, cc -E runs the code through the compiler's parser,
10457 # not just through cpp. "Syntax error" is here to catch this case.
10458 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010459/* confdefs.h. */
10460_ACEOF
10461cat confdefs.h >>conftest.$ac_ext
10462cat >>conftest.$ac_ext <<_ACEOF
10463/* end confdefs.h. */
10464#ifdef __STDC__
10465# include <limits.h>
10466#else
10467# include <assert.h>
10468#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010469 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010470_ACEOF
10471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10473 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010474 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } >/dev/null; then
10479 if test -s conftest.err; then
10480 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010482 else
John Criswell47fdd832003-07-14 16:52:07 +000010483 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010484 fi
John Criswell47fdd832003-07-14 16:52:07 +000010485else
10486 ac_cpp_err=yes
10487fi
10488if test -z "$ac_cpp_err"; then
10489 :
10490else
10491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010492sed 's/^/| /' conftest.$ac_ext >&5
10493
John Criswell47fdd832003-07-14 16:52:07 +000010494 # Broken: fails on valid input.
10495continue
10496fi
10497rm -f conftest.err conftest.$ac_ext
10498
10499 # OK, works on sane cases. Now check whether non-existent headers
10500 # can be detected and how.
10501 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010507#include <ac_nonexistent.h>
10508_ACEOF
10509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10511 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010512 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev/null; then
10517 if test -s conftest.err; then
10518 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010520 else
10521 ac_cpp_err=
10522 fi
10523else
10524 ac_cpp_err=yes
10525fi
10526if test -z "$ac_cpp_err"; then
10527 # Broken: success on invalid input.
10528continue
10529else
10530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010531sed 's/^/| /' conftest.$ac_ext >&5
10532
John Criswell47fdd832003-07-14 16:52:07 +000010533 # Passes both tests.
10534ac_preproc_ok=:
10535break
10536fi
10537rm -f conftest.err conftest.$ac_ext
10538
10539done
10540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10541rm -f conftest.err conftest.$ac_ext
10542if $ac_preproc_ok; then
10543 break
John Criswell7a73b802003-06-30 21:59:07 +000010544fi
10545
John Criswell47fdd832003-07-14 16:52:07 +000010546 done
10547 ac_cv_prog_CXXCPP=$CXXCPP
10548
10549fi
10550 CXXCPP=$ac_cv_prog_CXXCPP
10551else
10552 ac_cv_prog_CXXCPP=$CXXCPP
10553fi
10554echo "$as_me:$LINENO: result: $CXXCPP" >&5
10555echo "${ECHO_T}$CXXCPP" >&6
10556ac_preproc_ok=false
10557for ac_cxx_preproc_warn_flag in '' yes
10558do
10559 # Use a header file that comes with gcc, so configuring glibc
10560 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010563 # On the NeXT, cc -E runs the code through the compiler's parser,
10564 # not just through cpp. "Syntax error" is here to catch this case.
10565 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571#ifdef __STDC__
10572# include <limits.h>
10573#else
10574# include <assert.h>
10575#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010576 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010577_ACEOF
10578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10580 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010581 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } >/dev/null; then
10586 if test -s conftest.err; then
10587 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010588 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010589 else
10590 ac_cpp_err=
10591 fi
10592else
10593 ac_cpp_err=yes
10594fi
10595if test -z "$ac_cpp_err"; then
10596 :
10597else
10598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010599sed 's/^/| /' conftest.$ac_ext >&5
10600
John Criswell47fdd832003-07-14 16:52:07 +000010601 # Broken: fails on valid input.
10602continue
10603fi
10604rm -f conftest.err conftest.$ac_ext
10605
10606 # OK, works on sane cases. Now check whether non-existent headers
10607 # can be detected and how.
10608 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010614#include <ac_nonexistent.h>
10615_ACEOF
10616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10618 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010619 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } >/dev/null; then
10624 if test -s conftest.err; then
10625 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010626 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010627 else
10628 ac_cpp_err=
10629 fi
10630else
10631 ac_cpp_err=yes
10632fi
10633if test -z "$ac_cpp_err"; then
10634 # Broken: success on invalid input.
10635continue
10636else
10637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010638sed 's/^/| /' conftest.$ac_ext >&5
10639
John Criswell47fdd832003-07-14 16:52:07 +000010640 # Passes both tests.
10641ac_preproc_ok=:
10642break
10643fi
10644rm -f conftest.err conftest.$ac_ext
10645
10646done
10647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10648rm -f conftest.err conftest.$ac_ext
10649if $ac_preproc_ok; then
10650 :
10651else
John Criswell0c38eaf2003-09-10 15:17:25 +000010652 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10653See \`config.log' for more details." >&5
10654echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10655See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010656 { (exit 1); exit 1; }; }
10657fi
10658
10659ac_ext=cc
10660ac_cpp='$CXXCPP $CPPFLAGS'
10661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10664
Reid Spencer2706f8c2004-09-19 23:53:36 +000010665fi
10666
John Criswell47fdd832003-07-14 16:52:07 +000010667
10668ac_ext=f
10669ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10670ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10671ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10672if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010673 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 +000010674 do
10675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10677echo "$as_me:$LINENO: checking for $ac_word" >&5
10678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10679if test "${ac_cv_prog_F77+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682 if test -n "$F77"; then
10683 ac_cv_prog_F77="$F77" # Let the user override the test.
10684else
10685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686for as_dir in $PATH
10687do
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10695 fi
10696done
10697done
10698
10699fi
10700fi
10701F77=$ac_cv_prog_F77
10702if test -n "$F77"; then
10703 echo "$as_me:$LINENO: result: $F77" >&5
10704echo "${ECHO_T}$F77" >&6
10705else
10706 echo "$as_me:$LINENO: result: no" >&5
10707echo "${ECHO_T}no" >&6
10708fi
10709
10710 test -n "$F77" && break
10711 done
10712fi
10713if test -z "$F77"; then
10714 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010715 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 +000010716do
10717 # Extract the first word of "$ac_prog", so it can be a program name with args.
10718set dummy $ac_prog; ac_word=$2
10719echo "$as_me:$LINENO: checking for $ac_word" >&5
10720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 if test -n "$ac_ct_F77"; then
10725 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10726else
10727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_ac_ct_F77="$ac_prog"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10737 fi
10738done
10739done
10740
10741fi
10742fi
10743ac_ct_F77=$ac_cv_prog_ac_ct_F77
10744if test -n "$ac_ct_F77"; then
10745 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10746echo "${ECHO_T}$ac_ct_F77" >&6
10747else
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
10750fi
10751
10752 test -n "$ac_ct_F77" && break
10753done
10754
10755 F77=$ac_ct_F77
10756fi
10757
10758
10759# Provide some information about the compiler.
Reid Spencerc232a652005-07-14 02:25:12 +000010760echo "$as_me:10760:" \
John Criswell47fdd832003-07-14 16:52:07 +000010761 "checking for Fortran 77 compiler version" >&5
10762ac_compiler=`set X $ac_compile; echo $2`
10763{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10764 (eval $ac_compiler --version </dev/null >&5) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }
10768{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10769 (eval $ac_compiler -v </dev/null >&5) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }
10773{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10774 (eval $ac_compiler -V </dev/null >&5) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010778rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010779
10780# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010781# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010782ac_save_ext=$ac_ext
10783ac_ext=F
10784echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10785echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10786if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 cat >conftest.$ac_ext <<_ACEOF
10790 program main
10791#ifndef __GNUC__
10792 choke me
10793#endif
10794
10795 end
10796_ACEOF
10797rm -f conftest.$ac_objext
10798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010799 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010806 { ac_try='test -z "$ac_f77_werror_flag"
10807 || test ! -s conftest.err'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; } &&
10813 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_compiler_gnu=yes
10820else
10821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010822sed 's/^/| /' conftest.$ac_ext >&5
10823
John Criswell47fdd832003-07-14 16:52:07 +000010824ac_compiler_gnu=no
10825fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010827ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10828
10829fi
10830echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10831echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10832ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010833ac_test_FFLAGS=${FFLAGS+set}
10834ac_save_FFLAGS=$FFLAGS
10835FFLAGS=
10836echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10837echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10838if test "${ac_cv_prog_f77_g+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 FFLAGS=-g
10842cat >conftest.$ac_ext <<_ACEOF
10843 program main
10844
10845 end
10846_ACEOF
10847rm -f conftest.$ac_objext
10848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010849 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010856 { ac_try='test -z "$ac_f77_werror_flag"
10857 || test ! -s conftest.err'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 ac_cv_prog_f77_g=yes
10870else
10871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010872sed 's/^/| /' conftest.$ac_ext >&5
10873
John Criswell47fdd832003-07-14 16:52:07 +000010874ac_cv_prog_f77_g=no
10875fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010877
10878fi
10879echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10880echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10881if test "$ac_test_FFLAGS" = set; then
10882 FFLAGS=$ac_save_FFLAGS
10883elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010884 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010885 FFLAGS="-g -O2"
10886 else
10887 FFLAGS="-g"
10888 fi
10889else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010890 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010891 FFLAGS="-O2"
10892 else
10893 FFLAGS=
10894 fi
10895fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010896
10897G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010898ac_ext=c
10899ac_cpp='$CPP $CPPFLAGS'
10900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902ac_compiler_gnu=$ac_cv_c_compiler_gnu
10903
10904
10905
10906# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10907
10908# find the maximum length of command line arguments
10909echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10910echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10911if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913else
10914 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010915 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010916
10917 case $build_os in
10918 msdosdjgpp*)
10919 # On DJGPP, this test can blow up pretty badly due to problems in libc
10920 # (any single argument exceeding 2000 bytes causes a buffer overrun
10921 # during glob expansion). Even if it were fixed, the result of this
10922 # check would be larger than it should be.
10923 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10924 ;;
10925
10926 gnu*)
10927 # Under GNU Hurd, this test is not required because there is
10928 # no limit to the length of command line arguments.
10929 # Libtool will interpret -1 as no limit whatsoever
10930 lt_cv_sys_max_cmd_len=-1;
10931 ;;
10932
10933 cygwin* | mingw*)
10934 # On Win9x/ME, this test blows up -- it succeeds, but takes
10935 # about 5 minutes as the teststring grows exponentially.
10936 # Worse, since 9x/ME are not pre-emptively multitasking,
10937 # you end up with a "frozen" computer, even though with patience
10938 # the test eventually succeeds (with a max line length of 256k).
10939 # Instead, let's just punt: use the minimum linelength reported by
10940 # all of the supported platforms: 8192 (on NT/2K/XP).
10941 lt_cv_sys_max_cmd_len=8192;
10942 ;;
10943
Reid Spencer2706f8c2004-09-19 23:53:36 +000010944 amigaos*)
10945 # On AmigaOS with pdksh, this test takes hours, literally.
10946 # So we just punt and use a minimum line length of 8192.
10947 lt_cv_sys_max_cmd_len=8192;
10948 ;;
10949
10950 netbsd* | freebsd* | openbsd* | darwin* )
10951 # This has been around since 386BSD, at least. Likely further.
10952 if test -x /sbin/sysctl; then
10953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10954 elif test -x /usr/sbin/sysctl; then
10955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10956 else
10957 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10958 fi
10959 # And add a safety zone
10960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10961 ;;
10962
John Criswell47fdd832003-07-14 16:52:07 +000010963 *)
10964 # If test is not a shell built-in, we'll probably end up computing a
10965 # maximum length that is only half of the actual maximum length, but
10966 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010967 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10968 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10969 = "XX$teststring") >/dev/null 2>&1 &&
10970 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010971 lt_cv_sys_max_cmd_len=$new_result &&
10972 test $i != 17 # 1/2 MB should be enough
10973 do
10974 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010975 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010976 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010977 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010978 # Add a significant safety factor because C++ compilers can tack on massive
10979 # amounts of additional arguments before passing them to the linker.
10980 # It appears as though 1/2 is a usable value.
10981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10982 ;;
10983 esac
10984
10985fi
10986
10987if test -n $lt_cv_sys_max_cmd_len ; then
10988 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10989echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10990else
10991 echo "$as_me:$LINENO: result: none" >&5
10992echo "${ECHO_T}none" >&6
10993fi
10994
10995
10996
10997
10998# Check for command to grab the raw symbol name followed by C symbol from nm.
10999echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11000echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11001if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004
11005# These are sane defaults that work on at least a few old systems.
11006# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11007
11008# Character class describing NM global symbol codes.
11009symcode='[BCDEGRST]'
11010
11011# Regexp to match symbols that can be accessed directly from C.
11012sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11013
11014# Transform the above into a raw symbol and a C symbol.
11015symxfrm='\1 \2\3 \3'
11016
11017# Transform an extracted symbol line into a proper C declaration
11018lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11019
11020# Transform an extracted symbol line into symbol name and symbol address
11021lt_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'"
11022
11023# Define system-specific variables.
11024case $host_os in
11025aix*)
11026 symcode='[BCDT]'
11027 ;;
11028cygwin* | mingw* | pw32*)
11029 symcode='[ABCDGISTW]'
11030 ;;
11031hpux*) # Its linker distinguishes data from code symbols
11032 if test "$host_cpu" = ia64; then
11033 symcode='[ABCDEGRST]'
11034 fi
11035 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11036 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'"
11037 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011038linux*)
11039 if test "$host_cpu" = ia64; then
11040 symcode='[ABCDGIRSTW]'
11041 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11042 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'"
11043 fi
11044 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011045irix* | nonstopux*)
11046 symcode='[BCDEGRST]'
11047 ;;
11048osf*)
11049 symcode='[BCDEGQRST]'
11050 ;;
11051solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011052 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011053 ;;
11054sysv4)
11055 symcode='[DFNSTU]'
11056 ;;
11057esac
11058
11059# Handle CRLF in mingw tool chain
11060opt_cr=
11061case $build_os in
11062mingw*)
11063 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11064 ;;
11065esac
11066
11067# If we're using GNU nm, then use its standard symbol codes.
11068case `$NM -V 2>&1` in
11069*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011070 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011071esac
11072
11073# Try without a prefix undercore, then with it.
11074for ac_symprfx in "" "_"; do
11075
11076 # Write the raw and C identifiers.
11077 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11078
11079 # Check to see that the pipe works correctly.
11080 pipe_works=no
11081
11082 rm -f conftest*
11083 cat > conftest.$ac_ext <<EOF
11084#ifdef __cplusplus
11085extern "C" {
11086#endif
11087char nm_test_var;
11088void nm_test_func(){}
11089#ifdef __cplusplus
11090}
11091#endif
11092int main(){nm_test_var='a';nm_test_func();return(0);}
11093EOF
11094
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; then
11100 # Now try to grab the symbols.
11101 nlist=conftest.nm
11102 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11103 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && test -s "$nlist"; then
11107 # Try sorting and uniquifying the output.
11108 if sort "$nlist" | uniq > "$nlist"T; then
11109 mv -f "$nlist"T "$nlist"
11110 else
11111 rm -f "$nlist"T
11112 fi
11113
11114 # Make sure that we snagged all the symbols we need.
11115 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11116 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11117 cat <<EOF > conftest.$ac_ext
11118#ifdef __cplusplus
11119extern "C" {
11120#endif
11121
11122EOF
11123 # Now generate the symbol file.
11124 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11125
11126 cat <<EOF >> conftest.$ac_ext
11127#if defined (__STDC__) && __STDC__
11128# define lt_ptr_t void *
11129#else
11130# define lt_ptr_t char *
11131# define const
11132#endif
11133
11134/* The mapping between symbol names and symbols. */
11135const struct {
11136 const char *name;
11137 lt_ptr_t address;
11138}
11139lt_preloaded_symbols[] =
11140{
11141EOF
11142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11143 cat <<\EOF >> conftest.$ac_ext
11144 {0, (lt_ptr_t) 0}
11145};
11146
11147#ifdef __cplusplus
11148}
11149#endif
11150EOF
11151 # Now try linking the two files.
11152 mv conftest.$ac_objext conftstm.$ac_objext
11153 lt_save_LIBS="$LIBS"
11154 lt_save_CFLAGS="$CFLAGS"
11155 LIBS="conftstm.$ac_objext"
11156 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11162 pipe_works=yes
11163 fi
11164 LIBS="$lt_save_LIBS"
11165 CFLAGS="$lt_save_CFLAGS"
11166 else
11167 echo "cannot find nm_test_func in $nlist" >&5
11168 fi
11169 else
11170 echo "cannot find nm_test_var in $nlist" >&5
11171 fi
11172 else
11173 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11174 fi
11175 else
11176 echo "$progname: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 fi
11179 rm -f conftest* conftst*
11180
11181 # Do not use the global_symbol_pipe unless it works.
11182 if test "$pipe_works" = yes; then
11183 break
11184 else
11185 lt_cv_sys_global_symbol_pipe=
11186 fi
11187done
11188
11189fi
11190
11191if test -z "$lt_cv_sys_global_symbol_pipe"; then
11192 lt_cv_sys_global_symbol_to_cdecl=
11193fi
11194if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11195 echo "$as_me:$LINENO: result: failed" >&5
11196echo "${ECHO_T}failed" >&6
11197else
11198 echo "$as_me:$LINENO: result: ok" >&5
11199echo "${ECHO_T}ok" >&6
11200fi
11201
11202echo "$as_me:$LINENO: checking for objdir" >&5
11203echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11204if test "${lt_cv_objdir+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 rm -f .libs 2>/dev/null
11208mkdir .libs 2>/dev/null
11209if test -d .libs; then
11210 lt_cv_objdir=.libs
11211else
11212 # MS-DOS does not allow filenames that begin with a dot.
11213 lt_cv_objdir=_libs
11214fi
11215rmdir .libs 2>/dev/null
11216fi
11217echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11218echo "${ECHO_T}$lt_cv_objdir" >&6
11219objdir=$lt_cv_objdir
11220
11221
11222
11223
11224
11225case $host_os in
11226aix3*)
11227 # AIX sometimes has problems with the GCC collect2 program. For some
11228 # reason, if we set the COLLECT_NAMES environment variable, the problems
11229 # vanish in a puff of smoke.
11230 if test "X${COLLECT_NAMES+set}" != Xset; then
11231 COLLECT_NAMES=
11232 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011233 fi
11234 ;;
11235esac
11236
John Criswell47fdd832003-07-14 16:52:07 +000011237# Sed substitution that helps us do robust quoting. It backslashifies
11238# metacharacters that are still active within double-quoted strings.
11239Xsed='sed -e s/^X//'
11240sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11241
11242# Same as above, but do not quote variable references.
11243double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11244
11245# Sed substitution to delay expansion of an escaped shell variable in a
11246# double_quote_subst'ed string.
11247delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11248
11249# Sed substitution to avoid accidental globbing in evaled expressions
11250no_glob_subst='s/\*/\\\*/g'
11251
11252# Constants:
11253rm="rm -f"
11254
11255# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011256default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011257can_build_shared=yes
11258
11259# All known linkers require a `.a' archive for static linking (except M$VC,
11260# which needs '.lib').
11261libext=a
11262ltmain="$ac_aux_dir/ltmain.sh"
11263ofile="$default_ofile"
11264with_gnu_ld="$lt_cv_prog_gnu_ld"
11265
11266if test -n "$ac_tool_prefix"; then
11267 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11268set dummy ${ac_tool_prefix}ar; ac_word=$2
11269echo "$as_me:$LINENO: checking for $ac_word" >&5
11270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11271if test "${ac_cv_prog_AR+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 if test -n "$AR"; then
11275 ac_cv_prog_AR="$AR" # Let the user override the test.
11276else
11277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278for as_dir in $PATH
11279do
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_prog_AR="${ac_tool_prefix}ar"
11285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11287 fi
11288done
11289done
11290
11291fi
11292fi
11293AR=$ac_cv_prog_AR
11294if test -n "$AR"; then
11295 echo "$as_me:$LINENO: result: $AR" >&5
11296echo "${ECHO_T}$AR" >&6
11297else
11298 echo "$as_me:$LINENO: result: no" >&5
11299echo "${ECHO_T}no" >&6
11300fi
11301
11302fi
11303if test -z "$ac_cv_prog_AR"; then
11304 ac_ct_AR=$AR
11305 # Extract the first word of "ar", so it can be a program name with args.
11306set dummy ar; ac_word=$2
11307echo "$as_me:$LINENO: checking for $ac_word" >&5
11308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11309if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311else
11312 if test -n "$ac_ct_AR"; then
11313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11314else
11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 ac_cv_prog_ac_ct_AR="ar"
11323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 break 2
11325 fi
11326done
11327done
11328
11329 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11330fi
11331fi
11332ac_ct_AR=$ac_cv_prog_ac_ct_AR
11333if test -n "$ac_ct_AR"; then
11334 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11335echo "${ECHO_T}$ac_ct_AR" >&6
11336else
11337 echo "$as_me:$LINENO: result: no" >&5
11338echo "${ECHO_T}no" >&6
11339fi
11340
11341 AR=$ac_ct_AR
11342else
11343 AR="$ac_cv_prog_AR"
11344fi
11345
John Criswell7a73b802003-06-30 21:59:07 +000011346if test -n "$ac_tool_prefix"; then
11347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11348set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11349echo "$as_me:$LINENO: checking for $ac_word" >&5
11350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11351if test "${ac_cv_prog_RANLIB+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353else
11354 if test -n "$RANLIB"; then
11355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11356else
11357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358for as_dir in $PATH
11359do
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11367 fi
11368done
11369done
11370
11371fi
11372fi
11373RANLIB=$ac_cv_prog_RANLIB
11374if test -n "$RANLIB"; then
11375 echo "$as_me:$LINENO: result: $RANLIB" >&5
11376echo "${ECHO_T}$RANLIB" >&6
11377else
11378 echo "$as_me:$LINENO: result: no" >&5
11379echo "${ECHO_T}no" >&6
11380fi
11381
11382fi
11383if test -z "$ac_cv_prog_RANLIB"; then
11384 ac_ct_RANLIB=$RANLIB
11385 # Extract the first word of "ranlib", so it can be a program name with args.
11386set dummy ranlib; ac_word=$2
11387echo "$as_me:$LINENO: checking for $ac_word" >&5
11388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 if test -n "$ac_ct_RANLIB"; then
11393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_ac_ct_RANLIB="ranlib"
11403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407done
11408
11409 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11410fi
11411fi
11412ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11413if test -n "$ac_ct_RANLIB"; then
11414 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11415echo "${ECHO_T}$ac_ct_RANLIB" >&6
11416else
11417 echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
11419fi
11420
11421 RANLIB=$ac_ct_RANLIB
11422else
11423 RANLIB="$ac_cv_prog_RANLIB"
11424fi
11425
11426if test -n "$ac_tool_prefix"; then
11427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11428set dummy ${ac_tool_prefix}strip; ac_word=$2
11429echo "$as_me:$LINENO: checking for $ac_word" >&5
11430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11431if test "${ac_cv_prog_STRIP+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 if test -n "$STRIP"; then
11435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449done
11450
11451fi
11452fi
11453STRIP=$ac_cv_prog_STRIP
11454if test -n "$STRIP"; then
11455 echo "$as_me:$LINENO: result: $STRIP" >&5
11456echo "${ECHO_T}$STRIP" >&6
11457else
11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460fi
11461
11462fi
11463if test -z "$ac_cv_prog_STRIP"; then
11464 ac_ct_STRIP=$STRIP
11465 # Extract the first word of "strip", so it can be a program name with args.
11466set dummy strip; ac_word=$2
11467echo "$as_me:$LINENO: checking for $ac_word" >&5
11468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11469if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472 if test -n "$ac_ct_STRIP"; then
11473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482 ac_cv_prog_ac_ct_STRIP="strip"
11483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487done
11488
11489 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11490fi
11491fi
11492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11493if test -n "$ac_ct_STRIP"; then
11494 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11495echo "${ECHO_T}$ac_ct_STRIP" >&6
11496else
11497 echo "$as_me:$LINENO: result: no" >&5
11498echo "${ECHO_T}no" >&6
11499fi
11500
11501 STRIP=$ac_ct_STRIP
11502else
11503 STRIP="$ac_cv_prog_STRIP"
11504fi
11505
11506
John Criswell7a73b802003-06-30 21:59:07 +000011507old_CC="$CC"
11508old_CFLAGS="$CFLAGS"
11509
11510# Set sane defaults for various variables
11511test -z "$AR" && AR=ar
11512test -z "$AR_FLAGS" && AR_FLAGS=cru
11513test -z "$AS" && AS=as
11514test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011515test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011516test -z "$DLLTOOL" && DLLTOOL=dlltool
11517test -z "$LD" && LD=ld
11518test -z "$LN_S" && LN_S="ln -s"
11519test -z "$MAGIC_CMD" && MAGIC_CMD=file
11520test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011521test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011522test -z "$OBJDUMP" && OBJDUMP=objdump
11523test -z "$RANLIB" && RANLIB=:
11524test -z "$STRIP" && STRIP=:
11525test -z "$ac_objext" && ac_objext=o
11526
John Criswell7a73b802003-06-30 21:59:07 +000011527# Determine commands to create old-style static archives.
11528old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11529old_postinstall_cmds='chmod 644 $oldlib'
11530old_postuninstall_cmds=
11531
11532if test -n "$RANLIB"; then
11533 case $host_os in
11534 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011535 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011536 ;;
11537 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011538 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011539 ;;
11540 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011541 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011542fi
11543
Reid Spencer2706f8c2004-09-19 23:53:36 +000011544cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11545
John Criswell47fdd832003-07-14 16:52:07 +000011546# Only perform the check for file, if the check method requires it
11547case $deplibs_check_method in
11548file_magic*)
11549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11550 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11551echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11552if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011554else
John Criswell47fdd832003-07-14 16:52:07 +000011555 case $MAGIC_CMD in
11556[\\/*] | ?:[\\/]*)
11557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11558 ;;
11559*)
11560 lt_save_MAGIC_CMD="$MAGIC_CMD"
11561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11563 for ac_dir in $ac_dummy; do
11564 IFS="$lt_save_ifs"
11565 test -z "$ac_dir" && ac_dir=.
11566 if test -f $ac_dir/${ac_tool_prefix}file; then
11567 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11568 if test -n "$file_magic_test_file"; then
11569 case $deplibs_check_method in
11570 "file_magic "*)
11571 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11574 $EGREP "$file_magic_regex" > /dev/null; then
11575 :
11576 else
11577 cat <<EOF 1>&2
11578
11579*** Warning: the command libtool uses to detect shared libraries,
11580*** $file_magic_cmd, produces output that libtool cannot recognize.
11581*** The result is that libtool may fail to recognize shared libraries
11582*** as such. This will affect the creation of libtool libraries that
11583*** depend on shared libraries, but programs linked with such libtool
11584*** libraries will work regardless of this problem. Nevertheless, you
11585*** may want to report the problem to your system manager and/or to
11586*** bug-libtool@gnu.org
11587
11588EOF
11589 fi ;;
11590 esac
11591 fi
11592 break
11593 fi
11594 done
11595 IFS="$lt_save_ifs"
11596 MAGIC_CMD="$lt_save_MAGIC_CMD"
11597 ;;
11598esac
John Criswell7a73b802003-06-30 21:59:07 +000011599fi
John Criswell7a73b802003-06-30 21:59:07 +000011600
John Criswell47fdd832003-07-14 16:52:07 +000011601MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11602if test -n "$MAGIC_CMD"; then
11603 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11604echo "${ECHO_T}$MAGIC_CMD" >&6
11605else
11606 echo "$as_me:$LINENO: result: no" >&5
11607echo "${ECHO_T}no" >&6
11608fi
John Criswell7a73b802003-06-30 21:59:07 +000011609
John Criswell47fdd832003-07-14 16:52:07 +000011610if test -z "$lt_cv_path_MAGIC_CMD"; then
11611 if test -n "$ac_tool_prefix"; then
11612 echo "$as_me:$LINENO: checking for file" >&5
11613echo $ECHO_N "checking for file... $ECHO_C" >&6
11614if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617 case $MAGIC_CMD in
11618[\\/*] | ?:[\\/]*)
11619 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11620 ;;
11621*)
11622 lt_save_MAGIC_CMD="$MAGIC_CMD"
11623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11624 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11625 for ac_dir in $ac_dummy; do
11626 IFS="$lt_save_ifs"
11627 test -z "$ac_dir" && ac_dir=.
11628 if test -f $ac_dir/file; then
11629 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11630 if test -n "$file_magic_test_file"; then
11631 case $deplibs_check_method in
11632 "file_magic "*)
11633 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11636 $EGREP "$file_magic_regex" > /dev/null; then
11637 :
11638 else
11639 cat <<EOF 1>&2
11640
11641*** Warning: the command libtool uses to detect shared libraries,
11642*** $file_magic_cmd, produces output that libtool cannot recognize.
11643*** The result is that libtool may fail to recognize shared libraries
11644*** as such. This will affect the creation of libtool libraries that
11645*** depend on shared libraries, but programs linked with such libtool
11646*** libraries will work regardless of this problem. Nevertheless, you
11647*** may want to report the problem to your system manager and/or to
11648*** bug-libtool@gnu.org
11649
11650EOF
11651 fi ;;
11652 esac
11653 fi
11654 break
11655 fi
11656 done
11657 IFS="$lt_save_ifs"
11658 MAGIC_CMD="$lt_save_MAGIC_CMD"
11659 ;;
11660esac
11661fi
11662
11663MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11664if test -n "$MAGIC_CMD"; then
11665 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11666echo "${ECHO_T}$MAGIC_CMD" >&6
11667else
11668 echo "$as_me:$LINENO: result: no" >&5
11669echo "${ECHO_T}no" >&6
11670fi
11671
11672 else
11673 MAGIC_CMD=:
11674 fi
11675fi
11676
11677 fi
11678 ;;
11679esac
11680
Reid Spencer17795972004-11-18 09:47:37 +000011681enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011682enable_win32_dll=no
11683
11684# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11685if test "${enable_libtool_lock+set}" = set; then
11686 enableval="$enable_libtool_lock"
11687
11688fi;
11689test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11690
John Criswell7a73b802003-06-30 21:59:07 +000011691
11692# Check whether --with-pic or --without-pic was given.
11693if test "${with_pic+set}" = set; then
11694 withval="$with_pic"
11695 pic_mode="$withval"
11696else
11697 pic_mode=default
11698fi;
11699test -z "$pic_mode" && pic_mode=default
11700
John Criswell47fdd832003-07-14 16:52:07 +000011701# Use C for the default configuration in the libtool script
11702tagname=
11703lt_save_CC="$CC"
11704ac_ext=c
11705ac_cpp='$CPP $CPPFLAGS'
11706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709
11710
11711# Source file extension for C test sources.
11712ac_ext=c
11713
11714# Object file extension for compiled C test sources.
11715objext=o
11716objext=$objext
11717
11718# Code to be used in simple compile tests
11719lt_simple_compile_test_code="int some_variable = 0;\n"
11720
11721# Code to be used in simple link tests
11722lt_simple_link_test_code='int main(){return(0);}\n'
11723
11724
11725# If no C compiler was specified, use CC.
11726LTCC=${LTCC-"$CC"}
11727
11728# Allow CC to be a program name with arguments.
11729compiler=$CC
11730
11731
11732#
11733# Check for any special shared library compilation flags.
11734#
11735lt_prog_cc_shlib=
11736if test "$GCC" = no; then
11737 case $host_os in
11738 sco3.2v5*)
11739 lt_prog_cc_shlib='-belf'
11740 ;;
11741 esac
11742fi
11743if test -n "$lt_prog_cc_shlib"; then
11744 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11745echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11746 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11747 else
11748 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11749echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11750 lt_cv_prog_cc_can_build_shared=no
11751 fi
11752fi
11753
11754
11755#
11756# Check to make sure the static flag actually works.
11757#
11758echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11759echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11760if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762else
John Criswell47fdd832003-07-14 16:52:07 +000011763 lt_prog_compiler_static_works=no
11764 save_LDFLAGS="$LDFLAGS"
11765 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11766 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11768 # The compiler can only warn and ignore the option if not recognized
11769 # So say no if there are warnings
11770 if test -s conftest.err; then
11771 # Append any errors to the config.log.
11772 cat conftest.err 1>&5
11773 else
11774 lt_prog_compiler_static_works=yes
11775 fi
11776 fi
11777 $rm conftest*
11778 LDFLAGS="$save_LDFLAGS"
11779
11780fi
11781echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11782echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11783
11784if test x"$lt_prog_compiler_static_works" = xyes; then
11785 :
11786else
11787 lt_prog_compiler_static=
11788fi
11789
11790
11791
John Criswell47fdd832003-07-14 16:52:07 +000011792
11793lt_prog_compiler_no_builtin_flag=
11794
11795if test "$GCC" = yes; then
11796 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11797
Reid Spencer2706f8c2004-09-19 23:53:36 +000011798
11799echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011800echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11801if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 lt_cv_prog_compiler_rtti_exceptions=no
11805 ac_outfile=conftest.$ac_objext
11806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11807 lt_compiler_flag="-fno-rtti -fno-exceptions"
11808 # Insert the option either (1) after the last *FLAGS variable, or
11809 # (2) before a word containing "conftest.", or (3) at the end.
11810 # Note that $ac_compile itself does not contain backslashes and begins
11811 # with a dollar sign (not a hyphen), so the echo should work correctly.
11812 # The option is referenced via a variable to avoid confusing sed.
11813 lt_compile=`echo "$ac_compile" | $SED \
11814 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11816 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000011817 (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011818 (eval "$lt_compile" 2>conftest.err)
11819 ac_status=$?
11820 cat conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000011821 echo "$as_me:11821: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011822 if (exit $ac_status) && test -s "$ac_outfile"; then
11823 # The compiler can only warn and ignore the option if not recognized
11824 # So say no if there are warnings
11825 if test ! -s conftest.err; then
11826 lt_cv_prog_compiler_rtti_exceptions=yes
11827 fi
11828 fi
11829 $rm conftest*
11830
11831fi
11832echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11833echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11834
11835if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11836 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11837else
11838 :
11839fi
11840
11841fi
11842
11843lt_prog_compiler_wl=
11844lt_prog_compiler_pic=
11845lt_prog_compiler_static=
11846
11847echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11848echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011849
11850 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011851 lt_prog_compiler_wl='-Wl,'
11852 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011853
11854 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011855 aix*)
11856 # All AIX code is PIC.
11857 if test "$host_cpu" = ia64; then
11858 # AIX 5 now supports IA64 processor
11859 lt_prog_compiler_static='-Bstatic'
11860 fi
John Criswell7a73b802003-06-30 21:59:07 +000011861 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011862
John Criswell7a73b802003-06-30 21:59:07 +000011863 amigaos*)
11864 # FIXME: we need at least 68020 code to build shared libraries, but
11865 # adding the `-m68020' flag to GCC prevents building anything better,
11866 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011868 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011869
11870 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011871 # PIC is the default for these OSes.
11872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011873
11874 mingw* | pw32* | os2*)
11875 # This hack is so that the source file can tell whether it is being
11876 # built for inclusion in a dll (and should export symbols for example).
11877 lt_prog_compiler_pic='-DDLL_EXPORT'
11878 ;;
11879
John Criswell7a73b802003-06-30 21:59:07 +000011880 darwin* | rhapsody*)
11881 # PIC is the default on this platform
11882 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011883 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011884 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011885
11886 msdosdjgpp*)
11887 # Just because we use GCC doesn't mean we suddenly get shared libraries
11888 # on systems that don't support them.
11889 lt_prog_compiler_can_build_shared=no
11890 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011891 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011892
John Criswell7a73b802003-06-30 21:59:07 +000011893 sysv4*MP*)
11894 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011895 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011896 fi
11897 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011898
11899 hpux*)
11900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11901 # not for PA HP-UX.
11902 case "$host_cpu" in
11903 hppa*64*|ia64*)
11904 # +Z the default
11905 ;;
11906 *)
11907 lt_prog_compiler_pic='-fPIC'
11908 ;;
11909 esac
11910 ;;
11911
John Criswell7a73b802003-06-30 21:59:07 +000011912 *)
John Criswell47fdd832003-07-14 16:52:07 +000011913 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011914 ;;
11915 esac
11916 else
John Criswell47fdd832003-07-14 16:52:07 +000011917 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011918 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011919 aix*)
11920 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011921 if test "$host_cpu" = ia64; then
11922 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011923 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011924 else
John Criswell47fdd832003-07-14 16:52:07 +000011925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011926 fi
11927 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011928 darwin*)
11929 # PIC is the default on this platform
11930 # Common symbols not allowed in MH_DYLIB files
11931 case "$cc_basename" in
11932 xlc*)
11933 lt_prog_compiler_pic='-qnocommon'
11934 lt_prog_compiler_wl='-Wl,'
11935 ;;
11936 esac
11937 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011938
John Criswell47fdd832003-07-14 16:52:07 +000011939 mingw* | pw32* | os2*)
11940 # This hack is so that the source file can tell whether it is being
11941 # built for inclusion in a dll (and should export symbols for example).
11942 lt_prog_compiler_pic='-DDLL_EXPORT'
11943 ;;
11944
John Criswell7a73b802003-06-30 21:59:07 +000011945 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011946 lt_prog_compiler_wl='-Wl,'
11947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11948 # not for PA HP-UX.
11949 case "$host_cpu" in
11950 hppa*64*|ia64*)
11951 # +Z the default
11952 ;;
11953 *)
11954 lt_prog_compiler_pic='+Z'
11955 ;;
11956 esac
11957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11958 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011959 ;;
11960
John Criswell47fdd832003-07-14 16:52:07 +000011961 irix5* | irix6* | nonstopux*)
11962 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011963 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011964 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011965 ;;
11966
11967 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011968 lt_prog_compiler_pic='-KPIC'
11969 lt_prog_compiler_static='-Bstatic'
11970 ;;
11971
11972 linux*)
11973 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011974 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011975 lt_prog_compiler_wl='-Wl,'
11976 lt_prog_compiler_pic='-KPIC'
11977 lt_prog_compiler_static='-static'
11978 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011979 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011980 lt_prog_compiler_wl='-Wl,'
11981 # All Alpha code is PIC.
11982 lt_prog_compiler_static='-non_shared'
11983 ;;
11984 esac
John Criswell7a73b802003-06-30 21:59:07 +000011985 ;;
11986
11987 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011988 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011989 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011990 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011991 ;;
11992
11993 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011994 lt_prog_compiler_pic='-Kpic'
11995 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011996 ;;
11997
11998 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011999 lt_prog_compiler_wl='-Wl,'
12000 lt_prog_compiler_pic='-KPIC'
12001 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012002 ;;
12003
12004 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012005 lt_prog_compiler_wl='-Qoption ld '
12006 lt_prog_compiler_pic='-PIC'
12007 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012008 ;;
12009
12010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012011 lt_prog_compiler_wl='-Wl,'
12012 lt_prog_compiler_pic='-KPIC'
12013 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012014 ;;
12015
12016 sysv4*MP*)
12017 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012018 lt_prog_compiler_pic='-Kconform_pic'
12019 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012020 fi
12021 ;;
12022
John Criswell47fdd832003-07-14 16:52:07 +000012023 uts4*)
12024 lt_prog_compiler_pic='-pic'
12025 lt_prog_compiler_static='-Bstatic'
12026 ;;
12027
John Criswell7a73b802003-06-30 21:59:07 +000012028 *)
John Criswell47fdd832003-07-14 16:52:07 +000012029 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012030 ;;
12031 esac
12032 fi
12033
John Criswell47fdd832003-07-14 16:52:07 +000012034echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12035echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012036
John Criswell47fdd832003-07-14 16:52:07 +000012037#
12038# Check to make sure the PIC flag actually works.
12039#
12040if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012041
12042echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012043echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12044if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
John Criswell47fdd832003-07-14 16:52:07 +000012047 lt_prog_compiler_pic_works=no
12048 ac_outfile=conftest.$ac_objext
12049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12050 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 # The option is referenced via a variable to avoid confusing sed.
12056 lt_compile=`echo "$ac_compile" | $SED \
12057 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12059 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000012060 (eval echo "\"\$as_me:12060: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012061 (eval "$lt_compile" 2>conftest.err)
12062 ac_status=$?
12063 cat conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000012064 echo "$as_me:12064: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012065 if (exit $ac_status) && test -s "$ac_outfile"; then
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 if test ! -s conftest.err; then
12069 lt_prog_compiler_pic_works=yes
12070 fi
12071 fi
12072 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012073
John Criswell47fdd832003-07-14 16:52:07 +000012074fi
12075echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12076echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012077
John Criswell47fdd832003-07-14 16:52:07 +000012078if test x"$lt_prog_compiler_pic_works" = xyes; then
12079 case $lt_prog_compiler_pic in
12080 "" | " "*) ;;
12081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12082 esac
John Criswell7a73b802003-06-30 21:59:07 +000012083else
John Criswell47fdd832003-07-14 16:52:07 +000012084 lt_prog_compiler_pic=
12085 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012086fi
12087
John Criswell7a73b802003-06-30 21:59:07 +000012088fi
John Criswell47fdd832003-07-14 16:52:07 +000012089case "$host_os" in
12090 # For platforms which do not support PIC, -DPIC is meaningless:
12091 *djgpp*)
12092 lt_prog_compiler_pic=
12093 ;;
12094 *)
12095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12096 ;;
12097esac
John Criswell7a73b802003-06-30 21:59:07 +000012098
John Criswell7a73b802003-06-30 21:59:07 +000012099echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12100echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012101if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
John Criswell47fdd832003-07-14 16:52:07 +000012104 lt_cv_prog_compiler_c_o=no
12105 $rm -r conftest 2>/dev/null
12106 mkdir conftest
12107 cd conftest
12108 mkdir out
12109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012110
John Criswell47fdd832003-07-14 16:52:07 +000012111 lt_compiler_flag="-o out/conftest2.$ac_objext"
12112 # Insert the option either (1) after the last *FLAGS variable, or
12113 # (2) before a word containing "conftest.", or (3) at the end.
12114 # Note that $ac_compile itself does not contain backslashes and begins
12115 # with a dollar sign (not a hyphen), so the echo should work correctly.
12116 lt_compile=`echo "$ac_compile" | $SED \
12117 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12119 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000012120 (eval echo "\"\$as_me:12120: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012121 (eval "$lt_compile" 2>out/conftest.err)
12122 ac_status=$?
12123 cat out/conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000012124 echo "$as_me:12124: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12126 then
12127 # The compiler can only warn and ignore the option if not recognized
12128 # So say no if there are warnings
12129 if test ! -s out/conftest.err; then
12130 lt_cv_prog_compiler_c_o=yes
12131 fi
12132 fi
12133 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012134 $rm conftest*
12135 # SGI C++ compiler will create directory out/ii_files/ for
12136 # template instantiation
12137 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12138 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012139 cd ..
12140 rmdir conftest
12141 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012142
12143fi
John Criswell47fdd832003-07-14 16:52:07 +000012144echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12145echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012146
John Criswell7a73b802003-06-30 21:59:07 +000012147
John Criswell7a73b802003-06-30 21:59:07 +000012148hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012149if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012150 # do not overwrite the value of need_locks provided by the user
12151 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12152echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12153 hard_links=yes
12154 $rm conftest*
12155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12156 touch conftest.a
12157 ln conftest.a conftest.b 2>&5 || hard_links=no
12158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12159 echo "$as_me:$LINENO: result: $hard_links" >&5
12160echo "${ECHO_T}$hard_links" >&6
12161 if test "$hard_links" = no; then
12162 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12163echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12164 need_locks=warn
12165 fi
12166else
12167 need_locks=no
12168fi
John Criswell7a73b802003-06-30 21:59:07 +000012169
John Criswell47fdd832003-07-14 16:52:07 +000012170echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12171echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12172
12173 runpath_var=
12174 allow_undefined_flag=
12175 enable_shared_with_static_runtimes=no
12176 archive_cmds=
12177 archive_expsym_cmds=
12178 old_archive_From_new_cmds=
12179 old_archive_from_expsyms_cmds=
12180 export_dynamic_flag_spec=
12181 whole_archive_flag_spec=
12182 thread_safe_flag_spec=
12183 hardcode_libdir_flag_spec=
12184 hardcode_libdir_flag_spec_ld=
12185 hardcode_libdir_separator=
12186 hardcode_direct=no
12187 hardcode_minus_L=no
12188 hardcode_shlibpath_var=unsupported
12189 link_all_deplibs=unknown
12190 hardcode_automatic=no
12191 module_cmds=
12192 module_expsym_cmds=
12193 always_export_symbols=no
12194 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12195 # include_expsyms should be a list of space-separated symbols to be *always*
12196 # included in the symbol list
12197 include_expsyms=
12198 # exclude_expsyms can be an extended regexp of symbols to exclude
12199 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12200 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12201 # as well as any symbol that contains `d'.
12202 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12203 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12204 # platforms (ab)use it in PIC code, but their linkers get confused if
12205 # the symbol is explicitly referenced. Since portable code cannot
12206 # rely on this symbol name, it's probably fine to never include it in
12207 # preloaded symbol tables.
12208 extract_expsyms_cmds=
12209
12210 case $host_os in
12211 cygwin* | mingw* | pw32*)
12212 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12213 # When not using gcc, we currently assume that we are using
12214 # Microsoft Visual C++.
12215 if test "$GCC" != yes; then
12216 with_gnu_ld=no
12217 fi
12218 ;;
12219 openbsd*)
12220 with_gnu_ld=no
12221 ;;
12222 esac
12223
12224 ld_shlibs=yes
12225 if test "$with_gnu_ld" = yes; then
12226 # If archive_cmds runs LD, not CC, wlarc should be empty
12227 wlarc='${wl}'
12228
12229 # See if GNU ld supports shared libraries.
12230 case $host_os in
12231 aix3* | aix4* | aix5*)
12232 # On AIX/PPC, the GNU linker is very broken
12233 if test "$host_cpu" != ia64; then
12234 ld_shlibs=no
12235 cat <<EOF 1>&2
12236
12237*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12238*** to be unable to reliably create shared libraries on AIX.
12239*** Therefore, libtool is disabling shared libraries support. If you
12240*** really care for shared libraries, you may want to modify your PATH
12241*** so that a non-GNU linker is found, and then restart.
12242
12243EOF
12244 fi
12245 ;;
12246
12247 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012248 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 +000012249 hardcode_libdir_flag_spec='-L$libdir'
12250 hardcode_minus_L=yes
12251
12252 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12253 # that the semantics of dynamic libraries on AmigaOS, at least up
12254 # to version 4, is to share data among multiple programs linked
12255 # with the same dynamic library. Since this doesn't match the
12256 # behavior of shared libraries on other platforms, we can't use
12257 # them.
12258 ld_shlibs=no
12259 ;;
12260
12261 beos*)
12262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12263 allow_undefined_flag=unsupported
12264 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12265 # support --undefined. This deserves some investigation. FIXME
12266 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267 else
12268 ld_shlibs=no
12269 fi
12270 ;;
12271
12272 cygwin* | mingw* | pw32*)
12273 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12274 # as there is no search path for DLLs.
12275 hardcode_libdir_flag_spec='-L$libdir'
12276 allow_undefined_flag=unsupported
12277 always_export_symbols=no
12278 enable_shared_with_static_runtimes=yes
12279 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12280
12281 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12283 # If the export-symbols file already is a .def file (1st line
12284 # is EXPORTS), use it as is; otherwise, prepend...
12285 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12286 cp $export_symbols $output_objdir/$soname.def;
12287 else
12288 echo EXPORTS > $output_objdir/$soname.def;
12289 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012290 fi~
12291 $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 +000012292 else
12293 ld_shlibs=no
12294 fi
12295 ;;
12296
12297 netbsd*)
12298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12299 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12300 wlarc=
12301 else
12302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12304 fi
12305 ;;
12306
12307 solaris* | sysv5*)
12308 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12309 ld_shlibs=no
12310 cat <<EOF 1>&2
12311
12312*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12313*** create shared libraries on Solaris systems. Therefore, libtool
12314*** is disabling shared libraries support. We urge you to upgrade GNU
12315*** binutils to release 2.9.1 or newer. Another option is to modify
12316*** your PATH or compiler configuration so that the native linker is
12317*** used, and then restart.
12318
12319EOF
12320 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12323 else
12324 ld_shlibs=no
12325 fi
12326 ;;
12327
12328 sunos4*)
12329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12330 wlarc=
12331 hardcode_direct=yes
12332 hardcode_shlibpath_var=no
12333 ;;
12334
Reid Spencer2706f8c2004-09-19 23:53:36 +000012335 linux*)
12336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12337 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338 archive_cmds="$tmp_archive_cmds"
12339 supports_anon_versioning=no
12340 case `$LD -v 2>/dev/null` in
12341 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12342 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12343 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12344 *\ 2.11.*) ;; # other 2.11 versions
12345 *) supports_anon_versioning=yes ;;
12346 esac
12347 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012348 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12349cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012351 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12352 else
12353 archive_expsym_cmds="$tmp_archive_cmds"
12354 fi
12355 else
12356 ld_shlibs=no
12357 fi
12358 ;;
12359
John Criswell47fdd832003-07-14 16:52:07 +000012360 *)
12361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12364 else
12365 ld_shlibs=no
12366 fi
12367 ;;
12368 esac
12369
12370 if test "$ld_shlibs" = yes; then
12371 runpath_var=LD_RUN_PATH
12372 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12373 export_dynamic_flag_spec='${wl}--export-dynamic'
12374 # ancient GNU ld didn't support --whole-archive et. al.
12375 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12376 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12377 else
12378 whole_archive_flag_spec=
12379 fi
12380 fi
12381 else
12382 # PORTME fill in a description of your system's linker (not GNU ld)
12383 case $host_os in
12384 aix3*)
12385 allow_undefined_flag=unsupported
12386 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012387 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 +000012388 # Note: this linker hardcodes the directories in LIBPATH if there
12389 # are no directories specified by -L.
12390 hardcode_minus_L=yes
12391 if test "$GCC" = yes && test -z "$link_static_flag"; then
12392 # Neither direct hardcoding nor static linking is supported with a
12393 # broken collect2.
12394 hardcode_direct=unsupported
12395 fi
12396 ;;
12397
12398 aix4* | aix5*)
12399 if test "$host_cpu" = ia64; then
12400 # On IA64, the linker does run time linking by default, so we don't
12401 # have to do anything special.
12402 aix_use_runtimelinking=no
12403 exp_sym_flag='-Bexport'
12404 no_entry_flag=""
12405 else
12406 # If we're using GNU nm, then we don't want the "-C" option.
12407 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12409 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'
12410 else
12411 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'
12412 fi
12413 aix_use_runtimelinking=no
12414
12415 # Test if we are trying to use run time linking or normal
12416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12417 # need to do runtime linking.
12418 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12419 for ld_flag in $LDFLAGS; do
12420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12421 aix_use_runtimelinking=yes
12422 break
12423 fi
12424 done
12425 esac
12426
12427 exp_sym_flag='-bexport'
12428 no_entry_flag='-bnoentry'
12429 fi
12430
12431 # When large executables or shared objects are built, AIX ld can
12432 # have problems creating the table of contents. If linking a library
12433 # or program results in "error TOC overflow" add -mminimal-toc to
12434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12436
12437 archive_cmds=''
12438 hardcode_direct=yes
12439 hardcode_libdir_separator=':'
12440 link_all_deplibs=yes
12441
12442 if test "$GCC" = yes; then
12443 case $host_os in aix4.012|aix4.012.*)
12444 # We only want to do this on AIX 4.2 and lower, the check
12445 # below for broken collect2 doesn't work under 4.3+
12446 collect2name=`${CC} -print-prog-name=collect2`
12447 if test -f "$collect2name" && \
12448 strings "$collect2name" | grep resolve_lib_name >/dev/null
12449 then
12450 # We have reworked collect2
12451 hardcode_direct=yes
12452 else
12453 # We have old collect2
12454 hardcode_direct=unsupported
12455 # It fails to find uninstalled libraries when the uninstalled
12456 # path is not listed in the libpath. Setting hardcode_minus_L
12457 # to unsupported forces relinking
12458 hardcode_minus_L=yes
12459 hardcode_libdir_flag_spec='-L$libdir'
12460 hardcode_libdir_separator=
12461 fi
12462 esac
12463 shared_flag='-shared'
12464 else
12465 # not using gcc
12466 if test "$host_cpu" = ia64; then
12467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12468 # chokes on -Wl,-G. The following line is correct:
12469 shared_flag='-G'
12470 else
12471 if test "$aix_use_runtimelinking" = yes; then
12472 shared_flag='${wl}-G'
12473 else
12474 shared_flag='${wl}-bM:SRE'
12475 fi
12476 fi
12477 fi
12478
12479 # It seems that -bexpall does not export symbols beginning with
12480 # underscore (_), so it is better to generate a list of symbols to export.
12481 always_export_symbols=yes
12482 if test "$aix_use_runtimelinking" = yes; then
12483 # Warning - without using the other runtime loading flags (-brtl),
12484 # -berok will link without error, but may produce a broken library.
12485 allow_undefined_flag='-berok'
12486 # Determine the default libpath from the value encoded in an empty executable.
12487 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012493
John Criswell7a73b802003-06-30 21:59:07 +000012494int
12495main ()
12496{
John Criswell47fdd832003-07-14 16:52:07 +000012497
John Criswell7a73b802003-06-30 21:59:07 +000012498 ;
12499 return 0;
12500}
12501_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012504 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012524
John Criswell47fdd832003-07-14 16:52:07 +000012525aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12526}'`
12527# Check for a 64-bit object if we didn't find anything.
12528if 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; }
12529}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012530else
12531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012532sed 's/^/| /' conftest.$ac_ext >&5
12533
John Criswell7a73b802003-06-30 21:59:07 +000012534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012535rm -f conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012538
John Criswell47fdd832003-07-14 16:52:07 +000012539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12540 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"
12541 else
12542 if test "$host_cpu" = ia64; then
12543 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12544 allow_undefined_flag="-z nodefs"
12545 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"
12546 else
12547 # Determine the default libpath from the value encoded in an empty executable.
12548 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012554
John Criswell47fdd832003-07-14 16:52:07 +000012555int
12556main ()
12557{
John Criswell7a73b802003-06-30 21:59:07 +000012558
John Criswell47fdd832003-07-14 16:52:07 +000012559 ;
12560 return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
12564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012565 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012566 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012572 { ac_try='test -z "$ac_c_werror_flag"
12573 || test ! -s conftest.err'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012585
John Criswell47fdd832003-07-14 16:52:07 +000012586aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12587}'`
12588# Check for a 64-bit object if we didn't find anything.
12589if 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; }
12590}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012591else
John Criswell47fdd832003-07-14 16:52:07 +000012592 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012593sed 's/^/| /' conftest.$ac_ext >&5
12594
John Criswell47fdd832003-07-14 16:52:07 +000012595fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012596rm -f conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012599
John Criswell47fdd832003-07-14 16:52:07 +000012600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12601 # Warning - without using the other run time loading flags,
12602 # -berok will link without error, but may produce a broken library.
12603 no_undefined_flag=' ${wl}-bernotok'
12604 allow_undefined_flag=' ${wl}-berok'
12605 # -bexpall does not export symbols beginning with underscore (_)
12606 always_export_symbols=yes
12607 # Exported symbols can be pulled into shared objects from archives
12608 whole_archive_flag_spec=' '
12609 archive_cmds_need_lc=yes
12610 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012611 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 +000012612 fi
12613 fi
John Criswell7a73b802003-06-30 21:59:07 +000012614 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012615
12616 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012617 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 +000012618 hardcode_libdir_flag_spec='-L$libdir'
12619 hardcode_minus_L=yes
12620 # see comment about different semantics on the GNU ld section
12621 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012622 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012623
Reid Spencer2706f8c2004-09-19 23:53:36 +000012624 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012625 export_dynamic_flag_spec=-rdynamic
12626 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012627
John Criswell47fdd832003-07-14 16:52:07 +000012628 cygwin* | mingw* | pw32*)
12629 # When not using gcc, we currently assume that we are using
12630 # Microsoft Visual C++.
12631 # hardcode_libdir_flag_spec is actually meaningless, as there is
12632 # no search path for DLLs.
12633 hardcode_libdir_flag_spec=' '
12634 allow_undefined_flag=unsupported
12635 # Tell ltmain to make .lib files, not .a files.
12636 libext=lib
12637 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012638 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012639 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012641 # The linker will automatically build a .lib file if we build a DLL.
12642 old_archive_From_new_cmds='true'
12643 # FIXME: Should let the user specify the lib program.
12644 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12645 fix_srcfile_path='`cygpath -w "$srcfile"`'
12646 enable_shared_with_static_runtimes=yes
12647 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012648
John Criswell47fdd832003-07-14 16:52:07 +000012649 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012650 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012651 rhapsody* | darwin1.[012])
12652 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12653 ;;
12654 *) # Darwin 1.3 on
12655 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12656 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12657 else
12658 case ${MACOSX_DEPLOYMENT_TARGET} in
12659 10.[012])
12660 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12661 ;;
12662 10.*)
12663 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12664 ;;
12665 esac
12666 fi
12667 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012668 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012669 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012670 hardcode_direct=no
12671 hardcode_automatic=yes
12672 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012673 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012674 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012675 if test "$GCC" = yes ; then
12676 output_verbose_link_cmd='echo'
12677 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12678 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12679 # 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 +000012680 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}'
12681 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 +000012682 else
12683 case "$cc_basename" in
12684 xlc*)
12685 output_verbose_link_cmd='echo'
12686 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12687 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12688 # 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 +000012689 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}'
12690 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 +000012691 ;;
12692 *)
12693 ld_shlibs=no
12694 ;;
12695 esac
John Criswell7a73b802003-06-30 21:59:07 +000012696 fi
John Criswell47fdd832003-07-14 16:52:07 +000012697 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012698
John Criswell47fdd832003-07-14 16:52:07 +000012699 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012701 hardcode_libdir_flag_spec='-L$libdir'
12702 hardcode_shlibpath_var=no
12703 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012704
John Criswell47fdd832003-07-14 16:52:07 +000012705 freebsd1*)
12706 ld_shlibs=no
12707 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012708
John Criswell47fdd832003-07-14 16:52:07 +000012709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12710 # support. Future versions do this automatically, but an explicit c++rt0.o
12711 # does not break anything, and helps significantly (at the cost of a little
12712 # extra space).
12713 freebsd2.2*)
12714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12715 hardcode_libdir_flag_spec='-R$libdir'
12716 hardcode_direct=yes
12717 hardcode_shlibpath_var=no
12718 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012719
John Criswell47fdd832003-07-14 16:52:07 +000012720 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12721 freebsd2*)
12722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12723 hardcode_direct=yes
12724 hardcode_minus_L=yes
12725 hardcode_shlibpath_var=no
12726 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012727
John Criswell47fdd832003-07-14 16:52:07 +000012728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012729 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012730 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12731 hardcode_libdir_flag_spec='-R$libdir'
12732 hardcode_direct=yes
12733 hardcode_shlibpath_var=no
12734 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012735
John Criswell47fdd832003-07-14 16:52:07 +000012736 hpux9*)
12737 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012738 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 +000012739 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012740 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 +000012741 fi
12742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12743 hardcode_libdir_separator=:
12744 hardcode_direct=yes
12745
12746 # hardcode_minus_L: Not really in the search PATH,
12747 # but as the default location of the library.
12748 hardcode_minus_L=yes
12749 export_dynamic_flag_spec='${wl}-E'
12750 ;;
12751
12752 hpux10* | hpux11*)
12753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12754 case "$host_cpu" in
12755 hppa*64*|ia64*)
12756 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 ;;
12758 *)
12759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12760 ;;
12761 esac
12762 else
12763 case "$host_cpu" in
12764 hppa*64*|ia64*)
12765 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12766 ;;
12767 *)
12768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12769 ;;
12770 esac
12771 fi
12772 if test "$with_gnu_ld" = no; then
12773 case "$host_cpu" in
12774 hppa*64*)
12775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12776 hardcode_libdir_flag_spec_ld='+b $libdir'
12777 hardcode_libdir_separator=:
12778 hardcode_direct=no
12779 hardcode_shlibpath_var=no
12780 ;;
12781 ia64*)
12782 hardcode_libdir_flag_spec='-L$libdir'
12783 hardcode_direct=no
12784 hardcode_shlibpath_var=no
12785
12786 # hardcode_minus_L: Not really in the search PATH,
12787 # but as the default location of the library.
12788 hardcode_minus_L=yes
12789 ;;
12790 *)
12791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12792 hardcode_libdir_separator=:
12793 hardcode_direct=yes
12794 export_dynamic_flag_spec='${wl}-E'
12795
12796 # hardcode_minus_L: Not really in the search PATH,
12797 # but as the default location of the library.
12798 hardcode_minus_L=yes
12799 ;;
12800 esac
12801 fi
12802 ;;
12803
12804 irix5* | irix6* | nonstopux*)
12805 if test "$GCC" = yes; then
12806 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'
12807 else
12808 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'
12809 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12810 fi
12811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12812 hardcode_libdir_separator=:
12813 link_all_deplibs=yes
12814 ;;
12815
12816 netbsd*)
12817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12819 else
12820 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12821 fi
12822 hardcode_libdir_flag_spec='-R$libdir'
12823 hardcode_direct=yes
12824 hardcode_shlibpath_var=no
12825 ;;
12826
12827 newsos6)
12828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829 hardcode_direct=yes
12830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12831 hardcode_libdir_separator=:
12832 hardcode_shlibpath_var=no
12833 ;;
12834
12835 openbsd*)
12836 hardcode_direct=yes
12837 hardcode_shlibpath_var=no
12838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012840 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 +000012841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12842 export_dynamic_flag_spec='${wl}-E'
12843 else
12844 case $host_os in
12845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12847 hardcode_libdir_flag_spec='-R$libdir'
12848 ;;
12849 *)
12850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12852 ;;
12853 esac
12854 fi
12855 ;;
12856
12857 os2*)
12858 hardcode_libdir_flag_spec='-L$libdir'
12859 hardcode_minus_L=yes
12860 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012861 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 +000012862 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12863 ;;
12864
12865 osf3*)
12866 if test "$GCC" = yes; then
12867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12868 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'
12869 else
12870 allow_undefined_flag=' -expect_unresolved \*'
12871 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'
12872 fi
12873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874 hardcode_libdir_separator=:
12875 ;;
12876
12877 osf4* | osf5*) # as osf3* with the addition of -msym flag
12878 if test "$GCC" = yes; then
12879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12880 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'
12881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12882 else
12883 allow_undefined_flag=' -expect_unresolved \*'
12884 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 +000012885 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12886 $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'
12887
John Criswell47fdd832003-07-14 16:52:07 +000012888 # Both c and cxx compiler support -rpath directly
12889 hardcode_libdir_flag_spec='-rpath $libdir'
12890 fi
12891 hardcode_libdir_separator=:
12892 ;;
12893
12894 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012897 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012898 runpath_var=LD_RUN_PATH
12899 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012900 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012901
John Criswell47fdd832003-07-14 16:52:07 +000012902 solaris*)
12903 no_undefined_flag=' -z text'
12904 if test "$GCC" = yes; then
12905 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907 $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 +000012908 else
12909 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012910 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12911 $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 +000012912 fi
12913 hardcode_libdir_flag_spec='-R$libdir'
12914 hardcode_shlibpath_var=no
12915 case $host_os in
12916 solaris2.[0-5] | solaris2.[0-5].*) ;;
12917 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12919 esac
12920 link_all_deplibs=yes
12921 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012922
John Criswell47fdd832003-07-14 16:52:07 +000012923 sunos4*)
12924 if test "x$host_vendor" = xsequent; then
12925 # Use $CC to link under sequent, because it throws in some extra .o
12926 # files that make .init and .fini sections work.
12927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12928 else
12929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12930 fi
12931 hardcode_libdir_flag_spec='-L$libdir'
12932 hardcode_direct=yes
12933 hardcode_minus_L=yes
12934 hardcode_shlibpath_var=no
12935 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012936
John Criswell47fdd832003-07-14 16:52:07 +000012937 sysv4)
12938 case $host_vendor in
12939 sni)
12940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_direct=yes # is this really true???
12942 ;;
12943 siemens)
12944 ## LD is ld it makes a PLAMLIB
12945 ## CC just makes a GrossModule.
12946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12947 reload_cmds='$CC -r -o $output$reload_objs'
12948 hardcode_direct=no
12949 ;;
12950 motorola)
12951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12953 ;;
12954 esac
12955 runpath_var='LD_RUN_PATH'
12956 hardcode_shlibpath_var=no
12957 ;;
12958
12959 sysv4.3*)
12960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12961 hardcode_shlibpath_var=no
12962 export_dynamic_flag_spec='-Bexport'
12963 ;;
12964
12965 sysv4*MP*)
12966 if test -d /usr/nec; then
12967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12968 hardcode_shlibpath_var=no
12969 runpath_var=LD_RUN_PATH
12970 hardcode_runpath_var=yes
12971 ld_shlibs=yes
12972 fi
12973 ;;
12974
12975 sysv4.2uw2*)
12976 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_direct=yes
12978 hardcode_minus_L=no
12979 hardcode_shlibpath_var=no
12980 hardcode_runpath_var=yes
12981 runpath_var=LD_RUN_PATH
12982 ;;
12983
12984 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12985 no_undefined_flag='${wl}-z ${wl}text'
12986 if test "$GCC" = yes; then
12987 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12988 else
12989 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 fi
12991 runpath_var='LD_RUN_PATH'
12992 hardcode_shlibpath_var=no
12993 ;;
12994
12995 sysv5*)
12996 no_undefined_flag=' -z text'
12997 # $CC -shared without GNU ld will not create a library from C++
12998 # object files and a static libstdc++, better avoid it by now
12999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013000 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13001 $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 +000013002 hardcode_libdir_flag_spec=
13003 hardcode_shlibpath_var=no
13004 runpath_var='LD_RUN_PATH'
13005 ;;
13006
13007 uts4*)
13008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009 hardcode_libdir_flag_spec='-L$libdir'
13010 hardcode_shlibpath_var=no
13011 ;;
13012
13013 *)
13014 ld_shlibs=no
13015 ;;
13016 esac
13017 fi
13018
John Criswell7a73b802003-06-30 21:59:07 +000013019echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13020echo "${ECHO_T}$ld_shlibs" >&6
13021test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013022
John Criswell47fdd832003-07-14 16:52:07 +000013023variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13024if test "$GCC" = yes; then
13025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13026fi
13027
13028#
13029# Do we need to explicitly link libc?
13030#
13031case "x$archive_cmds_need_lc" in
13032x|xyes)
13033 # Assume -lc should be added
13034 archive_cmds_need_lc=yes
13035
13036 if test "$enable_shared" = yes && test "$GCC" = yes; then
13037 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013038 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013039 # FIXME: we may have to deal with multi-command sequences.
13040 ;;
13041 '$CC '*)
13042 # Test whether the compiler implicitly links with -lc since on some
13043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13044 # to ld, don't add -lc before -lgcc.
13045 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13046echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13047 $rm conftest*
13048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13049
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } 2>conftest.err; then
13055 soname=conftest
13056 lib=conftest
13057 libobjs=conftest.$ac_objext
13058 deplibs=
13059 wl=$lt_prog_compiler_wl
13060 compiler_flags=-v
13061 linker_flags=-v
13062 verstring=
13063 output_objdir=.
13064 libname=conftest
13065 lt_save_allow_undefined_flag=$allow_undefined_flag
13066 allow_undefined_flag=
13067 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13068 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }
13072 then
13073 archive_cmds_need_lc=no
13074 else
13075 archive_cmds_need_lc=yes
13076 fi
13077 allow_undefined_flag=$lt_save_allow_undefined_flag
13078 else
13079 cat conftest.err 1>&5
13080 fi
13081 $rm conftest*
13082 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13083echo "${ECHO_T}$archive_cmds_need_lc" >&6
13084 ;;
13085 esac
13086 fi
13087 ;;
13088esac
13089
John Criswell7a73b802003-06-30 21:59:07 +000013090echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13091echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13092library_names_spec=
13093libname_spec='lib$name'
13094soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013095shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013096postinstall_cmds=
13097postuninstall_cmds=
13098finish_cmds=
13099finish_eval=
13100shlibpath_var=
13101shlibpath_overrides_runpath=unknown
13102version_type=none
13103dynamic_linker="$host_os ld.so"
13104sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013105if test "$GCC" = yes; then
13106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13107 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13108 # if the path contains ";" then we assume it to be the separator
13109 # otherwise default to the standard path separator (i.e. ":") - it is
13110 # assumed that no part of a normal pathname contains ";" but that should
13111 # okay in the real world where ";" in dirpaths is itself problematic.
13112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13113 else
13114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13115 fi
13116else
13117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13118fi
13119need_lib_prefix=unknown
13120hardcode_into_libs=no
13121
13122# when you set need_version to no, make sure it does not cause -set_version
13123# flags to be left without arguments
13124need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013125
13126case $host_os in
13127aix3*)
13128 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013130 shlibpath_var=LIBPATH
13131
John Criswell47fdd832003-07-14 16:52:07 +000013132 # AIX 3 has no versioning support, so we append a major version to the name.
13133 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013134 ;;
13135
13136aix4* | aix5*)
13137 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013138 need_lib_prefix=no
13139 need_version=no
13140 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013141 if test "$host_cpu" = ia64; then
13142 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013144 shlibpath_var=LD_LIBRARY_PATH
13145 else
13146 # With GCC up to 2.95.x, collect2 would create an import file
13147 # for dependence libraries. The import file would start with
13148 # the line `#! .'. This would cause the generated library to
13149 # depend on `.', always an invalid library. This was fixed in
13150 # development snapshots of GCC prior to 3.0.
13151 case $host_os in
13152 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13154 echo ' yes '
13155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13156 :
13157 else
13158 can_build_shared=no
13159 fi
13160 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013161 esac
John Criswell47fdd832003-07-14 16:52:07 +000013162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13163 # soname into executable. Probably we can add versioning support to
13164 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013165 if test "$aix_use_runtimelinking" = yes; then
13166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13167 # instead of lib<name>.a to let people know that these are not
13168 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013170 else
13171 # We preserve .a as extension for shared libraries through AIX4.2
13172 # and later when we are not doing run time linking.
13173 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013174 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013175 fi
13176 shlibpath_var=LIBPATH
13177 fi
13178 ;;
13179
13180amigaos*)
13181 library_names_spec='$libname.ixlibrary $libname.a'
13182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013183 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 +000013184 ;;
13185
13186beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013187 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013188 dynamic_linker="$host_os ld.so"
13189 shlibpath_var=LIBRARY_PATH
13190 ;;
13191
Reid Spencer2706f8c2004-09-19 23:53:36 +000013192bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013193 version_type=linux
13194 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13198 shlibpath_var=LD_LIBRARY_PATH
13199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013201 # the default ld.so.conf also contains /usr/contrib/lib and
13202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13203 # libtool to hard-code these into programs
13204 ;;
13205
13206cygwin* | mingw* | pw32*)
13207 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013208 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013209 need_version=no
13210 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013211
John Criswell7a73b802003-06-30 21:59:07 +000013212 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013213 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013214 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013216 postinstall_cmds='base_file=`basename \${file}`~
13217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13218 dldir=$destdir/`dirname \$dlpath`~
13219 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013220 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13222 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013223 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013224 shlibpath_overrides_runpath=yes
13225
13226 case $host_os in
13227 cygwin*)
13228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13229 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 +000013230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013231 ;;
13232 mingw*)
13233 # MinGW DLLs use traditional 'lib' prefix
13234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13235 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13236 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13237 # It is most probably a Windows format PATH printed by
13238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13239 # path with ; separators, and with drive letters. We can handle the
13240 # drive letters (cygwin fileutils understands them), so leave them,
13241 # especially as we might pass files found there to a mingw objdump,
13242 # which wouldn't understand a cygwinified path. Ahh.
13243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13244 else
13245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13246 fi
13247 ;;
13248 pw32*)
13249 # pw32 DLLs use 'pw' prefix rather than 'lib'
13250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13251 ;;
13252 esac
John Criswell7a73b802003-06-30 21:59:07 +000013253 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013254
John Criswell7a73b802003-06-30 21:59:07 +000013255 *)
John Criswell47fdd832003-07-14 16:52:07 +000013256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013257 ;;
13258 esac
13259 dynamic_linker='Win32 ld.exe'
13260 # FIXME: first we should search . and the directory the executable is in
13261 shlibpath_var=PATH
13262 ;;
13263
13264darwin* | rhapsody*)
13265 dynamic_linker="$host_os dyld"
13266 version_type=darwin
13267 need_lib_prefix=no
13268 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013269 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013270 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013271 shlibpath_overrides_runpath=yes
13272 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013273 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013274 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013275 if test "$GCC" = yes; then
13276 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"`
13277 else
13278 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013279 fi
13280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13281 ;;
13282
13283dgux*)
13284 version_type=linux
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013290 ;;
13291
13292freebsd1*)
13293 dynamic_linker=no
13294 ;;
13295
Reid Spencer2706f8c2004-09-19 23:53:36 +000013296kfreebsd*-gnu)
13297 version_type=linux
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=no
13304 hardcode_into_libs=yes
13305 dynamic_linker='GNU ld.so'
13306 ;;
13307
John Criswell7a73b802003-06-30 21:59:07 +000013308freebsd*)
13309 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13310 version_type=freebsd-$objformat
13311 case $version_type in
13312 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013314 need_version=no
13315 need_lib_prefix=no
13316 ;;
13317 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013319 need_version=yes
13320 ;;
13321 esac
13322 shlibpath_var=LD_LIBRARY_PATH
13323 case $host_os in
13324 freebsd2*)
13325 shlibpath_overrides_runpath=yes
13326 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013327 freebsd3.01* | freebsdelf3.01*)
13328 shlibpath_overrides_runpath=yes
13329 hardcode_into_libs=yes
13330 ;;
13331 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013332 shlibpath_overrides_runpath=no
13333 hardcode_into_libs=yes
13334 ;;
13335 esac
13336 ;;
13337
13338gnu*)
13339 version_type=linux
13340 need_lib_prefix=no
13341 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013344 shlibpath_var=LD_LIBRARY_PATH
13345 hardcode_into_libs=yes
13346 ;;
13347
13348hpux9* | hpux10* | hpux11*)
13349 # Give a soname corresponding to the major version so that dld.sl refuses to
13350 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013351 version_type=sunos
13352 need_lib_prefix=no
13353 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013354 case "$host_cpu" in
13355 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013356 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013357 hardcode_into_libs=yes
13358 dynamic_linker="$host_os dld.so"
13359 shlibpath_var=LD_LIBRARY_PATH
13360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 if test "X$HPUX_IA64_MODE" = X32; then
13364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13365 else
13366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13367 fi
13368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13369 ;;
13370 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013371 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013372 hardcode_into_libs=yes
13373 dynamic_linker="$host_os dld.sl"
13374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13380 ;;
13381 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013382 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013383 dynamic_linker="$host_os dld.sl"
13384 shlibpath_var=SHLIB_PATH
13385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387 soname_spec='${libname}${release}${shared_ext}$major'
13388 ;;
13389 esac
John Criswell7a73b802003-06-30 21:59:07 +000013390 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13391 postinstall_cmds='chmod 555 $lib'
13392 ;;
13393
John Criswell47fdd832003-07-14 16:52:07 +000013394irix5* | irix6* | nonstopux*)
13395 case $host_os in
13396 nonstopux*) version_type=nonstopux ;;
13397 *)
13398 if test "$lt_cv_prog_gnu_ld" = yes; then
13399 version_type=linux
13400 else
13401 version_type=irix
13402 fi ;;
13403 esac
John Criswell7a73b802003-06-30 21:59:07 +000013404 need_lib_prefix=no
13405 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013406 soname_spec='${libname}${release}${shared_ext}$major'
13407 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 +000013408 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013409 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013410 libsuff= shlibsuff=
13411 ;;
13412 *)
13413 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13415 libsuff= shlibsuff= libmagic=32-bit;;
13416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13417 libsuff=32 shlibsuff=N32 libmagic=N32;;
13418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013420 *) libsuff= shlibsuff= libmagic=never-match;;
13421 esac
13422 ;;
13423 esac
13424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13425 shlibpath_overrides_runpath=no
13426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013428 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013429 ;;
13430
13431# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013432linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013433 dynamic_linker=no
13434 ;;
13435
13436# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013437linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013438 version_type=linux
13439 need_lib_prefix=no
13440 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 shlibpath_overrides_runpath=no
13446 # This implies no fast_install, which is unacceptable.
13447 # Some rework will be needed to allow for fast_install
13448 # before this can be enabled.
13449 hardcode_into_libs=yes
13450
Reid Spencer2706f8c2004-09-19 23:53:36 +000013451 # Append ld.so.conf contents to the search path
13452 if test -f /etc/ld.so.conf; then
13453 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13454 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13455 fi
13456
John Criswell7a73b802003-06-30 21:59:07 +000013457 # We used to test for /lib/ld.so.1 and disable shared libraries on
13458 # powerpc, because MkLinux only supported shared libraries with the
13459 # GNU dynamic linker. Since this was broken with cross compilers,
13460 # most powerpc-linux boxes support dynamic linking these days and
13461 # people can always --disable-shared, the test was removed, and we
13462 # assume the GNU/Linux dynamic linker is in use.
13463 dynamic_linker='GNU/Linux ld.so'
13464 ;;
13465
Reid Spencer2706f8c2004-09-19 23:53:36 +000013466knetbsd*-gnu)
13467 version_type=linux
13468 need_lib_prefix=no
13469 need_version=no
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=no
13474 hardcode_into_libs=yes
13475 dynamic_linker='GNU ld.so'
13476 ;;
13477
John Criswell7a73b802003-06-30 21:59:07 +000013478netbsd*)
13479 version_type=sunos
13480 need_lib_prefix=no
13481 need_version=no
13482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13485 dynamic_linker='NetBSD (a.out) ld.so'
13486 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013488 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013489 dynamic_linker='NetBSD ld.elf_so'
13490 fi
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes
13493 hardcode_into_libs=yes
13494 ;;
13495
13496newsos6)
13497 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 shlibpath_var=LD_LIBRARY_PATH
13500 shlibpath_overrides_runpath=yes
13501 ;;
13502
Reid Spencer2706f8c2004-09-19 23:53:36 +000013503nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013504 version_type=linux
13505 need_lib_prefix=no
13506 need_version=no
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013509 shlibpath_var=LD_LIBRARY_PATH
13510 shlibpath_overrides_runpath=yes
13511 ;;
13512
13513openbsd*)
13514 version_type=sunos
13515 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013516 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13519 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013520 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 +000013521 case $host_os in
13522 openbsd2.[89] | openbsd2.[89].*)
13523 shlibpath_overrides_runpath=no
13524 ;;
13525 *)
13526 shlibpath_overrides_runpath=yes
13527 ;;
13528 esac
John Criswell7a73b802003-06-30 21:59:07 +000013529 else
13530 shlibpath_overrides_runpath=yes
13531 fi
John Criswell7a73b802003-06-30 21:59:07 +000013532 ;;
13533
13534os2*)
13535 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013536 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013537 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013538 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013539 dynamic_linker='OS/2 ld.exe'
13540 shlibpath_var=LIBPATH
13541 ;;
13542
13543osf3* | osf4* | osf5*)
13544 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013545 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013546 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013547 soname_spec='${libname}${release}${shared_ext}$major'
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013549 shlibpath_var=LD_LIBRARY_PATH
13550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13552 ;;
13553
13554sco3.2v5*)
13555 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013556 soname_spec='${libname}${release}${shared_ext}$major'
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013558 shlibpath_var=LD_LIBRARY_PATH
13559 ;;
13560
13561solaris*)
13562 version_type=linux
13563 need_lib_prefix=no
13564 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13566 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=yes
13569 hardcode_into_libs=yes
13570 # ldd complains unless libraries are executable
13571 postinstall_cmds='chmod +x $lib'
13572 ;;
13573
13574sunos4*)
13575 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=yes
13580 if test "$with_gnu_ld" = yes; then
13581 need_lib_prefix=no
13582 fi
13583 need_version=yes
13584 ;;
13585
13586sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13587 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013590 shlibpath_var=LD_LIBRARY_PATH
13591 case $host_vendor in
13592 sni)
13593 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013594 need_lib_prefix=no
13595 export_dynamic_flag_spec='${wl}-Blargedynsym'
13596 runpath_var=LD_RUN_PATH
13597 ;;
13598 siemens)
13599 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013600 ;;
13601 motorola)
13602 need_lib_prefix=no
13603 need_version=no
13604 shlibpath_overrides_runpath=no
13605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13606 ;;
13607 esac
13608 ;;
13609
John Criswell7a73b802003-06-30 21:59:07 +000013610sysv4*MP*)
13611 if test -d /usr/nec ;then
13612 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13614 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013615 shlibpath_var=LD_LIBRARY_PATH
13616 fi
13617 ;;
13618
John Criswell47fdd832003-07-14 16:52:07 +000013619uts4*)
13620 version_type=linux
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13622 soname_spec='${libname}${release}${shared_ext}$major'
13623 shlibpath_var=LD_LIBRARY_PATH
13624 ;;
13625
John Criswell7a73b802003-06-30 21:59:07 +000013626*)
13627 dynamic_linker=no
13628 ;;
13629esac
13630echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13631echo "${ECHO_T}$dynamic_linker" >&6
13632test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013633
Reid Spencer2706f8c2004-09-19 23:53:36 +000013634echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13635echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13636hardcode_action=
13637if test -n "$hardcode_libdir_flag_spec" || \
13638 test -n "$runpath_var" || \
13639 test "X$hardcode_automatic" = "Xyes" ; then
13640
13641 # We can hardcode non-existant directories.
13642 if test "$hardcode_direct" != no &&
13643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13644 # have to relink, otherwise we might link with an installed library
13645 # when we should be linking with a yet-to-be-installed one
13646 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13647 test "$hardcode_minus_L" != no; then
13648 # Linking always hardcodes the temporary library directory.
13649 hardcode_action=relink
13650 else
13651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13652 hardcode_action=immediate
13653 fi
13654else
13655 # We cannot hardcode anything, or else we can only hardcode existing
13656 # directories.
13657 hardcode_action=unsupported
13658fi
13659echo "$as_me:$LINENO: result: $hardcode_action" >&5
13660echo "${ECHO_T}$hardcode_action" >&6
13661
13662if test "$hardcode_action" = relink; then
13663 # Fast installation is not supported
13664 enable_fast_install=no
13665elif test "$shlibpath_overrides_runpath" = yes ||
13666 test "$enable_shared" = no; then
13667 # Fast installation is not necessary
13668 enable_fast_install=needless
13669fi
13670
13671striplib=
13672old_striplib=
13673echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13674echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13675if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13678 echo "$as_me:$LINENO: result: yes" >&5
13679echo "${ECHO_T}yes" >&6
13680else
13681# FIXME - insert some real tests, host_os isn't really good enough
13682 case $host_os in
13683 darwin*)
13684 if test -n "$STRIP" ; then
13685 striplib="$STRIP -x"
13686 echo "$as_me:$LINENO: result: yes" >&5
13687echo "${ECHO_T}yes" >&6
13688 else
13689 echo "$as_me:$LINENO: result: no" >&5
13690echo "${ECHO_T}no" >&6
13691fi
13692 ;;
13693 *)
13694 echo "$as_me:$LINENO: result: no" >&5
13695echo "${ECHO_T}no" >&6
13696 ;;
13697 esac
13698fi
13699
John Criswell7a73b802003-06-30 21:59:07 +000013700if test "x$enable_dlopen" != xyes; then
13701 enable_dlopen=unknown
13702 enable_dlopen_self=unknown
13703 enable_dlopen_self_static=unknown
13704else
13705 lt_cv_dlopen=no
13706 lt_cv_dlopen_libs=
13707
13708 case $host_os in
13709 beos*)
13710 lt_cv_dlopen="load_add_on"
13711 lt_cv_dlopen_libs=
13712 lt_cv_dlopen_self=yes
13713 ;;
13714
John Criswell47fdd832003-07-14 16:52:07 +000013715 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013716 lt_cv_dlopen="LoadLibrary"
13717 lt_cv_dlopen_libs=
13718 ;;
13719
John Criswell47fdd832003-07-14 16:52:07 +000013720 cygwin*)
13721 lt_cv_dlopen="dlopen"
13722 lt_cv_dlopen_libs=
13723 ;;
13724
13725 darwin*)
13726 # if libdl is installed we need to link against it
13727 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13728echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13729if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731else
13732 ac_check_lib_save_LIBS=$LIBS
13733LIBS="-ldl $LIBS"
13734cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013735/* confdefs.h. */
13736_ACEOF
13737cat confdefs.h >>conftest.$ac_ext
13738cat >>conftest.$ac_ext <<_ACEOF
13739/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013740
13741/* Override any gcc2 internal prototype to avoid an error. */
13742#ifdef __cplusplus
13743extern "C"
13744#endif
13745/* We use char because int might match the return type of a gcc2
13746 builtin and then its argument prototype would still apply. */
13747char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013748int
13749main ()
13750{
13751dlopen ();
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756rm -f conftest.$ac_objext conftest$ac_exeext
13757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013758 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013765 { ac_try='test -z "$ac_c_werror_flag"
13766 || test ! -s conftest.err'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_cv_lib_dl_dlopen=yes
13779else
13780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013781sed 's/^/| /' conftest.$ac_ext >&5
13782
John Criswell47fdd832003-07-14 16:52:07 +000013783ac_cv_lib_dl_dlopen=no
13784fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013785rm -f conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013787LIBS=$ac_check_lib_save_LIBS
13788fi
13789echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13790echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13791if test $ac_cv_lib_dl_dlopen = yes; then
13792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13793else
13794
13795 lt_cv_dlopen="dyld"
13796 lt_cv_dlopen_libs=
13797 lt_cv_dlopen_self=yes
13798
13799fi
13800
13801 ;;
13802
John Criswell7a73b802003-06-30 21:59:07 +000013803 *)
13804 echo "$as_me:$LINENO: checking for shl_load" >&5
13805echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13806if test "${ac_cv_func_shl_load+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013815/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13817#define shl_load innocuous_shl_load
13818
John Criswell7a73b802003-06-30 21:59:07 +000013819/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013820 which can conflict with char shl_load (); below.
13821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13822 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823
John Criswell0c38eaf2003-09-10 15:17:25 +000013824#ifdef __STDC__
13825# include <limits.h>
13826#else
13827# include <assert.h>
13828#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013829
13830#undef shl_load
13831
John Criswell7a73b802003-06-30 21:59:07 +000013832/* Override any gcc2 internal prototype to avoid an error. */
13833#ifdef __cplusplus
13834extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013835{
John Criswell7a73b802003-06-30 21:59:07 +000013836#endif
13837/* We use char because int might match the return type of a gcc2
13838 builtin and then its argument prototype would still apply. */
13839char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013840/* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843#if defined (__stub_shl_load) || defined (__stub___shl_load)
13844choke me
13845#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013846char (*f) () = shl_load;
13847#endif
13848#ifdef __cplusplus
13849}
John Criswell7a73b802003-06-30 21:59:07 +000013850#endif
13851
John Criswell0c38eaf2003-09-10 15:17:25 +000013852int
13853main ()
13854{
13855return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013856 ;
13857 return 0;
13858}
13859_ACEOF
13860rm -f conftest.$ac_objext conftest$ac_exeext
13861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013862 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013869 { ac_try='test -z "$ac_c_werror_flag"
13870 || test ! -s conftest.err'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_func_shl_load=yes
13883else
13884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013885sed 's/^/| /' conftest.$ac_ext >&5
13886
John Criswell7a73b802003-06-30 21:59:07 +000013887ac_cv_func_shl_load=no
13888fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013889rm -f conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013891fi
13892echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13893echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13894if test $ac_cv_func_shl_load = yes; then
13895 lt_cv_dlopen="shl_load"
13896else
13897 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13898echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13899if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 ac_check_lib_save_LIBS=$LIBS
13903LIBS="-ldld $LIBS"
13904cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013905/* confdefs.h. */
13906_ACEOF
13907cat confdefs.h >>conftest.$ac_ext
13908cat >>conftest.$ac_ext <<_ACEOF
13909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013910
13911/* Override any gcc2 internal prototype to avoid an error. */
13912#ifdef __cplusplus
13913extern "C"
13914#endif
13915/* We use char because int might match the return type of a gcc2
13916 builtin and then its argument prototype would still apply. */
13917char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013918int
13919main ()
13920{
13921shl_load ();
13922 ;
13923 return 0;
13924}
13925_ACEOF
13926rm -f conftest.$ac_objext conftest$ac_exeext
13927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013928 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_dld_shl_load=yes
13949else
13950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013951sed 's/^/| /' conftest.$ac_ext >&5
13952
John Criswell7a73b802003-06-30 21:59:07 +000013953ac_cv_lib_dld_shl_load=no
13954fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013955rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013957LIBS=$ac_check_lib_save_LIBS
13958fi
13959echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13960echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13961if test $ac_cv_lib_dld_shl_load = yes; then
13962 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13963else
13964 echo "$as_me:$LINENO: checking for dlopen" >&5
13965echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13966if test "${ac_cv_func_dlopen+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968else
13969 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013970/* confdefs.h. */
13971_ACEOF
13972cat confdefs.h >>conftest.$ac_ext
13973cat >>conftest.$ac_ext <<_ACEOF
13974/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013975/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13977#define dlopen innocuous_dlopen
13978
John Criswell7a73b802003-06-30 21:59:07 +000013979/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013980 which can conflict with char dlopen (); below.
13981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13982 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013983
John Criswell0c38eaf2003-09-10 15:17:25 +000013984#ifdef __STDC__
13985# include <limits.h>
13986#else
13987# include <assert.h>
13988#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013989
13990#undef dlopen
13991
John Criswell7a73b802003-06-30 21:59:07 +000013992/* Override any gcc2 internal prototype to avoid an error. */
13993#ifdef __cplusplus
13994extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013995{
John Criswell7a73b802003-06-30 21:59:07 +000013996#endif
13997/* We use char because int might match the return type of a gcc2
13998 builtin and then its argument prototype would still apply. */
13999char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014000/* The GNU C library defines this for functions which it implements
14001 to always fail with ENOSYS. Some functions are actually named
14002 something starting with __ and the normal name is an alias. */
14003#if defined (__stub_dlopen) || defined (__stub___dlopen)
14004choke me
14005#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014006char (*f) () = dlopen;
14007#endif
14008#ifdef __cplusplus
14009}
John Criswell7a73b802003-06-30 21:59:07 +000014010#endif
14011
John Criswell0c38eaf2003-09-10 15:17:25 +000014012int
14013main ()
14014{
14015return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014016 ;
14017 return 0;
14018}
14019_ACEOF
14020rm -f conftest.$ac_objext conftest$ac_exeext
14021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014022 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014023 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014029 { ac_try='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_func_dlopen=yes
14043else
14044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014045sed 's/^/| /' conftest.$ac_ext >&5
14046
John Criswell7a73b802003-06-30 21:59:07 +000014047ac_cv_func_dlopen=no
14048fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014049rm -f conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014051fi
14052echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14053echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14054if test $ac_cv_func_dlopen = yes; then
14055 lt_cv_dlopen="dlopen"
14056else
14057 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14058echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14059if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
14062 ac_check_lib_save_LIBS=$LIBS
14063LIBS="-ldl $LIBS"
14064cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014065/* confdefs.h. */
14066_ACEOF
14067cat confdefs.h >>conftest.$ac_ext
14068cat >>conftest.$ac_ext <<_ACEOF
14069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014070
14071/* Override any gcc2 internal prototype to avoid an error. */
14072#ifdef __cplusplus
14073extern "C"
14074#endif
14075/* We use char because int might match the return type of a gcc2
14076 builtin and then its argument prototype would still apply. */
14077char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014078int
14079main ()
14080{
14081dlopen ();
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext conftest$ac_exeext
14087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014088 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_lib_dl_dlopen=yes
14109else
14110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014111sed 's/^/| /' conftest.$ac_ext >&5
14112
John Criswell7a73b802003-06-30 21:59:07 +000014113ac_cv_lib_dl_dlopen=no
14114fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014115rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014117LIBS=$ac_check_lib_save_LIBS
14118fi
14119echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14120echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14121if test $ac_cv_lib_dl_dlopen = yes; then
14122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14123else
14124 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14125echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14126if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128else
14129 ac_check_lib_save_LIBS=$LIBS
14130LIBS="-lsvld $LIBS"
14131cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014132/* confdefs.h. */
14133_ACEOF
14134cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014137
14138/* Override any gcc2 internal prototype to avoid an error. */
14139#ifdef __cplusplus
14140extern "C"
14141#endif
14142/* We use char because int might match the return type of a gcc2
14143 builtin and then its argument prototype would still apply. */
14144char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014145int
14146main ()
14147{
14148dlopen ();
14149 ;
14150 return 0;
14151}
14152_ACEOF
14153rm -f conftest.$ac_objext conftest$ac_exeext
14154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014155 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014156 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014162 { ac_try='test -z "$ac_c_werror_flag"
14163 || test ! -s conftest.err'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_lib_svld_dlopen=yes
14176else
14177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014178sed 's/^/| /' conftest.$ac_ext >&5
14179
John Criswell7a73b802003-06-30 21:59:07 +000014180ac_cv_lib_svld_dlopen=no
14181fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014182rm -f conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014184LIBS=$ac_check_lib_save_LIBS
14185fi
14186echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14187echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14188if test $ac_cv_lib_svld_dlopen = yes; then
14189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14190else
14191 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14192echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14193if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195else
14196 ac_check_lib_save_LIBS=$LIBS
14197LIBS="-ldld $LIBS"
14198cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014204
14205/* Override any gcc2 internal prototype to avoid an error. */
14206#ifdef __cplusplus
14207extern "C"
14208#endif
14209/* We use char because int might match the return type of a gcc2
14210 builtin and then its argument prototype would still apply. */
14211char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014212int
14213main ()
14214{
14215dld_link ();
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext conftest$ac_exeext
14221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014222 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014223 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_lib_dld_dld_link=yes
14243else
14244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014245sed 's/^/| /' conftest.$ac_ext >&5
14246
John Criswell7a73b802003-06-30 21:59:07 +000014247ac_cv_lib_dld_dld_link=no
14248fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014249rm -f conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014251LIBS=$ac_check_lib_save_LIBS
14252fi
14253echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14254echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14255if test $ac_cv_lib_dld_dld_link = yes; then
14256 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14257fi
14258
14259
14260fi
14261
14262
14263fi
14264
14265
14266fi
14267
14268
14269fi
14270
14271
14272fi
14273
14274 ;;
14275 esac
14276
14277 if test "x$lt_cv_dlopen" != xno; then
14278 enable_dlopen=yes
14279 else
14280 enable_dlopen=no
14281 fi
14282
14283 case $lt_cv_dlopen in
14284 dlopen)
14285 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014286 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014287
14288 save_LDFLAGS="$LDFLAGS"
14289 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14290
14291 save_LIBS="$LIBS"
14292 LIBS="$lt_cv_dlopen_libs $LIBS"
14293
14294 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14295echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14296if test "${lt_cv_dlopen_self+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299 if test "$cross_compiling" = yes; then :
14300 lt_cv_dlopen_self=cross
14301else
John Criswell47fdd832003-07-14 16:52:07 +000014302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014303 lt_status=$lt_dlunknown
14304 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +000014305#line 14305 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014306#include "confdefs.h"
14307
14308#if HAVE_DLFCN_H
14309#include <dlfcn.h>
14310#endif
14311
14312#include <stdio.h>
14313
14314#ifdef RTLD_GLOBAL
14315# define LT_DLGLOBAL RTLD_GLOBAL
14316#else
14317# ifdef DL_GLOBAL
14318# define LT_DLGLOBAL DL_GLOBAL
14319# else
14320# define LT_DLGLOBAL 0
14321# endif
14322#endif
14323
14324/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14325 find out it does not work in some platform. */
14326#ifndef LT_DLLAZY_OR_NOW
14327# ifdef RTLD_LAZY
14328# define LT_DLLAZY_OR_NOW RTLD_LAZY
14329# else
14330# ifdef DL_LAZY
14331# define LT_DLLAZY_OR_NOW DL_LAZY
14332# else
14333# ifdef RTLD_NOW
14334# define LT_DLLAZY_OR_NOW RTLD_NOW
14335# else
14336# ifdef DL_NOW
14337# define LT_DLLAZY_OR_NOW DL_NOW
14338# else
14339# define LT_DLLAZY_OR_NOW 0
14340# endif
14341# endif
14342# endif
14343# endif
14344#endif
14345
14346#ifdef __cplusplus
14347extern "C" void exit (int);
14348#endif
14349
14350void fnord() { int i=42;}
14351int main ()
14352{
14353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14354 int status = $lt_dlunknown;
14355
14356 if (self)
14357 {
14358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14359 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14360 /* dlclose (self); */
14361 }
14362
14363 exit (status);
14364}
14365EOF
14366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14371 (./conftest; exit; ) 2>/dev/null
14372 lt_status=$?
14373 case x$lt_status in
14374 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14375 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14376 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14377 esac
14378 else :
14379 # compilation failed
14380 lt_cv_dlopen_self=no
14381 fi
14382fi
14383rm -fr conftest*
14384
14385
14386fi
14387echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14388echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14389
14390 if test "x$lt_cv_dlopen_self" = xyes; then
14391 LDFLAGS="$LDFLAGS $link_static_flag"
14392 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14393echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14394if test "${lt_cv_dlopen_self_static+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 if test "$cross_compiling" = yes; then :
14398 lt_cv_dlopen_self_static=cross
14399else
John Criswell47fdd832003-07-14 16:52:07 +000014400 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014401 lt_status=$lt_dlunknown
14402 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +000014403#line 14403 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014404#include "confdefs.h"
14405
14406#if HAVE_DLFCN_H
14407#include <dlfcn.h>
14408#endif
14409
14410#include <stdio.h>
14411
14412#ifdef RTLD_GLOBAL
14413# define LT_DLGLOBAL RTLD_GLOBAL
14414#else
14415# ifdef DL_GLOBAL
14416# define LT_DLGLOBAL DL_GLOBAL
14417# else
14418# define LT_DLGLOBAL 0
14419# endif
14420#endif
14421
14422/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14423 find out it does not work in some platform. */
14424#ifndef LT_DLLAZY_OR_NOW
14425# ifdef RTLD_LAZY
14426# define LT_DLLAZY_OR_NOW RTLD_LAZY
14427# else
14428# ifdef DL_LAZY
14429# define LT_DLLAZY_OR_NOW DL_LAZY
14430# else
14431# ifdef RTLD_NOW
14432# define LT_DLLAZY_OR_NOW RTLD_NOW
14433# else
14434# ifdef DL_NOW
14435# define LT_DLLAZY_OR_NOW DL_NOW
14436# else
14437# define LT_DLLAZY_OR_NOW 0
14438# endif
14439# endif
14440# endif
14441# endif
14442#endif
14443
14444#ifdef __cplusplus
14445extern "C" void exit (int);
14446#endif
14447
14448void fnord() { int i=42;}
14449int main ()
14450{
14451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14452 int status = $lt_dlunknown;
14453
14454 if (self)
14455 {
14456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14457 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14458 /* dlclose (self); */
14459 }
14460
14461 exit (status);
14462}
14463EOF
14464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465 (eval $ac_link) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14469 (./conftest; exit; ) 2>/dev/null
14470 lt_status=$?
14471 case x$lt_status in
14472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14474 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14475 esac
14476 else :
14477 # compilation failed
14478 lt_cv_dlopen_self_static=no
14479 fi
14480fi
14481rm -fr conftest*
14482
14483
14484fi
14485echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14486echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14487 fi
14488
14489 CPPFLAGS="$save_CPPFLAGS"
14490 LDFLAGS="$save_LDFLAGS"
14491 LIBS="$save_LIBS"
14492 ;;
14493 esac
14494
14495 case $lt_cv_dlopen_self in
14496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14497 *) enable_dlopen_self=unknown ;;
14498 esac
14499
14500 case $lt_cv_dlopen_self_static in
14501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14502 *) enable_dlopen_self_static=unknown ;;
14503 esac
14504fi
14505
14506
John Criswell47fdd832003-07-14 16:52:07 +000014507# Report which librarie types wil actually be built
14508echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14509echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14510echo "$as_me:$LINENO: result: $can_build_shared" >&5
14511echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014512
John Criswell47fdd832003-07-14 16:52:07 +000014513echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14514echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14515test "$can_build_shared" = "no" && enable_shared=no
14516
14517# On AIX, shared libraries and static libraries use the same namespace, and
14518# are all built from PIC.
14519case "$host_os" in
14520aix3*)
14521 test "$enable_shared" = yes && enable_static=no
14522 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014523 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014524 postinstall_cmds='$RANLIB $lib'
14525 fi
14526 ;;
14527
Reid Spencer2706f8c2004-09-19 23:53:36 +000014528aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014529 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14530 test "$enable_shared" = yes && enable_static=no
14531 fi
John Criswell7a73b802003-06-30 21:59:07 +000014532 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014533esac
14534echo "$as_me:$LINENO: result: $enable_shared" >&5
14535echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014536
John Criswell47fdd832003-07-14 16:52:07 +000014537echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14538echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14539# Make sure either enable_shared or enable_static is yes.
14540test "$enable_shared" = yes || enable_static=yes
14541echo "$as_me:$LINENO: result: $enable_static" >&5
14542echo "${ECHO_T}$enable_static" >&6
14543
14544# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014545# libtool distribution, otherwise you forgot to ship ltmain.sh
14546# with your package, and you will get complaints that there are
14547# no rules to generate ltmain.sh.
14548if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014549 # See if we are running on zsh, and set the options which allow our commands through
14550 # without removal of \ escapes.
14551 if test -n "${ZSH_VERSION+set}" ; then
14552 setopt NO_GLOB_SUBST
14553 fi
John Criswell7a73b802003-06-30 21:59:07 +000014554 # Now quote all the things that may contain metacharacters while being
14555 # careful not to overquote the AC_SUBSTed values. We take copies of the
14556 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14558 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14561 deplibs_check_method reload_flag reload_cmds need_locks \
14562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14563 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014565 old_postinstall_cmds old_postuninstall_cmds \
14566 compiler \
14567 CC \
14568 LD \
14569 lt_prog_compiler_wl \
14570 lt_prog_compiler_pic \
14571 lt_prog_compiler_static \
14572 lt_prog_compiler_no_builtin_flag \
14573 export_dynamic_flag_spec \
14574 thread_safe_flag_spec \
14575 whole_archive_flag_spec \
14576 enable_shared_with_static_runtimes \
14577 old_archive_cmds \
14578 old_archive_from_new_cmds \
14579 predep_objects \
14580 postdep_objects \
14581 predeps \
14582 postdeps \
14583 compiler_lib_search_path \
14584 archive_cmds \
14585 archive_expsym_cmds \
14586 postinstall_cmds \
14587 postuninstall_cmds \
14588 old_archive_from_expsyms_cmds \
14589 allow_undefined_flag \
14590 no_undefined_flag \
14591 export_symbols_cmds \
14592 hardcode_libdir_flag_spec \
14593 hardcode_libdir_flag_spec_ld \
14594 hardcode_libdir_separator \
14595 hardcode_automatic \
14596 module_cmds \
14597 module_expsym_cmds \
14598 lt_cv_prog_compiler_c_o \
14599 exclude_expsyms \
14600 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014601
14602 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014603 old_archive_cmds | \
14604 old_archive_from_new_cmds | \
14605 archive_cmds | \
14606 archive_expsym_cmds | \
14607 module_cmds | \
14608 module_expsym_cmds | \
14609 old_archive_from_expsyms_cmds | \
14610 export_symbols_cmds | \
14611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014612 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014613 old_postinstall_cmds | old_postuninstall_cmds | \
14614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014615 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014616 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 +000014617 ;;
14618 *)
14619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14620 ;;
14621 esac
14622 done
14623
John Criswell47fdd832003-07-14 16:52:07 +000014624 case $lt_echo in
14625 *'\$0 --fallback-echo"')
14626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14627 ;;
14628 esac
14629
14630cfgfile="${ofile}T"
14631 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14632 $rm -f "$cfgfile"
14633 { echo "$as_me:$LINENO: creating $ofile" >&5
14634echo "$as_me: creating $ofile" >&6;}
14635
14636 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014637#! $SHELL
14638
John Criswell47fdd832003-07-14 16:52:07 +000014639# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014640# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14641# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14642#
John Criswell47fdd832003-07-14 16:52:07 +000014643# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14644# Free Software Foundation, Inc.
14645#
14646# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014647# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14648#
14649# This program is free software; you can redistribute it and/or modify
14650# it under the terms of the GNU General Public License as published by
14651# the Free Software Foundation; either version 2 of the License, or
14652# (at your option) any later version.
14653#
14654# This program is distributed in the hope that it will be useful, but
14655# WITHOUT ANY WARRANTY; without even the implied warranty of
14656# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14657# General Public License for more details.
14658#
14659# You should have received a copy of the GNU General Public License
14660# along with this program; if not, write to the Free Software
14661# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14662#
14663# As a special exception to the GNU General Public License, if you
14664# distribute this file as part of a program that contains a
14665# configuration script generated by Autoconf, you may include it under
14666# the same distribution terms that you use for the rest of that program.
14667
John Criswell47fdd832003-07-14 16:52:07 +000014668# A sed program that does not truncate output.
14669SED=$lt_SED
14670
John Criswell7a73b802003-06-30 21:59:07 +000014671# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014672Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014673
14674# The HP-UX ksh and POSIX shell print the target directory to stdout
14675# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014676(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014677
John Criswell47fdd832003-07-14 16:52:07 +000014678# The names of the tagged configurations supported by this script.
14679available_tags=
14680
John Criswell7a73b802003-06-30 21:59:07 +000014681# ### BEGIN LIBTOOL CONFIG
14682
14683# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14684
14685# Shell to use when invoking shell scripts.
14686SHELL=$lt_SHELL
14687
14688# Whether or not to build shared libraries.
14689build_libtool_libs=$enable_shared
14690
14691# Whether or not to build static libraries.
14692build_old_libs=$enable_static
14693
14694# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014695build_libtool_need_lc=$archive_cmds_need_lc
14696
14697# Whether or not to disallow shared libs when runtime libs are static
14698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014699
14700# Whether or not to optimize for fast installation.
14701fast_install=$enable_fast_install
14702
14703# The host system.
14704host_alias=$host_alias
14705host=$host
14706
14707# An echo program that does not interpret backslashes.
14708echo=$lt_echo
14709
14710# The archiver.
14711AR=$lt_AR
14712AR_FLAGS=$lt_AR_FLAGS
14713
John Criswell47fdd832003-07-14 16:52:07 +000014714# A C compiler.
14715LTCC=$lt_LTCC
14716
14717# A language-specific compiler.
14718CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014719
14720# Is the compiler the GNU C compiler?
14721with_gcc=$GCC
14722
John Criswell47fdd832003-07-14 16:52:07 +000014723# An ERE matcher.
14724EGREP=$lt_EGREP
14725
John Criswell7a73b802003-06-30 21:59:07 +000014726# The linker used to build libraries.
14727LD=$lt_LD
14728
14729# Whether we need hard or soft links.
14730LN_S=$lt_LN_S
14731
14732# A BSD-compatible nm program.
14733NM=$lt_NM
14734
14735# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014736STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014737
14738# Used to examine libraries when file_magic_cmd begins "file"
14739MAGIC_CMD=$MAGIC_CMD
14740
14741# Used on cygwin: DLL creation program.
14742DLLTOOL="$DLLTOOL"
14743
14744# Used on cygwin: object dumper.
14745OBJDUMP="$OBJDUMP"
14746
14747# Used on cygwin: assembler.
14748AS="$AS"
14749
14750# The name of the directory that contains temporary libtool files.
14751objdir=$objdir
14752
14753# How to create reloadable object files.
14754reload_flag=$lt_reload_flag
14755reload_cmds=$lt_reload_cmds
14756
14757# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014758wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014759
14760# Object file suffix (normally "o").
14761objext="$ac_objext"
14762
14763# Old archive suffix (normally "a").
14764libext="$libext"
14765
John Criswell47fdd832003-07-14 16:52:07 +000014766# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014767shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014768
John Criswell7a73b802003-06-30 21:59:07 +000014769# Executable file suffix (normally "").
14770exeext="$exeext"
14771
14772# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014773pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014774pic_mode=$pic_mode
14775
John Criswell47fdd832003-07-14 16:52:07 +000014776# What is the maximum length of a command?
14777max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014778
John Criswell47fdd832003-07-14 16:52:07 +000014779# Does compiler simultaneously support -c and -o options?
14780compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014781
14782# Must we lock files when doing compilation ?
14783need_locks=$lt_need_locks
14784
14785# Do we need the lib prefix for modules?
14786need_lib_prefix=$need_lib_prefix
14787
14788# Do we need a version for libraries?
14789need_version=$need_version
14790
14791# Whether dlopen is supported.
14792dlopen_support=$enable_dlopen
14793
14794# Whether dlopen of programs is supported.
14795dlopen_self=$enable_dlopen_self
14796
14797# Whether dlopen of statically linked programs is supported.
14798dlopen_self_static=$enable_dlopen_self_static
14799
14800# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014801link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014802
14803# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014804no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014805
14806# Compiler flag to allow reflexive dlopens.
14807export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14808
14809# Compiler flag to generate shared objects directly from archives.
14810whole_archive_flag_spec=$lt_whole_archive_flag_spec
14811
14812# Compiler flag to generate thread-safe objects.
14813thread_safe_flag_spec=$lt_thread_safe_flag_spec
14814
14815# Library versioning type.
14816version_type=$version_type
14817
14818# Format of library name prefix.
14819libname_spec=$lt_libname_spec
14820
14821# List of archive names. First name is the real one, the rest are links.
14822# The last name is the one that the linker finds with -lNAME.
14823library_names_spec=$lt_library_names_spec
14824
14825# The coded name of the library, if different from the real name.
14826soname_spec=$lt_soname_spec
14827
14828# Commands used to build and install an old-style archive.
14829RANLIB=$lt_RANLIB
14830old_archive_cmds=$lt_old_archive_cmds
14831old_postinstall_cmds=$lt_old_postinstall_cmds
14832old_postuninstall_cmds=$lt_old_postuninstall_cmds
14833
14834# Create an old-style archive from a shared archive.
14835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14836
14837# Create a temporary old-style archive to link instead of a shared archive.
14838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14839
14840# Commands used to build and install a shared archive.
14841archive_cmds=$lt_archive_cmds
14842archive_expsym_cmds=$lt_archive_expsym_cmds
14843postinstall_cmds=$lt_postinstall_cmds
14844postuninstall_cmds=$lt_postuninstall_cmds
14845
John Criswell47fdd832003-07-14 16:52:07 +000014846# Commands used to build a loadable module (assumed same as above if empty)
14847module_cmds=$lt_module_cmds
14848module_expsym_cmds=$lt_module_expsym_cmds
14849
John Criswell7a73b802003-06-30 21:59:07 +000014850# Commands to strip libraries.
14851old_striplib=$lt_old_striplib
14852striplib=$lt_striplib
14853
John Criswell47fdd832003-07-14 16:52:07 +000014854# Dependencies to place before the objects being linked to create a
14855# shared library.
14856predep_objects=$lt_predep_objects
14857
14858# Dependencies to place after the objects being linked to create a
14859# shared library.
14860postdep_objects=$lt_postdep_objects
14861
14862# Dependencies to place before the objects being linked to create a
14863# shared library.
14864predeps=$lt_predeps
14865
14866# Dependencies to place after the objects being linked to create a
14867# shared library.
14868postdeps=$lt_postdeps
14869
14870# The library search path used internally by the compiler when linking
14871# a shared library.
14872compiler_lib_search_path=$lt_compiler_lib_search_path
14873
John Criswell7a73b802003-06-30 21:59:07 +000014874# Method to check whether dependent libraries are shared objects.
14875deplibs_check_method=$lt_deplibs_check_method
14876
14877# Command to use when deplibs_check_method == file_magic.
14878file_magic_cmd=$lt_file_magic_cmd
14879
14880# Flag that allows shared libraries with undefined symbols to be built.
14881allow_undefined_flag=$lt_allow_undefined_flag
14882
14883# Flag that forces no undefined symbols.
14884no_undefined_flag=$lt_no_undefined_flag
14885
14886# Commands used to finish a libtool library installation in a directory.
14887finish_cmds=$lt_finish_cmds
14888
14889# Same as above, but a single script fragment to be evaled but not shown.
14890finish_eval=$lt_finish_eval
14891
14892# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014894
14895# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014897
14898# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014900
14901# This is the shared library runtime path variable.
14902runpath_var=$runpath_var
14903
14904# This is the shared library path variable.
14905shlibpath_var=$shlibpath_var
14906
14907# Is shlibpath searched before the hard-coded library search path?
14908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14909
14910# How to hardcode a shared library path into an executable.
14911hardcode_action=$hardcode_action
14912
14913# Whether we should hardcode library paths into libraries.
14914hardcode_into_libs=$hardcode_into_libs
14915
14916# Flag to hardcode \$libdir into a binary during linking.
14917# This must work even if \$libdir does not exist.
14918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14919
John Criswell47fdd832003-07-14 16:52:07 +000014920# If ld is used when linking, flag to hardcode \$libdir into
14921# a binary during linking. This must work even if \$libdir does
14922# not exist.
14923hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14924
John Criswell7a73b802003-06-30 21:59:07 +000014925# Whether we need a single -rpath flag with a separated argument.
14926hardcode_libdir_separator=$lt_hardcode_libdir_separator
14927
John Criswell47fdd832003-07-14 16:52:07 +000014928# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014929# resulting binary.
14930hardcode_direct=$hardcode_direct
14931
14932# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14933# resulting binary.
14934hardcode_minus_L=$hardcode_minus_L
14935
14936# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14937# the resulting binary.
14938hardcode_shlibpath_var=$hardcode_shlibpath_var
14939
John Criswell47fdd832003-07-14 16:52:07 +000014940# Set to yes if building a shared library automatically hardcodes DIR into the library
14941# and all subsequent libraries and executables linked against it.
14942hardcode_automatic=$hardcode_automatic
14943
John Criswell7a73b802003-06-30 21:59:07 +000014944# Variables whose values should be saved in libtool wrapper scripts and
14945# restored at relink time.
14946variables_saved_for_relink="$variables_saved_for_relink"
14947
14948# Whether libtool must link a program against all its dependency libraries.
14949link_all_deplibs=$link_all_deplibs
14950
14951# Compile-time system search path for libraries
14952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14953
14954# Run-time system search path for libraries
14955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14956
14957# Fix the shell variable \$srcfile for the compiler.
14958fix_srcfile_path="$fix_srcfile_path"
14959
14960# Set to yes if exported symbols are required.
14961always_export_symbols=$always_export_symbols
14962
14963# The commands to list exported symbols.
14964export_symbols_cmds=$lt_export_symbols_cmds
14965
14966# The commands to extract the exported symbol list from a shared archive.
14967extract_expsyms_cmds=$lt_extract_expsyms_cmds
14968
14969# Symbols that should not be listed in the preloaded symbols.
14970exclude_expsyms=$lt_exclude_expsyms
14971
14972# Symbols that must always be exported.
14973include_expsyms=$lt_include_expsyms
14974
14975# ### END LIBTOOL CONFIG
14976
14977__EOF__
14978
John Criswell47fdd832003-07-14 16:52:07 +000014979
John Criswell7a73b802003-06-30 21:59:07 +000014980 case $host_os in
14981 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014982 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014983
14984# AIX sometimes has problems with the GCC collect2 program. For some
14985# reason, if we set the COLLECT_NAMES environment variable, the problems
14986# vanish in a puff of smoke.
14987if test "X${COLLECT_NAMES+set}" != Xset; then
14988 COLLECT_NAMES=
14989 export COLLECT_NAMES
14990fi
14991EOF
14992 ;;
14993 esac
14994
John Criswell7a73b802003-06-30 21:59:07 +000014995 # We use sed instead of cat because bash on DJGPP gets confused if
14996 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14997 # text mode, it properly converts lines to CR/LF. This bash problem
14998 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014999 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015000
John Criswell47fdd832003-07-14 16:52:07 +000015001 mv -f "$cfgfile" "$ofile" || \
15002 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015003 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015004
15005else
15006 # If there is no Makefile yet, we rely on a make rule to execute
15007 # `config.status --recheck' to rerun these tests and create the
15008 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015009 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15010 if test -f "$ltmain_in"; then
15011 test -f Makefile && make "$ltmain"
15012 fi
John Criswell7a73b802003-06-30 21:59:07 +000015013fi
John Criswell7a73b802003-06-30 21:59:07 +000015014
15015
John Criswell47fdd832003-07-14 16:52:07 +000015016ac_ext=c
15017ac_cpp='$CPP $CPPFLAGS'
15018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020ac_compiler_gnu=$ac_cv_c_compiler_gnu
15021
15022CC="$lt_save_CC"
15023
15024
15025# Check whether --with-tags or --without-tags was given.
15026if test "${with_tags+set}" = set; then
15027 withval="$with_tags"
15028 tagnames="$withval"
15029fi;
15030
15031if test -f "$ltmain" && test -n "$tagnames"; then
15032 if test ! -f "${ofile}"; then
15033 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15034echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15035 fi
15036
15037 if test -z "$LTCC"; then
15038 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15039 if test -z "$LTCC"; then
15040 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15041echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15042 else
15043 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15044echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15045 fi
15046 fi
15047
15048 # Extract list of available tagged configurations in $ofile.
15049 # Note that this assumes the entire list is on one line.
15050 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15051
15052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15053 for tagname in $tagnames; do
15054 IFS="$lt_save_ifs"
15055 # Check whether tagname contains only valid characters
15056 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15057 "") ;;
15058 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15059echo "$as_me: error: invalid tag name: $tagname" >&2;}
15060 { (exit 1); exit 1; }; }
15061 ;;
15062 esac
15063
15064 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15065 then
15066 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15067echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15068 { (exit 1); exit 1; }; }
15069 fi
15070
15071 # Update the list of available tags.
15072 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015073 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015074
15075 case $tagname in
15076 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015077 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15078 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15079 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015080 ac_ext=cc
15081ac_cpp='$CXXCPP $CPPFLAGS'
15082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15085
15086
15087
15088
15089archive_cmds_need_lc_CXX=no
15090allow_undefined_flag_CXX=
15091always_export_symbols_CXX=no
15092archive_expsym_cmds_CXX=
15093export_dynamic_flag_spec_CXX=
15094hardcode_direct_CXX=no
15095hardcode_libdir_flag_spec_CXX=
15096hardcode_libdir_flag_spec_ld_CXX=
15097hardcode_libdir_separator_CXX=
15098hardcode_minus_L_CXX=no
15099hardcode_automatic_CXX=no
15100module_cmds_CXX=
15101module_expsym_cmds_CXX=
15102link_all_deplibs_CXX=unknown
15103old_archive_cmds_CXX=$old_archive_cmds
15104no_undefined_flag_CXX=
15105whole_archive_flag_spec_CXX=
15106enable_shared_with_static_runtimes_CXX=no
15107
15108# Dependencies to place before and after the object being linked:
15109predep_objects_CXX=
15110postdep_objects_CXX=
15111predeps_CXX=
15112postdeps_CXX=
15113compiler_lib_search_path_CXX=
15114
15115# Source file extension for C++ test sources.
15116ac_ext=cc
15117
15118# Object file extension for compiled C++ test sources.
15119objext=o
15120objext_CXX=$objext
15121
15122# Code to be used in simple compile tests
15123lt_simple_compile_test_code="int some_variable = 0;\n"
15124
15125# Code to be used in simple link tests
15126lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15127
15128# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15129
15130# If no C compiler was specified, use CC.
15131LTCC=${LTCC-"$CC"}
15132
15133# Allow CC to be a program name with arguments.
15134compiler=$CC
15135
15136
15137# Allow CC to be a program name with arguments.
15138lt_save_CC=$CC
15139lt_save_LD=$LD
15140lt_save_GCC=$GCC
15141GCC=$GXX
15142lt_save_with_gnu_ld=$with_gnu_ld
15143lt_save_path_LD=$lt_cv_path_LD
15144if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15145 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15146else
15147 unset lt_cv_prog_gnu_ld
15148fi
15149if test -n "${lt_cv_path_LDCXX+set}"; then
15150 lt_cv_path_LD=$lt_cv_path_LDCXX
15151else
15152 unset lt_cv_path_LD
15153fi
15154test -z "${LDCXX+set}" || LD=$LDCXX
15155CC=${CXX-"c++"}
15156compiler=$CC
15157compiler_CXX=$CC
15158cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15159
15160# We don't want -fno-exception wen compiling C++ code, so set the
15161# no_builtin_flag separately
15162if test "$GXX" = yes; then
15163 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15164else
15165 lt_prog_compiler_no_builtin_flag_CXX=
15166fi
15167
15168if test "$GXX" = yes; then
15169 # Set up default GNU C++ configuration
15170
15171
15172# Check whether --with-gnu-ld or --without-gnu-ld was given.
15173if test "${with_gnu_ld+set}" = set; then
15174 withval="$with_gnu_ld"
15175 test "$withval" = no || with_gnu_ld=yes
15176else
15177 with_gnu_ld=no
15178fi;
15179ac_prog=ld
15180if test "$GCC" = yes; then
15181 # Check if gcc -print-prog-name=ld gives a path.
15182 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15183echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15184 case $host in
15185 *-*-mingw*)
15186 # gcc leaves a trailing carriage return which upsets mingw
15187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15188 *)
15189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15190 esac
15191 case $ac_prog in
15192 # Accept absolute paths.
15193 [\\/]* | ?:[\\/]*)
15194 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015195 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015196 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15197 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15198 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15199 done
15200 test -z "$LD" && LD="$ac_prog"
15201 ;;
15202 "")
15203 # If it fails, then pretend we aren't using GCC.
15204 ac_prog=ld
15205 ;;
15206 *)
15207 # If it is relative, then search for the first ld in PATH.
15208 with_gnu_ld=unknown
15209 ;;
15210 esac
15211elif test "$with_gnu_ld" = yes; then
15212 echo "$as_me:$LINENO: checking for GNU ld" >&5
15213echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15214else
15215 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15216echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15217fi
15218if test "${lt_cv_path_LD+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220else
15221 if test -z "$LD"; then
15222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15223 for ac_dir in $PATH; do
15224 IFS="$lt_save_ifs"
15225 test -z "$ac_dir" && ac_dir=.
15226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15227 lt_cv_path_LD="$ac_dir/$ac_prog"
15228 # Check to see if the program is GNU ld. I'd rather use --version,
15229 # but apparently some GNU ld's only accept -v.
15230 # Break only if it was the GNU/non-GNU ld that we prefer.
15231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15232 *GNU* | *'with BFD'*)
15233 test "$with_gnu_ld" != no && break
15234 ;;
15235 *)
15236 test "$with_gnu_ld" != yes && break
15237 ;;
15238 esac
15239 fi
15240 done
15241 IFS="$lt_save_ifs"
15242else
15243 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15244fi
15245fi
15246
15247LD="$lt_cv_path_LD"
15248if test -n "$LD"; then
15249 echo "$as_me:$LINENO: result: $LD" >&5
15250echo "${ECHO_T}$LD" >&6
15251else
15252 echo "$as_me:$LINENO: result: no" >&5
15253echo "${ECHO_T}no" >&6
15254fi
15255test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15256echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15257 { (exit 1); exit 1; }; }
15258echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15259echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15260if test "${lt_cv_prog_gnu_ld+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262else
15263 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015264case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015265*GNU* | *'with BFD'*)
15266 lt_cv_prog_gnu_ld=yes
15267 ;;
15268*)
15269 lt_cv_prog_gnu_ld=no
15270 ;;
15271esac
15272fi
15273echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15274echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15275with_gnu_ld=$lt_cv_prog_gnu_ld
15276
15277
15278
15279 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15280 # archiving commands below assume that GNU ld is being used.
15281 if test "$with_gnu_ld" = yes; then
15282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283 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'
15284
15285 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15287
15288 # If archive_cmds runs LD, not CC, wlarc should be empty
15289 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15290 # investigate it a little bit more. (MM)
15291 wlarc='${wl}'
15292
15293 # ancient GNU ld didn't support --whole-archive et. al.
15294 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15295 grep 'no-whole-archive' > /dev/null; then
15296 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15297 else
15298 whole_archive_flag_spec_CXX=
15299 fi
15300 else
15301 with_gnu_ld=no
15302 wlarc=
15303
15304 # A generic and very simple default shared library creation
15305 # command for GNU C++ for the case where it uses the native
15306 # linker, instead of GNU ld. If possible, this setting should
15307 # overridden to take advantage of the native linker features on
15308 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015309 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015310 fi
15311
15312 # Commands to make compiler produce verbose output that lists
15313 # what "hidden" libraries, object files and flags are used when
15314 # linking a shared library.
15315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15316
15317else
15318 GXX=no
15319 with_gnu_ld=no
15320 wlarc=
15321fi
15322
15323# PORTME: fill in a description of your system's C++ link characteristics
15324echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15325echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15326ld_shlibs_CXX=yes
15327case $host_os in
15328 aix3*)
15329 # FIXME: insert proper C++ library support
15330 ld_shlibs_CXX=no
15331 ;;
15332 aix4* | aix5*)
15333 if test "$host_cpu" = ia64; then
15334 # On IA64, the linker does run time linking by default, so we don't
15335 # have to do anything special.
15336 aix_use_runtimelinking=no
15337 exp_sym_flag='-Bexport'
15338 no_entry_flag=""
15339 else
15340 aix_use_runtimelinking=no
15341
15342 # Test if we are trying to use run time linking or normal
15343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15344 # need to do runtime linking.
15345 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15346 for ld_flag in $LDFLAGS; do
15347 case $ld_flag in
15348 *-brtl*)
15349 aix_use_runtimelinking=yes
15350 break
15351 ;;
15352 esac
15353 done
15354 esac
15355
15356 exp_sym_flag='-bexport'
15357 no_entry_flag='-bnoentry'
15358 fi
15359
15360 # When large executables or shared objects are built, AIX ld can
15361 # have problems creating the table of contents. If linking a library
15362 # or program results in "error TOC overflow" add -mminimal-toc to
15363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15365
15366 archive_cmds_CXX=''
15367 hardcode_direct_CXX=yes
15368 hardcode_libdir_separator_CXX=':'
15369 link_all_deplibs_CXX=yes
15370
15371 if test "$GXX" = yes; then
15372 case $host_os in aix4.012|aix4.012.*)
15373 # We only want to do this on AIX 4.2 and lower, the check
15374 # below for broken collect2 doesn't work under 4.3+
15375 collect2name=`${CC} -print-prog-name=collect2`
15376 if test -f "$collect2name" && \
15377 strings "$collect2name" | grep resolve_lib_name >/dev/null
15378 then
15379 # We have reworked collect2
15380 hardcode_direct_CXX=yes
15381 else
15382 # We have old collect2
15383 hardcode_direct_CXX=unsupported
15384 # It fails to find uninstalled libraries when the uninstalled
15385 # path is not listed in the libpath. Setting hardcode_minus_L
15386 # to unsupported forces relinking
15387 hardcode_minus_L_CXX=yes
15388 hardcode_libdir_flag_spec_CXX='-L$libdir'
15389 hardcode_libdir_separator_CXX=
15390 fi
15391 esac
15392 shared_flag='-shared'
15393 else
15394 # not using gcc
15395 if test "$host_cpu" = ia64; then
15396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15397 # chokes on -Wl,-G. The following line is correct:
15398 shared_flag='-G'
15399 else
15400 if test "$aix_use_runtimelinking" = yes; then
15401 shared_flag='${wl}-G'
15402 else
15403 shared_flag='${wl}-bM:SRE'
15404 fi
15405 fi
15406 fi
15407
15408 # It seems that -bexpall does not export symbols beginning with
15409 # underscore (_), so it is better to generate a list of symbols to export.
15410 always_export_symbols_CXX=yes
15411 if test "$aix_use_runtimelinking" = yes; then
15412 # Warning - without using the other runtime loading flags (-brtl),
15413 # -berok will link without error, but may produce a broken library.
15414 allow_undefined_flag_CXX='-berok'
15415 # Determine the default libpath from the value encoded in an empty executable.
15416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
15421/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015422
John Criswell47fdd832003-07-14 16:52:07 +000015423int
15424main ()
15425{
15426
15427 ;
15428 return 0;
15429}
15430_ACEOF
15431rm -f conftest.$ac_objext conftest$ac_exeext
15432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015433 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015440 { ac_try='test -z "$ac_cxx_werror_flag"
15441 || test ! -s conftest.err'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453
15454aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15455}'`
15456# Check for a 64-bit object if we didn't find anything.
15457if 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; }
15458}'`; fi
15459else
15460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015461sed 's/^/| /' conftest.$ac_ext >&5
15462
John Criswell47fdd832003-07-14 16:52:07 +000015463fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015464rm -f conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015466if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15467
15468 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15469
15470 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"
15471 else
15472 if test "$host_cpu" = ia64; then
15473 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15474 allow_undefined_flag_CXX="-z nodefs"
15475 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"
15476 else
15477 # Determine the default libpath from the value encoded in an empty executable.
15478 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015484
John Criswell47fdd832003-07-14 16:52:07 +000015485int
15486main ()
15487{
15488
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493rm -f conftest.$ac_objext conftest$ac_exeext
15494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015495 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015502 { ac_try='test -z "$ac_cxx_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515
15516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15517}'`
15518# Check for a 64-bit object if we didn't find anything.
15519if 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; }
15520}'`; fi
15521else
15522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015523sed 's/^/| /' conftest.$ac_ext >&5
15524
John Criswell47fdd832003-07-14 16:52:07 +000015525fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015526rm -f conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15529
15530 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15531 # Warning - without using the other run time loading flags,
15532 # -berok will link without error, but may produce a broken library.
15533 no_undefined_flag_CXX=' ${wl}-bernotok'
15534 allow_undefined_flag_CXX=' ${wl}-berok'
15535 # -bexpall does not export symbols beginning with underscore (_)
15536 always_export_symbols_CXX=yes
15537 # Exported symbols can be pulled into shared objects from archives
15538 whole_archive_flag_spec_CXX=' '
15539 archive_cmds_need_lc_CXX=yes
15540 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015541 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 +000015542 fi
15543 fi
15544 ;;
15545 chorus*)
15546 case $cc_basename in
15547 *)
15548 # FIXME: insert proper C++ library support
15549 ld_shlibs_CXX=no
15550 ;;
15551 esac
15552 ;;
15553
Reid Spencer2706f8c2004-09-19 23:53:36 +000015554
John Criswell47fdd832003-07-14 16:52:07 +000015555 cygwin* | mingw* | pw32*)
15556 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15557 # as there is no search path for DLLs.
15558 hardcode_libdir_flag_spec_CXX='-L$libdir'
15559 allow_undefined_flag_CXX=unsupported
15560 always_export_symbols_CXX=no
15561 enable_shared_with_static_runtimes_CXX=yes
15562
15563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15564 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'
15565 # If the export-symbols file already is a .def file (1st line
15566 # is EXPORTS), use it as is; otherwise, prepend...
15567 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15568 cp $export_symbols $output_objdir/$soname.def;
15569 else
15570 echo EXPORTS > $output_objdir/$soname.def;
15571 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015572 fi~
15573 $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 +000015574 else
15575 ld_shlibs_CXX=no
15576 fi
15577 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015578 darwin* | rhapsody*)
15579 case "$host_os" in
15580 rhapsody* | darwin1.[012])
15581 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15582 ;;
15583 *) # Darwin 1.3 on
15584 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15585 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15586 else
15587 case ${MACOSX_DEPLOYMENT_TARGET} in
15588 10.[012])
15589 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15590 ;;
15591 10.*)
15592 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15593 ;;
15594 esac
15595 fi
15596 ;;
15597 esac
15598 archive_cmds_need_lc_CXX=no
15599 hardcode_direct_CXX=no
15600 hardcode_automatic_CXX=yes
15601 hardcode_shlibpath_var_CXX=unsupported
15602 whole_archive_flag_spec_CXX=''
15603 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015604
Reid Spencer2706f8c2004-09-19 23:53:36 +000015605 if test "$GXX" = yes ; then
15606 lt_int_apple_cc_single_mod=no
15607 output_verbose_link_cmd='echo'
15608 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15609 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015610 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015611 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015612 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 +000015613 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015614 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 +000015615 fi
15616 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015619 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 +000015620 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015621 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 +000015622 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015623 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 +000015624 else
15625 case "$cc_basename" in
15626 xlc*)
15627 output_verbose_link_cmd='echo'
15628 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'
15629 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15630 # 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 +000015631 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}'
15632 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 +000015633 ;;
15634 *)
15635 ld_shlibs_CXX=no
15636 ;;
15637 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015638 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015639 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015640
15641 dgux*)
15642 case $cc_basename in
15643 ec++)
15644 # FIXME: insert proper C++ library support
15645 ld_shlibs_CXX=no
15646 ;;
15647 ghcx)
15648 # Green Hills C++ Compiler
15649 # FIXME: insert proper C++ library support
15650 ld_shlibs_CXX=no
15651 ;;
15652 *)
15653 # FIXME: insert proper C++ library support
15654 ld_shlibs_CXX=no
15655 ;;
15656 esac
15657 ;;
15658 freebsd12*)
15659 # C++ shared libraries reported to be fairly broken before switch to ELF
15660 ld_shlibs_CXX=no
15661 ;;
15662 freebsd-elf*)
15663 archive_cmds_need_lc_CXX=no
15664 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015665 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015666 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15667 # conventions
15668 ld_shlibs_CXX=yes
15669 ;;
15670 gnu*)
15671 ;;
15672 hpux9*)
15673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator_CXX=:
15675 export_dynamic_flag_spec_CXX='${wl}-E'
15676 hardcode_direct_CXX=yes
15677 hardcode_minus_L_CXX=yes # Not in the search PATH,
15678 # but as the default
15679 # location of the library.
15680
15681 case $cc_basename in
15682 CC)
15683 # FIXME: insert proper C++ library support
15684 ld_shlibs_CXX=no
15685 ;;
15686 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015687 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 +000015688 # Commands to make compiler produce verbose output that lists
15689 # what "hidden" libraries, object files and flags are used when
15690 # linking a shared library.
15691 #
15692 # There doesn't appear to be a way to prevent this compiler from
15693 # explicitly linking system object files so we need to strip them
15694 # from the output so that they don't get included in the library
15695 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015696 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 +000015697 ;;
15698 *)
15699 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015700 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 +000015701 else
15702 # FIXME: insert proper C++ library support
15703 ld_shlibs_CXX=no
15704 fi
15705 ;;
15706 esac
15707 ;;
15708 hpux10*|hpux11*)
15709 if test $with_gnu_ld = no; then
15710 case "$host_cpu" in
15711 hppa*64*)
15712 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15713 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15714 hardcode_libdir_separator_CXX=:
15715 ;;
15716 ia64*)
15717 hardcode_libdir_flag_spec_CXX='-L$libdir'
15718 ;;
15719 *)
15720 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15721 hardcode_libdir_separator_CXX=:
15722 export_dynamic_flag_spec_CXX='${wl}-E'
15723 ;;
15724 esac
15725 fi
15726 case "$host_cpu" in
15727 hppa*64*)
15728 hardcode_direct_CXX=no
15729 hardcode_shlibpath_var_CXX=no
15730 ;;
15731 ia64*)
15732 hardcode_direct_CXX=no
15733 hardcode_shlibpath_var_CXX=no
15734 hardcode_minus_L_CXX=yes # Not in the search PATH,
15735 # but as the default
15736 # location of the library.
15737 ;;
15738 *)
15739 hardcode_direct_CXX=yes
15740 hardcode_minus_L_CXX=yes # Not in the search PATH,
15741 # but as the default
15742 # location of the library.
15743 ;;
15744 esac
15745
15746 case $cc_basename in
15747 CC)
15748 # FIXME: insert proper C++ library support
15749 ld_shlibs_CXX=no
15750 ;;
15751 aCC)
15752 case "$host_cpu" in
15753 hppa*64*|ia64*)
15754 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15755 ;;
15756 *)
15757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15758 ;;
15759 esac
15760 # Commands to make compiler produce verbose output that lists
15761 # what "hidden" libraries, object files and flags are used when
15762 # linking a shared library.
15763 #
15764 # There doesn't appear to be a way to prevent this compiler from
15765 # explicitly linking system object files so we need to strip them
15766 # from the output so that they don't get included in the library
15767 # dependencies.
15768 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'
15769 ;;
15770 *)
15771 if test "$GXX" = yes; then
15772 if test $with_gnu_ld = no; then
15773 case "$host_cpu" in
15774 ia64*|hppa*64*)
15775 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15776 ;;
15777 *)
15778 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'
15779 ;;
15780 esac
15781 fi
15782 else
15783 # FIXME: insert proper C++ library support
15784 ld_shlibs_CXX=no
15785 fi
15786 ;;
15787 esac
15788 ;;
15789 irix5* | irix6*)
15790 case $cc_basename in
15791 CC)
15792 # SGI C++
15793 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'
15794
15795 # Archives containing C++ object files must be created using
15796 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15797 # necessary to make sure instantiated templates are included
15798 # in the archive.
15799 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15800 ;;
15801 *)
15802 if test "$GXX" = yes; then
15803 if test "$with_gnu_ld" = no; then
15804 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'
15805 else
15806 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'
15807 fi
15808 fi
15809 link_all_deplibs_CXX=yes
15810 ;;
15811 esac
15812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15813 hardcode_libdir_separator_CXX=:
15814 ;;
15815 linux*)
15816 case $cc_basename in
15817 KCC)
15818 # Kuck and Associates, Inc. (KAI) C++ Compiler
15819
15820 # KCC will only create a shared library if the output file
15821 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15822 # to its proper name (with version) after linking.
15823 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'
15824 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'
15825 # Commands to make compiler produce verbose output that lists
15826 # what "hidden" libraries, object files and flags are used when
15827 # linking a shared library.
15828 #
15829 # There doesn't appear to be a way to prevent this compiler from
15830 # explicitly linking system object files so we need to strip them
15831 # from the output so that they don't get included in the library
15832 # dependencies.
15833 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'
15834
15835 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15837
15838 # Archives containing C++ object files must be created using
15839 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15840 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15841 ;;
15842 icpc)
15843 # Intel C++
15844 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015845 # version 8.0 and above of icpc choke on multiply defined symbols
15846 # if we add $predep_objects and $postdep_objects, however 7.1 and
15847 # earlier do not add the objects themselves.
15848 case `$CC -V 2>&1` in
15849 *"Version 7."*)
15850 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851 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'
15852 ;;
15853 *) # Version 8.0 or newer
15854 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15856 ;;
15857 esac
John Criswell47fdd832003-07-14 16:52:07 +000015858 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15861 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15862 ;;
15863 cxx)
15864 # Compaq C++
15865 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866 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'
15867
15868 runpath_var=LD_RUN_PATH
15869 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15870 hardcode_libdir_separator_CXX=:
15871
15872 # Commands to make compiler produce verbose output that lists
15873 # what "hidden" libraries, object files and flags are used when
15874 # linking a shared library.
15875 #
15876 # There doesn't appear to be a way to prevent this compiler from
15877 # explicitly linking system object files so we need to strip them
15878 # from the output so that they don't get included in the library
15879 # dependencies.
15880 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'
15881 ;;
15882 esac
15883 ;;
15884 lynxos*)
15885 # FIXME: insert proper C++ library support
15886 ld_shlibs_CXX=no
15887 ;;
15888 m88k*)
15889 # FIXME: insert proper C++ library support
15890 ld_shlibs_CXX=no
15891 ;;
15892 mvs*)
15893 case $cc_basename in
15894 cxx)
15895 # FIXME: insert proper C++ library support
15896 ld_shlibs_CXX=no
15897 ;;
15898 *)
15899 # FIXME: insert proper C++ library support
15900 ld_shlibs_CXX=no
15901 ;;
15902 esac
15903 ;;
15904 netbsd*)
15905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15906 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15907 wlarc=
15908 hardcode_libdir_flag_spec_CXX='-R$libdir'
15909 hardcode_direct_CXX=yes
15910 hardcode_shlibpath_var_CXX=no
15911 fi
15912 # Workaround some broken pre-1.5 toolchains
15913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15914 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015915 openbsd2*)
15916 # C++ shared libraries are fairly broken
15917 ld_shlibs_CXX=no
15918 ;;
15919 openbsd*)
15920 hardcode_direct_CXX=yes
15921 hardcode_shlibpath_var_CXX=no
15922 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15925 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15926 export_dynamic_flag_spec_CXX='${wl}-E'
15927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15928 fi
15929 output_verbose_link_cmd='echo'
15930 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015931 osf3*)
15932 case $cc_basename in
15933 KCC)
15934 # Kuck and Associates, Inc. (KAI) C++ Compiler
15935
15936 # KCC will only create a shared library if the output file
15937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15938 # to its proper name (with version) after linking.
15939 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'
15940
15941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15942 hardcode_libdir_separator_CXX=:
15943
15944 # Archives containing C++ object files must be created using
15945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15947
15948 ;;
15949 RCC)
15950 # Rational C++ 2.4.1
15951 # FIXME: insert proper C++ library support
15952 ld_shlibs_CXX=no
15953 ;;
15954 cxx)
15955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15956 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'
15957
15958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15959 hardcode_libdir_separator_CXX=:
15960
15961 # Commands to make compiler produce verbose output that lists
15962 # what "hidden" libraries, object files and flags are used when
15963 # linking a shared library.
15964 #
15965 # There doesn't appear to be a way to prevent this compiler from
15966 # explicitly linking system object files so we need to strip them
15967 # from the output so that they don't get included in the library
15968 # dependencies.
15969 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'
15970 ;;
15971 *)
15972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15973 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15974 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'
15975
15976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15977 hardcode_libdir_separator_CXX=:
15978
15979 # Commands to make compiler produce verbose output that lists
15980 # what "hidden" libraries, object files and flags are used when
15981 # linking a shared library.
15982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15983
15984 else
15985 # FIXME: insert proper C++ library support
15986 ld_shlibs_CXX=no
15987 fi
15988 ;;
15989 esac
15990 ;;
15991 osf4* | osf5*)
15992 case $cc_basename in
15993 KCC)
15994 # Kuck and Associates, Inc. (KAI) C++ Compiler
15995
15996 # KCC will only create a shared library if the output file
15997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15998 # to its proper name (with version) after linking.
15999 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'
16000
16001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16002 hardcode_libdir_separator_CXX=:
16003
16004 # Archives containing C++ object files must be created using
16005 # the KAI C++ compiler.
16006 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16007 ;;
16008 RCC)
16009 # Rational C++ 2.4.1
16010 # FIXME: insert proper C++ library support
16011 ld_shlibs_CXX=no
16012 ;;
16013 cxx)
16014 allow_undefined_flag_CXX=' -expect_unresolved \*'
16015 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 +000016016 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16017 echo "-hidden">> $lib.exp~
16018 $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~
16019 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016020
16021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16022 hardcode_libdir_separator_CXX=:
16023
16024 # Commands to make compiler produce verbose output that lists
16025 # what "hidden" libraries, object files and flags are used when
16026 # linking a shared library.
16027 #
16028 # There doesn't appear to be a way to prevent this compiler from
16029 # explicitly linking system object files so we need to strip them
16030 # from the output so that they don't get included in the library
16031 # dependencies.
16032 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'
16033 ;;
16034 *)
16035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16037 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'
16038
16039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16040 hardcode_libdir_separator_CXX=:
16041
16042 # Commands to make compiler produce verbose output that lists
16043 # what "hidden" libraries, object files and flags are used when
16044 # linking a shared library.
16045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16046
16047 else
16048 # FIXME: insert proper C++ library support
16049 ld_shlibs_CXX=no
16050 fi
16051 ;;
16052 esac
16053 ;;
16054 psos*)
16055 # FIXME: insert proper C++ library support
16056 ld_shlibs_CXX=no
16057 ;;
16058 sco*)
16059 archive_cmds_need_lc_CXX=no
16060 case $cc_basename in
16061 CC)
16062 # FIXME: insert proper C++ library support
16063 ld_shlibs_CXX=no
16064 ;;
16065 *)
16066 # FIXME: insert proper C++ library support
16067 ld_shlibs_CXX=no
16068 ;;
16069 esac
16070 ;;
16071 sunos4*)
16072 case $cc_basename in
16073 CC)
16074 # Sun C++ 4.x
16075 # FIXME: insert proper C++ library support
16076 ld_shlibs_CXX=no
16077 ;;
16078 lcc)
16079 # Lucid
16080 # FIXME: insert proper C++ library support
16081 ld_shlibs_CXX=no
16082 ;;
16083 *)
16084 # FIXME: insert proper C++ library support
16085 ld_shlibs_CXX=no
16086 ;;
16087 esac
16088 ;;
16089 solaris*)
16090 case $cc_basename in
16091 CC)
16092 # Sun C++ 4.2, 5.x and Centerline C++
16093 no_undefined_flag_CXX=' -zdefs'
16094 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 +000016095 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096 $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 +000016097
16098 hardcode_libdir_flag_spec_CXX='-R$libdir'
16099 hardcode_shlibpath_var_CXX=no
16100 case $host_os in
16101 solaris2.0-5 | solaris2.0-5.*) ;;
16102 *)
16103 # The C++ compiler is used as linker so we must use $wl
16104 # flag to pass the commands to the underlying system
16105 # linker.
16106 # Supported since Solaris 2.6 (maybe 2.5.1?)
16107 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16108 ;;
16109 esac
16110 link_all_deplibs_CXX=yes
16111
16112 # Commands to make compiler produce verbose output that lists
16113 # what "hidden" libraries, object files and flags are used when
16114 # linking a shared library.
16115 #
16116 # There doesn't appear to be a way to prevent this compiler from
16117 # explicitly linking system object files so we need to strip them
16118 # from the output so that they don't get included in the library
16119 # dependencies.
16120 output_verbose_link_cmd='templist=`$CC -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'
16121
16122 # Archives containing C++ object files must be created using
16123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16124 # necessary to make sure instantiated templates are included
16125 # in the archive.
16126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16127 ;;
16128 gcx)
16129 # Green Hills C++ Compiler
16130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16131
16132 # The C++ compiler must be used to create the archive.
16133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16134 ;;
16135 *)
16136 # GNU C++ compiler with Solaris linker
16137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16139 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016140 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 +000016141 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16143
John Criswell47fdd832003-07-14 16:52:07 +000016144 # Commands to make compiler produce verbose output that lists
16145 # what "hidden" libraries, object files and flags are used when
16146 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016147 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016148 else
16149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16150 # platform.
16151 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 +000016152 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153 $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 +000016154
16155 # Commands to make compiler produce verbose output that lists
16156 # what "hidden" libraries, object files and flags are used when
16157 # linking a shared library.
16158 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16159 fi
16160
16161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16162 fi
16163 ;;
16164 esac
16165 ;;
16166 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16167 archive_cmds_need_lc_CXX=no
16168 ;;
16169 tandem*)
16170 case $cc_basename in
16171 NCC)
16172 # NonStop-UX NCC 3.20
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 ;;
16176 *)
16177 # FIXME: insert proper C++ library support
16178 ld_shlibs_CXX=no
16179 ;;
16180 esac
16181 ;;
16182 vxworks*)
16183 # FIXME: insert proper C++ library support
16184 ld_shlibs_CXX=no
16185 ;;
16186 *)
16187 # FIXME: insert proper C++ library support
16188 ld_shlibs_CXX=no
16189 ;;
16190esac
16191echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16192echo "${ECHO_T}$ld_shlibs_CXX" >&6
16193test "$ld_shlibs_CXX" = no && can_build_shared=no
16194
16195GCC_CXX="$GXX"
16196LD_CXX="$LD"
16197
John Criswell47fdd832003-07-14 16:52:07 +000016198
16199cat > conftest.$ac_ext <<EOF
16200class Foo
16201{
16202public:
16203 Foo (void) { a = 0; }
16204private:
16205 int a;
16206};
16207EOF
16208
16209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; then
16214 # Parse the compiler output and extract the necessary
16215 # objects, libraries and library flags.
16216
16217 # Sentinel used to keep track of whether or not we are before
16218 # the conftest object file.
16219 pre_test_object_deps_done=no
16220
16221 # The `*' in the case matches for architectures that use `case' in
16222 # $output_verbose_cmd can trigger glob expansion during the loop
16223 # eval without this substitution.
16224 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16225
16226 for p in `eval $output_verbose_link_cmd`; do
16227 case $p in
16228
16229 -L* | -R* | -l*)
16230 # Some compilers place space between "-{L,R}" and the path.
16231 # Remove the space.
16232 if test $p = "-L" \
16233 || test $p = "-R"; then
16234 prev=$p
16235 continue
16236 else
16237 prev=
16238 fi
16239
16240 if test "$pre_test_object_deps_done" = no; then
16241 case $p in
16242 -L* | -R*)
16243 # Internal compiler library paths should come after those
16244 # provided the user. The postdeps already come after the
16245 # user supplied libs so there is no need to process them.
16246 if test -z "$compiler_lib_search_path_CXX"; then
16247 compiler_lib_search_path_CXX="${prev}${p}"
16248 else
16249 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16250 fi
16251 ;;
16252 # The "-l" case would never come before the object being
16253 # linked, so don't bother handling this case.
16254 esac
16255 else
16256 if test -z "$postdeps_CXX"; then
16257 postdeps_CXX="${prev}${p}"
16258 else
16259 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16260 fi
16261 fi
16262 ;;
16263
16264 *.$objext)
16265 # This assumes that the test object file only shows up
16266 # once in the compiler output.
16267 if test "$p" = "conftest.$objext"; then
16268 pre_test_object_deps_done=yes
16269 continue
16270 fi
16271
16272 if test "$pre_test_object_deps_done" = no; then
16273 if test -z "$predep_objects_CXX"; then
16274 predep_objects_CXX="$p"
16275 else
16276 predep_objects_CXX="$predep_objects_CXX $p"
16277 fi
16278 else
16279 if test -z "$postdep_objects_CXX"; then
16280 postdep_objects_CXX="$p"
16281 else
16282 postdep_objects_CXX="$postdep_objects_CXX $p"
16283 fi
16284 fi
16285 ;;
16286
16287 *) ;; # Ignore the rest.
16288
16289 esac
16290 done
16291
16292 # Clean up.
16293 rm -f a.out a.exe
16294else
16295 echo "libtool.m4: error: problem compiling CXX test program"
16296fi
16297
16298$rm -f confest.$objext
16299
16300case " $postdeps_CXX " in
16301*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16302esac
16303
16304lt_prog_compiler_wl_CXX=
16305lt_prog_compiler_pic_CXX=
16306lt_prog_compiler_static_CXX=
16307
16308echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16309echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16310
16311 # C++ specific cases for pic, static, wl, etc.
16312 if test "$GXX" = yes; then
16313 lt_prog_compiler_wl_CXX='-Wl,'
16314 lt_prog_compiler_static_CXX='-static'
16315
16316 case $host_os in
16317 aix*)
16318 # All AIX code is PIC.
16319 if test "$host_cpu" = ia64; then
16320 # AIX 5 now supports IA64 processor
16321 lt_prog_compiler_static_CXX='-Bstatic'
16322 fi
16323 ;;
16324 amigaos*)
16325 # FIXME: we need at least 68020 code to build shared libraries, but
16326 # adding the `-m68020' flag to GCC prevents building anything better,
16327 # like `-m68040'.
16328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16329 ;;
16330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16331 # PIC is the default for these OSes.
16332 ;;
16333 mingw* | os2* | pw32*)
16334 # This hack is so that the source file can tell whether it is being
16335 # built for inclusion in a dll (and should export symbols for example).
16336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16337 ;;
16338 darwin* | rhapsody*)
16339 # PIC is the default on this platform
16340 # Common symbols not allowed in MH_DYLIB files
16341 lt_prog_compiler_pic_CXX='-fno-common'
16342 ;;
16343 *djgpp*)
16344 # DJGPP does not support shared libraries at all
16345 lt_prog_compiler_pic_CXX=
16346 ;;
16347 sysv4*MP*)
16348 if test -d /usr/nec; then
16349 lt_prog_compiler_pic_CXX=-Kconform_pic
16350 fi
16351 ;;
16352 hpux*)
16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354 # not for PA HP-UX.
16355 case "$host_cpu" in
16356 hppa*64*|ia64*)
16357 ;;
16358 *)
16359 lt_prog_compiler_pic_CXX='-fPIC'
16360 ;;
16361 esac
16362 ;;
16363 *)
16364 lt_prog_compiler_pic_CXX='-fPIC'
16365 ;;
16366 esac
16367 else
16368 case $host_os in
16369 aix4* | aix5*)
16370 # All AIX code is PIC.
16371 if test "$host_cpu" = ia64; then
16372 # AIX 5 now supports IA64 processor
16373 lt_prog_compiler_static_CXX='-Bstatic'
16374 else
16375 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16376 fi
16377 ;;
16378 chorus*)
16379 case $cc_basename in
16380 cxch68)
16381 # Green Hills C++ Compiler
16382 # _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"
16383 ;;
16384 esac
16385 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016386 darwin*)
16387 # PIC is the default on this platform
16388 # Common symbols not allowed in MH_DYLIB files
16389 case "$cc_basename" in
16390 xlc*)
16391 lt_prog_compiler_pic_CXX='-qnocommon'
16392 lt_prog_compiler_wl_CXX='-Wl,'
16393 ;;
16394 esac
16395 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016396 dgux*)
16397 case $cc_basename in
16398 ec++)
16399 lt_prog_compiler_pic_CXX='-KPIC'
16400 ;;
16401 ghcx)
16402 # Green Hills C++ Compiler
16403 lt_prog_compiler_pic_CXX='-pic'
16404 ;;
16405 *)
16406 ;;
16407 esac
16408 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016410 # FreeBSD uses GNU C++
16411 ;;
16412 hpux9* | hpux10* | hpux11*)
16413 case $cc_basename in
16414 CC)
16415 lt_prog_compiler_wl_CXX='-Wl,'
16416 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16417 if test "$host_cpu" != ia64; then
16418 lt_prog_compiler_pic_CXX='+Z'
16419 fi
16420 ;;
16421 aCC)
16422 lt_prog_compiler_wl_CXX='-Wl,'
16423 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16424 case "$host_cpu" in
16425 hppa*64*|ia64*)
16426 # +Z the default
16427 ;;
16428 *)
16429 lt_prog_compiler_pic_CXX='+Z'
16430 ;;
16431 esac
16432 ;;
16433 *)
16434 ;;
16435 esac
16436 ;;
16437 irix5* | irix6* | nonstopux*)
16438 case $cc_basename in
16439 CC)
16440 lt_prog_compiler_wl_CXX='-Wl,'
16441 lt_prog_compiler_static_CXX='-non_shared'
16442 # CC pic flag -KPIC is the default.
16443 ;;
16444 *)
16445 ;;
16446 esac
16447 ;;
16448 linux*)
16449 case $cc_basename in
16450 KCC)
16451 # KAI C++ Compiler
16452 lt_prog_compiler_wl_CXX='--backend -Wl,'
16453 lt_prog_compiler_pic_CXX='-fPIC'
16454 ;;
16455 icpc)
16456 # Intel C++
16457 lt_prog_compiler_wl_CXX='-Wl,'
16458 lt_prog_compiler_pic_CXX='-KPIC'
16459 lt_prog_compiler_static_CXX='-static'
16460 ;;
16461 cxx)
16462 # Compaq C++
16463 # Make sure the PIC flag is empty. It appears that all Alpha
16464 # Linux and Compaq Tru64 Unix objects are PIC.
16465 lt_prog_compiler_pic_CXX=
16466 lt_prog_compiler_static_CXX='-non_shared'
16467 ;;
16468 *)
16469 ;;
16470 esac
16471 ;;
16472 lynxos*)
16473 ;;
16474 m88k*)
16475 ;;
16476 mvs*)
16477 case $cc_basename in
16478 cxx)
16479 lt_prog_compiler_pic_CXX='-W c,exportall'
16480 ;;
16481 *)
16482 ;;
16483 esac
16484 ;;
16485 netbsd*)
16486 ;;
16487 osf3* | osf4* | osf5*)
16488 case $cc_basename in
16489 KCC)
16490 lt_prog_compiler_wl_CXX='--backend -Wl,'
16491 ;;
16492 RCC)
16493 # Rational C++ 2.4.1
16494 lt_prog_compiler_pic_CXX='-pic'
16495 ;;
16496 cxx)
16497 # Digital/Compaq C++
16498 lt_prog_compiler_wl_CXX='-Wl,'
16499 # Make sure the PIC flag is empty. It appears that all Alpha
16500 # Linux and Compaq Tru64 Unix objects are PIC.
16501 lt_prog_compiler_pic_CXX=
16502 lt_prog_compiler_static_CXX='-non_shared'
16503 ;;
16504 *)
16505 ;;
16506 esac
16507 ;;
16508 psos*)
16509 ;;
16510 sco*)
16511 case $cc_basename in
16512 CC)
16513 lt_prog_compiler_pic_CXX='-fPIC'
16514 ;;
16515 *)
16516 ;;
16517 esac
16518 ;;
16519 solaris*)
16520 case $cc_basename in
16521 CC)
16522 # Sun C++ 4.2, 5.x and Centerline C++
16523 lt_prog_compiler_pic_CXX='-KPIC'
16524 lt_prog_compiler_static_CXX='-Bstatic'
16525 lt_prog_compiler_wl_CXX='-Qoption ld '
16526 ;;
16527 gcx)
16528 # Green Hills C++ Compiler
16529 lt_prog_compiler_pic_CXX='-PIC'
16530 ;;
16531 *)
16532 ;;
16533 esac
16534 ;;
16535 sunos4*)
16536 case $cc_basename in
16537 CC)
16538 # Sun C++ 4.x
16539 lt_prog_compiler_pic_CXX='-pic'
16540 lt_prog_compiler_static_CXX='-Bstatic'
16541 ;;
16542 lcc)
16543 # Lucid
16544 lt_prog_compiler_pic_CXX='-pic'
16545 ;;
16546 *)
16547 ;;
16548 esac
16549 ;;
16550 tandem*)
16551 case $cc_basename in
16552 NCC)
16553 # NonStop-UX NCC 3.20
16554 lt_prog_compiler_pic_CXX='-KPIC'
16555 ;;
16556 *)
16557 ;;
16558 esac
16559 ;;
16560 unixware*)
16561 ;;
16562 vxworks*)
16563 ;;
16564 *)
16565 lt_prog_compiler_can_build_shared_CXX=no
16566 ;;
16567 esac
16568 fi
16569
16570echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16571echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16572
16573#
16574# Check to make sure the PIC flag actually works.
16575#
16576if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016577
16578echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016579echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16580if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583 lt_prog_compiler_pic_works_CXX=no
16584 ac_outfile=conftest.$ac_objext
16585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16586 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16587 # Insert the option either (1) after the last *FLAGS variable, or
16588 # (2) before a word containing "conftest.", or (3) at the end.
16589 # Note that $ac_compile itself does not contain backslashes and begins
16590 # with a dollar sign (not a hyphen), so the echo should work correctly.
16591 # The option is referenced via a variable to avoid confusing sed.
16592 lt_compile=`echo "$ac_compile" | $SED \
16593 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16595 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000016596 (eval echo "\"\$as_me:16596: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016597 (eval "$lt_compile" 2>conftest.err)
16598 ac_status=$?
16599 cat conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000016600 echo "$as_me:16600: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016601 if (exit $ac_status) && test -s "$ac_outfile"; then
16602 # The compiler can only warn and ignore the option if not recognized
16603 # So say no if there are warnings
16604 if test ! -s conftest.err; then
16605 lt_prog_compiler_pic_works_CXX=yes
16606 fi
16607 fi
16608 $rm conftest*
16609
16610fi
16611echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16612echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16613
16614if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16615 case $lt_prog_compiler_pic_CXX in
16616 "" | " "*) ;;
16617 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16618 esac
16619else
16620 lt_prog_compiler_pic_CXX=
16621 lt_prog_compiler_can_build_shared_CXX=no
16622fi
16623
16624fi
16625case "$host_os" in
16626 # For platforms which do not support PIC, -DPIC is meaningless:
16627 *djgpp*)
16628 lt_prog_compiler_pic_CXX=
16629 ;;
16630 *)
16631 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16632 ;;
16633esac
16634
16635echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16636echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16637if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639else
16640 lt_cv_prog_compiler_c_o_CXX=no
16641 $rm -r conftest 2>/dev/null
16642 mkdir conftest
16643 cd conftest
16644 mkdir out
16645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646
John Criswell47fdd832003-07-14 16:52:07 +000016647 lt_compiler_flag="-o out/conftest2.$ac_objext"
16648 # Insert the option either (1) after the last *FLAGS variable, or
16649 # (2) before a word containing "conftest.", or (3) at the end.
16650 # Note that $ac_compile itself does not contain backslashes and begins
16651 # with a dollar sign (not a hyphen), so the echo should work correctly.
16652 lt_compile=`echo "$ac_compile" | $SED \
16653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000016656 (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016657 (eval "$lt_compile" 2>out/conftest.err)
16658 ac_status=$?
16659 cat out/conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000016660 echo "$as_me:16660: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16662 then
16663 # The compiler can only warn and ignore the option if not recognized
16664 # So say no if there are warnings
16665 if test ! -s out/conftest.err; then
16666 lt_cv_prog_compiler_c_o_CXX=yes
16667 fi
16668 fi
16669 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016670 $rm conftest*
16671 # SGI C++ compiler will create directory out/ii_files/ for
16672 # template instantiation
16673 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16674 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016675 cd ..
16676 rmdir conftest
16677 $rm conftest*
16678
16679fi
16680echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16681echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16682
16683
16684hard_links="nottested"
16685if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16686 # do not overwrite the value of need_locks provided by the user
16687 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16688echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16689 hard_links=yes
16690 $rm conftest*
16691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16692 touch conftest.a
16693 ln conftest.a conftest.b 2>&5 || hard_links=no
16694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16695 echo "$as_me:$LINENO: result: $hard_links" >&5
16696echo "${ECHO_T}$hard_links" >&6
16697 if test "$hard_links" = no; then
16698 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16699echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16700 need_locks=warn
16701 fi
16702else
16703 need_locks=no
16704fi
16705
16706echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16707echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16708
16709 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16710 case $host_os in
16711 aix4* | aix5*)
16712 # If we're using GNU nm, then we don't want the "-C" option.
16713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16714 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16715 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'
16716 else
16717 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'
16718 fi
16719 ;;
16720 pw32*)
16721 export_symbols_cmds_CXX="$ltdll_cmds"
16722 ;;
16723 cygwin* | mingw*)
16724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16725 ;;
16726 *)
16727 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16728 ;;
16729 esac
16730
16731echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16732echo "${ECHO_T}$ld_shlibs_CXX" >&6
16733test "$ld_shlibs_CXX" = no && can_build_shared=no
16734
16735variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16736if test "$GCC" = yes; then
16737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16738fi
16739
16740#
16741# Do we need to explicitly link libc?
16742#
16743case "x$archive_cmds_need_lc_CXX" in
16744x|xyes)
16745 # Assume -lc should be added
16746 archive_cmds_need_lc_CXX=yes
16747
16748 if test "$enable_shared" = yes && test "$GCC" = yes; then
16749 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016750 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016751 # FIXME: we may have to deal with multi-command sequences.
16752 ;;
16753 '$CC '*)
16754 # Test whether the compiler implicitly links with -lc since on some
16755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16756 # to ld, don't add -lc before -lgcc.
16757 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16758echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16759 $rm conftest*
16760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16761
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } 2>conftest.err; then
16767 soname=conftest
16768 lib=conftest
16769 libobjs=conftest.$ac_objext
16770 deplibs=
16771 wl=$lt_prog_compiler_wl_CXX
16772 compiler_flags=-v
16773 linker_flags=-v
16774 verstring=
16775 output_objdir=.
16776 libname=conftest
16777 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16778 allow_undefined_flag_CXX=
16779 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16780 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }
16784 then
16785 archive_cmds_need_lc_CXX=no
16786 else
16787 archive_cmds_need_lc_CXX=yes
16788 fi
16789 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16790 else
16791 cat conftest.err 1>&5
16792 fi
16793 $rm conftest*
16794 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16795echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16796 ;;
16797 esac
16798 fi
16799 ;;
16800esac
16801
John Criswell47fdd832003-07-14 16:52:07 +000016802echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16803echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16804library_names_spec=
16805libname_spec='lib$name'
16806soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016807shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016808postinstall_cmds=
16809postuninstall_cmds=
16810finish_cmds=
16811finish_eval=
16812shlibpath_var=
16813shlibpath_overrides_runpath=unknown
16814version_type=none
16815dynamic_linker="$host_os ld.so"
16816sys_lib_dlsearch_path_spec="/lib /usr/lib"
16817if test "$GCC" = yes; then
16818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16819 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16820 # if the path contains ";" then we assume it to be the separator
16821 # otherwise default to the standard path separator (i.e. ":") - it is
16822 # assumed that no part of a normal pathname contains ";" but that should
16823 # okay in the real world where ";" in dirpaths is itself problematic.
16824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16825 else
16826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16827 fi
16828else
16829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16830fi
16831need_lib_prefix=unknown
16832hardcode_into_libs=no
16833
16834# when you set need_version to no, make sure it does not cause -set_version
16835# flags to be left without arguments
16836need_version=unknown
16837
16838case $host_os in
16839aix3*)
16840 version_type=linux
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16842 shlibpath_var=LIBPATH
16843
16844 # AIX 3 has no versioning support, so we append a major version to the name.
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 ;;
16847
16848aix4* | aix5*)
16849 version_type=linux
16850 need_lib_prefix=no
16851 need_version=no
16852 hardcode_into_libs=yes
16853 if test "$host_cpu" = ia64; then
16854 # AIX 5 supports IA64
16855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 else
16858 # With GCC up to 2.95.x, collect2 would create an import file
16859 # for dependence libraries. The import file would start with
16860 # the line `#! .'. This would cause the generated library to
16861 # depend on `.', always an invalid library. This was fixed in
16862 # development snapshots of GCC prior to 3.0.
16863 case $host_os in
16864 aix4 | aix4.[01] | aix4.[01].*)
16865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16866 echo ' yes '
16867 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16868 :
16869 else
16870 can_build_shared=no
16871 fi
16872 ;;
16873 esac
16874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16875 # soname into executable. Probably we can add versioning support to
16876 # collect2, so additional links can be useful in future.
16877 if test "$aix_use_runtimelinking" = yes; then
16878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16879 # instead of lib<name>.a to let people know that these are not
16880 # typical AIX shared libraries.
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 else
16883 # We preserve .a as extension for shared libraries through AIX4.2
16884 # and later when we are not doing run time linking.
16885 library_names_spec='${libname}${release}.a $libname.a'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 fi
16888 shlibpath_var=LIBPATH
16889 fi
16890 ;;
16891
16892amigaos*)
16893 library_names_spec='$libname.ixlibrary $libname.a'
16894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895 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 +000016896 ;;
16897
16898beos*)
16899 library_names_spec='${libname}${shared_ext}'
16900 dynamic_linker="$host_os ld.so"
16901 shlibpath_var=LIBRARY_PATH
16902 ;;
16903
Reid Spencer2706f8c2004-09-19 23:53:36 +000016904bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016905 version_type=linux
16906 need_version=no
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16912 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16913 # the default ld.so.conf also contains /usr/contrib/lib and
16914 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16915 # libtool to hard-code these into programs
16916 ;;
16917
16918cygwin* | mingw* | pw32*)
16919 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016920 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016921 need_version=no
16922 need_lib_prefix=no
16923
16924 case $GCC,$host_os in
16925 yes,cygwin* | yes,mingw* | yes,pw32*)
16926 library_names_spec='$libname.dll.a'
16927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016928 postinstall_cmds='base_file=`basename \${file}`~
16929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16930 dldir=$destdir/`dirname \$dlpath`~
16931 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016932 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16934 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016935 $rm \$dlpath'
16936 shlibpath_overrides_runpath=yes
16937
16938 case $host_os in
16939 cygwin*)
16940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16941 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 +000016942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016943 ;;
16944 mingw*)
16945 # MinGW DLLs use traditional 'lib' prefix
16946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16949 # It is most probably a Windows format PATH printed by
16950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16951 # path with ; separators, and with drive letters. We can handle the
16952 # drive letters (cygwin fileutils understands them), so leave them,
16953 # especially as we might pass files found there to a mingw objdump,
16954 # which wouldn't understand a cygwinified path. Ahh.
16955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16956 else
16957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16958 fi
16959 ;;
16960 pw32*)
16961 # pw32 DLLs use 'pw' prefix rather than 'lib'
16962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16963 ;;
16964 esac
16965 ;;
16966
16967 *)
16968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16969 ;;
16970 esac
16971 dynamic_linker='Win32 ld.exe'
16972 # FIXME: first we should search . and the directory the executable is in
16973 shlibpath_var=PATH
16974 ;;
16975
16976darwin* | rhapsody*)
16977 dynamic_linker="$host_os dyld"
16978 version_type=darwin
16979 need_lib_prefix=no
16980 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016982 soname_spec='${libname}${release}${major}$shared_ext'
16983 shlibpath_overrides_runpath=yes
16984 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016985 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016987 if test "$GCC" = yes; then
16988 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"`
16989 else
16990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016991 fi
16992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16993 ;;
16994
16995dgux*)
16996 version_type=linux
16997 need_lib_prefix=no
16998 need_version=no
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LD_LIBRARY_PATH
17002 ;;
17003
17004freebsd1*)
17005 dynamic_linker=no
17006 ;;
17007
Reid Spencer2706f8c2004-09-19 23:53:36 +000017008kfreebsd*-gnu)
17009 version_type=linux
17010 need_lib_prefix=no
17011 need_version=no
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=no
17016 hardcode_into_libs=yes
17017 dynamic_linker='GNU ld.so'
17018 ;;
17019
John Criswell47fdd832003-07-14 16:52:07 +000017020freebsd*)
17021 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17022 version_type=freebsd-$objformat
17023 case $version_type in
17024 freebsd-elf*)
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17026 need_version=no
17027 need_lib_prefix=no
17028 ;;
17029 freebsd-*)
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17031 need_version=yes
17032 ;;
17033 esac
17034 shlibpath_var=LD_LIBRARY_PATH
17035 case $host_os in
17036 freebsd2*)
17037 shlibpath_overrides_runpath=yes
17038 ;;
17039 freebsd3.01* | freebsdelf3.01*)
17040 shlibpath_overrides_runpath=yes
17041 hardcode_into_libs=yes
17042 ;;
17043 *) # from 3.2 on
17044 shlibpath_overrides_runpath=no
17045 hardcode_into_libs=yes
17046 ;;
17047 esac
17048 ;;
17049
17050gnu*)
17051 version_type=linux
17052 need_lib_prefix=no
17053 need_version=no
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 hardcode_into_libs=yes
17058 ;;
17059
17060hpux9* | hpux10* | hpux11*)
17061 # Give a soname corresponding to the major version so that dld.sl refuses to
17062 # link against other versions.
17063 version_type=sunos
17064 need_lib_prefix=no
17065 need_version=no
17066 case "$host_cpu" in
17067 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017068 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017069 hardcode_into_libs=yes
17070 dynamic_linker="$host_os dld.so"
17071 shlibpath_var=LD_LIBRARY_PATH
17072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 if test "X$HPUX_IA64_MODE" = X32; then
17076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17077 else
17078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17079 fi
17080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17081 ;;
17082 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017083 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017084 hardcode_into_libs=yes
17085 dynamic_linker="$host_os dld.sl"
17086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17092 ;;
17093 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017094 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017095 dynamic_linker="$host_os dld.sl"
17096 shlibpath_var=SHLIB_PATH
17097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 ;;
17101 esac
17102 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17103 postinstall_cmds='chmod 555 $lib'
17104 ;;
17105
17106irix5* | irix6* | nonstopux*)
17107 case $host_os in
17108 nonstopux*) version_type=nonstopux ;;
17109 *)
17110 if test "$lt_cv_prog_gnu_ld" = yes; then
17111 version_type=linux
17112 else
17113 version_type=irix
17114 fi ;;
17115 esac
17116 need_lib_prefix=no
17117 need_version=no
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17120 case $host_os in
17121 irix5* | nonstopux*)
17122 libsuff= shlibsuff=
17123 ;;
17124 *)
17125 case $LD in # libtool.m4 will add one of these switches to LD
17126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17127 libsuff= shlibsuff= libmagic=32-bit;;
17128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17129 libsuff=32 shlibsuff=N32 libmagic=N32;;
17130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17132 *) libsuff= shlibsuff= libmagic=never-match;;
17133 esac
17134 ;;
17135 esac
17136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17137 shlibpath_overrides_runpath=no
17138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17140 hardcode_into_libs=yes
17141 ;;
17142
17143# No shared lib support for Linux oldld, aout, or coff.
17144linux*oldld* | linux*aout* | linux*coff*)
17145 dynamic_linker=no
17146 ;;
17147
17148# This must be Linux ELF.
17149linux*)
17150 version_type=linux
17151 need_lib_prefix=no
17152 need_version=no
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath=no
17158 # This implies no fast_install, which is unacceptable.
17159 # Some rework will be needed to allow for fast_install
17160 # before this can be enabled.
17161 hardcode_into_libs=yes
17162
Reid Spencer2706f8c2004-09-19 23:53:36 +000017163 # Append ld.so.conf contents to the search path
17164 if test -f /etc/ld.so.conf; then
17165 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17167 fi
17168
John Criswell47fdd832003-07-14 16:52:07 +000017169 # We used to test for /lib/ld.so.1 and disable shared libraries on
17170 # powerpc, because MkLinux only supported shared libraries with the
17171 # GNU dynamic linker. Since this was broken with cross compilers,
17172 # most powerpc-linux boxes support dynamic linking these days and
17173 # people can always --disable-shared, the test was removed, and we
17174 # assume the GNU/Linux dynamic linker is in use.
17175 dynamic_linker='GNU/Linux ld.so'
17176 ;;
17177
Reid Spencer2706f8c2004-09-19 23:53:36 +000017178knetbsd*-gnu)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=no
17186 hardcode_into_libs=yes
17187 dynamic_linker='GNU ld.so'
17188 ;;
17189
John Criswell47fdd832003-07-14 16:52:07 +000017190netbsd*)
17191 version_type=sunos
17192 need_lib_prefix=no
17193 need_version=no
17194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17198 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017200 soname_spec='${libname}${release}${shared_ext}$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17202 fi
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17206 ;;
17207
17208newsos6)
17209 version_type=linux
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17213 ;;
17214
Reid Spencer2706f8c2004-09-19 23:53:36 +000017215nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017216 version_type=linux
17217 need_lib_prefix=no
17218 need_version=no
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17223 ;;
17224
17225openbsd*)
17226 version_type=sunos
17227 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017228 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17233 case $host_os in
17234 openbsd2.[89] | openbsd2.[89].*)
17235 shlibpath_overrides_runpath=no
17236 ;;
17237 *)
17238 shlibpath_overrides_runpath=yes
17239 ;;
17240 esac
17241 else
17242 shlibpath_overrides_runpath=yes
17243 fi
17244 ;;
17245
17246os2*)
17247 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017248 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017249 need_lib_prefix=no
17250 library_names_spec='$libname${shared_ext} $libname.a'
17251 dynamic_linker='OS/2 ld.exe'
17252 shlibpath_var=LIBPATH
17253 ;;
17254
17255osf3* | osf4* | osf5*)
17256 version_type=osf
17257 need_lib_prefix=no
17258 need_version=no
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17264 ;;
17265
17266sco3.2v5*)
17267 version_type=osf
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 ;;
17272
17273solaris*)
17274 version_type=linux
17275 need_lib_prefix=no
17276 need_version=no
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17282 # ldd complains unless libraries are executable
17283 postinstall_cmds='chmod +x $lib'
17284 ;;
17285
17286sunos4*)
17287 version_type=sunos
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 if test "$with_gnu_ld" = yes; then
17293 need_lib_prefix=no
17294 fi
17295 need_version=yes
17296 ;;
17297
17298sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17299 version_type=linux
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 case $host_vendor in
17304 sni)
17305 shlibpath_overrides_runpath=no
17306 need_lib_prefix=no
17307 export_dynamic_flag_spec='${wl}-Blargedynsym'
17308 runpath_var=LD_RUN_PATH
17309 ;;
17310 siemens)
17311 need_lib_prefix=no
17312 ;;
17313 motorola)
17314 need_lib_prefix=no
17315 need_version=no
17316 shlibpath_overrides_runpath=no
17317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17318 ;;
17319 esac
17320 ;;
17321
17322sysv4*MP*)
17323 if test -d /usr/nec ;then
17324 version_type=linux
17325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17326 soname_spec='$libname${shared_ext}.$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 fi
17329 ;;
17330
17331uts4*)
17332 version_type=linux
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 ;;
17337
17338*)
17339 dynamic_linker=no
17340 ;;
17341esac
17342echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17343echo "${ECHO_T}$dynamic_linker" >&6
17344test "$dynamic_linker" = no && can_build_shared=no
17345
Reid Spencer2706f8c2004-09-19 23:53:36 +000017346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17348hardcode_action_CXX=
17349if test -n "$hardcode_libdir_flag_spec_CXX" || \
17350 test -n "$runpath_var_CXX" || \
17351 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17352
17353 # We can hardcode non-existant directories.
17354 if test "$hardcode_direct_CXX" != no &&
17355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17356 # have to relink, otherwise we might link with an installed library
17357 # when we should be linking with a yet-to-be-installed one
17358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17359 test "$hardcode_minus_L_CXX" != no; then
17360 # Linking always hardcodes the temporary library directory.
17361 hardcode_action_CXX=relink
17362 else
17363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17364 hardcode_action_CXX=immediate
17365 fi
17366else
17367 # We cannot hardcode anything, or else we can only hardcode existing
17368 # directories.
17369 hardcode_action_CXX=unsupported
17370fi
17371echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17372echo "${ECHO_T}$hardcode_action_CXX" >&6
17373
17374if test "$hardcode_action_CXX" = relink; then
17375 # Fast installation is not supported
17376 enable_fast_install=no
17377elif test "$shlibpath_overrides_runpath" = yes ||
17378 test "$enable_shared" = no; then
17379 # Fast installation is not necessary
17380 enable_fast_install=needless
17381fi
17382
17383striplib=
17384old_striplib=
17385echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17386echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17387if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17390 echo "$as_me:$LINENO: result: yes" >&5
17391echo "${ECHO_T}yes" >&6
17392else
17393# FIXME - insert some real tests, host_os isn't really good enough
17394 case $host_os in
17395 darwin*)
17396 if test -n "$STRIP" ; then
17397 striplib="$STRIP -x"
17398 echo "$as_me:$LINENO: result: yes" >&5
17399echo "${ECHO_T}yes" >&6
17400 else
17401 echo "$as_me:$LINENO: result: no" >&5
17402echo "${ECHO_T}no" >&6
17403fi
17404 ;;
17405 *)
17406 echo "$as_me:$LINENO: result: no" >&5
17407echo "${ECHO_T}no" >&6
17408 ;;
17409 esac
17410fi
17411
John Criswell47fdd832003-07-14 16:52:07 +000017412if test "x$enable_dlopen" != xyes; then
17413 enable_dlopen=unknown
17414 enable_dlopen_self=unknown
17415 enable_dlopen_self_static=unknown
17416else
17417 lt_cv_dlopen=no
17418 lt_cv_dlopen_libs=
17419
17420 case $host_os in
17421 beos*)
17422 lt_cv_dlopen="load_add_on"
17423 lt_cv_dlopen_libs=
17424 lt_cv_dlopen_self=yes
17425 ;;
17426
17427 mingw* | pw32*)
17428 lt_cv_dlopen="LoadLibrary"
17429 lt_cv_dlopen_libs=
17430 ;;
17431
17432 cygwin*)
17433 lt_cv_dlopen="dlopen"
17434 lt_cv_dlopen_libs=
17435 ;;
17436
17437 darwin*)
17438 # if libdl is installed we need to link against it
17439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17440echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17441if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17443else
17444 ac_check_lib_save_LIBS=$LIBS
17445LIBS="-ldl $LIBS"
17446cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017452
17453/* Override any gcc2 internal prototype to avoid an error. */
17454#ifdef __cplusplus
17455extern "C"
17456#endif
17457/* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17459char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017460int
17461main ()
17462{
17463dlopen ();
17464 ;
17465 return 0;
17466}
17467_ACEOF
17468rm -f conftest.$ac_objext conftest$ac_exeext
17469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017470 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017471 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017477 { ac_try='test -z "$ac_cxx_werror_flag"
17478 || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_lib_dl_dlopen=yes
17491else
17492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017493sed 's/^/| /' conftest.$ac_ext >&5
17494
John Criswell47fdd832003-07-14 16:52:07 +000017495ac_cv_lib_dl_dlopen=no
17496fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017497rm -f conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017499LIBS=$ac_check_lib_save_LIBS
17500fi
17501echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17502echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17503if test $ac_cv_lib_dl_dlopen = yes; then
17504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17505else
17506
17507 lt_cv_dlopen="dyld"
17508 lt_cv_dlopen_libs=
17509 lt_cv_dlopen_self=yes
17510
17511fi
17512
17513 ;;
17514
17515 *)
17516 echo "$as_me:$LINENO: checking for shl_load" >&5
17517echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17518if test "${ac_cv_func_shl_load+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520else
17521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017527/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529#define shl_load innocuous_shl_load
17530
John Criswell47fdd832003-07-14 16:52:07 +000017531/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017532 which can conflict with char shl_load (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017535
John Criswell0c38eaf2003-09-10 15:17:25 +000017536#ifdef __STDC__
17537# include <limits.h>
17538#else
17539# include <assert.h>
17540#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017541
17542#undef shl_load
17543
John Criswell47fdd832003-07-14 16:52:07 +000017544/* Override any gcc2 internal prototype to avoid an error. */
17545#ifdef __cplusplus
17546extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017547{
John Criswell47fdd832003-07-14 16:52:07 +000017548#endif
17549/* We use char because int might match the return type of a gcc2
17550 builtin and then its argument prototype would still apply. */
17551char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017552/* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555#if defined (__stub_shl_load) || defined (__stub___shl_load)
17556choke me
17557#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017558char (*f) () = shl_load;
17559#endif
17560#ifdef __cplusplus
17561}
John Criswell47fdd832003-07-14 16:52:07 +000017562#endif
17563
John Criswell0c38eaf2003-09-10 15:17:25 +000017564int
17565main ()
17566{
17567return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017568 ;
17569 return 0;
17570}
17571_ACEOF
17572rm -f conftest.$ac_objext conftest$ac_exeext
17573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017574 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017581 { ac_try='test -z "$ac_cxx_werror_flag"
17582 || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 ac_cv_func_shl_load=yes
17595else
17596 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017597sed 's/^/| /' conftest.$ac_ext >&5
17598
John Criswell47fdd832003-07-14 16:52:07 +000017599ac_cv_func_shl_load=no
17600fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601rm -f conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017603fi
17604echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17605echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17606if test $ac_cv_func_shl_load = yes; then
17607 lt_cv_dlopen="shl_load"
17608else
17609 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17610echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17611if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17613else
17614 ac_check_lib_save_LIBS=$LIBS
17615LIBS="-ldld $LIBS"
17616cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017622
17623/* Override any gcc2 internal prototype to avoid an error. */
17624#ifdef __cplusplus
17625extern "C"
17626#endif
17627/* We use char because int might match the return type of a gcc2
17628 builtin and then its argument prototype would still apply. */
17629char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017630int
17631main ()
17632{
17633shl_load ();
17634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest.$ac_objext conftest$ac_exeext
17639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017647 { ac_try='test -z "$ac_cxx_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_lib_dld_shl_load=yes
17661else
17662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017663sed 's/^/| /' conftest.$ac_ext >&5
17664
John Criswell47fdd832003-07-14 16:52:07 +000017665ac_cv_lib_dld_shl_load=no
17666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017667rm -f conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017669LIBS=$ac_check_lib_save_LIBS
17670fi
17671echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17672echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17673if test $ac_cv_lib_dld_shl_load = yes; then
17674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17675else
17676 echo "$as_me:$LINENO: checking for dlopen" >&5
17677echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17678if test "${ac_cv_func_dlopen+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017687/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689#define dlopen innocuous_dlopen
17690
John Criswell47fdd832003-07-14 16:52:07 +000017691/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017692 which can conflict with char dlopen (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017695
John Criswell0c38eaf2003-09-10 15:17:25 +000017696#ifdef __STDC__
17697# include <limits.h>
17698#else
17699# include <assert.h>
17700#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017701
17702#undef dlopen
17703
John Criswell47fdd832003-07-14 16:52:07 +000017704/* Override any gcc2 internal prototype to avoid an error. */
17705#ifdef __cplusplus
17706extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017707{
John Criswell47fdd832003-07-14 16:52:07 +000017708#endif
17709/* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17711char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017712/* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715#if defined (__stub_dlopen) || defined (__stub___dlopen)
17716choke me
17717#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017718char (*f) () = dlopen;
17719#endif
17720#ifdef __cplusplus
17721}
John Criswell47fdd832003-07-14 16:52:07 +000017722#endif
17723
John Criswell0c38eaf2003-09-10 15:17:25 +000017724int
17725main ()
17726{
17727return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017728 ;
17729 return 0;
17730}
17731_ACEOF
17732rm -f conftest.$ac_objext conftest$ac_exeext
17733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017734 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017735 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017741 { ac_try='test -z "$ac_cxx_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_func_dlopen=yes
17755else
17756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017757sed 's/^/| /' conftest.$ac_ext >&5
17758
John Criswell47fdd832003-07-14 16:52:07 +000017759ac_cv_func_dlopen=no
17760fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017761rm -f conftest.err conftest.$ac_objext \
17762 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017763fi
17764echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17765echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17766if test $ac_cv_func_dlopen = yes; then
17767 lt_cv_dlopen="dlopen"
17768else
17769 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17770echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17771if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773else
17774 ac_check_lib_save_LIBS=$LIBS
17775LIBS="-ldl $LIBS"
17776cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017777/* confdefs.h. */
17778_ACEOF
17779cat confdefs.h >>conftest.$ac_ext
17780cat >>conftest.$ac_ext <<_ACEOF
17781/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017782
17783/* Override any gcc2 internal prototype to avoid an error. */
17784#ifdef __cplusplus
17785extern "C"
17786#endif
17787/* We use char because int might match the return type of a gcc2
17788 builtin and then its argument prototype would still apply. */
17789char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017790int
17791main ()
17792{
17793dlopen ();
17794 ;
17795 return 0;
17796}
17797_ACEOF
17798rm -f conftest.$ac_objext conftest$ac_exeext
17799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017800 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017801 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017807 { ac_try='test -z "$ac_cxx_werror_flag"
17808 || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_cv_lib_dl_dlopen=yes
17821else
17822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017823sed 's/^/| /' conftest.$ac_ext >&5
17824
John Criswell47fdd832003-07-14 16:52:07 +000017825ac_cv_lib_dl_dlopen=no
17826fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017827rm -f conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017829LIBS=$ac_check_lib_save_LIBS
17830fi
17831echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17832echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17833if test $ac_cv_lib_dl_dlopen = yes; then
17834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17835else
17836 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17837echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17838if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840else
17841 ac_check_lib_save_LIBS=$LIBS
17842LIBS="-lsvld $LIBS"
17843cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017849
17850/* Override any gcc2 internal prototype to avoid an error. */
17851#ifdef __cplusplus
17852extern "C"
17853#endif
17854/* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017857int
17858main ()
17859{
17860dlopen ();
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865rm -f conftest.$ac_objext conftest$ac_exeext
17866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017867 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017874 { ac_try='test -z "$ac_cxx_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_svld_dlopen=yes
17888else
17889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017890sed 's/^/| /' conftest.$ac_ext >&5
17891
John Criswell47fdd832003-07-14 16:52:07 +000017892ac_cv_lib_svld_dlopen=no
17893fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017894rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017896LIBS=$ac_check_lib_save_LIBS
17897fi
17898echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17899echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17900if test $ac_cv_lib_svld_dlopen = yes; then
17901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17902else
17903 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17904echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17905if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907else
17908 ac_check_lib_save_LIBS=$LIBS
17909LIBS="-ldld $LIBS"
17910cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017916
17917/* Override any gcc2 internal prototype to avoid an error. */
17918#ifdef __cplusplus
17919extern "C"
17920#endif
17921/* We use char because int might match the return type of a gcc2
17922 builtin and then its argument prototype would still apply. */
17923char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017924int
17925main ()
17926{
17927dld_link ();
17928 ;
17929 return 0;
17930}
17931_ACEOF
17932rm -f conftest.$ac_objext conftest$ac_exeext
17933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017934 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017935 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017941 { ac_try='test -z "$ac_cxx_werror_flag"
17942 || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_lib_dld_dld_link=yes
17955else
17956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017957sed 's/^/| /' conftest.$ac_ext >&5
17958
John Criswell47fdd832003-07-14 16:52:07 +000017959ac_cv_lib_dld_dld_link=no
17960fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017961rm -f conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017963LIBS=$ac_check_lib_save_LIBS
17964fi
17965echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17966echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17967if test $ac_cv_lib_dld_dld_link = yes; then
17968 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17969fi
17970
17971
17972fi
17973
17974
17975fi
17976
17977
17978fi
17979
17980
17981fi
17982
17983
17984fi
17985
17986 ;;
17987 esac
17988
17989 if test "x$lt_cv_dlopen" != xno; then
17990 enable_dlopen=yes
17991 else
17992 enable_dlopen=no
17993 fi
17994
17995 case $lt_cv_dlopen in
17996 dlopen)
17997 save_CPPFLAGS="$CPPFLAGS"
17998 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17999
18000 save_LDFLAGS="$LDFLAGS"
18001 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18002
18003 save_LIBS="$LIBS"
18004 LIBS="$lt_cv_dlopen_libs $LIBS"
18005
18006 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18007echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18008if test "${lt_cv_dlopen_self+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010else
18011 if test "$cross_compiling" = yes; then :
18012 lt_cv_dlopen_self=cross
18013else
18014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18015 lt_status=$lt_dlunknown
18016 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +000018017#line 18017 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018018#include "confdefs.h"
18019
18020#if HAVE_DLFCN_H
18021#include <dlfcn.h>
18022#endif
18023
18024#include <stdio.h>
18025
18026#ifdef RTLD_GLOBAL
18027# define LT_DLGLOBAL RTLD_GLOBAL
18028#else
18029# ifdef DL_GLOBAL
18030# define LT_DLGLOBAL DL_GLOBAL
18031# else
18032# define LT_DLGLOBAL 0
18033# endif
18034#endif
18035
18036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18037 find out it does not work in some platform. */
18038#ifndef LT_DLLAZY_OR_NOW
18039# ifdef RTLD_LAZY
18040# define LT_DLLAZY_OR_NOW RTLD_LAZY
18041# else
18042# ifdef DL_LAZY
18043# define LT_DLLAZY_OR_NOW DL_LAZY
18044# else
18045# ifdef RTLD_NOW
18046# define LT_DLLAZY_OR_NOW RTLD_NOW
18047# else
18048# ifdef DL_NOW
18049# define LT_DLLAZY_OR_NOW DL_NOW
18050# else
18051# define LT_DLLAZY_OR_NOW 0
18052# endif
18053# endif
18054# endif
18055# endif
18056#endif
18057
18058#ifdef __cplusplus
18059extern "C" void exit (int);
18060#endif
18061
18062void fnord() { int i=42;}
18063int main ()
18064{
18065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18066 int status = $lt_dlunknown;
18067
18068 if (self)
18069 {
18070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18071 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18072 /* dlclose (self); */
18073 }
18074
18075 exit (status);
18076}
18077EOF
18078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079 (eval $ac_link) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18083 (./conftest; exit; ) 2>/dev/null
18084 lt_status=$?
18085 case x$lt_status in
18086 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18087 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18088 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18089 esac
18090 else :
18091 # compilation failed
18092 lt_cv_dlopen_self=no
18093 fi
18094fi
18095rm -fr conftest*
18096
18097
18098fi
18099echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18100echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18101
18102 if test "x$lt_cv_dlopen_self" = xyes; then
18103 LDFLAGS="$LDFLAGS $link_static_flag"
18104 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18105echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18106if test "${lt_cv_dlopen_self_static+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109 if test "$cross_compiling" = yes; then :
18110 lt_cv_dlopen_self_static=cross
18111else
18112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18113 lt_status=$lt_dlunknown
18114 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +000018115#line 18115 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018116#include "confdefs.h"
18117
18118#if HAVE_DLFCN_H
18119#include <dlfcn.h>
18120#endif
18121
18122#include <stdio.h>
18123
18124#ifdef RTLD_GLOBAL
18125# define LT_DLGLOBAL RTLD_GLOBAL
18126#else
18127# ifdef DL_GLOBAL
18128# define LT_DLGLOBAL DL_GLOBAL
18129# else
18130# define LT_DLGLOBAL 0
18131# endif
18132#endif
18133
18134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18135 find out it does not work in some platform. */
18136#ifndef LT_DLLAZY_OR_NOW
18137# ifdef RTLD_LAZY
18138# define LT_DLLAZY_OR_NOW RTLD_LAZY
18139# else
18140# ifdef DL_LAZY
18141# define LT_DLLAZY_OR_NOW DL_LAZY
18142# else
18143# ifdef RTLD_NOW
18144# define LT_DLLAZY_OR_NOW RTLD_NOW
18145# else
18146# ifdef DL_NOW
18147# define LT_DLLAZY_OR_NOW DL_NOW
18148# else
18149# define LT_DLLAZY_OR_NOW 0
18150# endif
18151# endif
18152# endif
18153# endif
18154#endif
18155
18156#ifdef __cplusplus
18157extern "C" void exit (int);
18158#endif
18159
18160void fnord() { int i=42;}
18161int main ()
18162{
18163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18164 int status = $lt_dlunknown;
18165
18166 if (self)
18167 {
18168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18170 /* dlclose (self); */
18171 }
18172
18173 exit (status);
18174}
18175EOF
18176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18177 (eval $ac_link) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18181 (./conftest; exit; ) 2>/dev/null
18182 lt_status=$?
18183 case x$lt_status in
18184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18186 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18187 esac
18188 else :
18189 # compilation failed
18190 lt_cv_dlopen_self_static=no
18191 fi
18192fi
18193rm -fr conftest*
18194
18195
18196fi
18197echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18198echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18199 fi
18200
18201 CPPFLAGS="$save_CPPFLAGS"
18202 LDFLAGS="$save_LDFLAGS"
18203 LIBS="$save_LIBS"
18204 ;;
18205 esac
18206
18207 case $lt_cv_dlopen_self in
18208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18209 *) enable_dlopen_self=unknown ;;
18210 esac
18211
18212 case $lt_cv_dlopen_self_static in
18213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18214 *) enable_dlopen_self_static=unknown ;;
18215 esac
18216fi
18217
18218
18219# The else clause should only fire when bootstrapping the
18220# libtool distribution, otherwise you forgot to ship ltmain.sh
18221# with your package, and you will get complaints that there are
18222# no rules to generate ltmain.sh.
18223if test -f "$ltmain"; then
18224 # See if we are running on zsh, and set the options which allow our commands through
18225 # without removal of \ escapes.
18226 if test -n "${ZSH_VERSION+set}" ; then
18227 setopt NO_GLOB_SUBST
18228 fi
18229 # Now quote all the things that may contain metacharacters while being
18230 # careful not to overquote the AC_SUBSTed values. We take copies of the
18231 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018232 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18233 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018234 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18235 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18236 deplibs_check_method reload_flag reload_cmds need_locks \
18237 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18238 lt_cv_sys_global_symbol_to_c_name_address \
18239 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18240 old_postinstall_cmds old_postuninstall_cmds \
18241 compiler_CXX \
18242 CC_CXX \
18243 LD_CXX \
18244 lt_prog_compiler_wl_CXX \
18245 lt_prog_compiler_pic_CXX \
18246 lt_prog_compiler_static_CXX \
18247 lt_prog_compiler_no_builtin_flag_CXX \
18248 export_dynamic_flag_spec_CXX \
18249 thread_safe_flag_spec_CXX \
18250 whole_archive_flag_spec_CXX \
18251 enable_shared_with_static_runtimes_CXX \
18252 old_archive_cmds_CXX \
18253 old_archive_from_new_cmds_CXX \
18254 predep_objects_CXX \
18255 postdep_objects_CXX \
18256 predeps_CXX \
18257 postdeps_CXX \
18258 compiler_lib_search_path_CXX \
18259 archive_cmds_CXX \
18260 archive_expsym_cmds_CXX \
18261 postinstall_cmds_CXX \
18262 postuninstall_cmds_CXX \
18263 old_archive_from_expsyms_cmds_CXX \
18264 allow_undefined_flag_CXX \
18265 no_undefined_flag_CXX \
18266 export_symbols_cmds_CXX \
18267 hardcode_libdir_flag_spec_CXX \
18268 hardcode_libdir_flag_spec_ld_CXX \
18269 hardcode_libdir_separator_CXX \
18270 hardcode_automatic_CXX \
18271 module_cmds_CXX \
18272 module_expsym_cmds_CXX \
18273 lt_cv_prog_compiler_c_o_CXX \
18274 exclude_expsyms_CXX \
18275 include_expsyms_CXX; do
18276
18277 case $var in
18278 old_archive_cmds_CXX | \
18279 old_archive_from_new_cmds_CXX | \
18280 archive_cmds_CXX | \
18281 archive_expsym_cmds_CXX | \
18282 module_cmds_CXX | \
18283 module_expsym_cmds_CXX | \
18284 old_archive_from_expsyms_cmds_CXX | \
18285 export_symbols_cmds_CXX | \
18286 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18287 postinstall_cmds | postuninstall_cmds | \
18288 old_postinstall_cmds | old_postuninstall_cmds | \
18289 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18290 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018291 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 +000018292 ;;
18293 *)
18294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18295 ;;
18296 esac
18297 done
18298
18299 case $lt_echo in
18300 *'\$0 --fallback-echo"')
18301 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18302 ;;
18303 esac
18304
18305cfgfile="$ofile"
18306
18307 cat <<__EOF__ >> "$cfgfile"
18308# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18309
18310# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18311
18312# Shell to use when invoking shell scripts.
18313SHELL=$lt_SHELL
18314
18315# Whether or not to build shared libraries.
18316build_libtool_libs=$enable_shared
18317
18318# Whether or not to build static libraries.
18319build_old_libs=$enable_static
18320
18321# Whether or not to add -lc for building shared libraries.
18322build_libtool_need_lc=$archive_cmds_need_lc_CXX
18323
18324# Whether or not to disallow shared libs when runtime libs are static
18325allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18326
18327# Whether or not to optimize for fast installation.
18328fast_install=$enable_fast_install
18329
18330# The host system.
18331host_alias=$host_alias
18332host=$host
18333
18334# An echo program that does not interpret backslashes.
18335echo=$lt_echo
18336
18337# The archiver.
18338AR=$lt_AR
18339AR_FLAGS=$lt_AR_FLAGS
18340
18341# A C compiler.
18342LTCC=$lt_LTCC
18343
18344# A language-specific compiler.
18345CC=$lt_compiler_CXX
18346
18347# Is the compiler the GNU C compiler?
18348with_gcc=$GCC_CXX
18349
18350# An ERE matcher.
18351EGREP=$lt_EGREP
18352
18353# The linker used to build libraries.
18354LD=$lt_LD_CXX
18355
18356# Whether we need hard or soft links.
18357LN_S=$lt_LN_S
18358
18359# A BSD-compatible nm program.
18360NM=$lt_NM
18361
18362# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018363STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018364
18365# Used to examine libraries when file_magic_cmd begins "file"
18366MAGIC_CMD=$MAGIC_CMD
18367
18368# Used on cygwin: DLL creation program.
18369DLLTOOL="$DLLTOOL"
18370
18371# Used on cygwin: object dumper.
18372OBJDUMP="$OBJDUMP"
18373
18374# Used on cygwin: assembler.
18375AS="$AS"
18376
18377# The name of the directory that contains temporary libtool files.
18378objdir=$objdir
18379
18380# How to create reloadable object files.
18381reload_flag=$lt_reload_flag
18382reload_cmds=$lt_reload_cmds
18383
18384# How to pass a linker flag through the compiler.
18385wl=$lt_lt_prog_compiler_wl_CXX
18386
18387# Object file suffix (normally "o").
18388objext="$ac_objext"
18389
18390# Old archive suffix (normally "a").
18391libext="$libext"
18392
18393# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018394shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018395
18396# Executable file suffix (normally "").
18397exeext="$exeext"
18398
18399# Additional compiler flags for building library objects.
18400pic_flag=$lt_lt_prog_compiler_pic_CXX
18401pic_mode=$pic_mode
18402
18403# What is the maximum length of a command?
18404max_cmd_len=$lt_cv_sys_max_cmd_len
18405
18406# Does compiler simultaneously support -c and -o options?
18407compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18408
18409# Must we lock files when doing compilation ?
18410need_locks=$lt_need_locks
18411
18412# Do we need the lib prefix for modules?
18413need_lib_prefix=$need_lib_prefix
18414
18415# Do we need a version for libraries?
18416need_version=$need_version
18417
18418# Whether dlopen is supported.
18419dlopen_support=$enable_dlopen
18420
18421# Whether dlopen of programs is supported.
18422dlopen_self=$enable_dlopen_self
18423
18424# Whether dlopen of statically linked programs is supported.
18425dlopen_self_static=$enable_dlopen_self_static
18426
18427# Compiler flag to prevent dynamic linking.
18428link_static_flag=$lt_lt_prog_compiler_static_CXX
18429
18430# Compiler flag to turn off builtin functions.
18431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18432
18433# Compiler flag to allow reflexive dlopens.
18434export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18435
18436# Compiler flag to generate shared objects directly from archives.
18437whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18438
18439# Compiler flag to generate thread-safe objects.
18440thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18441
18442# Library versioning type.
18443version_type=$version_type
18444
18445# Format of library name prefix.
18446libname_spec=$lt_libname_spec
18447
18448# List of archive names. First name is the real one, the rest are links.
18449# The last name is the one that the linker finds with -lNAME.
18450library_names_spec=$lt_library_names_spec
18451
18452# The coded name of the library, if different from the real name.
18453soname_spec=$lt_soname_spec
18454
18455# Commands used to build and install an old-style archive.
18456RANLIB=$lt_RANLIB
18457old_archive_cmds=$lt_old_archive_cmds_CXX
18458old_postinstall_cmds=$lt_old_postinstall_cmds
18459old_postuninstall_cmds=$lt_old_postuninstall_cmds
18460
18461# Create an old-style archive from a shared archive.
18462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18463
18464# Create a temporary old-style archive to link instead of a shared archive.
18465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18466
18467# Commands used to build and install a shared archive.
18468archive_cmds=$lt_archive_cmds_CXX
18469archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18470postinstall_cmds=$lt_postinstall_cmds
18471postuninstall_cmds=$lt_postuninstall_cmds
18472
18473# Commands used to build a loadable module (assumed same as above if empty)
18474module_cmds=$lt_module_cmds_CXX
18475module_expsym_cmds=$lt_module_expsym_cmds_CXX
18476
18477# Commands to strip libraries.
18478old_striplib=$lt_old_striplib
18479striplib=$lt_striplib
18480
18481# Dependencies to place before the objects being linked to create a
18482# shared library.
18483predep_objects=$lt_predep_objects_CXX
18484
18485# Dependencies to place after the objects being linked to create a
18486# shared library.
18487postdep_objects=$lt_postdep_objects_CXX
18488
18489# Dependencies to place before the objects being linked to create a
18490# shared library.
18491predeps=$lt_predeps_CXX
18492
18493# Dependencies to place after the objects being linked to create a
18494# shared library.
18495postdeps=$lt_postdeps_CXX
18496
18497# The library search path used internally by the compiler when linking
18498# a shared library.
18499compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18500
18501# Method to check whether dependent libraries are shared objects.
18502deplibs_check_method=$lt_deplibs_check_method
18503
18504# Command to use when deplibs_check_method == file_magic.
18505file_magic_cmd=$lt_file_magic_cmd
18506
18507# Flag that allows shared libraries with undefined symbols to be built.
18508allow_undefined_flag=$lt_allow_undefined_flag_CXX
18509
18510# Flag that forces no undefined symbols.
18511no_undefined_flag=$lt_no_undefined_flag_CXX
18512
18513# Commands used to finish a libtool library installation in a directory.
18514finish_cmds=$lt_finish_cmds
18515
18516# Same as above, but a single script fragment to be evaled but not shown.
18517finish_eval=$lt_finish_eval
18518
18519# Take the output of nm and produce a listing of raw symbols and C names.
18520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18521
18522# Transform the output of nm in a proper C declaration
18523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18524
18525# Transform the output of nm in a C name address pair
18526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18527
18528# This is the shared library runtime path variable.
18529runpath_var=$runpath_var
18530
18531# This is the shared library path variable.
18532shlibpath_var=$shlibpath_var
18533
18534# Is shlibpath searched before the hard-coded library search path?
18535shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18536
18537# How to hardcode a shared library path into an executable.
18538hardcode_action=$hardcode_action_CXX
18539
18540# Whether we should hardcode library paths into libraries.
18541hardcode_into_libs=$hardcode_into_libs
18542
18543# Flag to hardcode \$libdir into a binary during linking.
18544# This must work even if \$libdir does not exist.
18545hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18546
18547# If ld is used when linking, flag to hardcode \$libdir into
18548# a binary during linking. This must work even if \$libdir does
18549# not exist.
18550hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18551
18552# Whether we need a single -rpath flag with a separated argument.
18553hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18554
18555# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18556# resulting binary.
18557hardcode_direct=$hardcode_direct_CXX
18558
18559# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18560# resulting binary.
18561hardcode_minus_L=$hardcode_minus_L_CXX
18562
18563# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18564# the resulting binary.
18565hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18566
18567# Set to yes if building a shared library automatically hardcodes DIR into the library
18568# and all subsequent libraries and executables linked against it.
18569hardcode_automatic=$hardcode_automatic_CXX
18570
18571# Variables whose values should be saved in libtool wrapper scripts and
18572# restored at relink time.
18573variables_saved_for_relink="$variables_saved_for_relink"
18574
18575# Whether libtool must link a program against all its dependency libraries.
18576link_all_deplibs=$link_all_deplibs_CXX
18577
18578# Compile-time system search path for libraries
18579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18580
18581# Run-time system search path for libraries
18582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18583
18584# Fix the shell variable \$srcfile for the compiler.
18585fix_srcfile_path="$fix_srcfile_path_CXX"
18586
18587# Set to yes if exported symbols are required.
18588always_export_symbols=$always_export_symbols_CXX
18589
18590# The commands to list exported symbols.
18591export_symbols_cmds=$lt_export_symbols_cmds_CXX
18592
18593# The commands to extract the exported symbol list from a shared archive.
18594extract_expsyms_cmds=$lt_extract_expsyms_cmds
18595
18596# Symbols that should not be listed in the preloaded symbols.
18597exclude_expsyms=$lt_exclude_expsyms_CXX
18598
18599# Symbols that must always be exported.
18600include_expsyms=$lt_include_expsyms_CXX
18601
18602# ### END LIBTOOL TAG CONFIG: $tagname
18603
18604__EOF__
18605
18606
18607else
18608 # If there is no Makefile yet, we rely on a make rule to execute
18609 # `config.status --recheck' to rerun these tests and create the
18610 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18612 if test -f "$ltmain_in"; then
18613 test -f Makefile && make "$ltmain"
18614 fi
John Criswell47fdd832003-07-14 16:52:07 +000018615fi
18616
18617
18618ac_ext=c
18619ac_cpp='$CPP $CPPFLAGS'
18620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623
18624CC=$lt_save_CC
18625LDCXX=$LD
18626LD=$lt_save_LD
18627GCC=$lt_save_GCC
18628with_gnu_ldcxx=$with_gnu_ld
18629with_gnu_ld=$lt_save_with_gnu_ld
18630lt_cv_path_LDCXX=$lt_cv_path_LD
18631lt_cv_path_LD=$lt_save_path_LD
18632lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18633lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18634
18635 else
18636 tagname=""
18637 fi
18638 ;;
18639
18640 F77)
18641 if test -n "$F77" && test "X$F77" != "Xno"; then
18642
18643ac_ext=f
18644ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18645ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18646ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18647
18648
18649archive_cmds_need_lc_F77=no
18650allow_undefined_flag_F77=
18651always_export_symbols_F77=no
18652archive_expsym_cmds_F77=
18653export_dynamic_flag_spec_F77=
18654hardcode_direct_F77=no
18655hardcode_libdir_flag_spec_F77=
18656hardcode_libdir_flag_spec_ld_F77=
18657hardcode_libdir_separator_F77=
18658hardcode_minus_L_F77=no
18659hardcode_automatic_F77=no
18660module_cmds_F77=
18661module_expsym_cmds_F77=
18662link_all_deplibs_F77=unknown
18663old_archive_cmds_F77=$old_archive_cmds
18664no_undefined_flag_F77=
18665whole_archive_flag_spec_F77=
18666enable_shared_with_static_runtimes_F77=no
18667
18668# Source file extension for f77 test sources.
18669ac_ext=f
18670
18671# Object file extension for compiled f77 test sources.
18672objext=o
18673objext_F77=$objext
18674
18675# Code to be used in simple compile tests
18676lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18677
18678# Code to be used in simple link tests
18679lt_simple_link_test_code=" program t\n end\n"
18680
18681# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18682
18683# If no C compiler was specified, use CC.
18684LTCC=${LTCC-"$CC"}
18685
18686# Allow CC to be a program name with arguments.
18687compiler=$CC
18688
18689
18690# Allow CC to be a program name with arguments.
18691lt_save_CC="$CC"
18692CC=${F77-"f77"}
18693compiler=$CC
18694compiler_F77=$CC
18695cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18696
18697echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18698echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18699echo "$as_me:$LINENO: result: $can_build_shared" >&5
18700echo "${ECHO_T}$can_build_shared" >&6
18701
18702echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18703echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18704test "$can_build_shared" = "no" && enable_shared=no
18705
18706# On AIX, shared libraries and static libraries use the same namespace, and
18707# are all built from PIC.
18708case "$host_os" in
18709aix3*)
18710 test "$enable_shared" = yes && enable_static=no
18711 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018713 postinstall_cmds='$RANLIB $lib'
18714 fi
18715 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018716aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018717 test "$enable_shared" = yes && enable_static=no
18718 ;;
18719esac
18720echo "$as_me:$LINENO: result: $enable_shared" >&5
18721echo "${ECHO_T}$enable_shared" >&6
18722
18723echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18724echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18725# Make sure either enable_shared or enable_static is yes.
18726test "$enable_shared" = yes || enable_static=yes
18727echo "$as_me:$LINENO: result: $enable_static" >&5
18728echo "${ECHO_T}$enable_static" >&6
18729
18730test "$ld_shlibs_F77" = no && can_build_shared=no
18731
18732GCC_F77="$G77"
18733LD_F77="$LD"
18734
18735lt_prog_compiler_wl_F77=
18736lt_prog_compiler_pic_F77=
18737lt_prog_compiler_static_F77=
18738
18739echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18740echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18741
18742 if test "$GCC" = yes; then
18743 lt_prog_compiler_wl_F77='-Wl,'
18744 lt_prog_compiler_static_F77='-static'
18745
18746 case $host_os in
18747 aix*)
18748 # All AIX code is PIC.
18749 if test "$host_cpu" = ia64; then
18750 # AIX 5 now supports IA64 processor
18751 lt_prog_compiler_static_F77='-Bstatic'
18752 fi
18753 ;;
18754
18755 amigaos*)
18756 # FIXME: we need at least 68020 code to build shared libraries, but
18757 # adding the `-m68020' flag to GCC prevents building anything better,
18758 # like `-m68040'.
18759 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18760 ;;
18761
18762 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18763 # PIC is the default for these OSes.
18764 ;;
18765
18766 mingw* | pw32* | os2*)
18767 # This hack is so that the source file can tell whether it is being
18768 # built for inclusion in a dll (and should export symbols for example).
18769 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18770 ;;
18771
18772 darwin* | rhapsody*)
18773 # PIC is the default on this platform
18774 # Common symbols not allowed in MH_DYLIB files
18775 lt_prog_compiler_pic_F77='-fno-common'
18776 ;;
18777
18778 msdosdjgpp*)
18779 # Just because we use GCC doesn't mean we suddenly get shared libraries
18780 # on systems that don't support them.
18781 lt_prog_compiler_can_build_shared_F77=no
18782 enable_shared=no
18783 ;;
18784
18785 sysv4*MP*)
18786 if test -d /usr/nec; then
18787 lt_prog_compiler_pic_F77=-Kconform_pic
18788 fi
18789 ;;
18790
18791 hpux*)
18792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18793 # not for PA HP-UX.
18794 case "$host_cpu" in
18795 hppa*64*|ia64*)
18796 # +Z the default
18797 ;;
18798 *)
18799 lt_prog_compiler_pic_F77='-fPIC'
18800 ;;
18801 esac
18802 ;;
18803
18804 *)
18805 lt_prog_compiler_pic_F77='-fPIC'
18806 ;;
18807 esac
18808 else
18809 # PORTME Check for flag to pass linker flags through the system compiler.
18810 case $host_os in
18811 aix*)
18812 lt_prog_compiler_wl_F77='-Wl,'
18813 if test "$host_cpu" = ia64; then
18814 # AIX 5 now supports IA64 processor
18815 lt_prog_compiler_static_F77='-Bstatic'
18816 else
18817 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18818 fi
18819 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018820 darwin*)
18821 # PIC is the default on this platform
18822 # Common symbols not allowed in MH_DYLIB files
18823 case "$cc_basename" in
18824 xlc*)
18825 lt_prog_compiler_pic_F77='-qnocommon'
18826 lt_prog_compiler_wl_F77='-Wl,'
18827 ;;
18828 esac
18829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018830
18831 mingw* | pw32* | os2*)
18832 # This hack is so that the source file can tell whether it is being
18833 # built for inclusion in a dll (and should export symbols for example).
18834 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18835 ;;
18836
18837 hpux9* | hpux10* | hpux11*)
18838 lt_prog_compiler_wl_F77='-Wl,'
18839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18840 # not for PA HP-UX.
18841 case "$host_cpu" in
18842 hppa*64*|ia64*)
18843 # +Z the default
18844 ;;
18845 *)
18846 lt_prog_compiler_pic_F77='+Z'
18847 ;;
18848 esac
18849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18850 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18851 ;;
18852
18853 irix5* | irix6* | nonstopux*)
18854 lt_prog_compiler_wl_F77='-Wl,'
18855 # PIC (with -KPIC) is the default.
18856 lt_prog_compiler_static_F77='-non_shared'
18857 ;;
18858
18859 newsos6)
18860 lt_prog_compiler_pic_F77='-KPIC'
18861 lt_prog_compiler_static_F77='-Bstatic'
18862 ;;
18863
18864 linux*)
18865 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018866 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018867 lt_prog_compiler_wl_F77='-Wl,'
18868 lt_prog_compiler_pic_F77='-KPIC'
18869 lt_prog_compiler_static_F77='-static'
18870 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018871 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018872 lt_prog_compiler_wl_F77='-Wl,'
18873 # All Alpha code is PIC.
18874 lt_prog_compiler_static_F77='-non_shared'
18875 ;;
18876 esac
18877 ;;
18878
18879 osf3* | osf4* | osf5*)
18880 lt_prog_compiler_wl_F77='-Wl,'
18881 # All OSF/1 code is PIC.
18882 lt_prog_compiler_static_F77='-non_shared'
18883 ;;
18884
18885 sco3.2v5*)
18886 lt_prog_compiler_pic_F77='-Kpic'
18887 lt_prog_compiler_static_F77='-dn'
18888 ;;
18889
18890 solaris*)
18891 lt_prog_compiler_wl_F77='-Wl,'
18892 lt_prog_compiler_pic_F77='-KPIC'
18893 lt_prog_compiler_static_F77='-Bstatic'
18894 ;;
18895
18896 sunos4*)
18897 lt_prog_compiler_wl_F77='-Qoption ld '
18898 lt_prog_compiler_pic_F77='-PIC'
18899 lt_prog_compiler_static_F77='-Bstatic'
18900 ;;
18901
18902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18903 lt_prog_compiler_wl_F77='-Wl,'
18904 lt_prog_compiler_pic_F77='-KPIC'
18905 lt_prog_compiler_static_F77='-Bstatic'
18906 ;;
18907
18908 sysv4*MP*)
18909 if test -d /usr/nec ;then
18910 lt_prog_compiler_pic_F77='-Kconform_pic'
18911 lt_prog_compiler_static_F77='-Bstatic'
18912 fi
18913 ;;
18914
18915 uts4*)
18916 lt_prog_compiler_pic_F77='-pic'
18917 lt_prog_compiler_static_F77='-Bstatic'
18918 ;;
18919
18920 *)
18921 lt_prog_compiler_can_build_shared_F77=no
18922 ;;
18923 esac
18924 fi
18925
18926echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18927echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18928
18929#
18930# Check to make sure the PIC flag actually works.
18931#
18932if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018933
18934echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018935echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18936if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18938else
18939 lt_prog_compiler_pic_works_F77=no
18940 ac_outfile=conftest.$ac_objext
18941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18942 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18943 # Insert the option either (1) after the last *FLAGS variable, or
18944 # (2) before a word containing "conftest.", or (3) at the end.
18945 # Note that $ac_compile itself does not contain backslashes and begins
18946 # with a dollar sign (not a hyphen), so the echo should work correctly.
18947 # The option is referenced via a variable to avoid confusing sed.
18948 lt_compile=`echo "$ac_compile" | $SED \
18949 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18951 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000018952 (eval echo "\"\$as_me:18952: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018953 (eval "$lt_compile" 2>conftest.err)
18954 ac_status=$?
18955 cat conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000018956 echo "$as_me:18956: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018957 if (exit $ac_status) && test -s "$ac_outfile"; then
18958 # The compiler can only warn and ignore the option if not recognized
18959 # So say no if there are warnings
18960 if test ! -s conftest.err; then
18961 lt_prog_compiler_pic_works_F77=yes
18962 fi
18963 fi
18964 $rm conftest*
18965
18966fi
18967echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18968echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18969
18970if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18971 case $lt_prog_compiler_pic_F77 in
18972 "" | " "*) ;;
18973 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18974 esac
18975else
18976 lt_prog_compiler_pic_F77=
18977 lt_prog_compiler_can_build_shared_F77=no
18978fi
18979
18980fi
18981case "$host_os" in
18982 # For platforms which do not support PIC, -DPIC is meaningless:
18983 *djgpp*)
18984 lt_prog_compiler_pic_F77=
18985 ;;
18986 *)
18987 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18988 ;;
18989esac
18990
18991echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18992echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18993if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995else
18996 lt_cv_prog_compiler_c_o_F77=no
18997 $rm -r conftest 2>/dev/null
18998 mkdir conftest
18999 cd conftest
19000 mkdir out
19001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19002
John Criswell47fdd832003-07-14 16:52:07 +000019003 lt_compiler_flag="-o out/conftest2.$ac_objext"
19004 # Insert the option either (1) after the last *FLAGS variable, or
19005 # (2) before a word containing "conftest.", or (3) at the end.
19006 # Note that $ac_compile itself does not contain backslashes and begins
19007 # with a dollar sign (not a hyphen), so the echo should work correctly.
19008 lt_compile=`echo "$ac_compile" | $SED \
19009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19011 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000019012 (eval echo "\"\$as_me:19012: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019013 (eval "$lt_compile" 2>out/conftest.err)
19014 ac_status=$?
19015 cat out/conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000019016 echo "$as_me:19016: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19018 then
19019 # The compiler can only warn and ignore the option if not recognized
19020 # So say no if there are warnings
19021 if test ! -s out/conftest.err; then
19022 lt_cv_prog_compiler_c_o_F77=yes
19023 fi
19024 fi
19025 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019026 $rm conftest*
19027 # SGI C++ compiler will create directory out/ii_files/ for
19028 # template instantiation
19029 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19030 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019031 cd ..
19032 rmdir conftest
19033 $rm conftest*
19034
19035fi
19036echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19037echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19038
19039
19040hard_links="nottested"
19041if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19042 # do not overwrite the value of need_locks provided by the user
19043 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19044echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19045 hard_links=yes
19046 $rm conftest*
19047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19048 touch conftest.a
19049 ln conftest.a conftest.b 2>&5 || hard_links=no
19050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19051 echo "$as_me:$LINENO: result: $hard_links" >&5
19052echo "${ECHO_T}$hard_links" >&6
19053 if test "$hard_links" = no; then
19054 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19055echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19056 need_locks=warn
19057 fi
19058else
19059 need_locks=no
19060fi
19061
19062echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19063echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19064
19065 runpath_var=
19066 allow_undefined_flag_F77=
19067 enable_shared_with_static_runtimes_F77=no
19068 archive_cmds_F77=
19069 archive_expsym_cmds_F77=
19070 old_archive_From_new_cmds_F77=
19071 old_archive_from_expsyms_cmds_F77=
19072 export_dynamic_flag_spec_F77=
19073 whole_archive_flag_spec_F77=
19074 thread_safe_flag_spec_F77=
19075 hardcode_libdir_flag_spec_F77=
19076 hardcode_libdir_flag_spec_ld_F77=
19077 hardcode_libdir_separator_F77=
19078 hardcode_direct_F77=no
19079 hardcode_minus_L_F77=no
19080 hardcode_shlibpath_var_F77=unsupported
19081 link_all_deplibs_F77=unknown
19082 hardcode_automatic_F77=no
19083 module_cmds_F77=
19084 module_expsym_cmds_F77=
19085 always_export_symbols_F77=no
19086 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19087 # include_expsyms should be a list of space-separated symbols to be *always*
19088 # included in the symbol list
19089 include_expsyms_F77=
19090 # exclude_expsyms can be an extended regexp of symbols to exclude
19091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19093 # as well as any symbol that contains `d'.
19094 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19096 # platforms (ab)use it in PIC code, but their linkers get confused if
19097 # the symbol is explicitly referenced. Since portable code cannot
19098 # rely on this symbol name, it's probably fine to never include it in
19099 # preloaded symbol tables.
19100 extract_expsyms_cmds=
19101
19102 case $host_os in
19103 cygwin* | mingw* | pw32*)
19104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19105 # When not using gcc, we currently assume that we are using
19106 # Microsoft Visual C++.
19107 if test "$GCC" != yes; then
19108 with_gnu_ld=no
19109 fi
19110 ;;
19111 openbsd*)
19112 with_gnu_ld=no
19113 ;;
19114 esac
19115
19116 ld_shlibs_F77=yes
19117 if test "$with_gnu_ld" = yes; then
19118 # If archive_cmds runs LD, not CC, wlarc should be empty
19119 wlarc='${wl}'
19120
19121 # See if GNU ld supports shared libraries.
19122 case $host_os in
19123 aix3* | aix4* | aix5*)
19124 # On AIX/PPC, the GNU linker is very broken
19125 if test "$host_cpu" != ia64; then
19126 ld_shlibs_F77=no
19127 cat <<EOF 1>&2
19128
19129*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19130*** to be unable to reliably create shared libraries on AIX.
19131*** Therefore, libtool is disabling shared libraries support. If you
19132*** really care for shared libraries, you may want to modify your PATH
19133*** so that a non-GNU linker is found, and then restart.
19134
19135EOF
19136 fi
19137 ;;
19138
19139 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019140 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 +000019141 hardcode_libdir_flag_spec_F77='-L$libdir'
19142 hardcode_minus_L_F77=yes
19143
19144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19145 # that the semantics of dynamic libraries on AmigaOS, at least up
19146 # to version 4, is to share data among multiple programs linked
19147 # with the same dynamic library. Since this doesn't match the
19148 # behavior of shared libraries on other platforms, we can't use
19149 # them.
19150 ld_shlibs_F77=no
19151 ;;
19152
19153 beos*)
19154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19155 allow_undefined_flag_F77=unsupported
19156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19157 # support --undefined. This deserves some investigation. FIXME
19158 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 else
19160 ld_shlibs_F77=no
19161 fi
19162 ;;
19163
19164 cygwin* | mingw* | pw32*)
19165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19166 # as there is no search path for DLLs.
19167 hardcode_libdir_flag_spec_F77='-L$libdir'
19168 allow_undefined_flag_F77=unsupported
19169 always_export_symbols_F77=no
19170 enable_shared_with_static_runtimes_F77=yes
19171 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19172
19173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19175 # If the export-symbols file already is a .def file (1st line
19176 # is EXPORTS), use it as is; otherwise, prepend...
19177 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19178 cp $export_symbols $output_objdir/$soname.def;
19179 else
19180 echo EXPORTS > $output_objdir/$soname.def;
19181 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019182 fi~
19183 $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 +000019184 else
19185 ld_shlibs=no
19186 fi
19187 ;;
19188
19189 netbsd*)
19190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19192 wlarc=
19193 else
19194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19196 fi
19197 ;;
19198
19199 solaris* | sysv5*)
19200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19201 ld_shlibs_F77=no
19202 cat <<EOF 1>&2
19203
19204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19205*** create shared libraries on Solaris systems. Therefore, libtool
19206*** is disabling shared libraries support. We urge you to upgrade GNU
19207*** binutils to release 2.9.1 or newer. Another option is to modify
19208*** your PATH or compiler configuration so that the native linker is
19209*** used, and then restart.
19210
19211EOF
19212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19215 else
19216 ld_shlibs_F77=no
19217 fi
19218 ;;
19219
19220 sunos4*)
19221 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19222 wlarc=
19223 hardcode_direct_F77=yes
19224 hardcode_shlibpath_var_F77=no
19225 ;;
19226
Reid Spencer2706f8c2004-09-19 23:53:36 +000019227 linux*)
19228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19229 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 archive_cmds_F77="$tmp_archive_cmds"
19231 supports_anon_versioning=no
19232 case `$LD -v 2>/dev/null` in
19233 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19236 *\ 2.11.*) ;; # other 2.11 versions
19237 *) supports_anon_versioning=yes ;;
19238 esac
19239 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019240 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19241cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019243 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244 else
19245 archive_expsym_cmds_F77="$tmp_archive_cmds"
19246 fi
19247 else
19248 ld_shlibs_F77=no
19249 fi
19250 ;;
19251
John Criswell47fdd832003-07-14 16:52:07 +000019252 *)
19253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19256 else
19257 ld_shlibs_F77=no
19258 fi
19259 ;;
19260 esac
19261
19262 if test "$ld_shlibs_F77" = yes; then
19263 runpath_var=LD_RUN_PATH
19264 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19265 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19266 # ancient GNU ld didn't support --whole-archive et. al.
19267 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19268 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19269 else
19270 whole_archive_flag_spec_F77=
19271 fi
19272 fi
19273 else
19274 # PORTME fill in a description of your system's linker (not GNU ld)
19275 case $host_os in
19276 aix3*)
19277 allow_undefined_flag_F77=unsupported
19278 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019279 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 +000019280 # Note: this linker hardcodes the directories in LIBPATH if there
19281 # are no directories specified by -L.
19282 hardcode_minus_L_F77=yes
19283 if test "$GCC" = yes && test -z "$link_static_flag"; then
19284 # Neither direct hardcoding nor static linking is supported with a
19285 # broken collect2.
19286 hardcode_direct_F77=unsupported
19287 fi
19288 ;;
19289
19290 aix4* | aix5*)
19291 if test "$host_cpu" = ia64; then
19292 # On IA64, the linker does run time linking by default, so we don't
19293 # have to do anything special.
19294 aix_use_runtimelinking=no
19295 exp_sym_flag='-Bexport'
19296 no_entry_flag=""
19297 else
19298 # If we're using GNU nm, then we don't want the "-C" option.
19299 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19300 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19301 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'
19302 else
19303 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'
19304 fi
19305 aix_use_runtimelinking=no
19306
19307 # Test if we are trying to use run time linking or normal
19308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19309 # need to do runtime linking.
19310 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19311 for ld_flag in $LDFLAGS; do
19312 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19313 aix_use_runtimelinking=yes
19314 break
19315 fi
19316 done
19317 esac
19318
19319 exp_sym_flag='-bexport'
19320 no_entry_flag='-bnoentry'
19321 fi
19322
19323 # When large executables or shared objects are built, AIX ld can
19324 # have problems creating the table of contents. If linking a library
19325 # or program results in "error TOC overflow" add -mminimal-toc to
19326 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19327 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19328
19329 archive_cmds_F77=''
19330 hardcode_direct_F77=yes
19331 hardcode_libdir_separator_F77=':'
19332 link_all_deplibs_F77=yes
19333
19334 if test "$GCC" = yes; then
19335 case $host_os in aix4.012|aix4.012.*)
19336 # We only want to do this on AIX 4.2 and lower, the check
19337 # below for broken collect2 doesn't work under 4.3+
19338 collect2name=`${CC} -print-prog-name=collect2`
19339 if test -f "$collect2name" && \
19340 strings "$collect2name" | grep resolve_lib_name >/dev/null
19341 then
19342 # We have reworked collect2
19343 hardcode_direct_F77=yes
19344 else
19345 # We have old collect2
19346 hardcode_direct_F77=unsupported
19347 # It fails to find uninstalled libraries when the uninstalled
19348 # path is not listed in the libpath. Setting hardcode_minus_L
19349 # to unsupported forces relinking
19350 hardcode_minus_L_F77=yes
19351 hardcode_libdir_flag_spec_F77='-L$libdir'
19352 hardcode_libdir_separator_F77=
19353 fi
19354 esac
19355 shared_flag='-shared'
19356 else
19357 # not using gcc
19358 if test "$host_cpu" = ia64; then
19359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19360 # chokes on -Wl,-G. The following line is correct:
19361 shared_flag='-G'
19362 else
19363 if test "$aix_use_runtimelinking" = yes; then
19364 shared_flag='${wl}-G'
19365 else
19366 shared_flag='${wl}-bM:SRE'
19367 fi
19368 fi
19369 fi
19370
19371 # It seems that -bexpall does not export symbols beginning with
19372 # underscore (_), so it is better to generate a list of symbols to export.
19373 always_export_symbols_F77=yes
19374 if test "$aix_use_runtimelinking" = yes; then
19375 # Warning - without using the other runtime loading flags (-brtl),
19376 # -berok will link without error, but may produce a broken library.
19377 allow_undefined_flag_F77='-berok'
19378 # Determine the default libpath from the value encoded in an empty executable.
19379 cat >conftest.$ac_ext <<_ACEOF
19380 program main
19381
19382 end
19383_ACEOF
19384rm -f conftest.$ac_objext conftest$ac_exeext
19385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019386 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019393 { ac_try='test -z "$ac_f77_werror_flag"
19394 || test ! -s conftest.err'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19406
19407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19408}'`
19409# Check for a 64-bit object if we didn't find anything.
19410if 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; }
19411}'`; fi
19412else
19413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019414sed 's/^/| /' conftest.$ac_ext >&5
19415
John Criswell47fdd832003-07-14 16:52:07 +000019416fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019417rm -f conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19420
19421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19422 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"
19423 else
19424 if test "$host_cpu" = ia64; then
19425 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19426 allow_undefined_flag_F77="-z nodefs"
19427 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"
19428 else
19429 # Determine the default libpath from the value encoded in an empty executable.
19430 cat >conftest.$ac_ext <<_ACEOF
19431 program main
19432
19433 end
19434_ACEOF
19435rm -f conftest.$ac_objext conftest$ac_exeext
19436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019437 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019444 { ac_try='test -z "$ac_f77_werror_flag"
19445 || test ! -s conftest.err'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457
19458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19459}'`
19460# Check for a 64-bit object if we didn't find anything.
19461if 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; }
19462}'`; fi
19463else
19464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019465sed 's/^/| /' conftest.$ac_ext >&5
19466
John Criswell47fdd832003-07-14 16:52:07 +000019467fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019468rm -f conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19471
19472 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19473 # Warning - without using the other run time loading flags,
19474 # -berok will link without error, but may produce a broken library.
19475 no_undefined_flag_F77=' ${wl}-bernotok'
19476 allow_undefined_flag_F77=' ${wl}-berok'
19477 # -bexpall does not export symbols beginning with underscore (_)
19478 always_export_symbols_F77=yes
19479 # Exported symbols can be pulled into shared objects from archives
19480 whole_archive_flag_spec_F77=' '
19481 archive_cmds_need_lc_F77=yes
19482 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019483 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 +000019484 fi
19485 fi
19486 ;;
19487
19488 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019489 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 +000019490 hardcode_libdir_flag_spec_F77='-L$libdir'
19491 hardcode_minus_L_F77=yes
19492 # see comment about different semantics on the GNU ld section
19493 ld_shlibs_F77=no
19494 ;;
19495
Reid Spencer2706f8c2004-09-19 23:53:36 +000019496 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019497 export_dynamic_flag_spec_F77=-rdynamic
19498 ;;
19499
19500 cygwin* | mingw* | pw32*)
19501 # When not using gcc, we currently assume that we are using
19502 # Microsoft Visual C++.
19503 # hardcode_libdir_flag_spec is actually meaningless, as there is
19504 # no search path for DLLs.
19505 hardcode_libdir_flag_spec_F77=' '
19506 allow_undefined_flag_F77=unsupported
19507 # Tell ltmain to make .lib files, not .a files.
19508 libext=lib
19509 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019510 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019511 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019512 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 +000019513 # The linker will automatically build a .lib file if we build a DLL.
19514 old_archive_From_new_cmds_F77='true'
19515 # FIXME: Should let the user specify the lib program.
19516 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19517 fix_srcfile_path='`cygpath -w "$srcfile"`'
19518 enable_shared_with_static_runtimes_F77=yes
19519 ;;
19520
19521 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019522 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019523 rhapsody* | darwin1.[012])
19524 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19525 ;;
19526 *) # Darwin 1.3 on
19527 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19528 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19529 else
19530 case ${MACOSX_DEPLOYMENT_TARGET} in
19531 10.[012])
19532 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19533 ;;
19534 10.*)
19535 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19536 ;;
19537 esac
19538 fi
19539 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019540 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019541 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019542 hardcode_direct_F77=no
19543 hardcode_automatic_F77=yes
19544 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019545 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019546 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019547 if test "$GCC" = yes ; then
19548 output_verbose_link_cmd='echo'
19549 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19550 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19551 # 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 +000019552 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}'
19553 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 +000019554 else
19555 case "$cc_basename" in
19556 xlc*)
19557 output_verbose_link_cmd='echo'
19558 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19559 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19560 # 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 +000019561 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}'
19562 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 +000019563 ;;
19564 *)
19565 ld_shlibs_F77=no
19566 ;;
19567 esac
John Criswell47fdd832003-07-14 16:52:07 +000019568 fi
19569 ;;
19570
19571 dgux*)
19572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19573 hardcode_libdir_flag_spec_F77='-L$libdir'
19574 hardcode_shlibpath_var_F77=no
19575 ;;
19576
19577 freebsd1*)
19578 ld_shlibs_F77=no
19579 ;;
19580
19581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19582 # support. Future versions do this automatically, but an explicit c++rt0.o
19583 # does not break anything, and helps significantly (at the cost of a little
19584 # extra space).
19585 freebsd2.2*)
19586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19587 hardcode_libdir_flag_spec_F77='-R$libdir'
19588 hardcode_direct_F77=yes
19589 hardcode_shlibpath_var_F77=no
19590 ;;
19591
19592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19593 freebsd2*)
19594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19595 hardcode_direct_F77=yes
19596 hardcode_minus_L_F77=yes
19597 hardcode_shlibpath_var_F77=no
19598 ;;
19599
19600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019601 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019602 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19603 hardcode_libdir_flag_spec_F77='-R$libdir'
19604 hardcode_direct_F77=yes
19605 hardcode_shlibpath_var_F77=no
19606 ;;
19607
19608 hpux9*)
19609 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019610 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 +000019611 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019612 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 +000019613 fi
19614 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19615 hardcode_libdir_separator_F77=:
19616 hardcode_direct_F77=yes
19617
19618 # hardcode_minus_L: Not really in the search PATH,
19619 # but as the default location of the library.
19620 hardcode_minus_L_F77=yes
19621 export_dynamic_flag_spec_F77='${wl}-E'
19622 ;;
19623
19624 hpux10* | hpux11*)
19625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19626 case "$host_cpu" in
19627 hppa*64*|ia64*)
19628 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19629 ;;
19630 *)
19631 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19632 ;;
19633 esac
19634 else
19635 case "$host_cpu" in
19636 hppa*64*|ia64*)
19637 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19638 ;;
19639 *)
19640 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19641 ;;
19642 esac
19643 fi
19644 if test "$with_gnu_ld" = no; then
19645 case "$host_cpu" in
19646 hppa*64*)
19647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19648 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19649 hardcode_libdir_separator_F77=:
19650 hardcode_direct_F77=no
19651 hardcode_shlibpath_var_F77=no
19652 ;;
19653 ia64*)
19654 hardcode_libdir_flag_spec_F77='-L$libdir'
19655 hardcode_direct_F77=no
19656 hardcode_shlibpath_var_F77=no
19657
19658 # hardcode_minus_L: Not really in the search PATH,
19659 # but as the default location of the library.
19660 hardcode_minus_L_F77=yes
19661 ;;
19662 *)
19663 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19664 hardcode_libdir_separator_F77=:
19665 hardcode_direct_F77=yes
19666 export_dynamic_flag_spec_F77='${wl}-E'
19667
19668 # hardcode_minus_L: Not really in the search PATH,
19669 # but as the default location of the library.
19670 hardcode_minus_L_F77=yes
19671 ;;
19672 esac
19673 fi
19674 ;;
19675
19676 irix5* | irix6* | nonstopux*)
19677 if test "$GCC" = yes; then
19678 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'
19679 else
19680 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'
19681 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19682 fi
19683 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19684 hardcode_libdir_separator_F77=:
19685 link_all_deplibs_F77=yes
19686 ;;
19687
19688 netbsd*)
19689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19691 else
19692 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19693 fi
19694 hardcode_libdir_flag_spec_F77='-R$libdir'
19695 hardcode_direct_F77=yes
19696 hardcode_shlibpath_var_F77=no
19697 ;;
19698
19699 newsos6)
19700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19701 hardcode_direct_F77=yes
19702 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19703 hardcode_libdir_separator_F77=:
19704 hardcode_shlibpath_var_F77=no
19705 ;;
19706
19707 openbsd*)
19708 hardcode_direct_F77=yes
19709 hardcode_shlibpath_var_F77=no
19710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19711 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019712 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 +000019713 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19714 export_dynamic_flag_spec_F77='${wl}-E'
19715 else
19716 case $host_os in
19717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_libdir_flag_spec_F77='-R$libdir'
19720 ;;
19721 *)
19722 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19724 ;;
19725 esac
19726 fi
19727 ;;
19728
19729 os2*)
19730 hardcode_libdir_flag_spec_F77='-L$libdir'
19731 hardcode_minus_L_F77=yes
19732 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019733 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 +000019734 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19735 ;;
19736
19737 osf3*)
19738 if test "$GCC" = yes; then
19739 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19740 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'
19741 else
19742 allow_undefined_flag_F77=' -expect_unresolved \*'
19743 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'
19744 fi
19745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19746 hardcode_libdir_separator_F77=:
19747 ;;
19748
19749 osf4* | osf5*) # as osf3* with the addition of -msym flag
19750 if test "$GCC" = yes; then
19751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19752 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'
19753 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19754 else
19755 allow_undefined_flag_F77=' -expect_unresolved \*'
19756 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 +000019757 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~
19758 $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'
19759
John Criswell47fdd832003-07-14 16:52:07 +000019760 # Both c and cxx compiler support -rpath directly
19761 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19762 fi
19763 hardcode_libdir_separator_F77=:
19764 ;;
19765
19766 sco3.2v5*)
19767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19768 hardcode_shlibpath_var_F77=no
19769 export_dynamic_flag_spec_F77='${wl}-Bexport'
19770 runpath_var=LD_RUN_PATH
19771 hardcode_runpath_var=yes
19772 ;;
19773
19774 solaris*)
19775 no_undefined_flag_F77=' -z text'
19776 if test "$GCC" = yes; then
19777 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19779 $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 +000019780 else
19781 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019782 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19783 $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 +000019784 fi
19785 hardcode_libdir_flag_spec_F77='-R$libdir'
19786 hardcode_shlibpath_var_F77=no
19787 case $host_os in
19788 solaris2.[0-5] | solaris2.[0-5].*) ;;
19789 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19790 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19791 esac
19792 link_all_deplibs_F77=yes
19793 ;;
19794
19795 sunos4*)
19796 if test "x$host_vendor" = xsequent; then
19797 # Use $CC to link under sequent, because it throws in some extra .o
19798 # files that make .init and .fini sections work.
19799 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19800 else
19801 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19802 fi
19803 hardcode_libdir_flag_spec_F77='-L$libdir'
19804 hardcode_direct_F77=yes
19805 hardcode_minus_L_F77=yes
19806 hardcode_shlibpath_var_F77=no
19807 ;;
19808
19809 sysv4)
19810 case $host_vendor in
19811 sni)
19812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19813 hardcode_direct_F77=yes # is this really true???
19814 ;;
19815 siemens)
19816 ## LD is ld it makes a PLAMLIB
19817 ## CC just makes a GrossModule.
19818 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19819 reload_cmds_F77='$CC -r -o $output$reload_objs'
19820 hardcode_direct_F77=no
19821 ;;
19822 motorola)
19823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19824 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19825 ;;
19826 esac
19827 runpath_var='LD_RUN_PATH'
19828 hardcode_shlibpath_var_F77=no
19829 ;;
19830
19831 sysv4.3*)
19832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833 hardcode_shlibpath_var_F77=no
19834 export_dynamic_flag_spec_F77='-Bexport'
19835 ;;
19836
19837 sysv4*MP*)
19838 if test -d /usr/nec; then
19839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19840 hardcode_shlibpath_var_F77=no
19841 runpath_var=LD_RUN_PATH
19842 hardcode_runpath_var=yes
19843 ld_shlibs_F77=yes
19844 fi
19845 ;;
19846
19847 sysv4.2uw2*)
19848 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19849 hardcode_direct_F77=yes
19850 hardcode_minus_L_F77=no
19851 hardcode_shlibpath_var_F77=no
19852 hardcode_runpath_var=yes
19853 runpath_var=LD_RUN_PATH
19854 ;;
19855
19856 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19857 no_undefined_flag_F77='${wl}-z ${wl}text'
19858 if test "$GCC" = yes; then
19859 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19860 else
19861 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19862 fi
19863 runpath_var='LD_RUN_PATH'
19864 hardcode_shlibpath_var_F77=no
19865 ;;
19866
19867 sysv5*)
19868 no_undefined_flag_F77=' -z text'
19869 # $CC -shared without GNU ld will not create a library from C++
19870 # object files and a static libstdc++, better avoid it by now
19871 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19873 $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 +000019874 hardcode_libdir_flag_spec_F77=
19875 hardcode_shlibpath_var_F77=no
19876 runpath_var='LD_RUN_PATH'
19877 ;;
19878
19879 uts4*)
19880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19881 hardcode_libdir_flag_spec_F77='-L$libdir'
19882 hardcode_shlibpath_var_F77=no
19883 ;;
19884
19885 *)
19886 ld_shlibs_F77=no
19887 ;;
19888 esac
19889 fi
19890
19891echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19892echo "${ECHO_T}$ld_shlibs_F77" >&6
19893test "$ld_shlibs_F77" = no && can_build_shared=no
19894
19895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19896if test "$GCC" = yes; then
19897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19898fi
19899
19900#
19901# Do we need to explicitly link libc?
19902#
19903case "x$archive_cmds_need_lc_F77" in
19904x|xyes)
19905 # Assume -lc should be added
19906 archive_cmds_need_lc_F77=yes
19907
19908 if test "$enable_shared" = yes && test "$GCC" = yes; then
19909 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019910 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019911 # FIXME: we may have to deal with multi-command sequences.
19912 ;;
19913 '$CC '*)
19914 # Test whether the compiler implicitly links with -lc since on some
19915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19916 # to ld, don't add -lc before -lgcc.
19917 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19918echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19919 $rm conftest*
19920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19921
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } 2>conftest.err; then
19927 soname=conftest
19928 lib=conftest
19929 libobjs=conftest.$ac_objext
19930 deplibs=
19931 wl=$lt_prog_compiler_wl_F77
19932 compiler_flags=-v
19933 linker_flags=-v
19934 verstring=
19935 output_objdir=.
19936 libname=conftest
19937 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19938 allow_undefined_flag_F77=
19939 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19940 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }
19944 then
19945 archive_cmds_need_lc_F77=no
19946 else
19947 archive_cmds_need_lc_F77=yes
19948 fi
19949 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19950 else
19951 cat conftest.err 1>&5
19952 fi
19953 $rm conftest*
19954 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19955echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19956 ;;
19957 esac
19958 fi
19959 ;;
19960esac
19961
John Criswell47fdd832003-07-14 16:52:07 +000019962echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19963echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19964library_names_spec=
19965libname_spec='lib$name'
19966soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019967shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019968postinstall_cmds=
19969postuninstall_cmds=
19970finish_cmds=
19971finish_eval=
19972shlibpath_var=
19973shlibpath_overrides_runpath=unknown
19974version_type=none
19975dynamic_linker="$host_os ld.so"
19976sys_lib_dlsearch_path_spec="/lib /usr/lib"
19977if test "$GCC" = yes; then
19978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19979 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19980 # if the path contains ";" then we assume it to be the separator
19981 # otherwise default to the standard path separator (i.e. ":") - it is
19982 # assumed that no part of a normal pathname contains ";" but that should
19983 # okay in the real world where ";" in dirpaths is itself problematic.
19984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19985 else
19986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19987 fi
19988else
19989 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19990fi
19991need_lib_prefix=unknown
19992hardcode_into_libs=no
19993
19994# when you set need_version to no, make sure it does not cause -set_version
19995# flags to be left without arguments
19996need_version=unknown
19997
19998case $host_os in
19999aix3*)
20000 version_type=linux
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20002 shlibpath_var=LIBPATH
20003
20004 # AIX 3 has no versioning support, so we append a major version to the name.
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 ;;
20007
20008aix4* | aix5*)
20009 version_type=linux
20010 need_lib_prefix=no
20011 need_version=no
20012 hardcode_into_libs=yes
20013 if test "$host_cpu" = ia64; then
20014 # AIX 5 supports IA64
20015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20016 shlibpath_var=LD_LIBRARY_PATH
20017 else
20018 # With GCC up to 2.95.x, collect2 would create an import file
20019 # for dependence libraries. The import file would start with
20020 # the line `#! .'. This would cause the generated library to
20021 # depend on `.', always an invalid library. This was fixed in
20022 # development snapshots of GCC prior to 3.0.
20023 case $host_os in
20024 aix4 | aix4.[01] | aix4.[01].*)
20025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20026 echo ' yes '
20027 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20028 :
20029 else
20030 can_build_shared=no
20031 fi
20032 ;;
20033 esac
20034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20035 # soname into executable. Probably we can add versioning support to
20036 # collect2, so additional links can be useful in future.
20037 if test "$aix_use_runtimelinking" = yes; then
20038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20039 # instead of lib<name>.a to let people know that these are not
20040 # typical AIX shared libraries.
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042 else
20043 # We preserve .a as extension for shared libraries through AIX4.2
20044 # and later when we are not doing run time linking.
20045 library_names_spec='${libname}${release}.a $libname.a'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 fi
20048 shlibpath_var=LIBPATH
20049 fi
20050 ;;
20051
20052amigaos*)
20053 library_names_spec='$libname.ixlibrary $libname.a'
20054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020055 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 +000020056 ;;
20057
20058beos*)
20059 library_names_spec='${libname}${shared_ext}'
20060 dynamic_linker="$host_os ld.so"
20061 shlibpath_var=LIBRARY_PATH
20062 ;;
20063
Reid Spencer2706f8c2004-09-19 23:53:36 +000020064bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020065 version_type=linux
20066 need_version=no
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20070 shlibpath_var=LD_LIBRARY_PATH
20071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20073 # the default ld.so.conf also contains /usr/contrib/lib and
20074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20075 # libtool to hard-code these into programs
20076 ;;
20077
20078cygwin* | mingw* | pw32*)
20079 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020080 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020081 need_version=no
20082 need_lib_prefix=no
20083
20084 case $GCC,$host_os in
20085 yes,cygwin* | yes,mingw* | yes,pw32*)
20086 library_names_spec='$libname.dll.a'
20087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020088 postinstall_cmds='base_file=`basename \${file}`~
20089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20090 dldir=$destdir/`dirname \$dlpath`~
20091 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020092 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20094 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020095 $rm \$dlpath'
20096 shlibpath_overrides_runpath=yes
20097
20098 case $host_os in
20099 cygwin*)
20100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20101 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 +000020102 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020103 ;;
20104 mingw*)
20105 # MinGW DLLs use traditional 'lib' prefix
20106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20108 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20109 # It is most probably a Windows format PATH printed by
20110 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20111 # path with ; separators, and with drive letters. We can handle the
20112 # drive letters (cygwin fileutils understands them), so leave them,
20113 # especially as we might pass files found there to a mingw objdump,
20114 # which wouldn't understand a cygwinified path. Ahh.
20115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20116 else
20117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20118 fi
20119 ;;
20120 pw32*)
20121 # pw32 DLLs use 'pw' prefix rather than 'lib'
20122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20123 ;;
20124 esac
20125 ;;
20126
20127 *)
20128 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20129 ;;
20130 esac
20131 dynamic_linker='Win32 ld.exe'
20132 # FIXME: first we should search . and the directory the executable is in
20133 shlibpath_var=PATH
20134 ;;
20135
20136darwin* | rhapsody*)
20137 dynamic_linker="$host_os dyld"
20138 version_type=darwin
20139 need_lib_prefix=no
20140 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020141 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020142 soname_spec='${libname}${release}${major}$shared_ext'
20143 shlibpath_overrides_runpath=yes
20144 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020145 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020146 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020147 if test "$GCC" = yes; then
20148 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"`
20149 else
20150 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020151 fi
20152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20153 ;;
20154
20155dgux*)
20156 version_type=linux
20157 need_lib_prefix=no
20158 need_version=no
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 shlibpath_var=LD_LIBRARY_PATH
20162 ;;
20163
20164freebsd1*)
20165 dynamic_linker=no
20166 ;;
20167
Reid Spencer2706f8c2004-09-19 23:53:36 +000020168kfreebsd*-gnu)
20169 version_type=linux
20170 need_lib_prefix=no
20171 need_version=no
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 shlibpath_overrides_runpath=no
20176 hardcode_into_libs=yes
20177 dynamic_linker='GNU ld.so'
20178 ;;
20179
John Criswell47fdd832003-07-14 16:52:07 +000020180freebsd*)
20181 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20182 version_type=freebsd-$objformat
20183 case $version_type in
20184 freebsd-elf*)
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20186 need_version=no
20187 need_lib_prefix=no
20188 ;;
20189 freebsd-*)
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20191 need_version=yes
20192 ;;
20193 esac
20194 shlibpath_var=LD_LIBRARY_PATH
20195 case $host_os in
20196 freebsd2*)
20197 shlibpath_overrides_runpath=yes
20198 ;;
20199 freebsd3.01* | freebsdelf3.01*)
20200 shlibpath_overrides_runpath=yes
20201 hardcode_into_libs=yes
20202 ;;
20203 *) # from 3.2 on
20204 shlibpath_overrides_runpath=no
20205 hardcode_into_libs=yes
20206 ;;
20207 esac
20208 ;;
20209
20210gnu*)
20211 version_type=linux
20212 need_lib_prefix=no
20213 need_version=no
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 hardcode_into_libs=yes
20218 ;;
20219
20220hpux9* | hpux10* | hpux11*)
20221 # Give a soname corresponding to the major version so that dld.sl refuses to
20222 # link against other versions.
20223 version_type=sunos
20224 need_lib_prefix=no
20225 need_version=no
20226 case "$host_cpu" in
20227 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020228 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020229 hardcode_into_libs=yes
20230 dynamic_linker="$host_os dld.so"
20231 shlibpath_var=LD_LIBRARY_PATH
20232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 if test "X$HPUX_IA64_MODE" = X32; then
20236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20237 else
20238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20239 fi
20240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20241 ;;
20242 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020243 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020244 hardcode_into_libs=yes
20245 dynamic_linker="$host_os dld.sl"
20246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 soname_spec='${libname}${release}${shared_ext}$major'
20250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20252 ;;
20253 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020254 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020255 dynamic_linker="$host_os dld.sl"
20256 shlibpath_var=SHLIB_PATH
20257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259 soname_spec='${libname}${release}${shared_ext}$major'
20260 ;;
20261 esac
20262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20263 postinstall_cmds='chmod 555 $lib'
20264 ;;
20265
20266irix5* | irix6* | nonstopux*)
20267 case $host_os in
20268 nonstopux*) version_type=nonstopux ;;
20269 *)
20270 if test "$lt_cv_prog_gnu_ld" = yes; then
20271 version_type=linux
20272 else
20273 version_type=irix
20274 fi ;;
20275 esac
20276 need_lib_prefix=no
20277 need_version=no
20278 soname_spec='${libname}${release}${shared_ext}$major'
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20280 case $host_os in
20281 irix5* | nonstopux*)
20282 libsuff= shlibsuff=
20283 ;;
20284 *)
20285 case $LD in # libtool.m4 will add one of these switches to LD
20286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20287 libsuff= shlibsuff= libmagic=32-bit;;
20288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20289 libsuff=32 shlibsuff=N32 libmagic=N32;;
20290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20292 *) libsuff= shlibsuff= libmagic=never-match;;
20293 esac
20294 ;;
20295 esac
20296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20297 shlibpath_overrides_runpath=no
20298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20300 hardcode_into_libs=yes
20301 ;;
20302
20303# No shared lib support for Linux oldld, aout, or coff.
20304linux*oldld* | linux*aout* | linux*coff*)
20305 dynamic_linker=no
20306 ;;
20307
20308# This must be Linux ELF.
20309linux*)
20310 version_type=linux
20311 need_lib_prefix=no
20312 need_version=no
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20316 shlibpath_var=LD_LIBRARY_PATH
20317 shlibpath_overrides_runpath=no
20318 # This implies no fast_install, which is unacceptable.
20319 # Some rework will be needed to allow for fast_install
20320 # before this can be enabled.
20321 hardcode_into_libs=yes
20322
Reid Spencer2706f8c2004-09-19 23:53:36 +000020323 # Append ld.so.conf contents to the search path
20324 if test -f /etc/ld.so.conf; then
20325 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20327 fi
20328
John Criswell47fdd832003-07-14 16:52:07 +000020329 # We used to test for /lib/ld.so.1 and disable shared libraries on
20330 # powerpc, because MkLinux only supported shared libraries with the
20331 # GNU dynamic linker. Since this was broken with cross compilers,
20332 # most powerpc-linux boxes support dynamic linking these days and
20333 # people can always --disable-shared, the test was removed, and we
20334 # assume the GNU/Linux dynamic linker is in use.
20335 dynamic_linker='GNU/Linux ld.so'
20336 ;;
20337
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338knetbsd*-gnu)
20339 version_type=linux
20340 need_lib_prefix=no
20341 need_version=no
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 shlibpath_overrides_runpath=no
20346 hardcode_into_libs=yes
20347 dynamic_linker='GNU ld.so'
20348 ;;
20349
John Criswell47fdd832003-07-14 16:52:07 +000020350netbsd*)
20351 version_type=sunos
20352 need_lib_prefix=no
20353 need_version=no
20354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20357 dynamic_linker='NetBSD (a.out) ld.so'
20358 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020360 soname_spec='${libname}${release}${shared_ext}$major'
20361 dynamic_linker='NetBSD ld.elf_so'
20362 fi
20363 shlibpath_var=LD_LIBRARY_PATH
20364 shlibpath_overrides_runpath=yes
20365 hardcode_into_libs=yes
20366 ;;
20367
20368newsos6)
20369 version_type=linux
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20371 shlibpath_var=LD_LIBRARY_PATH
20372 shlibpath_overrides_runpath=yes
20373 ;;
20374
Reid Spencer2706f8c2004-09-19 23:53:36 +000020375nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020376 version_type=linux
20377 need_lib_prefix=no
20378 need_version=no
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 shlibpath_overrides_runpath=yes
20383 ;;
20384
20385openbsd*)
20386 version_type=sunos
20387 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020388 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20393 case $host_os in
20394 openbsd2.[89] | openbsd2.[89].*)
20395 shlibpath_overrides_runpath=no
20396 ;;
20397 *)
20398 shlibpath_overrides_runpath=yes
20399 ;;
20400 esac
20401 else
20402 shlibpath_overrides_runpath=yes
20403 fi
20404 ;;
20405
20406os2*)
20407 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020408 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020409 need_lib_prefix=no
20410 library_names_spec='$libname${shared_ext} $libname.a'
20411 dynamic_linker='OS/2 ld.exe'
20412 shlibpath_var=LIBPATH
20413 ;;
20414
20415osf3* | osf4* | osf5*)
20416 version_type=osf
20417 need_lib_prefix=no
20418 need_version=no
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20423 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20424 ;;
20425
20426sco3.2v5*)
20427 version_type=osf
20428 soname_spec='${libname}${release}${shared_ext}$major'
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 ;;
20432
20433solaris*)
20434 version_type=linux
20435 need_lib_prefix=no
20436 need_version=no
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=yes
20441 hardcode_into_libs=yes
20442 # ldd complains unless libraries are executable
20443 postinstall_cmds='chmod +x $lib'
20444 ;;
20445
20446sunos4*)
20447 version_type=sunos
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=yes
20452 if test "$with_gnu_ld" = yes; then
20453 need_lib_prefix=no
20454 fi
20455 need_version=yes
20456 ;;
20457
20458sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20459 version_type=linux
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 case $host_vendor in
20464 sni)
20465 shlibpath_overrides_runpath=no
20466 need_lib_prefix=no
20467 export_dynamic_flag_spec='${wl}-Blargedynsym'
20468 runpath_var=LD_RUN_PATH
20469 ;;
20470 siemens)
20471 need_lib_prefix=no
20472 ;;
20473 motorola)
20474 need_lib_prefix=no
20475 need_version=no
20476 shlibpath_overrides_runpath=no
20477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20478 ;;
20479 esac
20480 ;;
20481
20482sysv4*MP*)
20483 if test -d /usr/nec ;then
20484 version_type=linux
20485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20486 soname_spec='$libname${shared_ext}.$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 fi
20489 ;;
20490
20491uts4*)
20492 version_type=linux
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 ;;
20497
20498*)
20499 dynamic_linker=no
20500 ;;
20501esac
20502echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20503echo "${ECHO_T}$dynamic_linker" >&6
20504test "$dynamic_linker" = no && can_build_shared=no
20505
Reid Spencer2706f8c2004-09-19 23:53:36 +000020506echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20507echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20508hardcode_action_F77=
20509if test -n "$hardcode_libdir_flag_spec_F77" || \
20510 test -n "$runpath_var_F77" || \
20511 test "X$hardcode_automatic_F77" = "Xyes" ; then
20512
20513 # We can hardcode non-existant directories.
20514 if test "$hardcode_direct_F77" != no &&
20515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20516 # have to relink, otherwise we might link with an installed library
20517 # when we should be linking with a yet-to-be-installed one
20518 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20519 test "$hardcode_minus_L_F77" != no; then
20520 # Linking always hardcodes the temporary library directory.
20521 hardcode_action_F77=relink
20522 else
20523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20524 hardcode_action_F77=immediate
20525 fi
20526else
20527 # We cannot hardcode anything, or else we can only hardcode existing
20528 # directories.
20529 hardcode_action_F77=unsupported
20530fi
20531echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20532echo "${ECHO_T}$hardcode_action_F77" >&6
20533
20534if test "$hardcode_action_F77" = relink; then
20535 # Fast installation is not supported
20536 enable_fast_install=no
20537elif test "$shlibpath_overrides_runpath" = yes ||
20538 test "$enable_shared" = no; then
20539 # Fast installation is not necessary
20540 enable_fast_install=needless
20541fi
20542
20543striplib=
20544old_striplib=
20545echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20546echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20547if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20548 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20549 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20550 echo "$as_me:$LINENO: result: yes" >&5
20551echo "${ECHO_T}yes" >&6
20552else
20553# FIXME - insert some real tests, host_os isn't really good enough
20554 case $host_os in
20555 darwin*)
20556 if test -n "$STRIP" ; then
20557 striplib="$STRIP -x"
20558 echo "$as_me:$LINENO: result: yes" >&5
20559echo "${ECHO_T}yes" >&6
20560 else
20561 echo "$as_me:$LINENO: result: no" >&5
20562echo "${ECHO_T}no" >&6
20563fi
20564 ;;
20565 *)
20566 echo "$as_me:$LINENO: result: no" >&5
20567echo "${ECHO_T}no" >&6
20568 ;;
20569 esac
20570fi
20571
20572
John Criswell47fdd832003-07-14 16:52:07 +000020573
20574# The else clause should only fire when bootstrapping the
20575# libtool distribution, otherwise you forgot to ship ltmain.sh
20576# with your package, and you will get complaints that there are
20577# no rules to generate ltmain.sh.
20578if test -f "$ltmain"; then
20579 # See if we are running on zsh, and set the options which allow our commands through
20580 # without removal of \ escapes.
20581 if test -n "${ZSH_VERSION+set}" ; then
20582 setopt NO_GLOB_SUBST
20583 fi
20584 # Now quote all the things that may contain metacharacters while being
20585 # careful not to overquote the AC_SUBSTed values. We take copies of the
20586 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20588 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591 deplibs_check_method reload_flag reload_cmds need_locks \
20592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593 lt_cv_sys_global_symbol_to_c_name_address \
20594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595 old_postinstall_cmds old_postuninstall_cmds \
20596 compiler_F77 \
20597 CC_F77 \
20598 LD_F77 \
20599 lt_prog_compiler_wl_F77 \
20600 lt_prog_compiler_pic_F77 \
20601 lt_prog_compiler_static_F77 \
20602 lt_prog_compiler_no_builtin_flag_F77 \
20603 export_dynamic_flag_spec_F77 \
20604 thread_safe_flag_spec_F77 \
20605 whole_archive_flag_spec_F77 \
20606 enable_shared_with_static_runtimes_F77 \
20607 old_archive_cmds_F77 \
20608 old_archive_from_new_cmds_F77 \
20609 predep_objects_F77 \
20610 postdep_objects_F77 \
20611 predeps_F77 \
20612 postdeps_F77 \
20613 compiler_lib_search_path_F77 \
20614 archive_cmds_F77 \
20615 archive_expsym_cmds_F77 \
20616 postinstall_cmds_F77 \
20617 postuninstall_cmds_F77 \
20618 old_archive_from_expsyms_cmds_F77 \
20619 allow_undefined_flag_F77 \
20620 no_undefined_flag_F77 \
20621 export_symbols_cmds_F77 \
20622 hardcode_libdir_flag_spec_F77 \
20623 hardcode_libdir_flag_spec_ld_F77 \
20624 hardcode_libdir_separator_F77 \
20625 hardcode_automatic_F77 \
20626 module_cmds_F77 \
20627 module_expsym_cmds_F77 \
20628 lt_cv_prog_compiler_c_o_F77 \
20629 exclude_expsyms_F77 \
20630 include_expsyms_F77; do
20631
20632 case $var in
20633 old_archive_cmds_F77 | \
20634 old_archive_from_new_cmds_F77 | \
20635 archive_cmds_F77 | \
20636 archive_expsym_cmds_F77 | \
20637 module_cmds_F77 | \
20638 module_expsym_cmds_F77 | \
20639 old_archive_from_expsyms_cmds_F77 | \
20640 export_symbols_cmds_F77 | \
20641 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20642 postinstall_cmds | postuninstall_cmds | \
20643 old_postinstall_cmds | old_postuninstall_cmds | \
20644 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20645 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020646 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 +000020647 ;;
20648 *)
20649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20650 ;;
20651 esac
20652 done
20653
20654 case $lt_echo in
20655 *'\$0 --fallback-echo"')
20656 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20657 ;;
20658 esac
20659
20660cfgfile="$ofile"
20661
20662 cat <<__EOF__ >> "$cfgfile"
20663# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20664
20665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20666
20667# Shell to use when invoking shell scripts.
20668SHELL=$lt_SHELL
20669
20670# Whether or not to build shared libraries.
20671build_libtool_libs=$enable_shared
20672
20673# Whether or not to build static libraries.
20674build_old_libs=$enable_static
20675
20676# Whether or not to add -lc for building shared libraries.
20677build_libtool_need_lc=$archive_cmds_need_lc_F77
20678
20679# Whether or not to disallow shared libs when runtime libs are static
20680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20681
20682# Whether or not to optimize for fast installation.
20683fast_install=$enable_fast_install
20684
20685# The host system.
20686host_alias=$host_alias
20687host=$host
20688
20689# An echo program that does not interpret backslashes.
20690echo=$lt_echo
20691
20692# The archiver.
20693AR=$lt_AR
20694AR_FLAGS=$lt_AR_FLAGS
20695
20696# A C compiler.
20697LTCC=$lt_LTCC
20698
20699# A language-specific compiler.
20700CC=$lt_compiler_F77
20701
20702# Is the compiler the GNU C compiler?
20703with_gcc=$GCC_F77
20704
20705# An ERE matcher.
20706EGREP=$lt_EGREP
20707
20708# The linker used to build libraries.
20709LD=$lt_LD_F77
20710
20711# Whether we need hard or soft links.
20712LN_S=$lt_LN_S
20713
20714# A BSD-compatible nm program.
20715NM=$lt_NM
20716
20717# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020718STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020719
20720# Used to examine libraries when file_magic_cmd begins "file"
20721MAGIC_CMD=$MAGIC_CMD
20722
20723# Used on cygwin: DLL creation program.
20724DLLTOOL="$DLLTOOL"
20725
20726# Used on cygwin: object dumper.
20727OBJDUMP="$OBJDUMP"
20728
20729# Used on cygwin: assembler.
20730AS="$AS"
20731
20732# The name of the directory that contains temporary libtool files.
20733objdir=$objdir
20734
20735# How to create reloadable object files.
20736reload_flag=$lt_reload_flag
20737reload_cmds=$lt_reload_cmds
20738
20739# How to pass a linker flag through the compiler.
20740wl=$lt_lt_prog_compiler_wl_F77
20741
20742# Object file suffix (normally "o").
20743objext="$ac_objext"
20744
20745# Old archive suffix (normally "a").
20746libext="$libext"
20747
20748# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020749shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020750
20751# Executable file suffix (normally "").
20752exeext="$exeext"
20753
20754# Additional compiler flags for building library objects.
20755pic_flag=$lt_lt_prog_compiler_pic_F77
20756pic_mode=$pic_mode
20757
20758# What is the maximum length of a command?
20759max_cmd_len=$lt_cv_sys_max_cmd_len
20760
20761# Does compiler simultaneously support -c and -o options?
20762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20763
20764# Must we lock files when doing compilation ?
20765need_locks=$lt_need_locks
20766
20767# Do we need the lib prefix for modules?
20768need_lib_prefix=$need_lib_prefix
20769
20770# Do we need a version for libraries?
20771need_version=$need_version
20772
20773# Whether dlopen is supported.
20774dlopen_support=$enable_dlopen
20775
20776# Whether dlopen of programs is supported.
20777dlopen_self=$enable_dlopen_self
20778
20779# Whether dlopen of statically linked programs is supported.
20780dlopen_self_static=$enable_dlopen_self_static
20781
20782# Compiler flag to prevent dynamic linking.
20783link_static_flag=$lt_lt_prog_compiler_static_F77
20784
20785# Compiler flag to turn off builtin functions.
20786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20787
20788# Compiler flag to allow reflexive dlopens.
20789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20790
20791# Compiler flag to generate shared objects directly from archives.
20792whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20793
20794# Compiler flag to generate thread-safe objects.
20795thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20796
20797# Library versioning type.
20798version_type=$version_type
20799
20800# Format of library name prefix.
20801libname_spec=$lt_libname_spec
20802
20803# List of archive names. First name is the real one, the rest are links.
20804# The last name is the one that the linker finds with -lNAME.
20805library_names_spec=$lt_library_names_spec
20806
20807# The coded name of the library, if different from the real name.
20808soname_spec=$lt_soname_spec
20809
20810# Commands used to build and install an old-style archive.
20811RANLIB=$lt_RANLIB
20812old_archive_cmds=$lt_old_archive_cmds_F77
20813old_postinstall_cmds=$lt_old_postinstall_cmds
20814old_postuninstall_cmds=$lt_old_postuninstall_cmds
20815
20816# Create an old-style archive from a shared archive.
20817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20818
20819# Create a temporary old-style archive to link instead of a shared archive.
20820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20821
20822# Commands used to build and install a shared archive.
20823archive_cmds=$lt_archive_cmds_F77
20824archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20825postinstall_cmds=$lt_postinstall_cmds
20826postuninstall_cmds=$lt_postuninstall_cmds
20827
20828# Commands used to build a loadable module (assumed same as above if empty)
20829module_cmds=$lt_module_cmds_F77
20830module_expsym_cmds=$lt_module_expsym_cmds_F77
20831
20832# Commands to strip libraries.
20833old_striplib=$lt_old_striplib
20834striplib=$lt_striplib
20835
20836# Dependencies to place before the objects being linked to create a
20837# shared library.
20838predep_objects=$lt_predep_objects_F77
20839
20840# Dependencies to place after the objects being linked to create a
20841# shared library.
20842postdep_objects=$lt_postdep_objects_F77
20843
20844# Dependencies to place before the objects being linked to create a
20845# shared library.
20846predeps=$lt_predeps_F77
20847
20848# Dependencies to place after the objects being linked to create a
20849# shared library.
20850postdeps=$lt_postdeps_F77
20851
20852# The library search path used internally by the compiler when linking
20853# a shared library.
20854compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20855
20856# Method to check whether dependent libraries are shared objects.
20857deplibs_check_method=$lt_deplibs_check_method
20858
20859# Command to use when deplibs_check_method == file_magic.
20860file_magic_cmd=$lt_file_magic_cmd
20861
20862# Flag that allows shared libraries with undefined symbols to be built.
20863allow_undefined_flag=$lt_allow_undefined_flag_F77
20864
20865# Flag that forces no undefined symbols.
20866no_undefined_flag=$lt_no_undefined_flag_F77
20867
20868# Commands used to finish a libtool library installation in a directory.
20869finish_cmds=$lt_finish_cmds
20870
20871# Same as above, but a single script fragment to be evaled but not shown.
20872finish_eval=$lt_finish_eval
20873
20874# Take the output of nm and produce a listing of raw symbols and C names.
20875global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20876
20877# Transform the output of nm in a proper C declaration
20878global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20879
20880# Transform the output of nm in a C name address pair
20881global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20882
20883# This is the shared library runtime path variable.
20884runpath_var=$runpath_var
20885
20886# This is the shared library path variable.
20887shlibpath_var=$shlibpath_var
20888
20889# Is shlibpath searched before the hard-coded library search path?
20890shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20891
20892# How to hardcode a shared library path into an executable.
20893hardcode_action=$hardcode_action_F77
20894
20895# Whether we should hardcode library paths into libraries.
20896hardcode_into_libs=$hardcode_into_libs
20897
20898# Flag to hardcode \$libdir into a binary during linking.
20899# This must work even if \$libdir does not exist.
20900hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20901
20902# If ld is used when linking, flag to hardcode \$libdir into
20903# a binary during linking. This must work even if \$libdir does
20904# not exist.
20905hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20906
20907# Whether we need a single -rpath flag with a separated argument.
20908hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20909
20910# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20911# resulting binary.
20912hardcode_direct=$hardcode_direct_F77
20913
20914# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20915# resulting binary.
20916hardcode_minus_L=$hardcode_minus_L_F77
20917
20918# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20919# the resulting binary.
20920hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20921
20922# Set to yes if building a shared library automatically hardcodes DIR into the library
20923# and all subsequent libraries and executables linked against it.
20924hardcode_automatic=$hardcode_automatic_F77
20925
20926# Variables whose values should be saved in libtool wrapper scripts and
20927# restored at relink time.
20928variables_saved_for_relink="$variables_saved_for_relink"
20929
20930# Whether libtool must link a program against all its dependency libraries.
20931link_all_deplibs=$link_all_deplibs_F77
20932
20933# Compile-time system search path for libraries
20934sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20935
20936# Run-time system search path for libraries
20937sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20938
20939# Fix the shell variable \$srcfile for the compiler.
20940fix_srcfile_path="$fix_srcfile_path_F77"
20941
20942# Set to yes if exported symbols are required.
20943always_export_symbols=$always_export_symbols_F77
20944
20945# The commands to list exported symbols.
20946export_symbols_cmds=$lt_export_symbols_cmds_F77
20947
20948# The commands to extract the exported symbol list from a shared archive.
20949extract_expsyms_cmds=$lt_extract_expsyms_cmds
20950
20951# Symbols that should not be listed in the preloaded symbols.
20952exclude_expsyms=$lt_exclude_expsyms_F77
20953
20954# Symbols that must always be exported.
20955include_expsyms=$lt_include_expsyms_F77
20956
20957# ### END LIBTOOL TAG CONFIG: $tagname
20958
20959__EOF__
20960
20961
20962else
20963 # If there is no Makefile yet, we rely on a make rule to execute
20964 # `config.status --recheck' to rerun these tests and create the
20965 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20967 if test -f "$ltmain_in"; then
20968 test -f Makefile && make "$ltmain"
20969 fi
John Criswell47fdd832003-07-14 16:52:07 +000020970fi
20971
20972
20973ac_ext=c
20974ac_cpp='$CPP $CPPFLAGS'
20975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977ac_compiler_gnu=$ac_cv_c_compiler_gnu
20978
20979CC="$lt_save_CC"
20980
20981 else
20982 tagname=""
20983 fi
20984 ;;
20985
20986 GCJ)
20987 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020988 ac_ext=c
20989ac_cpp='$CPP $CPPFLAGS'
20990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020993
20994
20995# Source file extension for Java test sources.
20996ac_ext=java
20997
20998# Object file extension for compiled Java test sources.
20999objext=o
21000objext_GCJ=$objext
21001
21002# Code to be used in simple compile tests
21003lt_simple_compile_test_code="class foo {}\n"
21004
21005# Code to be used in simple link tests
21006lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21007
21008# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21009
21010# If no C compiler was specified, use CC.
21011LTCC=${LTCC-"$CC"}
21012
21013# Allow CC to be a program name with arguments.
21014compiler=$CC
21015
21016
21017# Allow CC to be a program name with arguments.
21018lt_save_CC="$CC"
21019CC=${GCJ-"gcj"}
21020compiler=$CC
21021compiler_GCJ=$CC
21022
21023# GCJ did not exist at the time GCC didn't implicitly link libc in.
21024archive_cmds_need_lc_GCJ=no
21025
John Criswell47fdd832003-07-14 16:52:07 +000021026
21027lt_prog_compiler_no_builtin_flag_GCJ=
21028
21029if test "$GCC" = yes; then
21030 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21031
Reid Spencer2706f8c2004-09-19 23:53:36 +000021032
21033echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021034echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21035if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037else
21038 lt_cv_prog_compiler_rtti_exceptions=no
21039 ac_outfile=conftest.$ac_objext
21040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21041 lt_compiler_flag="-fno-rtti -fno-exceptions"
21042 # Insert the option either (1) after the last *FLAGS variable, or
21043 # (2) before a word containing "conftest.", or (3) at the end.
21044 # Note that $ac_compile itself does not contain backslashes and begins
21045 # with a dollar sign (not a hyphen), so the echo should work correctly.
21046 # The option is referenced via a variable to avoid confusing sed.
21047 lt_compile=`echo "$ac_compile" | $SED \
21048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21050 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000021051 (eval echo "\"\$as_me:21051: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021052 (eval "$lt_compile" 2>conftest.err)
21053 ac_status=$?
21054 cat conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000021055 echo "$as_me:21055: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021056 if (exit $ac_status) && test -s "$ac_outfile"; then
21057 # The compiler can only warn and ignore the option if not recognized
21058 # So say no if there are warnings
21059 if test ! -s conftest.err; then
21060 lt_cv_prog_compiler_rtti_exceptions=yes
21061 fi
21062 fi
21063 $rm conftest*
21064
21065fi
21066echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21067echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21068
21069if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21070 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21071else
21072 :
21073fi
21074
21075fi
21076
21077lt_prog_compiler_wl_GCJ=
21078lt_prog_compiler_pic_GCJ=
21079lt_prog_compiler_static_GCJ=
21080
21081echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21082echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21083
21084 if test "$GCC" = yes; then
21085 lt_prog_compiler_wl_GCJ='-Wl,'
21086 lt_prog_compiler_static_GCJ='-static'
21087
21088 case $host_os in
21089 aix*)
21090 # All AIX code is PIC.
21091 if test "$host_cpu" = ia64; then
21092 # AIX 5 now supports IA64 processor
21093 lt_prog_compiler_static_GCJ='-Bstatic'
21094 fi
21095 ;;
21096
21097 amigaos*)
21098 # FIXME: we need at least 68020 code to build shared libraries, but
21099 # adding the `-m68020' flag to GCC prevents building anything better,
21100 # like `-m68040'.
21101 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21102 ;;
21103
21104 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21105 # PIC is the default for these OSes.
21106 ;;
21107
21108 mingw* | pw32* | os2*)
21109 # This hack is so that the source file can tell whether it is being
21110 # built for inclusion in a dll (and should export symbols for example).
21111 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21112 ;;
21113
21114 darwin* | rhapsody*)
21115 # PIC is the default on this platform
21116 # Common symbols not allowed in MH_DYLIB files
21117 lt_prog_compiler_pic_GCJ='-fno-common'
21118 ;;
21119
21120 msdosdjgpp*)
21121 # Just because we use GCC doesn't mean we suddenly get shared libraries
21122 # on systems that don't support them.
21123 lt_prog_compiler_can_build_shared_GCJ=no
21124 enable_shared=no
21125 ;;
21126
21127 sysv4*MP*)
21128 if test -d /usr/nec; then
21129 lt_prog_compiler_pic_GCJ=-Kconform_pic
21130 fi
21131 ;;
21132
21133 hpux*)
21134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21135 # not for PA HP-UX.
21136 case "$host_cpu" in
21137 hppa*64*|ia64*)
21138 # +Z the default
21139 ;;
21140 *)
21141 lt_prog_compiler_pic_GCJ='-fPIC'
21142 ;;
21143 esac
21144 ;;
21145
21146 *)
21147 lt_prog_compiler_pic_GCJ='-fPIC'
21148 ;;
21149 esac
21150 else
21151 # PORTME Check for flag to pass linker flags through the system compiler.
21152 case $host_os in
21153 aix*)
21154 lt_prog_compiler_wl_GCJ='-Wl,'
21155 if test "$host_cpu" = ia64; then
21156 # AIX 5 now supports IA64 processor
21157 lt_prog_compiler_static_GCJ='-Bstatic'
21158 else
21159 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21160 fi
21161 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021162 darwin*)
21163 # PIC is the default on this platform
21164 # Common symbols not allowed in MH_DYLIB files
21165 case "$cc_basename" in
21166 xlc*)
21167 lt_prog_compiler_pic_GCJ='-qnocommon'
21168 lt_prog_compiler_wl_GCJ='-Wl,'
21169 ;;
21170 esac
21171 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021172
21173 mingw* | pw32* | os2*)
21174 # This hack is so that the source file can tell whether it is being
21175 # built for inclusion in a dll (and should export symbols for example).
21176 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21177 ;;
21178
21179 hpux9* | hpux10* | hpux11*)
21180 lt_prog_compiler_wl_GCJ='-Wl,'
21181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21182 # not for PA HP-UX.
21183 case "$host_cpu" in
21184 hppa*64*|ia64*)
21185 # +Z the default
21186 ;;
21187 *)
21188 lt_prog_compiler_pic_GCJ='+Z'
21189 ;;
21190 esac
21191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21192 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21193 ;;
21194
21195 irix5* | irix6* | nonstopux*)
21196 lt_prog_compiler_wl_GCJ='-Wl,'
21197 # PIC (with -KPIC) is the default.
21198 lt_prog_compiler_static_GCJ='-non_shared'
21199 ;;
21200
21201 newsos6)
21202 lt_prog_compiler_pic_GCJ='-KPIC'
21203 lt_prog_compiler_static_GCJ='-Bstatic'
21204 ;;
21205
21206 linux*)
21207 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021208 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021209 lt_prog_compiler_wl_GCJ='-Wl,'
21210 lt_prog_compiler_pic_GCJ='-KPIC'
21211 lt_prog_compiler_static_GCJ='-static'
21212 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021213 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021214 lt_prog_compiler_wl_GCJ='-Wl,'
21215 # All Alpha code is PIC.
21216 lt_prog_compiler_static_GCJ='-non_shared'
21217 ;;
21218 esac
21219 ;;
21220
21221 osf3* | osf4* | osf5*)
21222 lt_prog_compiler_wl_GCJ='-Wl,'
21223 # All OSF/1 code is PIC.
21224 lt_prog_compiler_static_GCJ='-non_shared'
21225 ;;
21226
21227 sco3.2v5*)
21228 lt_prog_compiler_pic_GCJ='-Kpic'
21229 lt_prog_compiler_static_GCJ='-dn'
21230 ;;
21231
21232 solaris*)
21233 lt_prog_compiler_wl_GCJ='-Wl,'
21234 lt_prog_compiler_pic_GCJ='-KPIC'
21235 lt_prog_compiler_static_GCJ='-Bstatic'
21236 ;;
21237
21238 sunos4*)
21239 lt_prog_compiler_wl_GCJ='-Qoption ld '
21240 lt_prog_compiler_pic_GCJ='-PIC'
21241 lt_prog_compiler_static_GCJ='-Bstatic'
21242 ;;
21243
21244 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21245 lt_prog_compiler_wl_GCJ='-Wl,'
21246 lt_prog_compiler_pic_GCJ='-KPIC'
21247 lt_prog_compiler_static_GCJ='-Bstatic'
21248 ;;
21249
21250 sysv4*MP*)
21251 if test -d /usr/nec ;then
21252 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21253 lt_prog_compiler_static_GCJ='-Bstatic'
21254 fi
21255 ;;
21256
21257 uts4*)
21258 lt_prog_compiler_pic_GCJ='-pic'
21259 lt_prog_compiler_static_GCJ='-Bstatic'
21260 ;;
21261
21262 *)
21263 lt_prog_compiler_can_build_shared_GCJ=no
21264 ;;
21265 esac
21266 fi
21267
21268echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21269echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21270
21271#
21272# Check to make sure the PIC flag actually works.
21273#
21274if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021275
21276echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021277echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21278if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280else
21281 lt_prog_compiler_pic_works_GCJ=no
21282 ac_outfile=conftest.$ac_objext
21283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21284 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21285 # Insert the option either (1) after the last *FLAGS variable, or
21286 # (2) before a word containing "conftest.", or (3) at the end.
21287 # Note that $ac_compile itself does not contain backslashes and begins
21288 # with a dollar sign (not a hyphen), so the echo should work correctly.
21289 # The option is referenced via a variable to avoid confusing sed.
21290 lt_compile=`echo "$ac_compile" | $SED \
21291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21293 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000021294 (eval echo "\"\$as_me:21294: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021295 (eval "$lt_compile" 2>conftest.err)
21296 ac_status=$?
21297 cat conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000021298 echo "$as_me:21298: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021299 if (exit $ac_status) && test -s "$ac_outfile"; then
21300 # The compiler can only warn and ignore the option if not recognized
21301 # So say no if there are warnings
21302 if test ! -s conftest.err; then
21303 lt_prog_compiler_pic_works_GCJ=yes
21304 fi
21305 fi
21306 $rm conftest*
21307
21308fi
21309echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21310echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21311
21312if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21313 case $lt_prog_compiler_pic_GCJ in
21314 "" | " "*) ;;
21315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21316 esac
21317else
21318 lt_prog_compiler_pic_GCJ=
21319 lt_prog_compiler_can_build_shared_GCJ=no
21320fi
21321
21322fi
21323case "$host_os" in
21324 # For platforms which do not support PIC, -DPIC is meaningless:
21325 *djgpp*)
21326 lt_prog_compiler_pic_GCJ=
21327 ;;
21328 *)
21329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21330 ;;
21331esac
21332
21333echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21334echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21335if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337else
21338 lt_cv_prog_compiler_c_o_GCJ=no
21339 $rm -r conftest 2>/dev/null
21340 mkdir conftest
21341 cd conftest
21342 mkdir out
21343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21344
John Criswell47fdd832003-07-14 16:52:07 +000021345 lt_compiler_flag="-o out/conftest2.$ac_objext"
21346 # Insert the option either (1) after the last *FLAGS variable, or
21347 # (2) before a word containing "conftest.", or (3) at the end.
21348 # Note that $ac_compile itself does not contain backslashes and begins
21349 # with a dollar sign (not a hyphen), so the echo should work correctly.
21350 lt_compile=`echo "$ac_compile" | $SED \
21351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21353 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc232a652005-07-14 02:25:12 +000021354 (eval echo "\"\$as_me:21354: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021355 (eval "$lt_compile" 2>out/conftest.err)
21356 ac_status=$?
21357 cat out/conftest.err >&5
Reid Spencerc232a652005-07-14 02:25:12 +000021358 echo "$as_me:21358: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21360 then
21361 # The compiler can only warn and ignore the option if not recognized
21362 # So say no if there are warnings
21363 if test ! -s out/conftest.err; then
21364 lt_cv_prog_compiler_c_o_GCJ=yes
21365 fi
21366 fi
21367 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021368 $rm conftest*
21369 # SGI C++ compiler will create directory out/ii_files/ for
21370 # template instantiation
21371 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21372 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021373 cd ..
21374 rmdir conftest
21375 $rm conftest*
21376
21377fi
21378echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21379echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21380
21381
21382hard_links="nottested"
21383if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21384 # do not overwrite the value of need_locks provided by the user
21385 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21386echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21387 hard_links=yes
21388 $rm conftest*
21389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21390 touch conftest.a
21391 ln conftest.a conftest.b 2>&5 || hard_links=no
21392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21393 echo "$as_me:$LINENO: result: $hard_links" >&5
21394echo "${ECHO_T}$hard_links" >&6
21395 if test "$hard_links" = no; then
21396 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21397echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21398 need_locks=warn
21399 fi
21400else
21401 need_locks=no
21402fi
21403
21404echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21405echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21406
21407 runpath_var=
21408 allow_undefined_flag_GCJ=
21409 enable_shared_with_static_runtimes_GCJ=no
21410 archive_cmds_GCJ=
21411 archive_expsym_cmds_GCJ=
21412 old_archive_From_new_cmds_GCJ=
21413 old_archive_from_expsyms_cmds_GCJ=
21414 export_dynamic_flag_spec_GCJ=
21415 whole_archive_flag_spec_GCJ=
21416 thread_safe_flag_spec_GCJ=
21417 hardcode_libdir_flag_spec_GCJ=
21418 hardcode_libdir_flag_spec_ld_GCJ=
21419 hardcode_libdir_separator_GCJ=
21420 hardcode_direct_GCJ=no
21421 hardcode_minus_L_GCJ=no
21422 hardcode_shlibpath_var_GCJ=unsupported
21423 link_all_deplibs_GCJ=unknown
21424 hardcode_automatic_GCJ=no
21425 module_cmds_GCJ=
21426 module_expsym_cmds_GCJ=
21427 always_export_symbols_GCJ=no
21428 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21429 # include_expsyms should be a list of space-separated symbols to be *always*
21430 # included in the symbol list
21431 include_expsyms_GCJ=
21432 # exclude_expsyms can be an extended regexp of symbols to exclude
21433 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21434 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21435 # as well as any symbol that contains `d'.
21436 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21437 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21438 # platforms (ab)use it in PIC code, but their linkers get confused if
21439 # the symbol is explicitly referenced. Since portable code cannot
21440 # rely on this symbol name, it's probably fine to never include it in
21441 # preloaded symbol tables.
21442 extract_expsyms_cmds=
21443
21444 case $host_os in
21445 cygwin* | mingw* | pw32*)
21446 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21447 # When not using gcc, we currently assume that we are using
21448 # Microsoft Visual C++.
21449 if test "$GCC" != yes; then
21450 with_gnu_ld=no
21451 fi
21452 ;;
21453 openbsd*)
21454 with_gnu_ld=no
21455 ;;
21456 esac
21457
21458 ld_shlibs_GCJ=yes
21459 if test "$with_gnu_ld" = yes; then
21460 # If archive_cmds runs LD, not CC, wlarc should be empty
21461 wlarc='${wl}'
21462
21463 # See if GNU ld supports shared libraries.
21464 case $host_os in
21465 aix3* | aix4* | aix5*)
21466 # On AIX/PPC, the GNU linker is very broken
21467 if test "$host_cpu" != ia64; then
21468 ld_shlibs_GCJ=no
21469 cat <<EOF 1>&2
21470
21471*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21472*** to be unable to reliably create shared libraries on AIX.
21473*** Therefore, libtool is disabling shared libraries support. If you
21474*** really care for shared libraries, you may want to modify your PATH
21475*** so that a non-GNU linker is found, and then restart.
21476
21477EOF
21478 fi
21479 ;;
21480
21481 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021482 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 +000021483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21484 hardcode_minus_L_GCJ=yes
21485
21486 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21487 # that the semantics of dynamic libraries on AmigaOS, at least up
21488 # to version 4, is to share data among multiple programs linked
21489 # with the same dynamic library. Since this doesn't match the
21490 # behavior of shared libraries on other platforms, we can't use
21491 # them.
21492 ld_shlibs_GCJ=no
21493 ;;
21494
21495 beos*)
21496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21497 allow_undefined_flag_GCJ=unsupported
21498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21499 # support --undefined. This deserves some investigation. FIXME
21500 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501 else
21502 ld_shlibs_GCJ=no
21503 fi
21504 ;;
21505
21506 cygwin* | mingw* | pw32*)
21507 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21508 # as there is no search path for DLLs.
21509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21510 allow_undefined_flag_GCJ=unsupported
21511 always_export_symbols_GCJ=no
21512 enable_shared_with_static_runtimes_GCJ=yes
21513 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21514
21515 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21517 # If the export-symbols file already is a .def file (1st line
21518 # is EXPORTS), use it as is; otherwise, prepend...
21519 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21520 cp $export_symbols $output_objdir/$soname.def;
21521 else
21522 echo EXPORTS > $output_objdir/$soname.def;
21523 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021524 fi~
21525 $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 +000021526 else
21527 ld_shlibs=no
21528 fi
21529 ;;
21530
21531 netbsd*)
21532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21533 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21534 wlarc=
21535 else
21536 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21537 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21538 fi
21539 ;;
21540
21541 solaris* | sysv5*)
21542 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21543 ld_shlibs_GCJ=no
21544 cat <<EOF 1>&2
21545
21546*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21547*** create shared libraries on Solaris systems. Therefore, libtool
21548*** is disabling shared libraries support. We urge you to upgrade GNU
21549*** binutils to release 2.9.1 or newer. Another option is to modify
21550*** your PATH or compiler configuration so that the native linker is
21551*** used, and then restart.
21552
21553EOF
21554 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21556 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21557 else
21558 ld_shlibs_GCJ=no
21559 fi
21560 ;;
21561
21562 sunos4*)
21563 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21564 wlarc=
21565 hardcode_direct_GCJ=yes
21566 hardcode_shlibpath_var_GCJ=no
21567 ;;
21568
Reid Spencer2706f8c2004-09-19 23:53:36 +000021569 linux*)
21570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21571 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21572 archive_cmds_GCJ="$tmp_archive_cmds"
21573 supports_anon_versioning=no
21574 case `$LD -v 2>/dev/null` in
21575 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21576 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21577 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21578 *\ 2.11.*) ;; # other 2.11 versions
21579 *) supports_anon_versioning=yes ;;
21580 esac
21581 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021582 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21583cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21584$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021585 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21586 else
21587 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21588 fi
21589 else
21590 ld_shlibs_GCJ=no
21591 fi
21592 ;;
21593
John Criswell47fdd832003-07-14 16:52:07 +000021594 *)
21595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21598 else
21599 ld_shlibs_GCJ=no
21600 fi
21601 ;;
21602 esac
21603
21604 if test "$ld_shlibs_GCJ" = yes; then
21605 runpath_var=LD_RUN_PATH
21606 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21607 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21608 # ancient GNU ld didn't support --whole-archive et. al.
21609 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21610 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21611 else
21612 whole_archive_flag_spec_GCJ=
21613 fi
21614 fi
21615 else
21616 # PORTME fill in a description of your system's linker (not GNU ld)
21617 case $host_os in
21618 aix3*)
21619 allow_undefined_flag_GCJ=unsupported
21620 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021621 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 +000021622 # Note: this linker hardcodes the directories in LIBPATH if there
21623 # are no directories specified by -L.
21624 hardcode_minus_L_GCJ=yes
21625 if test "$GCC" = yes && test -z "$link_static_flag"; then
21626 # Neither direct hardcoding nor static linking is supported with a
21627 # broken collect2.
21628 hardcode_direct_GCJ=unsupported
21629 fi
21630 ;;
21631
21632 aix4* | aix5*)
21633 if test "$host_cpu" = ia64; then
21634 # On IA64, the linker does run time linking by default, so we don't
21635 # have to do anything special.
21636 aix_use_runtimelinking=no
21637 exp_sym_flag='-Bexport'
21638 no_entry_flag=""
21639 else
21640 # If we're using GNU nm, then we don't want the "-C" option.
21641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21643 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'
21644 else
21645 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'
21646 fi
21647 aix_use_runtimelinking=no
21648
21649 # Test if we are trying to use run time linking or normal
21650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21651 # need to do runtime linking.
21652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21653 for ld_flag in $LDFLAGS; do
21654 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21655 aix_use_runtimelinking=yes
21656 break
21657 fi
21658 done
21659 esac
21660
21661 exp_sym_flag='-bexport'
21662 no_entry_flag='-bnoentry'
21663 fi
21664
21665 # When large executables or shared objects are built, AIX ld can
21666 # have problems creating the table of contents. If linking a library
21667 # or program results in "error TOC overflow" add -mminimal-toc to
21668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21670
21671 archive_cmds_GCJ=''
21672 hardcode_direct_GCJ=yes
21673 hardcode_libdir_separator_GCJ=':'
21674 link_all_deplibs_GCJ=yes
21675
21676 if test "$GCC" = yes; then
21677 case $host_os in aix4.012|aix4.012.*)
21678 # We only want to do this on AIX 4.2 and lower, the check
21679 # below for broken collect2 doesn't work under 4.3+
21680 collect2name=`${CC} -print-prog-name=collect2`
21681 if test -f "$collect2name" && \
21682 strings "$collect2name" | grep resolve_lib_name >/dev/null
21683 then
21684 # We have reworked collect2
21685 hardcode_direct_GCJ=yes
21686 else
21687 # We have old collect2
21688 hardcode_direct_GCJ=unsupported
21689 # It fails to find uninstalled libraries when the uninstalled
21690 # path is not listed in the libpath. Setting hardcode_minus_L
21691 # to unsupported forces relinking
21692 hardcode_minus_L_GCJ=yes
21693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21694 hardcode_libdir_separator_GCJ=
21695 fi
21696 esac
21697 shared_flag='-shared'
21698 else
21699 # not using gcc
21700 if test "$host_cpu" = ia64; then
21701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21702 # chokes on -Wl,-G. The following line is correct:
21703 shared_flag='-G'
21704 else
21705 if test "$aix_use_runtimelinking" = yes; then
21706 shared_flag='${wl}-G'
21707 else
21708 shared_flag='${wl}-bM:SRE'
21709 fi
21710 fi
21711 fi
21712
21713 # It seems that -bexpall does not export symbols beginning with
21714 # underscore (_), so it is better to generate a list of symbols to export.
21715 always_export_symbols_GCJ=yes
21716 if test "$aix_use_runtimelinking" = yes; then
21717 # Warning - without using the other runtime loading flags (-brtl),
21718 # -berok will link without error, but may produce a broken library.
21719 allow_undefined_flag_GCJ='-berok'
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021722/* confdefs.h. */
21723_ACEOF
21724cat confdefs.h >>conftest.$ac_ext
21725cat >>conftest.$ac_ext <<_ACEOF
21726/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021727
John Criswell47fdd832003-07-14 16:52:07 +000021728int
21729main ()
21730{
21731
21732 ;
21733 return 0;
21734}
21735_ACEOF
21736rm -f conftest.$ac_objext conftest$ac_exeext
21737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021745 { ac_try='test -z "$ac_c_werror_flag"
21746 || test ! -s conftest.err'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758
21759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21760}'`
21761# Check for a 64-bit object if we didn't find anything.
21762if 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; }
21763}'`; fi
21764else
21765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021766sed 's/^/| /' conftest.$ac_ext >&5
21767
John Criswell47fdd832003-07-14 16:52:07 +000021768fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021769rm -f conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021771if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21772
21773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21774 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"
21775 else
21776 if test "$host_cpu" = ia64; then
21777 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21778 allow_undefined_flag_GCJ="-z nodefs"
21779 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"
21780 else
21781 # Determine the default libpath from the value encoded in an empty executable.
21782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021783/* confdefs.h. */
21784_ACEOF
21785cat confdefs.h >>conftest.$ac_ext
21786cat >>conftest.$ac_ext <<_ACEOF
21787/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021788
John Criswell47fdd832003-07-14 16:52:07 +000021789int
21790main ()
21791{
21792
21793 ;
21794 return 0;
21795}
21796_ACEOF
21797rm -f conftest.$ac_objext conftest$ac_exeext
21798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021799 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806 { ac_try='test -z "$ac_c_werror_flag"
21807 || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819
21820aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21821}'`
21822# Check for a 64-bit object if we didn't find anything.
21823if 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; }
21824}'`; fi
21825else
21826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021827sed 's/^/| /' conftest.$ac_ext >&5
21828
John Criswell47fdd832003-07-14 16:52:07 +000021829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021830rm -f conftest.err conftest.$ac_objext \
21831 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21833
21834 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21835 # Warning - without using the other run time loading flags,
21836 # -berok will link without error, but may produce a broken library.
21837 no_undefined_flag_GCJ=' ${wl}-bernotok'
21838 allow_undefined_flag_GCJ=' ${wl}-berok'
21839 # -bexpall does not export symbols beginning with underscore (_)
21840 always_export_symbols_GCJ=yes
21841 # Exported symbols can be pulled into shared objects from archives
21842 whole_archive_flag_spec_GCJ=' '
21843 archive_cmds_need_lc_GCJ=yes
21844 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021845 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 +000021846 fi
21847 fi
21848 ;;
21849
21850 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021851 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 +000021852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21853 hardcode_minus_L_GCJ=yes
21854 # see comment about different semantics on the GNU ld section
21855 ld_shlibs_GCJ=no
21856 ;;
21857
Reid Spencer2706f8c2004-09-19 23:53:36 +000021858 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021859 export_dynamic_flag_spec_GCJ=-rdynamic
21860 ;;
21861
21862 cygwin* | mingw* | pw32*)
21863 # When not using gcc, we currently assume that we are using
21864 # Microsoft Visual C++.
21865 # hardcode_libdir_flag_spec is actually meaningless, as there is
21866 # no search path for DLLs.
21867 hardcode_libdir_flag_spec_GCJ=' '
21868 allow_undefined_flag_GCJ=unsupported
21869 # Tell ltmain to make .lib files, not .a files.
21870 libext=lib
21871 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021872 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021873 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021874 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 +000021875 # The linker will automatically build a .lib file if we build a DLL.
21876 old_archive_From_new_cmds_GCJ='true'
21877 # FIXME: Should let the user specify the lib program.
21878 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21879 fix_srcfile_path='`cygpath -w "$srcfile"`'
21880 enable_shared_with_static_runtimes_GCJ=yes
21881 ;;
21882
21883 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021884 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021885 rhapsody* | darwin1.[012])
21886 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21887 ;;
21888 *) # Darwin 1.3 on
21889 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21890 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21891 else
21892 case ${MACOSX_DEPLOYMENT_TARGET} in
21893 10.[012])
21894 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21895 ;;
21896 10.*)
21897 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21898 ;;
21899 esac
21900 fi
21901 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021902 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021903 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021904 hardcode_direct_GCJ=no
21905 hardcode_automatic_GCJ=yes
21906 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021907 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021908 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021909 if test "$GCC" = yes ; then
21910 output_verbose_link_cmd='echo'
21911 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21912 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21913 # 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 +000021914 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}'
21915 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 +000021916 else
21917 case "$cc_basename" in
21918 xlc*)
21919 output_verbose_link_cmd='echo'
21920 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21921 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21922 # 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 +000021923 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}'
21924 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 +000021925 ;;
21926 *)
21927 ld_shlibs_GCJ=no
21928 ;;
21929 esac
John Criswell47fdd832003-07-14 16:52:07 +000021930 fi
21931 ;;
21932
21933 dgux*)
21934 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21936 hardcode_shlibpath_var_GCJ=no
21937 ;;
21938
21939 freebsd1*)
21940 ld_shlibs_GCJ=no
21941 ;;
21942
21943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21944 # support. Future versions do this automatically, but an explicit c++rt0.o
21945 # does not break anything, and helps significantly (at the cost of a little
21946 # extra space).
21947 freebsd2.2*)
21948 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21949 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21950 hardcode_direct_GCJ=yes
21951 hardcode_shlibpath_var_GCJ=no
21952 ;;
21953
21954 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21955 freebsd2*)
21956 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21957 hardcode_direct_GCJ=yes
21958 hardcode_minus_L_GCJ=yes
21959 hardcode_shlibpath_var_GCJ=no
21960 ;;
21961
21962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021963 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021964 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21966 hardcode_direct_GCJ=yes
21967 hardcode_shlibpath_var_GCJ=no
21968 ;;
21969
21970 hpux9*)
21971 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021972 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 +000021973 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021974 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 +000021975 fi
21976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21977 hardcode_libdir_separator_GCJ=:
21978 hardcode_direct_GCJ=yes
21979
21980 # hardcode_minus_L: Not really in the search PATH,
21981 # but as the default location of the library.
21982 hardcode_minus_L_GCJ=yes
21983 export_dynamic_flag_spec_GCJ='${wl}-E'
21984 ;;
21985
21986 hpux10* | hpux11*)
21987 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21988 case "$host_cpu" in
21989 hppa*64*|ia64*)
21990 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21991 ;;
21992 *)
21993 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21994 ;;
21995 esac
21996 else
21997 case "$host_cpu" in
21998 hppa*64*|ia64*)
21999 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22000 ;;
22001 *)
22002 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22003 ;;
22004 esac
22005 fi
22006 if test "$with_gnu_ld" = no; then
22007 case "$host_cpu" in
22008 hppa*64*)
22009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22010 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22011 hardcode_libdir_separator_GCJ=:
22012 hardcode_direct_GCJ=no
22013 hardcode_shlibpath_var_GCJ=no
22014 ;;
22015 ia64*)
22016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22017 hardcode_direct_GCJ=no
22018 hardcode_shlibpath_var_GCJ=no
22019
22020 # hardcode_minus_L: Not really in the search PATH,
22021 # but as the default location of the library.
22022 hardcode_minus_L_GCJ=yes
22023 ;;
22024 *)
22025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22026 hardcode_libdir_separator_GCJ=:
22027 hardcode_direct_GCJ=yes
22028 export_dynamic_flag_spec_GCJ='${wl}-E'
22029
22030 # hardcode_minus_L: Not really in the search PATH,
22031 # but as the default location of the library.
22032 hardcode_minus_L_GCJ=yes
22033 ;;
22034 esac
22035 fi
22036 ;;
22037
22038 irix5* | irix6* | nonstopux*)
22039 if test "$GCC" = yes; then
22040 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'
22041 else
22042 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'
22043 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22044 fi
22045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22046 hardcode_libdir_separator_GCJ=:
22047 link_all_deplibs_GCJ=yes
22048 ;;
22049
22050 netbsd*)
22051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22053 else
22054 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22055 fi
22056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22057 hardcode_direct_GCJ=yes
22058 hardcode_shlibpath_var_GCJ=no
22059 ;;
22060
22061 newsos6)
22062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22063 hardcode_direct_GCJ=yes
22064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22065 hardcode_libdir_separator_GCJ=:
22066 hardcode_shlibpath_var_GCJ=no
22067 ;;
22068
22069 openbsd*)
22070 hardcode_direct_GCJ=yes
22071 hardcode_shlibpath_var_GCJ=no
22072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22073 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022074 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 +000022075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22076 export_dynamic_flag_spec_GCJ='${wl}-E'
22077 else
22078 case $host_os in
22079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22081 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22082 ;;
22083 *)
22084 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22086 ;;
22087 esac
22088 fi
22089 ;;
22090
22091 os2*)
22092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22093 hardcode_minus_L_GCJ=yes
22094 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022095 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 +000022096 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22097 ;;
22098
22099 osf3*)
22100 if test "$GCC" = yes; then
22101 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22102 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'
22103 else
22104 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22105 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'
22106 fi
22107 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22108 hardcode_libdir_separator_GCJ=:
22109 ;;
22110
22111 osf4* | osf5*) # as osf3* with the addition of -msym flag
22112 if test "$GCC" = yes; then
22113 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22114 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'
22115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22116 else
22117 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22118 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 +000022119 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~
22120 $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'
22121
John Criswell47fdd832003-07-14 16:52:07 +000022122 # Both c and cxx compiler support -rpath directly
22123 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22124 fi
22125 hardcode_libdir_separator_GCJ=:
22126 ;;
22127
22128 sco3.2v5*)
22129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130 hardcode_shlibpath_var_GCJ=no
22131 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22132 runpath_var=LD_RUN_PATH
22133 hardcode_runpath_var=yes
22134 ;;
22135
22136 solaris*)
22137 no_undefined_flag_GCJ=' -z text'
22138 if test "$GCC" = yes; then
22139 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022140 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22141 $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 +000022142 else
22143 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022144 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22145 $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 +000022146 fi
22147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22148 hardcode_shlibpath_var_GCJ=no
22149 case $host_os in
22150 solaris2.[0-5] | solaris2.[0-5].*) ;;
22151 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22152 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22153 esac
22154 link_all_deplibs_GCJ=yes
22155 ;;
22156
22157 sunos4*)
22158 if test "x$host_vendor" = xsequent; then
22159 # Use $CC to link under sequent, because it throws in some extra .o
22160 # files that make .init and .fini sections work.
22161 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22162 else
22163 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22164 fi
22165 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22166 hardcode_direct_GCJ=yes
22167 hardcode_minus_L_GCJ=yes
22168 hardcode_shlibpath_var_GCJ=no
22169 ;;
22170
22171 sysv4)
22172 case $host_vendor in
22173 sni)
22174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_direct_GCJ=yes # is this really true???
22176 ;;
22177 siemens)
22178 ## LD is ld it makes a PLAMLIB
22179 ## CC just makes a GrossModule.
22180 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22181 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22182 hardcode_direct_GCJ=no
22183 ;;
22184 motorola)
22185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22186 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22187 ;;
22188 esac
22189 runpath_var='LD_RUN_PATH'
22190 hardcode_shlibpath_var_GCJ=no
22191 ;;
22192
22193 sysv4.3*)
22194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195 hardcode_shlibpath_var_GCJ=no
22196 export_dynamic_flag_spec_GCJ='-Bexport'
22197 ;;
22198
22199 sysv4*MP*)
22200 if test -d /usr/nec; then
22201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22202 hardcode_shlibpath_var_GCJ=no
22203 runpath_var=LD_RUN_PATH
22204 hardcode_runpath_var=yes
22205 ld_shlibs_GCJ=yes
22206 fi
22207 ;;
22208
22209 sysv4.2uw2*)
22210 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22211 hardcode_direct_GCJ=yes
22212 hardcode_minus_L_GCJ=no
22213 hardcode_shlibpath_var_GCJ=no
22214 hardcode_runpath_var=yes
22215 runpath_var=LD_RUN_PATH
22216 ;;
22217
22218 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22219 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22220 if test "$GCC" = yes; then
22221 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22222 else
22223 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22224 fi
22225 runpath_var='LD_RUN_PATH'
22226 hardcode_shlibpath_var_GCJ=no
22227 ;;
22228
22229 sysv5*)
22230 no_undefined_flag_GCJ=' -z text'
22231 # $CC -shared without GNU ld will not create a library from C++
22232 # object files and a static libstdc++, better avoid it by now
22233 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022234 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22235 $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 +000022236 hardcode_libdir_flag_spec_GCJ=
22237 hardcode_shlibpath_var_GCJ=no
22238 runpath_var='LD_RUN_PATH'
22239 ;;
22240
22241 uts4*)
22242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22244 hardcode_shlibpath_var_GCJ=no
22245 ;;
22246
22247 *)
22248 ld_shlibs_GCJ=no
22249 ;;
22250 esac
22251 fi
22252
22253echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22254echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22255test "$ld_shlibs_GCJ" = no && can_build_shared=no
22256
22257variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22258if test "$GCC" = yes; then
22259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22260fi
22261
22262#
22263# Do we need to explicitly link libc?
22264#
22265case "x$archive_cmds_need_lc_GCJ" in
22266x|xyes)
22267 # Assume -lc should be added
22268 archive_cmds_need_lc_GCJ=yes
22269
22270 if test "$enable_shared" = yes && test "$GCC" = yes; then
22271 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022272 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022273 # FIXME: we may have to deal with multi-command sequences.
22274 ;;
22275 '$CC '*)
22276 # Test whether the compiler implicitly links with -lc since on some
22277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22278 # to ld, don't add -lc before -lgcc.
22279 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22280echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22281 $rm conftest*
22282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22283
22284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } 2>conftest.err; then
22289 soname=conftest
22290 lib=conftest
22291 libobjs=conftest.$ac_objext
22292 deplibs=
22293 wl=$lt_prog_compiler_wl_GCJ
22294 compiler_flags=-v
22295 linker_flags=-v
22296 verstring=
22297 output_objdir=.
22298 libname=conftest
22299 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22300 allow_undefined_flag_GCJ=
22301 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22302 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }
22306 then
22307 archive_cmds_need_lc_GCJ=no
22308 else
22309 archive_cmds_need_lc_GCJ=yes
22310 fi
22311 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22312 else
22313 cat conftest.err 1>&5
22314 fi
22315 $rm conftest*
22316 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22317echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22318 ;;
22319 esac
22320 fi
22321 ;;
22322esac
22323
John Criswell47fdd832003-07-14 16:52:07 +000022324echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22325echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22326library_names_spec=
22327libname_spec='lib$name'
22328soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022329shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022330postinstall_cmds=
22331postuninstall_cmds=
22332finish_cmds=
22333finish_eval=
22334shlibpath_var=
22335shlibpath_overrides_runpath=unknown
22336version_type=none
22337dynamic_linker="$host_os ld.so"
22338sys_lib_dlsearch_path_spec="/lib /usr/lib"
22339if test "$GCC" = yes; then
22340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22341 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22342 # if the path contains ";" then we assume it to be the separator
22343 # otherwise default to the standard path separator (i.e. ":") - it is
22344 # assumed that no part of a normal pathname contains ";" but that should
22345 # okay in the real world where ";" in dirpaths is itself problematic.
22346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22347 else
22348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22349 fi
22350else
22351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22352fi
22353need_lib_prefix=unknown
22354hardcode_into_libs=no
22355
22356# when you set need_version to no, make sure it does not cause -set_version
22357# flags to be left without arguments
22358need_version=unknown
22359
22360case $host_os in
22361aix3*)
22362 version_type=linux
22363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22364 shlibpath_var=LIBPATH
22365
22366 # AIX 3 has no versioning support, so we append a major version to the name.
22367 soname_spec='${libname}${release}${shared_ext}$major'
22368 ;;
22369
22370aix4* | aix5*)
22371 version_type=linux
22372 need_lib_prefix=no
22373 need_version=no
22374 hardcode_into_libs=yes
22375 if test "$host_cpu" = ia64; then
22376 # AIX 5 supports IA64
22377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22378 shlibpath_var=LD_LIBRARY_PATH
22379 else
22380 # With GCC up to 2.95.x, collect2 would create an import file
22381 # for dependence libraries. The import file would start with
22382 # the line `#! .'. This would cause the generated library to
22383 # depend on `.', always an invalid library. This was fixed in
22384 # development snapshots of GCC prior to 3.0.
22385 case $host_os in
22386 aix4 | aix4.[01] | aix4.[01].*)
22387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22388 echo ' yes '
22389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22390 :
22391 else
22392 can_build_shared=no
22393 fi
22394 ;;
22395 esac
22396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22397 # soname into executable. Probably we can add versioning support to
22398 # collect2, so additional links can be useful in future.
22399 if test "$aix_use_runtimelinking" = yes; then
22400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22401 # instead of lib<name>.a to let people know that these are not
22402 # typical AIX shared libraries.
22403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22404 else
22405 # We preserve .a as extension for shared libraries through AIX4.2
22406 # and later when we are not doing run time linking.
22407 library_names_spec='${libname}${release}.a $libname.a'
22408 soname_spec='${libname}${release}${shared_ext}$major'
22409 fi
22410 shlibpath_var=LIBPATH
22411 fi
22412 ;;
22413
22414amigaos*)
22415 library_names_spec='$libname.ixlibrary $libname.a'
22416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022417 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 +000022418 ;;
22419
22420beos*)
22421 library_names_spec='${libname}${shared_ext}'
22422 dynamic_linker="$host_os ld.so"
22423 shlibpath_var=LIBRARY_PATH
22424 ;;
22425
Reid Spencer2706f8c2004-09-19 23:53:36 +000022426bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022427 version_type=linux
22428 need_version=no
22429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22432 shlibpath_var=LD_LIBRARY_PATH
22433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22435 # the default ld.so.conf also contains /usr/contrib/lib and
22436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22437 # libtool to hard-code these into programs
22438 ;;
22439
22440cygwin* | mingw* | pw32*)
22441 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022442 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022443 need_version=no
22444 need_lib_prefix=no
22445
22446 case $GCC,$host_os in
22447 yes,cygwin* | yes,mingw* | yes,pw32*)
22448 library_names_spec='$libname.dll.a'
22449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022450 postinstall_cmds='base_file=`basename \${file}`~
22451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22452 dldir=$destdir/`dirname \$dlpath`~
22453 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022454 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22456 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022457 $rm \$dlpath'
22458 shlibpath_overrides_runpath=yes
22459
22460 case $host_os in
22461 cygwin*)
22462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22463 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 +000022464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022465 ;;
22466 mingw*)
22467 # MinGW DLLs use traditional 'lib' prefix
22468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22470 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22471 # It is most probably a Windows format PATH printed by
22472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22473 # path with ; separators, and with drive letters. We can handle the
22474 # drive letters (cygwin fileutils understands them), so leave them,
22475 # especially as we might pass files found there to a mingw objdump,
22476 # which wouldn't understand a cygwinified path. Ahh.
22477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22478 else
22479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22480 fi
22481 ;;
22482 pw32*)
22483 # pw32 DLLs use 'pw' prefix rather than 'lib'
22484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22485 ;;
22486 esac
22487 ;;
22488
22489 *)
22490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22491 ;;
22492 esac
22493 dynamic_linker='Win32 ld.exe'
22494 # FIXME: first we should search . and the directory the executable is in
22495 shlibpath_var=PATH
22496 ;;
22497
22498darwin* | rhapsody*)
22499 dynamic_linker="$host_os dyld"
22500 version_type=darwin
22501 need_lib_prefix=no
22502 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022503 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022504 soname_spec='${libname}${release}${major}$shared_ext'
22505 shlibpath_overrides_runpath=yes
22506 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022507 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022508 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022509 if test "$GCC" = yes; then
22510 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"`
22511 else
22512 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022513 fi
22514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22515 ;;
22516
22517dgux*)
22518 version_type=linux
22519 need_lib_prefix=no
22520 need_version=no
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22522 soname_spec='${libname}${release}${shared_ext}$major'
22523 shlibpath_var=LD_LIBRARY_PATH
22524 ;;
22525
22526freebsd1*)
22527 dynamic_linker=no
22528 ;;
22529
Reid Spencer2706f8c2004-09-19 23:53:36 +000022530kfreebsd*-gnu)
22531 version_type=linux
22532 need_lib_prefix=no
22533 need_version=no
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22535 soname_spec='${libname}${release}${shared_ext}$major'
22536 shlibpath_var=LD_LIBRARY_PATH
22537 shlibpath_overrides_runpath=no
22538 hardcode_into_libs=yes
22539 dynamic_linker='GNU ld.so'
22540 ;;
22541
John Criswell47fdd832003-07-14 16:52:07 +000022542freebsd*)
22543 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22544 version_type=freebsd-$objformat
22545 case $version_type in
22546 freebsd-elf*)
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22548 need_version=no
22549 need_lib_prefix=no
22550 ;;
22551 freebsd-*)
22552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22553 need_version=yes
22554 ;;
22555 esac
22556 shlibpath_var=LD_LIBRARY_PATH
22557 case $host_os in
22558 freebsd2*)
22559 shlibpath_overrides_runpath=yes
22560 ;;
22561 freebsd3.01* | freebsdelf3.01*)
22562 shlibpath_overrides_runpath=yes
22563 hardcode_into_libs=yes
22564 ;;
22565 *) # from 3.2 on
22566 shlibpath_overrides_runpath=no
22567 hardcode_into_libs=yes
22568 ;;
22569 esac
22570 ;;
22571
22572gnu*)
22573 version_type=linux
22574 need_lib_prefix=no
22575 need_version=no
22576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22578 shlibpath_var=LD_LIBRARY_PATH
22579 hardcode_into_libs=yes
22580 ;;
22581
22582hpux9* | hpux10* | hpux11*)
22583 # Give a soname corresponding to the major version so that dld.sl refuses to
22584 # link against other versions.
22585 version_type=sunos
22586 need_lib_prefix=no
22587 need_version=no
22588 case "$host_cpu" in
22589 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022590 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022591 hardcode_into_libs=yes
22592 dynamic_linker="$host_os dld.so"
22593 shlibpath_var=LD_LIBRARY_PATH
22594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22596 soname_spec='${libname}${release}${shared_ext}$major'
22597 if test "X$HPUX_IA64_MODE" = X32; then
22598 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22599 else
22600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22601 fi
22602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22603 ;;
22604 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022605 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022606 hardcode_into_libs=yes
22607 dynamic_linker="$host_os dld.sl"
22608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 soname_spec='${libname}${release}${shared_ext}$major'
22612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22614 ;;
22615 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022616 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022617 dynamic_linker="$host_os dld.sl"
22618 shlibpath_var=SHLIB_PATH
22619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 soname_spec='${libname}${release}${shared_ext}$major'
22622 ;;
22623 esac
22624 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22625 postinstall_cmds='chmod 555 $lib'
22626 ;;
22627
22628irix5* | irix6* | nonstopux*)
22629 case $host_os in
22630 nonstopux*) version_type=nonstopux ;;
22631 *)
22632 if test "$lt_cv_prog_gnu_ld" = yes; then
22633 version_type=linux
22634 else
22635 version_type=irix
22636 fi ;;
22637 esac
22638 need_lib_prefix=no
22639 need_version=no
22640 soname_spec='${libname}${release}${shared_ext}$major'
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22642 case $host_os in
22643 irix5* | nonstopux*)
22644 libsuff= shlibsuff=
22645 ;;
22646 *)
22647 case $LD in # libtool.m4 will add one of these switches to LD
22648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22649 libsuff= shlibsuff= libmagic=32-bit;;
22650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22651 libsuff=32 shlibsuff=N32 libmagic=N32;;
22652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22654 *) libsuff= shlibsuff= libmagic=never-match;;
22655 esac
22656 ;;
22657 esac
22658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22659 shlibpath_overrides_runpath=no
22660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22662 hardcode_into_libs=yes
22663 ;;
22664
22665# No shared lib support for Linux oldld, aout, or coff.
22666linux*oldld* | linux*aout* | linux*coff*)
22667 dynamic_linker=no
22668 ;;
22669
22670# This must be Linux ELF.
22671linux*)
22672 version_type=linux
22673 need_lib_prefix=no
22674 need_version=no
22675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22676 soname_spec='${libname}${release}${shared_ext}$major'
22677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22678 shlibpath_var=LD_LIBRARY_PATH
22679 shlibpath_overrides_runpath=no
22680 # This implies no fast_install, which is unacceptable.
22681 # Some rework will be needed to allow for fast_install
22682 # before this can be enabled.
22683 hardcode_into_libs=yes
22684
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685 # Append ld.so.conf contents to the search path
22686 if test -f /etc/ld.so.conf; then
22687 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22689 fi
22690
John Criswell47fdd832003-07-14 16:52:07 +000022691 # We used to test for /lib/ld.so.1 and disable shared libraries on
22692 # powerpc, because MkLinux only supported shared libraries with the
22693 # GNU dynamic linker. Since this was broken with cross compilers,
22694 # most powerpc-linux boxes support dynamic linking these days and
22695 # people can always --disable-shared, the test was removed, and we
22696 # assume the GNU/Linux dynamic linker is in use.
22697 dynamic_linker='GNU/Linux ld.so'
22698 ;;
22699
Reid Spencer2706f8c2004-09-19 23:53:36 +000022700knetbsd*-gnu)
22701 version_type=linux
22702 need_lib_prefix=no
22703 need_version=no
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22705 soname_spec='${libname}${release}${shared_ext}$major'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 shlibpath_overrides_runpath=no
22708 hardcode_into_libs=yes
22709 dynamic_linker='GNU ld.so'
22710 ;;
22711
John Criswell47fdd832003-07-14 16:52:07 +000022712netbsd*)
22713 version_type=sunos
22714 need_lib_prefix=no
22715 need_version=no
22716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22719 dynamic_linker='NetBSD (a.out) ld.so'
22720 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022722 soname_spec='${libname}${release}${shared_ext}$major'
22723 dynamic_linker='NetBSD ld.elf_so'
22724 fi
22725 shlibpath_var=LD_LIBRARY_PATH
22726 shlibpath_overrides_runpath=yes
22727 hardcode_into_libs=yes
22728 ;;
22729
22730newsos6)
22731 version_type=linux
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 shlibpath_var=LD_LIBRARY_PATH
22734 shlibpath_overrides_runpath=yes
22735 ;;
22736
Reid Spencer2706f8c2004-09-19 23:53:36 +000022737nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022738 version_type=linux
22739 need_lib_prefix=no
22740 need_version=no
22741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22742 soname_spec='${libname}${release}${shared_ext}$major'
22743 shlibpath_var=LD_LIBRARY_PATH
22744 shlibpath_overrides_runpath=yes
22745 ;;
22746
22747openbsd*)
22748 version_type=sunos
22749 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022750 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22753 shlibpath_var=LD_LIBRARY_PATH
22754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22755 case $host_os in
22756 openbsd2.[89] | openbsd2.[89].*)
22757 shlibpath_overrides_runpath=no
22758 ;;
22759 *)
22760 shlibpath_overrides_runpath=yes
22761 ;;
22762 esac
22763 else
22764 shlibpath_overrides_runpath=yes
22765 fi
22766 ;;
22767
22768os2*)
22769 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022770 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022771 need_lib_prefix=no
22772 library_names_spec='$libname${shared_ext} $libname.a'
22773 dynamic_linker='OS/2 ld.exe'
22774 shlibpath_var=LIBPATH
22775 ;;
22776
22777osf3* | osf4* | osf5*)
22778 version_type=osf
22779 need_lib_prefix=no
22780 need_version=no
22781 soname_spec='${libname}${release}${shared_ext}$major'
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 shlibpath_var=LD_LIBRARY_PATH
22784 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22785 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22786 ;;
22787
22788sco3.2v5*)
22789 version_type=osf
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 ;;
22794
22795solaris*)
22796 version_type=linux
22797 need_lib_prefix=no
22798 need_version=no
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 shlibpath_overrides_runpath=yes
22803 hardcode_into_libs=yes
22804 # ldd complains unless libraries are executable
22805 postinstall_cmds='chmod +x $lib'
22806 ;;
22807
22808sunos4*)
22809 version_type=sunos
22810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22812 shlibpath_var=LD_LIBRARY_PATH
22813 shlibpath_overrides_runpath=yes
22814 if test "$with_gnu_ld" = yes; then
22815 need_lib_prefix=no
22816 fi
22817 need_version=yes
22818 ;;
22819
22820sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22821 version_type=linux
22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22823 soname_spec='${libname}${release}${shared_ext}$major'
22824 shlibpath_var=LD_LIBRARY_PATH
22825 case $host_vendor in
22826 sni)
22827 shlibpath_overrides_runpath=no
22828 need_lib_prefix=no
22829 export_dynamic_flag_spec='${wl}-Blargedynsym'
22830 runpath_var=LD_RUN_PATH
22831 ;;
22832 siemens)
22833 need_lib_prefix=no
22834 ;;
22835 motorola)
22836 need_lib_prefix=no
22837 need_version=no
22838 shlibpath_overrides_runpath=no
22839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22840 ;;
22841 esac
22842 ;;
22843
22844sysv4*MP*)
22845 if test -d /usr/nec ;then
22846 version_type=linux
22847 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22848 soname_spec='$libname${shared_ext}.$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 fi
22851 ;;
22852
22853uts4*)
22854 version_type=linux
22855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22856 soname_spec='${libname}${release}${shared_ext}$major'
22857 shlibpath_var=LD_LIBRARY_PATH
22858 ;;
22859
22860*)
22861 dynamic_linker=no
22862 ;;
22863esac
22864echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22865echo "${ECHO_T}$dynamic_linker" >&6
22866test "$dynamic_linker" = no && can_build_shared=no
22867
Reid Spencer2706f8c2004-09-19 23:53:36 +000022868echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22869echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22870hardcode_action_GCJ=
22871if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22872 test -n "$runpath_var_GCJ" || \
22873 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22874
22875 # We can hardcode non-existant directories.
22876 if test "$hardcode_direct_GCJ" != no &&
22877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22878 # have to relink, otherwise we might link with an installed library
22879 # when we should be linking with a yet-to-be-installed one
22880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22881 test "$hardcode_minus_L_GCJ" != no; then
22882 # Linking always hardcodes the temporary library directory.
22883 hardcode_action_GCJ=relink
22884 else
22885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22886 hardcode_action_GCJ=immediate
22887 fi
22888else
22889 # We cannot hardcode anything, or else we can only hardcode existing
22890 # directories.
22891 hardcode_action_GCJ=unsupported
22892fi
22893echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22894echo "${ECHO_T}$hardcode_action_GCJ" >&6
22895
22896if test "$hardcode_action_GCJ" = relink; then
22897 # Fast installation is not supported
22898 enable_fast_install=no
22899elif test "$shlibpath_overrides_runpath" = yes ||
22900 test "$enable_shared" = no; then
22901 # Fast installation is not necessary
22902 enable_fast_install=needless
22903fi
22904
22905striplib=
22906old_striplib=
22907echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22908echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22909if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22911 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22912 echo "$as_me:$LINENO: result: yes" >&5
22913echo "${ECHO_T}yes" >&6
22914else
22915# FIXME - insert some real tests, host_os isn't really good enough
22916 case $host_os in
22917 darwin*)
22918 if test -n "$STRIP" ; then
22919 striplib="$STRIP -x"
22920 echo "$as_me:$LINENO: result: yes" >&5
22921echo "${ECHO_T}yes" >&6
22922 else
22923 echo "$as_me:$LINENO: result: no" >&5
22924echo "${ECHO_T}no" >&6
22925fi
22926 ;;
22927 *)
22928 echo "$as_me:$LINENO: result: no" >&5
22929echo "${ECHO_T}no" >&6
22930 ;;
22931 esac
22932fi
22933
John Criswell47fdd832003-07-14 16:52:07 +000022934if test "x$enable_dlopen" != xyes; then
22935 enable_dlopen=unknown
22936 enable_dlopen_self=unknown
22937 enable_dlopen_self_static=unknown
22938else
22939 lt_cv_dlopen=no
22940 lt_cv_dlopen_libs=
22941
22942 case $host_os in
22943 beos*)
22944 lt_cv_dlopen="load_add_on"
22945 lt_cv_dlopen_libs=
22946 lt_cv_dlopen_self=yes
22947 ;;
22948
22949 mingw* | pw32*)
22950 lt_cv_dlopen="LoadLibrary"
22951 lt_cv_dlopen_libs=
22952 ;;
22953
22954 cygwin*)
22955 lt_cv_dlopen="dlopen"
22956 lt_cv_dlopen_libs=
22957 ;;
22958
22959 darwin*)
22960 # if libdl is installed we need to link against it
22961 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22962echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22963if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965else
22966 ac_check_lib_save_LIBS=$LIBS
22967LIBS="-ldl $LIBS"
22968cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022974
22975/* Override any gcc2 internal prototype to avoid an error. */
22976#ifdef __cplusplus
22977extern "C"
22978#endif
22979/* We use char because int might match the return type of a gcc2
22980 builtin and then its argument prototype would still apply. */
22981char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022982int
22983main ()
22984{
22985dlopen ();
22986 ;
22987 return 0;
22988}
22989_ACEOF
22990rm -f conftest.$ac_objext conftest$ac_exeext
22991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022992 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022999 { ac_try='test -z "$ac_c_werror_flag"
23000 || test ! -s conftest.err'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; } &&
23006 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; }; then
23012 ac_cv_lib_dl_dlopen=yes
23013else
23014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023015sed 's/^/| /' conftest.$ac_ext >&5
23016
John Criswell47fdd832003-07-14 16:52:07 +000023017ac_cv_lib_dl_dlopen=no
23018fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019rm -f conftest.err conftest.$ac_objext \
23020 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023021LIBS=$ac_check_lib_save_LIBS
23022fi
23023echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23024echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23025if test $ac_cv_lib_dl_dlopen = yes; then
23026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23027else
23028
23029 lt_cv_dlopen="dyld"
23030 lt_cv_dlopen_libs=
23031 lt_cv_dlopen_self=yes
23032
23033fi
23034
23035 ;;
23036
23037 *)
23038 echo "$as_me:$LINENO: checking for shl_load" >&5
23039echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23040if test "${ac_cv_func_shl_load+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042else
23043 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023044/* confdefs.h. */
23045_ACEOF
23046cat confdefs.h >>conftest.$ac_ext
23047cat >>conftest.$ac_ext <<_ACEOF
23048/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023049/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23051#define shl_load innocuous_shl_load
23052
John Criswell47fdd832003-07-14 16:52:07 +000023053/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023054 which can conflict with char shl_load (); below.
23055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23056 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023057
John Criswell0c38eaf2003-09-10 15:17:25 +000023058#ifdef __STDC__
23059# include <limits.h>
23060#else
23061# include <assert.h>
23062#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023063
23064#undef shl_load
23065
John Criswell47fdd832003-07-14 16:52:07 +000023066/* Override any gcc2 internal prototype to avoid an error. */
23067#ifdef __cplusplus
23068extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023069{
John Criswell47fdd832003-07-14 16:52:07 +000023070#endif
23071/* We use char because int might match the return type of a gcc2
23072 builtin and then its argument prototype would still apply. */
23073char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023074/* The GNU C library defines this for functions which it implements
23075 to always fail with ENOSYS. Some functions are actually named
23076 something starting with __ and the normal name is an alias. */
23077#if defined (__stub_shl_load) || defined (__stub___shl_load)
23078choke me
23079#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023080char (*f) () = shl_load;
23081#endif
23082#ifdef __cplusplus
23083}
John Criswell47fdd832003-07-14 16:52:07 +000023084#endif
23085
John Criswell0c38eaf2003-09-10 15:17:25 +000023086int
23087main ()
23088{
23089return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023090 ;
23091 return 0;
23092}
23093_ACEOF
23094rm -f conftest.$ac_objext conftest$ac_exeext
23095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023096 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023098 grep -v '^ *+' conftest.er1 >conftest.err
23099 rm -f conftest.er1
23100 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023103 { ac_try='test -z "$ac_c_werror_flag"
23104 || test ! -s conftest.err'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; } &&
23110 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23113 ac_status=$?
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; }; then
23116 ac_cv_func_shl_load=yes
23117else
23118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023119sed 's/^/| /' conftest.$ac_ext >&5
23120
John Criswell47fdd832003-07-14 16:52:07 +000023121ac_cv_func_shl_load=no
23122fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023123rm -f conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023125fi
23126echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23127echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23128if test $ac_cv_func_shl_load = yes; then
23129 lt_cv_dlopen="shl_load"
23130else
23131 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23132echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23133if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23135else
23136 ac_check_lib_save_LIBS=$LIBS
23137LIBS="-ldld $LIBS"
23138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023139/* confdefs.h. */
23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023144
23145/* Override any gcc2 internal prototype to avoid an error. */
23146#ifdef __cplusplus
23147extern "C"
23148#endif
23149/* We use char because int might match the return type of a gcc2
23150 builtin and then its argument prototype would still apply. */
23151char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023152int
23153main ()
23154{
23155shl_load ();
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext conftest$ac_exeext
23161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023162 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 ac_cv_lib_dld_shl_load=yes
23183else
23184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023185sed 's/^/| /' conftest.$ac_ext >&5
23186
John Criswell47fdd832003-07-14 16:52:07 +000023187ac_cv_lib_dld_shl_load=no
23188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023189rm -f conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023191LIBS=$ac_check_lib_save_LIBS
23192fi
23193echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23194echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23195if test $ac_cv_lib_dld_shl_load = yes; then
23196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23197else
23198 echo "$as_me:$LINENO: checking for dlopen" >&5
23199echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23200if test "${ac_cv_func_dlopen+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202else
23203 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023209/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23211#define dlopen innocuous_dlopen
23212
John Criswell47fdd832003-07-14 16:52:07 +000023213/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023214 which can conflict with char dlopen (); below.
23215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23216 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023217
John Criswell0c38eaf2003-09-10 15:17:25 +000023218#ifdef __STDC__
23219# include <limits.h>
23220#else
23221# include <assert.h>
23222#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023223
23224#undef dlopen
23225
John Criswell47fdd832003-07-14 16:52:07 +000023226/* Override any gcc2 internal prototype to avoid an error. */
23227#ifdef __cplusplus
23228extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023229{
John Criswell47fdd832003-07-14 16:52:07 +000023230#endif
23231/* We use char because int might match the return type of a gcc2
23232 builtin and then its argument prototype would still apply. */
23233char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023234/* The GNU C library defines this for functions which it implements
23235 to always fail with ENOSYS. Some functions are actually named
23236 something starting with __ and the normal name is an alias. */
23237#if defined (__stub_dlopen) || defined (__stub___dlopen)
23238choke me
23239#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023240char (*f) () = dlopen;
23241#endif
23242#ifdef __cplusplus
23243}
John Criswell47fdd832003-07-14 16:52:07 +000023244#endif
23245
John Criswell0c38eaf2003-09-10 15:17:25 +000023246int
23247main ()
23248{
23249return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023250 ;
23251 return 0;
23252}
23253_ACEOF
23254rm -f conftest.$ac_objext conftest$ac_exeext
23255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023256 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 grep -v '^ *+' conftest.er1 >conftest.err
23259 rm -f conftest.er1
23260 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023263 { ac_try='test -z "$ac_c_werror_flag"
23264 || test ! -s conftest.err'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23267 ac_status=$?
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; } &&
23270 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; }; then
23276 ac_cv_func_dlopen=yes
23277else
23278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023279sed 's/^/| /' conftest.$ac_ext >&5
23280
John Criswell47fdd832003-07-14 16:52:07 +000023281ac_cv_func_dlopen=no
23282fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023283rm -f conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023285fi
23286echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23287echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23288if test $ac_cv_func_dlopen = yes; then
23289 lt_cv_dlopen="dlopen"
23290else
23291 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23292echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23293if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295else
23296 ac_check_lib_save_LIBS=$LIBS
23297LIBS="-ldl $LIBS"
23298cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023299/* confdefs.h. */
23300_ACEOF
23301cat confdefs.h >>conftest.$ac_ext
23302cat >>conftest.$ac_ext <<_ACEOF
23303/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023304
23305/* Override any gcc2 internal prototype to avoid an error. */
23306#ifdef __cplusplus
23307extern "C"
23308#endif
23309/* We use char because int might match the return type of a gcc2
23310 builtin and then its argument prototype would still apply. */
23311char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023312int
23313main ()
23314{
23315dlopen ();
23316 ;
23317 return 0;
23318}
23319_ACEOF
23320rm -f conftest.$ac_objext conftest$ac_exeext
23321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023322 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023329 { ac_try='test -z "$ac_c_werror_flag"
23330 || test ! -s conftest.err'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23333 ac_status=$?
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; } &&
23336 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 ac_cv_lib_dl_dlopen=yes
23343else
23344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023345sed 's/^/| /' conftest.$ac_ext >&5
23346
John Criswell47fdd832003-07-14 16:52:07 +000023347ac_cv_lib_dl_dlopen=no
23348fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023349rm -f conftest.err conftest.$ac_objext \
23350 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023351LIBS=$ac_check_lib_save_LIBS
23352fi
23353echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23354echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23355if test $ac_cv_lib_dl_dlopen = yes; then
23356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23357else
23358 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23359echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23360if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23362else
23363 ac_check_lib_save_LIBS=$LIBS
23364LIBS="-lsvld $LIBS"
23365cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023366/* confdefs.h. */
23367_ACEOF
23368cat confdefs.h >>conftest.$ac_ext
23369cat >>conftest.$ac_ext <<_ACEOF
23370/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023371
23372/* Override any gcc2 internal prototype to avoid an error. */
23373#ifdef __cplusplus
23374extern "C"
23375#endif
23376/* We use char because int might match the return type of a gcc2
23377 builtin and then its argument prototype would still apply. */
23378char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023379int
23380main ()
23381{
23382dlopen ();
23383 ;
23384 return 0;
23385}
23386_ACEOF
23387rm -f conftest.$ac_objext conftest$ac_exeext
23388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023389 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023390 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023396 { ac_try='test -z "$ac_c_werror_flag"
23397 || test ! -s conftest.err'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23400 ac_status=$?
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_lib_svld_dlopen=yes
23410else
23411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023412sed 's/^/| /' conftest.$ac_ext >&5
23413
John Criswell47fdd832003-07-14 16:52:07 +000023414ac_cv_lib_svld_dlopen=no
23415fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023416rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023418LIBS=$ac_check_lib_save_LIBS
23419fi
23420echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23421echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23422if test $ac_cv_lib_svld_dlopen = yes; then
23423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23424else
23425 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23426echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23427if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
23429else
23430 ac_check_lib_save_LIBS=$LIBS
23431LIBS="-ldld $LIBS"
23432cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023433/* confdefs.h. */
23434_ACEOF
23435cat confdefs.h >>conftest.$ac_ext
23436cat >>conftest.$ac_ext <<_ACEOF
23437/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023438
23439/* Override any gcc2 internal prototype to avoid an error. */
23440#ifdef __cplusplus
23441extern "C"
23442#endif
23443/* We use char because int might match the return type of a gcc2
23444 builtin and then its argument prototype would still apply. */
23445char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023446int
23447main ()
23448{
23449dld_link ();
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext conftest$ac_exeext
23455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023456 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023463 { ac_try='test -z "$ac_c_werror_flag"
23464 || test ! -s conftest.err'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; } &&
23470 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23476 ac_cv_lib_dld_dld_link=yes
23477else
23478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023479sed 's/^/| /' conftest.$ac_ext >&5
23480
John Criswell47fdd832003-07-14 16:52:07 +000023481ac_cv_lib_dld_dld_link=no
23482fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023483rm -f conftest.err conftest.$ac_objext \
23484 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023485LIBS=$ac_check_lib_save_LIBS
23486fi
23487echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23488echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23489if test $ac_cv_lib_dld_dld_link = yes; then
23490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23491fi
23492
23493
23494fi
23495
23496
23497fi
23498
23499
23500fi
23501
23502
23503fi
23504
23505
23506fi
23507
23508 ;;
23509 esac
23510
23511 if test "x$lt_cv_dlopen" != xno; then
23512 enable_dlopen=yes
23513 else
23514 enable_dlopen=no
23515 fi
23516
23517 case $lt_cv_dlopen in
23518 dlopen)
23519 save_CPPFLAGS="$CPPFLAGS"
23520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23521
23522 save_LDFLAGS="$LDFLAGS"
23523 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23524
23525 save_LIBS="$LIBS"
23526 LIBS="$lt_cv_dlopen_libs $LIBS"
23527
23528 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23529echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23530if test "${lt_cv_dlopen_self+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23532else
23533 if test "$cross_compiling" = yes; then :
23534 lt_cv_dlopen_self=cross
23535else
23536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23537 lt_status=$lt_dlunknown
23538 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +000023539#line 23539 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023540#include "confdefs.h"
23541
23542#if HAVE_DLFCN_H
23543#include <dlfcn.h>
23544#endif
23545
23546#include <stdio.h>
23547
23548#ifdef RTLD_GLOBAL
23549# define LT_DLGLOBAL RTLD_GLOBAL
23550#else
23551# ifdef DL_GLOBAL
23552# define LT_DLGLOBAL DL_GLOBAL
23553# else
23554# define LT_DLGLOBAL 0
23555# endif
23556#endif
23557
23558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23559 find out it does not work in some platform. */
23560#ifndef LT_DLLAZY_OR_NOW
23561# ifdef RTLD_LAZY
23562# define LT_DLLAZY_OR_NOW RTLD_LAZY
23563# else
23564# ifdef DL_LAZY
23565# define LT_DLLAZY_OR_NOW DL_LAZY
23566# else
23567# ifdef RTLD_NOW
23568# define LT_DLLAZY_OR_NOW RTLD_NOW
23569# else
23570# ifdef DL_NOW
23571# define LT_DLLAZY_OR_NOW DL_NOW
23572# else
23573# define LT_DLLAZY_OR_NOW 0
23574# endif
23575# endif
23576# endif
23577# endif
23578#endif
23579
23580#ifdef __cplusplus
23581extern "C" void exit (int);
23582#endif
23583
23584void fnord() { int i=42;}
23585int main ()
23586{
23587 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23588 int status = $lt_dlunknown;
23589
23590 if (self)
23591 {
23592 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23593 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23594 /* dlclose (self); */
23595 }
23596
23597 exit (status);
23598}
23599EOF
23600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23601 (eval $ac_link) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23605 (./conftest; exit; ) 2>/dev/null
23606 lt_status=$?
23607 case x$lt_status in
23608 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23609 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23610 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23611 esac
23612 else :
23613 # compilation failed
23614 lt_cv_dlopen_self=no
23615 fi
23616fi
23617rm -fr conftest*
23618
23619
23620fi
23621echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23622echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23623
23624 if test "x$lt_cv_dlopen_self" = xyes; then
23625 LDFLAGS="$LDFLAGS $link_static_flag"
23626 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23627echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23628if test "${lt_cv_dlopen_self_static+set}" = set; then
23629 echo $ECHO_N "(cached) $ECHO_C" >&6
23630else
23631 if test "$cross_compiling" = yes; then :
23632 lt_cv_dlopen_self_static=cross
23633else
23634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23635 lt_status=$lt_dlunknown
23636 cat > conftest.$ac_ext <<EOF
Reid Spencerc232a652005-07-14 02:25:12 +000023637#line 23637 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023638#include "confdefs.h"
23639
23640#if HAVE_DLFCN_H
23641#include <dlfcn.h>
23642#endif
23643
23644#include <stdio.h>
23645
23646#ifdef RTLD_GLOBAL
23647# define LT_DLGLOBAL RTLD_GLOBAL
23648#else
23649# ifdef DL_GLOBAL
23650# define LT_DLGLOBAL DL_GLOBAL
23651# else
23652# define LT_DLGLOBAL 0
23653# endif
23654#endif
23655
23656/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23657 find out it does not work in some platform. */
23658#ifndef LT_DLLAZY_OR_NOW
23659# ifdef RTLD_LAZY
23660# define LT_DLLAZY_OR_NOW RTLD_LAZY
23661# else
23662# ifdef DL_LAZY
23663# define LT_DLLAZY_OR_NOW DL_LAZY
23664# else
23665# ifdef RTLD_NOW
23666# define LT_DLLAZY_OR_NOW RTLD_NOW
23667# else
23668# ifdef DL_NOW
23669# define LT_DLLAZY_OR_NOW DL_NOW
23670# else
23671# define LT_DLLAZY_OR_NOW 0
23672# endif
23673# endif
23674# endif
23675# endif
23676#endif
23677
23678#ifdef __cplusplus
23679extern "C" void exit (int);
23680#endif
23681
23682void fnord() { int i=42;}
23683int main ()
23684{
23685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23686 int status = $lt_dlunknown;
23687
23688 if (self)
23689 {
23690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23691 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23692 /* dlclose (self); */
23693 }
23694
23695 exit (status);
23696}
23697EOF
23698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23699 (eval $ac_link) 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23703 (./conftest; exit; ) 2>/dev/null
23704 lt_status=$?
23705 case x$lt_status in
23706 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23707 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23708 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23709 esac
23710 else :
23711 # compilation failed
23712 lt_cv_dlopen_self_static=no
23713 fi
23714fi
23715rm -fr conftest*
23716
23717
23718fi
23719echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23720echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23721 fi
23722
23723 CPPFLAGS="$save_CPPFLAGS"
23724 LDFLAGS="$save_LDFLAGS"
23725 LIBS="$save_LIBS"
23726 ;;
23727 esac
23728
23729 case $lt_cv_dlopen_self in
23730 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23731 *) enable_dlopen_self=unknown ;;
23732 esac
23733
23734 case $lt_cv_dlopen_self_static in
23735 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23736 *) enable_dlopen_self_static=unknown ;;
23737 esac
23738fi
23739
23740
23741# The else clause should only fire when bootstrapping the
23742# libtool distribution, otherwise you forgot to ship ltmain.sh
23743# with your package, and you will get complaints that there are
23744# no rules to generate ltmain.sh.
23745if test -f "$ltmain"; then
23746 # See if we are running on zsh, and set the options which allow our commands through
23747 # without removal of \ escapes.
23748 if test -n "${ZSH_VERSION+set}" ; then
23749 setopt NO_GLOB_SUBST
23750 fi
23751 # Now quote all the things that may contain metacharacters while being
23752 # careful not to overquote the AC_SUBSTed values. We take copies of the
23753 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23755 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23758 deplibs_check_method reload_flag reload_cmds need_locks \
23759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23760 lt_cv_sys_global_symbol_to_c_name_address \
23761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23762 old_postinstall_cmds old_postuninstall_cmds \
23763 compiler_GCJ \
23764 CC_GCJ \
23765 LD_GCJ \
23766 lt_prog_compiler_wl_GCJ \
23767 lt_prog_compiler_pic_GCJ \
23768 lt_prog_compiler_static_GCJ \
23769 lt_prog_compiler_no_builtin_flag_GCJ \
23770 export_dynamic_flag_spec_GCJ \
23771 thread_safe_flag_spec_GCJ \
23772 whole_archive_flag_spec_GCJ \
23773 enable_shared_with_static_runtimes_GCJ \
23774 old_archive_cmds_GCJ \
23775 old_archive_from_new_cmds_GCJ \
23776 predep_objects_GCJ \
23777 postdep_objects_GCJ \
23778 predeps_GCJ \
23779 postdeps_GCJ \
23780 compiler_lib_search_path_GCJ \
23781 archive_cmds_GCJ \
23782 archive_expsym_cmds_GCJ \
23783 postinstall_cmds_GCJ \
23784 postuninstall_cmds_GCJ \
23785 old_archive_from_expsyms_cmds_GCJ \
23786 allow_undefined_flag_GCJ \
23787 no_undefined_flag_GCJ \
23788 export_symbols_cmds_GCJ \
23789 hardcode_libdir_flag_spec_GCJ \
23790 hardcode_libdir_flag_spec_ld_GCJ \
23791 hardcode_libdir_separator_GCJ \
23792 hardcode_automatic_GCJ \
23793 module_cmds_GCJ \
23794 module_expsym_cmds_GCJ \
23795 lt_cv_prog_compiler_c_o_GCJ \
23796 exclude_expsyms_GCJ \
23797 include_expsyms_GCJ; do
23798
23799 case $var in
23800 old_archive_cmds_GCJ | \
23801 old_archive_from_new_cmds_GCJ | \
23802 archive_cmds_GCJ | \
23803 archive_expsym_cmds_GCJ | \
23804 module_cmds_GCJ | \
23805 module_expsym_cmds_GCJ | \
23806 old_archive_from_expsyms_cmds_GCJ | \
23807 export_symbols_cmds_GCJ | \
23808 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23809 postinstall_cmds | postuninstall_cmds | \
23810 old_postinstall_cmds | old_postuninstall_cmds | \
23811 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23812 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023813 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 +000023814 ;;
23815 *)
23816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23817 ;;
23818 esac
23819 done
23820
23821 case $lt_echo in
23822 *'\$0 --fallback-echo"')
23823 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23824 ;;
23825 esac
23826
23827cfgfile="$ofile"
23828
23829 cat <<__EOF__ >> "$cfgfile"
23830# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23831
23832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23833
23834# Shell to use when invoking shell scripts.
23835SHELL=$lt_SHELL
23836
23837# Whether or not to build shared libraries.
23838build_libtool_libs=$enable_shared
23839
23840# Whether or not to build static libraries.
23841build_old_libs=$enable_static
23842
23843# Whether or not to add -lc for building shared libraries.
23844build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23845
23846# Whether or not to disallow shared libs when runtime libs are static
23847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23848
23849# Whether or not to optimize for fast installation.
23850fast_install=$enable_fast_install
23851
23852# The host system.
23853host_alias=$host_alias
23854host=$host
23855
23856# An echo program that does not interpret backslashes.
23857echo=$lt_echo
23858
23859# The archiver.
23860AR=$lt_AR
23861AR_FLAGS=$lt_AR_FLAGS
23862
23863# A C compiler.
23864LTCC=$lt_LTCC
23865
23866# A language-specific compiler.
23867CC=$lt_compiler_GCJ
23868
23869# Is the compiler the GNU C compiler?
23870with_gcc=$GCC_GCJ
23871
23872# An ERE matcher.
23873EGREP=$lt_EGREP
23874
23875# The linker used to build libraries.
23876LD=$lt_LD_GCJ
23877
23878# Whether we need hard or soft links.
23879LN_S=$lt_LN_S
23880
23881# A BSD-compatible nm program.
23882NM=$lt_NM
23883
23884# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023885STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023886
23887# Used to examine libraries when file_magic_cmd begins "file"
23888MAGIC_CMD=$MAGIC_CMD
23889
23890# Used on cygwin: DLL creation program.
23891DLLTOOL="$DLLTOOL"
23892
23893# Used on cygwin: object dumper.
23894OBJDUMP="$OBJDUMP"
23895
23896# Used on cygwin: assembler.
23897AS="$AS"
23898
23899# The name of the directory that contains temporary libtool files.
23900objdir=$objdir
23901
23902# How to create reloadable object files.
23903reload_flag=$lt_reload_flag
23904reload_cmds=$lt_reload_cmds
23905
23906# How to pass a linker flag through the compiler.
23907wl=$lt_lt_prog_compiler_wl_GCJ
23908
23909# Object file suffix (normally "o").
23910objext="$ac_objext"
23911
23912# Old archive suffix (normally "a").
23913libext="$libext"
23914
23915# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023916shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023917
23918# Executable file suffix (normally "").
23919exeext="$exeext"
23920
23921# Additional compiler flags for building library objects.
23922pic_flag=$lt_lt_prog_compiler_pic_GCJ
23923pic_mode=$pic_mode
23924
23925# What is the maximum length of a command?
23926max_cmd_len=$lt_cv_sys_max_cmd_len
23927
23928# Does compiler simultaneously support -c and -o options?
23929compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23930
23931# Must we lock files when doing compilation ?
23932need_locks=$lt_need_locks
23933
23934# Do we need the lib prefix for modules?
23935need_lib_prefix=$need_lib_prefix
23936
23937# Do we need a version for libraries?
23938need_version=$need_version
23939
23940# Whether dlopen is supported.
23941dlopen_support=$enable_dlopen
23942
23943# Whether dlopen of programs is supported.
23944dlopen_self=$enable_dlopen_self
23945
23946# Whether dlopen of statically linked programs is supported.
23947dlopen_self_static=$enable_dlopen_self_static
23948
23949# Compiler flag to prevent dynamic linking.
23950link_static_flag=$lt_lt_prog_compiler_static_GCJ
23951
23952# Compiler flag to turn off builtin functions.
23953no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23954
23955# Compiler flag to allow reflexive dlopens.
23956export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23957
23958# Compiler flag to generate shared objects directly from archives.
23959whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23960
23961# Compiler flag to generate thread-safe objects.
23962thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23963
23964# Library versioning type.
23965version_type=$version_type
23966
23967# Format of library name prefix.
23968libname_spec=$lt_libname_spec
23969
23970# List of archive names. First name is the real one, the rest are links.
23971# The last name is the one that the linker finds with -lNAME.
23972library_names_spec=$lt_library_names_spec
23973
23974# The coded name of the library, if different from the real name.
23975soname_spec=$lt_soname_spec
23976
23977# Commands used to build and install an old-style archive.
23978RANLIB=$lt_RANLIB
23979old_archive_cmds=$lt_old_archive_cmds_GCJ
23980old_postinstall_cmds=$lt_old_postinstall_cmds
23981old_postuninstall_cmds=$lt_old_postuninstall_cmds
23982
23983# Create an old-style archive from a shared archive.
23984old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23985
23986# Create a temporary old-style archive to link instead of a shared archive.
23987old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23988
23989# Commands used to build and install a shared archive.
23990archive_cmds=$lt_archive_cmds_GCJ
23991archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23992postinstall_cmds=$lt_postinstall_cmds
23993postuninstall_cmds=$lt_postuninstall_cmds
23994
23995# Commands used to build a loadable module (assumed same as above if empty)
23996module_cmds=$lt_module_cmds_GCJ
23997module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23998
23999# Commands to strip libraries.
24000old_striplib=$lt_old_striplib
24001striplib=$lt_striplib
24002
24003# Dependencies to place before the objects being linked to create a
24004# shared library.
24005predep_objects=$lt_predep_objects_GCJ
24006
24007# Dependencies to place after the objects being linked to create a
24008# shared library.
24009postdep_objects=$lt_postdep_objects_GCJ
24010
24011# Dependencies to place before the objects being linked to create a
24012# shared library.
24013predeps=$lt_predeps_GCJ
24014
24015# Dependencies to place after the objects being linked to create a
24016# shared library.
24017postdeps=$lt_postdeps_GCJ
24018
24019# The library search path used internally by the compiler when linking
24020# a shared library.
24021compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24022
24023# Method to check whether dependent libraries are shared objects.
24024deplibs_check_method=$lt_deplibs_check_method
24025
24026# Command to use when deplibs_check_method == file_magic.
24027file_magic_cmd=$lt_file_magic_cmd
24028
24029# Flag that allows shared libraries with undefined symbols to be built.
24030allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24031
24032# Flag that forces no undefined symbols.
24033no_undefined_flag=$lt_no_undefined_flag_GCJ
24034
24035# Commands used to finish a libtool library installation in a directory.
24036finish_cmds=$lt_finish_cmds
24037
24038# Same as above, but a single script fragment to be evaled but not shown.
24039finish_eval=$lt_finish_eval
24040
24041# Take the output of nm and produce a listing of raw symbols and C names.
24042global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24043
24044# Transform the output of nm in a proper C declaration
24045global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24046
24047# Transform the output of nm in a C name address pair
24048global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24049
24050# This is the shared library runtime path variable.
24051runpath_var=$runpath_var
24052
24053# This is the shared library path variable.
24054shlibpath_var=$shlibpath_var
24055
24056# Is shlibpath searched before the hard-coded library search path?
24057shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24058
24059# How to hardcode a shared library path into an executable.
24060hardcode_action=$hardcode_action_GCJ
24061
24062# Whether we should hardcode library paths into libraries.
24063hardcode_into_libs=$hardcode_into_libs
24064
24065# Flag to hardcode \$libdir into a binary during linking.
24066# This must work even if \$libdir does not exist.
24067hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24068
24069# If ld is used when linking, flag to hardcode \$libdir into
24070# a binary during linking. This must work even if \$libdir does
24071# not exist.
24072hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24073
24074# Whether we need a single -rpath flag with a separated argument.
24075hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24076
24077# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24078# resulting binary.
24079hardcode_direct=$hardcode_direct_GCJ
24080
24081# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24082# resulting binary.
24083hardcode_minus_L=$hardcode_minus_L_GCJ
24084
24085# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24086# the resulting binary.
24087hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24088
24089# Set to yes if building a shared library automatically hardcodes DIR into the library
24090# and all subsequent libraries and executables linked against it.
24091hardcode_automatic=$hardcode_automatic_GCJ
24092
24093# Variables whose values should be saved in libtool wrapper scripts and
24094# restored at relink time.
24095variables_saved_for_relink="$variables_saved_for_relink"
24096
24097# Whether libtool must link a program against all its dependency libraries.
24098link_all_deplibs=$link_all_deplibs_GCJ
24099
24100# Compile-time system search path for libraries
24101sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24102
24103# Run-time system search path for libraries
24104sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24105
24106# Fix the shell variable \$srcfile for the compiler.
24107fix_srcfile_path="$fix_srcfile_path_GCJ"
24108
24109# Set to yes if exported symbols are required.
24110always_export_symbols=$always_export_symbols_GCJ
24111
24112# The commands to list exported symbols.
24113export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24114
24115# The commands to extract the exported symbol list from a shared archive.
24116extract_expsyms_cmds=$lt_extract_expsyms_cmds
24117
24118# Symbols that should not be listed in the preloaded symbols.
24119exclude_expsyms=$lt_exclude_expsyms_GCJ
24120
24121# Symbols that must always be exported.
24122include_expsyms=$lt_include_expsyms_GCJ
24123
24124# ### END LIBTOOL TAG CONFIG: $tagname
24125
24126__EOF__
24127
24128
24129else
24130 # If there is no Makefile yet, we rely on a make rule to execute
24131 # `config.status --recheck' to rerun these tests and create the
24132 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24134 if test -f "$ltmain_in"; then
24135 test -f Makefile && make "$ltmain"
24136 fi
John Criswell47fdd832003-07-14 16:52:07 +000024137fi
24138
24139
24140ac_ext=c
24141ac_cpp='$CPP $CPPFLAGS'
24142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144ac_compiler_gnu=$ac_cv_c_compiler_gnu
24145
24146CC="$lt_save_CC"
24147
24148 else
24149 tagname=""
24150 fi
24151 ;;
24152
24153 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024154 ac_ext=c
24155ac_cpp='$CPP $CPPFLAGS'
24156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24158ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024159
24160
24161# Source file extension for RC test sources.
24162ac_ext=rc
24163
24164# Object file extension for compiled RC test sources.
24165objext=o
24166objext_RC=$objext
24167
24168# Code to be used in simple compile tests
24169lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24170
24171# Code to be used in simple link tests
24172lt_simple_link_test_code="$lt_simple_compile_test_code"
24173
24174# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24175
24176# If no C compiler was specified, use CC.
24177LTCC=${LTCC-"$CC"}
24178
24179# Allow CC to be a program name with arguments.
24180compiler=$CC
24181
24182
24183# Allow CC to be a program name with arguments.
24184lt_save_CC="$CC"
24185CC=${RC-"windres"}
24186compiler=$CC
24187compiler_RC=$CC
24188lt_cv_prog_compiler_c_o_RC=yes
24189
24190# The else clause should only fire when bootstrapping the
24191# libtool distribution, otherwise you forgot to ship ltmain.sh
24192# with your package, and you will get complaints that there are
24193# no rules to generate ltmain.sh.
24194if test -f "$ltmain"; then
24195 # See if we are running on zsh, and set the options which allow our commands through
24196 # without removal of \ escapes.
24197 if test -n "${ZSH_VERSION+set}" ; then
24198 setopt NO_GLOB_SUBST
24199 fi
24200 # Now quote all the things that may contain metacharacters while being
24201 # careful not to overquote the AC_SUBSTed values. We take copies of the
24202 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024203 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24204 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24207 deplibs_check_method reload_flag reload_cmds need_locks \
24208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24209 lt_cv_sys_global_symbol_to_c_name_address \
24210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24211 old_postinstall_cmds old_postuninstall_cmds \
24212 compiler_RC \
24213 CC_RC \
24214 LD_RC \
24215 lt_prog_compiler_wl_RC \
24216 lt_prog_compiler_pic_RC \
24217 lt_prog_compiler_static_RC \
24218 lt_prog_compiler_no_builtin_flag_RC \
24219 export_dynamic_flag_spec_RC \
24220 thread_safe_flag_spec_RC \
24221 whole_archive_flag_spec_RC \
24222 enable_shared_with_static_runtimes_RC \
24223 old_archive_cmds_RC \
24224 old_archive_from_new_cmds_RC \
24225 predep_objects_RC \
24226 postdep_objects_RC \
24227 predeps_RC \
24228 postdeps_RC \
24229 compiler_lib_search_path_RC \
24230 archive_cmds_RC \
24231 archive_expsym_cmds_RC \
24232 postinstall_cmds_RC \
24233 postuninstall_cmds_RC \
24234 old_archive_from_expsyms_cmds_RC \
24235 allow_undefined_flag_RC \
24236 no_undefined_flag_RC \
24237 export_symbols_cmds_RC \
24238 hardcode_libdir_flag_spec_RC \
24239 hardcode_libdir_flag_spec_ld_RC \
24240 hardcode_libdir_separator_RC \
24241 hardcode_automatic_RC \
24242 module_cmds_RC \
24243 module_expsym_cmds_RC \
24244 lt_cv_prog_compiler_c_o_RC \
24245 exclude_expsyms_RC \
24246 include_expsyms_RC; do
24247
24248 case $var in
24249 old_archive_cmds_RC | \
24250 old_archive_from_new_cmds_RC | \
24251 archive_cmds_RC | \
24252 archive_expsym_cmds_RC | \
24253 module_cmds_RC | \
24254 module_expsym_cmds_RC | \
24255 old_archive_from_expsyms_cmds_RC | \
24256 export_symbols_cmds_RC | \
24257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24258 postinstall_cmds | postuninstall_cmds | \
24259 old_postinstall_cmds | old_postuninstall_cmds | \
24260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24261 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024262 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 +000024263 ;;
24264 *)
24265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24266 ;;
24267 esac
24268 done
24269
24270 case $lt_echo in
24271 *'\$0 --fallback-echo"')
24272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24273 ;;
24274 esac
24275
24276cfgfile="$ofile"
24277
24278 cat <<__EOF__ >> "$cfgfile"
24279# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24280
24281# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24282
24283# Shell to use when invoking shell scripts.
24284SHELL=$lt_SHELL
24285
24286# Whether or not to build shared libraries.
24287build_libtool_libs=$enable_shared
24288
24289# Whether or not to build static libraries.
24290build_old_libs=$enable_static
24291
24292# Whether or not to add -lc for building shared libraries.
24293build_libtool_need_lc=$archive_cmds_need_lc_RC
24294
24295# Whether or not to disallow shared libs when runtime libs are static
24296allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24297
24298# Whether or not to optimize for fast installation.
24299fast_install=$enable_fast_install
24300
24301# The host system.
24302host_alias=$host_alias
24303host=$host
24304
24305# An echo program that does not interpret backslashes.
24306echo=$lt_echo
24307
24308# The archiver.
24309AR=$lt_AR
24310AR_FLAGS=$lt_AR_FLAGS
24311
24312# A C compiler.
24313LTCC=$lt_LTCC
24314
24315# A language-specific compiler.
24316CC=$lt_compiler_RC
24317
24318# Is the compiler the GNU C compiler?
24319with_gcc=$GCC_RC
24320
24321# An ERE matcher.
24322EGREP=$lt_EGREP
24323
24324# The linker used to build libraries.
24325LD=$lt_LD_RC
24326
24327# Whether we need hard or soft links.
24328LN_S=$lt_LN_S
24329
24330# A BSD-compatible nm program.
24331NM=$lt_NM
24332
24333# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024334STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024335
24336# Used to examine libraries when file_magic_cmd begins "file"
24337MAGIC_CMD=$MAGIC_CMD
24338
24339# Used on cygwin: DLL creation program.
24340DLLTOOL="$DLLTOOL"
24341
24342# Used on cygwin: object dumper.
24343OBJDUMP="$OBJDUMP"
24344
24345# Used on cygwin: assembler.
24346AS="$AS"
24347
24348# The name of the directory that contains temporary libtool files.
24349objdir=$objdir
24350
24351# How to create reloadable object files.
24352reload_flag=$lt_reload_flag
24353reload_cmds=$lt_reload_cmds
24354
24355# How to pass a linker flag through the compiler.
24356wl=$lt_lt_prog_compiler_wl_RC
24357
24358# Object file suffix (normally "o").
24359objext="$ac_objext"
24360
24361# Old archive suffix (normally "a").
24362libext="$libext"
24363
24364# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024365shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024366
24367# Executable file suffix (normally "").
24368exeext="$exeext"
24369
24370# Additional compiler flags for building library objects.
24371pic_flag=$lt_lt_prog_compiler_pic_RC
24372pic_mode=$pic_mode
24373
24374# What is the maximum length of a command?
24375max_cmd_len=$lt_cv_sys_max_cmd_len
24376
24377# Does compiler simultaneously support -c and -o options?
24378compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24379
24380# Must we lock files when doing compilation ?
24381need_locks=$lt_need_locks
24382
24383# Do we need the lib prefix for modules?
24384need_lib_prefix=$need_lib_prefix
24385
24386# Do we need a version for libraries?
24387need_version=$need_version
24388
24389# Whether dlopen is supported.
24390dlopen_support=$enable_dlopen
24391
24392# Whether dlopen of programs is supported.
24393dlopen_self=$enable_dlopen_self
24394
24395# Whether dlopen of statically linked programs is supported.
24396dlopen_self_static=$enable_dlopen_self_static
24397
24398# Compiler flag to prevent dynamic linking.
24399link_static_flag=$lt_lt_prog_compiler_static_RC
24400
24401# Compiler flag to turn off builtin functions.
24402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24403
24404# Compiler flag to allow reflexive dlopens.
24405export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24406
24407# Compiler flag to generate shared objects directly from archives.
24408whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24409
24410# Compiler flag to generate thread-safe objects.
24411thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24412
24413# Library versioning type.
24414version_type=$version_type
24415
24416# Format of library name prefix.
24417libname_spec=$lt_libname_spec
24418
24419# List of archive names. First name is the real one, the rest are links.
24420# The last name is the one that the linker finds with -lNAME.
24421library_names_spec=$lt_library_names_spec
24422
24423# The coded name of the library, if different from the real name.
24424soname_spec=$lt_soname_spec
24425
24426# Commands used to build and install an old-style archive.
24427RANLIB=$lt_RANLIB
24428old_archive_cmds=$lt_old_archive_cmds_RC
24429old_postinstall_cmds=$lt_old_postinstall_cmds
24430old_postuninstall_cmds=$lt_old_postuninstall_cmds
24431
24432# Create an old-style archive from a shared archive.
24433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24434
24435# Create a temporary old-style archive to link instead of a shared archive.
24436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24437
24438# Commands used to build and install a shared archive.
24439archive_cmds=$lt_archive_cmds_RC
24440archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24441postinstall_cmds=$lt_postinstall_cmds
24442postuninstall_cmds=$lt_postuninstall_cmds
24443
24444# Commands used to build a loadable module (assumed same as above if empty)
24445module_cmds=$lt_module_cmds_RC
24446module_expsym_cmds=$lt_module_expsym_cmds_RC
24447
24448# Commands to strip libraries.
24449old_striplib=$lt_old_striplib
24450striplib=$lt_striplib
24451
24452# Dependencies to place before the objects being linked to create a
24453# shared library.
24454predep_objects=$lt_predep_objects_RC
24455
24456# Dependencies to place after the objects being linked to create a
24457# shared library.
24458postdep_objects=$lt_postdep_objects_RC
24459
24460# Dependencies to place before the objects being linked to create a
24461# shared library.
24462predeps=$lt_predeps_RC
24463
24464# Dependencies to place after the objects being linked to create a
24465# shared library.
24466postdeps=$lt_postdeps_RC
24467
24468# The library search path used internally by the compiler when linking
24469# a shared library.
24470compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24471
24472# Method to check whether dependent libraries are shared objects.
24473deplibs_check_method=$lt_deplibs_check_method
24474
24475# Command to use when deplibs_check_method == file_magic.
24476file_magic_cmd=$lt_file_magic_cmd
24477
24478# Flag that allows shared libraries with undefined symbols to be built.
24479allow_undefined_flag=$lt_allow_undefined_flag_RC
24480
24481# Flag that forces no undefined symbols.
24482no_undefined_flag=$lt_no_undefined_flag_RC
24483
24484# Commands used to finish a libtool library installation in a directory.
24485finish_cmds=$lt_finish_cmds
24486
24487# Same as above, but a single script fragment to be evaled but not shown.
24488finish_eval=$lt_finish_eval
24489
24490# Take the output of nm and produce a listing of raw symbols and C names.
24491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24492
24493# Transform the output of nm in a proper C declaration
24494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24495
24496# Transform the output of nm in a C name address pair
24497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24498
24499# This is the shared library runtime path variable.
24500runpath_var=$runpath_var
24501
24502# This is the shared library path variable.
24503shlibpath_var=$shlibpath_var
24504
24505# Is shlibpath searched before the hard-coded library search path?
24506shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24507
24508# How to hardcode a shared library path into an executable.
24509hardcode_action=$hardcode_action_RC
24510
24511# Whether we should hardcode library paths into libraries.
24512hardcode_into_libs=$hardcode_into_libs
24513
24514# Flag to hardcode \$libdir into a binary during linking.
24515# This must work even if \$libdir does not exist.
24516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24517
24518# If ld is used when linking, flag to hardcode \$libdir into
24519# a binary during linking. This must work even if \$libdir does
24520# not exist.
24521hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24522
24523# Whether we need a single -rpath flag with a separated argument.
24524hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24525
24526# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24527# resulting binary.
24528hardcode_direct=$hardcode_direct_RC
24529
24530# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24531# resulting binary.
24532hardcode_minus_L=$hardcode_minus_L_RC
24533
24534# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24535# the resulting binary.
24536hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24537
24538# Set to yes if building a shared library automatically hardcodes DIR into the library
24539# and all subsequent libraries and executables linked against it.
24540hardcode_automatic=$hardcode_automatic_RC
24541
24542# Variables whose values should be saved in libtool wrapper scripts and
24543# restored at relink time.
24544variables_saved_for_relink="$variables_saved_for_relink"
24545
24546# Whether libtool must link a program against all its dependency libraries.
24547link_all_deplibs=$link_all_deplibs_RC
24548
24549# Compile-time system search path for libraries
24550sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24551
24552# Run-time system search path for libraries
24553sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24554
24555# Fix the shell variable \$srcfile for the compiler.
24556fix_srcfile_path="$fix_srcfile_path_RC"
24557
24558# Set to yes if exported symbols are required.
24559always_export_symbols=$always_export_symbols_RC
24560
24561# The commands to list exported symbols.
24562export_symbols_cmds=$lt_export_symbols_cmds_RC
24563
24564# The commands to extract the exported symbol list from a shared archive.
24565extract_expsyms_cmds=$lt_extract_expsyms_cmds
24566
24567# Symbols that should not be listed in the preloaded symbols.
24568exclude_expsyms=$lt_exclude_expsyms_RC
24569
24570# Symbols that must always be exported.
24571include_expsyms=$lt_include_expsyms_RC
24572
24573# ### END LIBTOOL TAG CONFIG: $tagname
24574
24575__EOF__
24576
24577
24578else
24579 # If there is no Makefile yet, we rely on a make rule to execute
24580 # `config.status --recheck' to rerun these tests and create the
24581 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24583 if test -f "$ltmain_in"; then
24584 test -f Makefile && make "$ltmain"
24585 fi
John Criswell47fdd832003-07-14 16:52:07 +000024586fi
24587
24588
24589ac_ext=c
24590ac_cpp='$CPP $CPPFLAGS'
24591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24593ac_compiler_gnu=$ac_cv_c_compiler_gnu
24594
24595CC="$lt_save_CC"
24596
24597 ;;
24598
24599 *)
24600 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24601echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24602 { (exit 1); exit 1; }; }
24603 ;;
24604 esac
24605
24606 # Append the new tag name to the list of available tags.
24607 if test -n "$tagname" ; then
24608 available_tags="$available_tags $tagname"
24609 fi
24610 fi
24611 done
24612 IFS="$lt_save_ifs"
24613
24614 # Now substitute the updated list of available tags.
24615 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24616 mv "${ofile}T" "$ofile"
24617 chmod +x "$ofile"
24618 else
24619 rm -f "${ofile}T"
24620 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24621echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24622 { (exit 1); exit 1; }; }
24623 fi
24624fi
John Criswell7a73b802003-06-30 21:59:07 +000024625
24626
24627
24628# This can be used to rebuild libtool when needed
24629LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24630
24631# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024632LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024633
24634# Prevent multiple expansion
24635
24636
24637
John Criswell47fdd832003-07-14 16:52:07 +000024638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024655
Reid Spencer582a23c2004-12-29 07:07:57 +000024656if test "$lt_cv_dlopen_self" = "yes" ; then
24657
24658cat >>confdefs.h <<\_ACEOF
24659#define CAN_DLOPEN_SELF 1
24660_ACEOF
24661
24662fi
24663
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024664etags_version=`$ETAGS --version 2>&1`
24665case "$etags_version" in
24666 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24667 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24668 *) ETAGSFLAGS="" ;;
24669esac
24670ETAGSFLAGS=$ETAGSFLAGS
24671
24672
Reid Spencer7931a782004-12-27 06:15:02 +000024673if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024674 LLVMGCC="llvm-gcc${EXEEXT}"
24675 LLVMGXX="llvm-g++${EXEEXT}"
24676 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24677set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024678echo "$as_me:$LINENO: checking for $ac_word" >&5
24679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24680if test "${ac_cv_path_LLVMGCC+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24682else
24683 case $LLVMGCC in
24684 [\\/]* | ?:[\\/]*)
24685 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24686 ;;
24687 *)
24688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689for as_dir in $PATH
24690do
24691 IFS=$as_save_IFS
24692 test -z "$as_dir" && as_dir=.
24693 for ac_exec_ext in '' $ac_executable_extensions; do
24694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24697 break 2
24698 fi
24699done
24700done
24701
Reid Spencer59473af2004-12-25 07:31:29 +000024702 ;;
24703esac
24704fi
24705LLVMGCC=$ac_cv_path_LLVMGCC
24706
24707if test -n "$LLVMGCC"; then
24708 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24709echo "${ECHO_T}$LLVMGCC" >&6
24710else
24711 echo "$as_me:$LINENO: result: no" >&5
24712echo "${ECHO_T}no" >&6
24713fi
24714
Reid Spencerc84492c2005-06-02 22:34:49 +000024715 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24716set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024717echo "$as_me:$LINENO: checking for $ac_word" >&5
24718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24719if test "${ac_cv_path_LLVMGXX+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721else
24722 case $LLVMGXX in
24723 [\\/]* | ?:[\\/]*)
24724 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24725 ;;
24726 *)
24727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24728for as_dir in $PATH
24729do
24730 IFS=$as_save_IFS
24731 test -z "$as_dir" && as_dir=.
24732 for ac_exec_ext in '' $ac_executable_extensions; do
24733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24734 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24736 break 2
24737 fi
24738done
24739done
24740
Reid Spencer59473af2004-12-25 07:31:29 +000024741 ;;
24742esac
24743fi
24744LLVMGXX=$ac_cv_path_LLVMGXX
24745
24746if test -n "$LLVMGXX"; then
24747 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24748echo "${ECHO_T}$LLVMGXX" >&6
24749else
24750 echo "$as_me:$LINENO: result: no" >&5
24751echo "${ECHO_T}no" >&6
24752fi
24753
24754else
Reid Spencerc84492c2005-06-02 22:34:49 +000024755 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24756 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024757 LLVMGCC=$LLVMGCC
24758
24759 LLVMGXX=$LLVMGXX
24760
24761fi
24762
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024763echo "$as_me:$LINENO: checking tool compatibility" >&5
24764echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24765
Reid Spencer86901802004-12-08 23:07:27 +000024766ICC=no
24767IXX=no
24768case $CC in
24769 icc*|icpc*)
24770 ICC=yes
24771 IXX=yes
24772 ;;
24773 *)
24774 ;;
24775esac
24776
24777if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024778then
Reid Spencer86901802004-12-08 23:07:27 +000024779 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24780echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024781 { (exit 1); exit 1; }; }
24782fi
24783
Reid Spencer86901802004-12-08 23:07:27 +000024784if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024785then
Reid Spencer86901802004-12-08 23:07:27 +000024786 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24787echo "$as_me: error: g++|icc required but not found" >&2;}
24788 { (exit 1); exit 1; }; }
24789fi
24790
24791if test "$GCC" = "yes"
24792then
24793 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24794 if test "$gccmajor" -lt "3"
24795 then
24796 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024797echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24798 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024799 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024800fi
24801
24802if test -z "$llvm_cv_gnu_make_command"
24803then
24804 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24805echo "$as_me: error: GNU Make required but not found" >&2;}
24806 { (exit 1); exit 1; }; }
24807fi
24808
24809echo "$as_me:$LINENO: result: ok" >&5
24810echo "${ECHO_T}ok" >&6
24811
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024812
John Criswell7a73b802003-06-30 21:59:07 +000024813
John Criswell7a73b802003-06-30 21:59:07 +000024814echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24815echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24816if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24818else
24819 ac_check_lib_save_LIBS=$LIBS
24820LIBS="-lelf $LIBS"
24821cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024822/* confdefs.h. */
24823_ACEOF
24824cat confdefs.h >>conftest.$ac_ext
24825cat >>conftest.$ac_ext <<_ACEOF
24826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024827
24828/* Override any gcc2 internal prototype to avoid an error. */
24829#ifdef __cplusplus
24830extern "C"
24831#endif
24832/* We use char because int might match the return type of a gcc2
24833 builtin and then its argument prototype would still apply. */
24834char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024835int
24836main ()
24837{
24838elf_begin ();
24839 ;
24840 return 0;
24841}
24842_ACEOF
24843rm -f conftest.$ac_objext conftest$ac_exeext
24844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024845 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 grep -v '^ *+' conftest.er1 >conftest.err
24848 rm -f conftest.er1
24849 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024852 { ac_try='test -z "$ac_c_werror_flag"
24853 || test ! -s conftest.err'
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 ac_cv_lib_elf_elf_begin=yes
24866else
24867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024868sed 's/^/| /' conftest.$ac_ext >&5
24869
John Criswell7a73b802003-06-30 21:59:07 +000024870ac_cv_lib_elf_elf_begin=no
24871fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024872rm -f conftest.err conftest.$ac_objext \
24873 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024874LIBS=$ac_check_lib_save_LIBS
24875fi
24876echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24877echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24878if test $ac_cv_lib_elf_elf_begin = yes; then
24879 cat >>confdefs.h <<_ACEOF
24880#define HAVE_LIBELF 1
24881_ACEOF
24882
24883 LIBS="-lelf $LIBS"
24884
24885fi
24886
24887
Reid Spencer22177fe2005-07-12 15:24:20 +000024888
Reid Spencer17795972004-11-18 09:47:37 +000024889echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24890echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24891if test "${ac_cv_search_lt_dlopen+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24893else
24894 ac_func_search_save_LIBS=$LIBS
24895ac_cv_search_lt_dlopen=no
24896cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
24902
24903/* Override any gcc2 internal prototype to avoid an error. */
24904#ifdef __cplusplus
24905extern "C"
24906#endif
24907/* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24909char lt_dlopen ();
24910int
24911main ()
24912{
24913lt_dlopen ();
24914 ;
24915 return 0;
24916}
24917_ACEOF
24918rm -f conftest.$ac_objext conftest$ac_exeext
24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920 (eval $ac_link) 2>conftest.er1
24921 ac_status=$?
24922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_search_lt_dlopen="none required"
24941else
24942 echo "$as_me: failed program was:" >&5
24943sed 's/^/| /' conftest.$ac_ext >&5
24944
24945fi
24946rm -f conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948if test "$ac_cv_search_lt_dlopen" = no; then
24949 for ac_lib in ltdl; do
24950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24951 cat >conftest.$ac_ext <<_ACEOF
24952/* confdefs.h. */
24953_ACEOF
24954cat confdefs.h >>conftest.$ac_ext
24955cat >>conftest.$ac_ext <<_ACEOF
24956/* end confdefs.h. */
24957
24958/* Override any gcc2 internal prototype to avoid an error. */
24959#ifdef __cplusplus
24960extern "C"
24961#endif
24962/* We use char because int might match the return type of a gcc2
24963 builtin and then its argument prototype would still apply. */
24964char lt_dlopen ();
24965int
24966main ()
24967{
24968lt_dlopen ();
24969 ;
24970 return 0;
24971}
24972_ACEOF
24973rm -f conftest.$ac_objext conftest$ac_exeext
24974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975 (eval $ac_link) 2>conftest.er1
24976 ac_status=$?
24977 grep -v '^ *+' conftest.er1 >conftest.err
24978 rm -f conftest.er1
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag"
24983 || test ! -s conftest.err'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest$ac_exeext'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_search_lt_dlopen="-l$ac_lib"
24996break
24997else
24998 echo "$as_me: failed program was:" >&5
24999sed 's/^/| /' conftest.$ac_ext >&5
25000
25001fi
25002rm -f conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
25004 done
25005fi
25006LIBS=$ac_func_search_save_LIBS
25007fi
25008echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25009echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25010if test "$ac_cv_search_lt_dlopen" != no; then
25011 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25012
25013cat >>confdefs.h <<\_ACEOF
25014#define HAVE_LT_DLOPEN 1
25015_ACEOF
25016
25017else
25018 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25019 not be available" >&5
25020echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25021 not be available" >&2;}
25022fi
25023
25024
John Criswell7a73b802003-06-30 21:59:07 +000025025echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25026echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25027if test "${ac_cv_search_dlopen+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25029else
25030 ac_func_search_save_LIBS=$LIBS
25031ac_cv_search_dlopen=no
25032cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025033/* confdefs.h. */
25034_ACEOF
25035cat confdefs.h >>conftest.$ac_ext
25036cat >>conftest.$ac_ext <<_ACEOF
25037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025038
25039/* Override any gcc2 internal prototype to avoid an error. */
25040#ifdef __cplusplus
25041extern "C"
25042#endif
25043/* We use char because int might match the return type of a gcc2
25044 builtin and then its argument prototype would still apply. */
25045char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025046int
25047main ()
25048{
25049dlopen ();
25050 ;
25051 return 0;
25052}
25053_ACEOF
25054rm -f conftest.$ac_objext conftest$ac_exeext
25055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025056 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025057 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058 grep -v '^ *+' conftest.er1 >conftest.err
25059 rm -f conftest.er1
25060 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025063 { ac_try='test -z "$ac_c_werror_flag"
25064 || test ! -s conftest.err'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; } &&
25070 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25073 ac_status=$?
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 ac_cv_search_dlopen="none required"
25077else
25078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025079sed 's/^/| /' conftest.$ac_ext >&5
25080
John Criswell7a73b802003-06-30 21:59:07 +000025081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025082rm -f conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025084if test "$ac_cv_search_dlopen" = no; then
25085 for ac_lib in dl; do
25086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025088/* confdefs.h. */
25089_ACEOF
25090cat confdefs.h >>conftest.$ac_ext
25091cat >>conftest.$ac_ext <<_ACEOF
25092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025093
25094/* Override any gcc2 internal prototype to avoid an error. */
25095#ifdef __cplusplus
25096extern "C"
25097#endif
25098/* We use char because int might match the return type of a gcc2
25099 builtin and then its argument prototype would still apply. */
25100char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025101int
25102main ()
25103{
25104dlopen ();
25105 ;
25106 return 0;
25107}
25108_ACEOF
25109rm -f conftest.$ac_objext conftest$ac_exeext
25110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025111 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025113 grep -v '^ *+' conftest.er1 >conftest.err
25114 rm -f conftest.er1
25115 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025118 { ac_try='test -z "$ac_c_werror_flag"
25119 || test ! -s conftest.err'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; } &&
25125 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_search_dlopen="-l$ac_lib"
25132break
25133else
25134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025135sed 's/^/| /' conftest.$ac_ext >&5
25136
John Criswell7a73b802003-06-30 21:59:07 +000025137fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138rm -f conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025140 done
25141fi
25142LIBS=$ac_func_search_save_LIBS
25143fi
25144echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25145echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25146if test "$ac_cv_search_dlopen" != no; then
25147 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025148
25149cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025150#define HAVE_DLOPEN 1
25151_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025152
25153else
Brian Gaekec45be042003-10-07 06:01:34 +000025154 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25155echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025156fi
25157
25158
25159echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25160echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25161if test "${ac_cv_search_mallinfo+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25163else
25164 ac_func_search_save_LIBS=$LIBS
25165ac_cv_search_mallinfo=no
25166cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025167/* confdefs.h. */
25168_ACEOF
25169cat confdefs.h >>conftest.$ac_ext
25170cat >>conftest.$ac_ext <<_ACEOF
25171/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025172
25173/* Override any gcc2 internal prototype to avoid an error. */
25174#ifdef __cplusplus
25175extern "C"
25176#endif
25177/* We use char because int might match the return type of a gcc2
25178 builtin and then its argument prototype would still apply. */
25179char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025180int
25181main ()
25182{
25183mallinfo ();
25184 ;
25185 return 0;
25186}
25187_ACEOF
25188rm -f conftest.$ac_objext conftest$ac_exeext
25189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025190 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025191 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025192 grep -v '^ *+' conftest.er1 >conftest.err
25193 rm -f conftest.er1
25194 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025197 { ac_try='test -z "$ac_c_werror_flag"
25198 || test ! -s conftest.err'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; } &&
25204 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 ac_cv_search_mallinfo="none required"
25211else
25212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025213sed 's/^/| /' conftest.$ac_ext >&5
25214
John Criswell7a73b802003-06-30 21:59:07 +000025215fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025216rm -f conftest.err conftest.$ac_objext \
25217 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025218if test "$ac_cv_search_mallinfo" = no; then
25219 for ac_lib in malloc; do
25220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25221 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025222/* confdefs.h. */
25223_ACEOF
25224cat confdefs.h >>conftest.$ac_ext
25225cat >>conftest.$ac_ext <<_ACEOF
25226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025227
25228/* Override any gcc2 internal prototype to avoid an error. */
25229#ifdef __cplusplus
25230extern "C"
25231#endif
25232/* We use char because int might match the return type of a gcc2
25233 builtin and then its argument prototype would still apply. */
25234char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025235int
25236main ()
25237{
25238mallinfo ();
25239 ;
25240 return 0;
25241}
25242_ACEOF
25243rm -f conftest.$ac_objext conftest$ac_exeext
25244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025245 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025247 grep -v '^ *+' conftest.er1 >conftest.err
25248 rm -f conftest.er1
25249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025252 { ac_try='test -z "$ac_c_werror_flag"
25253 || test ! -s conftest.err'
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; } &&
25259 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25262 ac_status=$?
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; }; then
25265 ac_cv_search_mallinfo="-l$ac_lib"
25266break
25267else
25268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025269sed 's/^/| /' conftest.$ac_ext >&5
25270
John Criswell7a73b802003-06-30 21:59:07 +000025271fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025272rm -f conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025274 done
25275fi
25276LIBS=$ac_func_search_save_LIBS
25277fi
25278echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25279echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25280if test "$ac_cv_search_mallinfo" != no; then
25281 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025282
25283cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025284#define HAVE_MALLINFO 1
25285_ACEOF
25286
25287fi
25288
25289
Reid Spencer22177fe2005-07-12 15:24:20 +000025290
25291echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25292echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25293if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25295else
25296 ac_check_lib_save_LIBS=$LIBS
25297LIBS="-lpthread $LIBS"
25298cat >conftest.$ac_ext <<_ACEOF
25299/* confdefs.h. */
25300_ACEOF
25301cat confdefs.h >>conftest.$ac_ext
25302cat >>conftest.$ac_ext <<_ACEOF
25303/* end confdefs.h. */
25304
25305/* Override any gcc2 internal prototype to avoid an error. */
25306#ifdef __cplusplus
25307extern "C"
25308#endif
25309/* We use char because int might match the return type of a gcc2
25310 builtin and then its argument prototype would still apply. */
25311char pthread_mutex_init ();
25312int
25313main ()
25314{
25315pthread_mutex_init ();
25316 ;
25317 return 0;
25318}
25319_ACEOF
25320rm -f conftest.$ac_objext conftest$ac_exeext
25321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322 (eval $ac_link) 2>conftest.er1
25323 ac_status=$?
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
25329 { ac_try='test -z "$ac_c_werror_flag"
25330 || test ! -s conftest.err'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest$ac_exeext'
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_lib_pthread_pthread_mutex_init=yes
25343else
25344 echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347ac_cv_lib_pthread_pthread_mutex_init=no
25348fi
25349rm -f conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext conftest.$ac_ext
25351LIBS=$ac_check_lib_save_LIBS
25352fi
25353echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25354echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25355if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25356 cat >>confdefs.h <<_ACEOF
25357#define HAVE_LIBPTHREAD 1
25358_ACEOF
25359
25360 LIBS="-lpthread $LIBS"
25361
25362fi
25363
Brian Gaeke5f268f72003-12-05 19:29:01 +000025364echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25365echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25366if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25368else
25369 ac_func_search_save_LIBS=$LIBS
25370ac_cv_search_pthread_mutex_lock=no
25371cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025372/* confdefs.h. */
25373_ACEOF
25374cat confdefs.h >>conftest.$ac_ext
25375cat >>conftest.$ac_ext <<_ACEOF
25376/* end confdefs.h. */
25377
25378/* Override any gcc2 internal prototype to avoid an error. */
25379#ifdef __cplusplus
25380extern "C"
25381#endif
25382/* We use char because int might match the return type of a gcc2
25383 builtin and then its argument prototype would still apply. */
25384char pthread_mutex_lock ();
25385int
25386main ()
25387{
25388pthread_mutex_lock ();
25389 ;
25390 return 0;
25391}
25392_ACEOF
25393rm -f conftest.$ac_objext conftest$ac_exeext
25394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025395 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025397 grep -v '^ *+' conftest.er1 >conftest.err
25398 rm -f conftest.er1
25399 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025402 { ac_try='test -z "$ac_c_werror_flag"
25403 || test ! -s conftest.err'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 ac_cv_search_pthread_mutex_lock="none required"
25416else
25417 echo "$as_me: failed program was:" >&5
25418sed 's/^/| /' conftest.$ac_ext >&5
25419
25420fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025421rm -f conftest.err conftest.$ac_objext \
25422 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025423if test "$ac_cv_search_pthread_mutex_lock" = no; then
25424 for ac_lib in pthread; do
25425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25426 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025427/* confdefs.h. */
25428_ACEOF
25429cat confdefs.h >>conftest.$ac_ext
25430cat >>conftest.$ac_ext <<_ACEOF
25431/* end confdefs.h. */
25432
25433/* Override any gcc2 internal prototype to avoid an error. */
25434#ifdef __cplusplus
25435extern "C"
25436#endif
25437/* We use char because int might match the return type of a gcc2
25438 builtin and then its argument prototype would still apply. */
25439char pthread_mutex_lock ();
25440int
25441main ()
25442{
25443pthread_mutex_lock ();
25444 ;
25445 return 0;
25446}
25447_ACEOF
25448rm -f conftest.$ac_objext conftest$ac_exeext
25449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025450 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025451 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025452 grep -v '^ *+' conftest.er1 >conftest.err
25453 rm -f conftest.er1
25454 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025457 { ac_try='test -z "$ac_c_werror_flag"
25458 || test ! -s conftest.err'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25461 ac_status=$?
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; } &&
25464 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; }; then
25470 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25471break
25472else
25473 echo "$as_me: failed program was:" >&5
25474sed 's/^/| /' conftest.$ac_ext >&5
25475
25476fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025477rm -f conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025479 done
25480fi
25481LIBS=$ac_func_search_save_LIBS
25482fi
25483echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25484echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25485if test "$ac_cv_search_pthread_mutex_lock" != no; then
25486 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025487
John Criswell40468462004-09-24 21:19:06 +000025488cat >>confdefs.h <<\_ACEOF
25489#define HAVE_PTHREAD_MUTEX_LOCK 1
25490_ACEOF
25491
25492fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025493
Brian Gaekec9a410c2004-02-23 21:30:37 +000025494
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025495
Reid Spencer59473af2004-12-25 07:31:29 +000025496
25497
25498
25499
25500
25501ac_header_dirent=no
25502for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25504echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25505echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25506if eval "test \"\${$as_ac_Header+set}\" = set"; then
25507 echo $ECHO_N "(cached) $ECHO_C" >&6
25508else
25509 cat >conftest.$ac_ext <<_ACEOF
25510/* confdefs.h. */
25511_ACEOF
25512cat confdefs.h >>conftest.$ac_ext
25513cat >>conftest.$ac_ext <<_ACEOF
25514/* end confdefs.h. */
25515#include <sys/types.h>
25516#include <$ac_hdr>
25517
25518int
25519main ()
25520{
25521if ((DIR *) 0)
25522return 0;
25523 ;
25524 return 0;
25525}
25526_ACEOF
25527rm -f conftest.$ac_objext
25528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25529 (eval $ac_compile) 2>conftest.er1
25530 ac_status=$?
25531 grep -v '^ *+' conftest.er1 >conftest.err
25532 rm -f conftest.er1
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest.$ac_objext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 eval "$as_ac_Header=yes"
25550else
25551 echo "$as_me: failed program was:" >&5
25552sed 's/^/| /' conftest.$ac_ext >&5
25553
25554eval "$as_ac_Header=no"
25555fi
25556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25557fi
25558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25560if test `eval echo '${'$as_ac_Header'}'` = yes; then
25561 cat >>confdefs.h <<_ACEOF
25562#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25563_ACEOF
25564
25565ac_header_dirent=$ac_hdr; break
25566fi
25567
25568done
25569# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25570if test $ac_header_dirent = dirent.h; then
25571 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25572echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25573if test "${ac_cv_search_opendir+set}" = set; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25575else
25576 ac_func_search_save_LIBS=$LIBS
25577ac_cv_search_opendir=no
25578cat >conftest.$ac_ext <<_ACEOF
25579/* confdefs.h. */
25580_ACEOF
25581cat confdefs.h >>conftest.$ac_ext
25582cat >>conftest.$ac_ext <<_ACEOF
25583/* end confdefs.h. */
25584
25585/* Override any gcc2 internal prototype to avoid an error. */
25586#ifdef __cplusplus
25587extern "C"
25588#endif
25589/* We use char because int might match the return type of a gcc2
25590 builtin and then its argument prototype would still apply. */
25591char opendir ();
25592int
25593main ()
25594{
25595opendir ();
25596 ;
25597 return 0;
25598}
25599_ACEOF
25600rm -f conftest.$ac_objext conftest$ac_exeext
25601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25602 (eval $ac_link) 2>conftest.er1
25603 ac_status=$?
25604 grep -v '^ *+' conftest.er1 >conftest.err
25605 rm -f conftest.er1
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } &&
25609 { ac_try='test -z "$ac_c_werror_flag"
25610 || test ! -s conftest.err'
25611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25613 ac_status=$?
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; } &&
25616 { ac_try='test -s conftest$ac_exeext'
25617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; }; then
25622 ac_cv_search_opendir="none required"
25623else
25624 echo "$as_me: failed program was:" >&5
25625sed 's/^/| /' conftest.$ac_ext >&5
25626
25627fi
25628rm -f conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25630if test "$ac_cv_search_opendir" = no; then
25631 for ac_lib in dir; do
25632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25633 cat >conftest.$ac_ext <<_ACEOF
25634/* confdefs.h. */
25635_ACEOF
25636cat confdefs.h >>conftest.$ac_ext
25637cat >>conftest.$ac_ext <<_ACEOF
25638/* end confdefs.h. */
25639
25640/* Override any gcc2 internal prototype to avoid an error. */
25641#ifdef __cplusplus
25642extern "C"
25643#endif
25644/* We use char because int might match the return type of a gcc2
25645 builtin and then its argument prototype would still apply. */
25646char opendir ();
25647int
25648main ()
25649{
25650opendir ();
25651 ;
25652 return 0;
25653}
25654_ACEOF
25655rm -f conftest.$ac_objext conftest$ac_exeext
25656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25657 (eval $ac_link) 2>conftest.er1
25658 ac_status=$?
25659 grep -v '^ *+' conftest.er1 >conftest.err
25660 rm -f conftest.er1
25661 cat conftest.err >&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); } &&
25664 { ac_try='test -z "$ac_c_werror_flag"
25665 || test ! -s conftest.err'
25666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667 (eval $ac_try) 2>&5
25668 ac_status=$?
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; } &&
25671 { ac_try='test -s conftest$ac_exeext'
25672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673 (eval $ac_try) 2>&5
25674 ac_status=$?
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; }; then
25677 ac_cv_search_opendir="-l$ac_lib"
25678break
25679else
25680 echo "$as_me: failed program was:" >&5
25681sed 's/^/| /' conftest.$ac_ext >&5
25682
25683fi
25684rm -f conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext conftest.$ac_ext
25686 done
25687fi
25688LIBS=$ac_func_search_save_LIBS
25689fi
25690echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25691echo "${ECHO_T}$ac_cv_search_opendir" >&6
25692if test "$ac_cv_search_opendir" != no; then
25693 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25694
25695fi
25696
25697else
25698 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25699echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25700if test "${ac_cv_search_opendir+set}" = set; then
25701 echo $ECHO_N "(cached) $ECHO_C" >&6
25702else
25703 ac_func_search_save_LIBS=$LIBS
25704ac_cv_search_opendir=no
25705cat >conftest.$ac_ext <<_ACEOF
25706/* confdefs.h. */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h. */
25711
25712/* Override any gcc2 internal prototype to avoid an error. */
25713#ifdef __cplusplus
25714extern "C"
25715#endif
25716/* We use char because int might match the return type of a gcc2
25717 builtin and then its argument prototype would still apply. */
25718char opendir ();
25719int
25720main ()
25721{
25722opendir ();
25723 ;
25724 return 0;
25725}
25726_ACEOF
25727rm -f conftest.$ac_objext conftest$ac_exeext
25728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25729 (eval $ac_link) 2>conftest.er1
25730 ac_status=$?
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
25736 { ac_try='test -z "$ac_c_werror_flag"
25737 || test ! -s conftest.err'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } &&
25743 { ac_try='test -s conftest$ac_exeext'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_cv_search_opendir="none required"
25750else
25751 echo "$as_me: failed program was:" >&5
25752sed 's/^/| /' conftest.$ac_ext >&5
25753
25754fi
25755rm -f conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
25757if test "$ac_cv_search_opendir" = no; then
25758 for ac_lib in x; do
25759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25760 cat >conftest.$ac_ext <<_ACEOF
25761/* confdefs.h. */
25762_ACEOF
25763cat confdefs.h >>conftest.$ac_ext
25764cat >>conftest.$ac_ext <<_ACEOF
25765/* end confdefs.h. */
25766
25767/* Override any gcc2 internal prototype to avoid an error. */
25768#ifdef __cplusplus
25769extern "C"
25770#endif
25771/* We use char because int might match the return type of a gcc2
25772 builtin and then its argument prototype would still apply. */
25773char opendir ();
25774int
25775main ()
25776{
25777opendir ();
25778 ;
25779 return 0;
25780}
25781_ACEOF
25782rm -f conftest.$ac_objext conftest$ac_exeext
25783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25784 (eval $ac_link) 2>conftest.er1
25785 ac_status=$?
25786 grep -v '^ *+' conftest.er1 >conftest.err
25787 rm -f conftest.er1
25788 cat conftest.err >&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } &&
25791 { ac_try='test -z "$ac_c_werror_flag"
25792 || test ! -s conftest.err'
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; } &&
25798 { ac_try='test -s conftest$ac_exeext'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; }; then
25804 ac_cv_search_opendir="-l$ac_lib"
25805break
25806else
25807 echo "$as_me: failed program was:" >&5
25808sed 's/^/| /' conftest.$ac_ext >&5
25809
25810fi
25811rm -f conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext conftest.$ac_ext
25813 done
25814fi
25815LIBS=$ac_func_search_save_LIBS
25816fi
25817echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25818echo "${ECHO_T}$ac_cv_search_opendir" >&6
25819if test "$ac_cv_search_opendir" != no; then
25820 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25821
25822fi
25823
25824fi
25825
25826echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25827echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25828if test "${ac_cv_header_mmap_anon+set}" = set; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25830else
25831 ac_ext=c
25832ac_cpp='$CPP $CPPFLAGS'
25833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25835ac_compiler_gnu=$ac_cv_c_compiler_gnu
25836
25837 cat >conftest.$ac_ext <<_ACEOF
25838/* confdefs.h. */
25839_ACEOF
25840cat confdefs.h >>conftest.$ac_ext
25841cat >>conftest.$ac_ext <<_ACEOF
25842/* end confdefs.h. */
25843#include <sys/mman.h>
25844#include <unistd.h>
25845#include <fcntl.h>
25846int
25847main ()
25848{
25849mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25850 ;
25851 return 0;
25852}
25853_ACEOF
25854rm -f conftest.$ac_objext
25855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856 (eval $ac_compile) 2>conftest.er1
25857 ac_status=$?
25858 grep -v '^ *+' conftest.er1 >conftest.err
25859 rm -f conftest.er1
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } &&
25863 { ac_try='test -z "$ac_c_werror_flag"
25864 || test ! -s conftest.err'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; } &&
25870 { ac_try='test -s conftest.$ac_objext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 ac_cv_header_mmap_anon=yes
25877else
25878 echo "$as_me: failed program was:" >&5
25879sed 's/^/| /' conftest.$ac_ext >&5
25880
25881ac_cv_header_mmap_anon=no
25882fi
25883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884 ac_ext=c
25885ac_cpp='$CPP $CPPFLAGS'
25886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25888ac_compiler_gnu=$ac_cv_c_compiler_gnu
25889
25890
25891fi
25892echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25893echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25894if test "$ac_cv_header_mmap_anon" = yes; then
25895
25896cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025897#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025898_ACEOF
25899
25900fi
25901
25902echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25903echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25904if test "${ac_cv_header_stat_broken+set}" = set; then
25905 echo $ECHO_N "(cached) $ECHO_C" >&6
25906else
25907 cat >conftest.$ac_ext <<_ACEOF
25908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
25913#include <sys/types.h>
25914#include <sys/stat.h>
25915
25916#if defined(S_ISBLK) && defined(S_IFDIR)
25917# if S_ISBLK (S_IFDIR)
25918You lose.
25919# endif
25920#endif
25921
25922#if defined(S_ISBLK) && defined(S_IFCHR)
25923# if S_ISBLK (S_IFCHR)
25924You lose.
25925# endif
25926#endif
25927
25928#if defined(S_ISLNK) && defined(S_IFREG)
25929# if S_ISLNK (S_IFREG)
25930You lose.
25931# endif
25932#endif
25933
25934#if defined(S_ISSOCK) && defined(S_IFREG)
25935# if S_ISSOCK (S_IFREG)
25936You lose.
25937# endif
25938#endif
25939
25940_ACEOF
25941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25942 $EGREP "You lose" >/dev/null 2>&1; then
25943 ac_cv_header_stat_broken=yes
25944else
25945 ac_cv_header_stat_broken=no
25946fi
25947rm -f conftest*
25948
25949fi
25950echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25951echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25952if test $ac_cv_header_stat_broken = yes; then
25953
25954cat >>confdefs.h <<\_ACEOF
25955#define STAT_MACROS_BROKEN 1
25956_ACEOF
25957
25958fi
25959
John Criswell7a73b802003-06-30 21:59:07 +000025960echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25961echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25962if test "${ac_cv_header_stdc+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25964else
25965 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025966/* confdefs.h. */
25967_ACEOF
25968cat confdefs.h >>conftest.$ac_ext
25969cat >>conftest.$ac_ext <<_ACEOF
25970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025971#include <stdlib.h>
25972#include <stdarg.h>
25973#include <string.h>
25974#include <float.h>
25975
John Criswell0c38eaf2003-09-10 15:17:25 +000025976int
25977main ()
25978{
25979
25980 ;
25981 return 0;
25982}
John Criswell7a73b802003-06-30 21:59:07 +000025983_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025984rm -f conftest.$ac_objext
25985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025986 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025992 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025993 { ac_try='test -z "$ac_c_werror_flag"
25994 || test ! -s conftest.err'
25995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996 (eval $ac_try) 2>&5
25997 ac_status=$?
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); }; } &&
26000 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026006 ac_cv_header_stdc=yes
26007else
26008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026009sed 's/^/| /' conftest.$ac_ext >&5
26010
26011ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026014
26015if test $ac_cv_header_stdc = yes; then
26016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026018/* confdefs.h. */
26019_ACEOF
26020cat confdefs.h >>conftest.$ac_ext
26021cat >>conftest.$ac_ext <<_ACEOF
26022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026023#include <string.h>
26024
26025_ACEOF
26026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026027 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026028 :
26029else
26030 ac_cv_header_stdc=no
26031fi
26032rm -f conftest*
26033
26034fi
26035
26036if test $ac_cv_header_stdc = yes; then
26037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026039/* confdefs.h. */
26040_ACEOF
26041cat confdefs.h >>conftest.$ac_ext
26042cat >>conftest.$ac_ext <<_ACEOF
26043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026044#include <stdlib.h>
26045
26046_ACEOF
26047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026048 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026049 :
26050else
26051 ac_cv_header_stdc=no
26052fi
26053rm -f conftest*
26054
26055fi
26056
26057if test $ac_cv_header_stdc = yes; then
26058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26059 if test "$cross_compiling" = yes; then
26060 :
26061else
26062 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026063/* confdefs.h. */
26064_ACEOF
26065cat confdefs.h >>conftest.$ac_ext
26066cat >>conftest.$ac_ext <<_ACEOF
26067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026068#include <ctype.h>
26069#if ((' ' & 0x0FF) == 0x020)
26070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26072#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026073# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026074 (('a' <= (c) && (c) <= 'i') \
26075 || ('j' <= (c) && (c) <= 'r') \
26076 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26078#endif
26079
26080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26081int
26082main ()
26083{
26084 int i;
26085 for (i = 0; i < 256; i++)
26086 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026087 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026088 exit(2);
26089 exit (0);
26090}
26091_ACEOF
26092rm -f conftest$ac_exeext
26093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26094 (eval $ac_link) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 :
26104else
26105 echo "$as_me: program exited with status $ac_status" >&5
26106echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026107sed 's/^/| /' conftest.$ac_ext >&5
26108
John Criswell7a73b802003-06-30 21:59:07 +000026109( exit $ac_status )
26110ac_cv_header_stdc=no
26111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026112rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026113fi
26114fi
26115fi
26116echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26117echo "${ECHO_T}$ac_cv_header_stdc" >&6
26118if test $ac_cv_header_stdc = yes; then
26119
26120cat >>confdefs.h <<\_ACEOF
26121#define STDC_HEADERS 1
26122_ACEOF
26123
26124fi
26125
26126echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26127echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26128if test "${ac_cv_header_sys_wait_h+set}" = set; then
26129 echo $ECHO_N "(cached) $ECHO_C" >&6
26130else
26131 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026132/* confdefs.h. */
26133_ACEOF
26134cat confdefs.h >>conftest.$ac_ext
26135cat >>conftest.$ac_ext <<_ACEOF
26136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026137#include <sys/types.h>
26138#include <sys/wait.h>
26139#ifndef WEXITSTATUS
26140# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26141#endif
26142#ifndef WIFEXITED
26143# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26144#endif
26145
John Criswell7a73b802003-06-30 21:59:07 +000026146int
26147main ()
26148{
26149 int s;
26150 wait (&s);
26151 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26152 ;
26153 return 0;
26154}
26155_ACEOF
26156rm -f conftest.$ac_objext
26157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026158 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026160 grep -v '^ *+' conftest.er1 >conftest.err
26161 rm -f conftest.er1
26162 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026165 { ac_try='test -z "$ac_c_werror_flag"
26166 || test ! -s conftest.err'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; } &&
26172 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26175 ac_status=$?
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; }; then
26178 ac_cv_header_sys_wait_h=yes
26179else
26180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026181sed 's/^/| /' conftest.$ac_ext >&5
26182
John Criswell7a73b802003-06-30 21:59:07 +000026183ac_cv_header_sys_wait_h=no
26184fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026186fi
26187echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26188echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26189if test $ac_cv_header_sys_wait_h = yes; then
26190
26191cat >>confdefs.h <<\_ACEOF
26192#define HAVE_SYS_WAIT_H 1
26193_ACEOF
26194
26195fi
26196
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026197echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26198echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26199if test "${ac_cv_header_time+set}" = set; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26201else
26202 cat >conftest.$ac_ext <<_ACEOF
26203/* confdefs.h. */
26204_ACEOF
26205cat confdefs.h >>conftest.$ac_ext
26206cat >>conftest.$ac_ext <<_ACEOF
26207/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026208#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026209#include <sys/time.h>
26210#include <time.h>
26211
26212int
26213main ()
26214{
26215if ((struct tm *) 0)
26216return 0;
26217 ;
26218 return 0;
26219}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026220_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026221rm -f conftest.$ac_objext
26222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26223 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026224 ac_status=$?
26225 grep -v '^ *+' conftest.er1 >conftest.err
26226 rm -f conftest.er1
26227 cat conftest.err >&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026229 (exit $ac_status); } &&
26230 { ac_try='test -z "$ac_c_werror_flag"
26231 || test ! -s conftest.err'
26232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); }; } &&
26237 { ac_try='test -s conftest.$ac_objext'
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26240 ac_status=$?
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; }; then
26243 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026244else
26245 echo "$as_me: failed program was:" >&5
26246sed 's/^/| /' conftest.$ac_ext >&5
26247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026248ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026249fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26251fi
26252echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26253echo "${ECHO_T}$ac_cv_header_time" >&6
26254if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026255
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026256cat >>confdefs.h <<\_ACEOF
26257#define TIME_WITH_SYS_TIME 1
26258_ACEOF
26259
26260fi
26261
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026262
Reid Spencer59473af2004-12-25 07:31:29 +000026263
26264
26265
26266
26267
26268
26269for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26270do
26271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26272if eval "test \"\${$as_ac_Header+set}\" = set"; then
26273 echo "$as_me:$LINENO: checking for $ac_header" >&5
26274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26275if eval "test \"\${$as_ac_Header+set}\" = set"; then
26276 echo $ECHO_N "(cached) $ECHO_C" >&6
26277fi
26278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26280else
26281 # Is the header compilable?
26282echo "$as_me:$LINENO: checking $ac_header usability" >&5
26283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26284cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026285/* confdefs.h. */
26286_ACEOF
26287cat confdefs.h >>conftest.$ac_ext
26288cat >>conftest.$ac_ext <<_ACEOF
26289/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026290$ac_includes_default
26291#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026292_ACEOF
26293rm -f conftest.$ac_objext
26294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26295 (eval $ac_compile) 2>conftest.er1
26296 ac_status=$?
26297 grep -v '^ *+' conftest.er1 >conftest.err
26298 rm -f conftest.er1
26299 cat conftest.err >&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); } &&
26302 { ac_try='test -z "$ac_c_werror_flag"
26303 || test ! -s conftest.err'
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; } &&
26309 { ac_try='test -s conftest.$ac_objext'
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026315 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026316else
26317 echo "$as_me: failed program was:" >&5
26318sed 's/^/| /' conftest.$ac_ext >&5
26319
Reid Spencer59473af2004-12-25 07:31:29 +000026320ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026321fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026323echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26324echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026325
Reid Spencer59473af2004-12-25 07:31:29 +000026326# Is the header present?
26327echo "$as_me:$LINENO: checking $ac_header presence" >&5
26328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26329cat >conftest.$ac_ext <<_ACEOF
26330/* confdefs.h. */
26331_ACEOF
26332cat confdefs.h >>conftest.$ac_ext
26333cat >>conftest.$ac_ext <<_ACEOF
26334/* end confdefs.h. */
26335#include <$ac_header>
26336_ACEOF
26337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26338 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
26345 if test -s conftest.err; then
26346 ac_cpp_err=$ac_c_preproc_warn_flag
26347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26348 else
26349 ac_cpp_err=
26350 fi
26351else
26352 ac_cpp_err=yes
26353fi
26354if test -z "$ac_cpp_err"; then
26355 ac_header_preproc=yes
26356else
26357 echo "$as_me: failed program was:" >&5
26358sed 's/^/| /' conftest.$ac_ext >&5
26359
26360 ac_header_preproc=no
26361fi
26362rm -f conftest.err conftest.$ac_ext
26363echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364echo "${ECHO_T}$ac_header_preproc" >&6
26365
26366# So? What about this header?
26367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26368 yes:no: )
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373 ac_header_preproc=yes
26374 ;;
26375 no:yes:* )
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26388 (
26389 cat <<\_ASBOX
26390## ----------------------------------- ##
26391## Report this to llvmbugs@cs.uiuc.edu ##
26392## ----------------------------------- ##
26393_ASBOX
26394 ) |
26395 sed "s/^/$as_me: WARNING: /" >&2
26396 ;;
26397esac
26398echo "$as_me:$LINENO: checking for $ac_header" >&5
26399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26400if eval "test \"\${$as_ac_Header+set}\" = set"; then
26401 echo $ECHO_N "(cached) $ECHO_C" >&6
26402else
26403 eval "$as_ac_Header=\$ac_header_preproc"
26404fi
26405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026407
26408fi
Reid Spencer59473af2004-12-25 07:31:29 +000026409if test `eval echo '${'$as_ac_Header'}'` = yes; then
26410 cat >>confdefs.h <<_ACEOF
26411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026412_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026413
26414fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026415
Reid Spencer59473af2004-12-25 07:31:29 +000026416done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026417
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026418
26419
Reid Spencer59473af2004-12-25 07:31:29 +000026420
26421
26422
26423
Reid Spencer22177fe2005-07-12 15:24:20 +000026424for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26425do
26426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26427if eval "test \"\${$as_ac_Header+set}\" = set"; then
26428 echo "$as_me:$LINENO: checking for $ac_header" >&5
26429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26430if eval "test \"\${$as_ac_Header+set}\" = set"; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26432fi
26433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26435else
26436 # Is the header compilable?
26437echo "$as_me:$LINENO: checking $ac_header usability" >&5
26438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26439cat >conftest.$ac_ext <<_ACEOF
26440/* confdefs.h. */
26441_ACEOF
26442cat confdefs.h >>conftest.$ac_ext
26443cat >>conftest.$ac_ext <<_ACEOF
26444/* end confdefs.h. */
26445$ac_includes_default
26446#include <$ac_header>
26447_ACEOF
26448rm -f conftest.$ac_objext
26449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26450 (eval $ac_compile) 2>conftest.er1
26451 ac_status=$?
26452 grep -v '^ *+' conftest.er1 >conftest.err
26453 rm -f conftest.er1
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
26457 { ac_try='test -z "$ac_c_werror_flag"
26458 || test ! -s conftest.err'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; } &&
26464 { ac_try='test -s conftest.$ac_objext'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; }; then
26470 ac_header_compiler=yes
26471else
26472 echo "$as_me: failed program was:" >&5
26473sed 's/^/| /' conftest.$ac_ext >&5
26474
26475ac_header_compiler=no
26476fi
26477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26479echo "${ECHO_T}$ac_header_compiler" >&6
26480
26481# Is the header present?
26482echo "$as_me:$LINENO: checking $ac_header presence" >&5
26483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26484cat >conftest.$ac_ext <<_ACEOF
26485/* confdefs.h. */
26486_ACEOF
26487cat confdefs.h >>conftest.$ac_ext
26488cat >>conftest.$ac_ext <<_ACEOF
26489/* end confdefs.h. */
26490#include <$ac_header>
26491_ACEOF
26492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26494 ac_status=$?
26495 grep -v '^ *+' conftest.er1 >conftest.err
26496 rm -f conftest.er1
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } >/dev/null; then
26500 if test -s conftest.err; then
26501 ac_cpp_err=$ac_c_preproc_warn_flag
26502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26503 else
26504 ac_cpp_err=
26505 fi
26506else
26507 ac_cpp_err=yes
26508fi
26509if test -z "$ac_cpp_err"; then
26510 ac_header_preproc=yes
26511else
26512 echo "$as_me: failed program was:" >&5
26513sed 's/^/| /' conftest.$ac_ext >&5
26514
26515 ac_header_preproc=no
26516fi
26517rm -f conftest.err conftest.$ac_ext
26518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26519echo "${ECHO_T}$ac_header_preproc" >&6
26520
26521# So? What about this header?
26522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26523 yes:no: )
26524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26528 ac_header_preproc=yes
26529 ;;
26530 no:yes:* )
26531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26543 (
26544 cat <<\_ASBOX
26545## ----------------------------------- ##
26546## Report this to llvmbugs@cs.uiuc.edu ##
26547## ----------------------------------- ##
26548_ASBOX
26549 ) |
26550 sed "s/^/$as_me: WARNING: /" >&2
26551 ;;
26552esac
26553echo "$as_me:$LINENO: checking for $ac_header" >&5
26554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26555if eval "test \"\${$as_ac_Header+set}\" = set"; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26557else
26558 eval "$as_ac_Header=\$ac_header_preproc"
26559fi
26560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26562
26563fi
26564if test `eval echo '${'$as_ac_Header'}'` = yes; then
26565 cat >>confdefs.h <<_ACEOF
26566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26567_ACEOF
26568
26569fi
26570
26571done
26572
26573
26574for ac_header in windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026575do
26576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26577if eval "test \"\${$as_ac_Header+set}\" = set"; then
26578 echo "$as_me:$LINENO: checking for $ac_header" >&5
26579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26580if eval "test \"\${$as_ac_Header+set}\" = set"; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582fi
26583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26585else
26586 # Is the header compilable?
26587echo "$as_me:$LINENO: checking $ac_header usability" >&5
26588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26589cat >conftest.$ac_ext <<_ACEOF
26590/* confdefs.h. */
26591_ACEOF
26592cat confdefs.h >>conftest.$ac_ext
26593cat >>conftest.$ac_ext <<_ACEOF
26594/* end confdefs.h. */
26595$ac_includes_default
26596#include <$ac_header>
26597_ACEOF
26598rm -f conftest.$ac_objext
26599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26600 (eval $ac_compile) 2>conftest.er1
26601 ac_status=$?
26602 grep -v '^ *+' conftest.er1 >conftest.err
26603 rm -f conftest.er1
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
26607 { ac_try='test -z "$ac_c_werror_flag"
26608 || test ! -s conftest.err'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest.$ac_objext'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 ac_header_compiler=yes
26621else
26622 echo "$as_me: failed program was:" >&5
26623sed 's/^/| /' conftest.$ac_ext >&5
26624
26625ac_header_compiler=no
26626fi
26627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26629echo "${ECHO_T}$ac_header_compiler" >&6
26630
26631# Is the header present?
26632echo "$as_me:$LINENO: checking $ac_header presence" >&5
26633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26634cat >conftest.$ac_ext <<_ACEOF
26635/* confdefs.h. */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h. */
26640#include <$ac_header>
26641_ACEOF
26642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26644 ac_status=$?
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } >/dev/null; then
26650 if test -s conftest.err; then
26651 ac_cpp_err=$ac_c_preproc_warn_flag
26652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26653 else
26654 ac_cpp_err=
26655 fi
26656else
26657 ac_cpp_err=yes
26658fi
26659if test -z "$ac_cpp_err"; then
26660 ac_header_preproc=yes
26661else
26662 echo "$as_me: failed program was:" >&5
26663sed 's/^/| /' conftest.$ac_ext >&5
26664
26665 ac_header_preproc=no
26666fi
26667rm -f conftest.err conftest.$ac_ext
26668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26669echo "${ECHO_T}$ac_header_preproc" >&6
26670
26671# So? What about this header?
26672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26673 yes:no: )
26674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26678 ac_header_preproc=yes
26679 ;;
26680 no:yes:* )
26681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26693 (
26694 cat <<\_ASBOX
26695## ----------------------------------- ##
26696## Report this to llvmbugs@cs.uiuc.edu ##
26697## ----------------------------------- ##
26698_ASBOX
26699 ) |
26700 sed "s/^/$as_me: WARNING: /" >&2
26701 ;;
26702esac
26703echo "$as_me:$LINENO: checking for $ac_header" >&5
26704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26705if eval "test \"\${$as_ac_Header+set}\" = set"; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26707else
26708 eval "$as_ac_Header=\$ac_header_preproc"
26709fi
26710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26712
26713fi
26714if test `eval echo '${'$as_ac_Header'}'` = yes; then
26715 cat >>confdefs.h <<_ACEOF
26716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26717_ACEOF
26718
26719fi
26720
26721done
26722
26723
26724
26725
26726
26727
26728for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026729do
26730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26731if eval "test \"\${$as_ac_Header+set}\" = set"; then
26732 echo "$as_me:$LINENO: checking for $ac_header" >&5
26733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26734if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026735 echo $ECHO_N "(cached) $ECHO_C" >&6
26736fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026739else
26740 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026741echo "$as_me:$LINENO: checking $ac_header usability" >&5
26742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026743cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026744/* confdefs.h. */
26745_ACEOF
26746cat confdefs.h >>conftest.$ac_ext
26747cat >>conftest.$ac_ext <<_ACEOF
26748/* end confdefs.h. */
26749$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026750#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026751_ACEOF
26752rm -f conftest.$ac_objext
26753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026754 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026756 grep -v '^ *+' conftest.er1 >conftest.err
26757 rm -f conftest.er1
26758 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026761 { ac_try='test -z "$ac_c_werror_flag"
26762 || test ! -s conftest.err'
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26765 ac_status=$?
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; } &&
26768 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; }; then
26774 ac_header_compiler=yes
26775else
26776 echo "$as_me: failed program was:" >&5
26777sed 's/^/| /' conftest.$ac_ext >&5
26778
26779ac_header_compiler=no
26780fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26783echo "${ECHO_T}$ac_header_compiler" >&6
26784
26785# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026786echo "$as_me:$LINENO: checking $ac_header presence" >&5
26787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026788cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026789/* confdefs.h. */
26790_ACEOF
26791cat confdefs.h >>conftest.$ac_ext
26792cat >>conftest.$ac_ext <<_ACEOF
26793/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026794#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026795_ACEOF
26796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26798 ac_status=$?
26799 grep -v '^ *+' conftest.er1 >conftest.err
26800 rm -f conftest.er1
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } >/dev/null; then
26804 if test -s conftest.err; then
26805 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026807 else
26808 ac_cpp_err=
26809 fi
26810else
26811 ac_cpp_err=yes
26812fi
26813if test -z "$ac_cpp_err"; then
26814 ac_header_preproc=yes
26815else
26816 echo "$as_me: failed program was:" >&5
26817sed 's/^/| /' conftest.$ac_ext >&5
26818
26819 ac_header_preproc=no
26820fi
26821rm -f conftest.err conftest.$ac_ext
26822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26823echo "${ECHO_T}$ac_header_preproc" >&6
26824
26825# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26827 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026832 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026833 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026834 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026847 (
26848 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026849## ----------------------------------- ##
26850## Report this to llvmbugs@cs.uiuc.edu ##
26851## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026852_ASBOX
26853 ) |
26854 sed "s/^/$as_me: WARNING: /" >&2
26855 ;;
26856esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026857echo "$as_me:$LINENO: checking for $ac_header" >&5
26858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26859if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026860 echo $ECHO_N "(cached) $ECHO_C" >&6
26861else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026862 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026863fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026866
26867fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026868if test `eval echo '${'$as_ac_Header'}'` = yes; then
26869 cat >>confdefs.h <<_ACEOF
26870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026871_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026872
26873fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026874
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026875done
26876
John Criswell7ed43ad2004-07-19 16:12:29 +000026877
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026878
Reid Spencer8085cff2005-01-16 02:58:39 +000026879for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26880do
26881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26882if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883 echo "$as_me:$LINENO: checking for $ac_header" >&5
26884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26885if eval "test \"\${$as_ac_Header+set}\" = set"; then
26886 echo $ECHO_N "(cached) $ECHO_C" >&6
26887fi
26888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26890else
26891 # Is the header compilable?
26892echo "$as_me:$LINENO: checking $ac_header usability" >&5
26893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26894cat >conftest.$ac_ext <<_ACEOF
26895/* confdefs.h. */
26896_ACEOF
26897cat confdefs.h >>conftest.$ac_ext
26898cat >>conftest.$ac_ext <<_ACEOF
26899/* end confdefs.h. */
26900$ac_includes_default
26901#include <$ac_header>
26902_ACEOF
26903rm -f conftest.$ac_objext
26904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26905 (eval $ac_compile) 2>conftest.er1
26906 ac_status=$?
26907 grep -v '^ *+' conftest.er1 >conftest.err
26908 rm -f conftest.er1
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag"
26913 || test ! -s conftest.err'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest.$ac_objext'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_header_compiler=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930ac_header_compiler=no
26931fi
26932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26934echo "${ECHO_T}$ac_header_compiler" >&6
26935
26936# Is the header present?
26937echo "$as_me:$LINENO: checking $ac_header presence" >&5
26938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26939cat >conftest.$ac_ext <<_ACEOF
26940/* confdefs.h. */
26941_ACEOF
26942cat confdefs.h >>conftest.$ac_ext
26943cat >>conftest.$ac_ext <<_ACEOF
26944/* end confdefs.h. */
26945#include <$ac_header>
26946_ACEOF
26947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26949 ac_status=$?
26950 grep -v '^ *+' conftest.er1 >conftest.err
26951 rm -f conftest.er1
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } >/dev/null; then
26955 if test -s conftest.err; then
26956 ac_cpp_err=$ac_c_preproc_warn_flag
26957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26958 else
26959 ac_cpp_err=
26960 fi
26961else
26962 ac_cpp_err=yes
26963fi
26964if test -z "$ac_cpp_err"; then
26965 ac_header_preproc=yes
26966else
26967 echo "$as_me: failed program was:" >&5
26968sed 's/^/| /' conftest.$ac_ext >&5
26969
26970 ac_header_preproc=no
26971fi
26972rm -f conftest.err conftest.$ac_ext
26973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26974echo "${ECHO_T}$ac_header_preproc" >&6
26975
26976# So? What about this header?
26977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26978 yes:no: )
26979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26983 ac_header_preproc=yes
26984 ;;
26985 no:yes:* )
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26998 (
26999 cat <<\_ASBOX
27000## ----------------------------------- ##
27001## Report this to llvmbugs@cs.uiuc.edu ##
27002## ----------------------------------- ##
27003_ASBOX
27004 ) |
27005 sed "s/^/$as_me: WARNING: /" >&2
27006 ;;
27007esac
27008echo "$as_me:$LINENO: checking for $ac_header" >&5
27009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27010if eval "test \"\${$as_ac_Header+set}\" = set"; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27012else
27013 eval "$as_ac_Header=\$ac_header_preproc"
27014fi
27015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27017
27018fi
27019if test `eval echo '${'$as_ac_Header'}'` = yes; then
27020 cat >>confdefs.h <<_ACEOF
27021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27022_ACEOF
27023
27024fi
27025
27026done
27027
27028
27029
John Criswell7a73b802003-06-30 21:59:07 +000027030echo "$as_me:$LINENO: checking for pid_t" >&5
27031echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27032if test "${ac_cv_type_pid_t+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034else
27035 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027036/* confdefs.h. */
27037_ACEOF
27038cat confdefs.h >>conftest.$ac_ext
27039cat >>conftest.$ac_ext <<_ACEOF
27040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027041$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027042int
27043main ()
27044{
27045if ((pid_t *) 0)
27046 return 0;
27047if (sizeof (pid_t))
27048 return 0;
27049 ;
27050 return 0;
27051}
27052_ACEOF
27053rm -f conftest.$ac_objext
27054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027055 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027057 grep -v '^ *+' conftest.er1 >conftest.err
27058 rm -f conftest.er1
27059 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027062 { ac_try='test -z "$ac_c_werror_flag"
27063 || test ! -s conftest.err'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; } &&
27069 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ac_cv_type_pid_t=yes
27076else
27077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027078sed 's/^/| /' conftest.$ac_ext >&5
27079
John Criswell7a73b802003-06-30 21:59:07 +000027080ac_cv_type_pid_t=no
27081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027083fi
27084echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27085echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27086if test $ac_cv_type_pid_t = yes; then
27087 :
27088else
27089
27090cat >>confdefs.h <<_ACEOF
27091#define pid_t int
27092_ACEOF
27093
27094fi
27095
27096echo "$as_me:$LINENO: checking for size_t" >&5
27097echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27098if test "${ac_cv_type_size_t+set}" = set; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27100else
27101 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027102/* confdefs.h. */
27103_ACEOF
27104cat confdefs.h >>conftest.$ac_ext
27105cat >>conftest.$ac_ext <<_ACEOF
27106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027107$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027108int
27109main ()
27110{
27111if ((size_t *) 0)
27112 return 0;
27113if (sizeof (size_t))
27114 return 0;
27115 ;
27116 return 0;
27117}
27118_ACEOF
27119rm -f conftest.$ac_objext
27120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027121 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027123 grep -v '^ *+' conftest.er1 >conftest.err
27124 rm -f conftest.er1
27125 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027128 { ac_try='test -z "$ac_c_werror_flag"
27129 || test ! -s conftest.err'
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; } &&
27135 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; }; then
27141 ac_cv_type_size_t=yes
27142else
27143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027144sed 's/^/| /' conftest.$ac_ext >&5
27145
John Criswell7a73b802003-06-30 21:59:07 +000027146ac_cv_type_size_t=no
27147fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027149fi
27150echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27151echo "${ECHO_T}$ac_cv_type_size_t" >&6
27152if test $ac_cv_type_size_t = yes; then
27153 :
27154else
27155
27156cat >>confdefs.h <<_ACEOF
27157#define size_t unsigned
27158_ACEOF
27159
27160fi
27161
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027162echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27163echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27164if test "${ac_cv_type_signal+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27166else
27167 cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h. */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h. */
27173#include <sys/types.h>
27174#include <signal.h>
27175#ifdef signal
27176# undef signal
27177#endif
27178#ifdef __cplusplus
27179extern "C" void (*signal (int, void (*)(int)))(int);
27180#else
27181void (*signal ()) ();
27182#endif
27183
27184int
27185main ()
27186{
27187int i;
27188 ;
27189 return 0;
27190}
27191_ACEOF
27192rm -f conftest.$ac_objext
27193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27194 (eval $ac_compile) 2>conftest.er1
27195 ac_status=$?
27196 grep -v '^ *+' conftest.er1 >conftest.err
27197 rm -f conftest.er1
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } &&
27201 { ac_try='test -z "$ac_c_werror_flag"
27202 || test ! -s conftest.err'
27203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204 (eval $ac_try) 2>&5
27205 ac_status=$?
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; } &&
27208 { ac_try='test -s conftest.$ac_objext'
27209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210 (eval $ac_try) 2>&5
27211 ac_status=$?
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; }; then
27214 ac_cv_type_signal=void
27215else
27216 echo "$as_me: failed program was:" >&5
27217sed 's/^/| /' conftest.$ac_ext >&5
27218
27219ac_cv_type_signal=int
27220fi
27221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27222fi
27223echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27224echo "${ECHO_T}$ac_cv_type_signal" >&6
27225
27226cat >>confdefs.h <<_ACEOF
27227#define RETSIGTYPE $ac_cv_type_signal
27228_ACEOF
27229
27230
27231echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27232echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27233if test "${ac_cv_struct_tm+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27235else
27236 cat >conftest.$ac_ext <<_ACEOF
27237/* confdefs.h. */
27238_ACEOF
27239cat confdefs.h >>conftest.$ac_ext
27240cat >>conftest.$ac_ext <<_ACEOF
27241/* end confdefs.h. */
27242#include <sys/types.h>
27243#include <time.h>
27244
27245int
27246main ()
27247{
27248struct tm *tp; tp->tm_sec;
27249 ;
27250 return 0;
27251}
27252_ACEOF
27253rm -f conftest.$ac_objext
27254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27255 (eval $ac_compile) 2>conftest.er1
27256 ac_status=$?
27257 grep -v '^ *+' conftest.er1 >conftest.err
27258 rm -f conftest.er1
27259 cat conftest.err >&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); } &&
27262 { ac_try='test -z "$ac_c_werror_flag"
27263 || test ! -s conftest.err'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27266 ac_status=$?
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; } &&
27269 { ac_try='test -s conftest.$ac_objext'
27270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271 (eval $ac_try) 2>&5
27272 ac_status=$?
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); }; }; then
27275 ac_cv_struct_tm=time.h
27276else
27277 echo "$as_me: failed program was:" >&5
27278sed 's/^/| /' conftest.$ac_ext >&5
27279
27280ac_cv_struct_tm=sys/time.h
27281fi
27282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27283fi
27284echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27285echo "${ECHO_T}$ac_cv_struct_tm" >&6
27286if test $ac_cv_struct_tm = sys/time.h; then
27287
27288cat >>confdefs.h <<\_ACEOF
27289#define TM_IN_SYS_TIME 1
27290_ACEOF
27291
27292fi
27293
John Criswell7a73b802003-06-30 21:59:07 +000027294echo "$as_me:$LINENO: checking for int64_t" >&5
27295echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27296if test "${ac_cv_type_int64_t+set}" = set; then
27297 echo $ECHO_N "(cached) $ECHO_C" >&6
27298else
27299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027300/* confdefs.h. */
27301_ACEOF
27302cat confdefs.h >>conftest.$ac_ext
27303cat >>conftest.$ac_ext <<_ACEOF
27304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027305$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027306int
27307main ()
27308{
27309if ((int64_t *) 0)
27310 return 0;
27311if (sizeof (int64_t))
27312 return 0;
27313 ;
27314 return 0;
27315}
27316_ACEOF
27317rm -f conftest.$ac_objext
27318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027319 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027321 grep -v '^ *+' conftest.er1 >conftest.err
27322 rm -f conftest.er1
27323 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027326 { ac_try='test -z "$ac_c_werror_flag"
27327 || test ! -s conftest.err'
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ac_cv_type_int64_t=yes
27340else
27341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027342sed 's/^/| /' conftest.$ac_ext >&5
27343
John Criswell7a73b802003-06-30 21:59:07 +000027344ac_cv_type_int64_t=no
27345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027347fi
27348echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27349echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27350if test $ac_cv_type_int64_t = yes; then
27351
27352cat >>confdefs.h <<_ACEOF
27353#define HAVE_INT64_T 1
27354_ACEOF
27355
27356
27357else
27358 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27359echo "$as_me: error: Type int64_t required but not found" >&2;}
27360 { (exit 1); exit 1; }; }
27361fi
27362
27363echo "$as_me:$LINENO: checking for uint64_t" >&5
27364echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27365if test "${ac_cv_type_uint64_t+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27367else
27368 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027369/* confdefs.h. */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
27373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027374$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027375int
27376main ()
27377{
27378if ((uint64_t *) 0)
27379 return 0;
27380if (sizeof (uint64_t))
27381 return 0;
27382 ;
27383 return 0;
27384}
27385_ACEOF
27386rm -f conftest.$ac_objext
27387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027388 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027390 grep -v '^ *+' conftest.er1 >conftest.err
27391 rm -f conftest.er1
27392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027395 { 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'
John Criswell7a73b802003-06-30 21:59:07 +000027403 { (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_cv_type_uint64_t=yes
27409else
27410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027411sed 's/^/| /' conftest.$ac_ext >&5
27412
John Criswell7a73b802003-06-30 21:59:07 +000027413ac_cv_type_uint64_t=no
27414fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027416fi
27417echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27418echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27419if test $ac_cv_type_uint64_t = yes; then
27420
27421cat >>confdefs.h <<_ACEOF
27422#define HAVE_UINT64_T 1
27423_ACEOF
27424
27425
27426else
Misha Brukmanceca9042004-09-02 23:02:30 +000027427 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027428echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27429if test "${ac_cv_type_u_int64_t+set}" = set; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27431else
27432 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027433/* confdefs.h. */
27434_ACEOF
27435cat confdefs.h >>conftest.$ac_ext
27436cat >>conftest.$ac_ext <<_ACEOF
27437/* end confdefs.h. */
27438$ac_includes_default
27439int
27440main ()
27441{
27442if ((u_int64_t *) 0)
27443 return 0;
27444if (sizeof (u_int64_t))
27445 return 0;
27446 ;
27447 return 0;
27448}
27449_ACEOF
27450rm -f conftest.$ac_objext
27451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027452 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027459 { ac_try='test -z "$ac_c_werror_flag"
27460 || test ! -s conftest.err'
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 ac_cv_type_u_int64_t=yes
27473else
27474 echo "$as_me: failed program was:" >&5
27475sed 's/^/| /' conftest.$ac_ext >&5
27476
27477ac_cv_type_u_int64_t=no
27478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027480fi
27481echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27482echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27483if test $ac_cv_type_u_int64_t = yes; then
27484
27485cat >>confdefs.h <<_ACEOF
27486#define HAVE_U_INT64_T 1
27487_ACEOF
27488
27489
Misha Brukmanceca9042004-09-02 23:02:30 +000027490else
27491 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27492echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27493 { (exit 1); exit 1; }; }
27494fi
27495
John Criswell679ff312004-09-02 18:44:44 +000027496fi
27497
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027498
27499
27500
27501
27502
27503
27504
Reid Spencerb9a5d682005-05-15 22:15:11 +000027505for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
Reid Spencerab5eaea2004-12-20 00:59:04 +000027506do
27507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27508echo "$as_me:$LINENO: checking for $ac_func" >&5
27509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27510if eval "test \"\${$as_ac_var+set}\" = set"; then
27511 echo $ECHO_N "(cached) $ECHO_C" >&6
27512else
27513 cat >conftest.$ac_ext <<_ACEOF
27514/* confdefs.h. */
27515_ACEOF
27516cat confdefs.h >>conftest.$ac_ext
27517cat >>conftest.$ac_ext <<_ACEOF
27518/* end confdefs.h. */
27519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27521#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027522
Reid Spencerab5eaea2004-12-20 00:59:04 +000027523/* System header to define __stub macros and hopefully few prototypes,
27524 which can conflict with char $ac_func (); below.
27525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27526 <limits.h> exists even on freestanding compilers. */
27527
27528#ifdef __STDC__
27529# include <limits.h>
27530#else
27531# include <assert.h>
27532#endif
27533
27534#undef $ac_func
27535
27536/* Override any gcc2 internal prototype to avoid an error. */
27537#ifdef __cplusplus
27538extern "C"
27539{
27540#endif
27541/* We use char because int might match the return type of a gcc2
27542 builtin and then its argument prototype would still apply. */
27543char $ac_func ();
27544/* The GNU C library defines this for functions which it implements
27545 to always fail with ENOSYS. Some functions are actually named
27546 something starting with __ and the normal name is an alias. */
27547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27548choke me
27549#else
27550char (*f) () = $ac_func;
27551#endif
27552#ifdef __cplusplus
27553}
27554#endif
27555
27556int
27557main ()
27558{
27559return f != $ac_func;
27560 ;
27561 return 0;
27562}
27563_ACEOF
27564rm -f conftest.$ac_objext conftest$ac_exeext
27565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566 (eval $ac_link) 2>conftest.er1
27567 ac_status=$?
27568 grep -v '^ *+' conftest.er1 >conftest.err
27569 rm -f conftest.er1
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 eval "$as_ac_var=yes"
27587else
27588 echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591eval "$as_ac_var=no"
27592fi
27593rm -f conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
27595fi
27596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27598if test `eval echo '${'$as_ac_var'}'` = yes; then
27599 cat >>confdefs.h <<_ACEOF
27600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27601_ACEOF
27602
27603fi
27604done
27605
27606
27607
27608
Reid Spencerc29b13d2005-05-14 16:42:52 +000027609
27610for ac_func in isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027611do
27612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613echo "$as_me:$LINENO: checking for $ac_func" >&5
27614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27615if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617else
27618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27626#define $ac_func innocuous_$ac_func
27627
27628/* System header to define __stub macros and hopefully few prototypes,
27629 which can conflict with char $ac_func (); below.
27630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631 <limits.h> exists even on freestanding compilers. */
27632
27633#ifdef __STDC__
27634# include <limits.h>
27635#else
27636# include <assert.h>
27637#endif
27638
27639#undef $ac_func
27640
27641/* Override any gcc2 internal prototype to avoid an error. */
27642#ifdef __cplusplus
27643extern "C"
27644{
27645#endif
27646/* We use char because int might match the return type of a gcc2
27647 builtin and then its argument prototype would still apply. */
27648char $ac_func ();
27649/* The GNU C library defines this for functions which it implements
27650 to always fail with ENOSYS. Some functions are actually named
27651 something starting with __ and the normal name is an alias. */
27652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27653choke me
27654#else
27655char (*f) () = $ac_func;
27656#endif
27657#ifdef __cplusplus
27658}
27659#endif
John Criswell7a73b802003-06-30 21:59:07 +000027660
John Criswell7a73b802003-06-30 21:59:07 +000027661int
27662main ()
27663{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027664return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027665 ;
27666 return 0;
27667}
27668_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027669rm -f conftest.$ac_objext conftest$ac_exeext
27670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27671 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027672 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027673 grep -v '^ *+' conftest.er1 >conftest.err
27674 rm -f conftest.er1
27675 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027678 { ac_try='test -z "$ac_c_werror_flag"
27679 || test ! -s conftest.err'
27680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681 (eval $ac_try) 2>&5
27682 ac_status=$?
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027685 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687 (eval $ac_try) 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027691 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027692else
27693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027694sed 's/^/| /' conftest.$ac_ext >&5
27695
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027696eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027697fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027698rm -f conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027700fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27703if test `eval echo '${'$as_ac_var'}'` = yes; then
27704 cat >>confdefs.h <<_ACEOF
27705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027706_ACEOF
27707
27708fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027709done
John Criswell7a73b802003-06-30 21:59:07 +000027710
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027711
27712
27713
Reid Spencer6af3d262004-12-15 04:01:48 +000027714
27715
Reid Spencer59473af2004-12-25 07:31:29 +000027716
Reid Spencerba46ca32004-12-31 05:49:15 +000027717for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027718do
27719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27720echo "$as_me:$LINENO: checking for $ac_func" >&5
27721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27722if eval "test \"\${$as_ac_var+set}\" = set"; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27724else
27725 cat >conftest.$ac_ext <<_ACEOF
27726/* confdefs.h. */
27727_ACEOF
27728cat confdefs.h >>conftest.$ac_ext
27729cat >>conftest.$ac_ext <<_ACEOF
27730/* end confdefs.h. */
27731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27733#define $ac_func innocuous_$ac_func
27734
27735/* System header to define __stub macros and hopefully few prototypes,
27736 which can conflict with char $ac_func (); below.
27737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27738 <limits.h> exists even on freestanding compilers. */
27739
27740#ifdef __STDC__
27741# include <limits.h>
27742#else
27743# include <assert.h>
27744#endif
27745
27746#undef $ac_func
27747
27748/* Override any gcc2 internal prototype to avoid an error. */
27749#ifdef __cplusplus
27750extern "C"
27751{
27752#endif
27753/* We use char because int might match the return type of a gcc2
27754 builtin and then its argument prototype would still apply. */
27755char $ac_func ();
27756/* The GNU C library defines this for functions which it implements
27757 to always fail with ENOSYS. Some functions are actually named
27758 something starting with __ and the normal name is an alias. */
27759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27760choke me
27761#else
27762char (*f) () = $ac_func;
27763#endif
27764#ifdef __cplusplus
27765}
27766#endif
27767
27768int
27769main ()
27770{
27771return f != $ac_func;
27772 ;
27773 return 0;
27774}
27775_ACEOF
27776rm -f conftest.$ac_objext conftest$ac_exeext
27777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27778 (eval $ac_link) 2>conftest.er1
27779 ac_status=$?
27780 grep -v '^ *+' conftest.er1 >conftest.err
27781 rm -f conftest.er1
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } &&
27785 { ac_try='test -z "$ac_c_werror_flag"
27786 || test ! -s conftest.err'
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; } &&
27792 { ac_try='test -s conftest$ac_exeext'
27793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794 (eval $ac_try) 2>&5
27795 ac_status=$?
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; }; then
27798 eval "$as_ac_var=yes"
27799else
27800 echo "$as_me: failed program was:" >&5
27801sed 's/^/| /' conftest.$ac_ext >&5
27802
27803eval "$as_ac_var=no"
27804fi
27805rm -f conftest.err conftest.$ac_objext \
27806 conftest$ac_exeext conftest.$ac_ext
27807fi
27808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27809echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27810if test `eval echo '${'$as_ac_var'}'` = yes; then
27811 cat >>confdefs.h <<_ACEOF
27812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27813_ACEOF
27814
27815fi
27816done
27817
27818
Reid Spencerba46ca32004-12-31 05:49:15 +000027819
27820
27821for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027822do
27823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27824echo "$as_me:$LINENO: checking for $ac_func" >&5
27825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27826if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828else
27829 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027830/* confdefs.h. */
27831_ACEOF
27832cat confdefs.h >>conftest.$ac_ext
27833cat >>conftest.$ac_ext <<_ACEOF
27834/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27837#define $ac_func innocuous_$ac_func
27838
27839/* System header to define __stub macros and hopefully few prototypes,
27840 which can conflict with char $ac_func (); below.
27841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27842 <limits.h> exists even on freestanding compilers. */
27843
27844#ifdef __STDC__
27845# include <limits.h>
27846#else
27847# include <assert.h>
27848#endif
27849
27850#undef $ac_func
27851
27852/* Override any gcc2 internal prototype to avoid an error. */
27853#ifdef __cplusplus
27854extern "C"
27855{
27856#endif
27857/* We use char because int might match the return type of a gcc2
27858 builtin and then its argument prototype would still apply. */
27859char $ac_func ();
27860/* The GNU C library defines this for functions which it implements
27861 to always fail with ENOSYS. Some functions are actually named
27862 something starting with __ and the normal name is an alias. */
27863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27864choke me
27865#else
27866char (*f) () = $ac_func;
27867#endif
27868#ifdef __cplusplus
27869}
27870#endif
John Criswell7a73b802003-06-30 21:59:07 +000027871
John Criswell7a73b802003-06-30 21:59:07 +000027872int
27873main ()
27874{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027875return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027876 ;
27877 return 0;
27878}
27879_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027880rm -f conftest.$ac_objext conftest$ac_exeext
27881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27882 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027884 grep -v '^ *+' conftest.er1 >conftest.err
27885 rm -f conftest.er1
27886 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027889 { ac_try='test -z "$ac_c_werror_flag"
27890 || test ! -s conftest.err'
27891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892 (eval $ac_try) 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027896 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027902 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027903else
27904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027905sed 's/^/| /' conftest.$ac_ext >&5
27906
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027907eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027908fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027909rm -f conftest.err conftest.$ac_objext \
27910 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027911fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27914if test `eval echo '${'$as_ac_var'}'` = yes; then
27915 cat >>confdefs.h <<_ACEOF
27916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027917_ACEOF
27918
27919fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027920done
John Criswell7a73b802003-06-30 21:59:07 +000027921
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027922echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27923echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027924if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027925 echo $ECHO_N "(cached) $ECHO_C" >&6
27926else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027927 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027928ac_cpp='$CPP $CPPFLAGS'
27929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931ac_compiler_gnu=$ac_cv_c_compiler_gnu
27932
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027933 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027934 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027935else
27936 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027937
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027938 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
27942/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027943
John Criswella0137d32003-10-13 16:22:01 +000027944#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027945#include <stdlib.h>
27946
John Criswella0137d32003-10-13 16:22:01 +000027947int
27948main ()
27949{
27950
Reid Spencer2706f8c2004-09-19 23:53:36 +000027951volatile double A, B;
27952char Buffer[100];
27953A = 1;
27954A /= 10.0;
27955sprintf(Buffer, "%a", A);
27956B = atof(Buffer);
27957if (A != B)
27958 return (1);
27959if (A != 0x1.999999999999ap-4)
27960 return (1);
27961return (0);
John Criswella0137d32003-10-13 16:22:01 +000027962 ;
27963 return 0;
27964}
27965_ACEOF
27966rm -f conftest$ac_exeext
27967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27968 (eval $ac_link) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973 (eval $ac_try) 2>&5
27974 ac_status=$?
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027977 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027978else
27979 echo "$as_me: program exited with status $ac_status" >&5
27980echo "$as_me: failed program was:" >&5
27981sed 's/^/| /' conftest.$ac_ext >&5
27982
27983( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027984llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027987fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027988 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027989ac_cpp='$CPP $CPPFLAGS'
27990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27992ac_compiler_gnu=$ac_cv_c_compiler_gnu
27993
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027994fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027995echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27996echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27997 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027998
27999cat >>confdefs.h <<\_ACEOF
28000#define HAVE_PRINTF_A 1
28001_ACEOF
28002
Reid Spencer2706f8c2004-09-19 23:53:36 +000028003 fi
John Criswella0137d32003-10-13 16:22:01 +000028004
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028005# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28006# for constant arguments. Useless!
28007echo "$as_me:$LINENO: checking for working alloca.h" >&5
28008echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28009if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028010 echo $ECHO_N "(cached) $ECHO_C" >&6
28011else
John Criswell0021c312004-02-13 21:57:29 +000028012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028013/* confdefs.h. */
28014_ACEOF
28015cat confdefs.h >>conftest.$ac_ext
28016cat >>conftest.$ac_ext <<_ACEOF
28017/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028018#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028019int
28020main ()
28021{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028022char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028023 ;
28024 return 0;
28025}
28026_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028027rm -f conftest.$ac_objext conftest$ac_exeext
28028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28029 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028030 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028031 grep -v '^ *+' conftest.er1 >conftest.err
28032 rm -f conftest.er1
28033 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028036 { ac_try='test -z "$ac_c_werror_flag"
28037 || test ! -s conftest.err'
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028043 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045 (eval $ac_try) 2>&5
28046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028049 ac_cv_working_alloca_h=yes
28050else
28051 echo "$as_me: failed program was:" >&5
28052sed 's/^/| /' conftest.$ac_ext >&5
28053
28054ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028055fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028056rm -f conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
28058fi
28059echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28060echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28061if test $ac_cv_working_alloca_h = yes; then
28062
28063cat >>confdefs.h <<\_ACEOF
28064#define HAVE_ALLOCA_H 1
28065_ACEOF
28066
28067fi
28068
28069echo "$as_me:$LINENO: checking for alloca" >&5
28070echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28071if test "${ac_cv_func_alloca_works+set}" = set; then
28072 echo $ECHO_N "(cached) $ECHO_C" >&6
28073else
28074 cat >conftest.$ac_ext <<_ACEOF
28075/* confdefs.h. */
28076_ACEOF
28077cat confdefs.h >>conftest.$ac_ext
28078cat >>conftest.$ac_ext <<_ACEOF
28079/* end confdefs.h. */
28080#ifdef __GNUC__
28081# define alloca __builtin_alloca
28082#else
28083# ifdef _MSC_VER
28084# include <malloc.h>
28085# define alloca _alloca
28086# else
28087# if HAVE_ALLOCA_H
28088# include <alloca.h>
28089# else
28090# ifdef _AIX
28091 #pragma alloca
28092# else
28093# ifndef alloca /* predefined by HP cc +Olibcalls */
28094char *alloca ();
28095# endif
28096# endif
28097# endif
28098# endif
28099#endif
28100
28101int
28102main ()
28103{
28104char *p = (char *) alloca (1);
28105 ;
28106 return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext conftest$ac_exeext
28110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28111 (eval $ac_link) 2>conftest.er1
28112 ac_status=$?
28113 grep -v '^ *+' conftest.er1 >conftest.err
28114 rm -f conftest.er1
28115 cat conftest.err >&5
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
28118 { ac_try='test -z "$ac_c_werror_flag"
28119 || test ! -s conftest.err'
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; } &&
28125 { ac_try='test -s conftest$ac_exeext'
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28128 ac_status=$?
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; }; then
28131 ac_cv_func_alloca_works=yes
28132else
28133 echo "$as_me: failed program was:" >&5
28134sed 's/^/| /' conftest.$ac_ext >&5
28135
28136ac_cv_func_alloca_works=no
28137fi
28138rm -f conftest.err conftest.$ac_objext \
28139 conftest$ac_exeext conftest.$ac_ext
28140fi
28141echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28142echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28143
28144if test $ac_cv_func_alloca_works = yes; then
28145
28146cat >>confdefs.h <<\_ACEOF
28147#define HAVE_ALLOCA 1
28148_ACEOF
28149
28150else
28151 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28152# that cause trouble. Some versions do not even contain alloca or
28153# contain a buggy version. If you still want to use their alloca,
28154# use ar to extract alloca.o from them instead of compiling alloca.c.
28155
28156ALLOCA=alloca.$ac_objext
28157
28158cat >>confdefs.h <<\_ACEOF
28159#define C_ALLOCA 1
28160_ACEOF
28161
28162
28163echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28164echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28165if test "${ac_cv_os_cray+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167else
28168 cat >conftest.$ac_ext <<_ACEOF
28169/* confdefs.h. */
28170_ACEOF
28171cat confdefs.h >>conftest.$ac_ext
28172cat >>conftest.$ac_ext <<_ACEOF
28173/* end confdefs.h. */
28174#if defined(CRAY) && ! defined(CRAY2)
28175webecray
28176#else
28177wenotbecray
28178#endif
28179
28180_ACEOF
28181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28182 $EGREP "webecray" >/dev/null 2>&1; then
28183 ac_cv_os_cray=yes
28184else
28185 ac_cv_os_cray=no
28186fi
28187rm -f conftest*
28188
28189fi
28190echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28191echo "${ECHO_T}$ac_cv_os_cray" >&6
28192if test $ac_cv_os_cray = yes; then
28193 for ac_func in _getb67 GETB67 getb67; do
28194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195echo "$as_me:$LINENO: checking for $ac_func" >&5
28196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28197if eval "test \"\${$as_ac_var+set}\" = set"; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28199else
28200 cat >conftest.$ac_ext <<_ACEOF
28201/* confdefs.h. */
28202_ACEOF
28203cat confdefs.h >>conftest.$ac_ext
28204cat >>conftest.$ac_ext <<_ACEOF
28205/* end confdefs.h. */
28206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28208#define $ac_func innocuous_$ac_func
28209
28210/* System header to define __stub macros and hopefully few prototypes,
28211 which can conflict with char $ac_func (); below.
28212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28213 <limits.h> exists even on freestanding compilers. */
28214
28215#ifdef __STDC__
28216# include <limits.h>
28217#else
28218# include <assert.h>
28219#endif
28220
28221#undef $ac_func
28222
28223/* Override any gcc2 internal prototype to avoid an error. */
28224#ifdef __cplusplus
28225extern "C"
28226{
28227#endif
28228/* We use char because int might match the return type of a gcc2
28229 builtin and then its argument prototype would still apply. */
28230char $ac_func ();
28231/* The GNU C library defines this for functions which it implements
28232 to always fail with ENOSYS. Some functions are actually named
28233 something starting with __ and the normal name is an alias. */
28234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28235choke me
28236#else
28237char (*f) () = $ac_func;
28238#endif
28239#ifdef __cplusplus
28240}
28241#endif
28242
28243int
28244main ()
28245{
28246return f != $ac_func;
28247 ;
28248 return 0;
28249}
28250_ACEOF
28251rm -f conftest.$ac_objext conftest$ac_exeext
28252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253 (eval $ac_link) 2>conftest.er1
28254 ac_status=$?
28255 grep -v '^ *+' conftest.er1 >conftest.err
28256 rm -f conftest.er1
28257 cat conftest.err >&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
28260 { ac_try='test -z "$ac_c_werror_flag"
28261 || test ! -s conftest.err'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
28267 { ac_try='test -s conftest$ac_exeext'
28268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269 (eval $ac_try) 2>&5
28270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 eval "$as_ac_var=yes"
28274else
28275 echo "$as_me: failed program was:" >&5
28276sed 's/^/| /' conftest.$ac_ext >&5
28277
28278eval "$as_ac_var=no"
28279fi
28280rm -f conftest.err conftest.$ac_objext \
28281 conftest$ac_exeext conftest.$ac_ext
28282fi
28283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28285if test `eval echo '${'$as_ac_var'}'` = yes; then
28286
28287cat >>confdefs.h <<_ACEOF
28288#define CRAY_STACKSEG_END $ac_func
28289_ACEOF
28290
28291 break
28292fi
28293
28294 done
28295fi
28296
28297echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28298echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28299if test "${ac_cv_c_stack_direction+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28301else
28302 if test "$cross_compiling" = yes; then
28303 ac_cv_c_stack_direction=0
28304else
28305 cat >conftest.$ac_ext <<_ACEOF
28306/* confdefs.h. */
28307_ACEOF
28308cat confdefs.h >>conftest.$ac_ext
28309cat >>conftest.$ac_ext <<_ACEOF
28310/* end confdefs.h. */
28311int
28312find_stack_direction ()
28313{
28314 static char *addr = 0;
28315 auto char dummy;
28316 if (addr == 0)
28317 {
28318 addr = &dummy;
28319 return find_stack_direction ();
28320 }
John Criswell0021c312004-02-13 21:57:29 +000028321 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028322 return (&dummy > addr) ? 1 : -1;
28323}
John Criswell0021c312004-02-13 21:57:29 +000028324
John Criswell0021c312004-02-13 21:57:29 +000028325int
28326main ()
28327{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028328 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028329}
28330_ACEOF
28331rm -f conftest$ac_exeext
28332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28333 (eval $ac_link) 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28339 ac_status=$?
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028342 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028343else
28344 echo "$as_me: program exited with status $ac_status" >&5
28345echo "$as_me: failed program was:" >&5
28346sed 's/^/| /' conftest.$ac_ext >&5
28347
28348( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028349ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028351rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028352fi
28353fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028354echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28355echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28356
28357cat >>confdefs.h <<_ACEOF
28358#define STACK_DIRECTION $ac_cv_c_stack_direction
28359_ACEOF
28360
28361
John Criswell0021c312004-02-13 21:57:29 +000028362fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028363
28364
28365echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28366echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28367if test "${ac_cv_func_rand48+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28369else
28370 ac_ext=cc
28371ac_cpp='$CXXCPP $CPPFLAGS'
28372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28375
28376 cat >conftest.$ac_ext <<_ACEOF
28377/* confdefs.h. */
28378_ACEOF
28379cat confdefs.h >>conftest.$ac_ext
28380cat >>conftest.$ac_ext <<_ACEOF
28381/* end confdefs.h. */
28382#include <stdlib.h>
28383int
28384main ()
28385{
28386srand48(0);lrand48();drand48();
28387 ;
28388 return 0;
28389}
28390_ACEOF
28391rm -f conftest.$ac_objext
28392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28393 (eval $ac_compile) 2>conftest.er1
28394 ac_status=$?
28395 grep -v '^ *+' conftest.er1 >conftest.err
28396 rm -f conftest.er1
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } &&
28400 { ac_try='test -z "$ac_cxx_werror_flag"
28401 || test ! -s conftest.err'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28404 ac_status=$?
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
28407 { ac_try='test -s conftest.$ac_objext'
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
28413 ac_cv_func_rand48=yes
28414else
28415 echo "$as_me: failed program was:" >&5
28416sed 's/^/| /' conftest.$ac_ext >&5
28417
28418ac_cv_func_rand48=no
28419fi
28420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28421 ac_ext=c
28422ac_cpp='$CPP $CPPFLAGS'
28423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425ac_compiler_gnu=$ac_cv_c_compiler_gnu
28426
28427fi
28428echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28429echo "${ECHO_T}$ac_cv_func_rand48" >&6
28430
28431if test "$ac_cv_func_rand48" = "yes" ; then
28432
28433cat >>confdefs.h <<\_ACEOF
28434#define HAVE_RAND48 1
28435_ACEOF
28436
28437fi
John Criswell0021c312004-02-13 21:57:29 +000028438
28439
John Criswell7a73b802003-06-30 21:59:07 +000028440echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28441echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28442if test "${ac_cv_cxx_namespaces+set}" = set; then
28443 echo $ECHO_N "(cached) $ECHO_C" >&6
28444else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028445 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028446ac_cpp='$CXXCPP $CPPFLAGS'
28447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28450
28451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028452/* confdefs.h. */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028457namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028458int
28459main ()
28460{
28461using namespace Outer::Inner; return i;
28462 ;
28463 return 0;
28464}
28465_ACEOF
28466rm -f conftest.$ac_objext
28467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028468 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028470 grep -v '^ *+' conftest.er1 >conftest.err
28471 rm -f conftest.er1
28472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028475 { ac_try='test -z "$ac_cxx_werror_flag"
28476 || test ! -s conftest.err'
28477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478 (eval $ac_try) 2>&5
28479 ac_status=$?
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; } &&
28482 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484 (eval $ac_try) 2>&5
28485 ac_status=$?
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 ac_cv_cxx_namespaces=yes
28489else
28490 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028491sed 's/^/| /' conftest.$ac_ext >&5
28492
John Criswell7a73b802003-06-30 21:59:07 +000028493ac_cv_cxx_namespaces=no
28494fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028496 ac_ext=c
28497ac_cpp='$CPP $CPPFLAGS'
28498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500ac_compiler_gnu=$ac_cv_c_compiler_gnu
28501
28502
28503fi
28504echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28505echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28506if test "$ac_cv_cxx_namespaces" = yes; then
28507
28508cat >>confdefs.h <<\_ACEOF
28509#define HAVE_NAMESPACES
28510_ACEOF
28511
28512fi
28513
Brian Gaeke90583492003-11-10 03:06:28 +000028514echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28515echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28516if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028517 echo $ECHO_N "(cached) $ECHO_C" >&6
28518else
28519
John Criswell7a73b802003-06-30 21:59:07 +000028520 ac_ext=cc
28521ac_cpp='$CXXCPP $CPPFLAGS'
28522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28525
28526 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028527/* confdefs.h. */
28528_ACEOF
28529cat confdefs.h >>conftest.$ac_ext
28530cat >>conftest.$ac_ext <<_ACEOF
28531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028532#include <ext/hash_map>
28533#ifdef HAVE_NAMESPACES
28534using namespace std;
28535#endif
John Criswell7a73b802003-06-30 21:59:07 +000028536int
28537main ()
28538{
Brian Gaeke90583492003-11-10 03:06:28 +000028539hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028540 ;
28541 return 0;
28542}
28543_ACEOF
28544rm -f conftest.$ac_objext
28545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028546 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028547 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028548 grep -v '^ *+' conftest.er1 >conftest.err
28549 rm -f conftest.er1
28550 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028553 { ac_try='test -z "$ac_cxx_werror_flag"
28554 || test ! -s conftest.err'
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562 (eval $ac_try) 2>&5
28563 ac_status=$?
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028566 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028567else
28568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028569sed 's/^/| /' conftest.$ac_ext >&5
28570
Brian Gaeke90583492003-11-10 03:06:28 +000028571ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028572fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028574 ac_ext=c
28575ac_cpp='$CPP $CPPFLAGS'
28576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28578ac_compiler_gnu=$ac_cv_c_compiler_gnu
28579
John Criswell7a73b802003-06-30 21:59:07 +000028580fi
Brian Gaeke90583492003-11-10 03:06:28 +000028581echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28582echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028583 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28584 then
John Criswell9f011862004-09-24 18:28:00 +000028585
28586cat >>confdefs.h <<\_ACEOF
28587#define HAVE_STD_EXT_HASH_MAP 1
28588_ACEOF
28589
28590 else
28591
28592cat >>confdefs.h <<\_ACEOF
28593#define HAVE_STD_EXT_HASH_MAP 0
28594_ACEOF
28595
Brian Gaeke90583492003-11-10 03:06:28 +000028596 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028597
Brian Gaeke90583492003-11-10 03:06:28 +000028598 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28599echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28600if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28601 echo $ECHO_N "(cached) $ECHO_C" >&6
28602else
28603
Brian Gaeke90583492003-11-10 03:06:28 +000028604 ac_ext=cc
28605ac_cpp='$CXXCPP $CPPFLAGS'
28606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28609
28610 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028611/* confdefs.h. */
28612_ACEOF
28613cat confdefs.h >>conftest.$ac_ext
28614cat >>conftest.$ac_ext <<_ACEOF
28615/* end confdefs.h. */
28616#include <ext/hash_map>
28617#ifdef HAVE_NAMESPACES
28618using namespace __gnu_cxx;
28619#endif
28620int
28621main ()
28622{
28623hash_map<int,int> t;
28624 ;
28625 return 0;
28626}
28627_ACEOF
28628rm -f conftest.$ac_objext
28629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028630 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028632 grep -v '^ *+' conftest.er1 >conftest.err
28633 rm -f conftest.er1
28634 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028637 { ac_try='test -z "$ac_cxx_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28647 ac_status=$?
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ac_cv_cxx_have_gnu_ext_hash_map=yes
28651else
28652 echo "$as_me: failed program was:" >&5
28653sed 's/^/| /' conftest.$ac_ext >&5
28654
28655ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028656fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028658 ac_ext=c
28659ac_cpp='$CPP $CPPFLAGS'
28660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28662ac_compiler_gnu=$ac_cv_c_compiler_gnu
28663
28664fi
28665echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28666echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028667 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28668 then
John Criswell9f011862004-09-24 18:28:00 +000028669
28670cat >>confdefs.h <<\_ACEOF
28671#define HAVE_GNU_EXT_HASH_MAP 1
28672_ACEOF
28673
28674 else
28675
28676cat >>confdefs.h <<\_ACEOF
28677#define HAVE_GNU_EXT_HASH_MAP 0
28678_ACEOF
28679
Brian Gaeke90583492003-11-10 03:06:28 +000028680 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028681
Brian Gaeke90583492003-11-10 03:06:28 +000028682 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28683echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28684if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28685 echo $ECHO_N "(cached) $ECHO_C" >&6
28686else
John Criswell7a73b802003-06-30 21:59:07 +000028687
Brian Gaeke90583492003-11-10 03:06:28 +000028688 ac_ext=cc
28689ac_cpp='$CXXCPP $CPPFLAGS'
28690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28693
28694 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028695/* confdefs.h. */
28696_ACEOF
28697cat confdefs.h >>conftest.$ac_ext
28698cat >>conftest.$ac_ext <<_ACEOF
28699/* end confdefs.h. */
28700#include <hash_map>
28701int
28702main ()
28703{
28704hash_map<int,int> t;
28705 ;
28706 return 0;
28707}
28708_ACEOF
28709rm -f conftest.$ac_objext
28710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028711 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028713 grep -v '^ *+' conftest.er1 >conftest.err
28714 rm -f conftest.er1
28715 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028718 { ac_try='test -z "$ac_cxx_werror_flag"
28719 || test ! -s conftest.err'
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727 (eval $ac_try) 2>&5
28728 ac_status=$?
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; }; then
28731 ac_cv_cxx_have_global_hash_map=yes
28732else
28733 echo "$as_me: failed program was:" >&5
28734sed 's/^/| /' conftest.$ac_ext >&5
28735
28736ac_cv_cxx_have_global_hash_map=no
28737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028739 ac_ext=c
28740ac_cpp='$CPP $CPPFLAGS'
28741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28743ac_compiler_gnu=$ac_cv_c_compiler_gnu
28744
28745fi
28746echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28747echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028748 if test "$ac_cv_cxx_have_global_hash_map" = yes
28749 then
John Criswell9f011862004-09-24 18:28:00 +000028750
28751cat >>confdefs.h <<\_ACEOF
28752#define HAVE_GLOBAL_HASH_MAP 1
28753_ACEOF
28754
28755 else
28756
28757cat >>confdefs.h <<\_ACEOF
28758#define HAVE_GLOBAL_HASH_MAP 0
28759_ACEOF
28760
Brian Gaeke90583492003-11-10 03:06:28 +000028761 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028762
Brian Gaeke90583492003-11-10 03:06:28 +000028763echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28764echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28765if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028766 echo $ECHO_N "(cached) $ECHO_C" >&6
28767else
28768
John Criswell7a73b802003-06-30 21:59:07 +000028769 ac_ext=cc
28770ac_cpp='$CXXCPP $CPPFLAGS'
28771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28774
28775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028776/* confdefs.h. */
28777_ACEOF
28778cat confdefs.h >>conftest.$ac_ext
28779cat >>conftest.$ac_ext <<_ACEOF
28780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028781#include <ext/hash_set>
28782#ifdef HAVE_NAMESPACES
28783using namespace std;
28784#endif
John Criswell7a73b802003-06-30 21:59:07 +000028785int
28786main ()
28787{
Brian Gaeke90583492003-11-10 03:06:28 +000028788hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028789 ;
28790 return 0;
28791}
28792_ACEOF
28793rm -f conftest.$ac_objext
28794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028795 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028796 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028797 grep -v '^ *+' conftest.er1 >conftest.err
28798 rm -f conftest.er1
28799 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028802 { ac_try='test -z "$ac_cxx_werror_flag"
28803 || test ! -s conftest.err'
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; } &&
28809 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028815 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028816else
28817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028818sed 's/^/| /' conftest.$ac_ext >&5
28819
Brian Gaeke90583492003-11-10 03:06:28 +000028820ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028821fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028823 ac_ext=c
28824ac_cpp='$CPP $CPPFLAGS'
28825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28827ac_compiler_gnu=$ac_cv_c_compiler_gnu
28828
28829fi
28830echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28831echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028832 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28833 then
John Criswell9f011862004-09-24 18:28:00 +000028834
28835cat >>confdefs.h <<\_ACEOF
28836#define HAVE_STD_EXT_HASH_SET 1
28837_ACEOF
28838
28839 else
28840
28841cat >>confdefs.h <<\_ACEOF
28842#define HAVE_STD_EXT_HASH_SET 0
28843_ACEOF
28844
Brian Gaeke90583492003-11-10 03:06:28 +000028845 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028846
Brian Gaeke90583492003-11-10 03:06:28 +000028847 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28848echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28849if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28851else
28852
Brian Gaeke90583492003-11-10 03:06:28 +000028853 ac_ext=cc
28854ac_cpp='$CXXCPP $CPPFLAGS'
28855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28858
John Criswell7a73b802003-06-30 21:59:07 +000028859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028860/* confdefs.h. */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028865#include <ext/hash_set>
28866#ifdef HAVE_NAMESPACES
28867using namespace __gnu_cxx;
28868#endif
John Criswell7a73b802003-06-30 21:59:07 +000028869int
28870main ()
28871{
Brian Gaeke90583492003-11-10 03:06:28 +000028872hash_set<int> t;
28873 ;
28874 return 0;
28875}
28876_ACEOF
28877rm -f conftest.$ac_objext
28878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028879 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028881 grep -v '^ *+' conftest.er1 >conftest.err
28882 rm -f conftest.er1
28883 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028886 { ac_try='test -z "$ac_cxx_werror_flag"
28887 || test ! -s conftest.err'
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; } &&
28893 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; }; then
28899 ac_cv_cxx_have_gnu_ext_hash_set=yes
28900else
28901 echo "$as_me: failed program was:" >&5
28902sed 's/^/| /' conftest.$ac_ext >&5
28903
28904ac_cv_cxx_have_gnu_ext_hash_set=no
28905fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028907 ac_ext=c
28908ac_cpp='$CPP $CPPFLAGS'
28909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911ac_compiler_gnu=$ac_cv_c_compiler_gnu
28912
28913fi
28914echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28915echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028916 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28917 then
John Criswell9f011862004-09-24 18:28:00 +000028918
28919cat >>confdefs.h <<\_ACEOF
28920#define HAVE_GNU_EXT_HASH_SET 1
28921_ACEOF
28922
28923 else
28924
28925cat >>confdefs.h <<\_ACEOF
28926#define HAVE_GNU_EXT_HASH_SET 0
28927_ACEOF
28928
Brian Gaeke90583492003-11-10 03:06:28 +000028929 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028930
Brian Gaeke90583492003-11-10 03:06:28 +000028931 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28932echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28933if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28935else
28936
Brian Gaeke90583492003-11-10 03:06:28 +000028937 ac_ext=cc
28938ac_cpp='$CXXCPP $CPPFLAGS'
28939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28942
28943 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028944/* confdefs.h. */
28945_ACEOF
28946cat confdefs.h >>conftest.$ac_ext
28947cat >>conftest.$ac_ext <<_ACEOF
28948/* end confdefs.h. */
28949#include <hash_set>
28950int
28951main ()
28952{
John Criswell7a73b802003-06-30 21:59:07 +000028953hash_set<int> t; return 0;
28954 ;
28955 return 0;
28956}
28957_ACEOF
28958rm -f conftest.$ac_objext
28959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028960 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028962 grep -v '^ *+' conftest.er1 >conftest.err
28963 rm -f conftest.er1
28964 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028967 { ac_try='test -z "$ac_cxx_werror_flag"
28968 || test ! -s conftest.err'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; } &&
28974 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028980 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028981else
28982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028983sed 's/^/| /' conftest.$ac_ext >&5
28984
Brian Gaeke90583492003-11-10 03:06:28 +000028985ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028986fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028988 ac_ext=c
28989ac_cpp='$CPP $CPPFLAGS'
28990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28992ac_compiler_gnu=$ac_cv_c_compiler_gnu
28993
John Criswell7a73b802003-06-30 21:59:07 +000028994fi
Brian Gaeke90583492003-11-10 03:06:28 +000028995echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28996echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028997 if test "$ac_cv_cxx_have_global_hash_set" = yes
28998 then
John Criswell9f011862004-09-24 18:28:00 +000028999
29000cat >>confdefs.h <<\_ACEOF
29001#define HAVE_GLOBAL_HASH_SET 1
29002_ACEOF
29003
29004 else
29005
29006cat >>confdefs.h <<\_ACEOF
29007#define HAVE_GLOBAL_HASH_SET 0
29008_ACEOF
29009
Brian Gaeke90583492003-11-10 03:06:28 +000029010 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029011
John Criswell7a73b802003-06-30 21:59:07 +000029012echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29013echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29014if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29016else
29017
John Criswell7a73b802003-06-30 21:59:07 +000029018 ac_ext=cc
29019ac_cpp='$CXXCPP $CPPFLAGS'
29020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29023
29024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029030#include <iterator>
29031#ifdef HAVE_NAMESPACES
29032using namespace std;
29033#endif
John Criswell7a73b802003-06-30 21:59:07 +000029034int
29035main ()
29036{
29037iterator<int,int,int> t; return 0;
29038 ;
29039 return 0;
29040}
29041_ACEOF
29042rm -f conftest.$ac_objext
29043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029044 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029046 grep -v '^ *+' conftest.er1 >conftest.err
29047 rm -f conftest.er1
29048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029051 { ac_try='test -z "$ac_cxx_werror_flag"
29052 || test ! -s conftest.err'
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; } &&
29058 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; }; then
29064 ac_cv_cxx_have_std_iterator=yes
29065else
29066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029067sed 's/^/| /' conftest.$ac_ext >&5
29068
John Criswell7a73b802003-06-30 21:59:07 +000029069ac_cv_cxx_have_std_iterator=no
29070fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029072 ac_ext=c
29073ac_cpp='$CPP $CPPFLAGS'
29074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29076ac_compiler_gnu=$ac_cv_c_compiler_gnu
29077
29078
29079fi
29080echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29081echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029082if test "$ac_cv_cxx_have_std_iterator" = yes
29083then
John Criswell40468462004-09-24 21:19:06 +000029084
29085cat >>confdefs.h <<\_ACEOF
29086#define HAVE_STD_ITERATOR 1
29087_ACEOF
29088
29089else
29090
29091cat >>confdefs.h <<\_ACEOF
29092#define HAVE_STD_ITERATOR 0
29093_ACEOF
29094
John Criswell7a73b802003-06-30 21:59:07 +000029095fi
29096
29097echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29098echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29099if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101else
29102
John Criswell7a73b802003-06-30 21:59:07 +000029103 ac_ext=cc
29104ac_cpp='$CXXCPP $CPPFLAGS'
29105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29108
29109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029110/* confdefs.h. */
29111_ACEOF
29112cat confdefs.h >>conftest.$ac_ext
29113cat >>conftest.$ac_ext <<_ACEOF
29114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029115#include <iterator>
29116#ifdef HAVE_NAMESPACES
29117using namespace std;
29118#endif
John Criswell7a73b802003-06-30 21:59:07 +000029119int
29120main ()
29121{
John Criswellc78022e2003-07-29 19:11:58 +000029122bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029123 ;
29124 return 0;
29125}
29126_ACEOF
29127rm -f conftest.$ac_objext
29128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029129 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029130 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029131 grep -v '^ *+' conftest.er1 >conftest.err
29132 rm -f conftest.er1
29133 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029136 { ac_try='test -z "$ac_cxx_werror_flag"
29137 || test ! -s conftest.err'
29138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139 (eval $ac_try) 2>&5
29140 ac_status=$?
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; } &&
29143 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149 ac_cv_cxx_have_bi_iterator=yes
29150else
29151 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029152sed 's/^/| /' conftest.$ac_ext >&5
29153
John Criswell7a73b802003-06-30 21:59:07 +000029154ac_cv_cxx_have_bi_iterator=no
29155fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029157 ac_ext=c
29158ac_cpp='$CPP $CPPFLAGS'
29159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29161ac_compiler_gnu=$ac_cv_c_compiler_gnu
29162
29163
29164fi
29165echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29166echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029167if test "$ac_cv_cxx_have_bi_iterator" = yes
29168then
John Criswell40468462004-09-24 21:19:06 +000029169
29170cat >>confdefs.h <<\_ACEOF
29171#define HAVE_BI_ITERATOR 1
29172_ACEOF
29173
29174else
29175
29176cat >>confdefs.h <<\_ACEOF
29177#define HAVE_BI_ITERATOR 0
29178_ACEOF
29179
John Criswell7a73b802003-06-30 21:59:07 +000029180fi
29181
29182echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29183echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29184if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29186else
29187
John Criswell7a73b802003-06-30 21:59:07 +000029188 ac_ext=cc
29189ac_cpp='$CXXCPP $CPPFLAGS'
29190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29193
29194 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029195/* confdefs.h. */
29196_ACEOF
29197cat confdefs.h >>conftest.$ac_ext
29198cat >>conftest.$ac_ext <<_ACEOF
29199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029200#include <iterator>
29201#ifdef HAVE_NAMESPACES
29202using namespace std;
29203#endif
John Criswell7a73b802003-06-30 21:59:07 +000029204int
29205main ()
29206{
John Criswellc78022e2003-07-29 19:11:58 +000029207forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029208 ;
29209 return 0;
29210}
29211_ACEOF
29212rm -f conftest.$ac_objext
29213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029214 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029216 grep -v '^ *+' conftest.er1 >conftest.err
29217 rm -f conftest.er1
29218 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029221 { ac_try='test -z "$ac_cxx_werror_flag"
29222 || test ! -s conftest.err'
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234 ac_cv_cxx_have_fwd_iterator=yes
29235else
29236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029237sed 's/^/| /' conftest.$ac_ext >&5
29238
John Criswell7a73b802003-06-30 21:59:07 +000029239ac_cv_cxx_have_fwd_iterator=no
29240fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029242 ac_ext=c
29243ac_cpp='$CPP $CPPFLAGS'
29244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29246ac_compiler_gnu=$ac_cv_c_compiler_gnu
29247
29248
29249fi
29250echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29251echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029252if test "$ac_cv_cxx_have_fwd_iterator" = yes
29253then
John Criswell40468462004-09-24 21:19:06 +000029254
29255cat >>confdefs.h <<\_ACEOF
29256#define HAVE_FWD_ITERATOR 1
29257_ACEOF
29258
29259else
29260
29261cat >>confdefs.h <<\_ACEOF
29262#define HAVE_FWD_ITERATOR 0
29263_ACEOF
29264
John Criswell7a73b802003-06-30 21:59:07 +000029265fi
29266
29267
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029268echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29269echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29270if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29272else
29273 ac_ext=cc
29274ac_cpp='$CXXCPP $CPPFLAGS'
29275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29278
Reid Spencerabec8f92004-10-27 23:03:44 +000029279 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029280/* confdefs.h. */
29281_ACEOF
29282cat confdefs.h >>conftest.$ac_ext
29283cat >>conftest.$ac_ext <<_ACEOF
29284/* end confdefs.h. */
29285#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029286int
29287main ()
29288{
29289float f; isnan(f);
29290 ;
29291 return 0;
29292}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029293_ACEOF
29294rm -f conftest.$ac_objext
29295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029296 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029298 grep -v '^ *+' conftest.er1 >conftest.err
29299 rm -f conftest.er1
29300 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029303 { ac_try='test -z "$ac_cxx_werror_flag"
29304 || test ! -s conftest.err'
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 ac_cv_func_isnan_in_math_h=yes
29317else
29318 echo "$as_me: failed program was:" >&5
29319sed 's/^/| /' conftest.$ac_ext >&5
29320
29321ac_cv_func_isnan_in_math_h=no
29322fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029324 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029325ac_cpp='$CPP $CPPFLAGS'
29326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328ac_compiler_gnu=$ac_cv_c_compiler_gnu
29329
29330fi
29331echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29332echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029333
29334
29335if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029336
29337cat >>confdefs.h <<\_ACEOF
29338#define HAVE_ISNAN_IN_MATH_H 1
29339_ACEOF
29340
Reid Spencerabec8f92004-10-27 23:03:44 +000029341fi
29342
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029343echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29344echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29345if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347else
29348 ac_ext=cc
29349ac_cpp='$CXXCPP $CPPFLAGS'
29350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29353
Reid Spencerabec8f92004-10-27 23:03:44 +000029354 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029355/* confdefs.h. */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h. */
29360#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029361int
29362main ()
29363{
29364float f; isnan(f);
29365 ;
29366 return 0;
29367}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029368_ACEOF
29369rm -f conftest.$ac_objext
29370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029371 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029373 grep -v '^ *+' conftest.er1 >conftest.err
29374 rm -f conftest.er1
29375 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029378 { ac_try='test -z "$ac_cxx_werror_flag"
29379 || test ! -s conftest.err'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 ac_cv_func_isnan_in_cmath=yes
29392else
29393 echo "$as_me: failed program was:" >&5
29394sed 's/^/| /' conftest.$ac_ext >&5
29395
29396ac_cv_func_isnan_in_cmath=no
29397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029399 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029400ac_cpp='$CPP $CPPFLAGS'
29401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403ac_compiler_gnu=$ac_cv_c_compiler_gnu
29404
29405fi
29406echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29407echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029408
29409if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029410
29411cat >>confdefs.h <<\_ACEOF
29412#define HAVE_ISNAN_IN_CMATH 1
29413_ACEOF
29414
Reid Spencerabec8f92004-10-27 23:03:44 +000029415fi
29416
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029417echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29418echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29419if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 ac_ext=cc
29423ac_cpp='$CXXCPP $CPPFLAGS'
29424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29427
Reid Spencerabec8f92004-10-27 23:03:44 +000029428 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
29434#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029435int
29436main ()
29437{
29438float f; std::isnan(f);
29439 ;
29440 return 0;
29441}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029442_ACEOF
29443rm -f conftest.$ac_objext
29444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029445 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029447 grep -v '^ *+' conftest.er1 >conftest.err
29448 rm -f conftest.er1
29449 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029452 { ac_try='test -z "$ac_cxx_werror_flag"
29453 || test ! -s conftest.err'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29456 ac_status=$?
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29462 ac_status=$?
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; }; then
29465 ac_cv_func_std_isnan_in_cmath=yes
29466else
29467 echo "$as_me: failed program was:" >&5
29468sed 's/^/| /' conftest.$ac_ext >&5
29469
29470ac_cv_func_std_isnan_in_cmath=no
29471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029473 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029474ac_cpp='$CPP $CPPFLAGS'
29475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477ac_compiler_gnu=$ac_cv_c_compiler_gnu
29478
29479fi
29480echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29481echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029482
29483if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029484
29485cat >>confdefs.h <<\_ACEOF
29486#define HAVE_STD_ISNAN_IN_CMATH 1
29487_ACEOF
29488
Reid Spencerabec8f92004-10-27 23:03:44 +000029489fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029490
29491
Brian Gaeke52a551d2004-07-21 03:14:12 +000029492echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29493echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29494if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497 ac_ext=cc
29498ac_cpp='$CXXCPP $CPPFLAGS'
29499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29502
Reid Spencerabec8f92004-10-27 23:03:44 +000029503 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029504/* confdefs.h. */
29505_ACEOF
29506cat confdefs.h >>conftest.$ac_ext
29507cat >>conftest.$ac_ext <<_ACEOF
29508/* end confdefs.h. */
29509#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029510int
29511main ()
29512{
29513float f; isinf(f);
29514 ;
29515 return 0;
29516}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029517_ACEOF
29518rm -f conftest.$ac_objext
29519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029520 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029527 { ac_try='test -z "$ac_cxx_werror_flag"
29528 || test ! -s conftest.err'
29529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; } &&
29534 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29537 ac_status=$?
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; }; then
29540 ac_cv_func_isinf_in_math_h=yes
29541else
29542 echo "$as_me: failed program was:" >&5
29543sed 's/^/| /' conftest.$ac_ext >&5
29544
29545ac_cv_func_isinf_in_math_h=no
29546fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029548 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029549ac_cpp='$CPP $CPPFLAGS'
29550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29552ac_compiler_gnu=$ac_cv_c_compiler_gnu
29553
29554fi
29555echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29556echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029557
29558if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029559
29560cat >>confdefs.h <<\_ACEOF
29561#define HAVE_ISINF_IN_MATH_H 1
29562_ACEOF
29563
Reid Spencerabec8f92004-10-27 23:03:44 +000029564fi
29565
Brian Gaeke52a551d2004-07-21 03:14:12 +000029566echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29567echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29568if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 ac_ext=cc
29572ac_cpp='$CXXCPP $CPPFLAGS'
29573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29576
Reid Spencerabec8f92004-10-27 23:03:44 +000029577 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029578/* confdefs.h. */
29579_ACEOF
29580cat confdefs.h >>conftest.$ac_ext
29581cat >>conftest.$ac_ext <<_ACEOF
29582/* end confdefs.h. */
29583#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029584int
29585main ()
29586{
29587float f; isinf(f);
29588 ;
29589 return 0;
29590}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029591_ACEOF
29592rm -f conftest.$ac_objext
29593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029594 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029596 grep -v '^ *+' conftest.er1 >conftest.err
29597 rm -f conftest.er1
29598 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029601 { ac_try='test -z "$ac_cxx_werror_flag"
29602 || test ! -s conftest.err'
29603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29604 (eval $ac_try) 2>&5
29605 ac_status=$?
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); }; } &&
29608 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29610 (eval $ac_try) 2>&5
29611 ac_status=$?
29612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613 (exit $ac_status); }; }; then
29614 ac_cv_func_isinf_in_cmath=yes
29615else
29616 echo "$as_me: failed program was:" >&5
29617sed 's/^/| /' conftest.$ac_ext >&5
29618
29619ac_cv_func_isinf_in_cmath=no
29620fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029622 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029623ac_cpp='$CPP $CPPFLAGS'
29624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29626ac_compiler_gnu=$ac_cv_c_compiler_gnu
29627
29628fi
29629echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29630echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029631
29632if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029633
29634cat >>confdefs.h <<\_ACEOF
29635#define HAVE_ISINF_IN_CMATH 1
29636_ACEOF
29637
Reid Spencerabec8f92004-10-27 23:03:44 +000029638fi
29639
Brian Gaeke52a551d2004-07-21 03:14:12 +000029640echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29641echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29642if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29644else
29645 ac_ext=cc
29646ac_cpp='$CXXCPP $CPPFLAGS'
29647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29650
Reid Spencerabec8f92004-10-27 23:03:44 +000029651 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029652/* confdefs.h. */
29653_ACEOF
29654cat confdefs.h >>conftest.$ac_ext
29655cat >>conftest.$ac_ext <<_ACEOF
29656/* end confdefs.h. */
29657#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029658int
29659main ()
29660{
29661float f; std::isinf(f)}
29662 ;
29663 return 0;
29664}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029665_ACEOF
29666rm -f conftest.$ac_objext
29667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029668 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029669 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029675 { ac_try='test -z "$ac_cxx_werror_flag"
29676 || test ! -s conftest.err'
29677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678 (eval $ac_try) 2>&5
29679 ac_status=$?
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; } &&
29682 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684 (eval $ac_try) 2>&5
29685 ac_status=$?
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); }; }; then
29688 ac_cv_func_std_isinf_in_cmath=yes
29689else
29690 echo "$as_me: failed program was:" >&5
29691sed 's/^/| /' conftest.$ac_ext >&5
29692
29693ac_cv_func_std_isinf_in_cmath=no
29694fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029696 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029697ac_cpp='$CPP $CPPFLAGS'
29698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29700ac_compiler_gnu=$ac_cv_c_compiler_gnu
29701
29702fi
29703echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29704echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029705
29706if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029707
29708cat >>confdefs.h <<\_ACEOF
29709#define HAVE_STD_ISINF_IN_CMATH 1
29710_ACEOF
29711
Reid Spencerabec8f92004-10-27 23:03:44 +000029712fi
29713
Brian Gaeked59a6472004-07-21 03:33:58 +000029714echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29715echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29716if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29718else
29719 ac_ext=cc
29720ac_cpp='$CXXCPP $CPPFLAGS'
29721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29724
Reid Spencerabec8f92004-10-27 23:03:44 +000029725 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029726/* confdefs.h. */
29727_ACEOF
29728cat confdefs.h >>conftest.$ac_ext
29729cat >>conftest.$ac_ext <<_ACEOF
29730/* end confdefs.h. */
29731#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029732int
29733main ()
29734{
29735float f; finite(f);
29736 ;
29737 return 0;
29738}
Brian Gaeked59a6472004-07-21 03:33:58 +000029739_ACEOF
29740rm -f conftest.$ac_objext
29741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029742 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029743 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029744 grep -v '^ *+' conftest.er1 >conftest.err
29745 rm -f conftest.er1
29746 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029749 { ac_try='test -z "$ac_cxx_werror_flag"
29750 || test ! -s conftest.err'
29751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752 (eval $ac_try) 2>&5
29753 ac_status=$?
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; } &&
29756 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29758 (eval $ac_try) 2>&5
29759 ac_status=$?
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); }; }; then
29762 ac_cv_func_finite_in_ieeefp_h=yes
29763else
29764 echo "$as_me: failed program was:" >&5
29765sed 's/^/| /' conftest.$ac_ext >&5
29766
29767ac_cv_func_finite_in_ieeefp_h=no
29768fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029770 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029771ac_cpp='$CPP $CPPFLAGS'
29772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29774ac_compiler_gnu=$ac_cv_c_compiler_gnu
29775
29776fi
29777echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29778echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029779
Brian Gaeke6802b552004-10-28 05:06:45 +000029780if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029781
29782cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029783#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029784_ACEOF
29785
Reid Spencerabec8f92004-10-27 23:03:44 +000029786fi
29787
29788
29789
John Criswell7a73b802003-06-30 21:59:07 +000029790
29791
29792for ac_header in stdlib.h unistd.h
29793do
29794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29795if eval "test \"\${$as_ac_Header+set}\" = set"; then
29796 echo "$as_me:$LINENO: checking for $ac_header" >&5
29797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29798if eval "test \"\${$as_ac_Header+set}\" = set"; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800fi
29801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29803else
29804 # Is the header compilable?
29805echo "$as_me:$LINENO: checking $ac_header usability" >&5
29806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29807cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029808/* confdefs.h. */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029813$ac_includes_default
29814#include <$ac_header>
29815_ACEOF
29816rm -f conftest.$ac_objext
29817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029818 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029825 { ac_try='test -z "$ac_c_werror_flag"
29826 || test ! -s conftest.err'
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838 ac_header_compiler=yes
29839else
29840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029841sed 's/^/| /' conftest.$ac_ext >&5
29842
John Criswell7a73b802003-06-30 21:59:07 +000029843ac_header_compiler=no
29844fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847echo "${ECHO_T}$ac_header_compiler" >&6
29848
29849# Is the header present?
29850echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29852cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029853/* confdefs.h. */
29854_ACEOF
29855cat confdefs.h >>conftest.$ac_ext
29856cat >>conftest.$ac_ext <<_ACEOF
29857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029858#include <$ac_header>
29859_ACEOF
29860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29862 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029863 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029864 rm -f conftest.er1
29865 cat conftest.err >&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); } >/dev/null; then
29868 if test -s conftest.err; then
29869 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029871 else
29872 ac_cpp_err=
29873 fi
29874else
29875 ac_cpp_err=yes
29876fi
29877if test -z "$ac_cpp_err"; then
29878 ac_header_preproc=yes
29879else
29880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029881sed 's/^/| /' conftest.$ac_ext >&5
29882
John Criswell7a73b802003-06-30 21:59:07 +000029883 ac_header_preproc=no
29884fi
29885rm -f conftest.err conftest.$ac_ext
29886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29887echo "${ECHO_T}$ac_header_preproc" >&6
29888
29889# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29891 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29896 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029897 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029898 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029911 (
29912 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029913## ----------------------------------- ##
29914## Report this to llvmbugs@cs.uiuc.edu ##
29915## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029916_ASBOX
29917 ) |
29918 sed "s/^/$as_me: WARNING: /" >&2
29919 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029920esac
29921echo "$as_me:$LINENO: checking for $ac_header" >&5
29922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29923if eval "test \"\${$as_ac_Header+set}\" = set"; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029926 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029927fi
29928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29930
29931fi
29932if test `eval echo '${'$as_ac_Header'}'` = yes; then
29933 cat >>confdefs.h <<_ACEOF
29934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29935_ACEOF
29936
29937fi
29938
29939done
29940
29941
29942for ac_func in getpagesize
29943do
29944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29945echo "$as_me:$LINENO: checking for $ac_func" >&5
29946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29947if eval "test \"\${$as_ac_var+set}\" = set"; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29949else
29950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029951/* confdefs.h. */
29952_ACEOF
29953cat confdefs.h >>conftest.$ac_ext
29954cat >>conftest.$ac_ext <<_ACEOF
29955/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29958#define $ac_func innocuous_$ac_func
29959
John Criswell7a73b802003-06-30 21:59:07 +000029960/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029961 which can conflict with char $ac_func (); below.
29962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29963 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029964
John Criswell0c38eaf2003-09-10 15:17:25 +000029965#ifdef __STDC__
29966# include <limits.h>
29967#else
29968# include <assert.h>
29969#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029970
29971#undef $ac_func
29972
John Criswell7a73b802003-06-30 21:59:07 +000029973/* Override any gcc2 internal prototype to avoid an error. */
29974#ifdef __cplusplus
29975extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029976{
John Criswell7a73b802003-06-30 21:59:07 +000029977#endif
29978/* We use char because int might match the return type of a gcc2
29979 builtin and then its argument prototype would still apply. */
29980char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029981/* The GNU C library defines this for functions which it implements
29982 to always fail with ENOSYS. Some functions are actually named
29983 something starting with __ and the normal name is an alias. */
29984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29985choke me
29986#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029987char (*f) () = $ac_func;
29988#endif
29989#ifdef __cplusplus
29990}
John Criswell7a73b802003-06-30 21:59:07 +000029991#endif
29992
John Criswell0c38eaf2003-09-10 15:17:25 +000029993int
29994main ()
29995{
29996return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029997 ;
29998 return 0;
29999}
30000_ACEOF
30001rm -f conftest.$ac_objext conftest$ac_exeext
30002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030003 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030010 { ac_try='test -z "$ac_c_werror_flag"
30011 || test ! -s conftest.err'
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30014 ac_status=$?
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; } &&
30017 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30020 ac_status=$?
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; }; then
30023 eval "$as_ac_var=yes"
30024else
30025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030026sed 's/^/| /' conftest.$ac_ext >&5
30027
John Criswell7a73b802003-06-30 21:59:07 +000030028eval "$as_ac_var=no"
30029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030030rm -f conftest.err conftest.$ac_objext \
30031 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030032fi
30033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30034echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30035if test `eval echo '${'$as_ac_var'}'` = yes; then
30036 cat >>confdefs.h <<_ACEOF
30037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30038_ACEOF
30039
30040fi
30041done
30042
30043echo "$as_me:$LINENO: checking for working mmap" >&5
30044echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30045if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30047else
30048 if test "$cross_compiling" = yes; then
30049 ac_cv_func_mmap_fixed_mapped=no
30050else
30051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030052/* confdefs.h. */
30053_ACEOF
30054cat confdefs.h >>conftest.$ac_ext
30055cat >>conftest.$ac_ext <<_ACEOF
30056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030057$ac_includes_default
30058/* malloc might have been renamed as rpl_malloc. */
30059#undef malloc
30060
30061/* Thanks to Mike Haertel and Jim Avera for this test.
30062 Here is a matrix of mmap possibilities:
30063 mmap private not fixed
30064 mmap private fixed at somewhere currently unmapped
30065 mmap private fixed at somewhere already mapped
30066 mmap shared not fixed
30067 mmap shared fixed at somewhere currently unmapped
30068 mmap shared fixed at somewhere already mapped
30069 For private mappings, we should verify that changes cannot be read()
30070 back from the file, nor mmap's back from the file at a different
30071 address. (There have been systems where private was not correctly
30072 implemented like the infamous i386 svr4.0, and systems where the
30073 VM page cache was not coherent with the file system buffer cache
30074 like early versions of FreeBSD and possibly contemporary NetBSD.)
30075 For shared mappings, we should conversely verify that changes get
30076 propagated back to all the places they're supposed to be.
30077
30078 Grep wants private fixed already mapped.
30079 The main things grep needs to know about mmap are:
30080 * does it exist and is it safe to write into the mmap'd area
30081 * how to use it (BSD variants) */
30082
30083#include <fcntl.h>
30084#include <sys/mman.h>
30085
30086#if !STDC_HEADERS && !HAVE_STDLIB_H
30087char *malloc ();
30088#endif
30089
30090/* This mess was copied from the GNU getpagesize.h. */
30091#if !HAVE_GETPAGESIZE
30092/* Assume that all systems that can run configure have sys/param.h. */
30093# if !HAVE_SYS_PARAM_H
30094# define HAVE_SYS_PARAM_H 1
30095# endif
30096
30097# ifdef _SC_PAGESIZE
30098# define getpagesize() sysconf(_SC_PAGESIZE)
30099# else /* no _SC_PAGESIZE */
30100# if HAVE_SYS_PARAM_H
30101# include <sys/param.h>
30102# ifdef EXEC_PAGESIZE
30103# define getpagesize() EXEC_PAGESIZE
30104# else /* no EXEC_PAGESIZE */
30105# ifdef NBPG
30106# define getpagesize() NBPG * CLSIZE
30107# ifndef CLSIZE
30108# define CLSIZE 1
30109# endif /* no CLSIZE */
30110# else /* no NBPG */
30111# ifdef NBPC
30112# define getpagesize() NBPC
30113# else /* no NBPC */
30114# ifdef PAGESIZE
30115# define getpagesize() PAGESIZE
30116# endif /* PAGESIZE */
30117# endif /* no NBPC */
30118# endif /* no NBPG */
30119# endif /* no EXEC_PAGESIZE */
30120# else /* no HAVE_SYS_PARAM_H */
30121# define getpagesize() 8192 /* punt totally */
30122# endif /* no HAVE_SYS_PARAM_H */
30123# endif /* no _SC_PAGESIZE */
30124
30125#endif /* no HAVE_GETPAGESIZE */
30126
30127int
30128main ()
30129{
30130 char *data, *data2, *data3;
30131 int i, pagesize;
30132 int fd;
30133
30134 pagesize = getpagesize ();
30135
30136 /* First, make a file with some known garbage in it. */
30137 data = (char *) malloc (pagesize);
30138 if (!data)
30139 exit (1);
30140 for (i = 0; i < pagesize; ++i)
30141 *(data + i) = rand ();
30142 umask (0);
30143 fd = creat ("conftest.mmap", 0600);
30144 if (fd < 0)
30145 exit (1);
30146 if (write (fd, data, pagesize) != pagesize)
30147 exit (1);
30148 close (fd);
30149
30150 /* Next, try to mmap the file at a fixed address which already has
30151 something else allocated at it. If we can, also make sure that
30152 we see the same garbage. */
30153 fd = open ("conftest.mmap", O_RDWR);
30154 if (fd < 0)
30155 exit (1);
30156 data2 = (char *) malloc (2 * pagesize);
30157 if (!data2)
30158 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030159 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030160 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030162 exit (1);
30163 for (i = 0; i < pagesize; ++i)
30164 if (*(data + i) != *(data2 + i))
30165 exit (1);
30166
30167 /* Finally, make sure that changes to the mapped area do not
30168 percolate back to the file as seen by read(). (This is a bug on
30169 some variants of i386 svr4.0.) */
30170 for (i = 0; i < pagesize; ++i)
30171 *(data2 + i) = *(data2 + i) + 1;
30172 data3 = (char *) malloc (pagesize);
30173 if (!data3)
30174 exit (1);
30175 if (read (fd, data3, pagesize) != pagesize)
30176 exit (1);
30177 for (i = 0; i < pagesize; ++i)
30178 if (*(data + i) != *(data3 + i))
30179 exit (1);
30180 close (fd);
30181 exit (0);
30182}
30183_ACEOF
30184rm -f conftest$ac_exeext
30185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30186 (eval $ac_link) 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 ac_cv_func_mmap_fixed_mapped=yes
30196else
30197 echo "$as_me: program exited with status $ac_status" >&5
30198echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030199sed 's/^/| /' conftest.$ac_ext >&5
30200
John Criswell7a73b802003-06-30 21:59:07 +000030201( exit $ac_status )
30202ac_cv_func_mmap_fixed_mapped=no
30203fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030205fi
30206fi
30207echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30208echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30209if test $ac_cv_func_mmap_fixed_mapped = yes; then
30210
30211cat >>confdefs.h <<\_ACEOF
30212#define HAVE_MMAP 1
30213_ACEOF
30214
30215fi
30216rm -f conftest.mmap
30217
30218echo "$as_me:$LINENO: checking for mmap of files" >&5
30219echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30220if test "${ac_cv_func_mmap_file+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30222else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030223 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030224ac_cpp='$CPP $CPPFLAGS'
30225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30227ac_compiler_gnu=$ac_cv_c_compiler_gnu
30228
30229 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030230 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030231else
30232 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030233
Reid Spencer777ce172004-09-20 04:09:56 +000030234 /* confdefs.h. */
30235_ACEOF
30236cat confdefs.h >>conftest.$ac_ext
30237cat >>conftest.$ac_ext <<_ACEOF
30238/* end confdefs.h. */
30239
John Criswell7a73b802003-06-30 21:59:07 +000030240#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030241#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030242#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030243
30244int
30245main ()
30246{
John Criswell7a73b802003-06-30 21:59:07 +000030247
30248 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030249 fd = creat ("foo",0777);
30250 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30251 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030252 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030253 ;
30254 return 0;
30255}
John Criswell7a73b802003-06-30 21:59:07 +000030256_ACEOF
30257rm -f conftest$ac_exeext
30258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259 (eval $ac_link) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268 ac_cv_func_mmap_file=yes
30269else
30270 echo "$as_me: program exited with status $ac_status" >&5
30271echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030272sed 's/^/| /' conftest.$ac_ext >&5
30273
John Criswell7a73b802003-06-30 21:59:07 +000030274( exit $ac_status )
30275ac_cv_func_mmap_file=no
30276fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030278fi
30279 ac_ext=c
30280ac_cpp='$CPP $CPPFLAGS'
30281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30283ac_compiler_gnu=$ac_cv_c_compiler_gnu
30284
30285
30286fi
30287echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30288echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30289if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030290
30291cat >>confdefs.h <<\_ACEOF
30292#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030293_ACEOF
30294
30295 MMAP_FILE=yes
30296
30297fi
30298
Reid Spencer7931a782004-12-27 06:15:02 +000030299echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30300echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30301if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303else
Reid Spencer582a23c2004-12-29 07:07:57 +000030304 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030305 ac_cv_need_dev_zero_for_mmap=yes
30306 else
30307 ac_cv_need_dev_zero_for_mmap=no
30308 fi
30309
30310fi
30311echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30312echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30313if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30314
30315cat >>confdefs.h <<\_ACEOF
30316#define NEED_DEV_ZERO_FOR_MMAP 1
30317_ACEOF
30318
30319fi
John Criswell7a73b802003-06-30 21:59:07 +000030320echo "$as_me:$LINENO: checking for mprotect" >&5
30321echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30322if test "${ac_cv_func_mprotect+set}" = set; then
30323 echo $ECHO_N "(cached) $ECHO_C" >&6
30324else
30325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030326/* confdefs.h. */
30327_ACEOF
30328cat confdefs.h >>conftest.$ac_ext
30329cat >>conftest.$ac_ext <<_ACEOF
30330/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030331/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30333#define mprotect innocuous_mprotect
30334
John Criswell7a73b802003-06-30 21:59:07 +000030335/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030336 which can conflict with char mprotect (); below.
30337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30338 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030339
John Criswell0c38eaf2003-09-10 15:17:25 +000030340#ifdef __STDC__
30341# include <limits.h>
30342#else
30343# include <assert.h>
30344#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030345
30346#undef mprotect
30347
John Criswell7a73b802003-06-30 21:59:07 +000030348/* Override any gcc2 internal prototype to avoid an error. */
30349#ifdef __cplusplus
30350extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030351{
John Criswell7a73b802003-06-30 21:59:07 +000030352#endif
30353/* We use char because int might match the return type of a gcc2
30354 builtin and then its argument prototype would still apply. */
30355char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030356/* The GNU C library defines this for functions which it implements
30357 to always fail with ENOSYS. Some functions are actually named
30358 something starting with __ and the normal name is an alias. */
30359#if defined (__stub_mprotect) || defined (__stub___mprotect)
30360choke me
30361#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030362char (*f) () = mprotect;
30363#endif
30364#ifdef __cplusplus
30365}
John Criswell7a73b802003-06-30 21:59:07 +000030366#endif
30367
John Criswell0c38eaf2003-09-10 15:17:25 +000030368int
30369main ()
30370{
30371return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030372 ;
30373 return 0;
30374}
30375_ACEOF
30376rm -f conftest.$ac_objext conftest$ac_exeext
30377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030378 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030380 grep -v '^ *+' conftest.er1 >conftest.err
30381 rm -f conftest.er1
30382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030385 { ac_try='test -z "$ac_c_werror_flag"
30386 || test ! -s conftest.err'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30395 ac_status=$?
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30398 ac_cv_func_mprotect=yes
30399else
30400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030401sed 's/^/| /' conftest.$ac_ext >&5
30402
John Criswell7a73b802003-06-30 21:59:07 +000030403ac_cv_func_mprotect=no
30404fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030405rm -f conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030407fi
30408echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30409echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30410if test $ac_cv_func_mprotect = yes; then
30411 :
30412else
30413 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30414echo "$as_me: error: Function mprotect() required but not found" >&2;}
30415 { (exit 1); exit 1; }; }
30416fi
30417
30418
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030419if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030420then
Reid Spencer582a23c2004-12-29 07:07:57 +000030421 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30422echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030423fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030424if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030425then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030426 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30427echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030428fi
John Criswell7a73b802003-06-30 21:59:07 +000030429
30430
Brian Gaekef3b24102003-11-16 18:38:14 +000030431echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30432echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030433if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030437if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030438 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030439 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030440 if test $? -eq 0 ; then
30441 llvm_cv_llvmgcc_sanity="yes"
30442 fi
30443 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030444fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445fi
30446echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30447echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30448
30449if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030450 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030451 LLVMCC1=$llvmcc1path
30452
Reid Spencer502935f2004-12-22 05:56:56 +000030453 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454 LLVMCC1PLUS=$llvmcc1pluspath
30455
Reid Spencer502935f2004-12-22 05:56:56 +000030456 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30457 LLVMGCCDIR=$llvmgccdir
30458
Brian Gaekef3b24102003-11-16 18:38:14 +000030459fi
30460
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030461SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030462
30463
Reid Spencere9de0912004-08-20 09:03:57 +000030464# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030465# information into substitutions that will end up in Makefile.config.in
30466# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030467eval LLVM_PREFIX="${prefix}";
30468eval LLVM_BINDIR="${prefix}/bin";
30469eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030470eval LLVM_DATADIR="${prefix}/share/llvm";
30471eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30472eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030473eval LLVM_INCLUDEDIR="${prefix}/include";
30474eval LLVM_INFODIR="${prefix}/info";
30475eval LLVM_MANDIR="${prefix}/man";
30476LLVM_CONFIGTIME=`date`
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030488# Place the various directores into the config.h file as #defines so that we
30489# can know about the installation paths within LLVM.
30490
Reid Spencere9de0912004-08-20 09:03:57 +000030491cat >>confdefs.h <<_ACEOF
30492#define LLVM_PREFIX "$LLVM_PREFIX"
30493_ACEOF
30494
30495
30496cat >>confdefs.h <<_ACEOF
30497#define LLVM_BINDIR "$LLVM_BINDIR"
30498_ACEOF
30499
30500
30501cat >>confdefs.h <<_ACEOF
30502#define LLVM_LIBDIR "$LLVM_LIBDIR"
30503_ACEOF
30504
30505
30506cat >>confdefs.h <<_ACEOF
30507#define LLVM_DATADIR "$LLVM_DATADIR"
30508_ACEOF
30509
30510
30511cat >>confdefs.h <<_ACEOF
30512#define LLVM_DATADIR "$LLVM_DOCSDIR"
30513_ACEOF
30514
30515
30516cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030517#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030518_ACEOF
30519
30520
30521cat >>confdefs.h <<_ACEOF
30522#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30523_ACEOF
30524
30525
30526cat >>confdefs.h <<_ACEOF
30527#define LLVM_INFODIR "$LLVM_INFODIR"
30528_ACEOF
30529
30530
30531cat >>confdefs.h <<_ACEOF
30532#define LLVM_MANDIR "$LLVM_MANDIR"
30533_ACEOF
30534
30535
30536cat >>confdefs.h <<_ACEOF
30537#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30538_ACEOF
30539
30540
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030541
30542 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30543
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030544 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30545
30546 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30547
30548 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30549
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030550 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30551
30552
30553 ac_config_files="$ac_config_files Makefile.config"
30554
30555
Reid Spencer1f319422004-11-29 04:56:35 +000030556 ac_config_files="$ac_config_files docs/doxygen.cfg"
30557
30558
Reid Spencerc0682832005-02-24 19:05:19 +000030559 ac_config_commands="$ac_config_commands setup"
30560
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030561 ac_config_commands="$ac_config_commands Makefile"
30562
30563
30564 ac_config_commands="$ac_config_commands Makefile.common"
30565
30566
30567 ac_config_commands="$ac_config_commands examples/Makefile"
30568
30569
30570 ac_config_commands="$ac_config_commands lib/Makefile"
30571
30572
30573 ac_config_commands="$ac_config_commands runtime/Makefile"
30574
30575
30576 ac_config_commands="$ac_config_commands test/Makefile"
30577
30578
30579 ac_config_commands="$ac_config_commands test/Makefile.tests"
30580
30581
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030582 ac_config_commands="$ac_config_commands tools/Makefile"
30583
30584
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030585 ac_config_commands="$ac_config_commands utils/Makefile"
30586
30587
30588 ac_config_commands="$ac_config_commands projects/Makefile"
30589
30590
30591
John Criswell7a73b802003-06-30 21:59:07 +000030592cat >confcache <<\_ACEOF
30593# This file is a shell script that caches the results of configure
30594# tests run on this system so they can be shared between configure
30595# scripts and configure runs, see configure's option --config-cache.
30596# It is not useful on other systems. If it contains results you don't
30597# want to keep, you may remove or edit it.
30598#
30599# config.status only pays attention to the cache file if you give it
30600# the --recheck option to rerun configure.
30601#
John Criswell0c38eaf2003-09-10 15:17:25 +000030602# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030603# loading this file, other *unset* `ac_cv_foo' will be assigned the
30604# following values.
30605
30606_ACEOF
30607
30608# The following way of writing the cache mishandles newlines in values,
30609# but we know of no workaround that is simple, portable, and efficient.
30610# So, don't put newlines in cache variables' values.
30611# Ultrix sh set writes to stderr and can't be redirected directly,
30612# and sets the high bit in the cache file unless we assign to the vars.
30613{
30614 (set) 2>&1 |
30615 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30616 *ac_space=\ *)
30617 # `set' does not quote correctly, so add quotes (double-quote
30618 # substitution turns \\\\ into \\, and sed turns \\ into \).
30619 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030620 "s/'/'\\\\''/g;
30621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030622 ;;
30623 *)
30624 # `set' quotes correctly as required by POSIX, so do not add quotes.
30625 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030626 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030627 ;;
30628 esac;
30629} |
30630 sed '
30631 t clear
30632 : clear
30633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30634 t end
30635 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30636 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030637if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030638 if test -w $cache_file; then
30639 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30640 cat confcache >$cache_file
30641 else
30642 echo "not updating unwritable cache $cache_file"
30643 fi
30644fi
30645rm -f confcache
30646
30647test "x$prefix" = xNONE && prefix=$ac_default_prefix
30648# Let make expand exec_prefix.
30649test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30650
30651# VPATH may cause trouble with some makes, so we remove $(srcdir),
30652# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30653# trailing colons and then remove the whole line if VPATH becomes empty
30654# (actually we leave an empty line to preserve line numbers).
30655if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030656 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030657s/:*\$(srcdir):*/:/;
30658s/:*\${srcdir}:*/:/;
30659s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030660s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030661s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030662s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030663}'
30664fi
30665
30666DEFS=-DHAVE_CONFIG_H
30667
John Criswell0c38eaf2003-09-10 15:17:25 +000030668ac_libobjs=
30669ac_ltlibobjs=
30670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30671 # 1. Remove the extension, and $U if already installed.
30672 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030673 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030674 # 2. Add them.
30675 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30676 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30677done
30678LIBOBJS=$ac_libobjs
30679
30680LTLIBOBJS=$ac_ltlibobjs
30681
30682
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030683if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30684 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30685Usually this means the macro was only invoked conditionally." >&5
30686echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30687Usually this means the macro was only invoked conditionally." >&2;}
30688 { (exit 1); exit 1; }; }
30689fi
30690if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30691 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30692Usually this means the macro was only invoked conditionally." >&5
30693echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30694Usually this means the macro was only invoked conditionally." >&2;}
30695 { (exit 1); exit 1; }; }
30696fi
John Criswell7a73b802003-06-30 21:59:07 +000030697
30698: ${CONFIG_STATUS=./config.status}
30699ac_clean_files_save=$ac_clean_files
30700ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30701{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30702echo "$as_me: creating $CONFIG_STATUS" >&6;}
30703cat >$CONFIG_STATUS <<_ACEOF
30704#! $SHELL
30705# Generated by $as_me.
30706# Run this file to recreate the current configuration.
30707# Compiler output produced by configure, useful for debugging
30708# configure, is in config.log if it exists.
30709
30710debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030711ac_cs_recheck=false
30712ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030713SHELL=\${CONFIG_SHELL-$SHELL}
30714_ACEOF
30715
30716cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030717## --------------------- ##
30718## M4sh Initialization. ##
30719## --------------------- ##
30720
30721# Be Bourne compatible
30722if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30723 emulate sh
30724 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30726 # is contrary to our usage. Disable this feature.
30727 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030728elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30729 set -o posix
30730fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030731DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030732
John Criswell7a73b802003-06-30 21:59:07 +000030733# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030734if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030735 as_unset=unset
30736else
30737 as_unset=false
30738fi
30739
John Criswell0c38eaf2003-09-10 15:17:25 +000030740
30741# Work around bugs in pre-3.0 UWIN ksh.
30742$as_unset ENV MAIL MAILPATH
30743PS1='$ '
30744PS2='> '
30745PS4='+ '
30746
30747# NLS nuisances.
30748for as_var in \
30749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30751 LC_TELEPHONE LC_TIME
30752do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030753 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030754 eval $as_var=C; export $as_var
30755 else
30756 $as_unset $as_var
30757 fi
30758done
30759
30760# Required to use basename.
30761if expr a : '\(a\)' >/dev/null 2>&1; then
30762 as_expr=expr
30763else
30764 as_expr=false
30765fi
30766
30767if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30768 as_basename=basename
30769else
30770 as_basename=false
30771fi
John Criswell7a73b802003-06-30 21:59:07 +000030772
30773
30774# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030775as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030776$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30777 X"$0" : 'X\(//\)$' \| \
30778 X"$0" : 'X\(/\)$' \| \
30779 . : '\(.\)' 2>/dev/null ||
30780echo X/"$0" |
30781 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30782 /^X\/\(\/\/\)$/{ s//\1/; q; }
30783 /^X\/\(\/\).*/{ s//\1/; q; }
30784 s/.*/./; q'`
30785
John Criswell0c38eaf2003-09-10 15:17:25 +000030786
John Criswell7a73b802003-06-30 21:59:07 +000030787# PATH needs CR, and LINENO needs CR and PATH.
30788# Avoid depending upon Character Ranges.
30789as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30790as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30791as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30792as_cr_digits='0123456789'
30793as_cr_alnum=$as_cr_Letters$as_cr_digits
30794
30795# The user is always right.
30796if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030797 echo "#! /bin/sh" >conf$$.sh
30798 echo "exit 0" >>conf$$.sh
30799 chmod +x conf$$.sh
30800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030801 PATH_SEPARATOR=';'
30802 else
30803 PATH_SEPARATOR=:
30804 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030805 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030806fi
30807
30808
30809 as_lineno_1=$LINENO
30810 as_lineno_2=$LINENO
30811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30812 test "x$as_lineno_1" != "x$as_lineno_2" &&
30813 test "x$as_lineno_3" = "x$as_lineno_2" || {
30814 # Find who we are. Look in the path if we contain no path at all
30815 # relative or not.
30816 case $0 in
30817 *[\\/]* ) as_myself=$0 ;;
30818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30819for as_dir in $PATH
30820do
30821 IFS=$as_save_IFS
30822 test -z "$as_dir" && as_dir=.
30823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30824done
30825
30826 ;;
30827 esac
30828 # We did not find ourselves, most probably we were run as `sh COMMAND'
30829 # in which case we are not to be found in the path.
30830 if test "x$as_myself" = x; then
30831 as_myself=$0
30832 fi
30833 if test ! -f "$as_myself"; then
30834 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30835echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30836 { (exit 1); exit 1; }; }
30837 fi
30838 case $CONFIG_SHELL in
30839 '')
30840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30841for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30842do
30843 IFS=$as_save_IFS
30844 test -z "$as_dir" && as_dir=.
30845 for as_base in sh bash ksh sh5; do
30846 case $as_dir in
30847 /*)
30848 if ("$as_dir/$as_base" -c '
30849 as_lineno_1=$LINENO
30850 as_lineno_2=$LINENO
30851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30852 test "x$as_lineno_1" != "x$as_lineno_2" &&
30853 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030854 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30855 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030856 CONFIG_SHELL=$as_dir/$as_base
30857 export CONFIG_SHELL
30858 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30859 fi;;
30860 esac
30861 done
30862done
30863;;
30864 esac
30865
30866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30867 # uniformly replaced by the line number. The first 'sed' inserts a
30868 # line-number line before each line; the second 'sed' does the real
30869 # work. The second script uses 'N' to pair each line-number line
30870 # with the numbered line, and appends trailing '-' during
30871 # substitution so that $LINENO is not a special case at line end.
30872 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30873 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30874 sed '=' <$as_myself |
30875 sed '
30876 N
30877 s,$,-,
30878 : loop
30879 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30880 t loop
30881 s,-$,,
30882 s,^['$as_cr_digits']*\n,,
30883 ' >$as_me.lineno &&
30884 chmod +x $as_me.lineno ||
30885 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30886echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30887 { (exit 1); exit 1; }; }
30888
30889 # Don't try to exec as it changes $[0], causing all sort of problems
30890 # (the dirname of $[0] is not the place where we might find the
30891 # original and so on. Autoconf is especially sensible to this).
30892 . ./$as_me.lineno
30893 # Exit status is that of the last command.
30894 exit
30895}
30896
30897
30898case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30899 *c*,-n*) ECHO_N= ECHO_C='
30900' ECHO_T=' ' ;;
30901 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30902 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30903esac
30904
30905if expr a : '\(a\)' >/dev/null 2>&1; then
30906 as_expr=expr
30907else
30908 as_expr=false
30909fi
30910
30911rm -f conf$$ conf$$.exe conf$$.file
30912echo >conf$$.file
30913if ln -s conf$$.file conf$$ 2>/dev/null; then
30914 # We could just check for DJGPP; but this test a) works b) is more generic
30915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30916 if test -f conf$$.exe; then
30917 # Don't use ln at all; we don't have any links
30918 as_ln_s='cp -p'
30919 else
30920 as_ln_s='ln -s'
30921 fi
30922elif ln conf$$.file conf$$ 2>/dev/null; then
30923 as_ln_s=ln
30924else
30925 as_ln_s='cp -p'
30926fi
30927rm -f conf$$ conf$$.exe conf$$.file
30928
John Criswell0c38eaf2003-09-10 15:17:25 +000030929if mkdir -p . 2>/dev/null; then
30930 as_mkdir_p=:
30931else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030932 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030933 as_mkdir_p=false
30934fi
30935
John Criswell7a73b802003-06-30 21:59:07 +000030936as_executable_p="test -f"
30937
30938# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030939as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030940
30941# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030942as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030943
30944
30945# IFS
30946# We need space, tab and new line, in precisely that order.
30947as_nl='
30948'
30949IFS=" $as_nl"
30950
30951# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030952$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030953
30954exec 6>&1
30955
30956# Open the log real soon, to keep \$[0] and so on meaningful, and to
30957# report actual input values of CONFIG_FILES etc. instead of their
30958# values after options handling. Logging --version etc. is OK.
30959exec 5>>config.log
30960{
30961 echo
30962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30963## Running $as_me. ##
30964_ASBOX
30965} >&5
30966cat >&5 <<_CSEOF
30967
John Criswell5690c532005-05-18 20:18:40 +000030968This file was extended by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030969generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030970
30971 CONFIG_FILES = $CONFIG_FILES
30972 CONFIG_HEADERS = $CONFIG_HEADERS
30973 CONFIG_LINKS = $CONFIG_LINKS
30974 CONFIG_COMMANDS = $CONFIG_COMMANDS
30975 $ $0 $@
30976
30977_CSEOF
30978echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30979echo >&5
30980_ACEOF
30981
30982# Files that config.status was made for.
30983if test -n "$ac_config_files"; then
30984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30985fi
30986
30987if test -n "$ac_config_headers"; then
30988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30989fi
30990
30991if test -n "$ac_config_links"; then
30992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30993fi
30994
30995if test -n "$ac_config_commands"; then
30996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30997fi
30998
30999cat >>$CONFIG_STATUS <<\_ACEOF
31000
31001ac_cs_usage="\
31002\`$as_me' instantiates files from templates according to the
31003current configuration.
31004
31005Usage: $0 [OPTIONS] [FILE]...
31006
31007 -h, --help print this help, then exit
31008 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031009 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031010 -d, --debug don't remove temporary files
31011 --recheck update $as_me by reconfiguring in the same conditions
31012 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031013 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031014 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031015 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031016
31017Configuration files:
31018$config_files
31019
31020Configuration headers:
31021$config_headers
31022
John Criswellc764fbc2003-09-06 15:17:13 +000031023Configuration commands:
31024$config_commands
31025
John Criswell7a73b802003-06-30 21:59:07 +000031026Report bugs to <bug-autoconf@gnu.org>."
31027_ACEOF
31028
31029cat >>$CONFIG_STATUS <<_ACEOF
31030ac_cs_version="\\
John Criswell5690c532005-05-18 20:18:40 +000031031llvm config.status 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031032configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031033 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31034
Reid Spencer2706f8c2004-09-19 23:53:36 +000031035Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031036This config.status script is free software; the Free Software Foundation
31037gives unlimited permission to copy, distribute and modify it."
31038srcdir=$srcdir
31039INSTALL="$INSTALL"
31040_ACEOF
31041
31042cat >>$CONFIG_STATUS <<\_ACEOF
31043# If no file are specified by the user, then we need to provide default
31044# value. By we need to know if files were specified by the user.
31045ac_need_defaults=:
31046while test $# != 0
31047do
31048 case $1 in
31049 --*=*)
31050 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031052 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031053 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031054 -*)
31055 ac_option=$1
31056 ac_optarg=$2
31057 ac_shift=shift
31058 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031059 *) # This is not an option, so the user has probably given explicit
31060 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031061 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031062 ac_need_defaults=false;;
31063 esac
31064
John Criswell0c38eaf2003-09-10 15:17:25 +000031065 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031066 # Handling of the options.
31067_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031068cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31070 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031071 --version | --vers* | -V )
31072 echo "$ac_cs_version"; exit 0 ;;
31073 --he | --h)
31074 # Conflict between --help and --header
31075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31076Try \`$0 --help' for more information." >&5
31077echo "$as_me: error: ambiguous option: $1
31078Try \`$0 --help' for more information." >&2;}
31079 { (exit 1); exit 1; }; };;
31080 --help | --hel | -h )
31081 echo "$ac_cs_usage"; exit 0 ;;
31082 --debug | --d* | -d )
31083 debug=: ;;
31084 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031085 $ac_shift
31086 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031087 ac_need_defaults=false;;
31088 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031089 $ac_shift
31090 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031091 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31094 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031095
31096 # This is an error.
31097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31098Try \`$0 --help' for more information." >&5
31099echo "$as_me: error: unrecognized option: $1
31100Try \`$0 --help' for more information." >&2;}
31101 { (exit 1); exit 1; }; } ;;
31102
31103 *) ac_config_targets="$ac_config_targets $1" ;;
31104
31105 esac
31106 shift
31107done
31108
John Criswell0c38eaf2003-09-10 15:17:25 +000031109ac_configure_extra_args=
31110
31111if $ac_cs_silent; then
31112 exec 6>/dev/null
31113 ac_configure_extra_args="$ac_configure_extra_args --silent"
31114fi
31115
31116_ACEOF
31117cat >>$CONFIG_STATUS <<_ACEOF
31118if \$ac_cs_recheck; then
31119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31121fi
31122
John Criswell7a73b802003-06-30 21:59:07 +000031123_ACEOF
31124
John Criswellc764fbc2003-09-06 15:17:13 +000031125cat >>$CONFIG_STATUS <<_ACEOF
31126#
31127# INIT-COMMANDS section.
31128#
John Criswell7a73b802003-06-30 21:59:07 +000031129
Reid Spencerc0682832005-02-24 19:05:19 +000031130llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031131
31132_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031133
31134
31135
31136cat >>$CONFIG_STATUS <<\_ACEOF
31137for ac_config_target in $ac_config_targets
31138do
31139 case "$ac_config_target" in
31140 # Handling of arguments.
31141 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031142 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031143 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031144 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31145 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031146 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031147 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031148 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031149 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31150 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031151 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031152 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031153 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031154 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031155 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031156 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31157 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031158 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031159 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31160echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31161 { (exit 1); exit 1; }; };;
31162 esac
31163done
31164
31165# If the user did not use the arguments to specify the items to instantiate,
31166# then the envvar interface is used. Set only those that are not.
31167# We use the long form for the default assignment because of an extremely
31168# bizarre bug on SunOS 4.1.3.
31169if $ac_need_defaults; then
31170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031173fi
31174
John Criswell0c38eaf2003-09-10 15:17:25 +000031175# Have a temporary directory for convenience. Make it in the build tree
31176# simply because there is no reason to put it here, and in addition,
31177# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031178# Create a temporary directory, and hook for its removal unless debugging.
31179$debug ||
31180{
31181 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31182 trap '{ (exit 1); exit 1; }' 1 2 13 15
31183}
31184
31185# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031186
John Criswell7a73b802003-06-30 21:59:07 +000031187{
John Criswell0c38eaf2003-09-10 15:17:25 +000031188 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031189 test -n "$tmp" && test -d "$tmp"
31190} ||
31191{
John Criswell0c38eaf2003-09-10 15:17:25 +000031192 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031193 (umask 077 && mkdir $tmp)
31194} ||
31195{
John Criswell0c38eaf2003-09-10 15:17:25 +000031196 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031197 { (exit 1); exit 1; }
31198}
31199
31200_ACEOF
31201
31202cat >>$CONFIG_STATUS <<_ACEOF
31203
31204#
31205# CONFIG_FILES section.
31206#
31207
31208# No need to generate the scripts if there are no CONFIG_FILES.
31209# This happens for instance when ./config.status config.h
31210if test -n "\$CONFIG_FILES"; then
31211 # Protect against being on the right side of a sed subst in config.status.
31212 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31213 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31214s,@SHELL@,$SHELL,;t t
31215s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31216s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31217s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31218s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31219s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31220s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31221s,@exec_prefix@,$exec_prefix,;t t
31222s,@prefix@,$prefix,;t t
31223s,@program_transform_name@,$program_transform_name,;t t
31224s,@bindir@,$bindir,;t t
31225s,@sbindir@,$sbindir,;t t
31226s,@libexecdir@,$libexecdir,;t t
31227s,@datadir@,$datadir,;t t
31228s,@sysconfdir@,$sysconfdir,;t t
31229s,@sharedstatedir@,$sharedstatedir,;t t
31230s,@localstatedir@,$localstatedir,;t t
31231s,@libdir@,$libdir,;t t
31232s,@includedir@,$includedir,;t t
31233s,@oldincludedir@,$oldincludedir,;t t
31234s,@infodir@,$infodir,;t t
31235s,@mandir@,$mandir,;t t
31236s,@build_alias@,$build_alias,;t t
31237s,@host_alias@,$host_alias,;t t
31238s,@target_alias@,$target_alias,;t t
31239s,@DEFS@,$DEFS,;t t
31240s,@ECHO_C@,$ECHO_C,;t t
31241s,@ECHO_N@,$ECHO_N,;t t
31242s,@ECHO_T@,$ECHO_T,;t t
31243s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031244s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031245s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031246s,@build@,$build,;t t
31247s,@build_cpu@,$build_cpu,;t t
31248s,@build_vendor@,$build_vendor,;t t
31249s,@build_os@,$build_os,;t t
31250s,@host@,$host,;t t
31251s,@host_cpu@,$host_cpu,;t t
31252s,@host_vendor@,$host_vendor,;t t
31253s,@host_os@,$host_os,;t t
31254s,@target@,$target,;t t
31255s,@target_cpu@,$target_cpu,;t t
31256s,@target_vendor@,$target_vendor,;t t
31257s,@target_os@,$target_os,;t t
31258s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031259s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31260s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031261s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031263s,@CC@,$CC,;t t
31264s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031265s,@LDFLAGS@,$LDFLAGS,;t t
31266s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031267s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031268s,@EXEEXT@,$EXEEXT,;t t
31269s,@OBJEXT@,$OBJEXT,;t t
31270s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31271s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031272s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031273s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031274s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275s,@CXX@,$CXX,;t t
31276s,@CXXFLAGS@,$CXXFLAGS,;t t
31277s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031278s,@LEX@,$LEX,;t t
31279s,@LEXLIB@,$LEXLIB,;t t
31280s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031281s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031282s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031283s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031284s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031285s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031286s,@CMP@,$CMP,;t t
31287s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031288s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031289s,@FIND@,$FIND,;t t
31290s,@GREP@,$GREP,;t t
31291s,@MKDIR@,$MKDIR,;t t
31292s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031293s,@RANLIB@,$RANLIB,;t t
31294s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031295s,@RM@,$RM,;t t
31296s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031297s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031298s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031299s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31300s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31301s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031302s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031303s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031304s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031305s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031306s,@GROFF@,$GROFF,;t t
31307s,@GZIP@,$GZIP,;t t
31308s,@POD2HTML@,$POD2HTML,;t t
31309s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031310s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031311s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031312s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031313s,@EGREP@,$EGREP,;t t
31314s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31315s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31316s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31317s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31318s,@LIBADD_DL@,$LIBADD_DL,;t t
31319s,@ECHO@,$ECHO,;t t
31320s,@AR@,$AR,;t t
31321s,@ac_ct_AR@,$ac_ct_AR,;t t
31322s,@STRIP@,$STRIP,;t t
31323s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31324s,@CXXCPP@,$CXXCPP,;t t
31325s,@F77@,$F77,;t t
31326s,@FFLAGS@,$FFLAGS,;t t
31327s,@ac_ct_F77@,$ac_ct_F77,;t t
31328s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031329s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031330s,@LLVMGCC@,$LLVMGCC,;t t
31331s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031332s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031333s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031334s,@LLVMCC1@,$LLVMCC1,;t t
31335s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031336s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031337s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031338s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31339s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31340s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31341s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31342s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31343s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31344s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31345s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31346s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31347s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031348s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031349s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031350CEOF
31351
31352_ACEOF
31353
31354 cat >>$CONFIG_STATUS <<\_ACEOF
31355 # Split the substitutions into bite-sized pieces for seds with
31356 # small command number limits, like on Digital OSF/1 and HP-UX.
31357 ac_max_sed_lines=48
31358 ac_sed_frag=1 # Number of current file.
31359 ac_beg=1 # First line for current file.
31360 ac_end=$ac_max_sed_lines # Line after last line for current file.
31361 ac_more_lines=:
31362 ac_sed_cmds=
31363 while $ac_more_lines; do
31364 if test $ac_beg -gt 1; then
31365 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31366 else
31367 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31368 fi
31369 if test ! -s $tmp/subs.frag; then
31370 ac_more_lines=false
31371 else
31372 # The purpose of the label and of the branching condition is to
31373 # speed up the sed processing (if there are no `@' at all, there
31374 # is no need to browse any of the substitutions).
31375 # These are the two extra sed commands mentioned above.
31376 (echo ':t
31377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31378 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031379 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031380 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031381 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031382 fi
31383 ac_sed_frag=`expr $ac_sed_frag + 1`
31384 ac_beg=$ac_end
31385 ac_end=`expr $ac_end + $ac_max_sed_lines`
31386 fi
31387 done
31388 if test -z "$ac_sed_cmds"; then
31389 ac_sed_cmds=cat
31390 fi
31391fi # test -n "$CONFIG_FILES"
31392
31393_ACEOF
31394cat >>$CONFIG_STATUS <<\_ACEOF
31395for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31397 case $ac_file in
31398 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031399 cat >$tmp/stdin
31400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031404 * ) ac_file_in=$ac_file.in ;;
31405 esac
31406
31407 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031410 X"$ac_file" : 'X\(//\)[^/]' \| \
31411 X"$ac_file" : 'X\(//\)$' \| \
31412 X"$ac_file" : 'X\(/\)' \| \
31413 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031414echo X"$ac_file" |
31415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31417 /^X\(\/\/\)$/{ s//\1/; q; }
31418 /^X\(\/\).*/{ s//\1/; q; }
31419 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031420 { if $as_mkdir_p; then
31421 mkdir -p "$ac_dir"
31422 else
31423 as_dir="$ac_dir"
31424 as_dirs=
31425 while test ! -d "$as_dir"; do
31426 as_dirs="$as_dir $as_dirs"
31427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031429 X"$as_dir" : 'X\(//\)[^/]' \| \
31430 X"$as_dir" : 'X\(//\)$' \| \
31431 X"$as_dir" : 'X\(/\)' \| \
31432 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031433echo X"$as_dir" |
31434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31436 /^X\(\/\/\)$/{ s//\1/; q; }
31437 /^X\(\/\).*/{ s//\1/; q; }
31438 s/.*/./; q'`
31439 done
31440 test ! -n "$as_dirs" || mkdir $as_dirs
31441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31443 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031444
31445 ac_builddir=.
31446
31447if test "$ac_dir" != .; then
31448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31449 # A "../" for each directory in $ac_dir_suffix.
31450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31451else
31452 ac_dir_suffix= ac_top_builddir=
31453fi
31454
31455case $srcdir in
31456 .) # No --srcdir option. We are building in place.
31457 ac_srcdir=.
31458 if test -z "$ac_top_builddir"; then
31459 ac_top_srcdir=.
31460 else
31461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31462 fi ;;
31463 [\\/]* | ?:[\\/]* ) # Absolute path.
31464 ac_srcdir=$srcdir$ac_dir_suffix;
31465 ac_top_srcdir=$srcdir ;;
31466 *) # Relative path.
31467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31469esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031470
31471# Do not use `cd foo && pwd` to compute absolute paths, because
31472# the directories may not exist.
31473case `pwd` in
31474.) ac_abs_builddir="$ac_dir";;
31475*)
31476 case "$ac_dir" in
31477 .) ac_abs_builddir=`pwd`;;
31478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31480 esac;;
31481esac
31482case $ac_abs_builddir in
31483.) ac_abs_top_builddir=${ac_top_builddir}.;;
31484*)
31485 case ${ac_top_builddir}. in
31486 .) ac_abs_top_builddir=$ac_abs_builddir;;
31487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31489 esac;;
31490esac
31491case $ac_abs_builddir in
31492.) ac_abs_srcdir=$ac_srcdir;;
31493*)
31494 case $ac_srcdir in
31495 .) ac_abs_srcdir=$ac_abs_builddir;;
31496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31498 esac;;
31499esac
31500case $ac_abs_builddir in
31501.) ac_abs_top_srcdir=$ac_top_srcdir;;
31502*)
31503 case $ac_top_srcdir in
31504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31507 esac;;
31508esac
John Criswell7a73b802003-06-30 21:59:07 +000031509
31510
31511 case $INSTALL in
31512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31513 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31514 esac
31515
31516 if test x"$ac_file" != x-; then
31517 { echo "$as_me:$LINENO: creating $ac_file" >&5
31518echo "$as_me: creating $ac_file" >&6;}
31519 rm -f "$ac_file"
31520 fi
31521 # Let's still pretend it is `configure' which instantiates (i.e., don't
31522 # use $as_me), people would be surprised to read:
31523 # /* config.h. Generated by config.status. */
31524 if test x"$ac_file" = x-; then
31525 configure_input=
31526 else
31527 configure_input="$ac_file. "
31528 fi
31529 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031530 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031531
31532 # First look for the input files in the build tree, otherwise in the
31533 # src tree.
31534 ac_file_inputs=`IFS=:
31535 for f in $ac_file_in; do
31536 case $f in
31537 -) echo $tmp/stdin ;;
31538 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031539 # Absolute (can't be DOS-style, as IFS=:)
31540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031541echo "$as_me: error: cannot find input file: $f" >&2;}
31542 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031543 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031544 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031545 if test -f "$f"; then
31546 # Build tree
31547 echo "$f"
31548 elif test -f "$srcdir/$f"; then
31549 # Source tree
31550 echo "$srcdir/$f"
31551 else
31552 # /dev/null tree
31553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031554echo "$as_me: error: cannot find input file: $f" >&2;}
31555 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031556 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031557 esac
31558 done` || { (exit 1); exit 1; }
31559_ACEOF
31560cat >>$CONFIG_STATUS <<_ACEOF
31561 sed "$ac_vpsub
31562$extrasub
31563_ACEOF
31564cat >>$CONFIG_STATUS <<\_ACEOF
31565:t
31566/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31567s,@configure_input@,$configure_input,;t t
31568s,@srcdir@,$ac_srcdir,;t t
31569s,@abs_srcdir@,$ac_abs_srcdir,;t t
31570s,@top_srcdir@,$ac_top_srcdir,;t t
31571s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31572s,@builddir@,$ac_builddir,;t t
31573s,@abs_builddir@,$ac_abs_builddir,;t t
31574s,@top_builddir@,$ac_top_builddir,;t t
31575s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31576s,@INSTALL@,$ac_INSTALL,;t t
31577" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31578 rm -f $tmp/stdin
31579 if test x"$ac_file" != x-; then
31580 mv $tmp/out $ac_file
31581 else
31582 cat $tmp/out
31583 rm -f $tmp/out
31584 fi
31585
31586done
31587_ACEOF
31588cat >>$CONFIG_STATUS <<\_ACEOF
31589
31590#
31591# CONFIG_HEADER section.
31592#
31593
31594# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31595# NAME is the cpp macro being defined and VALUE is the value it is being given.
31596#
31597# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031598ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31599ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031600ac_dC=' '
31601ac_dD=',;t'
31602# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031603ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031604ac_uB='$,\1#\2define\3'
31605ac_uC=' '
31606ac_uD=',;t'
31607
31608for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31610 case $ac_file in
31611 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031612 cat >$tmp/stdin
31613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031617 * ) ac_file_in=$ac_file.in ;;
31618 esac
31619
31620 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31621echo "$as_me: creating $ac_file" >&6;}
31622
31623 # First look for the input files in the build tree, otherwise in the
31624 # src tree.
31625 ac_file_inputs=`IFS=:
31626 for f in $ac_file_in; do
31627 case $f in
31628 -) echo $tmp/stdin ;;
31629 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031630 # Absolute (can't be DOS-style, as IFS=:)
31631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031632echo "$as_me: error: cannot find input file: $f" >&2;}
31633 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031634 # Do quote $f, to prevent DOS paths from being IFS'd.
31635 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031636 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031637 if test -f "$f"; then
31638 # Build tree
31639 echo "$f"
31640 elif test -f "$srcdir/$f"; then
31641 # Source tree
31642 echo "$srcdir/$f"
31643 else
31644 # /dev/null tree
31645 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031646echo "$as_me: error: cannot find input file: $f" >&2;}
31647 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031648 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031649 esac
31650 done` || { (exit 1); exit 1; }
31651 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031652 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031653
31654_ACEOF
31655
31656# Transform confdefs.h into two sed scripts, `conftest.defines' and
31657# `conftest.undefs', that substitutes the proper values into
31658# config.h.in to produce config.h. The first handles `#define'
31659# templates, and the second `#undef' templates.
31660# And first: Protect against being on the right side of a sed subst in
31661# config.status. Protect against being in an unquoted here document
31662# in config.status.
31663rm -f conftest.defines conftest.undefs
31664# Using a here document instead of a string reduces the quoting nightmare.
31665# Putting comments in sed scripts is not portable.
31666#
31667# `end' is used to avoid that the second main sed command (meant for
31668# 0-ary CPP macros) applies to n-ary macro definitions.
31669# See the Autoconf documentation for `clear'.
31670cat >confdef2sed.sed <<\_ACEOF
31671s/[\\&,]/\\&/g
31672s,[\\$`],\\&,g
31673t clear
31674: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031675s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031676t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031677s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031678: end
31679_ACEOF
31680# If some macros were called several times there might be several times
31681# the same #defines, which is useless. Nevertheless, we may not want to
31682# sort them, since we want the *last* AC-DEFINE to be honored.
31683uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31684sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31685rm -f confdef2sed.sed
31686
31687# This sed command replaces #undef with comments. This is necessary, for
31688# example, in the case of _POSIX_SOURCE, which is predefined and required
31689# on some systems where configure will not decide to define it.
31690cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031691s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031692_ACEOF
31693
31694# Break up conftest.defines because some shells have a limit on the size
31695# of here documents, and old seds have small limits too (100 cmds).
31696echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031697echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031698echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31699echo ' :' >>$CONFIG_STATUS
31700rm -f conftest.tail
31701while grep . conftest.defines >/dev/null
31702do
31703 # Write a limited-size here document to $tmp/defines.sed.
31704 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31705 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031706 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031707 # Work around the forget-to-reset-the-flag bug.
31708 echo 't clr' >>$CONFIG_STATUS
31709 echo ': clr' >>$CONFIG_STATUS
31710 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31711 echo 'CEOF
31712 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31713 rm -f $tmp/in
31714 mv $tmp/out $tmp/in
31715' >>$CONFIG_STATUS
31716 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31717 rm -f conftest.defines
31718 mv conftest.tail conftest.defines
31719done
31720rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031721echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031722echo >>$CONFIG_STATUS
31723
31724# Break up conftest.undefs because some shells have a limit on the size
31725# of here documents, and old seds have small limits too (100 cmds).
31726echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31727rm -f conftest.tail
31728while grep . conftest.undefs >/dev/null
31729do
31730 # Write a limited-size here document to $tmp/undefs.sed.
31731 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31732 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031733 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031734 # Work around the forget-to-reset-the-flag bug.
31735 echo 't clr' >>$CONFIG_STATUS
31736 echo ': clr' >>$CONFIG_STATUS
31737 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31738 echo 'CEOF
31739 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31740 rm -f $tmp/in
31741 mv $tmp/out $tmp/in
31742' >>$CONFIG_STATUS
31743 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31744 rm -f conftest.undefs
31745 mv conftest.tail conftest.undefs
31746done
31747rm -f conftest.undefs
31748
31749cat >>$CONFIG_STATUS <<\_ACEOF
31750 # Let's still pretend it is `configure' which instantiates (i.e., don't
31751 # use $as_me), people would be surprised to read:
31752 # /* config.h. Generated by config.status. */
31753 if test x"$ac_file" = x-; then
31754 echo "/* Generated by configure. */" >$tmp/config.h
31755 else
31756 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31757 fi
31758 cat $tmp/in >>$tmp/config.h
31759 rm -f $tmp/in
31760 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031761 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31763echo "$as_me: $ac_file is unchanged" >&6;}
31764 else
31765 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031767 X"$ac_file" : 'X\(//\)[^/]' \| \
31768 X"$ac_file" : 'X\(//\)$' \| \
31769 X"$ac_file" : 'X\(/\)' \| \
31770 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031771echo X"$ac_file" |
31772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31774 /^X\(\/\/\)$/{ s//\1/; q; }
31775 /^X\(\/\).*/{ s//\1/; q; }
31776 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031777 { if $as_mkdir_p; then
31778 mkdir -p "$ac_dir"
31779 else
31780 as_dir="$ac_dir"
31781 as_dirs=
31782 while test ! -d "$as_dir"; do
31783 as_dirs="$as_dir $as_dirs"
31784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031786 X"$as_dir" : 'X\(//\)[^/]' \| \
31787 X"$as_dir" : 'X\(//\)$' \| \
31788 X"$as_dir" : 'X\(/\)' \| \
31789 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031790echo X"$as_dir" |
31791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31793 /^X\(\/\/\)$/{ s//\1/; q; }
31794 /^X\(\/\).*/{ s//\1/; q; }
31795 s/.*/./; q'`
31796 done
31797 test ! -n "$as_dirs" || mkdir $as_dirs
31798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31799echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31800 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031801
31802 rm -f $ac_file
31803 mv $tmp/config.h $ac_file
31804 fi
31805 else
31806 cat $tmp/config.h
31807 rm -f $tmp/config.h
31808 fi
31809done
31810_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031811cat >>$CONFIG_STATUS <<\_ACEOF
31812
31813#
31814# CONFIG_COMMANDS section.
31815#
31816for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31820$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031821 X"$ac_dest" : 'X\(//\)[^/]' \| \
31822 X"$ac_dest" : 'X\(//\)$' \| \
31823 X"$ac_dest" : 'X\(/\)' \| \
31824 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031825echo X"$ac_dest" |
31826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31828 /^X\(\/\/\)$/{ s//\1/; q; }
31829 /^X\(\/\).*/{ s//\1/; q; }
31830 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031831 { if $as_mkdir_p; then
31832 mkdir -p "$ac_dir"
31833 else
31834 as_dir="$ac_dir"
31835 as_dirs=
31836 while test ! -d "$as_dir"; do
31837 as_dirs="$as_dir $as_dirs"
31838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31839$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31840 X"$as_dir" : 'X\(//\)[^/]' \| \
31841 X"$as_dir" : 'X\(//\)$' \| \
31842 X"$as_dir" : 'X\(/\)' \| \
31843 . : '\(.\)' 2>/dev/null ||
31844echo X"$as_dir" |
31845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31847 /^X\(\/\/\)$/{ s//\1/; q; }
31848 /^X\(\/\).*/{ s//\1/; q; }
31849 s/.*/./; q'`
31850 done
31851 test ! -n "$as_dirs" || mkdir $as_dirs
31852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31853echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31854 { (exit 1); exit 1; }; }; }
31855
John Criswellc764fbc2003-09-06 15:17:13 +000031856 ac_builddir=.
31857
31858if test "$ac_dir" != .; then
31859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31860 # A "../" for each directory in $ac_dir_suffix.
31861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31862else
31863 ac_dir_suffix= ac_top_builddir=
31864fi
31865
31866case $srcdir in
31867 .) # No --srcdir option. We are building in place.
31868 ac_srcdir=.
31869 if test -z "$ac_top_builddir"; then
31870 ac_top_srcdir=.
31871 else
31872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31873 fi ;;
31874 [\\/]* | ?:[\\/]* ) # Absolute path.
31875 ac_srcdir=$srcdir$ac_dir_suffix;
31876 ac_top_srcdir=$srcdir ;;
31877 *) # Relative path.
31878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31880esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031881
31882# Do not use `cd foo && pwd` to compute absolute paths, because
31883# the directories may not exist.
31884case `pwd` in
31885.) ac_abs_builddir="$ac_dir";;
31886*)
31887 case "$ac_dir" in
31888 .) ac_abs_builddir=`pwd`;;
31889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31891 esac;;
31892esac
31893case $ac_abs_builddir in
31894.) ac_abs_top_builddir=${ac_top_builddir}.;;
31895*)
31896 case ${ac_top_builddir}. in
31897 .) ac_abs_top_builddir=$ac_abs_builddir;;
31898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31900 esac;;
31901esac
31902case $ac_abs_builddir in
31903.) ac_abs_srcdir=$ac_srcdir;;
31904*)
31905 case $ac_srcdir in
31906 .) ac_abs_srcdir=$ac_abs_builddir;;
31907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31909 esac;;
31910esac
31911case $ac_abs_builddir in
31912.) ac_abs_top_srcdir=$ac_top_srcdir;;
31913*)
31914 case $ac_top_srcdir in
31915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31918 esac;;
31919esac
John Criswellc764fbc2003-09-06 15:17:13 +000031920
31921
31922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31923echo "$as_me: executing $ac_dest commands" >&6;}
31924 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031925 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31926 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31927 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31928 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31929 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31930 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31931 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31932 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31933 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31934 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31935 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31936 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31937 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31938 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31939 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31940 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31941 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31942 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31943 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31944 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031945 esac
31946done
31947_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031948
31949cat >>$CONFIG_STATUS <<\_ACEOF
31950
31951{ (exit 0); exit 0; }
31952_ACEOF
31953chmod +x $CONFIG_STATUS
31954ac_clean_files=$ac_clean_files_save
31955
31956
31957# configure is writing to config.log, and then calls config.status.
31958# config.status does its own redirection, appending to config.log.
31959# Unfortunately, on DOS this fails, as config.log is still kept open
31960# by configure, so config.status won't be able to write to it; its
31961# output is simply discarded. So we exec the FD to /dev/null,
31962# effectively closing config.log, so it can be properly (re)opened and
31963# appended to by config.status. When coming back to configure, we
31964# need to make the FD available again.
31965if test "$no_create" != yes; then
31966 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031967 ac_config_status_args=
31968 test "$silent" = yes &&
31969 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031970 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031972 exec 5>>config.log
31973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31974 # would make configure fail if this is the last instruction.
31975 $ac_cs_success || { (exit 1); exit 1; }
31976fi
31977
John Criswell12399a12003-09-30 15:55:44 +000031978#
31979# CONFIG_SUBDIRS section.
31980#
31981if test "$no_recursion" != yes; then
31982
31983 # Remove --cache-file and --srcdir arguments so they do not pile up.
31984 ac_sub_configure_args=
31985 ac_prev=
31986 for ac_arg in $ac_configure_args; do
31987 if test -n "$ac_prev"; then
31988 ac_prev=
31989 continue
31990 fi
31991 case $ac_arg in
31992 -cache-file | --cache-file | --cache-fil | --cache-fi \
31993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31994 ac_prev=cache_file ;;
31995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31997 | --c=*)
31998 ;;
31999 --config-cache | -C)
32000 ;;
32001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32002 ac_prev=srcdir ;;
32003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32004 ;;
32005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32006 ac_prev=prefix ;;
32007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32008 ;;
32009 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32010 esac
32011 done
32012
32013 # Always prepend --prefix to ensure using the same prefix
32014 # in subdir configurations.
32015 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32016
32017 ac_popdir=`pwd`
32018 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32019
32020 # Do not complain, so a configure script can configure whichever
32021 # parts of a large source tree are present.
32022 test -d $srcdir/$ac_dir || continue
32023
32024 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32025echo "$as_me: configuring in $ac_dir" >&6;}
32026 { if $as_mkdir_p; then
32027 mkdir -p "$ac_dir"
32028 else
32029 as_dir="$ac_dir"
32030 as_dirs=
32031 while test ! -d "$as_dir"; do
32032 as_dirs="$as_dir $as_dirs"
32033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032035 X"$as_dir" : 'X\(//\)[^/]' \| \
32036 X"$as_dir" : 'X\(//\)$' \| \
32037 X"$as_dir" : 'X\(/\)' \| \
32038 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032039echo X"$as_dir" |
32040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32042 /^X\(\/\/\)$/{ s//\1/; q; }
32043 /^X\(\/\).*/{ s//\1/; q; }
32044 s/.*/./; q'`
32045 done
32046 test ! -n "$as_dirs" || mkdir $as_dirs
32047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32048echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32049 { (exit 1); exit 1; }; }; }
32050
32051 ac_builddir=.
32052
32053if test "$ac_dir" != .; then
32054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32055 # A "../" for each directory in $ac_dir_suffix.
32056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32057else
32058 ac_dir_suffix= ac_top_builddir=
32059fi
32060
32061case $srcdir in
32062 .) # No --srcdir option. We are building in place.
32063 ac_srcdir=.
32064 if test -z "$ac_top_builddir"; then
32065 ac_top_srcdir=.
32066 else
32067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32068 fi ;;
32069 [\\/]* | ?:[\\/]* ) # Absolute path.
32070 ac_srcdir=$srcdir$ac_dir_suffix;
32071 ac_top_srcdir=$srcdir ;;
32072 *) # Relative path.
32073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32075esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032076
32077# Do not use `cd foo && pwd` to compute absolute paths, because
32078# the directories may not exist.
32079case `pwd` in
32080.) ac_abs_builddir="$ac_dir";;
32081*)
32082 case "$ac_dir" in
32083 .) ac_abs_builddir=`pwd`;;
32084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32086 esac;;
32087esac
32088case $ac_abs_builddir in
32089.) ac_abs_top_builddir=${ac_top_builddir}.;;
32090*)
32091 case ${ac_top_builddir}. in
32092 .) ac_abs_top_builddir=$ac_abs_builddir;;
32093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32095 esac;;
32096esac
32097case $ac_abs_builddir in
32098.) ac_abs_srcdir=$ac_srcdir;;
32099*)
32100 case $ac_srcdir in
32101 .) ac_abs_srcdir=$ac_abs_builddir;;
32102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32104 esac;;
32105esac
32106case $ac_abs_builddir in
32107.) ac_abs_top_srcdir=$ac_top_srcdir;;
32108*)
32109 case $ac_top_srcdir in
32110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32113 esac;;
32114esac
John Criswell12399a12003-09-30 15:55:44 +000032115
32116
32117 cd $ac_dir
32118
32119 # Check for guested configure; otherwise get Cygnus style configure.
32120 if test -f $ac_srcdir/configure.gnu; then
32121 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32122 elif test -f $ac_srcdir/configure; then
32123 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32124 elif test -f $ac_srcdir/configure.in; then
32125 ac_sub_configure=$ac_configure
32126 else
32127 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32128echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32129 ac_sub_configure=
32130 fi
32131
32132 # The recursion is here.
32133 if test -n "$ac_sub_configure"; then
32134 # Make the cache file name correct relative to the subdirectory.
32135 case $cache_file in
32136 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32137 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032138 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032139 esac
32140
32141 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32142echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32143 # The eval makes quoting arguments work.
32144 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032145 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32146 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032147echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32148 { (exit 1); exit 1; }; }
32149 fi
32150
32151 cd $ac_popdir
32152 done
32153fi
32154
Brian Gaekef3b24102003-11-16 18:38:14 +000032155
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032156if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032157 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32158echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032159 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32160echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32161 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32162echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32163 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32164echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32165 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32166echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032167fi