blob: efebe915932e427e043afddf0cde8c46559b5fbc [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
5083 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo GraphViz"
5084 ;;
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
5097if test "$GRAPHVIZ" != "echo GraphViz" ; then
5098
5099cat >>confdefs.h <<\_ACEOF
5100#define HAVE_GRAPHVIZ 1
5101_ACEOF
5102
5103fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005104
5105# Find a good install program. We prefer a C program (faster),
5106# so one script is as good as another. But avoid the broken or
5107# incompatible versions:
5108# SysV /etc/install, /usr/sbin/install
5109# SunOS /usr/etc/install
5110# IRIX /sbin/install
5111# AIX /bin/install
5112# AmigaOS /C/install, which installs bootblocks on floppy discs
5113# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5114# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5115# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5116# OS/2's system install, which has a completely different semantic
5117# ./install, which can be erroneously created by make from ./install.sh.
5118echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5119echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5120if test -z "$INSTALL"; then
5121if test "${ac_cv_path_install+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 # Account for people who put trailing slashes in PATH elements.
5130case $as_dir/ in
5131 ./ | .// | /cC/* | \
5132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5133 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5134 /usr/ucb/* ) ;;
5135 *)
5136 # OSF1 and SCO ODT 3.0 have their own names for install.
5137 # Don't use installbsd from OSF since it installs stuff as root
5138 # by default.
5139 for ac_prog in ginstall scoinst install; do
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5142 if test $ac_prog = install &&
5143 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5144 # AIX install. It has an incompatible calling convention.
5145 :
5146 elif test $ac_prog = install &&
5147 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5148 # program-specific install script used by HP pwplus--don't use.
5149 :
5150 else
5151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5152 break 3
5153 fi
5154 fi
5155 done
5156 done
5157 ;;
5158esac
5159done
5160
5161
5162fi
5163 if test "${ac_cv_path_install+set}" = set; then
5164 INSTALL=$ac_cv_path_install
5165 else
5166 # As a last resort, use the slow shell script. We don't cache a
5167 # path for INSTALL within a source directory, because that will
5168 # break other packages using the cache if that directory is
5169 # removed, or if the path is relative.
5170 INSTALL=$ac_install_sh
5171 fi
5172fi
5173echo "$as_me:$LINENO: result: $INSTALL" >&5
5174echo "${ECHO_T}$INSTALL" >&6
5175
5176# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5177# It thinks the first close brace ends the variable substitution.
5178test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5179
5180test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5181
5182test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5183
5184
5185# Extract the first word of "bzip2", so it can be a program name with args.
5186set dummy bzip2; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_path_BZIP2+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 case $BZIP2 in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5195 ;;
5196 *)
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209done
5210
5211 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5212 ;;
5213esac
5214fi
5215BZIP2=$ac_cv_path_BZIP2
5216
5217if test -n "$BZIP2"; then
5218 echo "$as_me:$LINENO: result: $BZIP2" >&5
5219echo "${ECHO_T}$BZIP2" >&6
5220else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223fi
5224
5225# Extract the first word of "dot", so it can be a program name with args.
5226set dummy dot; ac_word=$2
5227echo "$as_me:$LINENO: checking for $ac_word" >&5
5228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229if test "${ac_cv_path_DOT+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 case $DOT in
5233 [\\/]* | ?:[\\/]*)
5234 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5235 ;;
5236 *)
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248done
5249done
5250
5251 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5252 ;;
5253esac
5254fi
5255DOT=$ac_cv_path_DOT
5256
5257if test -n "$DOT"; then
5258 echo "$as_me:$LINENO: result: $DOT" >&5
5259echo "${ECHO_T}$DOT" >&6
5260else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
5265# Extract the first word of "doxygen", so it can be a program name with args.
5266set dummy doxygen; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_path_DOXYGEN+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 case $DOXYGEN in
5273 [\\/]* | ?:[\\/]*)
5274 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5275 ;;
5276 *)
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288done
5289done
5290
5291 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5292 ;;
5293esac
5294fi
5295DOXYGEN=$ac_cv_path_DOXYGEN
5296
5297if test -n "$DOXYGEN"; then
5298 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5299echo "${ECHO_T}$DOXYGEN" >&6
5300else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
5304
5305# Extract the first word of "etags", so it can be a program name with args.
5306set dummy etags; ac_word=$2
5307echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309if test "${ac_cv_path_ETAGS+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 case $ETAGS in
5313 [\\/]* | ?:[\\/]*)
5314 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5315 ;;
5316 *)
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328done
5329done
5330
5331 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5332 ;;
5333esac
5334fi
5335ETAGS=$ac_cv_path_ETAGS
5336
5337if test -n "$ETAGS"; then
5338 echo "$as_me:$LINENO: result: $ETAGS" >&5
5339echo "${ECHO_T}$ETAGS" >&6
5340else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345# Extract the first word of "groff", so it can be a program name with args.
5346set dummy groff; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_path_GROFF+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 case $GROFF in
5353 [\\/]* | ?:[\\/]*)
5354 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5355 ;;
5356 *)
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368done
5369done
5370
5371 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5372 ;;
5373esac
5374fi
5375GROFF=$ac_cv_path_GROFF
5376
5377if test -n "$GROFF"; then
5378 echo "$as_me:$LINENO: result: $GROFF" >&5
5379echo "${ECHO_T}$GROFF" >&6
5380else
5381 echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6
5383fi
5384
5385# Extract the first word of "gzip", so it can be a program name with args.
5386set dummy gzip; ac_word=$2
5387echo "$as_me:$LINENO: checking for $ac_word" >&5
5388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389if test "${ac_cv_path_GZIP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392 case $GZIP in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5395 ;;
5396 *)
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408done
5409done
5410
5411 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5412 ;;
5413esac
5414fi
5415GZIP=$ac_cv_path_GZIP
5416
5417if test -n "$GZIP"; then
5418 echo "$as_me:$LINENO: result: $GZIP" >&5
5419echo "${ECHO_T}$GZIP" >&6
5420else
5421 echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425# Extract the first word of "pod2html", so it can be a program name with args.
5426set dummy pod2html; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_path_POD2HTML+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 case $POD2HTML in
5433 [\\/]* | ?:[\\/]*)
5434 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5435 ;;
5436 *)
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448done
5449done
5450
5451 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5452 ;;
5453esac
5454fi
5455POD2HTML=$ac_cv_path_POD2HTML
5456
5457if test -n "$POD2HTML"; then
5458 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5459echo "${ECHO_T}$POD2HTML" >&6
5460else
5461 echo "$as_me:$LINENO: result: no" >&5
5462echo "${ECHO_T}no" >&6
5463fi
5464
5465# Extract the first word of "pod2man", so it can be a program name with args.
5466set dummy pod2man; ac_word=$2
5467echo "$as_me:$LINENO: checking for $ac_word" >&5
5468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469if test "${ac_cv_path_POD2MAN+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472 case $POD2MAN in
5473 [\\/]* | ?:[\\/]*)
5474 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5475 ;;
5476 *)
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488done
5489done
5490
5491 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5492 ;;
5493esac
5494fi
5495POD2MAN=$ac_cv_path_POD2MAN
5496
5497if test -n "$POD2MAN"; then
5498 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5499echo "${ECHO_T}$POD2MAN" >&6
5500else
5501 echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6
5503fi
5504
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005505# Extract the first word of "runtest", so it can be a program name with args.
5506set dummy runtest; ac_word=$2
5507echo "$as_me:$LINENO: checking for $ac_word" >&5
5508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509if test "${ac_cv_path_RUNTEST+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512 case $RUNTEST in
5513 [\\/]* | ?:[\\/]*)
5514 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5515 ;;
5516 *)
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH
5519do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528done
5529done
5530
5531 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5532 ;;
5533esac
5534fi
5535RUNTEST=$ac_cv_path_RUNTEST
5536
5537if test -n "$RUNTEST"; then
5538 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5539echo "${ECHO_T}$RUNTEST" >&6
5540else
5541 echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543fi
5544
Reid Spencer0fcb9412004-11-30 08:11:54 +00005545
Reid Spencer0fcb9412004-11-30 08:11:54 +00005546no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005547echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5548echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005549
5550# Check whether --with-tclinclude or --without-tclinclude was given.
5551if test "${with_tclinclude+set}" = set; then
5552 withval="$with_tclinclude"
5553 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005554else
5555 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005556fi;
5557if test "${ac_cv_path_tclsh+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560
5561if test x"${with_tclinclude}" != x ; then
5562 if test -f ${with_tclinclude}/tclsh ; then
5563 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5564 elif test -f ${with_tclinclude}/src/tclsh ; then
5565 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5566 else
5567 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5568echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5569 { (exit 1); exit 1; }; }
5570 fi
5571fi
5572
Reid Spencer0fcb9412004-11-30 08:11:54 +00005573if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005574 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005575echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005576 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 +00005577do
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005580echo "$as_me:$LINENO: checking for $ac_word" >&5
5581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005582if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
Reid Spencercda35f82004-12-02 04:17:20 +00005585 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005586 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005587 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005588 ;;
5589 *)
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005597 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601done
5602done
5603
5604 ;;
5605esac
5606fi
Reid Spencercda35f82004-12-02 04:17:20 +00005607TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005608
Reid Spencercda35f82004-12-02 04:17:20 +00005609if test -n "$TCLSH"; then
5610 echo "$as_me:$LINENO: result: $TCLSH" >&5
5611echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005612else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615fi
5616
Reid Spencercda35f82004-12-02 04:17:20 +00005617 test -n "$TCLSH" && break
5618done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005619
Reid Spencercda35f82004-12-02 04:17:20 +00005620 if test x"${TCLSH}" = x ; then
5621 ac_cv_path_tclsh='';
5622 else
5623 ac_cv_path_tclsh="${TCLSH}";
5624 fi
5625else
5626 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5627echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5628 TCLSH="${ac_cv_path_tclsh}"
5629
5630fi
5631
5632fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005633
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005634# Extract the first word of "zip", so it can be a program name with args.
5635set dummy zip; ac_word=$2
5636echo "$as_me:$LINENO: checking for $ac_word" >&5
5637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5638if test "${ac_cv_path_ZIP+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 case $ZIP in
5642 [\\/]* | ?:[\\/]*)
5643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5644 ;;
5645 *)
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658done
5659
5660 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5661 ;;
5662esac
5663fi
5664ZIP=$ac_cv_path_ZIP
5665
5666if test -n "$ZIP"; then
5667 echo "$as_me:$LINENO: result: $ZIP" >&5
5668echo "${ECHO_T}$ZIP" >&6
5669else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672fi
5673
5674
5675echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5676echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5677if test "${llvm_cv_link_use_r+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005681ac_cpp='$CPP $CPPFLAGS'
5682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005686 oldcflags="$CFLAGS"
5687 CFLAGS="$CFLAGS -Wl,-R."
5688 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005689/* confdefs.h. */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005694
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005695int
5696main ()
5697{
5698int main() { return 0; }
5699 ;
5700 return 0;
5701}
John Criswell47fdd832003-07-14 16:52:07 +00005702_ACEOF
5703rm -f conftest.$ac_objext conftest$ac_exeext
5704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005705 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005711 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005712 { ac_try='test -z "$ac_c_werror_flag"
5713 || test ! -s conftest.err'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005725 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005726else
John Criswell47fdd832003-07-14 16:52:07 +00005727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005728sed 's/^/| /' conftest.$ac_ext >&5
5729
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005730llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005731fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005732rm -f conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005734 CFLAGS="$oldcflags"
5735 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005736ac_cpp='$CPP $CPPFLAGS'
5737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005741
John Criswell7a73b802003-06-30 21:59:07 +00005742fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005743echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5744echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5745if test "$llvm_cv_link_use_r" = yes ; then
5746
5747cat >>confdefs.h <<\_ACEOF
5748#define HAVE_LINK_R 1
5749_ACEOF
5750
John Criswell47fdd832003-07-14 16:52:07 +00005751 fi
John Criswell47fdd832003-07-14 16:52:07 +00005752
John Criswell47fdd832003-07-14 16:52:07 +00005753
John Criswell47fdd832003-07-14 16:52:07 +00005754
John Criswell7a73b802003-06-30 21:59:07 +00005755
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005756echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5757echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5758if test "${ac_cv_c_const+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h. */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h. */
5767
5768int
5769main ()
5770{
5771/* FIXME: Include the comments suggested by Paul. */
5772#ifndef __cplusplus
5773 /* Ultrix mips cc rejects this. */
5774 typedef int charset[2];
5775 const charset x;
5776 /* SunOS 4.1.1 cc rejects this. */
5777 char const *const *ccp;
5778 char **p;
5779 /* NEC SVR4.0.2 mips cc rejects this. */
5780 struct point {int x, y;};
5781 static struct point const zero = {0,0};
5782 /* AIX XL C 1.02.0.0 rejects this.
5783 It does not let you subtract one const X* pointer from another in
5784 an arm of an if-expression whose if-part is not a constant
5785 expression */
5786 const char *g = "string";
5787 ccp = &g + (g ? g-g : 0);
5788 /* HPUX 7.0 cc rejects these. */
5789 ++ccp;
5790 p = (char**) ccp;
5791 ccp = (char const *const *) p;
5792 { /* SCO 3.2v4 cc rejects this. */
5793 char *t;
5794 char const *s = 0 ? (char *) 0 : (char const *) 0;
5795
5796 *t++ = 0;
5797 }
5798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5799 int x[] = {25, 17};
5800 const int *foo = &x[0];
5801 ++foo;
5802 }
5803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5804 typedef const int *iptr;
5805 iptr p = 0;
5806 ++p;
5807 }
5808 { /* AIX XL C 1.02.0.0 rejects this saying
5809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5810 struct s { int j; const int *ap[3]; };
5811 struct s *b; b->j = 5;
5812 }
5813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5814 const int foo = 10;
5815 }
5816#endif
5817
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_c_const=yes
5845else
5846 echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849ac_cv_c_const=no
5850fi
5851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
5853echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5854echo "${ECHO_T}$ac_cv_c_const" >&6
5855if test $ac_cv_c_const = no; then
5856
5857cat >>confdefs.h <<\_ACEOF
5858#define const
5859_ACEOF
5860
5861fi
5862
5863
5864echo "$as_me:$LINENO: checking for egrep" >&5
5865echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5866if test "${ac_cv_prog_egrep+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5870 then ac_cv_prog_egrep='grep -E'
5871 else ac_cv_prog_egrep='egrep'
5872 fi
5873fi
5874echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5875echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5876 EGREP=$ac_cv_prog_egrep
5877
John Criswell7a73b802003-06-30 21:59:07 +00005878
5879echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5880echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5881if test "${ac_cv_header_stdc+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005890#include <stdlib.h>
5891#include <stdarg.h>
5892#include <string.h>
5893#include <float.h>
5894
John Criswell0c38eaf2003-09-10 15:17:25 +00005895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
John Criswell7a73b802003-06-30 21:59:07 +00005902_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005903rm -f conftest.$ac_objext
5904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005905 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005911 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005925 ac_cv_header_stdc=yes
5926else
5927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005931fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005933
5934if test $ac_cv_header_stdc = yes; then
5935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005942#include <string.h>
5943
5944_ACEOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005946 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005947 :
5948else
5949 ac_cv_header_stdc=no
5950fi
5951rm -f conftest*
5952
5953fi
5954
5955if test $ac_cv_header_stdc = yes; then
5956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005963#include <stdlib.h>
5964
5965_ACEOF
5966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005967 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005968 :
5969else
5970 ac_cv_header_stdc=no
5971fi
5972rm -f conftest*
5973
5974fi
5975
5976if test $ac_cv_header_stdc = yes; then
5977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5978 if test "$cross_compiling" = yes; then
5979 :
5980else
5981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005987#include <ctype.h>
5988#if ((' ' & 0x0FF) == 0x020)
5989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5991#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005992# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5997#endif
5998
5999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6000int
6001main ()
6002{
6003 int i;
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006006 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006007 exit(2);
6008 exit (0);
6009}
6010_ACEOF
6011rm -f conftest$ac_exeext
6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 :
6023else
6024 echo "$as_me: program exited with status $ac_status" >&5
6025echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006026sed 's/^/| /' conftest.$ac_ext >&5
6027
John Criswell7a73b802003-06-30 21:59:07 +00006028( exit $ac_status )
6029ac_cv_header_stdc=no
6030fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006032fi
6033fi
6034fi
6035echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036echo "${ECHO_T}$ac_cv_header_stdc" >&6
6037if test $ac_cv_header_stdc = yes; then
6038
6039cat >>confdefs.h <<\_ACEOF
6040#define STDC_HEADERS 1
6041_ACEOF
6042
6043fi
6044
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006045
6046
6047
6048
6049
6050ac_header_dirent=no
6051for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6052 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6053echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6054echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6055if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
6064#include <sys/types.h>
6065#include <$ac_hdr>
6066
6067int
6068main ()
6069{
6070if ((DIR *) 0)
6071return 0;
6072 ;
6073 return 0;
6074}
6075_ACEOF
6076rm -f conftest.$ac_objext
6077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 eval "$as_ac_Header=yes"
6099else
6100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103eval "$as_ac_Header=no"
6104fi
6105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi
6107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109if test `eval echo '${'$as_ac_Header'}'` = yes; then
6110 cat >>confdefs.h <<_ACEOF
6111#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6112_ACEOF
6113
6114ac_header_dirent=$ac_hdr; break
6115fi
6116
6117done
6118# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6119if test $ac_header_dirent = dirent.h; then
6120 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6121echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6122if test "${ac_cv_search_opendir+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125 ac_func_search_save_LIBS=$LIBS
6126ac_cv_search_opendir=no
6127cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133
6134/* Override any gcc2 internal prototype to avoid an error. */
6135#ifdef __cplusplus
6136extern "C"
6137#endif
6138/* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140char opendir ();
6141int
6142main ()
6143{
6144opendir ();
6145 ;
6146 return 0;
6147}
6148_ACEOF
6149rm -f conftest.$ac_objext conftest$ac_exeext
6150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>conftest.er1
6152 ac_status=$?
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
6158 { ac_try='test -z "$ac_c_werror_flag"
6159 || test ! -s conftest.err'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; } &&
6165 { ac_try='test -s conftest$ac_exeext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_search_opendir="none required"
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176fi
6177rm -f conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179if test "$ac_cv_search_opendir" = no; then
6180 for ac_lib in dir; do
6181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6182 cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h. */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h. */
6188
6189/* Override any gcc2 internal prototype to avoid an error. */
6190#ifdef __cplusplus
6191extern "C"
6192#endif
6193/* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195char opendir ();
6196int
6197main ()
6198{
6199opendir ();
6200 ;
6201 return 0;
6202}
6203_ACEOF
6204rm -f conftest.$ac_objext conftest$ac_exeext
6205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206 (eval $ac_link) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_search_opendir="-l$ac_lib"
6227break
6228else
6229 echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232fi
6233rm -f conftest.err conftest.$ac_objext \
6234 conftest$ac_exeext conftest.$ac_ext
6235 done
6236fi
6237LIBS=$ac_func_search_save_LIBS
6238fi
6239echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241if test "$ac_cv_search_opendir" != no; then
6242 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6243
6244fi
6245
6246else
6247 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6248echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6249if test "${ac_cv_search_opendir+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252 ac_func_search_save_LIBS=$LIBS
6253ac_cv_search_opendir=no
6254cat >conftest.$ac_ext <<_ACEOF
6255/* confdefs.h. */
6256_ACEOF
6257cat confdefs.h >>conftest.$ac_ext
6258cat >>conftest.$ac_ext <<_ACEOF
6259/* end confdefs.h. */
6260
6261/* Override any gcc2 internal prototype to avoid an error. */
6262#ifdef __cplusplus
6263extern "C"
6264#endif
6265/* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6267char opendir ();
6268int
6269main ()
6270{
6271opendir ();
6272 ;
6273 return 0;
6274}
6275_ACEOF
6276rm -f conftest.$ac_objext conftest$ac_exeext
6277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_search_opendir="none required"
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303fi
6304rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306if test "$ac_cv_search_opendir" = no; then
6307 for ac_lib in x; do
6308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6309 cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h. */
6315
6316/* Override any gcc2 internal prototype to avoid an error. */
6317#ifdef __cplusplus
6318extern "C"
6319#endif
6320/* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322char opendir ();
6323int
6324main ()
6325{
6326opendir ();
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331rm -f conftest.$ac_objext conftest$ac_exeext
6332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_search_opendir="-l$ac_lib"
6354break
6355else
6356 echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359fi
6360rm -f conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 done
6363fi
6364LIBS=$ac_func_search_save_LIBS
6365fi
6366echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6367echo "${ECHO_T}$ac_cv_search_opendir" >&6
6368if test "$ac_cv_search_opendir" != no; then
6369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6370
6371fi
6372
6373fi
6374
John Criswell7a73b802003-06-30 21:59:07 +00006375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006386 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006387do
6388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389echo "$as_me:$LINENO: checking for $ac_header" >&5
6390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006400$ac_includes_default
6401
6402#include <$ac_header>
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006406 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006407 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 eval "$as_ac_Header=yes"
6427else
6428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006429sed 's/^/| /' conftest.$ac_ext >&5
6430
John Criswell7a73b802003-06-30 21:59:07 +00006431eval "$as_ac_Header=no"
6432fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006434fi
6435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440_ACEOF
6441
6442fi
6443
6444done
6445
6446
6447
6448for ac_header in dlfcn.h
6449do
6450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006451if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006456fi
6457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006459else
Brian Gaeke0a621332004-09-08 20:38:05 +00006460 # Is the header compilable?
6461echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006469$ac_includes_default
6470#include <$ac_header>
6471_ACEOF
6472rm -f conftest.$ac_objext
6473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006474 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006481 { ac_try='test -z "$ac_c_werror_flag"
6482 || test ! -s conftest.err'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006494 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006495else
6496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006497sed 's/^/| /' conftest.$ac_ext >&5
6498
Brian Gaeke0a621332004-09-08 20:38:05 +00006499ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006500fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503echo "${ECHO_T}$ac_header_compiler" >&6
6504
6505# Is the header present?
6506echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
6514#include <$ac_header>
6515_ACEOF
6516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev/null; then
6524 if test -s conftest.err; then
6525 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006527 else
6528 ac_cpp_err=
6529 fi
6530else
6531 ac_cpp_err=yes
6532fi
6533if test -z "$ac_cpp_err"; then
6534 ac_header_preproc=yes
6535else
6536 echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 ac_header_preproc=no
6540fi
6541rm -f conftest.err conftest.$ac_ext
6542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543echo "${ECHO_T}$ac_header_preproc" >&6
6544
6545# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6547 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006553 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006554 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006567 (
6568 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006569## ----------------------------------- ##
6570## Report this to llvmbugs@cs.uiuc.edu ##
6571## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006572_ASBOX
6573 ) |
6574 sed "s/^/$as_me: WARNING: /" >&2
6575 ;;
6576esac
6577echo "$as_me:$LINENO: checking for $ac_header" >&5
6578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006582 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006583fi
6584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006586
6587fi
John Criswell7a73b802003-06-30 21:59:07 +00006588if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h <<_ACEOF
6590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591_ACEOF
6592
6593fi
6594
6595done
6596
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006597# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6598if test "${enable_ltdl_install+set}" = set; then
6599 enableval="$enable_ltdl_install"
6600
6601fi;
6602
6603
6604
6605if test x"${enable_ltdl_install-no}" != xno; then
6606 INSTALL_LTDL_TRUE=
6607 INSTALL_LTDL_FALSE='#'
6608else
6609 INSTALL_LTDL_TRUE='#'
6610 INSTALL_LTDL_FALSE=
6611fi
6612
6613
6614
6615if test x"${enable_ltdl_convenience-no}" != xno; then
6616 CONVENIENCE_LTDL_TRUE=
6617 CONVENIENCE_LTDL_FALSE='#'
6618else
6619 CONVENIENCE_LTDL_TRUE='#'
6620 CONVENIENCE_LTDL_FALSE=
6621fi
6622
6623
6624echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6625echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6626library_names_spec=
6627libname_spec='lib$name'
6628soname_spec=
6629shrext_cmds=".so"
6630postinstall_cmds=
6631postuninstall_cmds=
6632finish_cmds=
6633finish_eval=
6634shlibpath_var=
6635shlibpath_overrides_runpath=unknown
6636version_type=none
6637dynamic_linker="$host_os ld.so"
6638sys_lib_dlsearch_path_spec="/lib /usr/lib"
6639if test "$GCC" = yes; then
6640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6642 # if the path contains ";" then we assume it to be the separator
6643 # otherwise default to the standard path separator (i.e. ":") - it is
6644 # assumed that no part of a normal pathname contains ";" but that should
6645 # okay in the real world where ";" in dirpaths is itself problematic.
6646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6647 else
6648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6649 fi
6650else
6651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6652fi
6653need_lib_prefix=unknown
6654hardcode_into_libs=no
6655
6656# when you set need_version to no, make sure it does not cause -set_version
6657# flags to be left without arguments
6658need_version=unknown
6659
6660case $host_os in
6661aix3*)
6662 version_type=linux
6663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6664 shlibpath_var=LIBPATH
6665
6666 # AIX 3 has no versioning support, so we append a major version to the name.
6667 soname_spec='${libname}${release}${shared_ext}$major'
6668 ;;
6669
6670aix4* | aix5*)
6671 version_type=linux
6672 need_lib_prefix=no
6673 need_version=no
6674 hardcode_into_libs=yes
6675 if test "$host_cpu" = ia64; then
6676 # AIX 5 supports IA64
6677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6678 shlibpath_var=LD_LIBRARY_PATH
6679 else
6680 # With GCC up to 2.95.x, collect2 would create an import file
6681 # for dependence libraries. The import file would start with
6682 # the line `#! .'. This would cause the generated library to
6683 # depend on `.', always an invalid library. This was fixed in
6684 # development snapshots of GCC prior to 3.0.
6685 case $host_os in
6686 aix4 | aix4.[01] | aix4.[01].*)
6687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6688 echo ' yes '
6689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6690 :
6691 else
6692 can_build_shared=no
6693 fi
6694 ;;
6695 esac
6696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6697 # soname into executable. Probably we can add versioning support to
6698 # collect2, so additional links can be useful in future.
6699 if test "$aix_use_runtimelinking" = yes; then
6700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6701 # instead of lib<name>.a to let people know that these are not
6702 # typical AIX shared libraries.
6703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6704 else
6705 # We preserve .a as extension for shared libraries through AIX4.2
6706 # and later when we are not doing run time linking.
6707 library_names_spec='${libname}${release}.a $libname.a'
6708 soname_spec='${libname}${release}${shared_ext}$major'
6709 fi
6710 shlibpath_var=LIBPATH
6711 fi
6712 ;;
6713
6714amigaos*)
6715 library_names_spec='$libname.ixlibrary $libname.a'
6716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6717 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'
6718 ;;
6719
6720beos*)
6721 library_names_spec='${libname}${shared_ext}'
6722 dynamic_linker="$host_os ld.so"
6723 shlibpath_var=LIBRARY_PATH
6724 ;;
6725
6726bsdi[45]*)
6727 version_type=linux
6728 need_version=no
6729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6730 soname_spec='${libname}${release}${shared_ext}$major'
6731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6732 shlibpath_var=LD_LIBRARY_PATH
6733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6735 # the default ld.so.conf also contains /usr/contrib/lib and
6736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6737 # libtool to hard-code these into programs
6738 ;;
6739
6740cygwin* | mingw* | pw32*)
6741 version_type=windows
6742 shrext_cmds=".dll"
6743 need_version=no
6744 need_lib_prefix=no
6745
6746 case $GCC,$host_os in
6747 yes,cygwin* | yes,mingw* | yes,pw32*)
6748 library_names_spec='$libname.dll.a'
6749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6750 postinstall_cmds='base_file=`basename \${file}`~
6751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6752 dldir=$destdir/`dirname \$dlpath`~
6753 test -d \$dldir || mkdir -p \$dldir~
6754 $install_prog $dir/$dlname \$dldir/$dlname'
6755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6756 dlpath=$dir/\$dldll~
6757 $rm \$dlpath'
6758 shlibpath_overrides_runpath=yes
6759
6760 case $host_os in
6761 cygwin*)
6762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6765 ;;
6766 mingw*)
6767 # MinGW DLLs use traditional 'lib' prefix
6768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6771 # It is most probably a Windows format PATH printed by
6772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6773 # path with ; separators, and with drive letters. We can handle the
6774 # drive letters (cygwin fileutils understands them), so leave them,
6775 # especially as we might pass files found there to a mingw objdump,
6776 # which wouldn't understand a cygwinified path. Ahh.
6777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6778 else
6779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6780 fi
6781 ;;
6782 pw32*)
6783 # pw32 DLLs use 'pw' prefix rather than 'lib'
6784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6785 ;;
6786 esac
6787 ;;
6788
6789 *)
6790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6791 ;;
6792 esac
6793 dynamic_linker='Win32 ld.exe'
6794 # FIXME: first we should search . and the directory the executable is in
6795 shlibpath_var=PATH
6796 ;;
6797
6798darwin* | rhapsody*)
6799 dynamic_linker="$host_os dyld"
6800 version_type=darwin
6801 need_lib_prefix=no
6802 need_version=no
6803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6804 soname_spec='${libname}${release}${major}$shared_ext'
6805 shlibpath_overrides_runpath=yes
6806 shlibpath_var=DYLD_LIBRARY_PATH
6807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6809 if test "$GCC" = yes; then
6810 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"`
6811 else
6812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6813 fi
6814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6815 ;;
6816
6817dgux*)
6818 version_type=linux
6819 need_lib_prefix=no
6820 need_version=no
6821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6822 soname_spec='${libname}${release}${shared_ext}$major'
6823 shlibpath_var=LD_LIBRARY_PATH
6824 ;;
6825
6826freebsd1*)
6827 dynamic_linker=no
6828 ;;
6829
6830kfreebsd*-gnu)
6831 version_type=linux
6832 need_lib_prefix=no
6833 need_version=no
6834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6835 soname_spec='${libname}${release}${shared_ext}$major'
6836 shlibpath_var=LD_LIBRARY_PATH
6837 shlibpath_overrides_runpath=no
6838 hardcode_into_libs=yes
6839 dynamic_linker='GNU ld.so'
6840 ;;
6841
6842freebsd*)
6843 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6844 version_type=freebsd-$objformat
6845 case $version_type in
6846 freebsd-elf*)
6847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6848 need_version=no
6849 need_lib_prefix=no
6850 ;;
6851 freebsd-*)
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6853 need_version=yes
6854 ;;
6855 esac
6856 shlibpath_var=LD_LIBRARY_PATH
6857 case $host_os in
6858 freebsd2*)
6859 shlibpath_overrides_runpath=yes
6860 ;;
6861 freebsd3.01* | freebsdelf3.01*)
6862 shlibpath_overrides_runpath=yes
6863 hardcode_into_libs=yes
6864 ;;
6865 *) # from 3.2 on
6866 shlibpath_overrides_runpath=no
6867 hardcode_into_libs=yes
6868 ;;
6869 esac
6870 ;;
6871
6872gnu*)
6873 version_type=linux
6874 need_lib_prefix=no
6875 need_version=no
6876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6877 soname_spec='${libname}${release}${shared_ext}$major'
6878 shlibpath_var=LD_LIBRARY_PATH
6879 hardcode_into_libs=yes
6880 ;;
6881
6882hpux9* | hpux10* | hpux11*)
6883 # Give a soname corresponding to the major version so that dld.sl refuses to
6884 # link against other versions.
6885 version_type=sunos
6886 need_lib_prefix=no
6887 need_version=no
6888 case "$host_cpu" in
6889 ia64*)
6890 shrext_cmds='.so'
6891 hardcode_into_libs=yes
6892 dynamic_linker="$host_os dld.so"
6893 shlibpath_var=LD_LIBRARY_PATH
6894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896 soname_spec='${libname}${release}${shared_ext}$major'
6897 if test "X$HPUX_IA64_MODE" = X32; then
6898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6899 else
6900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6901 fi
6902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6903 ;;
6904 hppa*64*)
6905 shrext_cmds='.sl'
6906 hardcode_into_libs=yes
6907 dynamic_linker="$host_os dld.sl"
6908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6911 soname_spec='${libname}${release}${shared_ext}$major'
6912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6914 ;;
6915 *)
6916 shrext_cmds='.sl'
6917 dynamic_linker="$host_os dld.sl"
6918 shlibpath_var=SHLIB_PATH
6919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6921 soname_spec='${libname}${release}${shared_ext}$major'
6922 ;;
6923 esac
6924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6925 postinstall_cmds='chmod 555 $lib'
6926 ;;
6927
6928irix5* | irix6* | nonstopux*)
6929 case $host_os in
6930 nonstopux*) version_type=nonstopux ;;
6931 *)
6932 if test "$lt_cv_prog_gnu_ld" = yes; then
6933 version_type=linux
6934 else
6935 version_type=irix
6936 fi ;;
6937 esac
6938 need_lib_prefix=no
6939 need_version=no
6940 soname_spec='${libname}${release}${shared_ext}$major'
6941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6942 case $host_os in
6943 irix5* | nonstopux*)
6944 libsuff= shlibsuff=
6945 ;;
6946 *)
6947 case $LD in # libtool.m4 will add one of these switches to LD
6948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6949 libsuff= shlibsuff= libmagic=32-bit;;
6950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6951 libsuff=32 shlibsuff=N32 libmagic=N32;;
6952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6954 *) libsuff= shlibsuff= libmagic=never-match;;
6955 esac
6956 ;;
6957 esac
6958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6959 shlibpath_overrides_runpath=no
6960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6962 hardcode_into_libs=yes
6963 ;;
6964
6965# No shared lib support for Linux oldld, aout, or coff.
6966linux*oldld* | linux*aout* | linux*coff*)
6967 dynamic_linker=no
6968 ;;
6969
6970# This must be Linux ELF.
6971linux*)
6972 version_type=linux
6973 need_lib_prefix=no
6974 need_version=no
6975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976 soname_spec='${libname}${release}${shared_ext}$major'
6977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6978 shlibpath_var=LD_LIBRARY_PATH
6979 shlibpath_overrides_runpath=no
6980 # This implies no fast_install, which is unacceptable.
6981 # Some rework will be needed to allow for fast_install
6982 # before this can be enabled.
6983 hardcode_into_libs=yes
6984
6985 # Append ld.so.conf contents to the search path
6986 if test -f /etc/ld.so.conf; then
6987 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6989 fi
6990
6991 # We used to test for /lib/ld.so.1 and disable shared libraries on
6992 # powerpc, because MkLinux only supported shared libraries with the
6993 # GNU dynamic linker. Since this was broken with cross compilers,
6994 # most powerpc-linux boxes support dynamic linking these days and
6995 # people can always --disable-shared, the test was removed, and we
6996 # assume the GNU/Linux dynamic linker is in use.
6997 dynamic_linker='GNU/Linux ld.so'
6998 ;;
6999
7000knetbsd*-gnu)
7001 version_type=linux
7002 need_lib_prefix=no
7003 need_version=no
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7005 soname_spec='${libname}${release}${shared_ext}$major'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 shlibpath_overrides_runpath=no
7008 hardcode_into_libs=yes
7009 dynamic_linker='GNU ld.so'
7010 ;;
7011
7012netbsd*)
7013 version_type=sunos
7014 need_lib_prefix=no
7015 need_version=no
7016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7019 dynamic_linker='NetBSD (a.out) ld.so'
7020 else
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 dynamic_linker='NetBSD ld.elf_so'
7024 fi
7025 shlibpath_var=LD_LIBRARY_PATH
7026 shlibpath_overrides_runpath=yes
7027 hardcode_into_libs=yes
7028 ;;
7029
7030newsos6)
7031 version_type=linux
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 shlibpath_var=LD_LIBRARY_PATH
7034 shlibpath_overrides_runpath=yes
7035 ;;
7036
7037nto-qnx*)
7038 version_type=linux
7039 need_lib_prefix=no
7040 need_version=no
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042 soname_spec='${libname}${release}${shared_ext}$major'
7043 shlibpath_var=LD_LIBRARY_PATH
7044 shlibpath_overrides_runpath=yes
7045 ;;
7046
7047openbsd*)
7048 version_type=sunos
7049 need_lib_prefix=no
7050 need_version=no
7051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7053 shlibpath_var=LD_LIBRARY_PATH
7054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7055 case $host_os in
7056 openbsd2.[89] | openbsd2.[89].*)
7057 shlibpath_overrides_runpath=no
7058 ;;
7059 *)
7060 shlibpath_overrides_runpath=yes
7061 ;;
7062 esac
7063 else
7064 shlibpath_overrides_runpath=yes
7065 fi
7066 ;;
7067
7068os2*)
7069 libname_spec='$name'
7070 shrext_cmds=".dll"
7071 need_lib_prefix=no
7072 library_names_spec='$libname${shared_ext} $libname.a'
7073 dynamic_linker='OS/2 ld.exe'
7074 shlibpath_var=LIBPATH
7075 ;;
7076
7077osf3* | osf4* | osf5*)
7078 version_type=osf
7079 need_lib_prefix=no
7080 need_version=no
7081 soname_spec='${libname}${release}${shared_ext}$major'
7082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7083 shlibpath_var=LD_LIBRARY_PATH
7084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7085 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7086 ;;
7087
7088sco3.2v5*)
7089 version_type=osf
7090 soname_spec='${libname}${release}${shared_ext}$major'
7091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7092 shlibpath_var=LD_LIBRARY_PATH
7093 ;;
7094
7095solaris*)
7096 version_type=linux
7097 need_lib_prefix=no
7098 need_version=no
7099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 shlibpath_var=LD_LIBRARY_PATH
7102 shlibpath_overrides_runpath=yes
7103 hardcode_into_libs=yes
7104 # ldd complains unless libraries are executable
7105 postinstall_cmds='chmod +x $lib'
7106 ;;
7107
7108sunos4*)
7109 version_type=sunos
7110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7112 shlibpath_var=LD_LIBRARY_PATH
7113 shlibpath_overrides_runpath=yes
7114 if test "$with_gnu_ld" = yes; then
7115 need_lib_prefix=no
7116 fi
7117 need_version=yes
7118 ;;
7119
7120sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7121 version_type=linux
7122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7123 soname_spec='${libname}${release}${shared_ext}$major'
7124 shlibpath_var=LD_LIBRARY_PATH
7125 case $host_vendor in
7126 sni)
7127 shlibpath_overrides_runpath=no
7128 need_lib_prefix=no
7129 export_dynamic_flag_spec='${wl}-Blargedynsym'
7130 runpath_var=LD_RUN_PATH
7131 ;;
7132 siemens)
7133 need_lib_prefix=no
7134 ;;
7135 motorola)
7136 need_lib_prefix=no
7137 need_version=no
7138 shlibpath_overrides_runpath=no
7139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7140 ;;
7141 esac
7142 ;;
7143
7144sysv4*MP*)
7145 if test -d /usr/nec ;then
7146 version_type=linux
7147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7148 soname_spec='$libname${shared_ext}.$major'
7149 shlibpath_var=LD_LIBRARY_PATH
7150 fi
7151 ;;
7152
7153uts4*)
7154 version_type=linux
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7156 soname_spec='${libname}${release}${shared_ext}$major'
7157 shlibpath_var=LD_LIBRARY_PATH
7158 ;;
7159
7160*)
7161 dynamic_linker=no
7162 ;;
7163esac
7164echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7165echo "${ECHO_T}$dynamic_linker" >&6
7166test "$dynamic_linker" = no && can_build_shared=no
7167
7168
7169echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7170echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7171if test "${libltdl_cv_shlibext+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174
7175module=yes
7176eval libltdl_cv_shlibext=$shrext_cmds
7177
7178fi
7179echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7180echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7181if test -n "$libltdl_cv_shlibext"; then
7182
7183cat >>confdefs.h <<_ACEOF
7184#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7185_ACEOF
7186
7187fi
7188
7189
7190echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7191echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7192if test "${libltdl_cv_shlibpath_var+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 libltdl_cv_shlibpath_var="$shlibpath_var"
7196fi
7197echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7198echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7199if test -n "$libltdl_cv_shlibpath_var"; then
7200
7201cat >>confdefs.h <<_ACEOF
7202#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7203_ACEOF
7204
7205fi
7206
7207
7208echo "$as_me:$LINENO: checking for the default library search path" >&5
7209echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7210if test "${libltdl_cv_sys_search_path+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7214fi
7215echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7216echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7217if test -n "$libltdl_cv_sys_search_path"; then
7218 sys_search_path=
7219 for dir in $libltdl_cv_sys_search_path; do
7220 if test -z "$sys_search_path"; then
7221 sys_search_path="$dir"
7222 else
7223 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7224 fi
7225 done
7226
7227cat >>confdefs.h <<_ACEOF
7228#define LTDL_SYSSEARCHPATH "$sys_search_path"
7229_ACEOF
7230
7231fi
7232
7233echo "$as_me:$LINENO: checking for objdir" >&5
7234echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7235if test "${libltdl_cv_objdir+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238 libltdl_cv_objdir="$objdir"
7239 if test -n "$objdir"; then
7240 :
7241 else
7242 rm -f .libs 2>/dev/null
7243 mkdir .libs 2>/dev/null
7244 if test -d .libs; then
7245 libltdl_cv_objdir=.libs
7246 else
7247 # MS-DOS does not allow filenames that begin with a dot.
7248 libltdl_cv_objdir=_libs
7249 fi
7250 rmdir .libs 2>/dev/null
7251 fi
7252
7253fi
7254echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7255echo "${ECHO_T}$libltdl_cv_objdir" >&6
7256
7257cat >>confdefs.h <<_ACEOF
7258#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7259_ACEOF
7260
7261
7262echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7263echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7264if test "${lt_cv_path_NM+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 if test -n "$NM"; then
7268 # Let the user override the test.
7269 lt_cv_path_NM="$NM"
7270else
7271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7272 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7273 IFS="$lt_save_ifs"
7274 test -z "$ac_dir" && ac_dir=.
7275 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7277 # Check to see if the nm accepts a BSD-compat flag.
7278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7279 # nm: unknown option "B" ignored
7280 # Tru64's nm complains that /dev/null is an invalid object file
7281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7282 */dev/null* | *'Invalid file or object type'*)
7283 lt_cv_path_NM="$tmp_nm -B"
7284 break
7285 ;;
7286 *)
7287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7288 */dev/null*)
7289 lt_cv_path_NM="$tmp_nm -p"
7290 break
7291 ;;
7292 *)
7293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7294 continue # so that we can try to find one that supports BSD flags
7295 ;;
7296 esac
7297 esac
7298 fi
7299 done
7300 IFS="$lt_save_ifs"
7301 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7302fi
7303fi
7304echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7305echo "${ECHO_T}$lt_cv_path_NM" >&6
7306NM="$lt_cv_path_NM"
7307
7308
7309
7310
7311
7312# Check for command to grab the raw symbol name followed by C symbol from nm.
7313echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7314echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7315if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318
7319# These are sane defaults that work on at least a few old systems.
7320# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7321
7322# Character class describing NM global symbol codes.
7323symcode='[BCDEGRST]'
7324
7325# Regexp to match symbols that can be accessed directly from C.
7326sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7327
7328# Transform the above into a raw symbol and a C symbol.
7329symxfrm='\1 \2\3 \3'
7330
7331# Transform an extracted symbol line into a proper C declaration
7332lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7333
7334# Transform an extracted symbol line into symbol name and symbol address
7335lt_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'"
7336
7337# Define system-specific variables.
7338case $host_os in
7339aix*)
7340 symcode='[BCDT]'
7341 ;;
7342cygwin* | mingw* | pw32*)
7343 symcode='[ABCDGISTW]'
7344 ;;
7345hpux*) # Its linker distinguishes data from code symbols
7346 if test "$host_cpu" = ia64; then
7347 symcode='[ABCDEGRST]'
7348 fi
7349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7350 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'"
7351 ;;
7352linux*)
7353 if test "$host_cpu" = ia64; then
7354 symcode='[ABCDGIRSTW]'
7355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356 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'"
7357 fi
7358 ;;
7359irix* | nonstopux*)
7360 symcode='[BCDEGRST]'
7361 ;;
7362osf*)
7363 symcode='[BCDEGQRST]'
7364 ;;
7365solaris* | sysv5*)
7366 symcode='[BDRT]'
7367 ;;
7368sysv4)
7369 symcode='[DFNSTU]'
7370 ;;
7371esac
7372
7373# Handle CRLF in mingw tool chain
7374opt_cr=
7375case $build_os in
7376mingw*)
7377 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7378 ;;
7379esac
7380
7381# If we're using GNU nm, then use its standard symbol codes.
7382case `$NM -V 2>&1` in
7383*GNU* | *'with BFD'*)
7384 symcode='[ABCDGIRSTW]' ;;
7385esac
7386
7387# Try without a prefix undercore, then with it.
7388for ac_symprfx in "" "_"; do
7389
7390 # Write the raw and C identifiers.
7391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7392
7393 # Check to see that the pipe works correctly.
7394 pipe_works=no
7395
7396 rm -f conftest*
7397 cat > conftest.$ac_ext <<EOF
7398#ifdef __cplusplus
7399extern "C" {
7400#endif
7401char nm_test_var;
7402void nm_test_func(){}
7403#ifdef __cplusplus
7404}
7405#endif
7406int main(){nm_test_var='a';nm_test_func();return(0);}
7407EOF
7408
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; then
7414 # Now try to grab the symbols.
7415 nlist=conftest.nm
7416 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7417 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && test -s "$nlist"; then
7421 # Try sorting and uniquifying the output.
7422 if sort "$nlist" | uniq > "$nlist"T; then
7423 mv -f "$nlist"T "$nlist"
7424 else
7425 rm -f "$nlist"T
7426 fi
7427
7428 # Make sure that we snagged all the symbols we need.
7429 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7430 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7431 cat <<EOF > conftest.$ac_ext
7432#ifdef __cplusplus
7433extern "C" {
7434#endif
7435
7436EOF
7437 # Now generate the symbol file.
7438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7439
7440 cat <<EOF >> conftest.$ac_ext
7441#if defined (__STDC__) && __STDC__
7442# define lt_ptr_t void *
7443#else
7444# define lt_ptr_t char *
7445# define const
7446#endif
7447
7448/* The mapping between symbol names and symbols. */
7449const struct {
7450 const char *name;
7451 lt_ptr_t address;
7452}
7453lt_preloaded_symbols[] =
7454{
7455EOF
7456 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7457 cat <<\EOF >> conftest.$ac_ext
7458 {0, (lt_ptr_t) 0}
7459};
7460
7461#ifdef __cplusplus
7462}
7463#endif
7464EOF
7465 # Now try linking the two files.
7466 mv conftest.$ac_objext conftstm.$ac_objext
7467 lt_save_LIBS="$LIBS"
7468 lt_save_CFLAGS="$CFLAGS"
7469 LIBS="conftstm.$ac_objext"
7470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7476 pipe_works=yes
7477 fi
7478 LIBS="$lt_save_LIBS"
7479 CFLAGS="$lt_save_CFLAGS"
7480 else
7481 echo "cannot find nm_test_func in $nlist" >&5
7482 fi
7483 else
7484 echo "cannot find nm_test_var in $nlist" >&5
7485 fi
7486 else
7487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7488 fi
7489 else
7490 echo "$progname: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 fi
7493 rm -f conftest* conftst*
7494
7495 # Do not use the global_symbol_pipe unless it works.
7496 if test "$pipe_works" = yes; then
7497 break
7498 else
7499 lt_cv_sys_global_symbol_pipe=
7500 fi
7501done
7502
7503fi
7504
7505if test -z "$lt_cv_sys_global_symbol_pipe"; then
7506 lt_cv_sys_global_symbol_to_cdecl=
7507fi
7508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7509 echo "$as_me:$LINENO: result: failed" >&5
7510echo "${ECHO_T}failed" >&6
7511else
7512 echo "$as_me:$LINENO: result: ok" >&5
7513echo "${ECHO_T}ok" >&6
7514fi
7515
7516
7517echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7518echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7519if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7523 libltdl_cv_preloaded_symbols=yes
7524 else
7525 libltdl_cv_preloaded_symbols=no
7526 fi
7527
7528fi
7529echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7530echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7531if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7532
7533cat >>confdefs.h <<\_ACEOF
7534#define HAVE_PRELOADED_SYMBOLS 1
7535_ACEOF
7536
7537fi
7538
7539LIBADD_DL=
7540
7541ac_ext=c
7542ac_cpp='$CPP $CPPFLAGS'
7543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546
7547
7548echo "$as_me:$LINENO: checking for shl_load" >&5
7549echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7550if test "${ac_cv_func_shl_load+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553 cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */
7559/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7561#define shl_load innocuous_shl_load
7562
7563/* System header to define __stub macros and hopefully few prototypes,
7564 which can conflict with char shl_load (); below.
7565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566 <limits.h> exists even on freestanding compilers. */
7567
7568#ifdef __STDC__
7569# include <limits.h>
7570#else
7571# include <assert.h>
7572#endif
7573
7574#undef shl_load
7575
7576/* Override any gcc2 internal prototype to avoid an error. */
7577#ifdef __cplusplus
7578extern "C"
7579{
7580#endif
7581/* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583char shl_load ();
7584/* The GNU C library defines this for functions which it implements
7585 to always fail with ENOSYS. Some functions are actually named
7586 something starting with __ and the normal name is an alias. */
7587#if defined (__stub_shl_load) || defined (__stub___shl_load)
7588choke me
7589#else
7590char (*f) () = shl_load;
7591#endif
7592#ifdef __cplusplus
7593}
7594#endif
7595
7596int
7597main ()
7598{
7599return f != shl_load;
7600 ;
7601 return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext conftest$ac_exeext
7605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606 (eval $ac_link) 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_cv_func_shl_load=yes
7627else
7628 echo "$as_me: failed program was:" >&5
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7631ac_cv_func_shl_load=no
7632fi
7633rm -f conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635fi
7636echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7637echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7638if test $ac_cv_func_shl_load = yes; then
7639
7640cat >>confdefs.h <<\_ACEOF
7641#define HAVE_SHL_LOAD 1
7642_ACEOF
7643
7644else
7645 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7646echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7647if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 ac_check_lib_save_LIBS=$LIBS
7651LIBS="-ldld $LIBS"
7652cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
7658
7659/* Override any gcc2 internal prototype to avoid an error. */
7660#ifdef __cplusplus
7661extern "C"
7662#endif
7663/* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7665char shl_load ();
7666int
7667main ()
7668{
7669shl_load ();
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext conftest$ac_exeext
7675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_lib_dld_shl_load=yes
7697else
7698 echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701ac_cv_lib_dld_shl_load=no
7702fi
7703rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705LIBS=$ac_check_lib_save_LIBS
7706fi
7707echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7708echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7709if test $ac_cv_lib_dld_shl_load = yes; then
7710
7711cat >>confdefs.h <<\_ACEOF
7712#define HAVE_SHL_LOAD 1
7713_ACEOF
7714
7715 LIBADD_DL="$LIBADD_DL -ldld"
7716else
7717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7718echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7719if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722 ac_check_lib_save_LIBS=$LIBS
7723LIBS="-ldl $LIBS"
7724cat >conftest.$ac_ext <<_ACEOF
7725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
7730
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734#endif
7735/* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737char dlopen ();
7738int
7739main ()
7740{
7741dlopen ();
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_lib_dl_dlopen=yes
7769else
7770 echo "$as_me: failed program was:" >&5
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
7773ac_cv_lib_dl_dlopen=no
7774fi
7775rm -f conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777LIBS=$ac_check_lib_save_LIBS
7778fi
7779echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7780echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7781if test $ac_cv_lib_dl_dlopen = yes; then
7782
7783cat >>confdefs.h <<\_ACEOF
7784#define HAVE_LIBDL 1
7785_ACEOF
7786
7787 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7788else
7789 cat >conftest.$ac_ext <<_ACEOF
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
7795#if HAVE_DLFCN_H
7796# include <dlfcn.h>
7797#endif
7798
7799int
7800main ()
7801{
7802dlopen(0, 0);
7803 ;
7804 return 0;
7805}
7806_ACEOF
7807rm -f conftest.$ac_objext conftest$ac_exeext
7808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>conftest.er1
7810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag"
7817 || test ! -s conftest.err'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 (eval $ac_try) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; } &&
7823 { ac_try='test -s conftest$ac_exeext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7829
7830cat >>confdefs.h <<\_ACEOF
7831#define HAVE_LIBDL 1
7832_ACEOF
7833 libltdl_cv_func_dlopen="yes"
7834else
7835 echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7839echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7840if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 ac_check_lib_save_LIBS=$LIBS
7844LIBS="-lsvld $LIBS"
7845cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
7851
7852/* Override any gcc2 internal prototype to avoid an error. */
7853#ifdef __cplusplus
7854extern "C"
7855#endif
7856/* We use char because int might match the return type of a gcc2
7857 builtin and then its argument prototype would still apply. */
7858char dlopen ();
7859int
7860main ()
7861{
7862dlopen ();
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext conftest$ac_exeext
7868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_lib_svld_dlopen=yes
7890else
7891 echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894ac_cv_lib_svld_dlopen=no
7895fi
7896rm -f conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898LIBS=$ac_check_lib_save_LIBS
7899fi
7900echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7901echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7902if test $ac_cv_lib_svld_dlopen = yes; then
7903
7904cat >>confdefs.h <<\_ACEOF
7905#define HAVE_LIBDL 1
7906_ACEOF
7907
7908 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7909else
7910 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7911echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7912if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914else
7915 ac_check_lib_save_LIBS=$LIBS
7916LIBS="-ldld $LIBS"
7917cat >conftest.$ac_ext <<_ACEOF
7918/* confdefs.h. */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h. */
7923
7924/* Override any gcc2 internal prototype to avoid an error. */
7925#ifdef __cplusplus
7926extern "C"
7927#endif
7928/* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930char dld_link ();
7931int
7932main ()
7933{
7934dld_link ();
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939rm -f conftest.$ac_objext conftest$ac_exeext
7940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest$ac_exeext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_lib_dld_dld_link=yes
7962else
7963 echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966ac_cv_lib_dld_dld_link=no
7967fi
7968rm -f conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970LIBS=$ac_check_lib_save_LIBS
7971fi
7972echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974if test $ac_cv_lib_dld_dld_link = yes; then
7975
7976cat >>confdefs.h <<\_ACEOF
7977#define HAVE_DLD 1
7978_ACEOF
7979
7980 LIBADD_DL="$LIBADD_DL -ldld"
7981else
7982 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7983echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7984if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987 cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
7993/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7995#define _dyld_func_lookup innocuous__dyld_func_lookup
7996
7997/* System header to define __stub macros and hopefully few prototypes,
7998 which can conflict with char _dyld_func_lookup (); below.
7999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8000 <limits.h> exists even on freestanding compilers. */
8001
8002#ifdef __STDC__
8003# include <limits.h>
8004#else
8005# include <assert.h>
8006#endif
8007
8008#undef _dyld_func_lookup
8009
8010/* Override any gcc2 internal prototype to avoid an error. */
8011#ifdef __cplusplus
8012extern "C"
8013{
8014#endif
8015/* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8017char _dyld_func_lookup ();
8018/* The GNU C library defines this for functions which it implements
8019 to always fail with ENOSYS. Some functions are actually named
8020 something starting with __ and the normal name is an alias. */
8021#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8022choke me
8023#else
8024char (*f) () = _dyld_func_lookup;
8025#endif
8026#ifdef __cplusplus
8027}
8028#endif
8029
8030int
8031main ()
8032{
8033return f != _dyld_func_lookup;
8034 ;
8035 return 0;
8036}
8037_ACEOF
8038rm -f conftest.$ac_objext conftest$ac_exeext
8039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest$ac_exeext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_cv_func__dyld_func_lookup=yes
8061else
8062 echo "$as_me: failed program was:" >&5
8063sed 's/^/| /' conftest.$ac_ext >&5
8064
8065ac_cv_func__dyld_func_lookup=no
8066fi
8067rm -f conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069fi
8070echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8071echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8072if test $ac_cv_func__dyld_func_lookup = yes; then
8073
8074cat >>confdefs.h <<\_ACEOF
8075#define HAVE_DYLD 1
8076_ACEOF
8077
8078fi
8079
8080
8081fi
8082
8083
8084fi
8085
8086
8087fi
8088rm -f conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090
8091fi
8092
8093
8094fi
8095
8096
8097fi
8098
8099
8100if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8101then
8102 lt_save_LIBS="$LIBS"
8103 LIBS="$LIBS $LIBADD_DL"
8104
8105for ac_func in dlerror
8106do
8107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8108echo "$as_me:$LINENO: checking for $ac_func" >&5
8109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8110if eval "test \"\${$as_ac_var+set}\" = set"; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121#define $ac_func innocuous_$ac_func
8122
8123/* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func (); below.
8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 <limits.h> exists even on freestanding compilers. */
8127
8128#ifdef __STDC__
8129# include <limits.h>
8130#else
8131# include <assert.h>
8132#endif
8133
8134#undef $ac_func
8135
8136/* Override any gcc2 internal prototype to avoid an error. */
8137#ifdef __cplusplus
8138extern "C"
8139{
8140#endif
8141/* We use char because int might match the return type of a gcc2
8142 builtin and then its argument prototype would still apply. */
8143char $ac_func ();
8144/* The GNU C library defines this for functions which it implements
8145 to always fail with ENOSYS. Some functions are actually named
8146 something starting with __ and the normal name is an alias. */
8147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8148choke me
8149#else
8150char (*f) () = $ac_func;
8151#endif
8152#ifdef __cplusplus
8153}
8154#endif
8155
8156int
8157main ()
8158{
8159return f != $ac_func;
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 eval "$as_ac_var=yes"
8187else
8188 echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191eval "$as_ac_var=no"
8192fi
8193rm -f conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8195fi
8196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8198if test `eval echo '${'$as_ac_var'}'` = yes; then
8199 cat >>confdefs.h <<_ACEOF
8200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8201_ACEOF
8202
8203fi
8204done
8205
8206 LIBS="$lt_save_LIBS"
8207fi
8208ac_ext=c
8209ac_cpp='$CPP $CPPFLAGS'
8210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213
8214
8215
8216echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8217echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8218if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 ac_cv_sys_symbol_underscore=no
8222 cat > conftest.$ac_ext <<EOF
8223void nm_test_func(){}
8224int main(){nm_test_func;return 0;}
8225EOF
8226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8227 (eval $ac_compile) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; then
8231 # Now try to grab the symbols.
8232 ac_nlist=conftest.nm
8233 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } && test -s "$ac_nlist"; then
8238 # See whether the symbols have a leading underscore.
8239 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8240 ac_cv_sys_symbol_underscore=yes
8241 else
8242 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8243 :
8244 else
8245 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8246 fi
8247 fi
8248 else
8249 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8250 fi
8251 else
8252 echo "configure: failed program was:" >&5
8253 cat conftest.c >&5
8254 fi
8255 rm -rf conftest*
8256
8257fi
8258echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8259echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8260
8261
8262if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8263 if test x"$libltdl_cv_func_dlopen" = xyes ||
8264 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8265 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8266echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8267if test "${libltdl_cv_need_uscore+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270 libltdl_cv_need_uscore=unknown
8271 save_LIBS="$LIBS"
8272 LIBS="$LIBS $LIBADD_DL"
8273 if test "$cross_compiling" = yes; then :
8274 libltdl_cv_need_uscore=cross
8275else
8276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8277 lt_status=$lt_dlunknown
8278 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +00008279#line 8279 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008280#include "confdefs.h"
8281
8282#if HAVE_DLFCN_H
8283#include <dlfcn.h>
8284#endif
8285
8286#include <stdio.h>
8287
8288#ifdef RTLD_GLOBAL
8289# define LT_DLGLOBAL RTLD_GLOBAL
8290#else
8291# ifdef DL_GLOBAL
8292# define LT_DLGLOBAL DL_GLOBAL
8293# else
8294# define LT_DLGLOBAL 0
8295# endif
8296#endif
8297
8298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8299 find out it does not work in some platform. */
8300#ifndef LT_DLLAZY_OR_NOW
8301# ifdef RTLD_LAZY
8302# define LT_DLLAZY_OR_NOW RTLD_LAZY
8303# else
8304# ifdef DL_LAZY
8305# define LT_DLLAZY_OR_NOW DL_LAZY
8306# else
8307# ifdef RTLD_NOW
8308# define LT_DLLAZY_OR_NOW RTLD_NOW
8309# else
8310# ifdef DL_NOW
8311# define LT_DLLAZY_OR_NOW DL_NOW
8312# else
8313# define LT_DLLAZY_OR_NOW 0
8314# endif
8315# endif
8316# endif
8317# endif
8318#endif
8319
8320#ifdef __cplusplus
8321extern "C" void exit (int);
8322#endif
8323
8324void fnord() { int i=42;}
8325int main ()
8326{
8327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8328 int status = $lt_dlunknown;
8329
8330 if (self)
8331 {
8332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8334 /* dlclose (self); */
8335 }
8336
8337 exit (status);
8338}
8339EOF
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8345 (./conftest; exit; ) 2>/dev/null
8346 lt_status=$?
8347 case x$lt_status in
8348 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8349 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8350 x$lt_unknown|x*) ;;
8351 esac
8352 else :
8353 # compilation failed
8354
8355 fi
8356fi
8357rm -fr conftest*
8358
8359 LIBS="$save_LIBS"
8360
8361fi
8362echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8363echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8364 fi
8365fi
8366
8367if test x"$libltdl_cv_need_uscore" = xyes; then
8368
8369cat >>confdefs.h <<\_ACEOF
8370#define NEED_USCORE 1
8371_ACEOF
8372
8373fi
8374
8375
8376echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8377echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8378if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381 # PORTME does your system automatically load deplibs for dlopen?
8382 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8383 # For now, we just catch OSes we know something about -- in the
8384 # future, we'll try test this programmatically.
8385 libltdl_cv_sys_dlopen_deplibs=unknown
8386 case "$host_os" in
8387 aix3*|aix4.1.*|aix4.2.*)
8388 # Unknown whether this is true for these versions of AIX, but
8389 # we want this `case' here to explicitly catch those versions.
8390 libltdl_cv_sys_dlopen_deplibs=unknown
8391 ;;
8392 aix[45]*)
8393 libltdl_cv_sys_dlopen_deplibs=yes
8394 ;;
8395 darwin*)
8396 # Assuming the user has installed a libdl from somewhere, this is true
8397 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8398 libltdl_cv_sys_dlopen_deplibs=yes
8399 ;;
8400 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8401 # GNU and its variants, using gnu ld.so (Glibc)
8402 libltdl_cv_sys_dlopen_deplibs=yes
8403 ;;
8404 hpux10*|hpux11*)
8405 libltdl_cv_sys_dlopen_deplibs=yes
8406 ;;
8407 irix[12345]*|irix6.[01]*)
8408 # Catch all versions of IRIX before 6.2, and indicate that we don't
8409 # know how it worked for any of those versions.
8410 libltdl_cv_sys_dlopen_deplibs=unknown
8411 ;;
8412 irix*)
8413 # The case above catches anything before 6.2, and it's known that
8414 # at 6.2 and later dlopen does load deplibs.
8415 libltdl_cv_sys_dlopen_deplibs=yes
8416 ;;
8417 netbsd*)
8418 libltdl_cv_sys_dlopen_deplibs=yes
8419 ;;
8420 openbsd*)
8421 libltdl_cv_sys_dlopen_deplibs=yes
8422 ;;
8423 osf[1234]*)
8424 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8425 # it did *not* use an RPATH in a shared library to find objects the
8426 # library depends on, so we explictly say `no'.
8427 libltdl_cv_sys_dlopen_deplibs=no
8428 ;;
8429 osf5.0|osf5.0a|osf5.1)
8430 # dlopen *does* load deplibs and with the right loader patch applied
8431 # it even uses RPATH in a shared library to search for shared objects
8432 # that the library depends on, but there's no easy way to know if that
8433 # patch is installed. Since this is the case, all we can really
8434 # say is unknown -- it depends on the patch being installed. If
8435 # it is, this changes to `yes'. Without it, it would be `no'.
8436 libltdl_cv_sys_dlopen_deplibs=unknown
8437 ;;
8438 osf*)
8439 # the two cases above should catch all versions of osf <= 5.1. Read
8440 # the comments above for what we know about them.
8441 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8442 # is used to find them so we can finally say `yes'.
8443 libltdl_cv_sys_dlopen_deplibs=yes
8444 ;;
8445 solaris*)
8446 libltdl_cv_sys_dlopen_deplibs=yes
8447 ;;
8448 esac
8449
8450fi
8451echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8452echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8453if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8454
8455cat >>confdefs.h <<\_ACEOF
8456#define LTDL_DLOPEN_DEPLIBS 1
8457_ACEOF
8458
8459fi
8460
8461
8462for ac_header in argz.h
8463do
8464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465if eval "test \"\${$as_ac_Header+set}\" = set"; then
8466 echo "$as_me:$LINENO: checking for $ac_header" >&5
8467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470fi
8471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8473else
8474 # Is the header compilable?
8475echo "$as_me:$LINENO: checking $ac_header usability" >&5
8476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483$ac_includes_default
8484#include <$ac_header>
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag"
8496 || test ! -s conftest.err'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_header_compiler=yes
8509else
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513ac_header_compiler=no
8514fi
8515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8517echo "${ECHO_T}$ac_header_compiler" >&6
8518
8519# Is the header present?
8520echo "$as_me:$LINENO: checking $ac_header presence" >&5
8521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8522cat >conftest.$ac_ext <<_ACEOF
8523/* confdefs.h. */
8524_ACEOF
8525cat confdefs.h >>conftest.$ac_ext
8526cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */
8528#include <$ac_header>
8529_ACEOF
8530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8541 else
8542 ac_cpp_err=
8543 fi
8544else
8545 ac_cpp_err=yes
8546fi
8547if test -z "$ac_cpp_err"; then
8548 ac_header_preproc=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_header_preproc=no
8554fi
8555rm -f conftest.err conftest.$ac_ext
8556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8557echo "${ECHO_T}$ac_header_preproc" >&6
8558
8559# So? What about this header?
8560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8561 yes:no: )
8562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8566 ac_header_preproc=yes
8567 ;;
8568 no:yes:* )
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8581 (
8582 cat <<\_ASBOX
8583## ----------------------------------- ##
8584## Report this to llvmbugs@cs.uiuc.edu ##
8585## ----------------------------------- ##
8586_ASBOX
8587 ) |
8588 sed "s/^/$as_me: WARNING: /" >&2
8589 ;;
8590esac
8591echo "$as_me:$LINENO: checking for $ac_header" >&5
8592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 eval "$as_ac_Header=\$ac_header_preproc"
8597fi
8598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8600
8601fi
8602if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605_ACEOF
8606
8607fi
8608
8609done
8610
8611
8612echo "$as_me:$LINENO: checking for error_t" >&5
8613echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8614if test "${ac_cv_type_error_t+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 cat >conftest.$ac_ext <<_ACEOF
8618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
8623#if HAVE_ARGZ_H
8624# include <argz.h>
8625#endif
8626
8627int
8628main ()
8629{
8630if ((error_t *) 0)
8631 return 0;
8632if (sizeof (error_t))
8633 return 0;
8634 ;
8635 return 0;
8636}
8637_ACEOF
8638rm -f conftest.$ac_objext
8639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_type_error_t=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
8665ac_cv_type_error_t=no
8666fi
8667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8668fi
8669echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8670echo "${ECHO_T}$ac_cv_type_error_t" >&6
8671if test $ac_cv_type_error_t = yes; then
8672
8673cat >>confdefs.h <<_ACEOF
8674#define HAVE_ERROR_T 1
8675_ACEOF
8676
8677
8678else
8679
8680cat >>confdefs.h <<\_ACEOF
8681#define error_t int
8682_ACEOF
8683
8684fi
8685
8686
8687
8688
8689
8690
8691
8692for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8693do
8694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8695echo "$as_me:$LINENO: checking for $ac_func" >&5
8696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8697if eval "test \"\${$as_ac_var+set}\" = set"; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700 cat >conftest.$ac_ext <<_ACEOF
8701/* confdefs.h. */
8702_ACEOF
8703cat confdefs.h >>conftest.$ac_ext
8704cat >>conftest.$ac_ext <<_ACEOF
8705/* end confdefs.h. */
8706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708#define $ac_func innocuous_$ac_func
8709
8710/* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char $ac_func (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8714
8715#ifdef __STDC__
8716# include <limits.h>
8717#else
8718# include <assert.h>
8719#endif
8720
8721#undef $ac_func
8722
8723/* Override any gcc2 internal prototype to avoid an error. */
8724#ifdef __cplusplus
8725extern "C"
8726{
8727#endif
8728/* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730char $ac_func ();
8731/* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735choke me
8736#else
8737char (*f) () = $ac_func;
8738#endif
8739#ifdef __cplusplus
8740}
8741#endif
8742
8743int
8744main ()
8745{
8746return f != $ac_func;
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 eval "$as_ac_var=yes"
8774else
8775 echo "$as_me: failed program was:" >&5
8776sed 's/^/| /' conftest.$ac_ext >&5
8777
8778eval "$as_ac_var=no"
8779fi
8780rm -f conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782fi
8783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8785if test `eval echo '${'$as_ac_var'}'` = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8788_ACEOF
8789
8790fi
8791done
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8821 stdio.h unistd.h
8822do
8823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8824if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825 echo "$as_me:$LINENO: checking for $ac_header" >&5
8826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829fi
8830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8832else
8833 # Is the header compilable?
8834echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836cat >conftest.$ac_ext <<_ACEOF
8837/* confdefs.h. */
8838_ACEOF
8839cat confdefs.h >>conftest.$ac_ext
8840cat >>conftest.$ac_ext <<_ACEOF
8841/* end confdefs.h. */
8842$ac_includes_default
8843#include <$ac_header>
8844_ACEOF
8845rm -f conftest.$ac_objext
8846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_header_compiler=yes
8868else
8869 echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
8872ac_header_compiler=no
8873fi
8874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876echo "${ECHO_T}$ac_header_compiler" >&6
8877
8878# Is the header present?
8879echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8881cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887#include <$ac_header>
8888_ACEOF
8889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } >/dev/null; then
8897 if test -s conftest.err; then
8898 ac_cpp_err=$ac_c_preproc_warn_flag
8899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8900 else
8901 ac_cpp_err=
8902 fi
8903else
8904 ac_cpp_err=yes
8905fi
8906if test -z "$ac_cpp_err"; then
8907 ac_header_preproc=yes
8908else
8909 echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 ac_header_preproc=no
8913fi
8914rm -f conftest.err conftest.$ac_ext
8915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8916echo "${ECHO_T}$ac_header_preproc" >&6
8917
8918# So? What about this header?
8919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8920 yes:no: )
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8925 ac_header_preproc=yes
8926 ;;
8927 no:yes:* )
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8940 (
8941 cat <<\_ASBOX
8942## ----------------------------------- ##
8943## Report this to llvmbugs@cs.uiuc.edu ##
8944## ----------------------------------- ##
8945_ASBOX
8946 ) |
8947 sed "s/^/$as_me: WARNING: /" >&2
8948 ;;
8949esac
8950echo "$as_me:$LINENO: checking for $ac_header" >&5
8951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955 eval "$as_ac_Header=\$ac_header_preproc"
8956fi
8957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8959
8960fi
8961if test `eval echo '${'$as_ac_Header'}'` = yes; then
8962 cat >>confdefs.h <<_ACEOF
8963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8964_ACEOF
8965
8966fi
8967
8968done
8969
8970
8971
8972
8973
8974for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8975do
8976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8977if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978 echo "$as_me:$LINENO: checking for $ac_header" >&5
8979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982fi
8983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8985else
8986 # Is the header compilable?
8987echo "$as_me:$LINENO: checking $ac_header usability" >&5
8988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8989cat >conftest.$ac_ext <<_ACEOF
8990/* confdefs.h. */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
8994/* end confdefs.h. */
8995$ac_includes_default
8996#include <$ac_header>
8997_ACEOF
8998rm -f conftest.$ac_objext
8999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest.$ac_objext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 (eval $ac_try) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_header_compiler=yes
9021else
9022 echo "$as_me: failed program was:" >&5
9023sed 's/^/| /' conftest.$ac_ext >&5
9024
9025ac_header_compiler=no
9026fi
9027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9029echo "${ECHO_T}$ac_header_compiler" >&6
9030
9031# Is the header present?
9032echo "$as_me:$LINENO: checking $ac_header presence" >&5
9033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9034cat >conftest.$ac_ext <<_ACEOF
9035/* confdefs.h. */
9036_ACEOF
9037cat confdefs.h >>conftest.$ac_ext
9038cat >>conftest.$ac_ext <<_ACEOF
9039/* end confdefs.h. */
9040#include <$ac_header>
9041_ACEOF
9042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } >/dev/null; then
9050 if test -s conftest.err; then
9051 ac_cpp_err=$ac_c_preproc_warn_flag
9052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9053 else
9054 ac_cpp_err=
9055 fi
9056else
9057 ac_cpp_err=yes
9058fi
9059if test -z "$ac_cpp_err"; then
9060 ac_header_preproc=yes
9061else
9062 echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 ac_header_preproc=no
9066fi
9067rm -f conftest.err conftest.$ac_ext
9068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9069echo "${ECHO_T}$ac_header_preproc" >&6
9070
9071# So? What about this header?
9072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9073 yes:no: )
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9078 ac_header_preproc=yes
9079 ;;
9080 no:yes:* )
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9093 (
9094 cat <<\_ASBOX
9095## ----------------------------------- ##
9096## Report this to llvmbugs@cs.uiuc.edu ##
9097## ----------------------------------- ##
9098_ASBOX
9099 ) |
9100 sed "s/^/$as_me: WARNING: /" >&2
9101 ;;
9102esac
9103echo "$as_me:$LINENO: checking for $ac_header" >&5
9104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107else
9108 eval "$as_ac_Header=\$ac_header_preproc"
9109fi
9110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9112
9113fi
9114if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115 cat >>confdefs.h <<_ACEOF
9116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117_ACEOF
9118
9119fi
9120
9121done
9122
9123
9124
9125for ac_header in string.h strings.h
9126do
9127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9128if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo "$as_me:$LINENO: checking for $ac_header" >&5
9130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9131if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9133fi
9134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9136else
9137 # Is the header compilable?
9138echo "$as_me:$LINENO: checking $ac_header usability" >&5
9139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9140cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h. */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h. */
9146$ac_includes_default
9147#include <$ac_header>
9148_ACEOF
9149rm -f conftest.$ac_objext
9150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest.$ac_objext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_header_compiler=yes
9172else
9173 echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
9176ac_header_compiler=no
9177fi
9178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9180echo "${ECHO_T}$ac_header_compiler" >&6
9181
9182# Is the header present?
9183echo "$as_me:$LINENO: checking $ac_header presence" >&5
9184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9185cat >conftest.$ac_ext <<_ACEOF
9186/* confdefs.h. */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h. */
9191#include <$ac_header>
9192_ACEOF
9193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } >/dev/null; then
9201 if test -s conftest.err; then
9202 ac_cpp_err=$ac_c_preproc_warn_flag
9203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9204 else
9205 ac_cpp_err=
9206 fi
9207else
9208 ac_cpp_err=yes
9209fi
9210if test -z "$ac_cpp_err"; then
9211 ac_header_preproc=yes
9212else
9213 echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 ac_header_preproc=no
9217fi
9218rm -f conftest.err conftest.$ac_ext
9219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9220echo "${ECHO_T}$ac_header_preproc" >&6
9221
9222# So? What about this header?
9223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9224 yes:no: )
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9229 ac_header_preproc=yes
9230 ;;
9231 no:yes:* )
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9244 (
9245 cat <<\_ASBOX
9246## ----------------------------------- ##
9247## Report this to llvmbugs@cs.uiuc.edu ##
9248## ----------------------------------- ##
9249_ASBOX
9250 ) |
9251 sed "s/^/$as_me: WARNING: /" >&2
9252 ;;
9253esac
9254echo "$as_me:$LINENO: checking for $ac_header" >&5
9255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9256if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259 eval "$as_ac_Header=\$ac_header_preproc"
9260fi
9261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9263
9264fi
9265if test `eval echo '${'$as_ac_Header'}'` = yes; then
9266 cat >>confdefs.h <<_ACEOF
9267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9268_ACEOF
9269 break
9270fi
9271
9272done
9273
9274
9275
9276
9277for ac_func in strchr index
9278do
9279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9280echo "$as_me:$LINENO: checking for $ac_func" >&5
9281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9282if eval "test \"\${$as_ac_var+set}\" = set"; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285 cat >conftest.$ac_ext <<_ACEOF
9286/* confdefs.h. */
9287_ACEOF
9288cat confdefs.h >>conftest.$ac_ext
9289cat >>conftest.$ac_ext <<_ACEOF
9290/* end confdefs.h. */
9291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9293#define $ac_func innocuous_$ac_func
9294
9295/* System header to define __stub macros and hopefully few prototypes,
9296 which can conflict with char $ac_func (); below.
9297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 <limits.h> exists even on freestanding compilers. */
9299
9300#ifdef __STDC__
9301# include <limits.h>
9302#else
9303# include <assert.h>
9304#endif
9305
9306#undef $ac_func
9307
9308/* Override any gcc2 internal prototype to avoid an error. */
9309#ifdef __cplusplus
9310extern "C"
9311{
9312#endif
9313/* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9315char $ac_func ();
9316/* The GNU C library defines this for functions which it implements
9317 to always fail with ENOSYS. Some functions are actually named
9318 something starting with __ and the normal name is an alias. */
9319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9320choke me
9321#else
9322char (*f) () = $ac_func;
9323#endif
9324#ifdef __cplusplus
9325}
9326#endif
9327
9328int
9329main ()
9330{
9331return f != $ac_func;
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336rm -f conftest.$ac_objext conftest$ac_exeext
9337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 eval "$as_ac_var=yes"
9359else
9360 echo "$as_me: failed program was:" >&5
9361sed 's/^/| /' conftest.$ac_ext >&5
9362
9363eval "$as_ac_var=no"
9364fi
9365rm -f conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367fi
9368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9370if test `eval echo '${'$as_ac_var'}'` = yes; then
9371 cat >>confdefs.h <<_ACEOF
9372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9373_ACEOF
9374 break
9375fi
9376done
9377
9378
9379
9380for ac_func in strrchr rindex
9381do
9382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9383echo "$as_me:$LINENO: checking for $ac_func" >&5
9384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9385if eval "test \"\${$as_ac_var+set}\" = set"; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387else
9388 cat >conftest.$ac_ext <<_ACEOF
9389/* confdefs.h. */
9390_ACEOF
9391cat confdefs.h >>conftest.$ac_ext
9392cat >>conftest.$ac_ext <<_ACEOF
9393/* end confdefs.h. */
9394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9396#define $ac_func innocuous_$ac_func
9397
9398/* System header to define __stub macros and hopefully few prototypes,
9399 which can conflict with char $ac_func (); below.
9400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9401 <limits.h> exists even on freestanding compilers. */
9402
9403#ifdef __STDC__
9404# include <limits.h>
9405#else
9406# include <assert.h>
9407#endif
9408
9409#undef $ac_func
9410
9411/* Override any gcc2 internal prototype to avoid an error. */
9412#ifdef __cplusplus
9413extern "C"
9414{
9415#endif
9416/* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9418char $ac_func ();
9419/* The GNU C library defines this for functions which it implements
9420 to always fail with ENOSYS. Some functions are actually named
9421 something starting with __ and the normal name is an alias. */
9422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9423choke me
9424#else
9425char (*f) () = $ac_func;
9426#endif
9427#ifdef __cplusplus
9428}
9429#endif
9430
9431int
9432main ()
9433{
9434return f != $ac_func;
9435 ;
9436 return 0;
9437}
9438_ACEOF
9439rm -f conftest.$ac_objext conftest$ac_exeext
9440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag"
9449 || test ! -s conftest.err'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 (eval $ac_try) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 eval "$as_ac_var=yes"
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466eval "$as_ac_var=no"
9467fi
9468rm -f conftest.err conftest.$ac_objext \
9469 conftest$ac_exeext conftest.$ac_ext
9470fi
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9473if test `eval echo '${'$as_ac_var'}'` = yes; then
9474 cat >>confdefs.h <<_ACEOF
9475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9476_ACEOF
9477 break
9478fi
9479done
9480
9481
9482
9483for ac_func in memcpy bcopy
9484do
9485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486echo "$as_me:$LINENO: checking for $ac_func" >&5
9487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490else
9491 cat >conftest.$ac_ext <<_ACEOF
9492/* confdefs.h. */
9493_ACEOF
9494cat confdefs.h >>conftest.$ac_ext
9495cat >>conftest.$ac_ext <<_ACEOF
9496/* end confdefs.h. */
9497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499#define $ac_func innocuous_$ac_func
9500
9501/* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char $ac_func (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9505
9506#ifdef __STDC__
9507# include <limits.h>
9508#else
9509# include <assert.h>
9510#endif
9511
9512#undef $ac_func
9513
9514/* Override any gcc2 internal prototype to avoid an error. */
9515#ifdef __cplusplus
9516extern "C"
9517{
9518#endif
9519/* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521char $ac_func ();
9522/* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526choke me
9527#else
9528char (*f) () = $ac_func;
9529#endif
9530#ifdef __cplusplus
9531}
9532#endif
9533
9534int
9535main ()
9536{
9537return f != $ac_func;
9538 ;
9539 return 0;
9540}
9541_ACEOF
9542rm -f conftest.$ac_objext conftest$ac_exeext
9543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 eval "$as_ac_var=yes"
9565else
9566 echo "$as_me: failed program was:" >&5
9567sed 's/^/| /' conftest.$ac_ext >&5
9568
9569eval "$as_ac_var=no"
9570fi
9571rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573fi
9574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576if test `eval echo '${'$as_ac_var'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9579_ACEOF
9580 break
9581fi
9582done
9583
9584
9585
9586for ac_func in memmove strcmp
9587do
9588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589echo "$as_me:$LINENO: checking for $ac_func" >&5
9590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9591if eval "test \"\${$as_ac_var+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593else
9594 cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602#define $ac_func innocuous_$ac_func
9603
9604/* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char $ac_func (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9608
9609#ifdef __STDC__
9610# include <limits.h>
9611#else
9612# include <assert.h>
9613#endif
9614
9615#undef $ac_func
9616
9617/* Override any gcc2 internal prototype to avoid an error. */
9618#ifdef __cplusplus
9619extern "C"
9620{
9621#endif
9622/* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9624char $ac_func ();
9625/* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9629choke me
9630#else
9631char (*f) () = $ac_func;
9632#endif
9633#ifdef __cplusplus
9634}
9635#endif
9636
9637int
9638main ()
9639{
9640return f != $ac_func;
9641 ;
9642 return 0;
9643}
9644_ACEOF
9645rm -f conftest.$ac_objext conftest$ac_exeext
9646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 eval "$as_ac_var=yes"
9668else
9669 echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
9672eval "$as_ac_var=no"
9673fi
9674rm -f conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676fi
9677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9679if test `eval echo '${'$as_ac_var'}'` = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9682_ACEOF
9683
9684fi
9685done
9686
9687
9688
9689
9690for ac_func in closedir opendir readdir
9691do
9692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9693echo "$as_me:$LINENO: checking for $ac_func" >&5
9694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9695if eval "test \"\${$as_ac_var+set}\" = set"; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698 cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
9704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9706#define $ac_func innocuous_$ac_func
9707
9708/* System header to define __stub macros and hopefully few prototypes,
9709 which can conflict with char $ac_func (); below.
9710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9711 <limits.h> exists even on freestanding compilers. */
9712
9713#ifdef __STDC__
9714# include <limits.h>
9715#else
9716# include <assert.h>
9717#endif
9718
9719#undef $ac_func
9720
9721/* Override any gcc2 internal prototype to avoid an error. */
9722#ifdef __cplusplus
9723extern "C"
9724{
9725#endif
9726/* We use char because int might match the return type of a gcc2
9727 builtin and then its argument prototype would still apply. */
9728char $ac_func ();
9729/* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9733choke me
9734#else
9735char (*f) () = $ac_func;
9736#endif
9737#ifdef __cplusplus
9738}
9739#endif
9740
9741int
9742main ()
9743{
9744return f != $ac_func;
9745 ;
9746 return 0;
9747}
9748_ACEOF
9749rm -f conftest.$ac_objext conftest$ac_exeext
9750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>conftest.er1
9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -z "$ac_c_werror_flag"
9759 || test ! -s conftest.err'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 eval "$as_ac_var=yes"
9772else
9773 echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776eval "$as_ac_var=no"
9777fi
9778rm -f conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9780fi
9781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9783if test `eval echo '${'$as_ac_var'}'` = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9786_ACEOF
9787
9788fi
9789done
9790
9791
9792# Check whether --enable-shared or --disable-shared was given.
9793if test "${enable_shared+set}" = set; then
9794 enableval="$enable_shared"
9795 p=${PACKAGE-default}
9796 case $enableval in
9797 yes) enable_shared=yes ;;
9798 no) enable_shared=no ;;
9799 *)
9800 enable_shared=no
9801 # Look at the argument we got. We use all the common list separators.
9802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9803 for pkg in $enableval; do
9804 IFS="$lt_save_ifs"
9805 if test "X$pkg" = "X$p"; then
9806 enable_shared=yes
9807 fi
9808 done
9809 IFS="$lt_save_ifs"
9810 ;;
9811 esac
9812else
9813 enable_shared=yes
9814fi;
9815
9816# Check whether --enable-static or --disable-static was given.
9817if test "${enable_static+set}" = set; then
9818 enableval="$enable_static"
9819 p=${PACKAGE-default}
9820 case $enableval in
9821 yes) enable_static=yes ;;
9822 no) enable_static=no ;;
9823 *)
9824 enable_static=no
9825 # Look at the argument we got. We use all the common list separators.
9826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9827 for pkg in $enableval; do
9828 IFS="$lt_save_ifs"
9829 if test "X$pkg" = "X$p"; then
9830 enable_static=yes
9831 fi
9832 done
9833 IFS="$lt_save_ifs"
9834 ;;
9835 esac
9836else
9837 enable_static=yes
9838fi;
9839
9840# Check whether --enable-fast-install or --disable-fast-install was given.
9841if test "${enable_fast_install+set}" = set; then
9842 enableval="$enable_fast_install"
9843 p=${PACKAGE-default}
9844 case $enableval in
9845 yes) enable_fast_install=yes ;;
9846 no) enable_fast_install=no ;;
9847 *)
9848 enable_fast_install=no
9849 # Look at the argument we got. We use all the common list separators.
9850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9851 for pkg in $enableval; do
9852 IFS="$lt_save_ifs"
9853 if test "X$pkg" = "X$p"; then
9854 enable_fast_install=yes
9855 fi
9856 done
9857 IFS="$lt_save_ifs"
9858 ;;
9859 esac
9860else
9861 enable_fast_install=yes
9862fi;
9863
9864echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9865echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9866if test "${lt_cv_path_SED+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 # Loop through the user's path and test for sed and gsed.
9870# Then use that list of sed's as ones to test for truncation.
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for lt_ac_prog in sed gsed; do
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9879 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9880 fi
9881 done
9882 done
9883done
9884lt_ac_max=0
9885lt_ac_count=0
9886# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9887# along with /bin/sed that truncates output.
9888for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9889 test ! -f $lt_ac_sed && break
9890 cat /dev/null > conftest.in
9891 lt_ac_count=0
9892 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9893 # Check for GNU sed and select it if it is found.
9894 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9895 lt_cv_path_SED=$lt_ac_sed
9896 break
9897 fi
9898 while true; do
9899 cat conftest.in conftest.in >conftest.tmp
9900 mv conftest.tmp conftest.in
9901 cp conftest.in conftest.nl
9902 echo >>conftest.nl
9903 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9904 cmp -s conftest.out conftest.nl || break
9905 # 10000 chars as input seems more than enough
9906 test $lt_ac_count -gt 10 && break
9907 lt_ac_count=`expr $lt_ac_count + 1`
9908 if test $lt_ac_count -gt $lt_ac_max; then
9909 lt_ac_max=$lt_ac_count
9910 lt_cv_path_SED=$lt_ac_sed
9911 fi
9912 done
9913done
9914
9915fi
9916
9917SED=$lt_cv_path_SED
9918echo "$as_me:$LINENO: result: $SED" >&5
9919echo "${ECHO_T}$SED" >&6
9920
9921
9922# Check whether --with-gnu-ld or --without-gnu-ld was given.
9923if test "${with_gnu_ld+set}" = set; then
9924 withval="$with_gnu_ld"
9925 test "$withval" = no || with_gnu_ld=yes
9926else
9927 with_gnu_ld=no
9928fi;
9929ac_prog=ld
9930if test "$GCC" = yes; then
9931 # Check if gcc -print-prog-name=ld gives a path.
9932 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9933echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9934 case $host in
9935 *-*-mingw*)
9936 # gcc leaves a trailing carriage return which upsets mingw
9937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9938 *)
9939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9940 esac
9941 case $ac_prog in
9942 # Accept absolute paths.
9943 [\\/]* | ?:[\\/]*)
9944 re_direlt='/[^/][^/]*/\.\./'
9945 # Canonicalize the pathname of ld
9946 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9947 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9948 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9949 done
9950 test -z "$LD" && LD="$ac_prog"
9951 ;;
9952 "")
9953 # If it fails, then pretend we aren't using GCC.
9954 ac_prog=ld
9955 ;;
9956 *)
9957 # If it is relative, then search for the first ld in PATH.
9958 with_gnu_ld=unknown
9959 ;;
9960 esac
9961elif test "$with_gnu_ld" = yes; then
9962 echo "$as_me:$LINENO: checking for GNU ld" >&5
9963echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9964else
9965 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9966echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9967fi
9968if test "${lt_cv_path_LD+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 if test -z "$LD"; then
9972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9973 for ac_dir in $PATH; do
9974 IFS="$lt_save_ifs"
9975 test -z "$ac_dir" && ac_dir=.
9976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9977 lt_cv_path_LD="$ac_dir/$ac_prog"
9978 # Check to see if the program is GNU ld. I'd rather use --version,
9979 # but apparently some GNU ld's only accept -v.
9980 # Break only if it was the GNU/non-GNU ld that we prefer.
9981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9982 *GNU* | *'with BFD'*)
9983 test "$with_gnu_ld" != no && break
9984 ;;
9985 *)
9986 test "$with_gnu_ld" != yes && break
9987 ;;
9988 esac
9989 fi
9990 done
9991 IFS="$lt_save_ifs"
9992else
9993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9994fi
9995fi
9996
9997LD="$lt_cv_path_LD"
9998if test -n "$LD"; then
9999 echo "$as_me:$LINENO: result: $LD" >&5
10000echo "${ECHO_T}$LD" >&6
10001else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004fi
10005test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10006echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10007 { (exit 1); exit 1; }; }
10008echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10009echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10010if test "${lt_cv_prog_gnu_ld+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012else
10013 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10014case `$LD -v 2>&1 </dev/null` in
10015*GNU* | *'with BFD'*)
10016 lt_cv_prog_gnu_ld=yes
10017 ;;
10018*)
10019 lt_cv_prog_gnu_ld=no
10020 ;;
10021esac
10022fi
10023echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10024echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10025with_gnu_ld=$lt_cv_prog_gnu_ld
10026
10027
10028echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10029echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10030if test "${lt_cv_ld_reload_flag+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032else
10033 lt_cv_ld_reload_flag='-r'
10034fi
10035echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10036echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10037reload_flag=$lt_cv_ld_reload_flag
10038case $reload_flag in
10039"" | " "*) ;;
10040*) reload_flag=" $reload_flag" ;;
10041esac
10042reload_cmds='$LD$reload_flag -o $output$reload_objs'
10043case $host_os in
10044 darwin*)
10045 if test "$GCC" = yes; then
10046 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10047 else
10048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10049 fi
10050 ;;
10051esac
10052
10053echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10054echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10055if test "${lt_cv_deplibs_check_method+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 lt_cv_file_magic_cmd='$MAGIC_CMD'
10059lt_cv_file_magic_test_file=
10060lt_cv_deplibs_check_method='unknown'
10061# Need to set the preceding variable on all platforms that support
10062# interlibrary dependencies.
10063# 'none' -- dependencies not supported.
10064# `unknown' -- same as none, but documents that we really don't know.
10065# 'pass_all' -- all dependencies passed with no checks.
10066# 'test_compile' -- check by making test program.
10067# 'file_magic [[regex]]' -- check by looking for files in library path
10068# which responds to the $file_magic_cmd with a given extended regex.
10069# If you have `file' or equivalent on your system and you're not sure
10070# whether `pass_all' will *always* work, you probably want this one.
10071
10072case $host_os in
10073aix4* | aix5*)
10074 lt_cv_deplibs_check_method=pass_all
10075 ;;
10076
10077beos*)
10078 lt_cv_deplibs_check_method=pass_all
10079 ;;
10080
10081bsdi[45]*)
10082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10083 lt_cv_file_magic_cmd='/usr/bin/file -L'
10084 lt_cv_file_magic_test_file=/shlib/libc.so
10085 ;;
10086
10087cygwin*)
10088 # func_win32_libid is a shell function defined in ltmain.sh
10089 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10090 lt_cv_file_magic_cmd='func_win32_libid'
10091 ;;
10092
10093mingw* | pw32*)
10094 # Base MSYS/MinGW do not provide the 'file' command needed by
10095 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10096 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10097 lt_cv_file_magic_cmd='$OBJDUMP -f'
10098 ;;
10099
10100darwin* | rhapsody*)
10101 lt_cv_deplibs_check_method=pass_all
10102 ;;
10103
10104freebsd* | kfreebsd*-gnu)
10105 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10106 case $host_cpu in
10107 i*86 )
10108 # Not sure whether the presence of OpenBSD here was a mistake.
10109 # Let's accept both of them until this is cleared up.
10110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10111 lt_cv_file_magic_cmd=/usr/bin/file
10112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10113 ;;
10114 esac
10115 else
10116 lt_cv_deplibs_check_method=pass_all
10117 fi
10118 ;;
10119
10120gnu*)
10121 lt_cv_deplibs_check_method=pass_all
10122 ;;
10123
10124hpux10.20* | hpux11*)
10125 lt_cv_file_magic_cmd=/usr/bin/file
10126 case "$host_cpu" in
10127 ia64*)
10128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10129 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10130 ;;
10131 hppa*64*)
10132 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]'
10133 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10134 ;;
10135 *)
10136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10137 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10138 ;;
10139 esac
10140 ;;
10141
10142irix5* | irix6* | nonstopux*)
10143 case $LD in
10144 *-32|*"-32 ") libmagic=32-bit;;
10145 *-n32|*"-n32 ") libmagic=N32;;
10146 *-64|*"-64 ") libmagic=64-bit;;
10147 *) libmagic=never-match;;
10148 esac
10149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152# This must be Linux ELF.
10153linux*)
10154 lt_cv_deplibs_check_method=pass_all
10155 ;;
10156
10157netbsd*)
10158 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10160 else
10161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10162 fi
10163 ;;
10164
10165newos6*)
10166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10167 lt_cv_file_magic_cmd=/usr/bin/file
10168 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10169 ;;
10170
10171nto-qnx*)
10172 lt_cv_deplibs_check_method=unknown
10173 ;;
10174
10175openbsd*)
10176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10178 else
10179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10180 fi
10181 ;;
10182
10183osf3* | osf4* | osf5*)
10184 lt_cv_deplibs_check_method=pass_all
10185 ;;
10186
10187sco3.2v5*)
10188 lt_cv_deplibs_check_method=pass_all
10189 ;;
10190
10191solaris*)
10192 lt_cv_deplibs_check_method=pass_all
10193 ;;
10194
10195sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196 case $host_vendor in
10197 motorola)
10198 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]'
10199 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10200 ;;
10201 ncr)
10202 lt_cv_deplibs_check_method=pass_all
10203 ;;
10204 sequent)
10205 lt_cv_file_magic_cmd='/bin/file'
10206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10207 ;;
10208 sni)
10209 lt_cv_file_magic_cmd='/bin/file'
10210 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10211 lt_cv_file_magic_test_file=/lib/libc.so
10212 ;;
10213 siemens)
10214 lt_cv_deplibs_check_method=pass_all
10215 ;;
10216 esac
10217 ;;
10218
10219sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10220 lt_cv_deplibs_check_method=pass_all
10221 ;;
10222esac
10223
10224fi
10225echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10226echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10227file_magic_cmd=$lt_cv_file_magic_cmd
10228deplibs_check_method=$lt_cv_deplibs_check_method
10229test -z "$deplibs_check_method" && deplibs_check_method=unknown
10230
10231
10232
10233# If no C compiler was specified, use CC.
10234LTCC=${LTCC-"$CC"}
10235
10236# Allow CC to be a program name with arguments.
10237compiler=$CC
10238
10239# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10240if test "${enable_libtool_lock+set}" = set; then
10241 enableval="$enable_libtool_lock"
10242
10243fi;
10244test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10245
10246# Some flags need to be propagated to the compiler or linker for good
10247# libtool support.
10248case $host in
10249ia64-*-hpux*)
10250 # Find out which ABI we are using.
10251 echo 'int i;' > conftest.$ac_ext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; then
10257 case `/usr/bin/file conftest.$ac_objext` in
10258 *ELF-32*)
10259 HPUX_IA64_MODE="32"
10260 ;;
10261 *ELF-64*)
10262 HPUX_IA64_MODE="64"
10263 ;;
10264 esac
10265 fi
10266 rm -rf conftest*
10267 ;;
10268*-*-irix6*)
10269 # Find out which ABI we are using.
Reid Spencer8a2246f2005-07-13 03:20:14 +000010270 echo '#line 10270 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; then
10276 if test "$lt_cv_prog_gnu_ld" = yes; then
10277 case `/usr/bin/file conftest.$ac_objext` in
10278 *32-bit*)
10279 LD="${LD-ld} -melf32bsmip"
10280 ;;
10281 *N32*)
10282 LD="${LD-ld} -melf32bmipn32"
10283 ;;
10284 *64-bit*)
10285 LD="${LD-ld} -melf64bmip"
10286 ;;
10287 esac
10288 else
10289 case `/usr/bin/file conftest.$ac_objext` in
10290 *32-bit*)
10291 LD="${LD-ld} -32"
10292 ;;
10293 *N32*)
10294 LD="${LD-ld} -n32"
10295 ;;
10296 *64-bit*)
10297 LD="${LD-ld} -64"
10298 ;;
10299 esac
10300 fi
10301 fi
10302 rm -rf conftest*
10303 ;;
10304
10305x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10306 # Find out which ABI we are using.
10307 echo 'int i;' > conftest.$ac_ext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; then
10313 case "`/usr/bin/file conftest.o`" in
10314 *32-bit*)
10315 case $host in
10316 x86_64-*linux*)
10317 LD="${LD-ld} -m elf_i386"
10318 ;;
10319 ppc64-*linux*|powerpc64-*linux*)
10320 LD="${LD-ld} -m elf32ppclinux"
10321 ;;
10322 s390x-*linux*)
10323 LD="${LD-ld} -m elf_s390"
10324 ;;
10325 sparc64-*linux*)
10326 LD="${LD-ld} -m elf32_sparc"
10327 ;;
10328 esac
10329 ;;
10330 *64-bit*)
10331 case $host in
10332 x86_64-*linux*)
10333 LD="${LD-ld} -m elf_x86_64"
10334 ;;
10335 ppc*-*linux*|powerpc*-*linux*)
10336 LD="${LD-ld} -m elf64ppc"
10337 ;;
10338 s390*-*linux*)
10339 LD="${LD-ld} -m elf64_s390"
10340 ;;
10341 sparc*-*linux*)
10342 LD="${LD-ld} -m elf64_sparc"
10343 ;;
10344 esac
10345 ;;
10346 esac
10347 fi
10348 rm -rf conftest*
10349 ;;
10350
10351*-*-sco3.2v5*)
10352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10353 SAVE_CFLAGS="$CFLAGS"
10354 CFLAGS="$CFLAGS -belf"
10355 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10356echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10357if test "${lt_cv_cc_needs_belf+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 ac_ext=c
10361ac_cpp='$CPP $CPPFLAGS'
10362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365
10366 cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h. */
10372
10373_ACEOF
10374rm -f conftest.$ac_objext conftest$ac_exeext
10375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 lt_cv_cc_needs_belf=yes
10397else
10398 echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401lt_cv_cc_needs_belf=no
10402fi
10403rm -f conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405 ac_ext=c
10406ac_cpp='$CPP $CPPFLAGS'
10407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409ac_compiler_gnu=$ac_cv_c_compiler_gnu
10410
10411fi
10412echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10413echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10414 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10415 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10416 CFLAGS="$SAVE_CFLAGS"
10417 fi
10418 ;;
10419
10420esac
10421
10422need_locks="$enable_libtool_lock"
10423
10424
Reid Spencer2706f8c2004-09-19 23:53:36 +000010425
10426
10427if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10429 (test "X$CXX" != "Xg++"))) ; then
10430 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010431ac_cpp='$CXXCPP $CPPFLAGS'
10432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10435echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10436echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10437if test -z "$CXXCPP"; then
10438 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
John Criswell47fdd832003-07-14 16:52:07 +000010441 # Double quotes because CXXCPP needs to be expanded
10442 for CXXCPP in "$CXX -E" "/lib/cpp"
10443 do
10444 ac_preproc_ok=false
10445for ac_cxx_preproc_warn_flag in '' yes
10446do
10447 # Use a header file that comes with gcc, so configuring glibc
10448 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10450 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010451 # On the NeXT, cc -E runs the code through the compiler's parser,
10452 # not just through cpp. "Syntax error" is here to catch this case.
10453 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
10459#ifdef __STDC__
10460# include <limits.h>
10461#else
10462# include <assert.h>
10463#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010464 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010465_ACEOF
10466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10468 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010469 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } >/dev/null; then
10474 if test -s conftest.err; then
10475 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010477 else
John Criswell47fdd832003-07-14 16:52:07 +000010478 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010479 fi
John Criswell47fdd832003-07-14 16:52:07 +000010480else
10481 ac_cpp_err=yes
10482fi
10483if test -z "$ac_cpp_err"; then
10484 :
10485else
10486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010487sed 's/^/| /' conftest.$ac_ext >&5
10488
John Criswell47fdd832003-07-14 16:52:07 +000010489 # Broken: fails on valid input.
10490continue
10491fi
10492rm -f conftest.err conftest.$ac_ext
10493
10494 # OK, works on sane cases. Now check whether non-existent headers
10495 # can be detected and how.
10496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010497/* confdefs.h. */
10498_ACEOF
10499cat confdefs.h >>conftest.$ac_ext
10500cat >>conftest.$ac_ext <<_ACEOF
10501/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010502#include <ac_nonexistent.h>
10503_ACEOF
10504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10506 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010507 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } >/dev/null; then
10512 if test -s conftest.err; then
10513 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010514 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010515 else
10516 ac_cpp_err=
10517 fi
10518else
10519 ac_cpp_err=yes
10520fi
10521if test -z "$ac_cpp_err"; then
10522 # Broken: success on invalid input.
10523continue
10524else
10525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010526sed 's/^/| /' conftest.$ac_ext >&5
10527
John Criswell47fdd832003-07-14 16:52:07 +000010528 # Passes both tests.
10529ac_preproc_ok=:
10530break
10531fi
10532rm -f conftest.err conftest.$ac_ext
10533
10534done
10535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10536rm -f conftest.err conftest.$ac_ext
10537if $ac_preproc_ok; then
10538 break
John Criswell7a73b802003-06-30 21:59:07 +000010539fi
10540
John Criswell47fdd832003-07-14 16:52:07 +000010541 done
10542 ac_cv_prog_CXXCPP=$CXXCPP
10543
10544fi
10545 CXXCPP=$ac_cv_prog_CXXCPP
10546else
10547 ac_cv_prog_CXXCPP=$CXXCPP
10548fi
10549echo "$as_me:$LINENO: result: $CXXCPP" >&5
10550echo "${ECHO_T}$CXXCPP" >&6
10551ac_preproc_ok=false
10552for ac_cxx_preproc_warn_flag in '' yes
10553do
10554 # Use a header file that comes with gcc, so configuring glibc
10555 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010558 # On the NeXT, cc -E runs the code through the compiler's parser,
10559 # not just through cpp. "Syntax error" is here to catch this case.
10560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566#ifdef __STDC__
10567# include <limits.h>
10568#else
10569# include <assert.h>
10570#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010571 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010572_ACEOF
10573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10575 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010576 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010584 else
10585 ac_cpp_err=
10586 fi
10587else
10588 ac_cpp_err=yes
10589fi
10590if test -z "$ac_cpp_err"; then
10591 :
10592else
10593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010594sed 's/^/| /' conftest.$ac_ext >&5
10595
John Criswell47fdd832003-07-14 16:52:07 +000010596 # Broken: fails on valid input.
10597continue
10598fi
10599rm -f conftest.err conftest.$ac_ext
10600
10601 # OK, works on sane cases. Now check whether non-existent headers
10602 # can be detected and how.
10603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010609#include <ac_nonexistent.h>
10610_ACEOF
10611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10613 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010614 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } >/dev/null; then
10619 if test -s conftest.err; then
10620 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010621 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010622 else
10623 ac_cpp_err=
10624 fi
10625else
10626 ac_cpp_err=yes
10627fi
10628if test -z "$ac_cpp_err"; then
10629 # Broken: success on invalid input.
10630continue
10631else
10632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010633sed 's/^/| /' conftest.$ac_ext >&5
10634
John Criswell47fdd832003-07-14 16:52:07 +000010635 # Passes both tests.
10636ac_preproc_ok=:
10637break
10638fi
10639rm -f conftest.err conftest.$ac_ext
10640
10641done
10642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10643rm -f conftest.err conftest.$ac_ext
10644if $ac_preproc_ok; then
10645 :
10646else
John Criswell0c38eaf2003-09-10 15:17:25 +000010647 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10648See \`config.log' for more details." >&5
10649echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10650See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010651 { (exit 1); exit 1; }; }
10652fi
10653
10654ac_ext=cc
10655ac_cpp='$CXXCPP $CPPFLAGS'
10656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10659
Reid Spencer2706f8c2004-09-19 23:53:36 +000010660fi
10661
John Criswell47fdd832003-07-14 16:52:07 +000010662
10663ac_ext=f
10664ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10665ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10666ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10667if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010668 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 +000010669 do
10670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10672echo "$as_me:$LINENO: checking for $ac_word" >&5
10673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10674if test "${ac_cv_prog_F77+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676else
10677 if test -n "$F77"; then
10678 ac_cv_prog_F77="$F77" # Let the user override the test.
10679else
10680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681for as_dir in $PATH
10682do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10690 fi
10691done
10692done
10693
10694fi
10695fi
10696F77=$ac_cv_prog_F77
10697if test -n "$F77"; then
10698 echo "$as_me:$LINENO: result: $F77" >&5
10699echo "${ECHO_T}$F77" >&6
10700else
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703fi
10704
10705 test -n "$F77" && break
10706 done
10707fi
10708if test -z "$F77"; then
10709 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010710 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 +000010711do
10712 # Extract the first word of "$ac_prog", so it can be a program name with args.
10713set dummy $ac_prog; ac_word=$2
10714echo "$as_me:$LINENO: checking for $ac_word" >&5
10715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10716if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718else
10719 if test -n "$ac_ct_F77"; then
10720 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10721else
10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_ac_ct_F77="$ac_prog"
10730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733done
10734done
10735
10736fi
10737fi
10738ac_ct_F77=$ac_cv_prog_ac_ct_F77
10739if test -n "$ac_ct_F77"; then
10740 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10741echo "${ECHO_T}$ac_ct_F77" >&6
10742else
10743 echo "$as_me:$LINENO: result: no" >&5
10744echo "${ECHO_T}no" >&6
10745fi
10746
10747 test -n "$ac_ct_F77" && break
10748done
10749
10750 F77=$ac_ct_F77
10751fi
10752
10753
10754# Provide some information about the compiler.
Reid Spencer8a2246f2005-07-13 03:20:14 +000010755echo "$as_me:10755:" \
John Criswell47fdd832003-07-14 16:52:07 +000010756 "checking for Fortran 77 compiler version" >&5
10757ac_compiler=`set X $ac_compile; echo $2`
10758{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10759 (eval $ac_compiler --version </dev/null >&5) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }
10763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10764 (eval $ac_compiler -v </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); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010773rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010774
10775# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010776# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010777ac_save_ext=$ac_ext
10778ac_ext=F
10779echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10780echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10781if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 cat >conftest.$ac_ext <<_ACEOF
10785 program main
10786#ifndef __GNUC__
10787 choke me
10788#endif
10789
10790 end
10791_ACEOF
10792rm -f conftest.$ac_objext
10793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010794 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010801 { ac_try='test -z "$ac_f77_werror_flag"
10802 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_compiler_gnu=yes
10815else
10816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010817sed 's/^/| /' conftest.$ac_ext >&5
10818
John Criswell47fdd832003-07-14 16:52:07 +000010819ac_compiler_gnu=no
10820fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010822ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10823
10824fi
10825echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10826echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10827ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010828ac_test_FFLAGS=${FFLAGS+set}
10829ac_save_FFLAGS=$FFLAGS
10830FFLAGS=
10831echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10832echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10833if test "${ac_cv_prog_f77_g+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 FFLAGS=-g
10837cat >conftest.$ac_ext <<_ACEOF
10838 program main
10839
10840 end
10841_ACEOF
10842rm -f conftest.$ac_objext
10843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010844 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851 { ac_try='test -z "$ac_f77_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_prog_f77_g=yes
10865else
10866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010867sed 's/^/| /' conftest.$ac_ext >&5
10868
John Criswell47fdd832003-07-14 16:52:07 +000010869ac_cv_prog_f77_g=no
10870fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010872
10873fi
10874echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10875echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10876if test "$ac_test_FFLAGS" = set; then
10877 FFLAGS=$ac_save_FFLAGS
10878elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010880 FFLAGS="-g -O2"
10881 else
10882 FFLAGS="-g"
10883 fi
10884else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010886 FFLAGS="-O2"
10887 else
10888 FFLAGS=
10889 fi
10890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010891
10892G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010893ac_ext=c
10894ac_cpp='$CPP $CPPFLAGS'
10895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897ac_compiler_gnu=$ac_cv_c_compiler_gnu
10898
10899
10900
10901# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10902
10903# find the maximum length of command line arguments
10904echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10905echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10906if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908else
10909 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010910 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010911
10912 case $build_os in
10913 msdosdjgpp*)
10914 # On DJGPP, this test can blow up pretty badly due to problems in libc
10915 # (any single argument exceeding 2000 bytes causes a buffer overrun
10916 # during glob expansion). Even if it were fixed, the result of this
10917 # check would be larger than it should be.
10918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10919 ;;
10920
10921 gnu*)
10922 # Under GNU Hurd, this test is not required because there is
10923 # no limit to the length of command line arguments.
10924 # Libtool will interpret -1 as no limit whatsoever
10925 lt_cv_sys_max_cmd_len=-1;
10926 ;;
10927
10928 cygwin* | mingw*)
10929 # On Win9x/ME, this test blows up -- it succeeds, but takes
10930 # about 5 minutes as the teststring grows exponentially.
10931 # Worse, since 9x/ME are not pre-emptively multitasking,
10932 # you end up with a "frozen" computer, even though with patience
10933 # the test eventually succeeds (with a max line length of 256k).
10934 # Instead, let's just punt: use the minimum linelength reported by
10935 # all of the supported platforms: 8192 (on NT/2K/XP).
10936 lt_cv_sys_max_cmd_len=8192;
10937 ;;
10938
Reid Spencer2706f8c2004-09-19 23:53:36 +000010939 amigaos*)
10940 # On AmigaOS with pdksh, this test takes hours, literally.
10941 # So we just punt and use a minimum line length of 8192.
10942 lt_cv_sys_max_cmd_len=8192;
10943 ;;
10944
10945 netbsd* | freebsd* | openbsd* | darwin* )
10946 # This has been around since 386BSD, at least. Likely further.
10947 if test -x /sbin/sysctl; then
10948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10949 elif test -x /usr/sbin/sysctl; then
10950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10951 else
10952 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10953 fi
10954 # And add a safety zone
10955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10956 ;;
10957
John Criswell47fdd832003-07-14 16:52:07 +000010958 *)
10959 # If test is not a shell built-in, we'll probably end up computing a
10960 # maximum length that is only half of the actual maximum length, but
10961 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10963 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10964 = "XX$teststring") >/dev/null 2>&1 &&
10965 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010966 lt_cv_sys_max_cmd_len=$new_result &&
10967 test $i != 17 # 1/2 MB should be enough
10968 do
10969 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010970 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010971 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010972 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010973 # Add a significant safety factor because C++ compilers can tack on massive
10974 # amounts of additional arguments before passing them to the linker.
10975 # It appears as though 1/2 is a usable value.
10976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10977 ;;
10978 esac
10979
10980fi
10981
10982if test -n $lt_cv_sys_max_cmd_len ; then
10983 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10984echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10985else
10986 echo "$as_me:$LINENO: result: none" >&5
10987echo "${ECHO_T}none" >&6
10988fi
10989
10990
10991
10992
10993# Check for command to grab the raw symbol name followed by C symbol from nm.
10994echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10995echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10996if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998else
10999
11000# These are sane defaults that work on at least a few old systems.
11001# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11002
11003# Character class describing NM global symbol codes.
11004symcode='[BCDEGRST]'
11005
11006# Regexp to match symbols that can be accessed directly from C.
11007sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11008
11009# Transform the above into a raw symbol and a C symbol.
11010symxfrm='\1 \2\3 \3'
11011
11012# Transform an extracted symbol line into a proper C declaration
11013lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11014
11015# Transform an extracted symbol line into symbol name and symbol address
11016lt_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'"
11017
11018# Define system-specific variables.
11019case $host_os in
11020aix*)
11021 symcode='[BCDT]'
11022 ;;
11023cygwin* | mingw* | pw32*)
11024 symcode='[ABCDGISTW]'
11025 ;;
11026hpux*) # Its linker distinguishes data from code symbols
11027 if test "$host_cpu" = ia64; then
11028 symcode='[ABCDEGRST]'
11029 fi
11030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11031 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'"
11032 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011033linux*)
11034 if test "$host_cpu" = ia64; then
11035 symcode='[ABCDGIRSTW]'
11036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11037 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'"
11038 fi
11039 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011040irix* | nonstopux*)
11041 symcode='[BCDEGRST]'
11042 ;;
11043osf*)
11044 symcode='[BCDEGQRST]'
11045 ;;
11046solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011047 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011048 ;;
11049sysv4)
11050 symcode='[DFNSTU]'
11051 ;;
11052esac
11053
11054# Handle CRLF in mingw tool chain
11055opt_cr=
11056case $build_os in
11057mingw*)
11058 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11059 ;;
11060esac
11061
11062# If we're using GNU nm, then use its standard symbol codes.
11063case `$NM -V 2>&1` in
11064*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011065 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011066esac
11067
11068# Try without a prefix undercore, then with it.
11069for ac_symprfx in "" "_"; do
11070
11071 # Write the raw and C identifiers.
11072 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11073
11074 # Check to see that the pipe works correctly.
11075 pipe_works=no
11076
11077 rm -f conftest*
11078 cat > conftest.$ac_ext <<EOF
11079#ifdef __cplusplus
11080extern "C" {
11081#endif
11082char nm_test_var;
11083void nm_test_func(){}
11084#ifdef __cplusplus
11085}
11086#endif
11087int main(){nm_test_var='a';nm_test_func();return(0);}
11088EOF
11089
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; then
11095 # Now try to grab the symbols.
11096 nlist=conftest.nm
11097 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11098 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && test -s "$nlist"; then
11102 # Try sorting and uniquifying the output.
11103 if sort "$nlist" | uniq > "$nlist"T; then
11104 mv -f "$nlist"T "$nlist"
11105 else
11106 rm -f "$nlist"T
11107 fi
11108
11109 # Make sure that we snagged all the symbols we need.
11110 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11111 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11112 cat <<EOF > conftest.$ac_ext
11113#ifdef __cplusplus
11114extern "C" {
11115#endif
11116
11117EOF
11118 # Now generate the symbol file.
11119 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11120
11121 cat <<EOF >> conftest.$ac_ext
11122#if defined (__STDC__) && __STDC__
11123# define lt_ptr_t void *
11124#else
11125# define lt_ptr_t char *
11126# define const
11127#endif
11128
11129/* The mapping between symbol names and symbols. */
11130const struct {
11131 const char *name;
11132 lt_ptr_t address;
11133}
11134lt_preloaded_symbols[] =
11135{
11136EOF
11137 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11138 cat <<\EOF >> conftest.$ac_ext
11139 {0, (lt_ptr_t) 0}
11140};
11141
11142#ifdef __cplusplus
11143}
11144#endif
11145EOF
11146 # Now try linking the two files.
11147 mv conftest.$ac_objext conftstm.$ac_objext
11148 lt_save_LIBS="$LIBS"
11149 lt_save_CFLAGS="$CFLAGS"
11150 LIBS="conftstm.$ac_objext"
11151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11157 pipe_works=yes
11158 fi
11159 LIBS="$lt_save_LIBS"
11160 CFLAGS="$lt_save_CFLAGS"
11161 else
11162 echo "cannot find nm_test_func in $nlist" >&5
11163 fi
11164 else
11165 echo "cannot find nm_test_var in $nlist" >&5
11166 fi
11167 else
11168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11169 fi
11170 else
11171 echo "$progname: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11173 fi
11174 rm -f conftest* conftst*
11175
11176 # Do not use the global_symbol_pipe unless it works.
11177 if test "$pipe_works" = yes; then
11178 break
11179 else
11180 lt_cv_sys_global_symbol_pipe=
11181 fi
11182done
11183
11184fi
11185
11186if test -z "$lt_cv_sys_global_symbol_pipe"; then
11187 lt_cv_sys_global_symbol_to_cdecl=
11188fi
11189if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11190 echo "$as_me:$LINENO: result: failed" >&5
11191echo "${ECHO_T}failed" >&6
11192else
11193 echo "$as_me:$LINENO: result: ok" >&5
11194echo "${ECHO_T}ok" >&6
11195fi
11196
11197echo "$as_me:$LINENO: checking for objdir" >&5
11198echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11199if test "${lt_cv_objdir+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201else
11202 rm -f .libs 2>/dev/null
11203mkdir .libs 2>/dev/null
11204if test -d .libs; then
11205 lt_cv_objdir=.libs
11206else
11207 # MS-DOS does not allow filenames that begin with a dot.
11208 lt_cv_objdir=_libs
11209fi
11210rmdir .libs 2>/dev/null
11211fi
11212echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11213echo "${ECHO_T}$lt_cv_objdir" >&6
11214objdir=$lt_cv_objdir
11215
11216
11217
11218
11219
11220case $host_os in
11221aix3*)
11222 # AIX sometimes has problems with the GCC collect2 program. For some
11223 # reason, if we set the COLLECT_NAMES environment variable, the problems
11224 # vanish in a puff of smoke.
11225 if test "X${COLLECT_NAMES+set}" != Xset; then
11226 COLLECT_NAMES=
11227 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011228 fi
11229 ;;
11230esac
11231
John Criswell47fdd832003-07-14 16:52:07 +000011232# Sed substitution that helps us do robust quoting. It backslashifies
11233# metacharacters that are still active within double-quoted strings.
11234Xsed='sed -e s/^X//'
11235sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11236
11237# Same as above, but do not quote variable references.
11238double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11239
11240# Sed substitution to delay expansion of an escaped shell variable in a
11241# double_quote_subst'ed string.
11242delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11243
11244# Sed substitution to avoid accidental globbing in evaled expressions
11245no_glob_subst='s/\*/\\\*/g'
11246
11247# Constants:
11248rm="rm -f"
11249
11250# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011251default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011252can_build_shared=yes
11253
11254# All known linkers require a `.a' archive for static linking (except M$VC,
11255# which needs '.lib').
11256libext=a
11257ltmain="$ac_aux_dir/ltmain.sh"
11258ofile="$default_ofile"
11259with_gnu_ld="$lt_cv_prog_gnu_ld"
11260
11261if test -n "$ac_tool_prefix"; then
11262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11263set dummy ${ac_tool_prefix}ar; ac_word=$2
11264echo "$as_me:$LINENO: checking for $ac_word" >&5
11265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11266if test "${ac_cv_prog_AR+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268else
11269 if test -n "$AR"; then
11270 ac_cv_prog_AR="$AR" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_AR="${ac_tool_prefix}ar"
11280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11282 fi
11283done
11284done
11285
11286fi
11287fi
11288AR=$ac_cv_prog_AR
11289if test -n "$AR"; then
11290 echo "$as_me:$LINENO: result: $AR" >&5
11291echo "${ECHO_T}$AR" >&6
11292else
11293 echo "$as_me:$LINENO: result: no" >&5
11294echo "${ECHO_T}no" >&6
11295fi
11296
11297fi
11298if test -z "$ac_cv_prog_AR"; then
11299 ac_ct_AR=$AR
11300 # Extract the first word of "ar", so it can be a program name with args.
11301set dummy ar; ac_word=$2
11302echo "$as_me:$LINENO: checking for $ac_word" >&5
11303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11304if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306else
11307 if test -n "$ac_ct_AR"; then
11308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11309else
11310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311for as_dir in $PATH
11312do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_ac_ct_AR="ar"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321done
11322done
11323
11324 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11325fi
11326fi
11327ac_ct_AR=$ac_cv_prog_ac_ct_AR
11328if test -n "$ac_ct_AR"; then
11329 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11330echo "${ECHO_T}$ac_ct_AR" >&6
11331else
11332 echo "$as_me:$LINENO: result: no" >&5
11333echo "${ECHO_T}no" >&6
11334fi
11335
11336 AR=$ac_ct_AR
11337else
11338 AR="$ac_cv_prog_AR"
11339fi
11340
John Criswell7a73b802003-06-30 21:59:07 +000011341if test -n "$ac_tool_prefix"; then
11342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11343set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11344echo "$as_me:$LINENO: checking for $ac_word" >&5
11345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346if test "${ac_cv_prog_RANLIB+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 if test -n "$RANLIB"; then
11350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11351else
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363done
11364done
11365
11366fi
11367fi
11368RANLIB=$ac_cv_prog_RANLIB
11369if test -n "$RANLIB"; then
11370 echo "$as_me:$LINENO: result: $RANLIB" >&5
11371echo "${ECHO_T}$RANLIB" >&6
11372else
11373 echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
11375fi
11376
11377fi
11378if test -z "$ac_cv_prog_RANLIB"; then
11379 ac_ct_RANLIB=$RANLIB
11380 # Extract the first word of "ranlib", so it can be a program name with args.
11381set dummy ranlib; ac_word=$2
11382echo "$as_me:$LINENO: checking for $ac_word" >&5
11383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386else
11387 if test -n "$ac_ct_RANLIB"; then
11388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11389else
11390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393 IFS=$as_save_IFS
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397 ac_cv_prog_ac_ct_RANLIB="ranlib"
11398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11399 break 2
11400 fi
11401done
11402done
11403
11404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11405fi
11406fi
11407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11408if test -n "$ac_ct_RANLIB"; then
11409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11410echo "${ECHO_T}$ac_ct_RANLIB" >&6
11411else
11412 echo "$as_me:$LINENO: result: no" >&5
11413echo "${ECHO_T}no" >&6
11414fi
11415
11416 RANLIB=$ac_ct_RANLIB
11417else
11418 RANLIB="$ac_cv_prog_RANLIB"
11419fi
11420
11421if test -n "$ac_tool_prefix"; then
11422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11423set dummy ${ac_tool_prefix}strip; ac_word=$2
11424echo "$as_me:$LINENO: checking for $ac_word" >&5
11425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11426if test "${ac_cv_prog_STRIP+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428else
11429 if test -n "$STRIP"; then
11430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11431else
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11442 fi
11443done
11444done
11445
11446fi
11447fi
11448STRIP=$ac_cv_prog_STRIP
11449if test -n "$STRIP"; then
11450 echo "$as_me:$LINENO: result: $STRIP" >&5
11451echo "${ECHO_T}$STRIP" >&6
11452else
11453 echo "$as_me:$LINENO: result: no" >&5
11454echo "${ECHO_T}no" >&6
11455fi
11456
11457fi
11458if test -z "$ac_cv_prog_STRIP"; then
11459 ac_ct_STRIP=$STRIP
11460 # Extract the first word of "strip", so it can be a program name with args.
11461set dummy strip; ac_word=$2
11462echo "$as_me:$LINENO: checking for $ac_word" >&5
11463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11464if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467 if test -n "$ac_ct_STRIP"; then
11468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11469else
11470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477 ac_cv_prog_ac_ct_STRIP="strip"
11478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11480 fi
11481done
11482done
11483
11484 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11485fi
11486fi
11487ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11488if test -n "$ac_ct_STRIP"; then
11489 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11490echo "${ECHO_T}$ac_ct_STRIP" >&6
11491else
11492 echo "$as_me:$LINENO: result: no" >&5
11493echo "${ECHO_T}no" >&6
11494fi
11495
11496 STRIP=$ac_ct_STRIP
11497else
11498 STRIP="$ac_cv_prog_STRIP"
11499fi
11500
11501
John Criswell7a73b802003-06-30 21:59:07 +000011502old_CC="$CC"
11503old_CFLAGS="$CFLAGS"
11504
11505# Set sane defaults for various variables
11506test -z "$AR" && AR=ar
11507test -z "$AR_FLAGS" && AR_FLAGS=cru
11508test -z "$AS" && AS=as
11509test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011510test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011511test -z "$DLLTOOL" && DLLTOOL=dlltool
11512test -z "$LD" && LD=ld
11513test -z "$LN_S" && LN_S="ln -s"
11514test -z "$MAGIC_CMD" && MAGIC_CMD=file
11515test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011516test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011517test -z "$OBJDUMP" && OBJDUMP=objdump
11518test -z "$RANLIB" && RANLIB=:
11519test -z "$STRIP" && STRIP=:
11520test -z "$ac_objext" && ac_objext=o
11521
John Criswell7a73b802003-06-30 21:59:07 +000011522# Determine commands to create old-style static archives.
11523old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11524old_postinstall_cmds='chmod 644 $oldlib'
11525old_postuninstall_cmds=
11526
11527if test -n "$RANLIB"; then
11528 case $host_os in
11529 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011530 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011531 ;;
11532 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011533 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011534 ;;
11535 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011537fi
11538
Reid Spencer2706f8c2004-09-19 23:53:36 +000011539cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11540
John Criswell47fdd832003-07-14 16:52:07 +000011541# Only perform the check for file, if the check method requires it
11542case $deplibs_check_method in
11543file_magic*)
11544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11545 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11546echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11547if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011549else
John Criswell47fdd832003-07-14 16:52:07 +000011550 case $MAGIC_CMD in
11551[\\/*] | ?:[\\/]*)
11552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11553 ;;
11554*)
11555 lt_save_MAGIC_CMD="$MAGIC_CMD"
11556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11558 for ac_dir in $ac_dummy; do
11559 IFS="$lt_save_ifs"
11560 test -z "$ac_dir" && ac_dir=.
11561 if test -f $ac_dir/${ac_tool_prefix}file; then
11562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11563 if test -n "$file_magic_test_file"; then
11564 case $deplibs_check_method in
11565 "file_magic "*)
11566 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11569 $EGREP "$file_magic_regex" > /dev/null; then
11570 :
11571 else
11572 cat <<EOF 1>&2
11573
11574*** Warning: the command libtool uses to detect shared libraries,
11575*** $file_magic_cmd, produces output that libtool cannot recognize.
11576*** The result is that libtool may fail to recognize shared libraries
11577*** as such. This will affect the creation of libtool libraries that
11578*** depend on shared libraries, but programs linked with such libtool
11579*** libraries will work regardless of this problem. Nevertheless, you
11580*** may want to report the problem to your system manager and/or to
11581*** bug-libtool@gnu.org
11582
11583EOF
11584 fi ;;
11585 esac
11586 fi
11587 break
11588 fi
11589 done
11590 IFS="$lt_save_ifs"
11591 MAGIC_CMD="$lt_save_MAGIC_CMD"
11592 ;;
11593esac
John Criswell7a73b802003-06-30 21:59:07 +000011594fi
John Criswell7a73b802003-06-30 21:59:07 +000011595
John Criswell47fdd832003-07-14 16:52:07 +000011596MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11597if test -n "$MAGIC_CMD"; then
11598 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11599echo "${ECHO_T}$MAGIC_CMD" >&6
11600else
11601 echo "$as_me:$LINENO: result: no" >&5
11602echo "${ECHO_T}no" >&6
11603fi
John Criswell7a73b802003-06-30 21:59:07 +000011604
John Criswell47fdd832003-07-14 16:52:07 +000011605if test -z "$lt_cv_path_MAGIC_CMD"; then
11606 if test -n "$ac_tool_prefix"; then
11607 echo "$as_me:$LINENO: checking for file" >&5
11608echo $ECHO_N "checking for file... $ECHO_C" >&6
11609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612 case $MAGIC_CMD in
11613[\\/*] | ?:[\\/]*)
11614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11615 ;;
11616*)
11617 lt_save_MAGIC_CMD="$MAGIC_CMD"
11618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11620 for ac_dir in $ac_dummy; do
11621 IFS="$lt_save_ifs"
11622 test -z "$ac_dir" && ac_dir=.
11623 if test -f $ac_dir/file; then
11624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11625 if test -n "$file_magic_test_file"; then
11626 case $deplibs_check_method in
11627 "file_magic "*)
11628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11631 $EGREP "$file_magic_regex" > /dev/null; then
11632 :
11633 else
11634 cat <<EOF 1>&2
11635
11636*** Warning: the command libtool uses to detect shared libraries,
11637*** $file_magic_cmd, produces output that libtool cannot recognize.
11638*** The result is that libtool may fail to recognize shared libraries
11639*** as such. This will affect the creation of libtool libraries that
11640*** depend on shared libraries, but programs linked with such libtool
11641*** libraries will work regardless of this problem. Nevertheless, you
11642*** may want to report the problem to your system manager and/or to
11643*** bug-libtool@gnu.org
11644
11645EOF
11646 fi ;;
11647 esac
11648 fi
11649 break
11650 fi
11651 done
11652 IFS="$lt_save_ifs"
11653 MAGIC_CMD="$lt_save_MAGIC_CMD"
11654 ;;
11655esac
11656fi
11657
11658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11659if test -n "$MAGIC_CMD"; then
11660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11661echo "${ECHO_T}$MAGIC_CMD" >&6
11662else
11663 echo "$as_me:$LINENO: result: no" >&5
11664echo "${ECHO_T}no" >&6
11665fi
11666
11667 else
11668 MAGIC_CMD=:
11669 fi
11670fi
11671
11672 fi
11673 ;;
11674esac
11675
Reid Spencer17795972004-11-18 09:47:37 +000011676enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011677enable_win32_dll=no
11678
11679# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11680if test "${enable_libtool_lock+set}" = set; then
11681 enableval="$enable_libtool_lock"
11682
11683fi;
11684test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11685
John Criswell7a73b802003-06-30 21:59:07 +000011686
11687# Check whether --with-pic or --without-pic was given.
11688if test "${with_pic+set}" = set; then
11689 withval="$with_pic"
11690 pic_mode="$withval"
11691else
11692 pic_mode=default
11693fi;
11694test -z "$pic_mode" && pic_mode=default
11695
John Criswell47fdd832003-07-14 16:52:07 +000011696# Use C for the default configuration in the libtool script
11697tagname=
11698lt_save_CC="$CC"
11699ac_ext=c
11700ac_cpp='$CPP $CPPFLAGS'
11701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703ac_compiler_gnu=$ac_cv_c_compiler_gnu
11704
11705
11706# Source file extension for C test sources.
11707ac_ext=c
11708
11709# Object file extension for compiled C test sources.
11710objext=o
11711objext=$objext
11712
11713# Code to be used in simple compile tests
11714lt_simple_compile_test_code="int some_variable = 0;\n"
11715
11716# Code to be used in simple link tests
11717lt_simple_link_test_code='int main(){return(0);}\n'
11718
11719
11720# If no C compiler was specified, use CC.
11721LTCC=${LTCC-"$CC"}
11722
11723# Allow CC to be a program name with arguments.
11724compiler=$CC
11725
11726
11727#
11728# Check for any special shared library compilation flags.
11729#
11730lt_prog_cc_shlib=
11731if test "$GCC" = no; then
11732 case $host_os in
11733 sco3.2v5*)
11734 lt_prog_cc_shlib='-belf'
11735 ;;
11736 esac
11737fi
11738if test -n "$lt_prog_cc_shlib"; then
11739 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11740echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11741 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11742 else
11743 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11744echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11745 lt_cv_prog_cc_can_build_shared=no
11746 fi
11747fi
11748
11749
11750#
11751# Check to make sure the static flag actually works.
11752#
11753echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11754echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11755if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
John Criswell47fdd832003-07-14 16:52:07 +000011758 lt_prog_compiler_static_works=no
11759 save_LDFLAGS="$LDFLAGS"
11760 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11761 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11763 # The compiler can only warn and ignore the option if not recognized
11764 # So say no if there are warnings
11765 if test -s conftest.err; then
11766 # Append any errors to the config.log.
11767 cat conftest.err 1>&5
11768 else
11769 lt_prog_compiler_static_works=yes
11770 fi
11771 fi
11772 $rm conftest*
11773 LDFLAGS="$save_LDFLAGS"
11774
11775fi
11776echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11777echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11778
11779if test x"$lt_prog_compiler_static_works" = xyes; then
11780 :
11781else
11782 lt_prog_compiler_static=
11783fi
11784
11785
11786
John Criswell47fdd832003-07-14 16:52:07 +000011787
11788lt_prog_compiler_no_builtin_flag=
11789
11790if test "$GCC" = yes; then
11791 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11792
Reid Spencer2706f8c2004-09-19 23:53:36 +000011793
11794echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011795echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11796if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798else
11799 lt_cv_prog_compiler_rtti_exceptions=no
11800 ac_outfile=conftest.$ac_objext
11801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11802 lt_compiler_flag="-fno-rtti -fno-exceptions"
11803 # Insert the option either (1) after the last *FLAGS variable, or
11804 # (2) before a word containing "conftest.", or (3) at the end.
11805 # Note that $ac_compile itself does not contain backslashes and begins
11806 # with a dollar sign (not a hyphen), so the echo should work correctly.
11807 # The option is referenced via a variable to avoid confusing sed.
11808 lt_compile=`echo "$ac_compile" | $SED \
11809 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11811 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000011812 (eval echo "\"\$as_me:11812: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011813 (eval "$lt_compile" 2>conftest.err)
11814 ac_status=$?
11815 cat conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000011816 echo "$as_me:11816: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011817 if (exit $ac_status) && test -s "$ac_outfile"; then
11818 # The compiler can only warn and ignore the option if not recognized
11819 # So say no if there are warnings
11820 if test ! -s conftest.err; then
11821 lt_cv_prog_compiler_rtti_exceptions=yes
11822 fi
11823 fi
11824 $rm conftest*
11825
11826fi
11827echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11828echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11829
11830if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11831 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11832else
11833 :
11834fi
11835
11836fi
11837
11838lt_prog_compiler_wl=
11839lt_prog_compiler_pic=
11840lt_prog_compiler_static=
11841
11842echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11843echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011844
11845 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011846 lt_prog_compiler_wl='-Wl,'
11847 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011848
11849 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011850 aix*)
11851 # All AIX code is PIC.
11852 if test "$host_cpu" = ia64; then
11853 # AIX 5 now supports IA64 processor
11854 lt_prog_compiler_static='-Bstatic'
11855 fi
John Criswell7a73b802003-06-30 21:59:07 +000011856 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011857
John Criswell7a73b802003-06-30 21:59:07 +000011858 amigaos*)
11859 # FIXME: we need at least 68020 code to build shared libraries, but
11860 # adding the `-m68020' flag to GCC prevents building anything better,
11861 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011863 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011864
11865 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011866 # PIC is the default for these OSes.
11867 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011868
11869 mingw* | pw32* | os2*)
11870 # This hack is so that the source file can tell whether it is being
11871 # built for inclusion in a dll (and should export symbols for example).
11872 lt_prog_compiler_pic='-DDLL_EXPORT'
11873 ;;
11874
John Criswell7a73b802003-06-30 21:59:07 +000011875 darwin* | rhapsody*)
11876 # PIC is the default on this platform
11877 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011878 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011879 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011880
11881 msdosdjgpp*)
11882 # Just because we use GCC doesn't mean we suddenly get shared libraries
11883 # on systems that don't support them.
11884 lt_prog_compiler_can_build_shared=no
11885 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011886 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011887
John Criswell7a73b802003-06-30 21:59:07 +000011888 sysv4*MP*)
11889 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011890 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011891 fi
11892 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011893
11894 hpux*)
11895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11896 # not for PA HP-UX.
11897 case "$host_cpu" in
11898 hppa*64*|ia64*)
11899 # +Z the default
11900 ;;
11901 *)
11902 lt_prog_compiler_pic='-fPIC'
11903 ;;
11904 esac
11905 ;;
11906
John Criswell7a73b802003-06-30 21:59:07 +000011907 *)
John Criswell47fdd832003-07-14 16:52:07 +000011908 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011909 ;;
11910 esac
11911 else
John Criswell47fdd832003-07-14 16:52:07 +000011912 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011913 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011914 aix*)
11915 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011916 if test "$host_cpu" = ia64; then
11917 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011918 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011919 else
John Criswell47fdd832003-07-14 16:52:07 +000011920 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011921 fi
11922 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011923 darwin*)
11924 # PIC is the default on this platform
11925 # Common symbols not allowed in MH_DYLIB files
11926 case "$cc_basename" in
11927 xlc*)
11928 lt_prog_compiler_pic='-qnocommon'
11929 lt_prog_compiler_wl='-Wl,'
11930 ;;
11931 esac
11932 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011933
John Criswell47fdd832003-07-14 16:52:07 +000011934 mingw* | pw32* | os2*)
11935 # This hack is so that the source file can tell whether it is being
11936 # built for inclusion in a dll (and should export symbols for example).
11937 lt_prog_compiler_pic='-DDLL_EXPORT'
11938 ;;
11939
John Criswell7a73b802003-06-30 21:59:07 +000011940 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011941 lt_prog_compiler_wl='-Wl,'
11942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11943 # not for PA HP-UX.
11944 case "$host_cpu" in
11945 hppa*64*|ia64*)
11946 # +Z the default
11947 ;;
11948 *)
11949 lt_prog_compiler_pic='+Z'
11950 ;;
11951 esac
11952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11953 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011954 ;;
11955
John Criswell47fdd832003-07-14 16:52:07 +000011956 irix5* | irix6* | nonstopux*)
11957 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011958 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011959 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011960 ;;
11961
11962 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011963 lt_prog_compiler_pic='-KPIC'
11964 lt_prog_compiler_static='-Bstatic'
11965 ;;
11966
11967 linux*)
11968 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011969 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011970 lt_prog_compiler_wl='-Wl,'
11971 lt_prog_compiler_pic='-KPIC'
11972 lt_prog_compiler_static='-static'
11973 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011974 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011975 lt_prog_compiler_wl='-Wl,'
11976 # All Alpha code is PIC.
11977 lt_prog_compiler_static='-non_shared'
11978 ;;
11979 esac
John Criswell7a73b802003-06-30 21:59:07 +000011980 ;;
11981
11982 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011983 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011984 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011985 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011986 ;;
11987
11988 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011989 lt_prog_compiler_pic='-Kpic'
11990 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011991 ;;
11992
11993 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011994 lt_prog_compiler_wl='-Wl,'
11995 lt_prog_compiler_pic='-KPIC'
11996 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011997 ;;
11998
11999 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012000 lt_prog_compiler_wl='-Qoption ld '
12001 lt_prog_compiler_pic='-PIC'
12002 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012003 ;;
12004
12005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012006 lt_prog_compiler_wl='-Wl,'
12007 lt_prog_compiler_pic='-KPIC'
12008 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012009 ;;
12010
12011 sysv4*MP*)
12012 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012013 lt_prog_compiler_pic='-Kconform_pic'
12014 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012015 fi
12016 ;;
12017
John Criswell47fdd832003-07-14 16:52:07 +000012018 uts4*)
12019 lt_prog_compiler_pic='-pic'
12020 lt_prog_compiler_static='-Bstatic'
12021 ;;
12022
John Criswell7a73b802003-06-30 21:59:07 +000012023 *)
John Criswell47fdd832003-07-14 16:52:07 +000012024 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012025 ;;
12026 esac
12027 fi
12028
John Criswell47fdd832003-07-14 16:52:07 +000012029echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12030echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012031
John Criswell47fdd832003-07-14 16:52:07 +000012032#
12033# Check to make sure the PIC flag actually works.
12034#
12035if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012036
12037echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012038echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12039if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041else
John Criswell47fdd832003-07-14 16:52:07 +000012042 lt_prog_compiler_pic_works=no
12043 ac_outfile=conftest.$ac_objext
12044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12046 # Insert the option either (1) after the last *FLAGS variable, or
12047 # (2) before a word containing "conftest.", or (3) at the end.
12048 # Note that $ac_compile itself does not contain backslashes and begins
12049 # with a dollar sign (not a hyphen), so the echo should work correctly.
12050 # The option is referenced via a variable to avoid confusing sed.
12051 lt_compile=`echo "$ac_compile" | $SED \
12052 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12054 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000012055 (eval echo "\"\$as_me:12055: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012056 (eval "$lt_compile" 2>conftest.err)
12057 ac_status=$?
12058 cat conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000012059 echo "$as_me:12059: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012060 if (exit $ac_status) && test -s "$ac_outfile"; then
12061 # The compiler can only warn and ignore the option if not recognized
12062 # So say no if there are warnings
12063 if test ! -s conftest.err; then
12064 lt_prog_compiler_pic_works=yes
12065 fi
12066 fi
12067 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012068
John Criswell47fdd832003-07-14 16:52:07 +000012069fi
12070echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12071echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012072
John Criswell47fdd832003-07-14 16:52:07 +000012073if test x"$lt_prog_compiler_pic_works" = xyes; then
12074 case $lt_prog_compiler_pic in
12075 "" | " "*) ;;
12076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12077 esac
John Criswell7a73b802003-06-30 21:59:07 +000012078else
John Criswell47fdd832003-07-14 16:52:07 +000012079 lt_prog_compiler_pic=
12080 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012081fi
12082
John Criswell7a73b802003-06-30 21:59:07 +000012083fi
John Criswell47fdd832003-07-14 16:52:07 +000012084case "$host_os" in
12085 # For platforms which do not support PIC, -DPIC is meaningless:
12086 *djgpp*)
12087 lt_prog_compiler_pic=
12088 ;;
12089 *)
12090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12091 ;;
12092esac
John Criswell7a73b802003-06-30 21:59:07 +000012093
John Criswell7a73b802003-06-30 21:59:07 +000012094echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12095echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012096if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
John Criswell47fdd832003-07-14 16:52:07 +000012099 lt_cv_prog_compiler_c_o=no
12100 $rm -r conftest 2>/dev/null
12101 mkdir conftest
12102 cd conftest
12103 mkdir out
12104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012105
John Criswell47fdd832003-07-14 16:52:07 +000012106 lt_compiler_flag="-o out/conftest2.$ac_objext"
12107 # Insert the option either (1) after the last *FLAGS variable, or
12108 # (2) before a word containing "conftest.", or (3) at the end.
12109 # Note that $ac_compile itself does not contain backslashes and begins
12110 # with a dollar sign (not a hyphen), so the echo should work correctly.
12111 lt_compile=`echo "$ac_compile" | $SED \
12112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12114 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000012115 (eval echo "\"\$as_me:12115: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012116 (eval "$lt_compile" 2>out/conftest.err)
12117 ac_status=$?
12118 cat out/conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000012119 echo "$as_me:12119: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12121 then
12122 # The compiler can only warn and ignore the option if not recognized
12123 # So say no if there are warnings
12124 if test ! -s out/conftest.err; then
12125 lt_cv_prog_compiler_c_o=yes
12126 fi
12127 fi
12128 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012129 $rm conftest*
12130 # SGI C++ compiler will create directory out/ii_files/ for
12131 # template instantiation
12132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12133 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012134 cd ..
12135 rmdir conftest
12136 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012137
12138fi
John Criswell47fdd832003-07-14 16:52:07 +000012139echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12140echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012141
John Criswell7a73b802003-06-30 21:59:07 +000012142
John Criswell7a73b802003-06-30 21:59:07 +000012143hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012144if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012145 # do not overwrite the value of need_locks provided by the user
12146 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12147echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12148 hard_links=yes
12149 $rm conftest*
12150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12151 touch conftest.a
12152 ln conftest.a conftest.b 2>&5 || hard_links=no
12153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12154 echo "$as_me:$LINENO: result: $hard_links" >&5
12155echo "${ECHO_T}$hard_links" >&6
12156 if test "$hard_links" = no; then
12157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12158echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12159 need_locks=warn
12160 fi
12161else
12162 need_locks=no
12163fi
John Criswell7a73b802003-06-30 21:59:07 +000012164
John Criswell47fdd832003-07-14 16:52:07 +000012165echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12166echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12167
12168 runpath_var=
12169 allow_undefined_flag=
12170 enable_shared_with_static_runtimes=no
12171 archive_cmds=
12172 archive_expsym_cmds=
12173 old_archive_From_new_cmds=
12174 old_archive_from_expsyms_cmds=
12175 export_dynamic_flag_spec=
12176 whole_archive_flag_spec=
12177 thread_safe_flag_spec=
12178 hardcode_libdir_flag_spec=
12179 hardcode_libdir_flag_spec_ld=
12180 hardcode_libdir_separator=
12181 hardcode_direct=no
12182 hardcode_minus_L=no
12183 hardcode_shlibpath_var=unsupported
12184 link_all_deplibs=unknown
12185 hardcode_automatic=no
12186 module_cmds=
12187 module_expsym_cmds=
12188 always_export_symbols=no
12189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12190 # include_expsyms should be a list of space-separated symbols to be *always*
12191 # included in the symbol list
12192 include_expsyms=
12193 # exclude_expsyms can be an extended regexp of symbols to exclude
12194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12196 # as well as any symbol that contains `d'.
12197 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12199 # platforms (ab)use it in PIC code, but their linkers get confused if
12200 # the symbol is explicitly referenced. Since portable code cannot
12201 # rely on this symbol name, it's probably fine to never include it in
12202 # preloaded symbol tables.
12203 extract_expsyms_cmds=
12204
12205 case $host_os in
12206 cygwin* | mingw* | pw32*)
12207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12208 # When not using gcc, we currently assume that we are using
12209 # Microsoft Visual C++.
12210 if test "$GCC" != yes; then
12211 with_gnu_ld=no
12212 fi
12213 ;;
12214 openbsd*)
12215 with_gnu_ld=no
12216 ;;
12217 esac
12218
12219 ld_shlibs=yes
12220 if test "$with_gnu_ld" = yes; then
12221 # If archive_cmds runs LD, not CC, wlarc should be empty
12222 wlarc='${wl}'
12223
12224 # See if GNU ld supports shared libraries.
12225 case $host_os in
12226 aix3* | aix4* | aix5*)
12227 # On AIX/PPC, the GNU linker is very broken
12228 if test "$host_cpu" != ia64; then
12229 ld_shlibs=no
12230 cat <<EOF 1>&2
12231
12232*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12233*** to be unable to reliably create shared libraries on AIX.
12234*** Therefore, libtool is disabling shared libraries support. If you
12235*** really care for shared libraries, you may want to modify your PATH
12236*** so that a non-GNU linker is found, and then restart.
12237
12238EOF
12239 fi
12240 ;;
12241
12242 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012243 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 +000012244 hardcode_libdir_flag_spec='-L$libdir'
12245 hardcode_minus_L=yes
12246
12247 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12248 # that the semantics of dynamic libraries on AmigaOS, at least up
12249 # to version 4, is to share data among multiple programs linked
12250 # with the same dynamic library. Since this doesn't match the
12251 # behavior of shared libraries on other platforms, we can't use
12252 # them.
12253 ld_shlibs=no
12254 ;;
12255
12256 beos*)
12257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12258 allow_undefined_flag=unsupported
12259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12260 # support --undefined. This deserves some investigation. FIXME
12261 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12262 else
12263 ld_shlibs=no
12264 fi
12265 ;;
12266
12267 cygwin* | mingw* | pw32*)
12268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12269 # as there is no search path for DLLs.
12270 hardcode_libdir_flag_spec='-L$libdir'
12271 allow_undefined_flag=unsupported
12272 always_export_symbols=no
12273 enable_shared_with_static_runtimes=yes
12274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12275
12276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12278 # If the export-symbols file already is a .def file (1st line
12279 # is EXPORTS), use it as is; otherwise, prepend...
12280 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12281 cp $export_symbols $output_objdir/$soname.def;
12282 else
12283 echo EXPORTS > $output_objdir/$soname.def;
12284 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012285 fi~
12286 $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 +000012287 else
12288 ld_shlibs=no
12289 fi
12290 ;;
12291
12292 netbsd*)
12293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12295 wlarc=
12296 else
12297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12299 fi
12300 ;;
12301
12302 solaris* | sysv5*)
12303 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12304 ld_shlibs=no
12305 cat <<EOF 1>&2
12306
12307*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12308*** create shared libraries on Solaris systems. Therefore, libtool
12309*** is disabling shared libraries support. We urge you to upgrade GNU
12310*** binutils to release 2.9.1 or newer. Another option is to modify
12311*** your PATH or compiler configuration so that the native linker is
12312*** used, and then restart.
12313
12314EOF
12315 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12318 else
12319 ld_shlibs=no
12320 fi
12321 ;;
12322
12323 sunos4*)
12324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12325 wlarc=
12326 hardcode_direct=yes
12327 hardcode_shlibpath_var=no
12328 ;;
12329
Reid Spencer2706f8c2004-09-19 23:53:36 +000012330 linux*)
12331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12332 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333 archive_cmds="$tmp_archive_cmds"
12334 supports_anon_versioning=no
12335 case `$LD -v 2>/dev/null` in
12336 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12339 *\ 2.11.*) ;; # other 2.11 versions
12340 *) supports_anon_versioning=yes ;;
12341 esac
12342 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012343 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12344cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12345$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012346 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12347 else
12348 archive_expsym_cmds="$tmp_archive_cmds"
12349 fi
12350 else
12351 ld_shlibs=no
12352 fi
12353 ;;
12354
John Criswell47fdd832003-07-14 16:52:07 +000012355 *)
12356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12359 else
12360 ld_shlibs=no
12361 fi
12362 ;;
12363 esac
12364
12365 if test "$ld_shlibs" = yes; then
12366 runpath_var=LD_RUN_PATH
12367 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12368 export_dynamic_flag_spec='${wl}--export-dynamic'
12369 # ancient GNU ld didn't support --whole-archive et. al.
12370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12371 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12372 else
12373 whole_archive_flag_spec=
12374 fi
12375 fi
12376 else
12377 # PORTME fill in a description of your system's linker (not GNU ld)
12378 case $host_os in
12379 aix3*)
12380 allow_undefined_flag=unsupported
12381 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012382 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 +000012383 # Note: this linker hardcodes the directories in LIBPATH if there
12384 # are no directories specified by -L.
12385 hardcode_minus_L=yes
12386 if test "$GCC" = yes && test -z "$link_static_flag"; then
12387 # Neither direct hardcoding nor static linking is supported with a
12388 # broken collect2.
12389 hardcode_direct=unsupported
12390 fi
12391 ;;
12392
12393 aix4* | aix5*)
12394 if test "$host_cpu" = ia64; then
12395 # On IA64, the linker does run time linking by default, so we don't
12396 # have to do anything special.
12397 aix_use_runtimelinking=no
12398 exp_sym_flag='-Bexport'
12399 no_entry_flag=""
12400 else
12401 # If we're using GNU nm, then we don't want the "-C" option.
12402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12403 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12404 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'
12405 else
12406 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'
12407 fi
12408 aix_use_runtimelinking=no
12409
12410 # Test if we are trying to use run time linking or normal
12411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12412 # need to do runtime linking.
12413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12414 for ld_flag in $LDFLAGS; do
12415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12416 aix_use_runtimelinking=yes
12417 break
12418 fi
12419 done
12420 esac
12421
12422 exp_sym_flag='-bexport'
12423 no_entry_flag='-bnoentry'
12424 fi
12425
12426 # When large executables or shared objects are built, AIX ld can
12427 # have problems creating the table of contents. If linking a library
12428 # or program results in "error TOC overflow" add -mminimal-toc to
12429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12431
12432 archive_cmds=''
12433 hardcode_direct=yes
12434 hardcode_libdir_separator=':'
12435 link_all_deplibs=yes
12436
12437 if test "$GCC" = yes; then
12438 case $host_os in aix4.012|aix4.012.*)
12439 # We only want to do this on AIX 4.2 and lower, the check
12440 # below for broken collect2 doesn't work under 4.3+
12441 collect2name=`${CC} -print-prog-name=collect2`
12442 if test -f "$collect2name" && \
12443 strings "$collect2name" | grep resolve_lib_name >/dev/null
12444 then
12445 # We have reworked collect2
12446 hardcode_direct=yes
12447 else
12448 # We have old collect2
12449 hardcode_direct=unsupported
12450 # It fails to find uninstalled libraries when the uninstalled
12451 # path is not listed in the libpath. Setting hardcode_minus_L
12452 # to unsupported forces relinking
12453 hardcode_minus_L=yes
12454 hardcode_libdir_flag_spec='-L$libdir'
12455 hardcode_libdir_separator=
12456 fi
12457 esac
12458 shared_flag='-shared'
12459 else
12460 # not using gcc
12461 if test "$host_cpu" = ia64; then
12462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12463 # chokes on -Wl,-G. The following line is correct:
12464 shared_flag='-G'
12465 else
12466 if test "$aix_use_runtimelinking" = yes; then
12467 shared_flag='${wl}-G'
12468 else
12469 shared_flag='${wl}-bM:SRE'
12470 fi
12471 fi
12472 fi
12473
12474 # It seems that -bexpall does not export symbols beginning with
12475 # underscore (_), so it is better to generate a list of symbols to export.
12476 always_export_symbols=yes
12477 if test "$aix_use_runtimelinking" = yes; then
12478 # Warning - without using the other runtime loading flags (-brtl),
12479 # -berok will link without error, but may produce a broken library.
12480 allow_undefined_flag='-berok'
12481 # Determine the default libpath from the value encoded in an empty executable.
12482 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012488
John Criswell7a73b802003-06-30 21:59:07 +000012489int
12490main ()
12491{
John Criswell47fdd832003-07-14 16:52:07 +000012492
John Criswell7a73b802003-06-30 21:59:07 +000012493 ;
12494 return 0;
12495}
12496_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012497rm -f conftest.$ac_objext conftest$ac_exeext
12498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012499 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012506 { ac_try='test -z "$ac_c_werror_flag"
12507 || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012519
John Criswell47fdd832003-07-14 16:52:07 +000012520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12521}'`
12522# Check for a 64-bit object if we didn't find anything.
12523if 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; }
12524}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012525else
12526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012527sed 's/^/| /' conftest.$ac_ext >&5
12528
John Criswell7a73b802003-06-30 21:59:07 +000012529fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012530rm -f conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012533
John Criswell47fdd832003-07-14 16:52:07 +000012534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12535 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"
12536 else
12537 if test "$host_cpu" = ia64; then
12538 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12539 allow_undefined_flag="-z nodefs"
12540 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"
12541 else
12542 # Determine the default libpath from the value encoded in an empty executable.
12543 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012549
John Criswell47fdd832003-07-14 16:52:07 +000012550int
12551main ()
12552{
John Criswell7a73b802003-06-30 21:59:07 +000012553
John Criswell47fdd832003-07-14 16:52:07 +000012554 ;
12555 return 0;
12556}
12557_ACEOF
12558rm -f conftest.$ac_objext conftest$ac_exeext
12559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012560 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012561 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012567 { ac_try='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012580
John Criswell47fdd832003-07-14 16:52:07 +000012581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12582}'`
12583# Check for a 64-bit object if we didn't find anything.
12584if 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; }
12585}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012586else
John Criswell47fdd832003-07-14 16:52:07 +000012587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012588sed 's/^/| /' conftest.$ac_ext >&5
12589
John Criswell47fdd832003-07-14 16:52:07 +000012590fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012591rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012594
John Criswell47fdd832003-07-14 16:52:07 +000012595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12596 # Warning - without using the other run time loading flags,
12597 # -berok will link without error, but may produce a broken library.
12598 no_undefined_flag=' ${wl}-bernotok'
12599 allow_undefined_flag=' ${wl}-berok'
12600 # -bexpall does not export symbols beginning with underscore (_)
12601 always_export_symbols=yes
12602 # Exported symbols can be pulled into shared objects from archives
12603 whole_archive_flag_spec=' '
12604 archive_cmds_need_lc=yes
12605 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012606 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 +000012607 fi
12608 fi
John Criswell7a73b802003-06-30 21:59:07 +000012609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012610
12611 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012612 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 +000012613 hardcode_libdir_flag_spec='-L$libdir'
12614 hardcode_minus_L=yes
12615 # see comment about different semantics on the GNU ld section
12616 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012617 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012618
Reid Spencer2706f8c2004-09-19 23:53:36 +000012619 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012620 export_dynamic_flag_spec=-rdynamic
12621 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012622
John Criswell47fdd832003-07-14 16:52:07 +000012623 cygwin* | mingw* | pw32*)
12624 # When not using gcc, we currently assume that we are using
12625 # Microsoft Visual C++.
12626 # hardcode_libdir_flag_spec is actually meaningless, as there is
12627 # no search path for DLLs.
12628 hardcode_libdir_flag_spec=' '
12629 allow_undefined_flag=unsupported
12630 # Tell ltmain to make .lib files, not .a files.
12631 libext=lib
12632 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012633 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012634 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012635 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012636 # The linker will automatically build a .lib file if we build a DLL.
12637 old_archive_From_new_cmds='true'
12638 # FIXME: Should let the user specify the lib program.
12639 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12640 fix_srcfile_path='`cygpath -w "$srcfile"`'
12641 enable_shared_with_static_runtimes=yes
12642 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012643
John Criswell47fdd832003-07-14 16:52:07 +000012644 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012645 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012646 rhapsody* | darwin1.[012])
12647 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12648 ;;
12649 *) # Darwin 1.3 on
12650 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12651 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12652 else
12653 case ${MACOSX_DEPLOYMENT_TARGET} in
12654 10.[012])
12655 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12656 ;;
12657 10.*)
12658 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12659 ;;
12660 esac
12661 fi
12662 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012663 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012664 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012665 hardcode_direct=no
12666 hardcode_automatic=yes
12667 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012668 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012669 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012670 if test "$GCC" = yes ; then
12671 output_verbose_link_cmd='echo'
12672 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12673 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12674 # 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 +000012675 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}'
12676 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 +000012677 else
12678 case "$cc_basename" in
12679 xlc*)
12680 output_verbose_link_cmd='echo'
12681 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12682 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12683 # 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 +000012684 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}'
12685 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 +000012686 ;;
12687 *)
12688 ld_shlibs=no
12689 ;;
12690 esac
John Criswell7a73b802003-06-30 21:59:07 +000012691 fi
John Criswell47fdd832003-07-14 16:52:07 +000012692 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012693
John Criswell47fdd832003-07-14 16:52:07 +000012694 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012696 hardcode_libdir_flag_spec='-L$libdir'
12697 hardcode_shlibpath_var=no
12698 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012699
John Criswell47fdd832003-07-14 16:52:07 +000012700 freebsd1*)
12701 ld_shlibs=no
12702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012703
John Criswell47fdd832003-07-14 16:52:07 +000012704 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12705 # support. Future versions do this automatically, but an explicit c++rt0.o
12706 # does not break anything, and helps significantly (at the cost of a little
12707 # extra space).
12708 freebsd2.2*)
12709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12710 hardcode_libdir_flag_spec='-R$libdir'
12711 hardcode_direct=yes
12712 hardcode_shlibpath_var=no
12713 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012714
John Criswell47fdd832003-07-14 16:52:07 +000012715 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12716 freebsd2*)
12717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12718 hardcode_direct=yes
12719 hardcode_minus_L=yes
12720 hardcode_shlibpath_var=no
12721 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012722
John Criswell47fdd832003-07-14 16:52:07 +000012723 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012724 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012725 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12726 hardcode_libdir_flag_spec='-R$libdir'
12727 hardcode_direct=yes
12728 hardcode_shlibpath_var=no
12729 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012730
John Criswell47fdd832003-07-14 16:52:07 +000012731 hpux9*)
12732 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012733 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 +000012734 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012735 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 +000012736 fi
12737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12738 hardcode_libdir_separator=:
12739 hardcode_direct=yes
12740
12741 # hardcode_minus_L: Not really in the search PATH,
12742 # but as the default location of the library.
12743 hardcode_minus_L=yes
12744 export_dynamic_flag_spec='${wl}-E'
12745 ;;
12746
12747 hpux10* | hpux11*)
12748 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12749 case "$host_cpu" in
12750 hppa*64*|ia64*)
12751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12752 ;;
12753 *)
12754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12755 ;;
12756 esac
12757 else
12758 case "$host_cpu" in
12759 hppa*64*|ia64*)
12760 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12761 ;;
12762 *)
12763 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12764 ;;
12765 esac
12766 fi
12767 if test "$with_gnu_ld" = no; then
12768 case "$host_cpu" in
12769 hppa*64*)
12770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12771 hardcode_libdir_flag_spec_ld='+b $libdir'
12772 hardcode_libdir_separator=:
12773 hardcode_direct=no
12774 hardcode_shlibpath_var=no
12775 ;;
12776 ia64*)
12777 hardcode_libdir_flag_spec='-L$libdir'
12778 hardcode_direct=no
12779 hardcode_shlibpath_var=no
12780
12781 # hardcode_minus_L: Not really in the search PATH,
12782 # but as the default location of the library.
12783 hardcode_minus_L=yes
12784 ;;
12785 *)
12786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12787 hardcode_libdir_separator=:
12788 hardcode_direct=yes
12789 export_dynamic_flag_spec='${wl}-E'
12790
12791 # hardcode_minus_L: Not really in the search PATH,
12792 # but as the default location of the library.
12793 hardcode_minus_L=yes
12794 ;;
12795 esac
12796 fi
12797 ;;
12798
12799 irix5* | irix6* | nonstopux*)
12800 if test "$GCC" = yes; then
12801 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'
12802 else
12803 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'
12804 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12805 fi
12806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12807 hardcode_libdir_separator=:
12808 link_all_deplibs=yes
12809 ;;
12810
12811 netbsd*)
12812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12814 else
12815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12816 fi
12817 hardcode_libdir_flag_spec='-R$libdir'
12818 hardcode_direct=yes
12819 hardcode_shlibpath_var=no
12820 ;;
12821
12822 newsos6)
12823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12824 hardcode_direct=yes
12825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12826 hardcode_libdir_separator=:
12827 hardcode_shlibpath_var=no
12828 ;;
12829
12830 openbsd*)
12831 hardcode_direct=yes
12832 hardcode_shlibpath_var=no
12833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012835 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 +000012836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12837 export_dynamic_flag_spec='${wl}-E'
12838 else
12839 case $host_os in
12840 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12842 hardcode_libdir_flag_spec='-R$libdir'
12843 ;;
12844 *)
12845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12847 ;;
12848 esac
12849 fi
12850 ;;
12851
12852 os2*)
12853 hardcode_libdir_flag_spec='-L$libdir'
12854 hardcode_minus_L=yes
12855 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012856 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 +000012857 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12858 ;;
12859
12860 osf3*)
12861 if test "$GCC" = yes; then
12862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12863 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'
12864 else
12865 allow_undefined_flag=' -expect_unresolved \*'
12866 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'
12867 fi
12868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12869 hardcode_libdir_separator=:
12870 ;;
12871
12872 osf4* | osf5*) # as osf3* with the addition of -msym flag
12873 if test "$GCC" = yes; then
12874 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12875 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'
12876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12877 else
12878 allow_undefined_flag=' -expect_unresolved \*'
12879 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 +000012880 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12881 $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'
12882
John Criswell47fdd832003-07-14 16:52:07 +000012883 # Both c and cxx compiler support -rpath directly
12884 hardcode_libdir_flag_spec='-rpath $libdir'
12885 fi
12886 hardcode_libdir_separator=:
12887 ;;
12888
12889 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012892 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012893 runpath_var=LD_RUN_PATH
12894 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012895 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012896
John Criswell47fdd832003-07-14 16:52:07 +000012897 solaris*)
12898 no_undefined_flag=' -z text'
12899 if test "$GCC" = yes; then
12900 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012901 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12902 $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 +000012903 else
12904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12906 $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 +000012907 fi
12908 hardcode_libdir_flag_spec='-R$libdir'
12909 hardcode_shlibpath_var=no
12910 case $host_os in
12911 solaris2.[0-5] | solaris2.[0-5].*) ;;
12912 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12914 esac
12915 link_all_deplibs=yes
12916 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012917
John Criswell47fdd832003-07-14 16:52:07 +000012918 sunos4*)
12919 if test "x$host_vendor" = xsequent; then
12920 # Use $CC to link under sequent, because it throws in some extra .o
12921 # files that make .init and .fini sections work.
12922 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12923 else
12924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12925 fi
12926 hardcode_libdir_flag_spec='-L$libdir'
12927 hardcode_direct=yes
12928 hardcode_minus_L=yes
12929 hardcode_shlibpath_var=no
12930 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012931
John Criswell47fdd832003-07-14 16:52:07 +000012932 sysv4)
12933 case $host_vendor in
12934 sni)
12935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_direct=yes # is this really true???
12937 ;;
12938 siemens)
12939 ## LD is ld it makes a PLAMLIB
12940 ## CC just makes a GrossModule.
12941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12942 reload_cmds='$CC -r -o $output$reload_objs'
12943 hardcode_direct=no
12944 ;;
12945 motorola)
12946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12948 ;;
12949 esac
12950 runpath_var='LD_RUN_PATH'
12951 hardcode_shlibpath_var=no
12952 ;;
12953
12954 sysv4.3*)
12955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12956 hardcode_shlibpath_var=no
12957 export_dynamic_flag_spec='-Bexport'
12958 ;;
12959
12960 sysv4*MP*)
12961 if test -d /usr/nec; then
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_shlibpath_var=no
12964 runpath_var=LD_RUN_PATH
12965 hardcode_runpath_var=yes
12966 ld_shlibs=yes
12967 fi
12968 ;;
12969
12970 sysv4.2uw2*)
12971 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12972 hardcode_direct=yes
12973 hardcode_minus_L=no
12974 hardcode_shlibpath_var=no
12975 hardcode_runpath_var=yes
12976 runpath_var=LD_RUN_PATH
12977 ;;
12978
12979 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12980 no_undefined_flag='${wl}-z ${wl}text'
12981 if test "$GCC" = yes; then
12982 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12983 else
12984 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12985 fi
12986 runpath_var='LD_RUN_PATH'
12987 hardcode_shlibpath_var=no
12988 ;;
12989
12990 sysv5*)
12991 no_undefined_flag=' -z text'
12992 # $CC -shared without GNU ld will not create a library from C++
12993 # object files and a static libstdc++, better avoid it by now
12994 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012995 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12996 $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 +000012997 hardcode_libdir_flag_spec=
12998 hardcode_shlibpath_var=no
12999 runpath_var='LD_RUN_PATH'
13000 ;;
13001
13002 uts4*)
13003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_libdir_flag_spec='-L$libdir'
13005 hardcode_shlibpath_var=no
13006 ;;
13007
13008 *)
13009 ld_shlibs=no
13010 ;;
13011 esac
13012 fi
13013
John Criswell7a73b802003-06-30 21:59:07 +000013014echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13015echo "${ECHO_T}$ld_shlibs" >&6
13016test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013017
John Criswell47fdd832003-07-14 16:52:07 +000013018variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13019if test "$GCC" = yes; then
13020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13021fi
13022
13023#
13024# Do we need to explicitly link libc?
13025#
13026case "x$archive_cmds_need_lc" in
13027x|xyes)
13028 # Assume -lc should be added
13029 archive_cmds_need_lc=yes
13030
13031 if test "$enable_shared" = yes && test "$GCC" = yes; then
13032 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013033 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013034 # FIXME: we may have to deal with multi-command sequences.
13035 ;;
13036 '$CC '*)
13037 # Test whether the compiler implicitly links with -lc since on some
13038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13039 # to ld, don't add -lc before -lgcc.
13040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13041echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13042 $rm conftest*
13043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13044
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } 2>conftest.err; then
13050 soname=conftest
13051 lib=conftest
13052 libobjs=conftest.$ac_objext
13053 deplibs=
13054 wl=$lt_prog_compiler_wl
13055 compiler_flags=-v
13056 linker_flags=-v
13057 verstring=
13058 output_objdir=.
13059 libname=conftest
13060 lt_save_allow_undefined_flag=$allow_undefined_flag
13061 allow_undefined_flag=
13062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13063 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }
13067 then
13068 archive_cmds_need_lc=no
13069 else
13070 archive_cmds_need_lc=yes
13071 fi
13072 allow_undefined_flag=$lt_save_allow_undefined_flag
13073 else
13074 cat conftest.err 1>&5
13075 fi
13076 $rm conftest*
13077 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13078echo "${ECHO_T}$archive_cmds_need_lc" >&6
13079 ;;
13080 esac
13081 fi
13082 ;;
13083esac
13084
John Criswell7a73b802003-06-30 21:59:07 +000013085echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13086echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13087library_names_spec=
13088libname_spec='lib$name'
13089soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013090shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013091postinstall_cmds=
13092postuninstall_cmds=
13093finish_cmds=
13094finish_eval=
13095shlibpath_var=
13096shlibpath_overrides_runpath=unknown
13097version_type=none
13098dynamic_linker="$host_os ld.so"
13099sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013100if test "$GCC" = yes; then
13101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13102 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13103 # if the path contains ";" then we assume it to be the separator
13104 # otherwise default to the standard path separator (i.e. ":") - it is
13105 # assumed that no part of a normal pathname contains ";" but that should
13106 # okay in the real world where ";" in dirpaths is itself problematic.
13107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13108 else
13109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13110 fi
13111else
13112 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13113fi
13114need_lib_prefix=unknown
13115hardcode_into_libs=no
13116
13117# when you set need_version to no, make sure it does not cause -set_version
13118# flags to be left without arguments
13119need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013120
13121case $host_os in
13122aix3*)
13123 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013125 shlibpath_var=LIBPATH
13126
John Criswell47fdd832003-07-14 16:52:07 +000013127 # AIX 3 has no versioning support, so we append a major version to the name.
13128 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013129 ;;
13130
13131aix4* | aix5*)
13132 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013133 need_lib_prefix=no
13134 need_version=no
13135 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013136 if test "$host_cpu" = ia64; then
13137 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013139 shlibpath_var=LD_LIBRARY_PATH
13140 else
13141 # With GCC up to 2.95.x, collect2 would create an import file
13142 # for dependence libraries. The import file would start with
13143 # the line `#! .'. This would cause the generated library to
13144 # depend on `.', always an invalid library. This was fixed in
13145 # development snapshots of GCC prior to 3.0.
13146 case $host_os in
13147 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13149 echo ' yes '
13150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13151 :
13152 else
13153 can_build_shared=no
13154 fi
13155 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013156 esac
John Criswell47fdd832003-07-14 16:52:07 +000013157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13158 # soname into executable. Probably we can add versioning support to
13159 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013160 if test "$aix_use_runtimelinking" = yes; then
13161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13162 # instead of lib<name>.a to let people know that these are not
13163 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013165 else
13166 # We preserve .a as extension for shared libraries through AIX4.2
13167 # and later when we are not doing run time linking.
13168 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013169 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013170 fi
13171 shlibpath_var=LIBPATH
13172 fi
13173 ;;
13174
13175amigaos*)
13176 library_names_spec='$libname.ixlibrary $libname.a'
13177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013178 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 +000013179 ;;
13180
13181beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013182 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013183 dynamic_linker="$host_os ld.so"
13184 shlibpath_var=LIBRARY_PATH
13185 ;;
13186
Reid Spencer2706f8c2004-09-19 23:53:36 +000013187bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013188 version_type=linux
13189 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013196 # the default ld.so.conf also contains /usr/contrib/lib and
13197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13198 # libtool to hard-code these into programs
13199 ;;
13200
13201cygwin* | mingw* | pw32*)
13202 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013203 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013204 need_version=no
13205 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013206
John Criswell7a73b802003-06-30 21:59:07 +000013207 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013208 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013209 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013211 postinstall_cmds='base_file=`basename \${file}`~
13212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13213 dldir=$destdir/`dirname \$dlpath`~
13214 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013215 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13217 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013218 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013219 shlibpath_overrides_runpath=yes
13220
13221 case $host_os in
13222 cygwin*)
13223 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13224 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 +000013225 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013226 ;;
13227 mingw*)
13228 # MinGW DLLs use traditional 'lib' prefix
13229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13231 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13232 # It is most probably a Windows format PATH printed by
13233 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13234 # path with ; separators, and with drive letters. We can handle the
13235 # drive letters (cygwin fileutils understands them), so leave them,
13236 # especially as we might pass files found there to a mingw objdump,
13237 # which wouldn't understand a cygwinified path. Ahh.
13238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13239 else
13240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13241 fi
13242 ;;
13243 pw32*)
13244 # pw32 DLLs use 'pw' prefix rather than 'lib'
13245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13246 ;;
13247 esac
John Criswell7a73b802003-06-30 21:59:07 +000013248 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013249
John Criswell7a73b802003-06-30 21:59:07 +000013250 *)
John Criswell47fdd832003-07-14 16:52:07 +000013251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013252 ;;
13253 esac
13254 dynamic_linker='Win32 ld.exe'
13255 # FIXME: first we should search . and the directory the executable is in
13256 shlibpath_var=PATH
13257 ;;
13258
13259darwin* | rhapsody*)
13260 dynamic_linker="$host_os dyld"
13261 version_type=darwin
13262 need_lib_prefix=no
13263 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013264 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013265 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013266 shlibpath_overrides_runpath=yes
13267 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013268 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013269 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013270 if test "$GCC" = yes; then
13271 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"`
13272 else
13273 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013274 fi
13275 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13276 ;;
13277
13278dgux*)
13279 version_type=linux
13280 need_lib_prefix=no
13281 need_version=no
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013285 ;;
13286
13287freebsd1*)
13288 dynamic_linker=no
13289 ;;
13290
Reid Spencer2706f8c2004-09-19 23:53:36 +000013291kfreebsd*-gnu)
13292 version_type=linux
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 hardcode_into_libs=yes
13300 dynamic_linker='GNU ld.so'
13301 ;;
13302
John Criswell7a73b802003-06-30 21:59:07 +000013303freebsd*)
13304 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13305 version_type=freebsd-$objformat
13306 case $version_type in
13307 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013309 need_version=no
13310 need_lib_prefix=no
13311 ;;
13312 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013314 need_version=yes
13315 ;;
13316 esac
13317 shlibpath_var=LD_LIBRARY_PATH
13318 case $host_os in
13319 freebsd2*)
13320 shlibpath_overrides_runpath=yes
13321 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013322 freebsd3.01* | freebsdelf3.01*)
13323 shlibpath_overrides_runpath=yes
13324 hardcode_into_libs=yes
13325 ;;
13326 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013327 shlibpath_overrides_runpath=no
13328 hardcode_into_libs=yes
13329 ;;
13330 esac
13331 ;;
13332
13333gnu*)
13334 version_type=linux
13335 need_lib_prefix=no
13336 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013339 shlibpath_var=LD_LIBRARY_PATH
13340 hardcode_into_libs=yes
13341 ;;
13342
13343hpux9* | hpux10* | hpux11*)
13344 # Give a soname corresponding to the major version so that dld.sl refuses to
13345 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013346 version_type=sunos
13347 need_lib_prefix=no
13348 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013349 case "$host_cpu" in
13350 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013351 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013352 hardcode_into_libs=yes
13353 dynamic_linker="$host_os dld.so"
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 if test "X$HPUX_IA64_MODE" = X32; then
13359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13360 else
13361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13362 fi
13363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13364 ;;
13365 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013366 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013367 hardcode_into_libs=yes
13368 dynamic_linker="$host_os dld.sl"
13369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372 soname_spec='${libname}${release}${shared_ext}$major'
13373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13375 ;;
13376 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013377 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013378 dynamic_linker="$host_os dld.sl"
13379 shlibpath_var=SHLIB_PATH
13380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 ;;
13384 esac
John Criswell7a73b802003-06-30 21:59:07 +000013385 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13386 postinstall_cmds='chmod 555 $lib'
13387 ;;
13388
John Criswell47fdd832003-07-14 16:52:07 +000013389irix5* | irix6* | nonstopux*)
13390 case $host_os in
13391 nonstopux*) version_type=nonstopux ;;
13392 *)
13393 if test "$lt_cv_prog_gnu_ld" = yes; then
13394 version_type=linux
13395 else
13396 version_type=irix
13397 fi ;;
13398 esac
John Criswell7a73b802003-06-30 21:59:07 +000013399 need_lib_prefix=no
13400 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013401 soname_spec='${libname}${release}${shared_ext}$major'
13402 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 +000013403 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013404 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013405 libsuff= shlibsuff=
13406 ;;
13407 *)
13408 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13410 libsuff= shlibsuff= libmagic=32-bit;;
13411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13412 libsuff=32 shlibsuff=N32 libmagic=N32;;
13413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013415 *) libsuff= shlibsuff= libmagic=never-match;;
13416 esac
13417 ;;
13418 esac
13419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13420 shlibpath_overrides_runpath=no
13421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013423 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013424 ;;
13425
13426# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013427linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013428 dynamic_linker=no
13429 ;;
13430
13431# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013432linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013433 version_type=linux
13434 need_lib_prefix=no
13435 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=no
13441 # This implies no fast_install, which is unacceptable.
13442 # Some rework will be needed to allow for fast_install
13443 # before this can be enabled.
13444 hardcode_into_libs=yes
13445
Reid Spencer2706f8c2004-09-19 23:53:36 +000013446 # Append ld.so.conf contents to the search path
13447 if test -f /etc/ld.so.conf; then
13448 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13450 fi
13451
John Criswell7a73b802003-06-30 21:59:07 +000013452 # We used to test for /lib/ld.so.1 and disable shared libraries on
13453 # powerpc, because MkLinux only supported shared libraries with the
13454 # GNU dynamic linker. Since this was broken with cross compilers,
13455 # most powerpc-linux boxes support dynamic linking these days and
13456 # people can always --disable-shared, the test was removed, and we
13457 # assume the GNU/Linux dynamic linker is in use.
13458 dynamic_linker='GNU/Linux ld.so'
13459 ;;
13460
Reid Spencer2706f8c2004-09-19 23:53:36 +000013461knetbsd*-gnu)
13462 version_type=linux
13463 need_lib_prefix=no
13464 need_version=no
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=no
13469 hardcode_into_libs=yes
13470 dynamic_linker='GNU ld.so'
13471 ;;
13472
John Criswell7a73b802003-06-30 21:59:07 +000013473netbsd*)
13474 version_type=sunos
13475 need_lib_prefix=no
13476 need_version=no
13477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480 dynamic_linker='NetBSD (a.out) ld.so'
13481 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013483 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013484 dynamic_linker='NetBSD ld.elf_so'
13485 fi
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 hardcode_into_libs=yes
13489 ;;
13490
13491newsos6)
13492 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes
13496 ;;
13497
Reid Spencer2706f8c2004-09-19 23:53:36 +000013498nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013499 version_type=linux
13500 need_lib_prefix=no
13501 need_version=no
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013504 shlibpath_var=LD_LIBRARY_PATH
13505 shlibpath_overrides_runpath=yes
13506 ;;
13507
13508openbsd*)
13509 version_type=sunos
13510 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013511 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13514 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013515 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 +000013516 case $host_os in
13517 openbsd2.[89] | openbsd2.[89].*)
13518 shlibpath_overrides_runpath=no
13519 ;;
13520 *)
13521 shlibpath_overrides_runpath=yes
13522 ;;
13523 esac
John Criswell7a73b802003-06-30 21:59:07 +000013524 else
13525 shlibpath_overrides_runpath=yes
13526 fi
John Criswell7a73b802003-06-30 21:59:07 +000013527 ;;
13528
13529os2*)
13530 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013531 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013532 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013533 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013534 dynamic_linker='OS/2 ld.exe'
13535 shlibpath_var=LIBPATH
13536 ;;
13537
13538osf3* | osf4* | osf5*)
13539 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013540 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013541 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013542 soname_spec='${libname}${release}${shared_ext}$major'
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013544 shlibpath_var=LD_LIBRARY_PATH
13545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13547 ;;
13548
13549sco3.2v5*)
13550 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013551 soname_spec='${libname}${release}${shared_ext}$major'
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013553 shlibpath_var=LD_LIBRARY_PATH
13554 ;;
13555
13556solaris*)
13557 version_type=linux
13558 need_lib_prefix=no
13559 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13564 hardcode_into_libs=yes
13565 # ldd complains unless libraries are executable
13566 postinstall_cmds='chmod +x $lib'
13567 ;;
13568
13569sunos4*)
13570 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 shlibpath_overrides_runpath=yes
13575 if test "$with_gnu_ld" = yes; then
13576 need_lib_prefix=no
13577 fi
13578 need_version=yes
13579 ;;
13580
13581sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13582 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013585 shlibpath_var=LD_LIBRARY_PATH
13586 case $host_vendor in
13587 sni)
13588 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013589 need_lib_prefix=no
13590 export_dynamic_flag_spec='${wl}-Blargedynsym'
13591 runpath_var=LD_RUN_PATH
13592 ;;
13593 siemens)
13594 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013595 ;;
13596 motorola)
13597 need_lib_prefix=no
13598 need_version=no
13599 shlibpath_overrides_runpath=no
13600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13601 ;;
13602 esac
13603 ;;
13604
John Criswell7a73b802003-06-30 21:59:07 +000013605sysv4*MP*)
13606 if test -d /usr/nec ;then
13607 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013608 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13609 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013610 shlibpath_var=LD_LIBRARY_PATH
13611 fi
13612 ;;
13613
John Criswell47fdd832003-07-14 16:52:07 +000013614uts4*)
13615 version_type=linux
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 ;;
13620
John Criswell7a73b802003-06-30 21:59:07 +000013621*)
13622 dynamic_linker=no
13623 ;;
13624esac
13625echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13626echo "${ECHO_T}$dynamic_linker" >&6
13627test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013628
Reid Spencer2706f8c2004-09-19 23:53:36 +000013629echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13631hardcode_action=
13632if test -n "$hardcode_libdir_flag_spec" || \
13633 test -n "$runpath_var" || \
13634 test "X$hardcode_automatic" = "Xyes" ; then
13635
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13642 test "$hardcode_minus_L" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action=relink
13645 else
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action=immediate
13648 fi
13649else
13650 # We cannot hardcode anything, or else we can only hardcode existing
13651 # directories.
13652 hardcode_action=unsupported
13653fi
13654echo "$as_me:$LINENO: result: $hardcode_action" >&5
13655echo "${ECHO_T}$hardcode_action" >&6
13656
13657if test "$hardcode_action" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13664fi
13665
13666striplib=
13667old_striplib=
13668echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673 echo "$as_me:$LINENO: result: yes" >&5
13674echo "${ECHO_T}yes" >&6
13675else
13676# FIXME - insert some real tests, host_os isn't really good enough
13677 case $host_os in
13678 darwin*)
13679 if test -n "$STRIP" ; then
13680 striplib="$STRIP -x"
13681 echo "$as_me:$LINENO: result: yes" >&5
13682echo "${ECHO_T}yes" >&6
13683 else
13684 echo "$as_me:$LINENO: result: no" >&5
13685echo "${ECHO_T}no" >&6
13686fi
13687 ;;
13688 *)
13689 echo "$as_me:$LINENO: result: no" >&5
13690echo "${ECHO_T}no" >&6
13691 ;;
13692 esac
13693fi
13694
John Criswell7a73b802003-06-30 21:59:07 +000013695if test "x$enable_dlopen" != xyes; then
13696 enable_dlopen=unknown
13697 enable_dlopen_self=unknown
13698 enable_dlopen_self_static=unknown
13699else
13700 lt_cv_dlopen=no
13701 lt_cv_dlopen_libs=
13702
13703 case $host_os in
13704 beos*)
13705 lt_cv_dlopen="load_add_on"
13706 lt_cv_dlopen_libs=
13707 lt_cv_dlopen_self=yes
13708 ;;
13709
John Criswell47fdd832003-07-14 16:52:07 +000013710 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013711 lt_cv_dlopen="LoadLibrary"
13712 lt_cv_dlopen_libs=
13713 ;;
13714
John Criswell47fdd832003-07-14 16:52:07 +000013715 cygwin*)
13716 lt_cv_dlopen="dlopen"
13717 lt_cv_dlopen_libs=
13718 ;;
13719
13720 darwin*)
13721 # if libdl is installed we need to link against it
13722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13723echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13724if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13726else
13727 ac_check_lib_save_LIBS=$LIBS
13728LIBS="-ldl $LIBS"
13729cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013735
13736/* Override any gcc2 internal prototype to avoid an error. */
13737#ifdef __cplusplus
13738extern "C"
13739#endif
13740/* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013743int
13744main ()
13745{
13746dlopen ();
13747 ;
13748 return 0;
13749}
13750_ACEOF
13751rm -f conftest.$ac_objext conftest$ac_exeext
13752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013753 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013760 { ac_try='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_lib_dl_dlopen=yes
13774else
13775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013776sed 's/^/| /' conftest.$ac_ext >&5
13777
John Criswell47fdd832003-07-14 16:52:07 +000013778ac_cv_lib_dl_dlopen=no
13779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013780rm -f conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013782LIBS=$ac_check_lib_save_LIBS
13783fi
13784echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13785echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13786if test $ac_cv_lib_dl_dlopen = yes; then
13787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13788else
13789
13790 lt_cv_dlopen="dyld"
13791 lt_cv_dlopen_libs=
13792 lt_cv_dlopen_self=yes
13793
13794fi
13795
13796 ;;
13797
John Criswell7a73b802003-06-30 21:59:07 +000013798 *)
13799 echo "$as_me:$LINENO: checking for shl_load" >&5
13800echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13801if test "${ac_cv_func_shl_load+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013805/* confdefs.h. */
13806_ACEOF
13807cat confdefs.h >>conftest.$ac_ext
13808cat >>conftest.$ac_ext <<_ACEOF
13809/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013810/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13812#define shl_load innocuous_shl_load
13813
John Criswell7a73b802003-06-30 21:59:07 +000013814/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013815 which can conflict with char shl_load (); below.
13816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13817 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818
John Criswell0c38eaf2003-09-10 15:17:25 +000013819#ifdef __STDC__
13820# include <limits.h>
13821#else
13822# include <assert.h>
13823#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013824
13825#undef shl_load
13826
John Criswell7a73b802003-06-30 21:59:07 +000013827/* Override any gcc2 internal prototype to avoid an error. */
13828#ifdef __cplusplus
13829extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013830{
John Criswell7a73b802003-06-30 21:59:07 +000013831#endif
13832/* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13834char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013835/* The GNU C library defines this for functions which it implements
13836 to always fail with ENOSYS. Some functions are actually named
13837 something starting with __ and the normal name is an alias. */
13838#if defined (__stub_shl_load) || defined (__stub___shl_load)
13839choke me
13840#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013841char (*f) () = shl_load;
13842#endif
13843#ifdef __cplusplus
13844}
John Criswell7a73b802003-06-30 21:59:07 +000013845#endif
13846
John Criswell0c38eaf2003-09-10 15:17:25 +000013847int
13848main ()
13849{
13850return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013851 ;
13852 return 0;
13853}
13854_ACEOF
13855rm -f conftest.$ac_objext conftest$ac_exeext
13856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013857 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013864 { ac_try='test -z "$ac_c_werror_flag"
13865 || test ! -s conftest.err'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } &&
13871 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_func_shl_load=yes
13878else
13879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013880sed 's/^/| /' conftest.$ac_ext >&5
13881
John Criswell7a73b802003-06-30 21:59:07 +000013882ac_cv_func_shl_load=no
13883fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013884rm -f conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013886fi
13887echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13888echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13889if test $ac_cv_func_shl_load = yes; then
13890 lt_cv_dlopen="shl_load"
13891else
13892 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13893echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13894if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13896else
13897 ac_check_lib_save_LIBS=$LIBS
13898LIBS="-ldld $LIBS"
13899cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013905
13906/* Override any gcc2 internal prototype to avoid an error. */
13907#ifdef __cplusplus
13908extern "C"
13909#endif
13910/* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013913int
13914main ()
13915{
13916shl_load ();
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext conftest$ac_exeext
13922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013923 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013930 { ac_try='test -z "$ac_c_werror_flag"
13931 || test ! -s conftest.err'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_lib_dld_shl_load=yes
13944else
13945 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013946sed 's/^/| /' conftest.$ac_ext >&5
13947
John Criswell7a73b802003-06-30 21:59:07 +000013948ac_cv_lib_dld_shl_load=no
13949fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013950rm -f conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013952LIBS=$ac_check_lib_save_LIBS
13953fi
13954echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13955echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13956if test $ac_cv_lib_dld_shl_load = yes; then
13957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13958else
13959 echo "$as_me:$LINENO: checking for dlopen" >&5
13960echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13961if test "${ac_cv_func_dlopen+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963else
13964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013970/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13972#define dlopen innocuous_dlopen
13973
John Criswell7a73b802003-06-30 21:59:07 +000013974/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013975 which can conflict with char dlopen (); below.
13976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13977 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013978
John Criswell0c38eaf2003-09-10 15:17:25 +000013979#ifdef __STDC__
13980# include <limits.h>
13981#else
13982# include <assert.h>
13983#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013984
13985#undef dlopen
13986
John Criswell7a73b802003-06-30 21:59:07 +000013987/* Override any gcc2 internal prototype to avoid an error. */
13988#ifdef __cplusplus
13989extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013990{
John Criswell7a73b802003-06-30 21:59:07 +000013991#endif
13992/* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013995/* The GNU C library defines this for functions which it implements
13996 to always fail with ENOSYS. Some functions are actually named
13997 something starting with __ and the normal name is an alias. */
13998#if defined (__stub_dlopen) || defined (__stub___dlopen)
13999choke me
14000#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014001char (*f) () = dlopen;
14002#endif
14003#ifdef __cplusplus
14004}
John Criswell7a73b802003-06-30 21:59:07 +000014005#endif
14006
John Criswell0c38eaf2003-09-10 15:17:25 +000014007int
14008main ()
14009{
14010return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014011 ;
14012 return 0;
14013}
14014_ACEOF
14015rm -f conftest.$ac_objext conftest$ac_exeext
14016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014017 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014018 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014024 { ac_try='test -z "$ac_c_werror_flag"
14025 || test ! -s conftest.err'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_func_dlopen=yes
14038else
14039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014040sed 's/^/| /' conftest.$ac_ext >&5
14041
John Criswell7a73b802003-06-30 21:59:07 +000014042ac_cv_func_dlopen=no
14043fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014044rm -f conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014046fi
14047echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14048echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14049if test $ac_cv_func_dlopen = yes; then
14050 lt_cv_dlopen="dlopen"
14051else
14052 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14053echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14054if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056else
14057 ac_check_lib_save_LIBS=$LIBS
14058LIBS="-ldl $LIBS"
14059cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014065
14066/* Override any gcc2 internal prototype to avoid an error. */
14067#ifdef __cplusplus
14068extern "C"
14069#endif
14070/* We use char because int might match the return type of a gcc2
14071 builtin and then its argument prototype would still apply. */
14072char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014073int
14074main ()
14075{
14076dlopen ();
14077 ;
14078 return 0;
14079}
14080_ACEOF
14081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014083 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014084 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_lib_dl_dlopen=yes
14104else
14105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014106sed 's/^/| /' conftest.$ac_ext >&5
14107
John Criswell7a73b802003-06-30 21:59:07 +000014108ac_cv_lib_dl_dlopen=no
14109fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014110rm -f conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014112LIBS=$ac_check_lib_save_LIBS
14113fi
14114echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14115echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14116if test $ac_cv_lib_dl_dlopen = yes; then
14117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14118else
14119 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14120echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14121if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124 ac_check_lib_save_LIBS=$LIBS
14125LIBS="-lsvld $LIBS"
14126cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014132
14133/* Override any gcc2 internal prototype to avoid an error. */
14134#ifdef __cplusplus
14135extern "C"
14136#endif
14137/* We use char because int might match the return type of a gcc2
14138 builtin and then its argument prototype would still apply. */
14139char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014140int
14141main ()
14142{
14143dlopen ();
14144 ;
14145 return 0;
14146}
14147_ACEOF
14148rm -f conftest.$ac_objext conftest$ac_exeext
14149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014150 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014157 { ac_try='test -z "$ac_c_werror_flag"
14158 || test ! -s conftest.err'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_lib_svld_dlopen=yes
14171else
14172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014173sed 's/^/| /' conftest.$ac_ext >&5
14174
John Criswell7a73b802003-06-30 21:59:07 +000014175ac_cv_lib_svld_dlopen=no
14176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014177rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014179LIBS=$ac_check_lib_save_LIBS
14180fi
14181echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14182echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14183if test $ac_cv_lib_svld_dlopen = yes; then
14184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14185else
14186 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14187echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14188if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190else
14191 ac_check_lib_save_LIBS=$LIBS
14192LIBS="-ldld $LIBS"
14193cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014194/* confdefs.h. */
14195_ACEOF
14196cat confdefs.h >>conftest.$ac_ext
14197cat >>conftest.$ac_ext <<_ACEOF
14198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014199
14200/* Override any gcc2 internal prototype to avoid an error. */
14201#ifdef __cplusplus
14202extern "C"
14203#endif
14204/* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14206char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014207int
14208main ()
14209{
14210dld_link ();
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext conftest$ac_exeext
14216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014217 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014224 { ac_try='test -z "$ac_c_werror_flag"
14225 || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_lib_dld_dld_link=yes
14238else
14239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014240sed 's/^/| /' conftest.$ac_ext >&5
14241
John Criswell7a73b802003-06-30 21:59:07 +000014242ac_cv_lib_dld_dld_link=no
14243fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014244rm -f conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014246LIBS=$ac_check_lib_save_LIBS
14247fi
14248echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14249echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14250if test $ac_cv_lib_dld_dld_link = yes; then
14251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14252fi
14253
14254
14255fi
14256
14257
14258fi
14259
14260
14261fi
14262
14263
14264fi
14265
14266
14267fi
14268
14269 ;;
14270 esac
14271
14272 if test "x$lt_cv_dlopen" != xno; then
14273 enable_dlopen=yes
14274 else
14275 enable_dlopen=no
14276 fi
14277
14278 case $lt_cv_dlopen in
14279 dlopen)
14280 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014282
14283 save_LDFLAGS="$LDFLAGS"
14284 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14285
14286 save_LIBS="$LIBS"
14287 LIBS="$lt_cv_dlopen_libs $LIBS"
14288
14289 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14290echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14291if test "${lt_cv_dlopen_self+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 if test "$cross_compiling" = yes; then :
14295 lt_cv_dlopen_self=cross
14296else
John Criswell47fdd832003-07-14 16:52:07 +000014297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014298 lt_status=$lt_dlunknown
14299 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +000014300#line 14300 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014301#include "confdefs.h"
14302
14303#if HAVE_DLFCN_H
14304#include <dlfcn.h>
14305#endif
14306
14307#include <stdio.h>
14308
14309#ifdef RTLD_GLOBAL
14310# define LT_DLGLOBAL RTLD_GLOBAL
14311#else
14312# ifdef DL_GLOBAL
14313# define LT_DLGLOBAL DL_GLOBAL
14314# else
14315# define LT_DLGLOBAL 0
14316# endif
14317#endif
14318
14319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14320 find out it does not work in some platform. */
14321#ifndef LT_DLLAZY_OR_NOW
14322# ifdef RTLD_LAZY
14323# define LT_DLLAZY_OR_NOW RTLD_LAZY
14324# else
14325# ifdef DL_LAZY
14326# define LT_DLLAZY_OR_NOW DL_LAZY
14327# else
14328# ifdef RTLD_NOW
14329# define LT_DLLAZY_OR_NOW RTLD_NOW
14330# else
14331# ifdef DL_NOW
14332# define LT_DLLAZY_OR_NOW DL_NOW
14333# else
14334# define LT_DLLAZY_OR_NOW 0
14335# endif
14336# endif
14337# endif
14338# endif
14339#endif
14340
14341#ifdef __cplusplus
14342extern "C" void exit (int);
14343#endif
14344
14345void fnord() { int i=42;}
14346int main ()
14347{
14348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14349 int status = $lt_dlunknown;
14350
14351 if (self)
14352 {
14353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14355 /* dlclose (self); */
14356 }
14357
14358 exit (status);
14359}
14360EOF
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14366 (./conftest; exit; ) 2>/dev/null
14367 lt_status=$?
14368 case x$lt_status in
14369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14371 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14372 esac
14373 else :
14374 # compilation failed
14375 lt_cv_dlopen_self=no
14376 fi
14377fi
14378rm -fr conftest*
14379
14380
14381fi
14382echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14383echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14384
14385 if test "x$lt_cv_dlopen_self" = xyes; then
14386 LDFLAGS="$LDFLAGS $link_static_flag"
14387 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14388echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14389if test "${lt_cv_dlopen_self_static+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391else
14392 if test "$cross_compiling" = yes; then :
14393 lt_cv_dlopen_self_static=cross
14394else
John Criswell47fdd832003-07-14 16:52:07 +000014395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014396 lt_status=$lt_dlunknown
14397 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +000014398#line 14398 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014399#include "confdefs.h"
14400
14401#if HAVE_DLFCN_H
14402#include <dlfcn.h>
14403#endif
14404
14405#include <stdio.h>
14406
14407#ifdef RTLD_GLOBAL
14408# define LT_DLGLOBAL RTLD_GLOBAL
14409#else
14410# ifdef DL_GLOBAL
14411# define LT_DLGLOBAL DL_GLOBAL
14412# else
14413# define LT_DLGLOBAL 0
14414# endif
14415#endif
14416
14417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14418 find out it does not work in some platform. */
14419#ifndef LT_DLLAZY_OR_NOW
14420# ifdef RTLD_LAZY
14421# define LT_DLLAZY_OR_NOW RTLD_LAZY
14422# else
14423# ifdef DL_LAZY
14424# define LT_DLLAZY_OR_NOW DL_LAZY
14425# else
14426# ifdef RTLD_NOW
14427# define LT_DLLAZY_OR_NOW RTLD_NOW
14428# else
14429# ifdef DL_NOW
14430# define LT_DLLAZY_OR_NOW DL_NOW
14431# else
14432# define LT_DLLAZY_OR_NOW 0
14433# endif
14434# endif
14435# endif
14436# endif
14437#endif
14438
14439#ifdef __cplusplus
14440extern "C" void exit (int);
14441#endif
14442
14443void fnord() { int i=42;}
14444int main ()
14445{
14446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14447 int status = $lt_dlunknown;
14448
14449 if (self)
14450 {
14451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14453 /* dlclose (self); */
14454 }
14455
14456 exit (status);
14457}
14458EOF
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14464 (./conftest; exit; ) 2>/dev/null
14465 lt_status=$?
14466 case x$lt_status in
14467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14469 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14470 esac
14471 else :
14472 # compilation failed
14473 lt_cv_dlopen_self_static=no
14474 fi
14475fi
14476rm -fr conftest*
14477
14478
14479fi
14480echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14481echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14482 fi
14483
14484 CPPFLAGS="$save_CPPFLAGS"
14485 LDFLAGS="$save_LDFLAGS"
14486 LIBS="$save_LIBS"
14487 ;;
14488 esac
14489
14490 case $lt_cv_dlopen_self in
14491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14492 *) enable_dlopen_self=unknown ;;
14493 esac
14494
14495 case $lt_cv_dlopen_self_static in
14496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14497 *) enable_dlopen_self_static=unknown ;;
14498 esac
14499fi
14500
14501
John Criswell47fdd832003-07-14 16:52:07 +000014502# Report which librarie types wil actually be built
14503echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14504echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14505echo "$as_me:$LINENO: result: $can_build_shared" >&5
14506echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014507
John Criswell47fdd832003-07-14 16:52:07 +000014508echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14509echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14510test "$can_build_shared" = "no" && enable_shared=no
14511
14512# On AIX, shared libraries and static libraries use the same namespace, and
14513# are all built from PIC.
14514case "$host_os" in
14515aix3*)
14516 test "$enable_shared" = yes && enable_static=no
14517 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014519 postinstall_cmds='$RANLIB $lib'
14520 fi
14521 ;;
14522
Reid Spencer2706f8c2004-09-19 23:53:36 +000014523aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14525 test "$enable_shared" = yes && enable_static=no
14526 fi
John Criswell7a73b802003-06-30 21:59:07 +000014527 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014528esac
14529echo "$as_me:$LINENO: result: $enable_shared" >&5
14530echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014531
John Criswell47fdd832003-07-14 16:52:07 +000014532echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14533echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14534# Make sure either enable_shared or enable_static is yes.
14535test "$enable_shared" = yes || enable_static=yes
14536echo "$as_me:$LINENO: result: $enable_static" >&5
14537echo "${ECHO_T}$enable_static" >&6
14538
14539# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014540# libtool distribution, otherwise you forgot to ship ltmain.sh
14541# with your package, and you will get complaints that there are
14542# no rules to generate ltmain.sh.
14543if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014544 # See if we are running on zsh, and set the options which allow our commands through
14545 # without removal of \ escapes.
14546 if test -n "${ZSH_VERSION+set}" ; then
14547 setopt NO_GLOB_SUBST
14548 fi
John Criswell7a73b802003-06-30 21:59:07 +000014549 # Now quote all the things that may contain metacharacters while being
14550 # careful not to overquote the AC_SUBSTed values. We take copies of the
14551 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14553 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14556 deplibs_check_method reload_flag reload_cmds need_locks \
14557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14558 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014560 old_postinstall_cmds old_postuninstall_cmds \
14561 compiler \
14562 CC \
14563 LD \
14564 lt_prog_compiler_wl \
14565 lt_prog_compiler_pic \
14566 lt_prog_compiler_static \
14567 lt_prog_compiler_no_builtin_flag \
14568 export_dynamic_flag_spec \
14569 thread_safe_flag_spec \
14570 whole_archive_flag_spec \
14571 enable_shared_with_static_runtimes \
14572 old_archive_cmds \
14573 old_archive_from_new_cmds \
14574 predep_objects \
14575 postdep_objects \
14576 predeps \
14577 postdeps \
14578 compiler_lib_search_path \
14579 archive_cmds \
14580 archive_expsym_cmds \
14581 postinstall_cmds \
14582 postuninstall_cmds \
14583 old_archive_from_expsyms_cmds \
14584 allow_undefined_flag \
14585 no_undefined_flag \
14586 export_symbols_cmds \
14587 hardcode_libdir_flag_spec \
14588 hardcode_libdir_flag_spec_ld \
14589 hardcode_libdir_separator \
14590 hardcode_automatic \
14591 module_cmds \
14592 module_expsym_cmds \
14593 lt_cv_prog_compiler_c_o \
14594 exclude_expsyms \
14595 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014596
14597 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014598 old_archive_cmds | \
14599 old_archive_from_new_cmds | \
14600 archive_cmds | \
14601 archive_expsym_cmds | \
14602 module_cmds | \
14603 module_expsym_cmds | \
14604 old_archive_from_expsyms_cmds | \
14605 export_symbols_cmds | \
14606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014607 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014608 old_postinstall_cmds | old_postuninstall_cmds | \
14609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014610 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014611 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 +000014612 ;;
14613 *)
14614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14615 ;;
14616 esac
14617 done
14618
John Criswell47fdd832003-07-14 16:52:07 +000014619 case $lt_echo in
14620 *'\$0 --fallback-echo"')
14621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14622 ;;
14623 esac
14624
14625cfgfile="${ofile}T"
14626 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14627 $rm -f "$cfgfile"
14628 { echo "$as_me:$LINENO: creating $ofile" >&5
14629echo "$as_me: creating $ofile" >&6;}
14630
14631 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014632#! $SHELL
14633
John Criswell47fdd832003-07-14 16:52:07 +000014634# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014635# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14636# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14637#
John Criswell47fdd832003-07-14 16:52:07 +000014638# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14639# Free Software Foundation, Inc.
14640#
14641# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014642# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14643#
14644# This program is free software; you can redistribute it and/or modify
14645# it under the terms of the GNU General Public License as published by
14646# the Free Software Foundation; either version 2 of the License, or
14647# (at your option) any later version.
14648#
14649# This program is distributed in the hope that it will be useful, but
14650# WITHOUT ANY WARRANTY; without even the implied warranty of
14651# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14652# General Public License for more details.
14653#
14654# You should have received a copy of the GNU General Public License
14655# along with this program; if not, write to the Free Software
14656# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14657#
14658# As a special exception to the GNU General Public License, if you
14659# distribute this file as part of a program that contains a
14660# configuration script generated by Autoconf, you may include it under
14661# the same distribution terms that you use for the rest of that program.
14662
John Criswell47fdd832003-07-14 16:52:07 +000014663# A sed program that does not truncate output.
14664SED=$lt_SED
14665
John Criswell7a73b802003-06-30 21:59:07 +000014666# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014667Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014668
14669# The HP-UX ksh and POSIX shell print the target directory to stdout
14670# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014671(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014672
John Criswell47fdd832003-07-14 16:52:07 +000014673# The names of the tagged configurations supported by this script.
14674available_tags=
14675
John Criswell7a73b802003-06-30 21:59:07 +000014676# ### BEGIN LIBTOOL CONFIG
14677
14678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14679
14680# Shell to use when invoking shell scripts.
14681SHELL=$lt_SHELL
14682
14683# Whether or not to build shared libraries.
14684build_libtool_libs=$enable_shared
14685
14686# Whether or not to build static libraries.
14687build_old_libs=$enable_static
14688
14689# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014690build_libtool_need_lc=$archive_cmds_need_lc
14691
14692# Whether or not to disallow shared libs when runtime libs are static
14693allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014694
14695# Whether or not to optimize for fast installation.
14696fast_install=$enable_fast_install
14697
14698# The host system.
14699host_alias=$host_alias
14700host=$host
14701
14702# An echo program that does not interpret backslashes.
14703echo=$lt_echo
14704
14705# The archiver.
14706AR=$lt_AR
14707AR_FLAGS=$lt_AR_FLAGS
14708
John Criswell47fdd832003-07-14 16:52:07 +000014709# A C compiler.
14710LTCC=$lt_LTCC
14711
14712# A language-specific compiler.
14713CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014714
14715# Is the compiler the GNU C compiler?
14716with_gcc=$GCC
14717
John Criswell47fdd832003-07-14 16:52:07 +000014718# An ERE matcher.
14719EGREP=$lt_EGREP
14720
John Criswell7a73b802003-06-30 21:59:07 +000014721# The linker used to build libraries.
14722LD=$lt_LD
14723
14724# Whether we need hard or soft links.
14725LN_S=$lt_LN_S
14726
14727# A BSD-compatible nm program.
14728NM=$lt_NM
14729
14730# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014731STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014732
14733# Used to examine libraries when file_magic_cmd begins "file"
14734MAGIC_CMD=$MAGIC_CMD
14735
14736# Used on cygwin: DLL creation program.
14737DLLTOOL="$DLLTOOL"
14738
14739# Used on cygwin: object dumper.
14740OBJDUMP="$OBJDUMP"
14741
14742# Used on cygwin: assembler.
14743AS="$AS"
14744
14745# The name of the directory that contains temporary libtool files.
14746objdir=$objdir
14747
14748# How to create reloadable object files.
14749reload_flag=$lt_reload_flag
14750reload_cmds=$lt_reload_cmds
14751
14752# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014753wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014754
14755# Object file suffix (normally "o").
14756objext="$ac_objext"
14757
14758# Old archive suffix (normally "a").
14759libext="$libext"
14760
John Criswell47fdd832003-07-14 16:52:07 +000014761# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014762shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014763
John Criswell7a73b802003-06-30 21:59:07 +000014764# Executable file suffix (normally "").
14765exeext="$exeext"
14766
14767# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014768pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014769pic_mode=$pic_mode
14770
John Criswell47fdd832003-07-14 16:52:07 +000014771# What is the maximum length of a command?
14772max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014773
John Criswell47fdd832003-07-14 16:52:07 +000014774# Does compiler simultaneously support -c and -o options?
14775compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014776
14777# Must we lock files when doing compilation ?
14778need_locks=$lt_need_locks
14779
14780# Do we need the lib prefix for modules?
14781need_lib_prefix=$need_lib_prefix
14782
14783# Do we need a version for libraries?
14784need_version=$need_version
14785
14786# Whether dlopen is supported.
14787dlopen_support=$enable_dlopen
14788
14789# Whether dlopen of programs is supported.
14790dlopen_self=$enable_dlopen_self
14791
14792# Whether dlopen of statically linked programs is supported.
14793dlopen_self_static=$enable_dlopen_self_static
14794
14795# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014796link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014797
14798# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014800
14801# Compiler flag to allow reflexive dlopens.
14802export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14803
14804# Compiler flag to generate shared objects directly from archives.
14805whole_archive_flag_spec=$lt_whole_archive_flag_spec
14806
14807# Compiler flag to generate thread-safe objects.
14808thread_safe_flag_spec=$lt_thread_safe_flag_spec
14809
14810# Library versioning type.
14811version_type=$version_type
14812
14813# Format of library name prefix.
14814libname_spec=$lt_libname_spec
14815
14816# List of archive names. First name is the real one, the rest are links.
14817# The last name is the one that the linker finds with -lNAME.
14818library_names_spec=$lt_library_names_spec
14819
14820# The coded name of the library, if different from the real name.
14821soname_spec=$lt_soname_spec
14822
14823# Commands used to build and install an old-style archive.
14824RANLIB=$lt_RANLIB
14825old_archive_cmds=$lt_old_archive_cmds
14826old_postinstall_cmds=$lt_old_postinstall_cmds
14827old_postuninstall_cmds=$lt_old_postuninstall_cmds
14828
14829# Create an old-style archive from a shared archive.
14830old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14831
14832# Create a temporary old-style archive to link instead of a shared archive.
14833old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14834
14835# Commands used to build and install a shared archive.
14836archive_cmds=$lt_archive_cmds
14837archive_expsym_cmds=$lt_archive_expsym_cmds
14838postinstall_cmds=$lt_postinstall_cmds
14839postuninstall_cmds=$lt_postuninstall_cmds
14840
John Criswell47fdd832003-07-14 16:52:07 +000014841# Commands used to build a loadable module (assumed same as above if empty)
14842module_cmds=$lt_module_cmds
14843module_expsym_cmds=$lt_module_expsym_cmds
14844
John Criswell7a73b802003-06-30 21:59:07 +000014845# Commands to strip libraries.
14846old_striplib=$lt_old_striplib
14847striplib=$lt_striplib
14848
John Criswell47fdd832003-07-14 16:52:07 +000014849# Dependencies to place before the objects being linked to create a
14850# shared library.
14851predep_objects=$lt_predep_objects
14852
14853# Dependencies to place after the objects being linked to create a
14854# shared library.
14855postdep_objects=$lt_postdep_objects
14856
14857# Dependencies to place before the objects being linked to create a
14858# shared library.
14859predeps=$lt_predeps
14860
14861# Dependencies to place after the objects being linked to create a
14862# shared library.
14863postdeps=$lt_postdeps
14864
14865# The library search path used internally by the compiler when linking
14866# a shared library.
14867compiler_lib_search_path=$lt_compiler_lib_search_path
14868
John Criswell7a73b802003-06-30 21:59:07 +000014869# Method to check whether dependent libraries are shared objects.
14870deplibs_check_method=$lt_deplibs_check_method
14871
14872# Command to use when deplibs_check_method == file_magic.
14873file_magic_cmd=$lt_file_magic_cmd
14874
14875# Flag that allows shared libraries with undefined symbols to be built.
14876allow_undefined_flag=$lt_allow_undefined_flag
14877
14878# Flag that forces no undefined symbols.
14879no_undefined_flag=$lt_no_undefined_flag
14880
14881# Commands used to finish a libtool library installation in a directory.
14882finish_cmds=$lt_finish_cmds
14883
14884# Same as above, but a single script fragment to be evaled but not shown.
14885finish_eval=$lt_finish_eval
14886
14887# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014888global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014889
14890# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014891global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014892
14893# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014894global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014895
14896# This is the shared library runtime path variable.
14897runpath_var=$runpath_var
14898
14899# This is the shared library path variable.
14900shlibpath_var=$shlibpath_var
14901
14902# Is shlibpath searched before the hard-coded library search path?
14903shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14904
14905# How to hardcode a shared library path into an executable.
14906hardcode_action=$hardcode_action
14907
14908# Whether we should hardcode library paths into libraries.
14909hardcode_into_libs=$hardcode_into_libs
14910
14911# Flag to hardcode \$libdir into a binary during linking.
14912# This must work even if \$libdir does not exist.
14913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14914
John Criswell47fdd832003-07-14 16:52:07 +000014915# If ld is used when linking, flag to hardcode \$libdir into
14916# a binary during linking. This must work even if \$libdir does
14917# not exist.
14918hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14919
John Criswell7a73b802003-06-30 21:59:07 +000014920# Whether we need a single -rpath flag with a separated argument.
14921hardcode_libdir_separator=$lt_hardcode_libdir_separator
14922
John Criswell47fdd832003-07-14 16:52:07 +000014923# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014924# resulting binary.
14925hardcode_direct=$hardcode_direct
14926
14927# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14928# resulting binary.
14929hardcode_minus_L=$hardcode_minus_L
14930
14931# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14932# the resulting binary.
14933hardcode_shlibpath_var=$hardcode_shlibpath_var
14934
John Criswell47fdd832003-07-14 16:52:07 +000014935# Set to yes if building a shared library automatically hardcodes DIR into the library
14936# and all subsequent libraries and executables linked against it.
14937hardcode_automatic=$hardcode_automatic
14938
John Criswell7a73b802003-06-30 21:59:07 +000014939# Variables whose values should be saved in libtool wrapper scripts and
14940# restored at relink time.
14941variables_saved_for_relink="$variables_saved_for_relink"
14942
14943# Whether libtool must link a program against all its dependency libraries.
14944link_all_deplibs=$link_all_deplibs
14945
14946# Compile-time system search path for libraries
14947sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14948
14949# Run-time system search path for libraries
14950sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14951
14952# Fix the shell variable \$srcfile for the compiler.
14953fix_srcfile_path="$fix_srcfile_path"
14954
14955# Set to yes if exported symbols are required.
14956always_export_symbols=$always_export_symbols
14957
14958# The commands to list exported symbols.
14959export_symbols_cmds=$lt_export_symbols_cmds
14960
14961# The commands to extract the exported symbol list from a shared archive.
14962extract_expsyms_cmds=$lt_extract_expsyms_cmds
14963
14964# Symbols that should not be listed in the preloaded symbols.
14965exclude_expsyms=$lt_exclude_expsyms
14966
14967# Symbols that must always be exported.
14968include_expsyms=$lt_include_expsyms
14969
14970# ### END LIBTOOL CONFIG
14971
14972__EOF__
14973
John Criswell47fdd832003-07-14 16:52:07 +000014974
John Criswell7a73b802003-06-30 21:59:07 +000014975 case $host_os in
14976 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014977 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014978
14979# AIX sometimes has problems with the GCC collect2 program. For some
14980# reason, if we set the COLLECT_NAMES environment variable, the problems
14981# vanish in a puff of smoke.
14982if test "X${COLLECT_NAMES+set}" != Xset; then
14983 COLLECT_NAMES=
14984 export COLLECT_NAMES
14985fi
14986EOF
14987 ;;
14988 esac
14989
John Criswell7a73b802003-06-30 21:59:07 +000014990 # We use sed instead of cat because bash on DJGPP gets confused if
14991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14992 # text mode, it properly converts lines to CR/LF. This bash problem
14993 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014994 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014995
John Criswell47fdd832003-07-14 16:52:07 +000014996 mv -f "$cfgfile" "$ofile" || \
14997 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014998 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014999
15000else
15001 # If there is no Makefile yet, we rely on a make rule to execute
15002 # `config.status --recheck' to rerun these tests and create the
15003 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015004 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15005 if test -f "$ltmain_in"; then
15006 test -f Makefile && make "$ltmain"
15007 fi
John Criswell7a73b802003-06-30 21:59:07 +000015008fi
John Criswell7a73b802003-06-30 21:59:07 +000015009
15010
John Criswell47fdd832003-07-14 16:52:07 +000015011ac_ext=c
15012ac_cpp='$CPP $CPPFLAGS'
15013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017CC="$lt_save_CC"
15018
15019
15020# Check whether --with-tags or --without-tags was given.
15021if test "${with_tags+set}" = set; then
15022 withval="$with_tags"
15023 tagnames="$withval"
15024fi;
15025
15026if test -f "$ltmain" && test -n "$tagnames"; then
15027 if test ! -f "${ofile}"; then
15028 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15029echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15030 fi
15031
15032 if test -z "$LTCC"; then
15033 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15034 if test -z "$LTCC"; then
15035 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15036echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15037 else
15038 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15039echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15040 fi
15041 fi
15042
15043 # Extract list of available tagged configurations in $ofile.
15044 # Note that this assumes the entire list is on one line.
15045 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15046
15047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15048 for tagname in $tagnames; do
15049 IFS="$lt_save_ifs"
15050 # Check whether tagname contains only valid characters
15051 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15052 "") ;;
15053 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15054echo "$as_me: error: invalid tag name: $tagname" >&2;}
15055 { (exit 1); exit 1; }; }
15056 ;;
15057 esac
15058
15059 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15060 then
15061 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15062echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15063 { (exit 1); exit 1; }; }
15064 fi
15065
15066 # Update the list of available tags.
15067 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015068 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015069
15070 case $tagname in
15071 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015072 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15073 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15074 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015075 ac_ext=cc
15076ac_cpp='$CXXCPP $CPPFLAGS'
15077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15080
15081
15082
15083
15084archive_cmds_need_lc_CXX=no
15085allow_undefined_flag_CXX=
15086always_export_symbols_CXX=no
15087archive_expsym_cmds_CXX=
15088export_dynamic_flag_spec_CXX=
15089hardcode_direct_CXX=no
15090hardcode_libdir_flag_spec_CXX=
15091hardcode_libdir_flag_spec_ld_CXX=
15092hardcode_libdir_separator_CXX=
15093hardcode_minus_L_CXX=no
15094hardcode_automatic_CXX=no
15095module_cmds_CXX=
15096module_expsym_cmds_CXX=
15097link_all_deplibs_CXX=unknown
15098old_archive_cmds_CXX=$old_archive_cmds
15099no_undefined_flag_CXX=
15100whole_archive_flag_spec_CXX=
15101enable_shared_with_static_runtimes_CXX=no
15102
15103# Dependencies to place before and after the object being linked:
15104predep_objects_CXX=
15105postdep_objects_CXX=
15106predeps_CXX=
15107postdeps_CXX=
15108compiler_lib_search_path_CXX=
15109
15110# Source file extension for C++ test sources.
15111ac_ext=cc
15112
15113# Object file extension for compiled C++ test sources.
15114objext=o
15115objext_CXX=$objext
15116
15117# Code to be used in simple compile tests
15118lt_simple_compile_test_code="int some_variable = 0;\n"
15119
15120# Code to be used in simple link tests
15121lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15122
15123# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15124
15125# If no C compiler was specified, use CC.
15126LTCC=${LTCC-"$CC"}
15127
15128# Allow CC to be a program name with arguments.
15129compiler=$CC
15130
15131
15132# Allow CC to be a program name with arguments.
15133lt_save_CC=$CC
15134lt_save_LD=$LD
15135lt_save_GCC=$GCC
15136GCC=$GXX
15137lt_save_with_gnu_ld=$with_gnu_ld
15138lt_save_path_LD=$lt_cv_path_LD
15139if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15140 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15141else
15142 unset lt_cv_prog_gnu_ld
15143fi
15144if test -n "${lt_cv_path_LDCXX+set}"; then
15145 lt_cv_path_LD=$lt_cv_path_LDCXX
15146else
15147 unset lt_cv_path_LD
15148fi
15149test -z "${LDCXX+set}" || LD=$LDCXX
15150CC=${CXX-"c++"}
15151compiler=$CC
15152compiler_CXX=$CC
15153cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15154
15155# We don't want -fno-exception wen compiling C++ code, so set the
15156# no_builtin_flag separately
15157if test "$GXX" = yes; then
15158 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15159else
15160 lt_prog_compiler_no_builtin_flag_CXX=
15161fi
15162
15163if test "$GXX" = yes; then
15164 # Set up default GNU C++ configuration
15165
15166
15167# Check whether --with-gnu-ld or --without-gnu-ld was given.
15168if test "${with_gnu_ld+set}" = set; then
15169 withval="$with_gnu_ld"
15170 test "$withval" = no || with_gnu_ld=yes
15171else
15172 with_gnu_ld=no
15173fi;
15174ac_prog=ld
15175if test "$GCC" = yes; then
15176 # Check if gcc -print-prog-name=ld gives a path.
15177 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15178echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15179 case $host in
15180 *-*-mingw*)
15181 # gcc leaves a trailing carriage return which upsets mingw
15182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15183 *)
15184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15185 esac
15186 case $ac_prog in
15187 # Accept absolute paths.
15188 [\\/]* | ?:[\\/]*)
15189 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015190 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015191 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15193 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15194 done
15195 test -z "$LD" && LD="$ac_prog"
15196 ;;
15197 "")
15198 # If it fails, then pretend we aren't using GCC.
15199 ac_prog=ld
15200 ;;
15201 *)
15202 # If it is relative, then search for the first ld in PATH.
15203 with_gnu_ld=unknown
15204 ;;
15205 esac
15206elif test "$with_gnu_ld" = yes; then
15207 echo "$as_me:$LINENO: checking for GNU ld" >&5
15208echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15209else
15210 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15211echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15212fi
15213if test "${lt_cv_path_LD+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215else
15216 if test -z "$LD"; then
15217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15218 for ac_dir in $PATH; do
15219 IFS="$lt_save_ifs"
15220 test -z "$ac_dir" && ac_dir=.
15221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15222 lt_cv_path_LD="$ac_dir/$ac_prog"
15223 # Check to see if the program is GNU ld. I'd rather use --version,
15224 # but apparently some GNU ld's only accept -v.
15225 # Break only if it was the GNU/non-GNU ld that we prefer.
15226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15227 *GNU* | *'with BFD'*)
15228 test "$with_gnu_ld" != no && break
15229 ;;
15230 *)
15231 test "$with_gnu_ld" != yes && break
15232 ;;
15233 esac
15234 fi
15235 done
15236 IFS="$lt_save_ifs"
15237else
15238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15239fi
15240fi
15241
15242LD="$lt_cv_path_LD"
15243if test -n "$LD"; then
15244 echo "$as_me:$LINENO: result: $LD" >&5
15245echo "${ECHO_T}$LD" >&6
15246else
15247 echo "$as_me:$LINENO: result: no" >&5
15248echo "${ECHO_T}no" >&6
15249fi
15250test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15251echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15252 { (exit 1); exit 1; }; }
15253echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15254echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15255if test "${lt_cv_prog_gnu_ld+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257else
15258 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015259case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015260*GNU* | *'with BFD'*)
15261 lt_cv_prog_gnu_ld=yes
15262 ;;
15263*)
15264 lt_cv_prog_gnu_ld=no
15265 ;;
15266esac
15267fi
15268echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15269echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15270with_gnu_ld=$lt_cv_prog_gnu_ld
15271
15272
15273
15274 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15275 # archiving commands below assume that GNU ld is being used.
15276 if test "$with_gnu_ld" = yes; then
15277 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15278 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'
15279
15280 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15282
15283 # If archive_cmds runs LD, not CC, wlarc should be empty
15284 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15285 # investigate it a little bit more. (MM)
15286 wlarc='${wl}'
15287
15288 # ancient GNU ld didn't support --whole-archive et. al.
15289 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15290 grep 'no-whole-archive' > /dev/null; then
15291 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15292 else
15293 whole_archive_flag_spec_CXX=
15294 fi
15295 else
15296 with_gnu_ld=no
15297 wlarc=
15298
15299 # A generic and very simple default shared library creation
15300 # command for GNU C++ for the case where it uses the native
15301 # linker, instead of GNU ld. If possible, this setting should
15302 # overridden to take advantage of the native linker features on
15303 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015305 fi
15306
15307 # Commands to make compiler produce verbose output that lists
15308 # what "hidden" libraries, object files and flags are used when
15309 # linking a shared library.
15310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15311
15312else
15313 GXX=no
15314 with_gnu_ld=no
15315 wlarc=
15316fi
15317
15318# PORTME: fill in a description of your system's C++ link characteristics
15319echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15320echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15321ld_shlibs_CXX=yes
15322case $host_os in
15323 aix3*)
15324 # FIXME: insert proper C++ library support
15325 ld_shlibs_CXX=no
15326 ;;
15327 aix4* | aix5*)
15328 if test "$host_cpu" = ia64; then
15329 # On IA64, the linker does run time linking by default, so we don't
15330 # have to do anything special.
15331 aix_use_runtimelinking=no
15332 exp_sym_flag='-Bexport'
15333 no_entry_flag=""
15334 else
15335 aix_use_runtimelinking=no
15336
15337 # Test if we are trying to use run time linking or normal
15338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15339 # need to do runtime linking.
15340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15341 for ld_flag in $LDFLAGS; do
15342 case $ld_flag in
15343 *-brtl*)
15344 aix_use_runtimelinking=yes
15345 break
15346 ;;
15347 esac
15348 done
15349 esac
15350
15351 exp_sym_flag='-bexport'
15352 no_entry_flag='-bnoentry'
15353 fi
15354
15355 # When large executables or shared objects are built, AIX ld can
15356 # have problems creating the table of contents. If linking a library
15357 # or program results in "error TOC overflow" add -mminimal-toc to
15358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15360
15361 archive_cmds_CXX=''
15362 hardcode_direct_CXX=yes
15363 hardcode_libdir_separator_CXX=':'
15364 link_all_deplibs_CXX=yes
15365
15366 if test "$GXX" = yes; then
15367 case $host_os in aix4.012|aix4.012.*)
15368 # We only want to do this on AIX 4.2 and lower, the check
15369 # below for broken collect2 doesn't work under 4.3+
15370 collect2name=`${CC} -print-prog-name=collect2`
15371 if test -f "$collect2name" && \
15372 strings "$collect2name" | grep resolve_lib_name >/dev/null
15373 then
15374 # We have reworked collect2
15375 hardcode_direct_CXX=yes
15376 else
15377 # We have old collect2
15378 hardcode_direct_CXX=unsupported
15379 # It fails to find uninstalled libraries when the uninstalled
15380 # path is not listed in the libpath. Setting hardcode_minus_L
15381 # to unsupported forces relinking
15382 hardcode_minus_L_CXX=yes
15383 hardcode_libdir_flag_spec_CXX='-L$libdir'
15384 hardcode_libdir_separator_CXX=
15385 fi
15386 esac
15387 shared_flag='-shared'
15388 else
15389 # not using gcc
15390 if test "$host_cpu" = ia64; then
15391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15392 # chokes on -Wl,-G. The following line is correct:
15393 shared_flag='-G'
15394 else
15395 if test "$aix_use_runtimelinking" = yes; then
15396 shared_flag='${wl}-G'
15397 else
15398 shared_flag='${wl}-bM:SRE'
15399 fi
15400 fi
15401 fi
15402
15403 # It seems that -bexpall does not export symbols beginning with
15404 # underscore (_), so it is better to generate a list of symbols to export.
15405 always_export_symbols_CXX=yes
15406 if test "$aix_use_runtimelinking" = yes; then
15407 # Warning - without using the other runtime loading flags (-brtl),
15408 # -berok will link without error, but may produce a broken library.
15409 allow_undefined_flag_CXX='-berok'
15410 # Determine the default libpath from the value encoded in an empty executable.
15411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015417
John Criswell47fdd832003-07-14 16:52:07 +000015418int
15419main ()
15420{
15421
15422 ;
15423 return 0;
15424}
15425_ACEOF
15426rm -f conftest.$ac_objext conftest$ac_exeext
15427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015428 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015429 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 { ac_try='test -z "$ac_cxx_werror_flag"
15436 || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448
15449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15450}'`
15451# Check for a 64-bit object if we didn't find anything.
15452if 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; }
15453}'`; fi
15454else
15455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015456sed 's/^/| /' conftest.$ac_ext >&5
15457
John Criswell47fdd832003-07-14 16:52:07 +000015458fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015459rm -f conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15464
15465 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"
15466 else
15467 if test "$host_cpu" = ia64; then
15468 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15469 allow_undefined_flag_CXX="-z nodefs"
15470 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"
15471 else
15472 # Determine the default libpath from the value encoded in an empty executable.
15473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015479
John Criswell47fdd832003-07-14 16:52:07 +000015480int
15481main ()
15482{
15483
15484 ;
15485 return 0;
15486}
15487_ACEOF
15488rm -f conftest.$ac_objext conftest$ac_exeext
15489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015490 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015497 { ac_try='test -z "$ac_cxx_werror_flag"
15498 || test ! -s conftest.err'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; } &&
15504 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510
15511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15512}'`
15513# Check for a 64-bit object if we didn't find anything.
15514if 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; }
15515}'`; fi
15516else
15517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015518sed 's/^/| /' conftest.$ac_ext >&5
15519
John Criswell47fdd832003-07-14 16:52:07 +000015520fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015521rm -f conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15524
15525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15526 # Warning - without using the other run time loading flags,
15527 # -berok will link without error, but may produce a broken library.
15528 no_undefined_flag_CXX=' ${wl}-bernotok'
15529 allow_undefined_flag_CXX=' ${wl}-berok'
15530 # -bexpall does not export symbols beginning with underscore (_)
15531 always_export_symbols_CXX=yes
15532 # Exported symbols can be pulled into shared objects from archives
15533 whole_archive_flag_spec_CXX=' '
15534 archive_cmds_need_lc_CXX=yes
15535 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015536 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 +000015537 fi
15538 fi
15539 ;;
15540 chorus*)
15541 case $cc_basename in
15542 *)
15543 # FIXME: insert proper C++ library support
15544 ld_shlibs_CXX=no
15545 ;;
15546 esac
15547 ;;
15548
Reid Spencer2706f8c2004-09-19 23:53:36 +000015549
John Criswell47fdd832003-07-14 16:52:07 +000015550 cygwin* | mingw* | pw32*)
15551 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15552 # as there is no search path for DLLs.
15553 hardcode_libdir_flag_spec_CXX='-L$libdir'
15554 allow_undefined_flag_CXX=unsupported
15555 always_export_symbols_CXX=no
15556 enable_shared_with_static_runtimes_CXX=yes
15557
15558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15559 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'
15560 # If the export-symbols file already is a .def file (1st line
15561 # is EXPORTS), use it as is; otherwise, prepend...
15562 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15563 cp $export_symbols $output_objdir/$soname.def;
15564 else
15565 echo EXPORTS > $output_objdir/$soname.def;
15566 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015567 fi~
15568 $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 +000015569 else
15570 ld_shlibs_CXX=no
15571 fi
15572 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015573 darwin* | rhapsody*)
15574 case "$host_os" in
15575 rhapsody* | darwin1.[012])
15576 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15577 ;;
15578 *) # Darwin 1.3 on
15579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15580 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15581 else
15582 case ${MACOSX_DEPLOYMENT_TARGET} in
15583 10.[012])
15584 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15585 ;;
15586 10.*)
15587 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15588 ;;
15589 esac
15590 fi
15591 ;;
15592 esac
15593 archive_cmds_need_lc_CXX=no
15594 hardcode_direct_CXX=no
15595 hardcode_automatic_CXX=yes
15596 hardcode_shlibpath_var_CXX=unsupported
15597 whole_archive_flag_spec_CXX=''
15598 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015599
Reid Spencer2706f8c2004-09-19 23:53:36 +000015600 if test "$GXX" = yes ; then
15601 lt_int_apple_cc_single_mod=no
15602 output_verbose_link_cmd='echo'
15603 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15604 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015605 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015606 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015607 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 +000015608 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015609 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 +000015610 fi
15611 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015614 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 +000015615 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015616 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 +000015617 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015618 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 +000015619 else
15620 case "$cc_basename" in
15621 xlc*)
15622 output_verbose_link_cmd='echo'
15623 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'
15624 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15625 # 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 +000015626 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}'
15627 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 +000015628 ;;
15629 *)
15630 ld_shlibs_CXX=no
15631 ;;
15632 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015633 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015634 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015635
15636 dgux*)
15637 case $cc_basename in
15638 ec++)
15639 # FIXME: insert proper C++ library support
15640 ld_shlibs_CXX=no
15641 ;;
15642 ghcx)
15643 # Green Hills C++ Compiler
15644 # FIXME: insert proper C++ library support
15645 ld_shlibs_CXX=no
15646 ;;
15647 *)
15648 # FIXME: insert proper C++ library support
15649 ld_shlibs_CXX=no
15650 ;;
15651 esac
15652 ;;
15653 freebsd12*)
15654 # C++ shared libraries reported to be fairly broken before switch to ELF
15655 ld_shlibs_CXX=no
15656 ;;
15657 freebsd-elf*)
15658 archive_cmds_need_lc_CXX=no
15659 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015660 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015661 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15662 # conventions
15663 ld_shlibs_CXX=yes
15664 ;;
15665 gnu*)
15666 ;;
15667 hpux9*)
15668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669 hardcode_libdir_separator_CXX=:
15670 export_dynamic_flag_spec_CXX='${wl}-E'
15671 hardcode_direct_CXX=yes
15672 hardcode_minus_L_CXX=yes # Not in the search PATH,
15673 # but as the default
15674 # location of the library.
15675
15676 case $cc_basename in
15677 CC)
15678 # FIXME: insert proper C++ library support
15679 ld_shlibs_CXX=no
15680 ;;
15681 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015682 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 +000015683 # Commands to make compiler produce verbose output that lists
15684 # what "hidden" libraries, object files and flags are used when
15685 # linking a shared library.
15686 #
15687 # There doesn't appear to be a way to prevent this compiler from
15688 # explicitly linking system object files so we need to strip them
15689 # from the output so that they don't get included in the library
15690 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015691 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 +000015692 ;;
15693 *)
15694 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015695 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 +000015696 else
15697 # FIXME: insert proper C++ library support
15698 ld_shlibs_CXX=no
15699 fi
15700 ;;
15701 esac
15702 ;;
15703 hpux10*|hpux11*)
15704 if test $with_gnu_ld = no; then
15705 case "$host_cpu" in
15706 hppa*64*)
15707 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15708 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15709 hardcode_libdir_separator_CXX=:
15710 ;;
15711 ia64*)
15712 hardcode_libdir_flag_spec_CXX='-L$libdir'
15713 ;;
15714 *)
15715 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15716 hardcode_libdir_separator_CXX=:
15717 export_dynamic_flag_spec_CXX='${wl}-E'
15718 ;;
15719 esac
15720 fi
15721 case "$host_cpu" in
15722 hppa*64*)
15723 hardcode_direct_CXX=no
15724 hardcode_shlibpath_var_CXX=no
15725 ;;
15726 ia64*)
15727 hardcode_direct_CXX=no
15728 hardcode_shlibpath_var_CXX=no
15729 hardcode_minus_L_CXX=yes # Not in the search PATH,
15730 # but as the default
15731 # location of the library.
15732 ;;
15733 *)
15734 hardcode_direct_CXX=yes
15735 hardcode_minus_L_CXX=yes # Not in the search PATH,
15736 # but as the default
15737 # location of the library.
15738 ;;
15739 esac
15740
15741 case $cc_basename in
15742 CC)
15743 # FIXME: insert proper C++ library support
15744 ld_shlibs_CXX=no
15745 ;;
15746 aCC)
15747 case "$host_cpu" in
15748 hppa*64*|ia64*)
15749 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15750 ;;
15751 *)
15752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15753 ;;
15754 esac
15755 # Commands to make compiler produce verbose output that lists
15756 # what "hidden" libraries, object files and flags are used when
15757 # linking a shared library.
15758 #
15759 # There doesn't appear to be a way to prevent this compiler from
15760 # explicitly linking system object files so we need to strip them
15761 # from the output so that they don't get included in the library
15762 # dependencies.
15763 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'
15764 ;;
15765 *)
15766 if test "$GXX" = yes; then
15767 if test $with_gnu_ld = no; then
15768 case "$host_cpu" in
15769 ia64*|hppa*64*)
15770 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15771 ;;
15772 *)
15773 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'
15774 ;;
15775 esac
15776 fi
15777 else
15778 # FIXME: insert proper C++ library support
15779 ld_shlibs_CXX=no
15780 fi
15781 ;;
15782 esac
15783 ;;
15784 irix5* | irix6*)
15785 case $cc_basename in
15786 CC)
15787 # SGI C++
15788 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'
15789
15790 # Archives containing C++ object files must be created using
15791 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15792 # necessary to make sure instantiated templates are included
15793 # in the archive.
15794 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15795 ;;
15796 *)
15797 if test "$GXX" = yes; then
15798 if test "$with_gnu_ld" = no; then
15799 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'
15800 else
15801 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'
15802 fi
15803 fi
15804 link_all_deplibs_CXX=yes
15805 ;;
15806 esac
15807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15808 hardcode_libdir_separator_CXX=:
15809 ;;
15810 linux*)
15811 case $cc_basename in
15812 KCC)
15813 # Kuck and Associates, Inc. (KAI) C++ Compiler
15814
15815 # KCC will only create a shared library if the output file
15816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817 # to its proper name (with version) after linking.
15818 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'
15819 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'
15820 # Commands to make compiler produce verbose output that lists
15821 # what "hidden" libraries, object files and flags are used when
15822 # linking a shared library.
15823 #
15824 # There doesn't appear to be a way to prevent this compiler from
15825 # explicitly linking system object files so we need to strip them
15826 # from the output so that they don't get included in the library
15827 # dependencies.
15828 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'
15829
15830 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15832
15833 # Archives containing C++ object files must be created using
15834 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15835 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15836 ;;
15837 icpc)
15838 # Intel C++
15839 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015840 # version 8.0 and above of icpc choke on multiply defined symbols
15841 # if we add $predep_objects and $postdep_objects, however 7.1 and
15842 # earlier do not add the objects themselves.
15843 case `$CC -V 2>&1` in
15844 *"Version 7."*)
15845 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846 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'
15847 ;;
15848 *) # Version 8.0 or newer
15849 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15850 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15851 ;;
15852 esac
John Criswell47fdd832003-07-14 16:52:07 +000015853 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15855 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15856 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15857 ;;
15858 cxx)
15859 # Compaq C++
15860 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861 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'
15862
15863 runpath_var=LD_RUN_PATH
15864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15865 hardcode_libdir_separator_CXX=:
15866
15867 # Commands to make compiler produce verbose output that lists
15868 # what "hidden" libraries, object files and flags are used when
15869 # linking a shared library.
15870 #
15871 # There doesn't appear to be a way to prevent this compiler from
15872 # explicitly linking system object files so we need to strip them
15873 # from the output so that they don't get included in the library
15874 # dependencies.
15875 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'
15876 ;;
15877 esac
15878 ;;
15879 lynxos*)
15880 # FIXME: insert proper C++ library support
15881 ld_shlibs_CXX=no
15882 ;;
15883 m88k*)
15884 # FIXME: insert proper C++ library support
15885 ld_shlibs_CXX=no
15886 ;;
15887 mvs*)
15888 case $cc_basename in
15889 cxx)
15890 # FIXME: insert proper C++ library support
15891 ld_shlibs_CXX=no
15892 ;;
15893 *)
15894 # FIXME: insert proper C++ library support
15895 ld_shlibs_CXX=no
15896 ;;
15897 esac
15898 ;;
15899 netbsd*)
15900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15901 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15902 wlarc=
15903 hardcode_libdir_flag_spec_CXX='-R$libdir'
15904 hardcode_direct_CXX=yes
15905 hardcode_shlibpath_var_CXX=no
15906 fi
15907 # Workaround some broken pre-1.5 toolchains
15908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15909 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015910 openbsd2*)
15911 # C++ shared libraries are fairly broken
15912 ld_shlibs_CXX=no
15913 ;;
15914 openbsd*)
15915 hardcode_direct_CXX=yes
15916 hardcode_shlibpath_var_CXX=no
15917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15920 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15921 export_dynamic_flag_spec_CXX='${wl}-E'
15922 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15923 fi
15924 output_verbose_link_cmd='echo'
15925 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015926 osf3*)
15927 case $cc_basename in
15928 KCC)
15929 # Kuck and Associates, Inc. (KAI) C++ Compiler
15930
15931 # KCC will only create a shared library if the output file
15932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15933 # to its proper name (with version) after linking.
15934 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'
15935
15936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15937 hardcode_libdir_separator_CXX=:
15938
15939 # Archives containing C++ object files must be created using
15940 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15941 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15942
15943 ;;
15944 RCC)
15945 # Rational C++ 2.4.1
15946 # FIXME: insert proper C++ library support
15947 ld_shlibs_CXX=no
15948 ;;
15949 cxx)
15950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15951 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'
15952
15953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15954 hardcode_libdir_separator_CXX=:
15955
15956 # Commands to make compiler produce verbose output that lists
15957 # what "hidden" libraries, object files and flags are used when
15958 # linking a shared library.
15959 #
15960 # There doesn't appear to be a way to prevent this compiler from
15961 # explicitly linking system object files so we need to strip them
15962 # from the output so that they don't get included in the library
15963 # dependencies.
15964 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'
15965 ;;
15966 *)
15967 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15968 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15969 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'
15970
15971 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15972 hardcode_libdir_separator_CXX=:
15973
15974 # Commands to make compiler produce verbose output that lists
15975 # what "hidden" libraries, object files and flags are used when
15976 # linking a shared library.
15977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15978
15979 else
15980 # FIXME: insert proper C++ library support
15981 ld_shlibs_CXX=no
15982 fi
15983 ;;
15984 esac
15985 ;;
15986 osf4* | osf5*)
15987 case $cc_basename in
15988 KCC)
15989 # Kuck and Associates, Inc. (KAI) C++ Compiler
15990
15991 # KCC will only create a shared library if the output file
15992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15993 # to its proper name (with version) after linking.
15994 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'
15995
15996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15997 hardcode_libdir_separator_CXX=:
15998
15999 # Archives containing C++ object files must be created using
16000 # the KAI C++ compiler.
16001 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16002 ;;
16003 RCC)
16004 # Rational C++ 2.4.1
16005 # FIXME: insert proper C++ library support
16006 ld_shlibs_CXX=no
16007 ;;
16008 cxx)
16009 allow_undefined_flag_CXX=' -expect_unresolved \*'
16010 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 +000016011 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16012 echo "-hidden">> $lib.exp~
16013 $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~
16014 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016015
16016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16017 hardcode_libdir_separator_CXX=:
16018
16019 # Commands to make compiler produce verbose output that lists
16020 # what "hidden" libraries, object files and flags are used when
16021 # linking a shared library.
16022 #
16023 # There doesn't appear to be a way to prevent this compiler from
16024 # explicitly linking system object files so we need to strip them
16025 # from the output so that they don't get included in the library
16026 # dependencies.
16027 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'
16028 ;;
16029 *)
16030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16031 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16032 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'
16033
16034 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16035 hardcode_libdir_separator_CXX=:
16036
16037 # Commands to make compiler produce verbose output that lists
16038 # what "hidden" libraries, object files and flags are used when
16039 # linking a shared library.
16040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16041
16042 else
16043 # FIXME: insert proper C++ library support
16044 ld_shlibs_CXX=no
16045 fi
16046 ;;
16047 esac
16048 ;;
16049 psos*)
16050 # FIXME: insert proper C++ library support
16051 ld_shlibs_CXX=no
16052 ;;
16053 sco*)
16054 archive_cmds_need_lc_CXX=no
16055 case $cc_basename in
16056 CC)
16057 # FIXME: insert proper C++ library support
16058 ld_shlibs_CXX=no
16059 ;;
16060 *)
16061 # FIXME: insert proper C++ library support
16062 ld_shlibs_CXX=no
16063 ;;
16064 esac
16065 ;;
16066 sunos4*)
16067 case $cc_basename in
16068 CC)
16069 # Sun C++ 4.x
16070 # FIXME: insert proper C++ library support
16071 ld_shlibs_CXX=no
16072 ;;
16073 lcc)
16074 # Lucid
16075 # FIXME: insert proper C++ library support
16076 ld_shlibs_CXX=no
16077 ;;
16078 *)
16079 # FIXME: insert proper C++ library support
16080 ld_shlibs_CXX=no
16081 ;;
16082 esac
16083 ;;
16084 solaris*)
16085 case $cc_basename in
16086 CC)
16087 # Sun C++ 4.2, 5.x and Centerline C++
16088 no_undefined_flag_CXX=' -zdefs'
16089 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 +000016090 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16091 $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 +000016092
16093 hardcode_libdir_flag_spec_CXX='-R$libdir'
16094 hardcode_shlibpath_var_CXX=no
16095 case $host_os in
16096 solaris2.0-5 | solaris2.0-5.*) ;;
16097 *)
16098 # The C++ compiler is used as linker so we must use $wl
16099 # flag to pass the commands to the underlying system
16100 # linker.
16101 # Supported since Solaris 2.6 (maybe 2.5.1?)
16102 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16103 ;;
16104 esac
16105 link_all_deplibs_CXX=yes
16106
16107 # Commands to make compiler produce verbose output that lists
16108 # what "hidden" libraries, object files and flags are used when
16109 # linking a shared library.
16110 #
16111 # There doesn't appear to be a way to prevent this compiler from
16112 # explicitly linking system object files so we need to strip them
16113 # from the output so that they don't get included in the library
16114 # dependencies.
16115 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'
16116
16117 # Archives containing C++ object files must be created using
16118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16119 # necessary to make sure instantiated templates are included
16120 # in the archive.
16121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16122 ;;
16123 gcx)
16124 # Green Hills C++ Compiler
16125 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16126
16127 # The C++ compiler must be used to create the archive.
16128 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16129 ;;
16130 *)
16131 # GNU C++ compiler with Solaris linker
16132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16133 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16134 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016135 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 +000016136 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16138
John Criswell47fdd832003-07-14 16:52:07 +000016139 # Commands to make compiler produce verbose output that lists
16140 # what "hidden" libraries, object files and flags are used when
16141 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016142 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016143 else
16144 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16145 # platform.
16146 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 +000016147 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148 $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 +000016149
16150 # Commands to make compiler produce verbose output that lists
16151 # what "hidden" libraries, object files and flags are used when
16152 # linking a shared library.
16153 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16154 fi
16155
16156 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16157 fi
16158 ;;
16159 esac
16160 ;;
16161 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16162 archive_cmds_need_lc_CXX=no
16163 ;;
16164 tandem*)
16165 case $cc_basename in
16166 NCC)
16167 # NonStop-UX NCC 3.20
16168 # FIXME: insert proper C++ library support
16169 ld_shlibs_CXX=no
16170 ;;
16171 *)
16172 # FIXME: insert proper C++ library support
16173 ld_shlibs_CXX=no
16174 ;;
16175 esac
16176 ;;
16177 vxworks*)
16178 # FIXME: insert proper C++ library support
16179 ld_shlibs_CXX=no
16180 ;;
16181 *)
16182 # FIXME: insert proper C++ library support
16183 ld_shlibs_CXX=no
16184 ;;
16185esac
16186echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16187echo "${ECHO_T}$ld_shlibs_CXX" >&6
16188test "$ld_shlibs_CXX" = no && can_build_shared=no
16189
16190GCC_CXX="$GXX"
16191LD_CXX="$LD"
16192
John Criswell47fdd832003-07-14 16:52:07 +000016193
16194cat > conftest.$ac_ext <<EOF
16195class Foo
16196{
16197public:
16198 Foo (void) { a = 0; }
16199private:
16200 int a;
16201};
16202EOF
16203
16204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; then
16209 # Parse the compiler output and extract the necessary
16210 # objects, libraries and library flags.
16211
16212 # Sentinel used to keep track of whether or not we are before
16213 # the conftest object file.
16214 pre_test_object_deps_done=no
16215
16216 # The `*' in the case matches for architectures that use `case' in
16217 # $output_verbose_cmd can trigger glob expansion during the loop
16218 # eval without this substitution.
16219 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16220
16221 for p in `eval $output_verbose_link_cmd`; do
16222 case $p in
16223
16224 -L* | -R* | -l*)
16225 # Some compilers place space between "-{L,R}" and the path.
16226 # Remove the space.
16227 if test $p = "-L" \
16228 || test $p = "-R"; then
16229 prev=$p
16230 continue
16231 else
16232 prev=
16233 fi
16234
16235 if test "$pre_test_object_deps_done" = no; then
16236 case $p in
16237 -L* | -R*)
16238 # Internal compiler library paths should come after those
16239 # provided the user. The postdeps already come after the
16240 # user supplied libs so there is no need to process them.
16241 if test -z "$compiler_lib_search_path_CXX"; then
16242 compiler_lib_search_path_CXX="${prev}${p}"
16243 else
16244 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16245 fi
16246 ;;
16247 # The "-l" case would never come before the object being
16248 # linked, so don't bother handling this case.
16249 esac
16250 else
16251 if test -z "$postdeps_CXX"; then
16252 postdeps_CXX="${prev}${p}"
16253 else
16254 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16255 fi
16256 fi
16257 ;;
16258
16259 *.$objext)
16260 # This assumes that the test object file only shows up
16261 # once in the compiler output.
16262 if test "$p" = "conftest.$objext"; then
16263 pre_test_object_deps_done=yes
16264 continue
16265 fi
16266
16267 if test "$pre_test_object_deps_done" = no; then
16268 if test -z "$predep_objects_CXX"; then
16269 predep_objects_CXX="$p"
16270 else
16271 predep_objects_CXX="$predep_objects_CXX $p"
16272 fi
16273 else
16274 if test -z "$postdep_objects_CXX"; then
16275 postdep_objects_CXX="$p"
16276 else
16277 postdep_objects_CXX="$postdep_objects_CXX $p"
16278 fi
16279 fi
16280 ;;
16281
16282 *) ;; # Ignore the rest.
16283
16284 esac
16285 done
16286
16287 # Clean up.
16288 rm -f a.out a.exe
16289else
16290 echo "libtool.m4: error: problem compiling CXX test program"
16291fi
16292
16293$rm -f confest.$objext
16294
16295case " $postdeps_CXX " in
16296*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16297esac
16298
16299lt_prog_compiler_wl_CXX=
16300lt_prog_compiler_pic_CXX=
16301lt_prog_compiler_static_CXX=
16302
16303echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16304echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16305
16306 # C++ specific cases for pic, static, wl, etc.
16307 if test "$GXX" = yes; then
16308 lt_prog_compiler_wl_CXX='-Wl,'
16309 lt_prog_compiler_static_CXX='-static'
16310
16311 case $host_os in
16312 aix*)
16313 # All AIX code is PIC.
16314 if test "$host_cpu" = ia64; then
16315 # AIX 5 now supports IA64 processor
16316 lt_prog_compiler_static_CXX='-Bstatic'
16317 fi
16318 ;;
16319 amigaos*)
16320 # FIXME: we need at least 68020 code to build shared libraries, but
16321 # adding the `-m68020' flag to GCC prevents building anything better,
16322 # like `-m68040'.
16323 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16324 ;;
16325 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16326 # PIC is the default for these OSes.
16327 ;;
16328 mingw* | os2* | pw32*)
16329 # This hack is so that the source file can tell whether it is being
16330 # built for inclusion in a dll (and should export symbols for example).
16331 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16332 ;;
16333 darwin* | rhapsody*)
16334 # PIC is the default on this platform
16335 # Common symbols not allowed in MH_DYLIB files
16336 lt_prog_compiler_pic_CXX='-fno-common'
16337 ;;
16338 *djgpp*)
16339 # DJGPP does not support shared libraries at all
16340 lt_prog_compiler_pic_CXX=
16341 ;;
16342 sysv4*MP*)
16343 if test -d /usr/nec; then
16344 lt_prog_compiler_pic_CXX=-Kconform_pic
16345 fi
16346 ;;
16347 hpux*)
16348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16349 # not for PA HP-UX.
16350 case "$host_cpu" in
16351 hppa*64*|ia64*)
16352 ;;
16353 *)
16354 lt_prog_compiler_pic_CXX='-fPIC'
16355 ;;
16356 esac
16357 ;;
16358 *)
16359 lt_prog_compiler_pic_CXX='-fPIC'
16360 ;;
16361 esac
16362 else
16363 case $host_os in
16364 aix4* | aix5*)
16365 # All AIX code is PIC.
16366 if test "$host_cpu" = ia64; then
16367 # AIX 5 now supports IA64 processor
16368 lt_prog_compiler_static_CXX='-Bstatic'
16369 else
16370 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16371 fi
16372 ;;
16373 chorus*)
16374 case $cc_basename in
16375 cxch68)
16376 # Green Hills C++ Compiler
16377 # _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"
16378 ;;
16379 esac
16380 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016381 darwin*)
16382 # PIC is the default on this platform
16383 # Common symbols not allowed in MH_DYLIB files
16384 case "$cc_basename" in
16385 xlc*)
16386 lt_prog_compiler_pic_CXX='-qnocommon'
16387 lt_prog_compiler_wl_CXX='-Wl,'
16388 ;;
16389 esac
16390 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016391 dgux*)
16392 case $cc_basename in
16393 ec++)
16394 lt_prog_compiler_pic_CXX='-KPIC'
16395 ;;
16396 ghcx)
16397 # Green Hills C++ Compiler
16398 lt_prog_compiler_pic_CXX='-pic'
16399 ;;
16400 *)
16401 ;;
16402 esac
16403 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016404 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016405 # FreeBSD uses GNU C++
16406 ;;
16407 hpux9* | hpux10* | hpux11*)
16408 case $cc_basename in
16409 CC)
16410 lt_prog_compiler_wl_CXX='-Wl,'
16411 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16412 if test "$host_cpu" != ia64; then
16413 lt_prog_compiler_pic_CXX='+Z'
16414 fi
16415 ;;
16416 aCC)
16417 lt_prog_compiler_wl_CXX='-Wl,'
16418 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16419 case "$host_cpu" in
16420 hppa*64*|ia64*)
16421 # +Z the default
16422 ;;
16423 *)
16424 lt_prog_compiler_pic_CXX='+Z'
16425 ;;
16426 esac
16427 ;;
16428 *)
16429 ;;
16430 esac
16431 ;;
16432 irix5* | irix6* | nonstopux*)
16433 case $cc_basename in
16434 CC)
16435 lt_prog_compiler_wl_CXX='-Wl,'
16436 lt_prog_compiler_static_CXX='-non_shared'
16437 # CC pic flag -KPIC is the default.
16438 ;;
16439 *)
16440 ;;
16441 esac
16442 ;;
16443 linux*)
16444 case $cc_basename in
16445 KCC)
16446 # KAI C++ Compiler
16447 lt_prog_compiler_wl_CXX='--backend -Wl,'
16448 lt_prog_compiler_pic_CXX='-fPIC'
16449 ;;
16450 icpc)
16451 # Intel C++
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 lt_prog_compiler_pic_CXX='-KPIC'
16454 lt_prog_compiler_static_CXX='-static'
16455 ;;
16456 cxx)
16457 # Compaq C++
16458 # Make sure the PIC flag is empty. It appears that all Alpha
16459 # Linux and Compaq Tru64 Unix objects are PIC.
16460 lt_prog_compiler_pic_CXX=
16461 lt_prog_compiler_static_CXX='-non_shared'
16462 ;;
16463 *)
16464 ;;
16465 esac
16466 ;;
16467 lynxos*)
16468 ;;
16469 m88k*)
16470 ;;
16471 mvs*)
16472 case $cc_basename in
16473 cxx)
16474 lt_prog_compiler_pic_CXX='-W c,exportall'
16475 ;;
16476 *)
16477 ;;
16478 esac
16479 ;;
16480 netbsd*)
16481 ;;
16482 osf3* | osf4* | osf5*)
16483 case $cc_basename in
16484 KCC)
16485 lt_prog_compiler_wl_CXX='--backend -Wl,'
16486 ;;
16487 RCC)
16488 # Rational C++ 2.4.1
16489 lt_prog_compiler_pic_CXX='-pic'
16490 ;;
16491 cxx)
16492 # Digital/Compaq C++
16493 lt_prog_compiler_wl_CXX='-Wl,'
16494 # Make sure the PIC flag is empty. It appears that all Alpha
16495 # Linux and Compaq Tru64 Unix objects are PIC.
16496 lt_prog_compiler_pic_CXX=
16497 lt_prog_compiler_static_CXX='-non_shared'
16498 ;;
16499 *)
16500 ;;
16501 esac
16502 ;;
16503 psos*)
16504 ;;
16505 sco*)
16506 case $cc_basename in
16507 CC)
16508 lt_prog_compiler_pic_CXX='-fPIC'
16509 ;;
16510 *)
16511 ;;
16512 esac
16513 ;;
16514 solaris*)
16515 case $cc_basename in
16516 CC)
16517 # Sun C++ 4.2, 5.x and Centerline C++
16518 lt_prog_compiler_pic_CXX='-KPIC'
16519 lt_prog_compiler_static_CXX='-Bstatic'
16520 lt_prog_compiler_wl_CXX='-Qoption ld '
16521 ;;
16522 gcx)
16523 # Green Hills C++ Compiler
16524 lt_prog_compiler_pic_CXX='-PIC'
16525 ;;
16526 *)
16527 ;;
16528 esac
16529 ;;
16530 sunos4*)
16531 case $cc_basename in
16532 CC)
16533 # Sun C++ 4.x
16534 lt_prog_compiler_pic_CXX='-pic'
16535 lt_prog_compiler_static_CXX='-Bstatic'
16536 ;;
16537 lcc)
16538 # Lucid
16539 lt_prog_compiler_pic_CXX='-pic'
16540 ;;
16541 *)
16542 ;;
16543 esac
16544 ;;
16545 tandem*)
16546 case $cc_basename in
16547 NCC)
16548 # NonStop-UX NCC 3.20
16549 lt_prog_compiler_pic_CXX='-KPIC'
16550 ;;
16551 *)
16552 ;;
16553 esac
16554 ;;
16555 unixware*)
16556 ;;
16557 vxworks*)
16558 ;;
16559 *)
16560 lt_prog_compiler_can_build_shared_CXX=no
16561 ;;
16562 esac
16563 fi
16564
16565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16566echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16567
16568#
16569# Check to make sure the PIC flag actually works.
16570#
16571if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016572
16573echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016574echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16575if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577else
16578 lt_prog_compiler_pic_works_CXX=no
16579 ac_outfile=conftest.$ac_objext
16580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16581 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16582 # Insert the option either (1) after the last *FLAGS variable, or
16583 # (2) before a word containing "conftest.", or (3) at the end.
16584 # Note that $ac_compile itself does not contain backslashes and begins
16585 # with a dollar sign (not a hyphen), so the echo should work correctly.
16586 # The option is referenced via a variable to avoid confusing sed.
16587 lt_compile=`echo "$ac_compile" | $SED \
16588 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16590 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000016591 (eval echo "\"\$as_me:16591: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016592 (eval "$lt_compile" 2>conftest.err)
16593 ac_status=$?
16594 cat conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000016595 echo "$as_me:16595: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016596 if (exit $ac_status) && test -s "$ac_outfile"; then
16597 # The compiler can only warn and ignore the option if not recognized
16598 # So say no if there are warnings
16599 if test ! -s conftest.err; then
16600 lt_prog_compiler_pic_works_CXX=yes
16601 fi
16602 fi
16603 $rm conftest*
16604
16605fi
16606echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16607echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16608
16609if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16610 case $lt_prog_compiler_pic_CXX in
16611 "" | " "*) ;;
16612 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16613 esac
16614else
16615 lt_prog_compiler_pic_CXX=
16616 lt_prog_compiler_can_build_shared_CXX=no
16617fi
16618
16619fi
16620case "$host_os" in
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16622 *djgpp*)
16623 lt_prog_compiler_pic_CXX=
16624 ;;
16625 *)
16626 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16627 ;;
16628esac
16629
16630echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16631echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16632if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
16635 lt_cv_prog_compiler_c_o_CXX=no
16636 $rm -r conftest 2>/dev/null
16637 mkdir conftest
16638 cd conftest
16639 mkdir out
16640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16641
John Criswell47fdd832003-07-14 16:52:07 +000016642 lt_compiler_flag="-o out/conftest2.$ac_objext"
16643 # Insert the option either (1) after the last *FLAGS variable, or
16644 # (2) before a word containing "conftest.", or (3) at the end.
16645 # Note that $ac_compile itself does not contain backslashes and begins
16646 # with a dollar sign (not a hyphen), so the echo should work correctly.
16647 lt_compile=`echo "$ac_compile" | $SED \
16648 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16650 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000016651 (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016652 (eval "$lt_compile" 2>out/conftest.err)
16653 ac_status=$?
16654 cat out/conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000016655 echo "$as_me:16655: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16657 then
16658 # The compiler can only warn and ignore the option if not recognized
16659 # So say no if there are warnings
16660 if test ! -s out/conftest.err; then
16661 lt_cv_prog_compiler_c_o_CXX=yes
16662 fi
16663 fi
16664 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016665 $rm conftest*
16666 # SGI C++ compiler will create directory out/ii_files/ for
16667 # template instantiation
16668 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16669 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016670 cd ..
16671 rmdir conftest
16672 $rm conftest*
16673
16674fi
16675echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16676echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16677
16678
16679hard_links="nottested"
16680if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16681 # do not overwrite the value of need_locks provided by the user
16682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16684 hard_links=yes
16685 $rm conftest*
16686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16687 touch conftest.a
16688 ln conftest.a conftest.b 2>&5 || hard_links=no
16689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16690 echo "$as_me:$LINENO: result: $hard_links" >&5
16691echo "${ECHO_T}$hard_links" >&6
16692 if test "$hard_links" = no; then
16693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16695 need_locks=warn
16696 fi
16697else
16698 need_locks=no
16699fi
16700
16701echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16702echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16703
16704 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16705 case $host_os in
16706 aix4* | aix5*)
16707 # If we're using GNU nm, then we don't want the "-C" option.
16708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16710 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'
16711 else
16712 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'
16713 fi
16714 ;;
16715 pw32*)
16716 export_symbols_cmds_CXX="$ltdll_cmds"
16717 ;;
16718 cygwin* | mingw*)
16719 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16720 ;;
16721 *)
16722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16723 ;;
16724 esac
16725
16726echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16727echo "${ECHO_T}$ld_shlibs_CXX" >&6
16728test "$ld_shlibs_CXX" = no && can_build_shared=no
16729
16730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16731if test "$GCC" = yes; then
16732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16733fi
16734
16735#
16736# Do we need to explicitly link libc?
16737#
16738case "x$archive_cmds_need_lc_CXX" in
16739x|xyes)
16740 # Assume -lc should be added
16741 archive_cmds_need_lc_CXX=yes
16742
16743 if test "$enable_shared" = yes && test "$GCC" = yes; then
16744 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016745 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016746 # FIXME: we may have to deal with multi-command sequences.
16747 ;;
16748 '$CC '*)
16749 # Test whether the compiler implicitly links with -lc since on some
16750 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16751 # to ld, don't add -lc before -lgcc.
16752 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16753echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16754 $rm conftest*
16755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16756
16757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758 (eval $ac_compile) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } 2>conftest.err; then
16762 soname=conftest
16763 lib=conftest
16764 libobjs=conftest.$ac_objext
16765 deplibs=
16766 wl=$lt_prog_compiler_wl_CXX
16767 compiler_flags=-v
16768 linker_flags=-v
16769 verstring=
16770 output_objdir=.
16771 libname=conftest
16772 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16773 allow_undefined_flag_CXX=
16774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16775 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }
16779 then
16780 archive_cmds_need_lc_CXX=no
16781 else
16782 archive_cmds_need_lc_CXX=yes
16783 fi
16784 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16785 else
16786 cat conftest.err 1>&5
16787 fi
16788 $rm conftest*
16789 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16790echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16791 ;;
16792 esac
16793 fi
16794 ;;
16795esac
16796
John Criswell47fdd832003-07-14 16:52:07 +000016797echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16798echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16799library_names_spec=
16800libname_spec='lib$name'
16801soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016802shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016803postinstall_cmds=
16804postuninstall_cmds=
16805finish_cmds=
16806finish_eval=
16807shlibpath_var=
16808shlibpath_overrides_runpath=unknown
16809version_type=none
16810dynamic_linker="$host_os ld.so"
16811sys_lib_dlsearch_path_spec="/lib /usr/lib"
16812if test "$GCC" = yes; then
16813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16814 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16815 # if the path contains ";" then we assume it to be the separator
16816 # otherwise default to the standard path separator (i.e. ":") - it is
16817 # assumed that no part of a normal pathname contains ";" but that should
16818 # okay in the real world where ";" in dirpaths is itself problematic.
16819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16820 else
16821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16822 fi
16823else
16824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16825fi
16826need_lib_prefix=unknown
16827hardcode_into_libs=no
16828
16829# when you set need_version to no, make sure it does not cause -set_version
16830# flags to be left without arguments
16831need_version=unknown
16832
16833case $host_os in
16834aix3*)
16835 version_type=linux
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16837 shlibpath_var=LIBPATH
16838
16839 # AIX 3 has no versioning support, so we append a major version to the name.
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 ;;
16842
16843aix4* | aix5*)
16844 version_type=linux
16845 need_lib_prefix=no
16846 need_version=no
16847 hardcode_into_libs=yes
16848 if test "$host_cpu" = ia64; then
16849 # AIX 5 supports IA64
16850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 else
16853 # With GCC up to 2.95.x, collect2 would create an import file
16854 # for dependence libraries. The import file would start with
16855 # the line `#! .'. This would cause the generated library to
16856 # depend on `.', always an invalid library. This was fixed in
16857 # development snapshots of GCC prior to 3.0.
16858 case $host_os in
16859 aix4 | aix4.[01] | aix4.[01].*)
16860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16861 echo ' yes '
16862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16863 :
16864 else
16865 can_build_shared=no
16866 fi
16867 ;;
16868 esac
16869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16870 # soname into executable. Probably we can add versioning support to
16871 # collect2, so additional links can be useful in future.
16872 if test "$aix_use_runtimelinking" = yes; then
16873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16874 # instead of lib<name>.a to let people know that these are not
16875 # typical AIX shared libraries.
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 else
16878 # We preserve .a as extension for shared libraries through AIX4.2
16879 # and later when we are not doing run time linking.
16880 library_names_spec='${libname}${release}.a $libname.a'
16881 soname_spec='${libname}${release}${shared_ext}$major'
16882 fi
16883 shlibpath_var=LIBPATH
16884 fi
16885 ;;
16886
16887amigaos*)
16888 library_names_spec='$libname.ixlibrary $libname.a'
16889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890 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 +000016891 ;;
16892
16893beos*)
16894 library_names_spec='${libname}${shared_ext}'
16895 dynamic_linker="$host_os ld.so"
16896 shlibpath_var=LIBRARY_PATH
16897 ;;
16898
Reid Spencer2706f8c2004-09-19 23:53:36 +000016899bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016900 version_type=linux
16901 need_version=no
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16908 # the default ld.so.conf also contains /usr/contrib/lib and
16909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16910 # libtool to hard-code these into programs
16911 ;;
16912
16913cygwin* | mingw* | pw32*)
16914 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016915 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016916 need_version=no
16917 need_lib_prefix=no
16918
16919 case $GCC,$host_os in
16920 yes,cygwin* | yes,mingw* | yes,pw32*)
16921 library_names_spec='$libname.dll.a'
16922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016923 postinstall_cmds='base_file=`basename \${file}`~
16924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16925 dldir=$destdir/`dirname \$dlpath`~
16926 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016927 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16929 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016930 $rm \$dlpath'
16931 shlibpath_overrides_runpath=yes
16932
16933 case $host_os in
16934 cygwin*)
16935 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16936 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 +000016937 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016938 ;;
16939 mingw*)
16940 # MinGW DLLs use traditional 'lib' prefix
16941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16943 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16944 # It is most probably a Windows format PATH printed by
16945 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16946 # path with ; separators, and with drive letters. We can handle the
16947 # drive letters (cygwin fileutils understands them), so leave them,
16948 # especially as we might pass files found there to a mingw objdump,
16949 # which wouldn't understand a cygwinified path. Ahh.
16950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16951 else
16952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16953 fi
16954 ;;
16955 pw32*)
16956 # pw32 DLLs use 'pw' prefix rather than 'lib'
16957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16958 ;;
16959 esac
16960 ;;
16961
16962 *)
16963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16964 ;;
16965 esac
16966 dynamic_linker='Win32 ld.exe'
16967 # FIXME: first we should search . and the directory the executable is in
16968 shlibpath_var=PATH
16969 ;;
16970
16971darwin* | rhapsody*)
16972 dynamic_linker="$host_os dyld"
16973 version_type=darwin
16974 need_lib_prefix=no
16975 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016976 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016977 soname_spec='${libname}${release}${major}$shared_ext'
16978 shlibpath_overrides_runpath=yes
16979 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016980 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016981 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016982 if test "$GCC" = yes; then
16983 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"`
16984 else
16985 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016986 fi
16987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16988 ;;
16989
16990dgux*)
16991 version_type=linux
16992 need_lib_prefix=no
16993 need_version=no
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 ;;
16998
16999freebsd1*)
17000 dynamic_linker=no
17001 ;;
17002
Reid Spencer2706f8c2004-09-19 23:53:36 +000017003kfreebsd*-gnu)
17004 version_type=linux
17005 need_lib_prefix=no
17006 need_version=no
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 dynamic_linker='GNU ld.so'
17013 ;;
17014
John Criswell47fdd832003-07-14 16:52:07 +000017015freebsd*)
17016 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17017 version_type=freebsd-$objformat
17018 case $version_type in
17019 freebsd-elf*)
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021 need_version=no
17022 need_lib_prefix=no
17023 ;;
17024 freebsd-*)
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17026 need_version=yes
17027 ;;
17028 esac
17029 shlibpath_var=LD_LIBRARY_PATH
17030 case $host_os in
17031 freebsd2*)
17032 shlibpath_overrides_runpath=yes
17033 ;;
17034 freebsd3.01* | freebsdelf3.01*)
17035 shlibpath_overrides_runpath=yes
17036 hardcode_into_libs=yes
17037 ;;
17038 *) # from 3.2 on
17039 shlibpath_overrides_runpath=no
17040 hardcode_into_libs=yes
17041 ;;
17042 esac
17043 ;;
17044
17045gnu*)
17046 version_type=linux
17047 need_lib_prefix=no
17048 need_version=no
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 shlibpath_var=LD_LIBRARY_PATH
17052 hardcode_into_libs=yes
17053 ;;
17054
17055hpux9* | hpux10* | hpux11*)
17056 # Give a soname corresponding to the major version so that dld.sl refuses to
17057 # link against other versions.
17058 version_type=sunos
17059 need_lib_prefix=no
17060 need_version=no
17061 case "$host_cpu" in
17062 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017063 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017064 hardcode_into_libs=yes
17065 dynamic_linker="$host_os dld.so"
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 if test "X$HPUX_IA64_MODE" = X32; then
17071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17072 else
17073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17074 fi
17075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17076 ;;
17077 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017078 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017079 hardcode_into_libs=yes
17080 dynamic_linker="$host_os dld.sl"
17081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17087 ;;
17088 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017089 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017090 dynamic_linker="$host_os dld.sl"
17091 shlibpath_var=SHLIB_PATH
17092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 ;;
17096 esac
17097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17098 postinstall_cmds='chmod 555 $lib'
17099 ;;
17100
17101irix5* | irix6* | nonstopux*)
17102 case $host_os in
17103 nonstopux*) version_type=nonstopux ;;
17104 *)
17105 if test "$lt_cv_prog_gnu_ld" = yes; then
17106 version_type=linux
17107 else
17108 version_type=irix
17109 fi ;;
17110 esac
17111 need_lib_prefix=no
17112 need_version=no
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17115 case $host_os in
17116 irix5* | nonstopux*)
17117 libsuff= shlibsuff=
17118 ;;
17119 *)
17120 case $LD in # libtool.m4 will add one of these switches to LD
17121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17122 libsuff= shlibsuff= libmagic=32-bit;;
17123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17124 libsuff=32 shlibsuff=N32 libmagic=N32;;
17125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17127 *) libsuff= shlibsuff= libmagic=never-match;;
17128 esac
17129 ;;
17130 esac
17131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17132 shlibpath_overrides_runpath=no
17133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17135 hardcode_into_libs=yes
17136 ;;
17137
17138# No shared lib support for Linux oldld, aout, or coff.
17139linux*oldld* | linux*aout* | linux*coff*)
17140 dynamic_linker=no
17141 ;;
17142
17143# This must be Linux ELF.
17144linux*)
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=no
17153 # This implies no fast_install, which is unacceptable.
17154 # Some rework will be needed to allow for fast_install
17155 # before this can be enabled.
17156 hardcode_into_libs=yes
17157
Reid Spencer2706f8c2004-09-19 23:53:36 +000017158 # Append ld.so.conf contents to the search path
17159 if test -f /etc/ld.so.conf; then
17160 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17162 fi
17163
John Criswell47fdd832003-07-14 16:52:07 +000017164 # We used to test for /lib/ld.so.1 and disable shared libraries on
17165 # powerpc, because MkLinux only supported shared libraries with the
17166 # GNU dynamic linker. Since this was broken with cross compilers,
17167 # most powerpc-linux boxes support dynamic linking these days and
17168 # people can always --disable-shared, the test was removed, and we
17169 # assume the GNU/Linux dynamic linker is in use.
17170 dynamic_linker='GNU/Linux ld.so'
17171 ;;
17172
Reid Spencer2706f8c2004-09-19 23:53:36 +000017173knetbsd*-gnu)
17174 version_type=linux
17175 need_lib_prefix=no
17176 need_version=no
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=no
17181 hardcode_into_libs=yes
17182 dynamic_linker='GNU ld.so'
17183 ;;
17184
John Criswell47fdd832003-07-14 16:52:07 +000017185netbsd*)
17186 version_type=sunos
17187 need_lib_prefix=no
17188 need_version=no
17189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192 dynamic_linker='NetBSD (a.out) ld.so'
17193 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017195 soname_spec='${libname}${release}${shared_ext}$major'
17196 dynamic_linker='NetBSD ld.elf_so'
17197 fi
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17200 hardcode_into_libs=yes
17201 ;;
17202
17203newsos6)
17204 version_type=linux
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=yes
17208 ;;
17209
Reid Spencer2706f8c2004-09-19 23:53:36 +000017210nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017211 version_type=linux
17212 need_lib_prefix=no
17213 need_version=no
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes
17218 ;;
17219
17220openbsd*)
17221 version_type=sunos
17222 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017223 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17228 case $host_os in
17229 openbsd2.[89] | openbsd2.[89].*)
17230 shlibpath_overrides_runpath=no
17231 ;;
17232 *)
17233 shlibpath_overrides_runpath=yes
17234 ;;
17235 esac
17236 else
17237 shlibpath_overrides_runpath=yes
17238 fi
17239 ;;
17240
17241os2*)
17242 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017243 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017244 need_lib_prefix=no
17245 library_names_spec='$libname${shared_ext} $libname.a'
17246 dynamic_linker='OS/2 ld.exe'
17247 shlibpath_var=LIBPATH
17248 ;;
17249
17250osf3* | osf4* | osf5*)
17251 version_type=osf
17252 need_lib_prefix=no
17253 need_version=no
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17259 ;;
17260
17261sco3.2v5*)
17262 version_type=osf
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17265 shlibpath_var=LD_LIBRARY_PATH
17266 ;;
17267
17268solaris*)
17269 version_type=linux
17270 need_lib_prefix=no
17271 need_version=no
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=yes
17276 hardcode_into_libs=yes
17277 # ldd complains unless libraries are executable
17278 postinstall_cmds='chmod +x $lib'
17279 ;;
17280
17281sunos4*)
17282 version_type=sunos
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath=yes
17287 if test "$with_gnu_ld" = yes; then
17288 need_lib_prefix=no
17289 fi
17290 need_version=yes
17291 ;;
17292
17293sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17294 version_type=linux
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 case $host_vendor in
17299 sni)
17300 shlibpath_overrides_runpath=no
17301 need_lib_prefix=no
17302 export_dynamic_flag_spec='${wl}-Blargedynsym'
17303 runpath_var=LD_RUN_PATH
17304 ;;
17305 siemens)
17306 need_lib_prefix=no
17307 ;;
17308 motorola)
17309 need_lib_prefix=no
17310 need_version=no
17311 shlibpath_overrides_runpath=no
17312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17313 ;;
17314 esac
17315 ;;
17316
17317sysv4*MP*)
17318 if test -d /usr/nec ;then
17319 version_type=linux
17320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17321 soname_spec='$libname${shared_ext}.$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 fi
17324 ;;
17325
17326uts4*)
17327 version_type=linux
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 ;;
17332
17333*)
17334 dynamic_linker=no
17335 ;;
17336esac
17337echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17338echo "${ECHO_T}$dynamic_linker" >&6
17339test "$dynamic_linker" = no && can_build_shared=no
17340
Reid Spencer2706f8c2004-09-19 23:53:36 +000017341echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17342echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17343hardcode_action_CXX=
17344if test -n "$hardcode_libdir_flag_spec_CXX" || \
17345 test -n "$runpath_var_CXX" || \
17346 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17347
17348 # We can hardcode non-existant directories.
17349 if test "$hardcode_direct_CXX" != no &&
17350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17351 # have to relink, otherwise we might link with an installed library
17352 # when we should be linking with a yet-to-be-installed one
17353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17354 test "$hardcode_minus_L_CXX" != no; then
17355 # Linking always hardcodes the temporary library directory.
17356 hardcode_action_CXX=relink
17357 else
17358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17359 hardcode_action_CXX=immediate
17360 fi
17361else
17362 # We cannot hardcode anything, or else we can only hardcode existing
17363 # directories.
17364 hardcode_action_CXX=unsupported
17365fi
17366echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17367echo "${ECHO_T}$hardcode_action_CXX" >&6
17368
17369if test "$hardcode_action_CXX" = relink; then
17370 # Fast installation is not supported
17371 enable_fast_install=no
17372elif test "$shlibpath_overrides_runpath" = yes ||
17373 test "$enable_shared" = no; then
17374 # Fast installation is not necessary
17375 enable_fast_install=needless
17376fi
17377
17378striplib=
17379old_striplib=
17380echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17381echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17382if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17385 echo "$as_me:$LINENO: result: yes" >&5
17386echo "${ECHO_T}yes" >&6
17387else
17388# FIXME - insert some real tests, host_os isn't really good enough
17389 case $host_os in
17390 darwin*)
17391 if test -n "$STRIP" ; then
17392 striplib="$STRIP -x"
17393 echo "$as_me:$LINENO: result: yes" >&5
17394echo "${ECHO_T}yes" >&6
17395 else
17396 echo "$as_me:$LINENO: result: no" >&5
17397echo "${ECHO_T}no" >&6
17398fi
17399 ;;
17400 *)
17401 echo "$as_me:$LINENO: result: no" >&5
17402echo "${ECHO_T}no" >&6
17403 ;;
17404 esac
17405fi
17406
John Criswell47fdd832003-07-14 16:52:07 +000017407if test "x$enable_dlopen" != xyes; then
17408 enable_dlopen=unknown
17409 enable_dlopen_self=unknown
17410 enable_dlopen_self_static=unknown
17411else
17412 lt_cv_dlopen=no
17413 lt_cv_dlopen_libs=
17414
17415 case $host_os in
17416 beos*)
17417 lt_cv_dlopen="load_add_on"
17418 lt_cv_dlopen_libs=
17419 lt_cv_dlopen_self=yes
17420 ;;
17421
17422 mingw* | pw32*)
17423 lt_cv_dlopen="LoadLibrary"
17424 lt_cv_dlopen_libs=
17425 ;;
17426
17427 cygwin*)
17428 lt_cv_dlopen="dlopen"
17429 lt_cv_dlopen_libs=
17430 ;;
17431
17432 darwin*)
17433 # if libdl is installed we need to link against it
17434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17435echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17436if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438else
17439 ac_check_lib_save_LIBS=$LIBS
17440LIBS="-ldl $LIBS"
17441cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017447
17448/* Override any gcc2 internal prototype to avoid an error. */
17449#ifdef __cplusplus
17450extern "C"
17451#endif
17452/* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17454char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017455int
17456main ()
17457{
17458dlopen ();
17459 ;
17460 return 0;
17461}
17462_ACEOF
17463rm -f conftest.$ac_objext conftest$ac_exeext
17464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017465 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017472 { ac_try='test -z "$ac_cxx_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_cv_lib_dl_dlopen=yes
17486else
17487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017488sed 's/^/| /' conftest.$ac_ext >&5
17489
John Criswell47fdd832003-07-14 16:52:07 +000017490ac_cv_lib_dl_dlopen=no
17491fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017492rm -f conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017494LIBS=$ac_check_lib_save_LIBS
17495fi
17496echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17497echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17498if test $ac_cv_lib_dl_dlopen = yes; then
17499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17500else
17501
17502 lt_cv_dlopen="dyld"
17503 lt_cv_dlopen_libs=
17504 lt_cv_dlopen_self=yes
17505
17506fi
17507
17508 ;;
17509
17510 *)
17511 echo "$as_me:$LINENO: checking for shl_load" >&5
17512echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17513if test "${ac_cv_func_shl_load+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17515else
17516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017517/* confdefs.h. */
17518_ACEOF
17519cat confdefs.h >>conftest.$ac_ext
17520cat >>conftest.$ac_ext <<_ACEOF
17521/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017522/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17524#define shl_load innocuous_shl_load
17525
John Criswell47fdd832003-07-14 16:52:07 +000017526/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017527 which can conflict with char shl_load (); below.
17528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530
John Criswell0c38eaf2003-09-10 15:17:25 +000017531#ifdef __STDC__
17532# include <limits.h>
17533#else
17534# include <assert.h>
17535#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017536
17537#undef shl_load
17538
John Criswell47fdd832003-07-14 16:52:07 +000017539/* Override any gcc2 internal prototype to avoid an error. */
17540#ifdef __cplusplus
17541extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017542{
John Criswell47fdd832003-07-14 16:52:07 +000017543#endif
17544/* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17546char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017547/* The GNU C library defines this for functions which it implements
17548 to always fail with ENOSYS. Some functions are actually named
17549 something starting with __ and the normal name is an alias. */
17550#if defined (__stub_shl_load) || defined (__stub___shl_load)
17551choke me
17552#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017553char (*f) () = shl_load;
17554#endif
17555#ifdef __cplusplus
17556}
John Criswell47fdd832003-07-14 16:52:07 +000017557#endif
17558
John Criswell0c38eaf2003-09-10 15:17:25 +000017559int
17560main ()
17561{
17562return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext conftest$ac_exeext
17568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017569 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017570 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017576 { ac_try='test -z "$ac_cxx_werror_flag"
17577 || test ! -s conftest.err'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 ac_cv_func_shl_load=yes
17590else
17591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017592sed 's/^/| /' conftest.$ac_ext >&5
17593
John Criswell47fdd832003-07-14 16:52:07 +000017594ac_cv_func_shl_load=no
17595fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017596rm -f conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017598fi
17599echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17600echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17601if test $ac_cv_func_shl_load = yes; then
17602 lt_cv_dlopen="shl_load"
17603else
17604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17605echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17606if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17608else
17609 ac_check_lib_save_LIBS=$LIBS
17610LIBS="-ldld $LIBS"
17611cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017612/* confdefs.h. */
17613_ACEOF
17614cat confdefs.h >>conftest.$ac_ext
17615cat >>conftest.$ac_ext <<_ACEOF
17616/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017617
17618/* Override any gcc2 internal prototype to avoid an error. */
17619#ifdef __cplusplus
17620extern "C"
17621#endif
17622/* We use char because int might match the return type of a gcc2
17623 builtin and then its argument prototype would still apply. */
17624char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017625int
17626main ()
17627{
17628shl_load ();
17629 ;
17630 return 0;
17631}
17632_ACEOF
17633rm -f conftest.$ac_objext conftest$ac_exeext
17634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017635 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017636 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017642 { ac_try='test -z "$ac_cxx_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_lib_dld_shl_load=yes
17656else
17657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017658sed 's/^/| /' conftest.$ac_ext >&5
17659
John Criswell47fdd832003-07-14 16:52:07 +000017660ac_cv_lib_dld_shl_load=no
17661fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017662rm -f conftest.err conftest.$ac_objext \
17663 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017664LIBS=$ac_check_lib_save_LIBS
17665fi
17666echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17667echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17668if test $ac_cv_lib_dld_shl_load = yes; then
17669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17670else
17671 echo "$as_me:$LINENO: checking for dlopen" >&5
17672echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17673if test "${ac_cv_func_dlopen+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675else
17676 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017677/* confdefs.h. */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017682/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17684#define dlopen innocuous_dlopen
17685
John Criswell47fdd832003-07-14 16:52:07 +000017686/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017687 which can conflict with char dlopen (); below.
17688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017690
John Criswell0c38eaf2003-09-10 15:17:25 +000017691#ifdef __STDC__
17692# include <limits.h>
17693#else
17694# include <assert.h>
17695#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696
17697#undef dlopen
17698
John Criswell47fdd832003-07-14 16:52:07 +000017699/* Override any gcc2 internal prototype to avoid an error. */
17700#ifdef __cplusplus
17701extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017702{
John Criswell47fdd832003-07-14 16:52:07 +000017703#endif
17704/* We use char because int might match the return type of a gcc2
17705 builtin and then its argument prototype would still apply. */
17706char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017707/* The GNU C library defines this for functions which it implements
17708 to always fail with ENOSYS. Some functions are actually named
17709 something starting with __ and the normal name is an alias. */
17710#if defined (__stub_dlopen) || defined (__stub___dlopen)
17711choke me
17712#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017713char (*f) () = dlopen;
17714#endif
17715#ifdef __cplusplus
17716}
John Criswell47fdd832003-07-14 16:52:07 +000017717#endif
17718
John Criswell0c38eaf2003-09-10 15:17:25 +000017719int
17720main ()
17721{
17722return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017723 ;
17724 return 0;
17725}
17726_ACEOF
17727rm -f conftest.$ac_objext conftest$ac_exeext
17728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017729 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017730 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017731 grep -v '^ *+' conftest.er1 >conftest.err
17732 rm -f conftest.er1
17733 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017736 { ac_try='test -z "$ac_cxx_werror_flag"
17737 || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_func_dlopen=yes
17750else
17751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017752sed 's/^/| /' conftest.$ac_ext >&5
17753
John Criswell47fdd832003-07-14 16:52:07 +000017754ac_cv_func_dlopen=no
17755fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017756rm -f conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017758fi
17759echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17760echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17761if test $ac_cv_func_dlopen = yes; then
17762 lt_cv_dlopen="dlopen"
17763else
17764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17765echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17766if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768else
17769 ac_check_lib_save_LIBS=$LIBS
17770LIBS="-ldl $LIBS"
17771cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017772/* confdefs.h. */
17773_ACEOF
17774cat confdefs.h >>conftest.$ac_ext
17775cat >>conftest.$ac_ext <<_ACEOF
17776/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017777
17778/* Override any gcc2 internal prototype to avoid an error. */
17779#ifdef __cplusplus
17780extern "C"
17781#endif
17782/* We use char because int might match the return type of a gcc2
17783 builtin and then its argument prototype would still apply. */
17784char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017785int
17786main ()
17787{
17788dlopen ();
17789 ;
17790 return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext conftest$ac_exeext
17794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017795 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017796 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017802 { ac_try='test -z "$ac_cxx_werror_flag"
17803 || test ! -s conftest.err'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_lib_dl_dlopen=yes
17816else
17817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017818sed 's/^/| /' conftest.$ac_ext >&5
17819
John Criswell47fdd832003-07-14 16:52:07 +000017820ac_cv_lib_dl_dlopen=no
17821fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017822rm -f conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017824LIBS=$ac_check_lib_save_LIBS
17825fi
17826echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17828if test $ac_cv_lib_dl_dlopen = yes; then
17829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17830else
17831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17832echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17833if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835else
17836 ac_check_lib_save_LIBS=$LIBS
17837LIBS="-lsvld $LIBS"
17838cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017844
17845/* Override any gcc2 internal prototype to avoid an error. */
17846#ifdef __cplusplus
17847extern "C"
17848#endif
17849/* We use char because int might match the return type of a gcc2
17850 builtin and then its argument prototype would still apply. */
17851char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017852int
17853main ()
17854{
17855dlopen ();
17856 ;
17857 return 0;
17858}
17859_ACEOF
17860rm -f conftest.$ac_objext conftest$ac_exeext
17861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017862 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017869 { ac_try='test -z "$ac_cxx_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_lib_svld_dlopen=yes
17883else
17884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017885sed 's/^/| /' conftest.$ac_ext >&5
17886
John Criswell47fdd832003-07-14 16:52:07 +000017887ac_cv_lib_svld_dlopen=no
17888fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017889rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017891LIBS=$ac_check_lib_save_LIBS
17892fi
17893echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17894echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17895if test $ac_cv_lib_svld_dlopen = yes; then
17896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17897else
17898 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17899echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17900if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 ac_check_lib_save_LIBS=$LIBS
17904LIBS="-ldld $LIBS"
17905cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017911
17912/* Override any gcc2 internal prototype to avoid an error. */
17913#ifdef __cplusplus
17914extern "C"
17915#endif
17916/* We use char because int might match the return type of a gcc2
17917 builtin and then its argument prototype would still apply. */
17918char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017919int
17920main ()
17921{
17922dld_link ();
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext conftest$ac_exeext
17928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017929 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017936 { ac_try='test -z "$ac_cxx_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_lib_dld_dld_link=yes
17950else
17951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017952sed 's/^/| /' conftest.$ac_ext >&5
17953
John Criswell47fdd832003-07-14 16:52:07 +000017954ac_cv_lib_dld_dld_link=no
17955fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017956rm -f conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017958LIBS=$ac_check_lib_save_LIBS
17959fi
17960echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17961echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17962if test $ac_cv_lib_dld_dld_link = yes; then
17963 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17964fi
17965
17966
17967fi
17968
17969
17970fi
17971
17972
17973fi
17974
17975
17976fi
17977
17978
17979fi
17980
17981 ;;
17982 esac
17983
17984 if test "x$lt_cv_dlopen" != xno; then
17985 enable_dlopen=yes
17986 else
17987 enable_dlopen=no
17988 fi
17989
17990 case $lt_cv_dlopen in
17991 dlopen)
17992 save_CPPFLAGS="$CPPFLAGS"
17993 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17994
17995 save_LDFLAGS="$LDFLAGS"
17996 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17997
17998 save_LIBS="$LIBS"
17999 LIBS="$lt_cv_dlopen_libs $LIBS"
18000
18001 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18002echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18003if test "${lt_cv_dlopen_self+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005else
18006 if test "$cross_compiling" = yes; then :
18007 lt_cv_dlopen_self=cross
18008else
18009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18010 lt_status=$lt_dlunknown
18011 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +000018012#line 18012 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018013#include "confdefs.h"
18014
18015#if HAVE_DLFCN_H
18016#include <dlfcn.h>
18017#endif
18018
18019#include <stdio.h>
18020
18021#ifdef RTLD_GLOBAL
18022# define LT_DLGLOBAL RTLD_GLOBAL
18023#else
18024# ifdef DL_GLOBAL
18025# define LT_DLGLOBAL DL_GLOBAL
18026# else
18027# define LT_DLGLOBAL 0
18028# endif
18029#endif
18030
18031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18032 find out it does not work in some platform. */
18033#ifndef LT_DLLAZY_OR_NOW
18034# ifdef RTLD_LAZY
18035# define LT_DLLAZY_OR_NOW RTLD_LAZY
18036# else
18037# ifdef DL_LAZY
18038# define LT_DLLAZY_OR_NOW DL_LAZY
18039# else
18040# ifdef RTLD_NOW
18041# define LT_DLLAZY_OR_NOW RTLD_NOW
18042# else
18043# ifdef DL_NOW
18044# define LT_DLLAZY_OR_NOW DL_NOW
18045# else
18046# define LT_DLLAZY_OR_NOW 0
18047# endif
18048# endif
18049# endif
18050# endif
18051#endif
18052
18053#ifdef __cplusplus
18054extern "C" void exit (int);
18055#endif
18056
18057void fnord() { int i=42;}
18058int main ()
18059{
18060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18061 int status = $lt_dlunknown;
18062
18063 if (self)
18064 {
18065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18067 /* dlclose (self); */
18068 }
18069
18070 exit (status);
18071}
18072EOF
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074 (eval $ac_link) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18078 (./conftest; exit; ) 2>/dev/null
18079 lt_status=$?
18080 case x$lt_status in
18081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18083 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18084 esac
18085 else :
18086 # compilation failed
18087 lt_cv_dlopen_self=no
18088 fi
18089fi
18090rm -fr conftest*
18091
18092
18093fi
18094echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18095echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18096
18097 if test "x$lt_cv_dlopen_self" = xyes; then
18098 LDFLAGS="$LDFLAGS $link_static_flag"
18099 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18100echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18101if test "${lt_cv_dlopen_self_static+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18103else
18104 if test "$cross_compiling" = yes; then :
18105 lt_cv_dlopen_self_static=cross
18106else
18107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18108 lt_status=$lt_dlunknown
18109 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +000018110#line 18110 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018111#include "confdefs.h"
18112
18113#if HAVE_DLFCN_H
18114#include <dlfcn.h>
18115#endif
18116
18117#include <stdio.h>
18118
18119#ifdef RTLD_GLOBAL
18120# define LT_DLGLOBAL RTLD_GLOBAL
18121#else
18122# ifdef DL_GLOBAL
18123# define LT_DLGLOBAL DL_GLOBAL
18124# else
18125# define LT_DLGLOBAL 0
18126# endif
18127#endif
18128
18129/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18130 find out it does not work in some platform. */
18131#ifndef LT_DLLAZY_OR_NOW
18132# ifdef RTLD_LAZY
18133# define LT_DLLAZY_OR_NOW RTLD_LAZY
18134# else
18135# ifdef DL_LAZY
18136# define LT_DLLAZY_OR_NOW DL_LAZY
18137# else
18138# ifdef RTLD_NOW
18139# define LT_DLLAZY_OR_NOW RTLD_NOW
18140# else
18141# ifdef DL_NOW
18142# define LT_DLLAZY_OR_NOW DL_NOW
18143# else
18144# define LT_DLLAZY_OR_NOW 0
18145# endif
18146# endif
18147# endif
18148# endif
18149#endif
18150
18151#ifdef __cplusplus
18152extern "C" void exit (int);
18153#endif
18154
18155void fnord() { int i=42;}
18156int main ()
18157{
18158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18159 int status = $lt_dlunknown;
18160
18161 if (self)
18162 {
18163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18164 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18165 /* dlclose (self); */
18166 }
18167
18168 exit (status);
18169}
18170EOF
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172 (eval $ac_link) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18176 (./conftest; exit; ) 2>/dev/null
18177 lt_status=$?
18178 case x$lt_status in
18179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18181 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18182 esac
18183 else :
18184 # compilation failed
18185 lt_cv_dlopen_self_static=no
18186 fi
18187fi
18188rm -fr conftest*
18189
18190
18191fi
18192echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18193echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18194 fi
18195
18196 CPPFLAGS="$save_CPPFLAGS"
18197 LDFLAGS="$save_LDFLAGS"
18198 LIBS="$save_LIBS"
18199 ;;
18200 esac
18201
18202 case $lt_cv_dlopen_self in
18203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18204 *) enable_dlopen_self=unknown ;;
18205 esac
18206
18207 case $lt_cv_dlopen_self_static in
18208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18209 *) enable_dlopen_self_static=unknown ;;
18210 esac
18211fi
18212
18213
18214# The else clause should only fire when bootstrapping the
18215# libtool distribution, otherwise you forgot to ship ltmain.sh
18216# with your package, and you will get complaints that there are
18217# no rules to generate ltmain.sh.
18218if test -f "$ltmain"; then
18219 # See if we are running on zsh, and set the options which allow our commands through
18220 # without removal of \ escapes.
18221 if test -n "${ZSH_VERSION+set}" ; then
18222 setopt NO_GLOB_SUBST
18223 fi
18224 # Now quote all the things that may contain metacharacters while being
18225 # careful not to overquote the AC_SUBSTed values. We take copies of the
18226 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18228 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18231 deplibs_check_method reload_flag reload_cmds need_locks \
18232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18233 lt_cv_sys_global_symbol_to_c_name_address \
18234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18235 old_postinstall_cmds old_postuninstall_cmds \
18236 compiler_CXX \
18237 CC_CXX \
18238 LD_CXX \
18239 lt_prog_compiler_wl_CXX \
18240 lt_prog_compiler_pic_CXX \
18241 lt_prog_compiler_static_CXX \
18242 lt_prog_compiler_no_builtin_flag_CXX \
18243 export_dynamic_flag_spec_CXX \
18244 thread_safe_flag_spec_CXX \
18245 whole_archive_flag_spec_CXX \
18246 enable_shared_with_static_runtimes_CXX \
18247 old_archive_cmds_CXX \
18248 old_archive_from_new_cmds_CXX \
18249 predep_objects_CXX \
18250 postdep_objects_CXX \
18251 predeps_CXX \
18252 postdeps_CXX \
18253 compiler_lib_search_path_CXX \
18254 archive_cmds_CXX \
18255 archive_expsym_cmds_CXX \
18256 postinstall_cmds_CXX \
18257 postuninstall_cmds_CXX \
18258 old_archive_from_expsyms_cmds_CXX \
18259 allow_undefined_flag_CXX \
18260 no_undefined_flag_CXX \
18261 export_symbols_cmds_CXX \
18262 hardcode_libdir_flag_spec_CXX \
18263 hardcode_libdir_flag_spec_ld_CXX \
18264 hardcode_libdir_separator_CXX \
18265 hardcode_automatic_CXX \
18266 module_cmds_CXX \
18267 module_expsym_cmds_CXX \
18268 lt_cv_prog_compiler_c_o_CXX \
18269 exclude_expsyms_CXX \
18270 include_expsyms_CXX; do
18271
18272 case $var in
18273 old_archive_cmds_CXX | \
18274 old_archive_from_new_cmds_CXX | \
18275 archive_cmds_CXX | \
18276 archive_expsym_cmds_CXX | \
18277 module_cmds_CXX | \
18278 module_expsym_cmds_CXX | \
18279 old_archive_from_expsyms_cmds_CXX | \
18280 export_symbols_cmds_CXX | \
18281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18282 postinstall_cmds | postuninstall_cmds | \
18283 old_postinstall_cmds | old_postuninstall_cmds | \
18284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18285 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018286 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 +000018287 ;;
18288 *)
18289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18290 ;;
18291 esac
18292 done
18293
18294 case $lt_echo in
18295 *'\$0 --fallback-echo"')
18296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18297 ;;
18298 esac
18299
18300cfgfile="$ofile"
18301
18302 cat <<__EOF__ >> "$cfgfile"
18303# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18304
18305# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306
18307# Shell to use when invoking shell scripts.
18308SHELL=$lt_SHELL
18309
18310# Whether or not to build shared libraries.
18311build_libtool_libs=$enable_shared
18312
18313# Whether or not to build static libraries.
18314build_old_libs=$enable_static
18315
18316# Whether or not to add -lc for building shared libraries.
18317build_libtool_need_lc=$archive_cmds_need_lc_CXX
18318
18319# Whether or not to disallow shared libs when runtime libs are static
18320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18321
18322# Whether or not to optimize for fast installation.
18323fast_install=$enable_fast_install
18324
18325# The host system.
18326host_alias=$host_alias
18327host=$host
18328
18329# An echo program that does not interpret backslashes.
18330echo=$lt_echo
18331
18332# The archiver.
18333AR=$lt_AR
18334AR_FLAGS=$lt_AR_FLAGS
18335
18336# A C compiler.
18337LTCC=$lt_LTCC
18338
18339# A language-specific compiler.
18340CC=$lt_compiler_CXX
18341
18342# Is the compiler the GNU C compiler?
18343with_gcc=$GCC_CXX
18344
18345# An ERE matcher.
18346EGREP=$lt_EGREP
18347
18348# The linker used to build libraries.
18349LD=$lt_LD_CXX
18350
18351# Whether we need hard or soft links.
18352LN_S=$lt_LN_S
18353
18354# A BSD-compatible nm program.
18355NM=$lt_NM
18356
18357# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018358STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018359
18360# Used to examine libraries when file_magic_cmd begins "file"
18361MAGIC_CMD=$MAGIC_CMD
18362
18363# Used on cygwin: DLL creation program.
18364DLLTOOL="$DLLTOOL"
18365
18366# Used on cygwin: object dumper.
18367OBJDUMP="$OBJDUMP"
18368
18369# Used on cygwin: assembler.
18370AS="$AS"
18371
18372# The name of the directory that contains temporary libtool files.
18373objdir=$objdir
18374
18375# How to create reloadable object files.
18376reload_flag=$lt_reload_flag
18377reload_cmds=$lt_reload_cmds
18378
18379# How to pass a linker flag through the compiler.
18380wl=$lt_lt_prog_compiler_wl_CXX
18381
18382# Object file suffix (normally "o").
18383objext="$ac_objext"
18384
18385# Old archive suffix (normally "a").
18386libext="$libext"
18387
18388# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018389shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018390
18391# Executable file suffix (normally "").
18392exeext="$exeext"
18393
18394# Additional compiler flags for building library objects.
18395pic_flag=$lt_lt_prog_compiler_pic_CXX
18396pic_mode=$pic_mode
18397
18398# What is the maximum length of a command?
18399max_cmd_len=$lt_cv_sys_max_cmd_len
18400
18401# Does compiler simultaneously support -c and -o options?
18402compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18403
18404# Must we lock files when doing compilation ?
18405need_locks=$lt_need_locks
18406
18407# Do we need the lib prefix for modules?
18408need_lib_prefix=$need_lib_prefix
18409
18410# Do we need a version for libraries?
18411need_version=$need_version
18412
18413# Whether dlopen is supported.
18414dlopen_support=$enable_dlopen
18415
18416# Whether dlopen of programs is supported.
18417dlopen_self=$enable_dlopen_self
18418
18419# Whether dlopen of statically linked programs is supported.
18420dlopen_self_static=$enable_dlopen_self_static
18421
18422# Compiler flag to prevent dynamic linking.
18423link_static_flag=$lt_lt_prog_compiler_static_CXX
18424
18425# Compiler flag to turn off builtin functions.
18426no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18427
18428# Compiler flag to allow reflexive dlopens.
18429export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18430
18431# Compiler flag to generate shared objects directly from archives.
18432whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18433
18434# Compiler flag to generate thread-safe objects.
18435thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18436
18437# Library versioning type.
18438version_type=$version_type
18439
18440# Format of library name prefix.
18441libname_spec=$lt_libname_spec
18442
18443# List of archive names. First name is the real one, the rest are links.
18444# The last name is the one that the linker finds with -lNAME.
18445library_names_spec=$lt_library_names_spec
18446
18447# The coded name of the library, if different from the real name.
18448soname_spec=$lt_soname_spec
18449
18450# Commands used to build and install an old-style archive.
18451RANLIB=$lt_RANLIB
18452old_archive_cmds=$lt_old_archive_cmds_CXX
18453old_postinstall_cmds=$lt_old_postinstall_cmds
18454old_postuninstall_cmds=$lt_old_postuninstall_cmds
18455
18456# Create an old-style archive from a shared archive.
18457old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18458
18459# Create a temporary old-style archive to link instead of a shared archive.
18460old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18461
18462# Commands used to build and install a shared archive.
18463archive_cmds=$lt_archive_cmds_CXX
18464archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18465postinstall_cmds=$lt_postinstall_cmds
18466postuninstall_cmds=$lt_postuninstall_cmds
18467
18468# Commands used to build a loadable module (assumed same as above if empty)
18469module_cmds=$lt_module_cmds_CXX
18470module_expsym_cmds=$lt_module_expsym_cmds_CXX
18471
18472# Commands to strip libraries.
18473old_striplib=$lt_old_striplib
18474striplib=$lt_striplib
18475
18476# Dependencies to place before the objects being linked to create a
18477# shared library.
18478predep_objects=$lt_predep_objects_CXX
18479
18480# Dependencies to place after the objects being linked to create a
18481# shared library.
18482postdep_objects=$lt_postdep_objects_CXX
18483
18484# Dependencies to place before the objects being linked to create a
18485# shared library.
18486predeps=$lt_predeps_CXX
18487
18488# Dependencies to place after the objects being linked to create a
18489# shared library.
18490postdeps=$lt_postdeps_CXX
18491
18492# The library search path used internally by the compiler when linking
18493# a shared library.
18494compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18495
18496# Method to check whether dependent libraries are shared objects.
18497deplibs_check_method=$lt_deplibs_check_method
18498
18499# Command to use when deplibs_check_method == file_magic.
18500file_magic_cmd=$lt_file_magic_cmd
18501
18502# Flag that allows shared libraries with undefined symbols to be built.
18503allow_undefined_flag=$lt_allow_undefined_flag_CXX
18504
18505# Flag that forces no undefined symbols.
18506no_undefined_flag=$lt_no_undefined_flag_CXX
18507
18508# Commands used to finish a libtool library installation in a directory.
18509finish_cmds=$lt_finish_cmds
18510
18511# Same as above, but a single script fragment to be evaled but not shown.
18512finish_eval=$lt_finish_eval
18513
18514# Take the output of nm and produce a listing of raw symbols and C names.
18515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18516
18517# Transform the output of nm in a proper C declaration
18518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18519
18520# Transform the output of nm in a C name address pair
18521global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18522
18523# This is the shared library runtime path variable.
18524runpath_var=$runpath_var
18525
18526# This is the shared library path variable.
18527shlibpath_var=$shlibpath_var
18528
18529# Is shlibpath searched before the hard-coded library search path?
18530shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531
18532# How to hardcode a shared library path into an executable.
18533hardcode_action=$hardcode_action_CXX
18534
18535# Whether we should hardcode library paths into libraries.
18536hardcode_into_libs=$hardcode_into_libs
18537
18538# Flag to hardcode \$libdir into a binary during linking.
18539# This must work even if \$libdir does not exist.
18540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18541
18542# If ld is used when linking, flag to hardcode \$libdir into
18543# a binary during linking. This must work even if \$libdir does
18544# not exist.
18545hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18546
18547# Whether we need a single -rpath flag with a separated argument.
18548hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18549
18550# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18551# resulting binary.
18552hardcode_direct=$hardcode_direct_CXX
18553
18554# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18555# resulting binary.
18556hardcode_minus_L=$hardcode_minus_L_CXX
18557
18558# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18559# the resulting binary.
18560hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18561
18562# Set to yes if building a shared library automatically hardcodes DIR into the library
18563# and all subsequent libraries and executables linked against it.
18564hardcode_automatic=$hardcode_automatic_CXX
18565
18566# Variables whose values should be saved in libtool wrapper scripts and
18567# restored at relink time.
18568variables_saved_for_relink="$variables_saved_for_relink"
18569
18570# Whether libtool must link a program against all its dependency libraries.
18571link_all_deplibs=$link_all_deplibs_CXX
18572
18573# Compile-time system search path for libraries
18574sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575
18576# Run-time system search path for libraries
18577sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578
18579# Fix the shell variable \$srcfile for the compiler.
18580fix_srcfile_path="$fix_srcfile_path_CXX"
18581
18582# Set to yes if exported symbols are required.
18583always_export_symbols=$always_export_symbols_CXX
18584
18585# The commands to list exported symbols.
18586export_symbols_cmds=$lt_export_symbols_cmds_CXX
18587
18588# The commands to extract the exported symbol list from a shared archive.
18589extract_expsyms_cmds=$lt_extract_expsyms_cmds
18590
18591# Symbols that should not be listed in the preloaded symbols.
18592exclude_expsyms=$lt_exclude_expsyms_CXX
18593
18594# Symbols that must always be exported.
18595include_expsyms=$lt_include_expsyms_CXX
18596
18597# ### END LIBTOOL TAG CONFIG: $tagname
18598
18599__EOF__
18600
18601
18602else
18603 # If there is no Makefile yet, we rely on a make rule to execute
18604 # `config.status --recheck' to rerun these tests and create the
18605 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18607 if test -f "$ltmain_in"; then
18608 test -f Makefile && make "$ltmain"
18609 fi
John Criswell47fdd832003-07-14 16:52:07 +000018610fi
18611
18612
18613ac_ext=c
18614ac_cpp='$CPP $CPPFLAGS'
18615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617ac_compiler_gnu=$ac_cv_c_compiler_gnu
18618
18619CC=$lt_save_CC
18620LDCXX=$LD
18621LD=$lt_save_LD
18622GCC=$lt_save_GCC
18623with_gnu_ldcxx=$with_gnu_ld
18624with_gnu_ld=$lt_save_with_gnu_ld
18625lt_cv_path_LDCXX=$lt_cv_path_LD
18626lt_cv_path_LD=$lt_save_path_LD
18627lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18628lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18629
18630 else
18631 tagname=""
18632 fi
18633 ;;
18634
18635 F77)
18636 if test -n "$F77" && test "X$F77" != "Xno"; then
18637
18638ac_ext=f
18639ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18640ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18642
18643
18644archive_cmds_need_lc_F77=no
18645allow_undefined_flag_F77=
18646always_export_symbols_F77=no
18647archive_expsym_cmds_F77=
18648export_dynamic_flag_spec_F77=
18649hardcode_direct_F77=no
18650hardcode_libdir_flag_spec_F77=
18651hardcode_libdir_flag_spec_ld_F77=
18652hardcode_libdir_separator_F77=
18653hardcode_minus_L_F77=no
18654hardcode_automatic_F77=no
18655module_cmds_F77=
18656module_expsym_cmds_F77=
18657link_all_deplibs_F77=unknown
18658old_archive_cmds_F77=$old_archive_cmds
18659no_undefined_flag_F77=
18660whole_archive_flag_spec_F77=
18661enable_shared_with_static_runtimes_F77=no
18662
18663# Source file extension for f77 test sources.
18664ac_ext=f
18665
18666# Object file extension for compiled f77 test sources.
18667objext=o
18668objext_F77=$objext
18669
18670# Code to be used in simple compile tests
18671lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18672
18673# Code to be used in simple link tests
18674lt_simple_link_test_code=" program t\n end\n"
18675
18676# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18677
18678# If no C compiler was specified, use CC.
18679LTCC=${LTCC-"$CC"}
18680
18681# Allow CC to be a program name with arguments.
18682compiler=$CC
18683
18684
18685# Allow CC to be a program name with arguments.
18686lt_save_CC="$CC"
18687CC=${F77-"f77"}
18688compiler=$CC
18689compiler_F77=$CC
18690cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18691
18692echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18693echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18694echo "$as_me:$LINENO: result: $can_build_shared" >&5
18695echo "${ECHO_T}$can_build_shared" >&6
18696
18697echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18698echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18699test "$can_build_shared" = "no" && enable_shared=no
18700
18701# On AIX, shared libraries and static libraries use the same namespace, and
18702# are all built from PIC.
18703case "$host_os" in
18704aix3*)
18705 test "$enable_shared" = yes && enable_static=no
18706 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018708 postinstall_cmds='$RANLIB $lib'
18709 fi
18710 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018711aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018712 test "$enable_shared" = yes && enable_static=no
18713 ;;
18714esac
18715echo "$as_me:$LINENO: result: $enable_shared" >&5
18716echo "${ECHO_T}$enable_shared" >&6
18717
18718echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18719echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18720# Make sure either enable_shared or enable_static is yes.
18721test "$enable_shared" = yes || enable_static=yes
18722echo "$as_me:$LINENO: result: $enable_static" >&5
18723echo "${ECHO_T}$enable_static" >&6
18724
18725test "$ld_shlibs_F77" = no && can_build_shared=no
18726
18727GCC_F77="$G77"
18728LD_F77="$LD"
18729
18730lt_prog_compiler_wl_F77=
18731lt_prog_compiler_pic_F77=
18732lt_prog_compiler_static_F77=
18733
18734echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18735echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18736
18737 if test "$GCC" = yes; then
18738 lt_prog_compiler_wl_F77='-Wl,'
18739 lt_prog_compiler_static_F77='-static'
18740
18741 case $host_os in
18742 aix*)
18743 # All AIX code is PIC.
18744 if test "$host_cpu" = ia64; then
18745 # AIX 5 now supports IA64 processor
18746 lt_prog_compiler_static_F77='-Bstatic'
18747 fi
18748 ;;
18749
18750 amigaos*)
18751 # FIXME: we need at least 68020 code to build shared libraries, but
18752 # adding the `-m68020' flag to GCC prevents building anything better,
18753 # like `-m68040'.
18754 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18755 ;;
18756
18757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18758 # PIC is the default for these OSes.
18759 ;;
18760
18761 mingw* | pw32* | os2*)
18762 # This hack is so that the source file can tell whether it is being
18763 # built for inclusion in a dll (and should export symbols for example).
18764 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18765 ;;
18766
18767 darwin* | rhapsody*)
18768 # PIC is the default on this platform
18769 # Common symbols not allowed in MH_DYLIB files
18770 lt_prog_compiler_pic_F77='-fno-common'
18771 ;;
18772
18773 msdosdjgpp*)
18774 # Just because we use GCC doesn't mean we suddenly get shared libraries
18775 # on systems that don't support them.
18776 lt_prog_compiler_can_build_shared_F77=no
18777 enable_shared=no
18778 ;;
18779
18780 sysv4*MP*)
18781 if test -d /usr/nec; then
18782 lt_prog_compiler_pic_F77=-Kconform_pic
18783 fi
18784 ;;
18785
18786 hpux*)
18787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18788 # not for PA HP-UX.
18789 case "$host_cpu" in
18790 hppa*64*|ia64*)
18791 # +Z the default
18792 ;;
18793 *)
18794 lt_prog_compiler_pic_F77='-fPIC'
18795 ;;
18796 esac
18797 ;;
18798
18799 *)
18800 lt_prog_compiler_pic_F77='-fPIC'
18801 ;;
18802 esac
18803 else
18804 # PORTME Check for flag to pass linker flags through the system compiler.
18805 case $host_os in
18806 aix*)
18807 lt_prog_compiler_wl_F77='-Wl,'
18808 if test "$host_cpu" = ia64; then
18809 # AIX 5 now supports IA64 processor
18810 lt_prog_compiler_static_F77='-Bstatic'
18811 else
18812 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18813 fi
18814 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018815 darwin*)
18816 # PIC is the default on this platform
18817 # Common symbols not allowed in MH_DYLIB files
18818 case "$cc_basename" in
18819 xlc*)
18820 lt_prog_compiler_pic_F77='-qnocommon'
18821 lt_prog_compiler_wl_F77='-Wl,'
18822 ;;
18823 esac
18824 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018825
18826 mingw* | pw32* | os2*)
18827 # This hack is so that the source file can tell whether it is being
18828 # built for inclusion in a dll (and should export symbols for example).
18829 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18830 ;;
18831
18832 hpux9* | hpux10* | hpux11*)
18833 lt_prog_compiler_wl_F77='-Wl,'
18834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18835 # not for PA HP-UX.
18836 case "$host_cpu" in
18837 hppa*64*|ia64*)
18838 # +Z the default
18839 ;;
18840 *)
18841 lt_prog_compiler_pic_F77='+Z'
18842 ;;
18843 esac
18844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18845 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18846 ;;
18847
18848 irix5* | irix6* | nonstopux*)
18849 lt_prog_compiler_wl_F77='-Wl,'
18850 # PIC (with -KPIC) is the default.
18851 lt_prog_compiler_static_F77='-non_shared'
18852 ;;
18853
18854 newsos6)
18855 lt_prog_compiler_pic_F77='-KPIC'
18856 lt_prog_compiler_static_F77='-Bstatic'
18857 ;;
18858
18859 linux*)
18860 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018861 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018862 lt_prog_compiler_wl_F77='-Wl,'
18863 lt_prog_compiler_pic_F77='-KPIC'
18864 lt_prog_compiler_static_F77='-static'
18865 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018866 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018867 lt_prog_compiler_wl_F77='-Wl,'
18868 # All Alpha code is PIC.
18869 lt_prog_compiler_static_F77='-non_shared'
18870 ;;
18871 esac
18872 ;;
18873
18874 osf3* | osf4* | osf5*)
18875 lt_prog_compiler_wl_F77='-Wl,'
18876 # All OSF/1 code is PIC.
18877 lt_prog_compiler_static_F77='-non_shared'
18878 ;;
18879
18880 sco3.2v5*)
18881 lt_prog_compiler_pic_F77='-Kpic'
18882 lt_prog_compiler_static_F77='-dn'
18883 ;;
18884
18885 solaris*)
18886 lt_prog_compiler_wl_F77='-Wl,'
18887 lt_prog_compiler_pic_F77='-KPIC'
18888 lt_prog_compiler_static_F77='-Bstatic'
18889 ;;
18890
18891 sunos4*)
18892 lt_prog_compiler_wl_F77='-Qoption ld '
18893 lt_prog_compiler_pic_F77='-PIC'
18894 lt_prog_compiler_static_F77='-Bstatic'
18895 ;;
18896
18897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18898 lt_prog_compiler_wl_F77='-Wl,'
18899 lt_prog_compiler_pic_F77='-KPIC'
18900 lt_prog_compiler_static_F77='-Bstatic'
18901 ;;
18902
18903 sysv4*MP*)
18904 if test -d /usr/nec ;then
18905 lt_prog_compiler_pic_F77='-Kconform_pic'
18906 lt_prog_compiler_static_F77='-Bstatic'
18907 fi
18908 ;;
18909
18910 uts4*)
18911 lt_prog_compiler_pic_F77='-pic'
18912 lt_prog_compiler_static_F77='-Bstatic'
18913 ;;
18914
18915 *)
18916 lt_prog_compiler_can_build_shared_F77=no
18917 ;;
18918 esac
18919 fi
18920
18921echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18922echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18923
18924#
18925# Check to make sure the PIC flag actually works.
18926#
18927if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018928
18929echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018930echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18931if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933else
18934 lt_prog_compiler_pic_works_F77=no
18935 ac_outfile=conftest.$ac_objext
18936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18937 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18938 # Insert the option either (1) after the last *FLAGS variable, or
18939 # (2) before a word containing "conftest.", or (3) at the end.
18940 # Note that $ac_compile itself does not contain backslashes and begins
18941 # with a dollar sign (not a hyphen), so the echo should work correctly.
18942 # The option is referenced via a variable to avoid confusing sed.
18943 lt_compile=`echo "$ac_compile" | $SED \
18944 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18946 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000018947 (eval echo "\"\$as_me:18947: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018948 (eval "$lt_compile" 2>conftest.err)
18949 ac_status=$?
18950 cat conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000018951 echo "$as_me:18951: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018952 if (exit $ac_status) && test -s "$ac_outfile"; then
18953 # The compiler can only warn and ignore the option if not recognized
18954 # So say no if there are warnings
18955 if test ! -s conftest.err; then
18956 lt_prog_compiler_pic_works_F77=yes
18957 fi
18958 fi
18959 $rm conftest*
18960
18961fi
18962echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18963echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18964
18965if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18966 case $lt_prog_compiler_pic_F77 in
18967 "" | " "*) ;;
18968 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18969 esac
18970else
18971 lt_prog_compiler_pic_F77=
18972 lt_prog_compiler_can_build_shared_F77=no
18973fi
18974
18975fi
18976case "$host_os" in
18977 # For platforms which do not support PIC, -DPIC is meaningless:
18978 *djgpp*)
18979 lt_prog_compiler_pic_F77=
18980 ;;
18981 *)
18982 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18983 ;;
18984esac
18985
18986echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18987echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18988if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991 lt_cv_prog_compiler_c_o_F77=no
18992 $rm -r conftest 2>/dev/null
18993 mkdir conftest
18994 cd conftest
18995 mkdir out
18996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18997
John Criswell47fdd832003-07-14 16:52:07 +000018998 lt_compiler_flag="-o out/conftest2.$ac_objext"
18999 # Insert the option either (1) after the last *FLAGS variable, or
19000 # (2) before a word containing "conftest.", or (3) at the end.
19001 # Note that $ac_compile itself does not contain backslashes and begins
19002 # with a dollar sign (not a hyphen), so the echo should work correctly.
19003 lt_compile=`echo "$ac_compile" | $SED \
19004 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19006 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000019007 (eval echo "\"\$as_me:19007: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019008 (eval "$lt_compile" 2>out/conftest.err)
19009 ac_status=$?
19010 cat out/conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000019011 echo "$as_me:19011: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19013 then
19014 # The compiler can only warn and ignore the option if not recognized
19015 # So say no if there are warnings
19016 if test ! -s out/conftest.err; then
19017 lt_cv_prog_compiler_c_o_F77=yes
19018 fi
19019 fi
19020 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019021 $rm conftest*
19022 # SGI C++ compiler will create directory out/ii_files/ for
19023 # template instantiation
19024 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19025 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019026 cd ..
19027 rmdir conftest
19028 $rm conftest*
19029
19030fi
19031echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19032echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19033
19034
19035hard_links="nottested"
19036if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19037 # do not overwrite the value of need_locks provided by the user
19038 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19039echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19040 hard_links=yes
19041 $rm conftest*
19042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19043 touch conftest.a
19044 ln conftest.a conftest.b 2>&5 || hard_links=no
19045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19046 echo "$as_me:$LINENO: result: $hard_links" >&5
19047echo "${ECHO_T}$hard_links" >&6
19048 if test "$hard_links" = no; then
19049 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19050echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19051 need_locks=warn
19052 fi
19053else
19054 need_locks=no
19055fi
19056
19057echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19058echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19059
19060 runpath_var=
19061 allow_undefined_flag_F77=
19062 enable_shared_with_static_runtimes_F77=no
19063 archive_cmds_F77=
19064 archive_expsym_cmds_F77=
19065 old_archive_From_new_cmds_F77=
19066 old_archive_from_expsyms_cmds_F77=
19067 export_dynamic_flag_spec_F77=
19068 whole_archive_flag_spec_F77=
19069 thread_safe_flag_spec_F77=
19070 hardcode_libdir_flag_spec_F77=
19071 hardcode_libdir_flag_spec_ld_F77=
19072 hardcode_libdir_separator_F77=
19073 hardcode_direct_F77=no
19074 hardcode_minus_L_F77=no
19075 hardcode_shlibpath_var_F77=unsupported
19076 link_all_deplibs_F77=unknown
19077 hardcode_automatic_F77=no
19078 module_cmds_F77=
19079 module_expsym_cmds_F77=
19080 always_export_symbols_F77=no
19081 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19082 # include_expsyms should be a list of space-separated symbols to be *always*
19083 # included in the symbol list
19084 include_expsyms_F77=
19085 # exclude_expsyms can be an extended regexp of symbols to exclude
19086 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19087 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19088 # as well as any symbol that contains `d'.
19089 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19091 # platforms (ab)use it in PIC code, but their linkers get confused if
19092 # the symbol is explicitly referenced. Since portable code cannot
19093 # rely on this symbol name, it's probably fine to never include it in
19094 # preloaded symbol tables.
19095 extract_expsyms_cmds=
19096
19097 case $host_os in
19098 cygwin* | mingw* | pw32*)
19099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19100 # When not using gcc, we currently assume that we are using
19101 # Microsoft Visual C++.
19102 if test "$GCC" != yes; then
19103 with_gnu_ld=no
19104 fi
19105 ;;
19106 openbsd*)
19107 with_gnu_ld=no
19108 ;;
19109 esac
19110
19111 ld_shlibs_F77=yes
19112 if test "$with_gnu_ld" = yes; then
19113 # If archive_cmds runs LD, not CC, wlarc should be empty
19114 wlarc='${wl}'
19115
19116 # See if GNU ld supports shared libraries.
19117 case $host_os in
19118 aix3* | aix4* | aix5*)
19119 # On AIX/PPC, the GNU linker is very broken
19120 if test "$host_cpu" != ia64; then
19121 ld_shlibs_F77=no
19122 cat <<EOF 1>&2
19123
19124*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19125*** to be unable to reliably create shared libraries on AIX.
19126*** Therefore, libtool is disabling shared libraries support. If you
19127*** really care for shared libraries, you may want to modify your PATH
19128*** so that a non-GNU linker is found, and then restart.
19129
19130EOF
19131 fi
19132 ;;
19133
19134 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019135 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 +000019136 hardcode_libdir_flag_spec_F77='-L$libdir'
19137 hardcode_minus_L_F77=yes
19138
19139 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19140 # that the semantics of dynamic libraries on AmigaOS, at least up
19141 # to version 4, is to share data among multiple programs linked
19142 # with the same dynamic library. Since this doesn't match the
19143 # behavior of shared libraries on other platforms, we can't use
19144 # them.
19145 ld_shlibs_F77=no
19146 ;;
19147
19148 beos*)
19149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19150 allow_undefined_flag_F77=unsupported
19151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19152 # support --undefined. This deserves some investigation. FIXME
19153 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19154 else
19155 ld_shlibs_F77=no
19156 fi
19157 ;;
19158
19159 cygwin* | mingw* | pw32*)
19160 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19161 # as there is no search path for DLLs.
19162 hardcode_libdir_flag_spec_F77='-L$libdir'
19163 allow_undefined_flag_F77=unsupported
19164 always_export_symbols_F77=no
19165 enable_shared_with_static_runtimes_F77=yes
19166 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19167
19168 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19170 # If the export-symbols file already is a .def file (1st line
19171 # is EXPORTS), use it as is; otherwise, prepend...
19172 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19173 cp $export_symbols $output_objdir/$soname.def;
19174 else
19175 echo EXPORTS > $output_objdir/$soname.def;
19176 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019177 fi~
19178 $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 +000019179 else
19180 ld_shlibs=no
19181 fi
19182 ;;
19183
19184 netbsd*)
19185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19186 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19187 wlarc=
19188 else
19189 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19190 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19191 fi
19192 ;;
19193
19194 solaris* | sysv5*)
19195 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19196 ld_shlibs_F77=no
19197 cat <<EOF 1>&2
19198
19199*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19200*** create shared libraries on Solaris systems. Therefore, libtool
19201*** is disabling shared libraries support. We urge you to upgrade GNU
19202*** binutils to release 2.9.1 or newer. Another option is to modify
19203*** your PATH or compiler configuration so that the native linker is
19204*** used, and then restart.
19205
19206EOF
19207 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19210 else
19211 ld_shlibs_F77=no
19212 fi
19213 ;;
19214
19215 sunos4*)
19216 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19217 wlarc=
19218 hardcode_direct_F77=yes
19219 hardcode_shlibpath_var_F77=no
19220 ;;
19221
Reid Spencer2706f8c2004-09-19 23:53:36 +000019222 linux*)
19223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19224 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19225 archive_cmds_F77="$tmp_archive_cmds"
19226 supports_anon_versioning=no
19227 case `$LD -v 2>/dev/null` in
19228 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19231 *\ 2.11.*) ;; # other 2.11 versions
19232 *) supports_anon_versioning=yes ;;
19233 esac
19234 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019235 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19236cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19237$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019238 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19239 else
19240 archive_expsym_cmds_F77="$tmp_archive_cmds"
19241 fi
19242 else
19243 ld_shlibs_F77=no
19244 fi
19245 ;;
19246
John Criswell47fdd832003-07-14 16:52:07 +000019247 *)
19248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19251 else
19252 ld_shlibs_F77=no
19253 fi
19254 ;;
19255 esac
19256
19257 if test "$ld_shlibs_F77" = yes; then
19258 runpath_var=LD_RUN_PATH
19259 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19260 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19261 # ancient GNU ld didn't support --whole-archive et. al.
19262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19263 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19264 else
19265 whole_archive_flag_spec_F77=
19266 fi
19267 fi
19268 else
19269 # PORTME fill in a description of your system's linker (not GNU ld)
19270 case $host_os in
19271 aix3*)
19272 allow_undefined_flag_F77=unsupported
19273 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019274 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 +000019275 # Note: this linker hardcodes the directories in LIBPATH if there
19276 # are no directories specified by -L.
19277 hardcode_minus_L_F77=yes
19278 if test "$GCC" = yes && test -z "$link_static_flag"; then
19279 # Neither direct hardcoding nor static linking is supported with a
19280 # broken collect2.
19281 hardcode_direct_F77=unsupported
19282 fi
19283 ;;
19284
19285 aix4* | aix5*)
19286 if test "$host_cpu" = ia64; then
19287 # On IA64, the linker does run time linking by default, so we don't
19288 # have to do anything special.
19289 aix_use_runtimelinking=no
19290 exp_sym_flag='-Bexport'
19291 no_entry_flag=""
19292 else
19293 # If we're using GNU nm, then we don't want the "-C" option.
19294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19296 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'
19297 else
19298 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'
19299 fi
19300 aix_use_runtimelinking=no
19301
19302 # Test if we are trying to use run time linking or normal
19303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19304 # need to do runtime linking.
19305 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19306 for ld_flag in $LDFLAGS; do
19307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19308 aix_use_runtimelinking=yes
19309 break
19310 fi
19311 done
19312 esac
19313
19314 exp_sym_flag='-bexport'
19315 no_entry_flag='-bnoentry'
19316 fi
19317
19318 # When large executables or shared objects are built, AIX ld can
19319 # have problems creating the table of contents. If linking a library
19320 # or program results in "error TOC overflow" add -mminimal-toc to
19321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19323
19324 archive_cmds_F77=''
19325 hardcode_direct_F77=yes
19326 hardcode_libdir_separator_F77=':'
19327 link_all_deplibs_F77=yes
19328
19329 if test "$GCC" = yes; then
19330 case $host_os in aix4.012|aix4.012.*)
19331 # We only want to do this on AIX 4.2 and lower, the check
19332 # below for broken collect2 doesn't work under 4.3+
19333 collect2name=`${CC} -print-prog-name=collect2`
19334 if test -f "$collect2name" && \
19335 strings "$collect2name" | grep resolve_lib_name >/dev/null
19336 then
19337 # We have reworked collect2
19338 hardcode_direct_F77=yes
19339 else
19340 # We have old collect2
19341 hardcode_direct_F77=unsupported
19342 # It fails to find uninstalled libraries when the uninstalled
19343 # path is not listed in the libpath. Setting hardcode_minus_L
19344 # to unsupported forces relinking
19345 hardcode_minus_L_F77=yes
19346 hardcode_libdir_flag_spec_F77='-L$libdir'
19347 hardcode_libdir_separator_F77=
19348 fi
19349 esac
19350 shared_flag='-shared'
19351 else
19352 # not using gcc
19353 if test "$host_cpu" = ia64; then
19354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19355 # chokes on -Wl,-G. The following line is correct:
19356 shared_flag='-G'
19357 else
19358 if test "$aix_use_runtimelinking" = yes; then
19359 shared_flag='${wl}-G'
19360 else
19361 shared_flag='${wl}-bM:SRE'
19362 fi
19363 fi
19364 fi
19365
19366 # It seems that -bexpall does not export symbols beginning with
19367 # underscore (_), so it is better to generate a list of symbols to export.
19368 always_export_symbols_F77=yes
19369 if test "$aix_use_runtimelinking" = yes; then
19370 # Warning - without using the other runtime loading flags (-brtl),
19371 # -berok will link without error, but may produce a broken library.
19372 allow_undefined_flag_F77='-berok'
19373 # Determine the default libpath from the value encoded in an empty executable.
19374 cat >conftest.$ac_ext <<_ACEOF
19375 program main
19376
19377 end
19378_ACEOF
19379rm -f conftest.$ac_objext conftest$ac_exeext
19380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019381 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019388 { ac_try='test -z "$ac_f77_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401
19402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19403}'`
19404# Check for a 64-bit object if we didn't find anything.
19405if 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; }
19406}'`; fi
19407else
19408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019409sed 's/^/| /' conftest.$ac_ext >&5
19410
John Criswell47fdd832003-07-14 16:52:07 +000019411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019412rm -f conftest.err conftest.$ac_objext \
19413 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19415
19416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19417 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"
19418 else
19419 if test "$host_cpu" = ia64; then
19420 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19421 allow_undefined_flag_F77="-z nodefs"
19422 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"
19423 else
19424 # Determine the default libpath from the value encoded in an empty executable.
19425 cat >conftest.$ac_ext <<_ACEOF
19426 program main
19427
19428 end
19429_ACEOF
19430rm -f conftest.$ac_objext conftest$ac_exeext
19431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019432 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019439 { ac_try='test -z "$ac_f77_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452
19453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19454}'`
19455# Check for a 64-bit object if we didn't find anything.
19456if 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; }
19457}'`; fi
19458else
19459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019460sed 's/^/| /' conftest.$ac_ext >&5
19461
John Criswell47fdd832003-07-14 16:52:07 +000019462fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019463rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19466
19467 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19468 # Warning - without using the other run time loading flags,
19469 # -berok will link without error, but may produce a broken library.
19470 no_undefined_flag_F77=' ${wl}-bernotok'
19471 allow_undefined_flag_F77=' ${wl}-berok'
19472 # -bexpall does not export symbols beginning with underscore (_)
19473 always_export_symbols_F77=yes
19474 # Exported symbols can be pulled into shared objects from archives
19475 whole_archive_flag_spec_F77=' '
19476 archive_cmds_need_lc_F77=yes
19477 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019478 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 +000019479 fi
19480 fi
19481 ;;
19482
19483 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019484 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 +000019485 hardcode_libdir_flag_spec_F77='-L$libdir'
19486 hardcode_minus_L_F77=yes
19487 # see comment about different semantics on the GNU ld section
19488 ld_shlibs_F77=no
19489 ;;
19490
Reid Spencer2706f8c2004-09-19 23:53:36 +000019491 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019492 export_dynamic_flag_spec_F77=-rdynamic
19493 ;;
19494
19495 cygwin* | mingw* | pw32*)
19496 # When not using gcc, we currently assume that we are using
19497 # Microsoft Visual C++.
19498 # hardcode_libdir_flag_spec is actually meaningless, as there is
19499 # no search path for DLLs.
19500 hardcode_libdir_flag_spec_F77=' '
19501 allow_undefined_flag_F77=unsupported
19502 # Tell ltmain to make .lib files, not .a files.
19503 libext=lib
19504 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019505 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019506 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019507 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 +000019508 # The linker will automatically build a .lib file if we build a DLL.
19509 old_archive_From_new_cmds_F77='true'
19510 # FIXME: Should let the user specify the lib program.
19511 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19512 fix_srcfile_path='`cygpath -w "$srcfile"`'
19513 enable_shared_with_static_runtimes_F77=yes
19514 ;;
19515
19516 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019517 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019518 rhapsody* | darwin1.[012])
19519 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19520 ;;
19521 *) # Darwin 1.3 on
19522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19523 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19524 else
19525 case ${MACOSX_DEPLOYMENT_TARGET} in
19526 10.[012])
19527 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19528 ;;
19529 10.*)
19530 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19531 ;;
19532 esac
19533 fi
19534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019535 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019536 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019537 hardcode_direct_F77=no
19538 hardcode_automatic_F77=yes
19539 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019540 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019541 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019542 if test "$GCC" = yes ; then
19543 output_verbose_link_cmd='echo'
19544 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19545 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19546 # 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 +000019547 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}'
19548 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 +000019549 else
19550 case "$cc_basename" in
19551 xlc*)
19552 output_verbose_link_cmd='echo'
19553 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19554 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19555 # 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 +000019556 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}'
19557 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 +000019558 ;;
19559 *)
19560 ld_shlibs_F77=no
19561 ;;
19562 esac
John Criswell47fdd832003-07-14 16:52:07 +000019563 fi
19564 ;;
19565
19566 dgux*)
19567 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19568 hardcode_libdir_flag_spec_F77='-L$libdir'
19569 hardcode_shlibpath_var_F77=no
19570 ;;
19571
19572 freebsd1*)
19573 ld_shlibs_F77=no
19574 ;;
19575
19576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19577 # support. Future versions do this automatically, but an explicit c++rt0.o
19578 # does not break anything, and helps significantly (at the cost of a little
19579 # extra space).
19580 freebsd2.2*)
19581 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19582 hardcode_libdir_flag_spec_F77='-R$libdir'
19583 hardcode_direct_F77=yes
19584 hardcode_shlibpath_var_F77=no
19585 ;;
19586
19587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19588 freebsd2*)
19589 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19590 hardcode_direct_F77=yes
19591 hardcode_minus_L_F77=yes
19592 hardcode_shlibpath_var_F77=no
19593 ;;
19594
19595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019596 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019597 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19598 hardcode_libdir_flag_spec_F77='-R$libdir'
19599 hardcode_direct_F77=yes
19600 hardcode_shlibpath_var_F77=no
19601 ;;
19602
19603 hpux9*)
19604 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019605 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 +000019606 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019607 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 +000019608 fi
19609 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19610 hardcode_libdir_separator_F77=:
19611 hardcode_direct_F77=yes
19612
19613 # hardcode_minus_L: Not really in the search PATH,
19614 # but as the default location of the library.
19615 hardcode_minus_L_F77=yes
19616 export_dynamic_flag_spec_F77='${wl}-E'
19617 ;;
19618
19619 hpux10* | hpux11*)
19620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19621 case "$host_cpu" in
19622 hppa*64*|ia64*)
19623 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19624 ;;
19625 *)
19626 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19627 ;;
19628 esac
19629 else
19630 case "$host_cpu" in
19631 hppa*64*|ia64*)
19632 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19633 ;;
19634 *)
19635 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19636 ;;
19637 esac
19638 fi
19639 if test "$with_gnu_ld" = no; then
19640 case "$host_cpu" in
19641 hppa*64*)
19642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19643 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19644 hardcode_libdir_separator_F77=:
19645 hardcode_direct_F77=no
19646 hardcode_shlibpath_var_F77=no
19647 ;;
19648 ia64*)
19649 hardcode_libdir_flag_spec_F77='-L$libdir'
19650 hardcode_direct_F77=no
19651 hardcode_shlibpath_var_F77=no
19652
19653 # hardcode_minus_L: Not really in the search PATH,
19654 # but as the default location of the library.
19655 hardcode_minus_L_F77=yes
19656 ;;
19657 *)
19658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19659 hardcode_libdir_separator_F77=:
19660 hardcode_direct_F77=yes
19661 export_dynamic_flag_spec_F77='${wl}-E'
19662
19663 # hardcode_minus_L: Not really in the search PATH,
19664 # but as the default location of the library.
19665 hardcode_minus_L_F77=yes
19666 ;;
19667 esac
19668 fi
19669 ;;
19670
19671 irix5* | irix6* | nonstopux*)
19672 if test "$GCC" = yes; then
19673 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'
19674 else
19675 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'
19676 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19677 fi
19678 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19679 hardcode_libdir_separator_F77=:
19680 link_all_deplibs_F77=yes
19681 ;;
19682
19683 netbsd*)
19684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19685 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19686 else
19687 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19688 fi
19689 hardcode_libdir_flag_spec_F77='-R$libdir'
19690 hardcode_direct_F77=yes
19691 hardcode_shlibpath_var_F77=no
19692 ;;
19693
19694 newsos6)
19695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19696 hardcode_direct_F77=yes
19697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19698 hardcode_libdir_separator_F77=:
19699 hardcode_shlibpath_var_F77=no
19700 ;;
19701
19702 openbsd*)
19703 hardcode_direct_F77=yes
19704 hardcode_shlibpath_var_F77=no
19705 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19706 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019707 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 +000019708 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19709 export_dynamic_flag_spec_F77='${wl}-E'
19710 else
19711 case $host_os in
19712 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19714 hardcode_libdir_flag_spec_F77='-R$libdir'
19715 ;;
19716 *)
19717 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19718 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19719 ;;
19720 esac
19721 fi
19722 ;;
19723
19724 os2*)
19725 hardcode_libdir_flag_spec_F77='-L$libdir'
19726 hardcode_minus_L_F77=yes
19727 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019728 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 +000019729 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19730 ;;
19731
19732 osf3*)
19733 if test "$GCC" = yes; then
19734 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19735 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'
19736 else
19737 allow_undefined_flag_F77=' -expect_unresolved \*'
19738 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'
19739 fi
19740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19741 hardcode_libdir_separator_F77=:
19742 ;;
19743
19744 osf4* | osf5*) # as osf3* with the addition of -msym flag
19745 if test "$GCC" = yes; then
19746 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19747 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'
19748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19749 else
19750 allow_undefined_flag_F77=' -expect_unresolved \*'
19751 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 +000019752 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~
19753 $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'
19754
John Criswell47fdd832003-07-14 16:52:07 +000019755 # Both c and cxx compiler support -rpath directly
19756 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19757 fi
19758 hardcode_libdir_separator_F77=:
19759 ;;
19760
19761 sco3.2v5*)
19762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19763 hardcode_shlibpath_var_F77=no
19764 export_dynamic_flag_spec_F77='${wl}-Bexport'
19765 runpath_var=LD_RUN_PATH
19766 hardcode_runpath_var=yes
19767 ;;
19768
19769 solaris*)
19770 no_undefined_flag_F77=' -z text'
19771 if test "$GCC" = yes; then
19772 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019773 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19774 $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 +000019775 else
19776 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019777 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19778 $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 +000019779 fi
19780 hardcode_libdir_flag_spec_F77='-R$libdir'
19781 hardcode_shlibpath_var_F77=no
19782 case $host_os in
19783 solaris2.[0-5] | solaris2.[0-5].*) ;;
19784 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19785 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19786 esac
19787 link_all_deplibs_F77=yes
19788 ;;
19789
19790 sunos4*)
19791 if test "x$host_vendor" = xsequent; then
19792 # Use $CC to link under sequent, because it throws in some extra .o
19793 # files that make .init and .fini sections work.
19794 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19795 else
19796 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19797 fi
19798 hardcode_libdir_flag_spec_F77='-L$libdir'
19799 hardcode_direct_F77=yes
19800 hardcode_minus_L_F77=yes
19801 hardcode_shlibpath_var_F77=no
19802 ;;
19803
19804 sysv4)
19805 case $host_vendor in
19806 sni)
19807 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19808 hardcode_direct_F77=yes # is this really true???
19809 ;;
19810 siemens)
19811 ## LD is ld it makes a PLAMLIB
19812 ## CC just makes a GrossModule.
19813 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19814 reload_cmds_F77='$CC -r -o $output$reload_objs'
19815 hardcode_direct_F77=no
19816 ;;
19817 motorola)
19818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19819 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19820 ;;
19821 esac
19822 runpath_var='LD_RUN_PATH'
19823 hardcode_shlibpath_var_F77=no
19824 ;;
19825
19826 sysv4.3*)
19827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19828 hardcode_shlibpath_var_F77=no
19829 export_dynamic_flag_spec_F77='-Bexport'
19830 ;;
19831
19832 sysv4*MP*)
19833 if test -d /usr/nec; then
19834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_shlibpath_var_F77=no
19836 runpath_var=LD_RUN_PATH
19837 hardcode_runpath_var=yes
19838 ld_shlibs_F77=yes
19839 fi
19840 ;;
19841
19842 sysv4.2uw2*)
19843 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19844 hardcode_direct_F77=yes
19845 hardcode_minus_L_F77=no
19846 hardcode_shlibpath_var_F77=no
19847 hardcode_runpath_var=yes
19848 runpath_var=LD_RUN_PATH
19849 ;;
19850
19851 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19852 no_undefined_flag_F77='${wl}-z ${wl}text'
19853 if test "$GCC" = yes; then
19854 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19855 else
19856 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19857 fi
19858 runpath_var='LD_RUN_PATH'
19859 hardcode_shlibpath_var_F77=no
19860 ;;
19861
19862 sysv5*)
19863 no_undefined_flag_F77=' -z text'
19864 # $CC -shared without GNU ld will not create a library from C++
19865 # object files and a static libstdc++, better avoid it by now
19866 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019867 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19868 $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 +000019869 hardcode_libdir_flag_spec_F77=
19870 hardcode_shlibpath_var_F77=no
19871 runpath_var='LD_RUN_PATH'
19872 ;;
19873
19874 uts4*)
19875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19876 hardcode_libdir_flag_spec_F77='-L$libdir'
19877 hardcode_shlibpath_var_F77=no
19878 ;;
19879
19880 *)
19881 ld_shlibs_F77=no
19882 ;;
19883 esac
19884 fi
19885
19886echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19887echo "${ECHO_T}$ld_shlibs_F77" >&6
19888test "$ld_shlibs_F77" = no && can_build_shared=no
19889
19890variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19891if test "$GCC" = yes; then
19892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19893fi
19894
19895#
19896# Do we need to explicitly link libc?
19897#
19898case "x$archive_cmds_need_lc_F77" in
19899x|xyes)
19900 # Assume -lc should be added
19901 archive_cmds_need_lc_F77=yes
19902
19903 if test "$enable_shared" = yes && test "$GCC" = yes; then
19904 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019905 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019906 # FIXME: we may have to deal with multi-command sequences.
19907 ;;
19908 '$CC '*)
19909 # Test whether the compiler implicitly links with -lc since on some
19910 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19911 # to ld, don't add -lc before -lgcc.
19912 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19913echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19914 $rm conftest*
19915 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19916
19917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19918 (eval $ac_compile) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } 2>conftest.err; then
19922 soname=conftest
19923 lib=conftest
19924 libobjs=conftest.$ac_objext
19925 deplibs=
19926 wl=$lt_prog_compiler_wl_F77
19927 compiler_flags=-v
19928 linker_flags=-v
19929 verstring=
19930 output_objdir=.
19931 libname=conftest
19932 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19933 allow_undefined_flag_F77=
19934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19935 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }
19939 then
19940 archive_cmds_need_lc_F77=no
19941 else
19942 archive_cmds_need_lc_F77=yes
19943 fi
19944 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19945 else
19946 cat conftest.err 1>&5
19947 fi
19948 $rm conftest*
19949 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19950echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19951 ;;
19952 esac
19953 fi
19954 ;;
19955esac
19956
John Criswell47fdd832003-07-14 16:52:07 +000019957echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19958echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19959library_names_spec=
19960libname_spec='lib$name'
19961soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019962shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019963postinstall_cmds=
19964postuninstall_cmds=
19965finish_cmds=
19966finish_eval=
19967shlibpath_var=
19968shlibpath_overrides_runpath=unknown
19969version_type=none
19970dynamic_linker="$host_os ld.so"
19971sys_lib_dlsearch_path_spec="/lib /usr/lib"
19972if test "$GCC" = yes; then
19973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19974 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19975 # if the path contains ";" then we assume it to be the separator
19976 # otherwise default to the standard path separator (i.e. ":") - it is
19977 # assumed that no part of a normal pathname contains ";" but that should
19978 # okay in the real world where ";" in dirpaths is itself problematic.
19979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19980 else
19981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19982 fi
19983else
19984 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19985fi
19986need_lib_prefix=unknown
19987hardcode_into_libs=no
19988
19989# when you set need_version to no, make sure it does not cause -set_version
19990# flags to be left without arguments
19991need_version=unknown
19992
19993case $host_os in
19994aix3*)
19995 version_type=linux
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19997 shlibpath_var=LIBPATH
19998
19999 # AIX 3 has no versioning support, so we append a major version to the name.
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 ;;
20002
20003aix4* | aix5*)
20004 version_type=linux
20005 need_lib_prefix=no
20006 need_version=no
20007 hardcode_into_libs=yes
20008 if test "$host_cpu" = ia64; then
20009 # AIX 5 supports IA64
20010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20011 shlibpath_var=LD_LIBRARY_PATH
20012 else
20013 # With GCC up to 2.95.x, collect2 would create an import file
20014 # for dependence libraries. The import file would start with
20015 # the line `#! .'. This would cause the generated library to
20016 # depend on `.', always an invalid library. This was fixed in
20017 # development snapshots of GCC prior to 3.0.
20018 case $host_os in
20019 aix4 | aix4.[01] | aix4.[01].*)
20020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20021 echo ' yes '
20022 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20023 :
20024 else
20025 can_build_shared=no
20026 fi
20027 ;;
20028 esac
20029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20030 # soname into executable. Probably we can add versioning support to
20031 # collect2, so additional links can be useful in future.
20032 if test "$aix_use_runtimelinking" = yes; then
20033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20034 # instead of lib<name>.a to let people know that these are not
20035 # typical AIX shared libraries.
20036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037 else
20038 # We preserve .a as extension for shared libraries through AIX4.2
20039 # and later when we are not doing run time linking.
20040 library_names_spec='${libname}${release}.a $libname.a'
20041 soname_spec='${libname}${release}${shared_ext}$major'
20042 fi
20043 shlibpath_var=LIBPATH
20044 fi
20045 ;;
20046
20047amigaos*)
20048 library_names_spec='$libname.ixlibrary $libname.a'
20049 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020050 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 +000020051 ;;
20052
20053beos*)
20054 library_names_spec='${libname}${shared_ext}'
20055 dynamic_linker="$host_os ld.so"
20056 shlibpath_var=LIBRARY_PATH
20057 ;;
20058
Reid Spencer2706f8c2004-09-19 23:53:36 +000020059bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020060 version_type=linux
20061 need_version=no
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20065 shlibpath_var=LD_LIBRARY_PATH
20066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20068 # the default ld.so.conf also contains /usr/contrib/lib and
20069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20070 # libtool to hard-code these into programs
20071 ;;
20072
20073cygwin* | mingw* | pw32*)
20074 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020075 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020076 need_version=no
20077 need_lib_prefix=no
20078
20079 case $GCC,$host_os in
20080 yes,cygwin* | yes,mingw* | yes,pw32*)
20081 library_names_spec='$libname.dll.a'
20082 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020083 postinstall_cmds='base_file=`basename \${file}`~
20084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20085 dldir=$destdir/`dirname \$dlpath`~
20086 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020087 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20089 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020090 $rm \$dlpath'
20091 shlibpath_overrides_runpath=yes
20092
20093 case $host_os in
20094 cygwin*)
20095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20096 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 +000020097 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020098 ;;
20099 mingw*)
20100 # MinGW DLLs use traditional 'lib' prefix
20101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20103 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20104 # It is most probably a Windows format PATH printed by
20105 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20106 # path with ; separators, and with drive letters. We can handle the
20107 # drive letters (cygwin fileutils understands them), so leave them,
20108 # especially as we might pass files found there to a mingw objdump,
20109 # which wouldn't understand a cygwinified path. Ahh.
20110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20111 else
20112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20113 fi
20114 ;;
20115 pw32*)
20116 # pw32 DLLs use 'pw' prefix rather than 'lib'
20117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20118 ;;
20119 esac
20120 ;;
20121
20122 *)
20123 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20124 ;;
20125 esac
20126 dynamic_linker='Win32 ld.exe'
20127 # FIXME: first we should search . and the directory the executable is in
20128 shlibpath_var=PATH
20129 ;;
20130
20131darwin* | rhapsody*)
20132 dynamic_linker="$host_os dyld"
20133 version_type=darwin
20134 need_lib_prefix=no
20135 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020137 soname_spec='${libname}${release}${major}$shared_ext'
20138 shlibpath_overrides_runpath=yes
20139 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020140 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020141 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020142 if test "$GCC" = yes; then
20143 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"`
20144 else
20145 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020146 fi
20147 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20148 ;;
20149
20150dgux*)
20151 version_type=linux
20152 need_lib_prefix=no
20153 need_version=no
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20155 soname_spec='${libname}${release}${shared_ext}$major'
20156 shlibpath_var=LD_LIBRARY_PATH
20157 ;;
20158
20159freebsd1*)
20160 dynamic_linker=no
20161 ;;
20162
Reid Spencer2706f8c2004-09-19 23:53:36 +000020163kfreebsd*-gnu)
20164 version_type=linux
20165 need_lib_prefix=no
20166 need_version=no
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20169 shlibpath_var=LD_LIBRARY_PATH
20170 shlibpath_overrides_runpath=no
20171 hardcode_into_libs=yes
20172 dynamic_linker='GNU ld.so'
20173 ;;
20174
John Criswell47fdd832003-07-14 16:52:07 +000020175freebsd*)
20176 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20177 version_type=freebsd-$objformat
20178 case $version_type in
20179 freebsd-elf*)
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20181 need_version=no
20182 need_lib_prefix=no
20183 ;;
20184 freebsd-*)
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20186 need_version=yes
20187 ;;
20188 esac
20189 shlibpath_var=LD_LIBRARY_PATH
20190 case $host_os in
20191 freebsd2*)
20192 shlibpath_overrides_runpath=yes
20193 ;;
20194 freebsd3.01* | freebsdelf3.01*)
20195 shlibpath_overrides_runpath=yes
20196 hardcode_into_libs=yes
20197 ;;
20198 *) # from 3.2 on
20199 shlibpath_overrides_runpath=no
20200 hardcode_into_libs=yes
20201 ;;
20202 esac
20203 ;;
20204
20205gnu*)
20206 version_type=linux
20207 need_lib_prefix=no
20208 need_version=no
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 shlibpath_var=LD_LIBRARY_PATH
20212 hardcode_into_libs=yes
20213 ;;
20214
20215hpux9* | hpux10* | hpux11*)
20216 # Give a soname corresponding to the major version so that dld.sl refuses to
20217 # link against other versions.
20218 version_type=sunos
20219 need_lib_prefix=no
20220 need_version=no
20221 case "$host_cpu" in
20222 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020223 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020224 hardcode_into_libs=yes
20225 dynamic_linker="$host_os dld.so"
20226 shlibpath_var=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 if test "X$HPUX_IA64_MODE" = X32; then
20231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20232 else
20233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20234 fi
20235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20236 ;;
20237 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020238 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020239 hardcode_into_libs=yes
20240 dynamic_linker="$host_os dld.sl"
20241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20247 ;;
20248 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020249 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020250 dynamic_linker="$host_os dld.sl"
20251 shlibpath_var=SHLIB_PATH
20252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 ;;
20256 esac
20257 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20258 postinstall_cmds='chmod 555 $lib'
20259 ;;
20260
20261irix5* | irix6* | nonstopux*)
20262 case $host_os in
20263 nonstopux*) version_type=nonstopux ;;
20264 *)
20265 if test "$lt_cv_prog_gnu_ld" = yes; then
20266 version_type=linux
20267 else
20268 version_type=irix
20269 fi ;;
20270 esac
20271 need_lib_prefix=no
20272 need_version=no
20273 soname_spec='${libname}${release}${shared_ext}$major'
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20275 case $host_os in
20276 irix5* | nonstopux*)
20277 libsuff= shlibsuff=
20278 ;;
20279 *)
20280 case $LD in # libtool.m4 will add one of these switches to LD
20281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20282 libsuff= shlibsuff= libmagic=32-bit;;
20283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20284 libsuff=32 shlibsuff=N32 libmagic=N32;;
20285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20287 *) libsuff= shlibsuff= libmagic=never-match;;
20288 esac
20289 ;;
20290 esac
20291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20292 shlibpath_overrides_runpath=no
20293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20295 hardcode_into_libs=yes
20296 ;;
20297
20298# No shared lib support for Linux oldld, aout, or coff.
20299linux*oldld* | linux*aout* | linux*coff*)
20300 dynamic_linker=no
20301 ;;
20302
20303# This must be Linux ELF.
20304linux*)
20305 version_type=linux
20306 need_lib_prefix=no
20307 need_version=no
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=no
20313 # This implies no fast_install, which is unacceptable.
20314 # Some rework will be needed to allow for fast_install
20315 # before this can be enabled.
20316 hardcode_into_libs=yes
20317
Reid Spencer2706f8c2004-09-19 23:53:36 +000020318 # Append ld.so.conf contents to the search path
20319 if test -f /etc/ld.so.conf; then
20320 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20321 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20322 fi
20323
John Criswell47fdd832003-07-14 16:52:07 +000020324 # We used to test for /lib/ld.so.1 and disable shared libraries on
20325 # powerpc, because MkLinux only supported shared libraries with the
20326 # GNU dynamic linker. Since this was broken with cross compilers,
20327 # most powerpc-linux boxes support dynamic linking these days and
20328 # people can always --disable-shared, the test was removed, and we
20329 # assume the GNU/Linux dynamic linker is in use.
20330 dynamic_linker='GNU/Linux ld.so'
20331 ;;
20332
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333knetbsd*-gnu)
20334 version_type=linux
20335 need_lib_prefix=no
20336 need_version=no
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 shlibpath_overrides_runpath=no
20341 hardcode_into_libs=yes
20342 dynamic_linker='GNU ld.so'
20343 ;;
20344
John Criswell47fdd832003-07-14 16:52:07 +000020345netbsd*)
20346 version_type=sunos
20347 need_lib_prefix=no
20348 need_version=no
20349 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352 dynamic_linker='NetBSD (a.out) ld.so'
20353 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020355 soname_spec='${libname}${release}${shared_ext}$major'
20356 dynamic_linker='NetBSD ld.elf_so'
20357 fi
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=yes
20360 hardcode_into_libs=yes
20361 ;;
20362
20363newsos6)
20364 version_type=linux
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 shlibpath_overrides_runpath=yes
20368 ;;
20369
Reid Spencer2706f8c2004-09-19 23:53:36 +000020370nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020371 version_type=linux
20372 need_lib_prefix=no
20373 need_version=no
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20378 ;;
20379
20380openbsd*)
20381 version_type=sunos
20382 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020383 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20388 case $host_os in
20389 openbsd2.[89] | openbsd2.[89].*)
20390 shlibpath_overrides_runpath=no
20391 ;;
20392 *)
20393 shlibpath_overrides_runpath=yes
20394 ;;
20395 esac
20396 else
20397 shlibpath_overrides_runpath=yes
20398 fi
20399 ;;
20400
20401os2*)
20402 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020403 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020404 need_lib_prefix=no
20405 library_names_spec='$libname${shared_ext} $libname.a'
20406 dynamic_linker='OS/2 ld.exe'
20407 shlibpath_var=LIBPATH
20408 ;;
20409
20410osf3* | osf4* | osf5*)
20411 version_type=osf
20412 need_lib_prefix=no
20413 need_version=no
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20419 ;;
20420
20421sco3.2v5*)
20422 version_type=osf
20423 soname_spec='${libname}${release}${shared_ext}$major'
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 ;;
20427
20428solaris*)
20429 version_type=linux
20430 need_lib_prefix=no
20431 need_version=no
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 shlibpath_var=LD_LIBRARY_PATH
20435 shlibpath_overrides_runpath=yes
20436 hardcode_into_libs=yes
20437 # ldd complains unless libraries are executable
20438 postinstall_cmds='chmod +x $lib'
20439 ;;
20440
20441sunos4*)
20442 version_type=sunos
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=yes
20447 if test "$with_gnu_ld" = yes; then
20448 need_lib_prefix=no
20449 fi
20450 need_version=yes
20451 ;;
20452
20453sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20454 version_type=linux
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456 soname_spec='${libname}${release}${shared_ext}$major'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 case $host_vendor in
20459 sni)
20460 shlibpath_overrides_runpath=no
20461 need_lib_prefix=no
20462 export_dynamic_flag_spec='${wl}-Blargedynsym'
20463 runpath_var=LD_RUN_PATH
20464 ;;
20465 siemens)
20466 need_lib_prefix=no
20467 ;;
20468 motorola)
20469 need_lib_prefix=no
20470 need_version=no
20471 shlibpath_overrides_runpath=no
20472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20473 ;;
20474 esac
20475 ;;
20476
20477sysv4*MP*)
20478 if test -d /usr/nec ;then
20479 version_type=linux
20480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20481 soname_spec='$libname${shared_ext}.$major'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 fi
20484 ;;
20485
20486uts4*)
20487 version_type=linux
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 ;;
20492
20493*)
20494 dynamic_linker=no
20495 ;;
20496esac
20497echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20498echo "${ECHO_T}$dynamic_linker" >&6
20499test "$dynamic_linker" = no && can_build_shared=no
20500
Reid Spencer2706f8c2004-09-19 23:53:36 +000020501echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20502echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20503hardcode_action_F77=
20504if test -n "$hardcode_libdir_flag_spec_F77" || \
20505 test -n "$runpath_var_F77" || \
20506 test "X$hardcode_automatic_F77" = "Xyes" ; then
20507
20508 # We can hardcode non-existant directories.
20509 if test "$hardcode_direct_F77" != no &&
20510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511 # have to relink, otherwise we might link with an installed library
20512 # when we should be linking with a yet-to-be-installed one
20513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20514 test "$hardcode_minus_L_F77" != no; then
20515 # Linking always hardcodes the temporary library directory.
20516 hardcode_action_F77=relink
20517 else
20518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519 hardcode_action_F77=immediate
20520 fi
20521else
20522 # We cannot hardcode anything, or else we can only hardcode existing
20523 # directories.
20524 hardcode_action_F77=unsupported
20525fi
20526echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20527echo "${ECHO_T}$hardcode_action_F77" >&6
20528
20529if test "$hardcode_action_F77" = relink; then
20530 # Fast installation is not supported
20531 enable_fast_install=no
20532elif test "$shlibpath_overrides_runpath" = yes ||
20533 test "$enable_shared" = no; then
20534 # Fast installation is not necessary
20535 enable_fast_install=needless
20536fi
20537
20538striplib=
20539old_striplib=
20540echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20541echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20542if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20543 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20544 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20545 echo "$as_me:$LINENO: result: yes" >&5
20546echo "${ECHO_T}yes" >&6
20547else
20548# FIXME - insert some real tests, host_os isn't really good enough
20549 case $host_os in
20550 darwin*)
20551 if test -n "$STRIP" ; then
20552 striplib="$STRIP -x"
20553 echo "$as_me:$LINENO: result: yes" >&5
20554echo "${ECHO_T}yes" >&6
20555 else
20556 echo "$as_me:$LINENO: result: no" >&5
20557echo "${ECHO_T}no" >&6
20558fi
20559 ;;
20560 *)
20561 echo "$as_me:$LINENO: result: no" >&5
20562echo "${ECHO_T}no" >&6
20563 ;;
20564 esac
20565fi
20566
20567
John Criswell47fdd832003-07-14 16:52:07 +000020568
20569# The else clause should only fire when bootstrapping the
20570# libtool distribution, otherwise you forgot to ship ltmain.sh
20571# with your package, and you will get complaints that there are
20572# no rules to generate ltmain.sh.
20573if test -f "$ltmain"; then
20574 # See if we are running on zsh, and set the options which allow our commands through
20575 # without removal of \ escapes.
20576 if test -n "${ZSH_VERSION+set}" ; then
20577 setopt NO_GLOB_SUBST
20578 fi
20579 # Now quote all the things that may contain metacharacters while being
20580 # careful not to overquote the AC_SUBSTed values. We take copies of the
20581 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20583 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20586 deplibs_check_method reload_flag reload_cmds need_locks \
20587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20588 lt_cv_sys_global_symbol_to_c_name_address \
20589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20590 old_postinstall_cmds old_postuninstall_cmds \
20591 compiler_F77 \
20592 CC_F77 \
20593 LD_F77 \
20594 lt_prog_compiler_wl_F77 \
20595 lt_prog_compiler_pic_F77 \
20596 lt_prog_compiler_static_F77 \
20597 lt_prog_compiler_no_builtin_flag_F77 \
20598 export_dynamic_flag_spec_F77 \
20599 thread_safe_flag_spec_F77 \
20600 whole_archive_flag_spec_F77 \
20601 enable_shared_with_static_runtimes_F77 \
20602 old_archive_cmds_F77 \
20603 old_archive_from_new_cmds_F77 \
20604 predep_objects_F77 \
20605 postdep_objects_F77 \
20606 predeps_F77 \
20607 postdeps_F77 \
20608 compiler_lib_search_path_F77 \
20609 archive_cmds_F77 \
20610 archive_expsym_cmds_F77 \
20611 postinstall_cmds_F77 \
20612 postuninstall_cmds_F77 \
20613 old_archive_from_expsyms_cmds_F77 \
20614 allow_undefined_flag_F77 \
20615 no_undefined_flag_F77 \
20616 export_symbols_cmds_F77 \
20617 hardcode_libdir_flag_spec_F77 \
20618 hardcode_libdir_flag_spec_ld_F77 \
20619 hardcode_libdir_separator_F77 \
20620 hardcode_automatic_F77 \
20621 module_cmds_F77 \
20622 module_expsym_cmds_F77 \
20623 lt_cv_prog_compiler_c_o_F77 \
20624 exclude_expsyms_F77 \
20625 include_expsyms_F77; do
20626
20627 case $var in
20628 old_archive_cmds_F77 | \
20629 old_archive_from_new_cmds_F77 | \
20630 archive_cmds_F77 | \
20631 archive_expsym_cmds_F77 | \
20632 module_cmds_F77 | \
20633 module_expsym_cmds_F77 | \
20634 old_archive_from_expsyms_cmds_F77 | \
20635 export_symbols_cmds_F77 | \
20636 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20637 postinstall_cmds | postuninstall_cmds | \
20638 old_postinstall_cmds | old_postuninstall_cmds | \
20639 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20640 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020641 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 +000020642 ;;
20643 *)
20644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20645 ;;
20646 esac
20647 done
20648
20649 case $lt_echo in
20650 *'\$0 --fallback-echo"')
20651 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20652 ;;
20653 esac
20654
20655cfgfile="$ofile"
20656
20657 cat <<__EOF__ >> "$cfgfile"
20658# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20659
20660# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20661
20662# Shell to use when invoking shell scripts.
20663SHELL=$lt_SHELL
20664
20665# Whether or not to build shared libraries.
20666build_libtool_libs=$enable_shared
20667
20668# Whether or not to build static libraries.
20669build_old_libs=$enable_static
20670
20671# Whether or not to add -lc for building shared libraries.
20672build_libtool_need_lc=$archive_cmds_need_lc_F77
20673
20674# Whether or not to disallow shared libs when runtime libs are static
20675allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20676
20677# Whether or not to optimize for fast installation.
20678fast_install=$enable_fast_install
20679
20680# The host system.
20681host_alias=$host_alias
20682host=$host
20683
20684# An echo program that does not interpret backslashes.
20685echo=$lt_echo
20686
20687# The archiver.
20688AR=$lt_AR
20689AR_FLAGS=$lt_AR_FLAGS
20690
20691# A C compiler.
20692LTCC=$lt_LTCC
20693
20694# A language-specific compiler.
20695CC=$lt_compiler_F77
20696
20697# Is the compiler the GNU C compiler?
20698with_gcc=$GCC_F77
20699
20700# An ERE matcher.
20701EGREP=$lt_EGREP
20702
20703# The linker used to build libraries.
20704LD=$lt_LD_F77
20705
20706# Whether we need hard or soft links.
20707LN_S=$lt_LN_S
20708
20709# A BSD-compatible nm program.
20710NM=$lt_NM
20711
20712# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020713STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020714
20715# Used to examine libraries when file_magic_cmd begins "file"
20716MAGIC_CMD=$MAGIC_CMD
20717
20718# Used on cygwin: DLL creation program.
20719DLLTOOL="$DLLTOOL"
20720
20721# Used on cygwin: object dumper.
20722OBJDUMP="$OBJDUMP"
20723
20724# Used on cygwin: assembler.
20725AS="$AS"
20726
20727# The name of the directory that contains temporary libtool files.
20728objdir=$objdir
20729
20730# How to create reloadable object files.
20731reload_flag=$lt_reload_flag
20732reload_cmds=$lt_reload_cmds
20733
20734# How to pass a linker flag through the compiler.
20735wl=$lt_lt_prog_compiler_wl_F77
20736
20737# Object file suffix (normally "o").
20738objext="$ac_objext"
20739
20740# Old archive suffix (normally "a").
20741libext="$libext"
20742
20743# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020744shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020745
20746# Executable file suffix (normally "").
20747exeext="$exeext"
20748
20749# Additional compiler flags for building library objects.
20750pic_flag=$lt_lt_prog_compiler_pic_F77
20751pic_mode=$pic_mode
20752
20753# What is the maximum length of a command?
20754max_cmd_len=$lt_cv_sys_max_cmd_len
20755
20756# Does compiler simultaneously support -c and -o options?
20757compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20758
20759# Must we lock files when doing compilation ?
20760need_locks=$lt_need_locks
20761
20762# Do we need the lib prefix for modules?
20763need_lib_prefix=$need_lib_prefix
20764
20765# Do we need a version for libraries?
20766need_version=$need_version
20767
20768# Whether dlopen is supported.
20769dlopen_support=$enable_dlopen
20770
20771# Whether dlopen of programs is supported.
20772dlopen_self=$enable_dlopen_self
20773
20774# Whether dlopen of statically linked programs is supported.
20775dlopen_self_static=$enable_dlopen_self_static
20776
20777# Compiler flag to prevent dynamic linking.
20778link_static_flag=$lt_lt_prog_compiler_static_F77
20779
20780# Compiler flag to turn off builtin functions.
20781no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20782
20783# Compiler flag to allow reflexive dlopens.
20784export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20785
20786# Compiler flag to generate shared objects directly from archives.
20787whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20788
20789# Compiler flag to generate thread-safe objects.
20790thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20791
20792# Library versioning type.
20793version_type=$version_type
20794
20795# Format of library name prefix.
20796libname_spec=$lt_libname_spec
20797
20798# List of archive names. First name is the real one, the rest are links.
20799# The last name is the one that the linker finds with -lNAME.
20800library_names_spec=$lt_library_names_spec
20801
20802# The coded name of the library, if different from the real name.
20803soname_spec=$lt_soname_spec
20804
20805# Commands used to build and install an old-style archive.
20806RANLIB=$lt_RANLIB
20807old_archive_cmds=$lt_old_archive_cmds_F77
20808old_postinstall_cmds=$lt_old_postinstall_cmds
20809old_postuninstall_cmds=$lt_old_postuninstall_cmds
20810
20811# Create an old-style archive from a shared archive.
20812old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20813
20814# Create a temporary old-style archive to link instead of a shared archive.
20815old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20816
20817# Commands used to build and install a shared archive.
20818archive_cmds=$lt_archive_cmds_F77
20819archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20820postinstall_cmds=$lt_postinstall_cmds
20821postuninstall_cmds=$lt_postuninstall_cmds
20822
20823# Commands used to build a loadable module (assumed same as above if empty)
20824module_cmds=$lt_module_cmds_F77
20825module_expsym_cmds=$lt_module_expsym_cmds_F77
20826
20827# Commands to strip libraries.
20828old_striplib=$lt_old_striplib
20829striplib=$lt_striplib
20830
20831# Dependencies to place before the objects being linked to create a
20832# shared library.
20833predep_objects=$lt_predep_objects_F77
20834
20835# Dependencies to place after the objects being linked to create a
20836# shared library.
20837postdep_objects=$lt_postdep_objects_F77
20838
20839# Dependencies to place before the objects being linked to create a
20840# shared library.
20841predeps=$lt_predeps_F77
20842
20843# Dependencies to place after the objects being linked to create a
20844# shared library.
20845postdeps=$lt_postdeps_F77
20846
20847# The library search path used internally by the compiler when linking
20848# a shared library.
20849compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20850
20851# Method to check whether dependent libraries are shared objects.
20852deplibs_check_method=$lt_deplibs_check_method
20853
20854# Command to use when deplibs_check_method == file_magic.
20855file_magic_cmd=$lt_file_magic_cmd
20856
20857# Flag that allows shared libraries with undefined symbols to be built.
20858allow_undefined_flag=$lt_allow_undefined_flag_F77
20859
20860# Flag that forces no undefined symbols.
20861no_undefined_flag=$lt_no_undefined_flag_F77
20862
20863# Commands used to finish a libtool library installation in a directory.
20864finish_cmds=$lt_finish_cmds
20865
20866# Same as above, but a single script fragment to be evaled but not shown.
20867finish_eval=$lt_finish_eval
20868
20869# Take the output of nm and produce a listing of raw symbols and C names.
20870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20871
20872# Transform the output of nm in a proper C declaration
20873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20874
20875# Transform the output of nm in a C name address pair
20876global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20877
20878# This is the shared library runtime path variable.
20879runpath_var=$runpath_var
20880
20881# This is the shared library path variable.
20882shlibpath_var=$shlibpath_var
20883
20884# Is shlibpath searched before the hard-coded library search path?
20885shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20886
20887# How to hardcode a shared library path into an executable.
20888hardcode_action=$hardcode_action_F77
20889
20890# Whether we should hardcode library paths into libraries.
20891hardcode_into_libs=$hardcode_into_libs
20892
20893# Flag to hardcode \$libdir into a binary during linking.
20894# This must work even if \$libdir does not exist.
20895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20896
20897# If ld is used when linking, flag to hardcode \$libdir into
20898# a binary during linking. This must work even if \$libdir does
20899# not exist.
20900hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20901
20902# Whether we need a single -rpath flag with a separated argument.
20903hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20904
20905# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20906# resulting binary.
20907hardcode_direct=$hardcode_direct_F77
20908
20909# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20910# resulting binary.
20911hardcode_minus_L=$hardcode_minus_L_F77
20912
20913# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20914# the resulting binary.
20915hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20916
20917# Set to yes if building a shared library automatically hardcodes DIR into the library
20918# and all subsequent libraries and executables linked against it.
20919hardcode_automatic=$hardcode_automatic_F77
20920
20921# Variables whose values should be saved in libtool wrapper scripts and
20922# restored at relink time.
20923variables_saved_for_relink="$variables_saved_for_relink"
20924
20925# Whether libtool must link a program against all its dependency libraries.
20926link_all_deplibs=$link_all_deplibs_F77
20927
20928# Compile-time system search path for libraries
20929sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20930
20931# Run-time system search path for libraries
20932sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20933
20934# Fix the shell variable \$srcfile for the compiler.
20935fix_srcfile_path="$fix_srcfile_path_F77"
20936
20937# Set to yes if exported symbols are required.
20938always_export_symbols=$always_export_symbols_F77
20939
20940# The commands to list exported symbols.
20941export_symbols_cmds=$lt_export_symbols_cmds_F77
20942
20943# The commands to extract the exported symbol list from a shared archive.
20944extract_expsyms_cmds=$lt_extract_expsyms_cmds
20945
20946# Symbols that should not be listed in the preloaded symbols.
20947exclude_expsyms=$lt_exclude_expsyms_F77
20948
20949# Symbols that must always be exported.
20950include_expsyms=$lt_include_expsyms_F77
20951
20952# ### END LIBTOOL TAG CONFIG: $tagname
20953
20954__EOF__
20955
20956
20957else
20958 # If there is no Makefile yet, we rely on a make rule to execute
20959 # `config.status --recheck' to rerun these tests and create the
20960 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20962 if test -f "$ltmain_in"; then
20963 test -f Makefile && make "$ltmain"
20964 fi
John Criswell47fdd832003-07-14 16:52:07 +000020965fi
20966
20967
20968ac_ext=c
20969ac_cpp='$CPP $CPPFLAGS'
20970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972ac_compiler_gnu=$ac_cv_c_compiler_gnu
20973
20974CC="$lt_save_CC"
20975
20976 else
20977 tagname=""
20978 fi
20979 ;;
20980
20981 GCJ)
20982 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020983 ac_ext=c
20984ac_cpp='$CPP $CPPFLAGS'
20985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020988
20989
20990# Source file extension for Java test sources.
20991ac_ext=java
20992
20993# Object file extension for compiled Java test sources.
20994objext=o
20995objext_GCJ=$objext
20996
20997# Code to be used in simple compile tests
20998lt_simple_compile_test_code="class foo {}\n"
20999
21000# Code to be used in simple link tests
21001lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21002
21003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21004
21005# If no C compiler was specified, use CC.
21006LTCC=${LTCC-"$CC"}
21007
21008# Allow CC to be a program name with arguments.
21009compiler=$CC
21010
21011
21012# Allow CC to be a program name with arguments.
21013lt_save_CC="$CC"
21014CC=${GCJ-"gcj"}
21015compiler=$CC
21016compiler_GCJ=$CC
21017
21018# GCJ did not exist at the time GCC didn't implicitly link libc in.
21019archive_cmds_need_lc_GCJ=no
21020
John Criswell47fdd832003-07-14 16:52:07 +000021021
21022lt_prog_compiler_no_builtin_flag_GCJ=
21023
21024if test "$GCC" = yes; then
21025 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21026
Reid Spencer2706f8c2004-09-19 23:53:36 +000021027
21028echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021029echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21030if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032else
21033 lt_cv_prog_compiler_rtti_exceptions=no
21034 ac_outfile=conftest.$ac_objext
21035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21036 lt_compiler_flag="-fno-rtti -fno-exceptions"
21037 # Insert the option either (1) after the last *FLAGS variable, or
21038 # (2) before a word containing "conftest.", or (3) at the end.
21039 # Note that $ac_compile itself does not contain backslashes and begins
21040 # with a dollar sign (not a hyphen), so the echo should work correctly.
21041 # The option is referenced via a variable to avoid confusing sed.
21042 lt_compile=`echo "$ac_compile" | $SED \
21043 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21045 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000021046 (eval echo "\"\$as_me:21046: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021047 (eval "$lt_compile" 2>conftest.err)
21048 ac_status=$?
21049 cat conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000021050 echo "$as_me:21050: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021051 if (exit $ac_status) && test -s "$ac_outfile"; then
21052 # The compiler can only warn and ignore the option if not recognized
21053 # So say no if there are warnings
21054 if test ! -s conftest.err; then
21055 lt_cv_prog_compiler_rtti_exceptions=yes
21056 fi
21057 fi
21058 $rm conftest*
21059
21060fi
21061echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21062echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21063
21064if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21065 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21066else
21067 :
21068fi
21069
21070fi
21071
21072lt_prog_compiler_wl_GCJ=
21073lt_prog_compiler_pic_GCJ=
21074lt_prog_compiler_static_GCJ=
21075
21076echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21077echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21078
21079 if test "$GCC" = yes; then
21080 lt_prog_compiler_wl_GCJ='-Wl,'
21081 lt_prog_compiler_static_GCJ='-static'
21082
21083 case $host_os in
21084 aix*)
21085 # All AIX code is PIC.
21086 if test "$host_cpu" = ia64; then
21087 # AIX 5 now supports IA64 processor
21088 lt_prog_compiler_static_GCJ='-Bstatic'
21089 fi
21090 ;;
21091
21092 amigaos*)
21093 # FIXME: we need at least 68020 code to build shared libraries, but
21094 # adding the `-m68020' flag to GCC prevents building anything better,
21095 # like `-m68040'.
21096 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21097 ;;
21098
21099 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21100 # PIC is the default for these OSes.
21101 ;;
21102
21103 mingw* | pw32* | os2*)
21104 # This hack is so that the source file can tell whether it is being
21105 # built for inclusion in a dll (and should export symbols for example).
21106 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21107 ;;
21108
21109 darwin* | rhapsody*)
21110 # PIC is the default on this platform
21111 # Common symbols not allowed in MH_DYLIB files
21112 lt_prog_compiler_pic_GCJ='-fno-common'
21113 ;;
21114
21115 msdosdjgpp*)
21116 # Just because we use GCC doesn't mean we suddenly get shared libraries
21117 # on systems that don't support them.
21118 lt_prog_compiler_can_build_shared_GCJ=no
21119 enable_shared=no
21120 ;;
21121
21122 sysv4*MP*)
21123 if test -d /usr/nec; then
21124 lt_prog_compiler_pic_GCJ=-Kconform_pic
21125 fi
21126 ;;
21127
21128 hpux*)
21129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21130 # not for PA HP-UX.
21131 case "$host_cpu" in
21132 hppa*64*|ia64*)
21133 # +Z the default
21134 ;;
21135 *)
21136 lt_prog_compiler_pic_GCJ='-fPIC'
21137 ;;
21138 esac
21139 ;;
21140
21141 *)
21142 lt_prog_compiler_pic_GCJ='-fPIC'
21143 ;;
21144 esac
21145 else
21146 # PORTME Check for flag to pass linker flags through the system compiler.
21147 case $host_os in
21148 aix*)
21149 lt_prog_compiler_wl_GCJ='-Wl,'
21150 if test "$host_cpu" = ia64; then
21151 # AIX 5 now supports IA64 processor
21152 lt_prog_compiler_static_GCJ='-Bstatic'
21153 else
21154 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21155 fi
21156 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021157 darwin*)
21158 # PIC is the default on this platform
21159 # Common symbols not allowed in MH_DYLIB files
21160 case "$cc_basename" in
21161 xlc*)
21162 lt_prog_compiler_pic_GCJ='-qnocommon'
21163 lt_prog_compiler_wl_GCJ='-Wl,'
21164 ;;
21165 esac
21166 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021167
21168 mingw* | pw32* | os2*)
21169 # This hack is so that the source file can tell whether it is being
21170 # built for inclusion in a dll (and should export symbols for example).
21171 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21172 ;;
21173
21174 hpux9* | hpux10* | hpux11*)
21175 lt_prog_compiler_wl_GCJ='-Wl,'
21176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21177 # not for PA HP-UX.
21178 case "$host_cpu" in
21179 hppa*64*|ia64*)
21180 # +Z the default
21181 ;;
21182 *)
21183 lt_prog_compiler_pic_GCJ='+Z'
21184 ;;
21185 esac
21186 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21187 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21188 ;;
21189
21190 irix5* | irix6* | nonstopux*)
21191 lt_prog_compiler_wl_GCJ='-Wl,'
21192 # PIC (with -KPIC) is the default.
21193 lt_prog_compiler_static_GCJ='-non_shared'
21194 ;;
21195
21196 newsos6)
21197 lt_prog_compiler_pic_GCJ='-KPIC'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21199 ;;
21200
21201 linux*)
21202 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021203 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021204 lt_prog_compiler_wl_GCJ='-Wl,'
21205 lt_prog_compiler_pic_GCJ='-KPIC'
21206 lt_prog_compiler_static_GCJ='-static'
21207 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021208 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021209 lt_prog_compiler_wl_GCJ='-Wl,'
21210 # All Alpha code is PIC.
21211 lt_prog_compiler_static_GCJ='-non_shared'
21212 ;;
21213 esac
21214 ;;
21215
21216 osf3* | osf4* | osf5*)
21217 lt_prog_compiler_wl_GCJ='-Wl,'
21218 # All OSF/1 code is PIC.
21219 lt_prog_compiler_static_GCJ='-non_shared'
21220 ;;
21221
21222 sco3.2v5*)
21223 lt_prog_compiler_pic_GCJ='-Kpic'
21224 lt_prog_compiler_static_GCJ='-dn'
21225 ;;
21226
21227 solaris*)
21228 lt_prog_compiler_wl_GCJ='-Wl,'
21229 lt_prog_compiler_pic_GCJ='-KPIC'
21230 lt_prog_compiler_static_GCJ='-Bstatic'
21231 ;;
21232
21233 sunos4*)
21234 lt_prog_compiler_wl_GCJ='-Qoption ld '
21235 lt_prog_compiler_pic_GCJ='-PIC'
21236 lt_prog_compiler_static_GCJ='-Bstatic'
21237 ;;
21238
21239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21240 lt_prog_compiler_wl_GCJ='-Wl,'
21241 lt_prog_compiler_pic_GCJ='-KPIC'
21242 lt_prog_compiler_static_GCJ='-Bstatic'
21243 ;;
21244
21245 sysv4*MP*)
21246 if test -d /usr/nec ;then
21247 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21248 lt_prog_compiler_static_GCJ='-Bstatic'
21249 fi
21250 ;;
21251
21252 uts4*)
21253 lt_prog_compiler_pic_GCJ='-pic'
21254 lt_prog_compiler_static_GCJ='-Bstatic'
21255 ;;
21256
21257 *)
21258 lt_prog_compiler_can_build_shared_GCJ=no
21259 ;;
21260 esac
21261 fi
21262
21263echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21264echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21265
21266#
21267# Check to make sure the PIC flag actually works.
21268#
21269if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021270
21271echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021272echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21273if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276 lt_prog_compiler_pic_works_GCJ=no
21277 ac_outfile=conftest.$ac_objext
21278 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21279 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21280 # Insert the option either (1) after the last *FLAGS variable, or
21281 # (2) before a word containing "conftest.", or (3) at the end.
21282 # Note that $ac_compile itself does not contain backslashes and begins
21283 # with a dollar sign (not a hyphen), so the echo should work correctly.
21284 # The option is referenced via a variable to avoid confusing sed.
21285 lt_compile=`echo "$ac_compile" | $SED \
21286 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21288 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000021289 (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021290 (eval "$lt_compile" 2>conftest.err)
21291 ac_status=$?
21292 cat conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000021293 echo "$as_me:21293: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021294 if (exit $ac_status) && test -s "$ac_outfile"; then
21295 # The compiler can only warn and ignore the option if not recognized
21296 # So say no if there are warnings
21297 if test ! -s conftest.err; then
21298 lt_prog_compiler_pic_works_GCJ=yes
21299 fi
21300 fi
21301 $rm conftest*
21302
21303fi
21304echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21305echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21306
21307if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21308 case $lt_prog_compiler_pic_GCJ in
21309 "" | " "*) ;;
21310 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21311 esac
21312else
21313 lt_prog_compiler_pic_GCJ=
21314 lt_prog_compiler_can_build_shared_GCJ=no
21315fi
21316
21317fi
21318case "$host_os" in
21319 # For platforms which do not support PIC, -DPIC is meaningless:
21320 *djgpp*)
21321 lt_prog_compiler_pic_GCJ=
21322 ;;
21323 *)
21324 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21325 ;;
21326esac
21327
21328echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21329echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21330if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332else
21333 lt_cv_prog_compiler_c_o_GCJ=no
21334 $rm -r conftest 2>/dev/null
21335 mkdir conftest
21336 cd conftest
21337 mkdir out
21338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21339
John Criswell47fdd832003-07-14 16:52:07 +000021340 lt_compiler_flag="-o out/conftest2.$ac_objext"
21341 # Insert the option either (1) after the last *FLAGS variable, or
21342 # (2) before a word containing "conftest.", or (3) at the end.
21343 # Note that $ac_compile itself does not contain backslashes and begins
21344 # with a dollar sign (not a hyphen), so the echo should work correctly.
21345 lt_compile=`echo "$ac_compile" | $SED \
21346 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21348 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2246f2005-07-13 03:20:14 +000021349 (eval echo "\"\$as_me:21349: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021350 (eval "$lt_compile" 2>out/conftest.err)
21351 ac_status=$?
21352 cat out/conftest.err >&5
Reid Spencer8a2246f2005-07-13 03:20:14 +000021353 echo "$as_me:21353: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21355 then
21356 # The compiler can only warn and ignore the option if not recognized
21357 # So say no if there are warnings
21358 if test ! -s out/conftest.err; then
21359 lt_cv_prog_compiler_c_o_GCJ=yes
21360 fi
21361 fi
21362 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021363 $rm conftest*
21364 # SGI C++ compiler will create directory out/ii_files/ for
21365 # template instantiation
21366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21367 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021368 cd ..
21369 rmdir conftest
21370 $rm conftest*
21371
21372fi
21373echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21374echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21375
21376
21377hard_links="nottested"
21378if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21379 # do not overwrite the value of need_locks provided by the user
21380 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21381echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21382 hard_links=yes
21383 $rm conftest*
21384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21385 touch conftest.a
21386 ln conftest.a conftest.b 2>&5 || hard_links=no
21387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21388 echo "$as_me:$LINENO: result: $hard_links" >&5
21389echo "${ECHO_T}$hard_links" >&6
21390 if test "$hard_links" = no; then
21391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21392echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21393 need_locks=warn
21394 fi
21395else
21396 need_locks=no
21397fi
21398
21399echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21401
21402 runpath_var=
21403 allow_undefined_flag_GCJ=
21404 enable_shared_with_static_runtimes_GCJ=no
21405 archive_cmds_GCJ=
21406 archive_expsym_cmds_GCJ=
21407 old_archive_From_new_cmds_GCJ=
21408 old_archive_from_expsyms_cmds_GCJ=
21409 export_dynamic_flag_spec_GCJ=
21410 whole_archive_flag_spec_GCJ=
21411 thread_safe_flag_spec_GCJ=
21412 hardcode_libdir_flag_spec_GCJ=
21413 hardcode_libdir_flag_spec_ld_GCJ=
21414 hardcode_libdir_separator_GCJ=
21415 hardcode_direct_GCJ=no
21416 hardcode_minus_L_GCJ=no
21417 hardcode_shlibpath_var_GCJ=unsupported
21418 link_all_deplibs_GCJ=unknown
21419 hardcode_automatic_GCJ=no
21420 module_cmds_GCJ=
21421 module_expsym_cmds_GCJ=
21422 always_export_symbols_GCJ=no
21423 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21424 # include_expsyms should be a list of space-separated symbols to be *always*
21425 # included in the symbol list
21426 include_expsyms_GCJ=
21427 # exclude_expsyms can be an extended regexp of symbols to exclude
21428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21430 # as well as any symbol that contains `d'.
21431 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21433 # platforms (ab)use it in PIC code, but their linkers get confused if
21434 # the symbol is explicitly referenced. Since portable code cannot
21435 # rely on this symbol name, it's probably fine to never include it in
21436 # preloaded symbol tables.
21437 extract_expsyms_cmds=
21438
21439 case $host_os in
21440 cygwin* | mingw* | pw32*)
21441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21442 # When not using gcc, we currently assume that we are using
21443 # Microsoft Visual C++.
21444 if test "$GCC" != yes; then
21445 with_gnu_ld=no
21446 fi
21447 ;;
21448 openbsd*)
21449 with_gnu_ld=no
21450 ;;
21451 esac
21452
21453 ld_shlibs_GCJ=yes
21454 if test "$with_gnu_ld" = yes; then
21455 # If archive_cmds runs LD, not CC, wlarc should be empty
21456 wlarc='${wl}'
21457
21458 # See if GNU ld supports shared libraries.
21459 case $host_os in
21460 aix3* | aix4* | aix5*)
21461 # On AIX/PPC, the GNU linker is very broken
21462 if test "$host_cpu" != ia64; then
21463 ld_shlibs_GCJ=no
21464 cat <<EOF 1>&2
21465
21466*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21467*** to be unable to reliably create shared libraries on AIX.
21468*** Therefore, libtool is disabling shared libraries support. If you
21469*** really care for shared libraries, you may want to modify your PATH
21470*** so that a non-GNU linker is found, and then restart.
21471
21472EOF
21473 fi
21474 ;;
21475
21476 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021477 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 +000021478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21479 hardcode_minus_L_GCJ=yes
21480
21481 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21482 # that the semantics of dynamic libraries on AmigaOS, at least up
21483 # to version 4, is to share data among multiple programs linked
21484 # with the same dynamic library. Since this doesn't match the
21485 # behavior of shared libraries on other platforms, we can't use
21486 # them.
21487 ld_shlibs_GCJ=no
21488 ;;
21489
21490 beos*)
21491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21492 allow_undefined_flag_GCJ=unsupported
21493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21494 # support --undefined. This deserves some investigation. FIXME
21495 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21496 else
21497 ld_shlibs_GCJ=no
21498 fi
21499 ;;
21500
21501 cygwin* | mingw* | pw32*)
21502 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21503 # as there is no search path for DLLs.
21504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21505 allow_undefined_flag_GCJ=unsupported
21506 always_export_symbols_GCJ=no
21507 enable_shared_with_static_runtimes_GCJ=yes
21508 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21509
21510 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21511 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21512 # If the export-symbols file already is a .def file (1st line
21513 # is EXPORTS), use it as is; otherwise, prepend...
21514 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21515 cp $export_symbols $output_objdir/$soname.def;
21516 else
21517 echo EXPORTS > $output_objdir/$soname.def;
21518 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021519 fi~
21520 $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 +000021521 else
21522 ld_shlibs=no
21523 fi
21524 ;;
21525
21526 netbsd*)
21527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21528 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21529 wlarc=
21530 else
21531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21532 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21533 fi
21534 ;;
21535
21536 solaris* | sysv5*)
21537 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21538 ld_shlibs_GCJ=no
21539 cat <<EOF 1>&2
21540
21541*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21542*** create shared libraries on Solaris systems. Therefore, libtool
21543*** is disabling shared libraries support. We urge you to upgrade GNU
21544*** binutils to release 2.9.1 or newer. Another option is to modify
21545*** your PATH or compiler configuration so that the native linker is
21546*** used, and then restart.
21547
21548EOF
21549 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21552 else
21553 ld_shlibs_GCJ=no
21554 fi
21555 ;;
21556
21557 sunos4*)
21558 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21559 wlarc=
21560 hardcode_direct_GCJ=yes
21561 hardcode_shlibpath_var_GCJ=no
21562 ;;
21563
Reid Spencer2706f8c2004-09-19 23:53:36 +000021564 linux*)
21565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21566 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21567 archive_cmds_GCJ="$tmp_archive_cmds"
21568 supports_anon_versioning=no
21569 case `$LD -v 2>/dev/null` in
21570 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21571 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21572 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21573 *\ 2.11.*) ;; # other 2.11 versions
21574 *) supports_anon_versioning=yes ;;
21575 esac
21576 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021577 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21578cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21579$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021580 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21581 else
21582 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21583 fi
21584 else
21585 ld_shlibs_GCJ=no
21586 fi
21587 ;;
21588
John Criswell47fdd832003-07-14 16:52:07 +000021589 *)
21590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21591 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21592 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21593 else
21594 ld_shlibs_GCJ=no
21595 fi
21596 ;;
21597 esac
21598
21599 if test "$ld_shlibs_GCJ" = yes; then
21600 runpath_var=LD_RUN_PATH
21601 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21602 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21603 # ancient GNU ld didn't support --whole-archive et. al.
21604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21605 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21606 else
21607 whole_archive_flag_spec_GCJ=
21608 fi
21609 fi
21610 else
21611 # PORTME fill in a description of your system's linker (not GNU ld)
21612 case $host_os in
21613 aix3*)
21614 allow_undefined_flag_GCJ=unsupported
21615 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021616 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 +000021617 # Note: this linker hardcodes the directories in LIBPATH if there
21618 # are no directories specified by -L.
21619 hardcode_minus_L_GCJ=yes
21620 if test "$GCC" = yes && test -z "$link_static_flag"; then
21621 # Neither direct hardcoding nor static linking is supported with a
21622 # broken collect2.
21623 hardcode_direct_GCJ=unsupported
21624 fi
21625 ;;
21626
21627 aix4* | aix5*)
21628 if test "$host_cpu" = ia64; then
21629 # On IA64, the linker does run time linking by default, so we don't
21630 # have to do anything special.
21631 aix_use_runtimelinking=no
21632 exp_sym_flag='-Bexport'
21633 no_entry_flag=""
21634 else
21635 # If we're using GNU nm, then we don't want the "-C" option.
21636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21637 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21638 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'
21639 else
21640 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'
21641 fi
21642 aix_use_runtimelinking=no
21643
21644 # Test if we are trying to use run time linking or normal
21645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21646 # need to do runtime linking.
21647 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21648 for ld_flag in $LDFLAGS; do
21649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21650 aix_use_runtimelinking=yes
21651 break
21652 fi
21653 done
21654 esac
21655
21656 exp_sym_flag='-bexport'
21657 no_entry_flag='-bnoentry'
21658 fi
21659
21660 # When large executables or shared objects are built, AIX ld can
21661 # have problems creating the table of contents. If linking a library
21662 # or program results in "error TOC overflow" add -mminimal-toc to
21663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21665
21666 archive_cmds_GCJ=''
21667 hardcode_direct_GCJ=yes
21668 hardcode_libdir_separator_GCJ=':'
21669 link_all_deplibs_GCJ=yes
21670
21671 if test "$GCC" = yes; then
21672 case $host_os in aix4.012|aix4.012.*)
21673 # We only want to do this on AIX 4.2 and lower, the check
21674 # below for broken collect2 doesn't work under 4.3+
21675 collect2name=`${CC} -print-prog-name=collect2`
21676 if test -f "$collect2name" && \
21677 strings "$collect2name" | grep resolve_lib_name >/dev/null
21678 then
21679 # We have reworked collect2
21680 hardcode_direct_GCJ=yes
21681 else
21682 # We have old collect2
21683 hardcode_direct_GCJ=unsupported
21684 # It fails to find uninstalled libraries when the uninstalled
21685 # path is not listed in the libpath. Setting hardcode_minus_L
21686 # to unsupported forces relinking
21687 hardcode_minus_L_GCJ=yes
21688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21689 hardcode_libdir_separator_GCJ=
21690 fi
21691 esac
21692 shared_flag='-shared'
21693 else
21694 # not using gcc
21695 if test "$host_cpu" = ia64; then
21696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21697 # chokes on -Wl,-G. The following line is correct:
21698 shared_flag='-G'
21699 else
21700 if test "$aix_use_runtimelinking" = yes; then
21701 shared_flag='${wl}-G'
21702 else
21703 shared_flag='${wl}-bM:SRE'
21704 fi
21705 fi
21706 fi
21707
21708 # It seems that -bexpall does not export symbols beginning with
21709 # underscore (_), so it is better to generate a list of symbols to export.
21710 always_export_symbols_GCJ=yes
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # Warning - without using the other runtime loading flags (-brtl),
21713 # -berok will link without error, but may produce a broken library.
21714 allow_undefined_flag_GCJ='-berok'
21715 # Determine the default libpath from the value encoded in an empty executable.
21716 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021717/* confdefs.h. */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021722
John Criswell47fdd832003-07-14 16:52:07 +000021723int
21724main ()
21725{
21726
21727 ;
21728 return 0;
21729}
21730_ACEOF
21731rm -f conftest.$ac_objext conftest$ac_exeext
21732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021733 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 { ac_try='test -z "$ac_c_werror_flag"
21741 || test ! -s conftest.err'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } &&
21747 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753
21754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21755}'`
21756# Check for a 64-bit object if we didn't find anything.
21757if 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; }
21758}'`; fi
21759else
21760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021761sed 's/^/| /' conftest.$ac_ext >&5
21762
John Criswell47fdd832003-07-14 16:52:07 +000021763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021764rm -f conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21767
21768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21769 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"
21770 else
21771 if test "$host_cpu" = ia64; then
21772 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21773 allow_undefined_flag_GCJ="-z nodefs"
21774 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"
21775 else
21776 # Determine the default libpath from the value encoded in an empty executable.
21777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021778/* confdefs.h. */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
21782/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021783
John Criswell47fdd832003-07-14 16:52:07 +000021784int
21785main ()
21786{
21787
21788 ;
21789 return 0;
21790}
21791_ACEOF
21792rm -f conftest.$ac_objext conftest$ac_exeext
21793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021794 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021801 { ac_try='test -z "$ac_c_werror_flag"
21802 || test ! -s conftest.err'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
21814
21815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21816}'`
21817# Check for a 64-bit object if we didn't find anything.
21818if 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; }
21819}'`; fi
21820else
21821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021822sed 's/^/| /' conftest.$ac_ext >&5
21823
John Criswell47fdd832003-07-14 16:52:07 +000021824fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825rm -f conftest.err conftest.$ac_objext \
21826 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021827if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21828
21829 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21830 # Warning - without using the other run time loading flags,
21831 # -berok will link without error, but may produce a broken library.
21832 no_undefined_flag_GCJ=' ${wl}-bernotok'
21833 allow_undefined_flag_GCJ=' ${wl}-berok'
21834 # -bexpall does not export symbols beginning with underscore (_)
21835 always_export_symbols_GCJ=yes
21836 # Exported symbols can be pulled into shared objects from archives
21837 whole_archive_flag_spec_GCJ=' '
21838 archive_cmds_need_lc_GCJ=yes
21839 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021840 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 +000021841 fi
21842 fi
21843 ;;
21844
21845 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021846 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 +000021847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21848 hardcode_minus_L_GCJ=yes
21849 # see comment about different semantics on the GNU ld section
21850 ld_shlibs_GCJ=no
21851 ;;
21852
Reid Spencer2706f8c2004-09-19 23:53:36 +000021853 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021854 export_dynamic_flag_spec_GCJ=-rdynamic
21855 ;;
21856
21857 cygwin* | mingw* | pw32*)
21858 # When not using gcc, we currently assume that we are using
21859 # Microsoft Visual C++.
21860 # hardcode_libdir_flag_spec is actually meaningless, as there is
21861 # no search path for DLLs.
21862 hardcode_libdir_flag_spec_GCJ=' '
21863 allow_undefined_flag_GCJ=unsupported
21864 # Tell ltmain to make .lib files, not .a files.
21865 libext=lib
21866 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021867 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021868 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021869 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 +000021870 # The linker will automatically build a .lib file if we build a DLL.
21871 old_archive_From_new_cmds_GCJ='true'
21872 # FIXME: Should let the user specify the lib program.
21873 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21874 fix_srcfile_path='`cygpath -w "$srcfile"`'
21875 enable_shared_with_static_runtimes_GCJ=yes
21876 ;;
21877
21878 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021879 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021880 rhapsody* | darwin1.[012])
21881 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21882 ;;
21883 *) # Darwin 1.3 on
21884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21885 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21886 else
21887 case ${MACOSX_DEPLOYMENT_TARGET} in
21888 10.[012])
21889 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21890 ;;
21891 10.*)
21892 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21893 ;;
21894 esac
21895 fi
21896 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021897 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021898 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021899 hardcode_direct_GCJ=no
21900 hardcode_automatic_GCJ=yes
21901 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021903 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021904 if test "$GCC" = yes ; then
21905 output_verbose_link_cmd='echo'
21906 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21907 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21908 # 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 +000021909 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}'
21910 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 +000021911 else
21912 case "$cc_basename" in
21913 xlc*)
21914 output_verbose_link_cmd='echo'
21915 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21916 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21917 # 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 +000021918 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}'
21919 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 +000021920 ;;
21921 *)
21922 ld_shlibs_GCJ=no
21923 ;;
21924 esac
John Criswell47fdd832003-07-14 16:52:07 +000021925 fi
21926 ;;
21927
21928 dgux*)
21929 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21930 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21931 hardcode_shlibpath_var_GCJ=no
21932 ;;
21933
21934 freebsd1*)
21935 ld_shlibs_GCJ=no
21936 ;;
21937
21938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21939 # support. Future versions do this automatically, but an explicit c++rt0.o
21940 # does not break anything, and helps significantly (at the cost of a little
21941 # extra space).
21942 freebsd2.2*)
21943 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21945 hardcode_direct_GCJ=yes
21946 hardcode_shlibpath_var_GCJ=no
21947 ;;
21948
21949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21950 freebsd2*)
21951 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21952 hardcode_direct_GCJ=yes
21953 hardcode_minus_L_GCJ=yes
21954 hardcode_shlibpath_var_GCJ=no
21955 ;;
21956
21957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021958 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021959 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21961 hardcode_direct_GCJ=yes
21962 hardcode_shlibpath_var_GCJ=no
21963 ;;
21964
21965 hpux9*)
21966 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021967 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 +000021968 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021969 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 +000021970 fi
21971 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21972 hardcode_libdir_separator_GCJ=:
21973 hardcode_direct_GCJ=yes
21974
21975 # hardcode_minus_L: Not really in the search PATH,
21976 # but as the default location of the library.
21977 hardcode_minus_L_GCJ=yes
21978 export_dynamic_flag_spec_GCJ='${wl}-E'
21979 ;;
21980
21981 hpux10* | hpux11*)
21982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21983 case "$host_cpu" in
21984 hppa*64*|ia64*)
21985 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21986 ;;
21987 *)
21988 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21989 ;;
21990 esac
21991 else
21992 case "$host_cpu" in
21993 hppa*64*|ia64*)
21994 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21995 ;;
21996 *)
21997 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21998 ;;
21999 esac
22000 fi
22001 if test "$with_gnu_ld" = no; then
22002 case "$host_cpu" in
22003 hppa*64*)
22004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22005 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22006 hardcode_libdir_separator_GCJ=:
22007 hardcode_direct_GCJ=no
22008 hardcode_shlibpath_var_GCJ=no
22009 ;;
22010 ia64*)
22011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22012 hardcode_direct_GCJ=no
22013 hardcode_shlibpath_var_GCJ=no
22014
22015 # hardcode_minus_L: Not really in the search PATH,
22016 # but as the default location of the library.
22017 hardcode_minus_L_GCJ=yes
22018 ;;
22019 *)
22020 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22021 hardcode_libdir_separator_GCJ=:
22022 hardcode_direct_GCJ=yes
22023 export_dynamic_flag_spec_GCJ='${wl}-E'
22024
22025 # hardcode_minus_L: Not really in the search PATH,
22026 # but as the default location of the library.
22027 hardcode_minus_L_GCJ=yes
22028 ;;
22029 esac
22030 fi
22031 ;;
22032
22033 irix5* | irix6* | nonstopux*)
22034 if test "$GCC" = yes; then
22035 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'
22036 else
22037 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'
22038 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22039 fi
22040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22041 hardcode_libdir_separator_GCJ=:
22042 link_all_deplibs_GCJ=yes
22043 ;;
22044
22045 netbsd*)
22046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22048 else
22049 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22050 fi
22051 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22052 hardcode_direct_GCJ=yes
22053 hardcode_shlibpath_var_GCJ=no
22054 ;;
22055
22056 newsos6)
22057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22058 hardcode_direct_GCJ=yes
22059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22060 hardcode_libdir_separator_GCJ=:
22061 hardcode_shlibpath_var_GCJ=no
22062 ;;
22063
22064 openbsd*)
22065 hardcode_direct_GCJ=yes
22066 hardcode_shlibpath_var_GCJ=no
22067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022069 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 +000022070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22071 export_dynamic_flag_spec_GCJ='${wl}-E'
22072 else
22073 case $host_os in
22074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22076 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22077 ;;
22078 *)
22079 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22081 ;;
22082 esac
22083 fi
22084 ;;
22085
22086 os2*)
22087 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22088 hardcode_minus_L_GCJ=yes
22089 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022090 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 +000022091 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22092 ;;
22093
22094 osf3*)
22095 if test "$GCC" = yes; then
22096 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22097 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'
22098 else
22099 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22100 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'
22101 fi
22102 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22103 hardcode_libdir_separator_GCJ=:
22104 ;;
22105
22106 osf4* | osf5*) # as osf3* with the addition of -msym flag
22107 if test "$GCC" = yes; then
22108 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22109 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'
22110 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22111 else
22112 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22113 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 +000022114 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~
22115 $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'
22116
John Criswell47fdd832003-07-14 16:52:07 +000022117 # Both c and cxx compiler support -rpath directly
22118 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22119 fi
22120 hardcode_libdir_separator_GCJ=:
22121 ;;
22122
22123 sco3.2v5*)
22124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22125 hardcode_shlibpath_var_GCJ=no
22126 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22127 runpath_var=LD_RUN_PATH
22128 hardcode_runpath_var=yes
22129 ;;
22130
22131 solaris*)
22132 no_undefined_flag_GCJ=' -z text'
22133 if test "$GCC" = yes; then
22134 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022135 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22136 $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 +000022137 else
22138 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022139 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22140 $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 +000022141 fi
22142 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22143 hardcode_shlibpath_var_GCJ=no
22144 case $host_os in
22145 solaris2.[0-5] | solaris2.[0-5].*) ;;
22146 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22147 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22148 esac
22149 link_all_deplibs_GCJ=yes
22150 ;;
22151
22152 sunos4*)
22153 if test "x$host_vendor" = xsequent; then
22154 # Use $CC to link under sequent, because it throws in some extra .o
22155 # files that make .init and .fini sections work.
22156 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22157 else
22158 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22159 fi
22160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22161 hardcode_direct_GCJ=yes
22162 hardcode_minus_L_GCJ=yes
22163 hardcode_shlibpath_var_GCJ=no
22164 ;;
22165
22166 sysv4)
22167 case $host_vendor in
22168 sni)
22169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22170 hardcode_direct_GCJ=yes # is this really true???
22171 ;;
22172 siemens)
22173 ## LD is ld it makes a PLAMLIB
22174 ## CC just makes a GrossModule.
22175 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22176 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22177 hardcode_direct_GCJ=no
22178 ;;
22179 motorola)
22180 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22181 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22182 ;;
22183 esac
22184 runpath_var='LD_RUN_PATH'
22185 hardcode_shlibpath_var_GCJ=no
22186 ;;
22187
22188 sysv4.3*)
22189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22190 hardcode_shlibpath_var_GCJ=no
22191 export_dynamic_flag_spec_GCJ='-Bexport'
22192 ;;
22193
22194 sysv4*MP*)
22195 if test -d /usr/nec; then
22196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_shlibpath_var_GCJ=no
22198 runpath_var=LD_RUN_PATH
22199 hardcode_runpath_var=yes
22200 ld_shlibs_GCJ=yes
22201 fi
22202 ;;
22203
22204 sysv4.2uw2*)
22205 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_GCJ=yes
22207 hardcode_minus_L_GCJ=no
22208 hardcode_shlibpath_var_GCJ=no
22209 hardcode_runpath_var=yes
22210 runpath_var=LD_RUN_PATH
22211 ;;
22212
22213 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22214 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22215 if test "$GCC" = yes; then
22216 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22217 else
22218 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22219 fi
22220 runpath_var='LD_RUN_PATH'
22221 hardcode_shlibpath_var_GCJ=no
22222 ;;
22223
22224 sysv5*)
22225 no_undefined_flag_GCJ=' -z text'
22226 # $CC -shared without GNU ld will not create a library from C++
22227 # object files and a static libstdc++, better avoid it by now
22228 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022229 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22230 $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 +000022231 hardcode_libdir_flag_spec_GCJ=
22232 hardcode_shlibpath_var_GCJ=no
22233 runpath_var='LD_RUN_PATH'
22234 ;;
22235
22236 uts4*)
22237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22239 hardcode_shlibpath_var_GCJ=no
22240 ;;
22241
22242 *)
22243 ld_shlibs_GCJ=no
22244 ;;
22245 esac
22246 fi
22247
22248echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22249echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22250test "$ld_shlibs_GCJ" = no && can_build_shared=no
22251
22252variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22253if test "$GCC" = yes; then
22254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22255fi
22256
22257#
22258# Do we need to explicitly link libc?
22259#
22260case "x$archive_cmds_need_lc_GCJ" in
22261x|xyes)
22262 # Assume -lc should be added
22263 archive_cmds_need_lc_GCJ=yes
22264
22265 if test "$enable_shared" = yes && test "$GCC" = yes; then
22266 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022267 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022268 # FIXME: we may have to deal with multi-command sequences.
22269 ;;
22270 '$CC '*)
22271 # Test whether the compiler implicitly links with -lc since on some
22272 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22273 # to ld, don't add -lc before -lgcc.
22274 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22275echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22276 $rm conftest*
22277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22278
22279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22280 (eval $ac_compile) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } 2>conftest.err; then
22284 soname=conftest
22285 lib=conftest
22286 libobjs=conftest.$ac_objext
22287 deplibs=
22288 wl=$lt_prog_compiler_wl_GCJ
22289 compiler_flags=-v
22290 linker_flags=-v
22291 verstring=
22292 output_objdir=.
22293 libname=conftest
22294 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22295 allow_undefined_flag_GCJ=
22296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22297 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }
22301 then
22302 archive_cmds_need_lc_GCJ=no
22303 else
22304 archive_cmds_need_lc_GCJ=yes
22305 fi
22306 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22307 else
22308 cat conftest.err 1>&5
22309 fi
22310 $rm conftest*
22311 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22312echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22313 ;;
22314 esac
22315 fi
22316 ;;
22317esac
22318
John Criswell47fdd832003-07-14 16:52:07 +000022319echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22320echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22321library_names_spec=
22322libname_spec='lib$name'
22323soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022324shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022325postinstall_cmds=
22326postuninstall_cmds=
22327finish_cmds=
22328finish_eval=
22329shlibpath_var=
22330shlibpath_overrides_runpath=unknown
22331version_type=none
22332dynamic_linker="$host_os ld.so"
22333sys_lib_dlsearch_path_spec="/lib /usr/lib"
22334if test "$GCC" = yes; then
22335 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22336 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22337 # if the path contains ";" then we assume it to be the separator
22338 # otherwise default to the standard path separator (i.e. ":") - it is
22339 # assumed that no part of a normal pathname contains ";" but that should
22340 # okay in the real world where ";" in dirpaths is itself problematic.
22341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22342 else
22343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22344 fi
22345else
22346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22347fi
22348need_lib_prefix=unknown
22349hardcode_into_libs=no
22350
22351# when you set need_version to no, make sure it does not cause -set_version
22352# flags to be left without arguments
22353need_version=unknown
22354
22355case $host_os in
22356aix3*)
22357 version_type=linux
22358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359 shlibpath_var=LIBPATH
22360
22361 # AIX 3 has no versioning support, so we append a major version to the name.
22362 soname_spec='${libname}${release}${shared_ext}$major'
22363 ;;
22364
22365aix4* | aix5*)
22366 version_type=linux
22367 need_lib_prefix=no
22368 need_version=no
22369 hardcode_into_libs=yes
22370 if test "$host_cpu" = ia64; then
22371 # AIX 5 supports IA64
22372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373 shlibpath_var=LD_LIBRARY_PATH
22374 else
22375 # With GCC up to 2.95.x, collect2 would create an import file
22376 # for dependence libraries. The import file would start with
22377 # the line `#! .'. This would cause the generated library to
22378 # depend on `.', always an invalid library. This was fixed in
22379 # development snapshots of GCC prior to 3.0.
22380 case $host_os in
22381 aix4 | aix4.[01] | aix4.[01].*)
22382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22383 echo ' yes '
22384 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22385 :
22386 else
22387 can_build_shared=no
22388 fi
22389 ;;
22390 esac
22391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392 # soname into executable. Probably we can add versioning support to
22393 # collect2, so additional links can be useful in future.
22394 if test "$aix_use_runtimelinking" = yes; then
22395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396 # instead of lib<name>.a to let people know that these are not
22397 # typical AIX shared libraries.
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22399 else
22400 # We preserve .a as extension for shared libraries through AIX4.2
22401 # and later when we are not doing run time linking.
22402 library_names_spec='${libname}${release}.a $libname.a'
22403 soname_spec='${libname}${release}${shared_ext}$major'
22404 fi
22405 shlibpath_var=LIBPATH
22406 fi
22407 ;;
22408
22409amigaos*)
22410 library_names_spec='$libname.ixlibrary $libname.a'
22411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 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 +000022413 ;;
22414
22415beos*)
22416 library_names_spec='${libname}${shared_ext}'
22417 dynamic_linker="$host_os ld.so"
22418 shlibpath_var=LIBRARY_PATH
22419 ;;
22420
Reid Spencer2706f8c2004-09-19 23:53:36 +000022421bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022422 version_type=linux
22423 need_version=no
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 soname_spec='${libname}${release}${shared_ext}$major'
22426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22427 shlibpath_var=LD_LIBRARY_PATH
22428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22430 # the default ld.so.conf also contains /usr/contrib/lib and
22431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22432 # libtool to hard-code these into programs
22433 ;;
22434
22435cygwin* | mingw* | pw32*)
22436 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022437 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022438 need_version=no
22439 need_lib_prefix=no
22440
22441 case $GCC,$host_os in
22442 yes,cygwin* | yes,mingw* | yes,pw32*)
22443 library_names_spec='$libname.dll.a'
22444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022445 postinstall_cmds='base_file=`basename \${file}`~
22446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22447 dldir=$destdir/`dirname \$dlpath`~
22448 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022449 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022452 $rm \$dlpath'
22453 shlibpath_overrides_runpath=yes
22454
22455 case $host_os in
22456 cygwin*)
22457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458 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 +000022459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022460 ;;
22461 mingw*)
22462 # MinGW DLLs use traditional 'lib' prefix
22463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466 # It is most probably a Windows format PATH printed by
22467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468 # path with ; separators, and with drive letters. We can handle the
22469 # drive letters (cygwin fileutils understands them), so leave them,
22470 # especially as we might pass files found there to a mingw objdump,
22471 # which wouldn't understand a cygwinified path. Ahh.
22472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22473 else
22474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22475 fi
22476 ;;
22477 pw32*)
22478 # pw32 DLLs use 'pw' prefix rather than 'lib'
22479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22480 ;;
22481 esac
22482 ;;
22483
22484 *)
22485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22486 ;;
22487 esac
22488 dynamic_linker='Win32 ld.exe'
22489 # FIXME: first we should search . and the directory the executable is in
22490 shlibpath_var=PATH
22491 ;;
22492
22493darwin* | rhapsody*)
22494 dynamic_linker="$host_os dyld"
22495 version_type=darwin
22496 need_lib_prefix=no
22497 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022499 soname_spec='${libname}${release}${major}$shared_ext'
22500 shlibpath_overrides_runpath=yes
22501 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022502 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 if test "$GCC" = yes; then
22505 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"`
22506 else
22507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022508 fi
22509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22510 ;;
22511
22512dgux*)
22513 version_type=linux
22514 need_lib_prefix=no
22515 need_version=no
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517 soname_spec='${libname}${release}${shared_ext}$major'
22518 shlibpath_var=LD_LIBRARY_PATH
22519 ;;
22520
22521freebsd1*)
22522 dynamic_linker=no
22523 ;;
22524
Reid Spencer2706f8c2004-09-19 23:53:36 +000022525kfreebsd*-gnu)
22526 version_type=linux
22527 need_lib_prefix=no
22528 need_version=no
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530 soname_spec='${libname}${release}${shared_ext}$major'
22531 shlibpath_var=LD_LIBRARY_PATH
22532 shlibpath_overrides_runpath=no
22533 hardcode_into_libs=yes
22534 dynamic_linker='GNU ld.so'
22535 ;;
22536
John Criswell47fdd832003-07-14 16:52:07 +000022537freebsd*)
22538 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22539 version_type=freebsd-$objformat
22540 case $version_type in
22541 freebsd-elf*)
22542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22543 need_version=no
22544 need_lib_prefix=no
22545 ;;
22546 freebsd-*)
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22548 need_version=yes
22549 ;;
22550 esac
22551 shlibpath_var=LD_LIBRARY_PATH
22552 case $host_os in
22553 freebsd2*)
22554 shlibpath_overrides_runpath=yes
22555 ;;
22556 freebsd3.01* | freebsdelf3.01*)
22557 shlibpath_overrides_runpath=yes
22558 hardcode_into_libs=yes
22559 ;;
22560 *) # from 3.2 on
22561 shlibpath_overrides_runpath=no
22562 hardcode_into_libs=yes
22563 ;;
22564 esac
22565 ;;
22566
22567gnu*)
22568 version_type=linux
22569 need_lib_prefix=no
22570 need_version=no
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 shlibpath_var=LD_LIBRARY_PATH
22574 hardcode_into_libs=yes
22575 ;;
22576
22577hpux9* | hpux10* | hpux11*)
22578 # Give a soname corresponding to the major version so that dld.sl refuses to
22579 # link against other versions.
22580 version_type=sunos
22581 need_lib_prefix=no
22582 need_version=no
22583 case "$host_cpu" in
22584 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022585 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022586 hardcode_into_libs=yes
22587 dynamic_linker="$host_os dld.so"
22588 shlibpath_var=LD_LIBRARY_PATH
22589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 soname_spec='${libname}${release}${shared_ext}$major'
22592 if test "X$HPUX_IA64_MODE" = X32; then
22593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22594 else
22595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22596 fi
22597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22598 ;;
22599 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022601 hardcode_into_libs=yes
22602 dynamic_linker="$host_os dld.sl"
22603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22609 ;;
22610 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022611 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022612 dynamic_linker="$host_os dld.sl"
22613 shlibpath_var=SHLIB_PATH
22614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22616 soname_spec='${libname}${release}${shared_ext}$major'
22617 ;;
22618 esac
22619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22620 postinstall_cmds='chmod 555 $lib'
22621 ;;
22622
22623irix5* | irix6* | nonstopux*)
22624 case $host_os in
22625 nonstopux*) version_type=nonstopux ;;
22626 *)
22627 if test "$lt_cv_prog_gnu_ld" = yes; then
22628 version_type=linux
22629 else
22630 version_type=irix
22631 fi ;;
22632 esac
22633 need_lib_prefix=no
22634 need_version=no
22635 soname_spec='${libname}${release}${shared_ext}$major'
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22637 case $host_os in
22638 irix5* | nonstopux*)
22639 libsuff= shlibsuff=
22640 ;;
22641 *)
22642 case $LD in # libtool.m4 will add one of these switches to LD
22643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22644 libsuff= shlibsuff= libmagic=32-bit;;
22645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22646 libsuff=32 shlibsuff=N32 libmagic=N32;;
22647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22648 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22649 *) libsuff= shlibsuff= libmagic=never-match;;
22650 esac
22651 ;;
22652 esac
22653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22654 shlibpath_overrides_runpath=no
22655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22657 hardcode_into_libs=yes
22658 ;;
22659
22660# No shared lib support for Linux oldld, aout, or coff.
22661linux*oldld* | linux*aout* | linux*coff*)
22662 dynamic_linker=no
22663 ;;
22664
22665# This must be Linux ELF.
22666linux*)
22667 version_type=linux
22668 need_lib_prefix=no
22669 need_version=no
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=no
22675 # This implies no fast_install, which is unacceptable.
22676 # Some rework will be needed to allow for fast_install
22677 # before this can be enabled.
22678 hardcode_into_libs=yes
22679
Reid Spencer2706f8c2004-09-19 23:53:36 +000022680 # Append ld.so.conf contents to the search path
22681 if test -f /etc/ld.so.conf; then
22682 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22683 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22684 fi
22685
John Criswell47fdd832003-07-14 16:52:07 +000022686 # We used to test for /lib/ld.so.1 and disable shared libraries on
22687 # powerpc, because MkLinux only supported shared libraries with the
22688 # GNU dynamic linker. Since this was broken with cross compilers,
22689 # most powerpc-linux boxes support dynamic linking these days and
22690 # people can always --disable-shared, the test was removed, and we
22691 # assume the GNU/Linux dynamic linker is in use.
22692 dynamic_linker='GNU/Linux ld.so'
22693 ;;
22694
Reid Spencer2706f8c2004-09-19 23:53:36 +000022695knetbsd*-gnu)
22696 version_type=linux
22697 need_lib_prefix=no
22698 need_version=no
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22700 soname_spec='${libname}${release}${shared_ext}$major'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 shlibpath_overrides_runpath=no
22703 hardcode_into_libs=yes
22704 dynamic_linker='GNU ld.so'
22705 ;;
22706
John Criswell47fdd832003-07-14 16:52:07 +000022707netbsd*)
22708 version_type=sunos
22709 need_lib_prefix=no
22710 need_version=no
22711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714 dynamic_linker='NetBSD (a.out) ld.so'
22715 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022717 soname_spec='${libname}${release}${shared_ext}$major'
22718 dynamic_linker='NetBSD ld.elf_so'
22719 fi
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=yes
22722 hardcode_into_libs=yes
22723 ;;
22724
22725newsos6)
22726 version_type=linux
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=yes
22730 ;;
22731
Reid Spencer2706f8c2004-09-19 23:53:36 +000022732nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022733 version_type=linux
22734 need_lib_prefix=no
22735 need_version=no
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 shlibpath_var=LD_LIBRARY_PATH
22739 shlibpath_overrides_runpath=yes
22740 ;;
22741
22742openbsd*)
22743 version_type=sunos
22744 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022745 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22748 shlibpath_var=LD_LIBRARY_PATH
22749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22750 case $host_os in
22751 openbsd2.[89] | openbsd2.[89].*)
22752 shlibpath_overrides_runpath=no
22753 ;;
22754 *)
22755 shlibpath_overrides_runpath=yes
22756 ;;
22757 esac
22758 else
22759 shlibpath_overrides_runpath=yes
22760 fi
22761 ;;
22762
22763os2*)
22764 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022765 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022766 need_lib_prefix=no
22767 library_names_spec='$libname${shared_ext} $libname.a'
22768 dynamic_linker='OS/2 ld.exe'
22769 shlibpath_var=LIBPATH
22770 ;;
22771
22772osf3* | osf4* | osf5*)
22773 version_type=osf
22774 need_lib_prefix=no
22775 need_version=no
22776 soname_spec='${libname}${release}${shared_ext}$major'
22777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22781 ;;
22782
22783sco3.2v5*)
22784 version_type=osf
22785 soname_spec='${libname}${release}${shared_ext}$major'
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787 shlibpath_var=LD_LIBRARY_PATH
22788 ;;
22789
22790solaris*)
22791 version_type=linux
22792 need_lib_prefix=no
22793 need_version=no
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=yes
22798 hardcode_into_libs=yes
22799 # ldd complains unless libraries are executable
22800 postinstall_cmds='chmod +x $lib'
22801 ;;
22802
22803sunos4*)
22804 version_type=sunos
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22807 shlibpath_var=LD_LIBRARY_PATH
22808 shlibpath_overrides_runpath=yes
22809 if test "$with_gnu_ld" = yes; then
22810 need_lib_prefix=no
22811 fi
22812 need_version=yes
22813 ;;
22814
22815sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22816 version_type=linux
22817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22818 soname_spec='${libname}${release}${shared_ext}$major'
22819 shlibpath_var=LD_LIBRARY_PATH
22820 case $host_vendor in
22821 sni)
22822 shlibpath_overrides_runpath=no
22823 need_lib_prefix=no
22824 export_dynamic_flag_spec='${wl}-Blargedynsym'
22825 runpath_var=LD_RUN_PATH
22826 ;;
22827 siemens)
22828 need_lib_prefix=no
22829 ;;
22830 motorola)
22831 need_lib_prefix=no
22832 need_version=no
22833 shlibpath_overrides_runpath=no
22834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22835 ;;
22836 esac
22837 ;;
22838
22839sysv4*MP*)
22840 if test -d /usr/nec ;then
22841 version_type=linux
22842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22843 soname_spec='$libname${shared_ext}.$major'
22844 shlibpath_var=LD_LIBRARY_PATH
22845 fi
22846 ;;
22847
22848uts4*)
22849 version_type=linux
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 shlibpath_var=LD_LIBRARY_PATH
22853 ;;
22854
22855*)
22856 dynamic_linker=no
22857 ;;
22858esac
22859echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22860echo "${ECHO_T}$dynamic_linker" >&6
22861test "$dynamic_linker" = no && can_build_shared=no
22862
Reid Spencer2706f8c2004-09-19 23:53:36 +000022863echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22864echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22865hardcode_action_GCJ=
22866if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22867 test -n "$runpath_var_GCJ" || \
22868 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22869
22870 # We can hardcode non-existant directories.
22871 if test "$hardcode_direct_GCJ" != no &&
22872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22873 # have to relink, otherwise we might link with an installed library
22874 # when we should be linking with a yet-to-be-installed one
22875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22876 test "$hardcode_minus_L_GCJ" != no; then
22877 # Linking always hardcodes the temporary library directory.
22878 hardcode_action_GCJ=relink
22879 else
22880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22881 hardcode_action_GCJ=immediate
22882 fi
22883else
22884 # We cannot hardcode anything, or else we can only hardcode existing
22885 # directories.
22886 hardcode_action_GCJ=unsupported
22887fi
22888echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22889echo "${ECHO_T}$hardcode_action_GCJ" >&6
22890
22891if test "$hardcode_action_GCJ" = relink; then
22892 # Fast installation is not supported
22893 enable_fast_install=no
22894elif test "$shlibpath_overrides_runpath" = yes ||
22895 test "$enable_shared" = no; then
22896 # Fast installation is not necessary
22897 enable_fast_install=needless
22898fi
22899
22900striplib=
22901old_striplib=
22902echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22903echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22904if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22907 echo "$as_me:$LINENO: result: yes" >&5
22908echo "${ECHO_T}yes" >&6
22909else
22910# FIXME - insert some real tests, host_os isn't really good enough
22911 case $host_os in
22912 darwin*)
22913 if test -n "$STRIP" ; then
22914 striplib="$STRIP -x"
22915 echo "$as_me:$LINENO: result: yes" >&5
22916echo "${ECHO_T}yes" >&6
22917 else
22918 echo "$as_me:$LINENO: result: no" >&5
22919echo "${ECHO_T}no" >&6
22920fi
22921 ;;
22922 *)
22923 echo "$as_me:$LINENO: result: no" >&5
22924echo "${ECHO_T}no" >&6
22925 ;;
22926 esac
22927fi
22928
John Criswell47fdd832003-07-14 16:52:07 +000022929if test "x$enable_dlopen" != xyes; then
22930 enable_dlopen=unknown
22931 enable_dlopen_self=unknown
22932 enable_dlopen_self_static=unknown
22933else
22934 lt_cv_dlopen=no
22935 lt_cv_dlopen_libs=
22936
22937 case $host_os in
22938 beos*)
22939 lt_cv_dlopen="load_add_on"
22940 lt_cv_dlopen_libs=
22941 lt_cv_dlopen_self=yes
22942 ;;
22943
22944 mingw* | pw32*)
22945 lt_cv_dlopen="LoadLibrary"
22946 lt_cv_dlopen_libs=
22947 ;;
22948
22949 cygwin*)
22950 lt_cv_dlopen="dlopen"
22951 lt_cv_dlopen_libs=
22952 ;;
22953
22954 darwin*)
22955 # if libdl is installed we need to link against it
22956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22957echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960else
22961 ac_check_lib_save_LIBS=$LIBS
22962LIBS="-ldl $LIBS"
22963cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022964/* confdefs.h. */
22965_ACEOF
22966cat confdefs.h >>conftest.$ac_ext
22967cat >>conftest.$ac_ext <<_ACEOF
22968/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022969
22970/* Override any gcc2 internal prototype to avoid an error. */
22971#ifdef __cplusplus
22972extern "C"
22973#endif
22974/* We use char because int might match the return type of a gcc2
22975 builtin and then its argument prototype would still apply. */
22976char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022977int
22978main ()
22979{
22980dlopen ();
22981 ;
22982 return 0;
22983}
22984_ACEOF
22985rm -f conftest.$ac_objext conftest$ac_exeext
22986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022987 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022988 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022994 { ac_try='test -z "$ac_c_werror_flag"
22995 || test ! -s conftest.err'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; } &&
23001 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23004 ac_status=$?
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; }; then
23007 ac_cv_lib_dl_dlopen=yes
23008else
23009 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023010sed 's/^/| /' conftest.$ac_ext >&5
23011
John Criswell47fdd832003-07-14 16:52:07 +000023012ac_cv_lib_dl_dlopen=no
23013fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023014rm -f conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023016LIBS=$ac_check_lib_save_LIBS
23017fi
23018echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23019echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23020if test $ac_cv_lib_dl_dlopen = yes; then
23021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23022else
23023
23024 lt_cv_dlopen="dyld"
23025 lt_cv_dlopen_libs=
23026 lt_cv_dlopen_self=yes
23027
23028fi
23029
23030 ;;
23031
23032 *)
23033 echo "$as_me:$LINENO: checking for shl_load" >&5
23034echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23035if test "${ac_cv_func_shl_load+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23037else
23038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023039/* confdefs.h. */
23040_ACEOF
23041cat confdefs.h >>conftest.$ac_ext
23042cat >>conftest.$ac_ext <<_ACEOF
23043/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023044/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23046#define shl_load innocuous_shl_load
23047
John Criswell47fdd832003-07-14 16:52:07 +000023048/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023049 which can conflict with char shl_load (); below.
23050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23051 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023052
John Criswell0c38eaf2003-09-10 15:17:25 +000023053#ifdef __STDC__
23054# include <limits.h>
23055#else
23056# include <assert.h>
23057#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023058
23059#undef shl_load
23060
John Criswell47fdd832003-07-14 16:52:07 +000023061/* Override any gcc2 internal prototype to avoid an error. */
23062#ifdef __cplusplus
23063extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023064{
John Criswell47fdd832003-07-14 16:52:07 +000023065#endif
23066/* We use char because int might match the return type of a gcc2
23067 builtin and then its argument prototype would still apply. */
23068char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023069/* The GNU C library defines this for functions which it implements
23070 to always fail with ENOSYS. Some functions are actually named
23071 something starting with __ and the normal name is an alias. */
23072#if defined (__stub_shl_load) || defined (__stub___shl_load)
23073choke me
23074#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023075char (*f) () = shl_load;
23076#endif
23077#ifdef __cplusplus
23078}
John Criswell47fdd832003-07-14 16:52:07 +000023079#endif
23080
John Criswell0c38eaf2003-09-10 15:17:25 +000023081int
23082main ()
23083{
23084return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023085 ;
23086 return 0;
23087}
23088_ACEOF
23089rm -f conftest.$ac_objext conftest$ac_exeext
23090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023091 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023092 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023093 grep -v '^ *+' conftest.er1 >conftest.err
23094 rm -f conftest.er1
23095 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023098 { ac_try='test -z "$ac_c_werror_flag"
23099 || test ! -s conftest.err'
23100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; } &&
23105 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; }; then
23111 ac_cv_func_shl_load=yes
23112else
23113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023114sed 's/^/| /' conftest.$ac_ext >&5
23115
John Criswell47fdd832003-07-14 16:52:07 +000023116ac_cv_func_shl_load=no
23117fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023118rm -f conftest.err conftest.$ac_objext \
23119 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023120fi
23121echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23122echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23123if test $ac_cv_func_shl_load = yes; then
23124 lt_cv_dlopen="shl_load"
23125else
23126 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23127echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23128if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23130else
23131 ac_check_lib_save_LIBS=$LIBS
23132LIBS="-ldld $LIBS"
23133cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023134/* confdefs.h. */
23135_ACEOF
23136cat confdefs.h >>conftest.$ac_ext
23137cat >>conftest.$ac_ext <<_ACEOF
23138/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023139
23140/* Override any gcc2 internal prototype to avoid an error. */
23141#ifdef __cplusplus
23142extern "C"
23143#endif
23144/* We use char because int might match the return type of a gcc2
23145 builtin and then its argument prototype would still apply. */
23146char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023147int
23148main ()
23149{
23150shl_load ();
23151 ;
23152 return 0;
23153}
23154_ACEOF
23155rm -f conftest.$ac_objext conftest$ac_exeext
23156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023157 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023164 { ac_try='test -z "$ac_c_werror_flag"
23165 || test ! -s conftest.err'
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; } &&
23171 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23174 ac_status=$?
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; }; then
23177 ac_cv_lib_dld_shl_load=yes
23178else
23179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023180sed 's/^/| /' conftest.$ac_ext >&5
23181
John Criswell47fdd832003-07-14 16:52:07 +000023182ac_cv_lib_dld_shl_load=no
23183fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023184rm -f conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023186LIBS=$ac_check_lib_save_LIBS
23187fi
23188echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23189echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23190if test $ac_cv_lib_dld_shl_load = yes; then
23191 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23192else
23193 echo "$as_me:$LINENO: checking for dlopen" >&5
23194echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23195if test "${ac_cv_func_dlopen+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197else
23198 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023199/* confdefs.h. */
23200_ACEOF
23201cat confdefs.h >>conftest.$ac_ext
23202cat >>conftest.$ac_ext <<_ACEOF
23203/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023204/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23206#define dlopen innocuous_dlopen
23207
John Criswell47fdd832003-07-14 16:52:07 +000023208/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023209 which can conflict with char dlopen (); below.
23210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23211 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023212
John Criswell0c38eaf2003-09-10 15:17:25 +000023213#ifdef __STDC__
23214# include <limits.h>
23215#else
23216# include <assert.h>
23217#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023218
23219#undef dlopen
23220
John Criswell47fdd832003-07-14 16:52:07 +000023221/* Override any gcc2 internal prototype to avoid an error. */
23222#ifdef __cplusplus
23223extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023224{
John Criswell47fdd832003-07-14 16:52:07 +000023225#endif
23226/* We use char because int might match the return type of a gcc2
23227 builtin and then its argument prototype would still apply. */
23228char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023229/* The GNU C library defines this for functions which it implements
23230 to always fail with ENOSYS. Some functions are actually named
23231 something starting with __ and the normal name is an alias. */
23232#if defined (__stub_dlopen) || defined (__stub___dlopen)
23233choke me
23234#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023235char (*f) () = dlopen;
23236#endif
23237#ifdef __cplusplus
23238}
John Criswell47fdd832003-07-14 16:52:07 +000023239#endif
23240
John Criswell0c38eaf2003-09-10 15:17:25 +000023241int
23242main ()
23243{
23244return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023245 ;
23246 return 0;
23247}
23248_ACEOF
23249rm -f conftest.$ac_objext conftest$ac_exeext
23250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023251 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023253 grep -v '^ *+' conftest.er1 >conftest.err
23254 rm -f conftest.er1
23255 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 { ac_try='test -z "$ac_c_werror_flag"
23259 || test ! -s conftest.err'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23262 ac_status=$?
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; } &&
23265 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; }; then
23271 ac_cv_func_dlopen=yes
23272else
23273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023274sed 's/^/| /' conftest.$ac_ext >&5
23275
John Criswell47fdd832003-07-14 16:52:07 +000023276ac_cv_func_dlopen=no
23277fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023278rm -f conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023280fi
23281echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23282echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23283if test $ac_cv_func_dlopen = yes; then
23284 lt_cv_dlopen="dlopen"
23285else
23286 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23287echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23288if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23290else
23291 ac_check_lib_save_LIBS=$LIBS
23292LIBS="-ldl $LIBS"
23293cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023299
23300/* Override any gcc2 internal prototype to avoid an error. */
23301#ifdef __cplusplus
23302extern "C"
23303#endif
23304/* We use char because int might match the return type of a gcc2
23305 builtin and then its argument prototype would still apply. */
23306char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023307int
23308main ()
23309{
23310dlopen ();
23311 ;
23312 return 0;
23313}
23314_ACEOF
23315rm -f conftest.$ac_objext conftest$ac_exeext
23316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023317 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023319 grep -v '^ *+' conftest.er1 >conftest.err
23320 rm -f conftest.er1
23321 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023324 { ac_try='test -z "$ac_c_werror_flag"
23325 || test ! -s conftest.err'
23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; } &&
23331 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; }; then
23337 ac_cv_lib_dl_dlopen=yes
23338else
23339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023340sed 's/^/| /' conftest.$ac_ext >&5
23341
John Criswell47fdd832003-07-14 16:52:07 +000023342ac_cv_lib_dl_dlopen=no
23343fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023344rm -f conftest.err conftest.$ac_objext \
23345 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023346LIBS=$ac_check_lib_save_LIBS
23347fi
23348echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23349echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23350if test $ac_cv_lib_dl_dlopen = yes; then
23351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23352else
23353 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23354echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23355if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23357else
23358 ac_check_lib_save_LIBS=$LIBS
23359LIBS="-lsvld $LIBS"
23360cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023361/* confdefs.h. */
23362_ACEOF
23363cat confdefs.h >>conftest.$ac_ext
23364cat >>conftest.$ac_ext <<_ACEOF
23365/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023366
23367/* Override any gcc2 internal prototype to avoid an error. */
23368#ifdef __cplusplus
23369extern "C"
23370#endif
23371/* We use char because int might match the return type of a gcc2
23372 builtin and then its argument prototype would still apply. */
23373char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023374int
23375main ()
23376{
23377dlopen ();
23378 ;
23379 return 0;
23380}
23381_ACEOF
23382rm -f conftest.$ac_objext conftest$ac_exeext
23383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023384 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023391 { ac_try='test -z "$ac_c_werror_flag"
23392 || test ! -s conftest.err'
23393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; } &&
23398 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 ac_cv_lib_svld_dlopen=yes
23405else
23406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023407sed 's/^/| /' conftest.$ac_ext >&5
23408
John Criswell47fdd832003-07-14 16:52:07 +000023409ac_cv_lib_svld_dlopen=no
23410fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023411rm -f conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023413LIBS=$ac_check_lib_save_LIBS
23414fi
23415echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23416echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23417if test $ac_cv_lib_svld_dlopen = yes; then
23418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23419else
23420 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23421echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23422if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424else
23425 ac_check_lib_save_LIBS=$LIBS
23426LIBS="-ldld $LIBS"
23427cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023428/* confdefs.h. */
23429_ACEOF
23430cat confdefs.h >>conftest.$ac_ext
23431cat >>conftest.$ac_ext <<_ACEOF
23432/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023433
23434/* Override any gcc2 internal prototype to avoid an error. */
23435#ifdef __cplusplus
23436extern "C"
23437#endif
23438/* We use char because int might match the return type of a gcc2
23439 builtin and then its argument prototype would still apply. */
23440char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023441int
23442main ()
23443{
23444dld_link ();
23445 ;
23446 return 0;
23447}
23448_ACEOF
23449rm -f conftest.$ac_objext conftest$ac_exeext
23450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023451 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023458 { ac_try='test -z "$ac_c_werror_flag"
23459 || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_lib_dld_dld_link=yes
23472else
23473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023474sed 's/^/| /' conftest.$ac_ext >&5
23475
John Criswell47fdd832003-07-14 16:52:07 +000023476ac_cv_lib_dld_dld_link=no
23477fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023478rm -f conftest.err conftest.$ac_objext \
23479 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023480LIBS=$ac_check_lib_save_LIBS
23481fi
23482echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23483echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23484if test $ac_cv_lib_dld_dld_link = yes; then
23485 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23486fi
23487
23488
23489fi
23490
23491
23492fi
23493
23494
23495fi
23496
23497
23498fi
23499
23500
23501fi
23502
23503 ;;
23504 esac
23505
23506 if test "x$lt_cv_dlopen" != xno; then
23507 enable_dlopen=yes
23508 else
23509 enable_dlopen=no
23510 fi
23511
23512 case $lt_cv_dlopen in
23513 dlopen)
23514 save_CPPFLAGS="$CPPFLAGS"
23515 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23516
23517 save_LDFLAGS="$LDFLAGS"
23518 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23519
23520 save_LIBS="$LIBS"
23521 LIBS="$lt_cv_dlopen_libs $LIBS"
23522
23523 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23524echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23525if test "${lt_cv_dlopen_self+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23527else
23528 if test "$cross_compiling" = yes; then :
23529 lt_cv_dlopen_self=cross
23530else
23531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23532 lt_status=$lt_dlunknown
23533 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +000023534#line 23534 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023535#include "confdefs.h"
23536
23537#if HAVE_DLFCN_H
23538#include <dlfcn.h>
23539#endif
23540
23541#include <stdio.h>
23542
23543#ifdef RTLD_GLOBAL
23544# define LT_DLGLOBAL RTLD_GLOBAL
23545#else
23546# ifdef DL_GLOBAL
23547# define LT_DLGLOBAL DL_GLOBAL
23548# else
23549# define LT_DLGLOBAL 0
23550# endif
23551#endif
23552
23553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23554 find out it does not work in some platform. */
23555#ifndef LT_DLLAZY_OR_NOW
23556# ifdef RTLD_LAZY
23557# define LT_DLLAZY_OR_NOW RTLD_LAZY
23558# else
23559# ifdef DL_LAZY
23560# define LT_DLLAZY_OR_NOW DL_LAZY
23561# else
23562# ifdef RTLD_NOW
23563# define LT_DLLAZY_OR_NOW RTLD_NOW
23564# else
23565# ifdef DL_NOW
23566# define LT_DLLAZY_OR_NOW DL_NOW
23567# else
23568# define LT_DLLAZY_OR_NOW 0
23569# endif
23570# endif
23571# endif
23572# endif
23573#endif
23574
23575#ifdef __cplusplus
23576extern "C" void exit (int);
23577#endif
23578
23579void fnord() { int i=42;}
23580int main ()
23581{
23582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23583 int status = $lt_dlunknown;
23584
23585 if (self)
23586 {
23587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23589 /* dlclose (self); */
23590 }
23591
23592 exit (status);
23593}
23594EOF
23595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596 (eval $ac_link) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23600 (./conftest; exit; ) 2>/dev/null
23601 lt_status=$?
23602 case x$lt_status in
23603 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23604 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23605 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23606 esac
23607 else :
23608 # compilation failed
23609 lt_cv_dlopen_self=no
23610 fi
23611fi
23612rm -fr conftest*
23613
23614
23615fi
23616echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23617echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23618
23619 if test "x$lt_cv_dlopen_self" = xyes; then
23620 LDFLAGS="$LDFLAGS $link_static_flag"
23621 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23622echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23623if test "${lt_cv_dlopen_self_static+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625else
23626 if test "$cross_compiling" = yes; then :
23627 lt_cv_dlopen_self_static=cross
23628else
23629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23630 lt_status=$lt_dlunknown
23631 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2246f2005-07-13 03:20:14 +000023632#line 23632 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023633#include "confdefs.h"
23634
23635#if HAVE_DLFCN_H
23636#include <dlfcn.h>
23637#endif
23638
23639#include <stdio.h>
23640
23641#ifdef RTLD_GLOBAL
23642# define LT_DLGLOBAL RTLD_GLOBAL
23643#else
23644# ifdef DL_GLOBAL
23645# define LT_DLGLOBAL DL_GLOBAL
23646# else
23647# define LT_DLGLOBAL 0
23648# endif
23649#endif
23650
23651/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23652 find out it does not work in some platform. */
23653#ifndef LT_DLLAZY_OR_NOW
23654# ifdef RTLD_LAZY
23655# define LT_DLLAZY_OR_NOW RTLD_LAZY
23656# else
23657# ifdef DL_LAZY
23658# define LT_DLLAZY_OR_NOW DL_LAZY
23659# else
23660# ifdef RTLD_NOW
23661# define LT_DLLAZY_OR_NOW RTLD_NOW
23662# else
23663# ifdef DL_NOW
23664# define LT_DLLAZY_OR_NOW DL_NOW
23665# else
23666# define LT_DLLAZY_OR_NOW 0
23667# endif
23668# endif
23669# endif
23670# endif
23671#endif
23672
23673#ifdef __cplusplus
23674extern "C" void exit (int);
23675#endif
23676
23677void fnord() { int i=42;}
23678int main ()
23679{
23680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23681 int status = $lt_dlunknown;
23682
23683 if (self)
23684 {
23685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23686 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23687 /* dlclose (self); */
23688 }
23689
23690 exit (status);
23691}
23692EOF
23693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694 (eval $ac_link) 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23698 (./conftest; exit; ) 2>/dev/null
23699 lt_status=$?
23700 case x$lt_status in
23701 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23702 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23703 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23704 esac
23705 else :
23706 # compilation failed
23707 lt_cv_dlopen_self_static=no
23708 fi
23709fi
23710rm -fr conftest*
23711
23712
23713fi
23714echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23715echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23716 fi
23717
23718 CPPFLAGS="$save_CPPFLAGS"
23719 LDFLAGS="$save_LDFLAGS"
23720 LIBS="$save_LIBS"
23721 ;;
23722 esac
23723
23724 case $lt_cv_dlopen_self in
23725 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23726 *) enable_dlopen_self=unknown ;;
23727 esac
23728
23729 case $lt_cv_dlopen_self_static in
23730 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23731 *) enable_dlopen_self_static=unknown ;;
23732 esac
23733fi
23734
23735
23736# The else clause should only fire when bootstrapping the
23737# libtool distribution, otherwise you forgot to ship ltmain.sh
23738# with your package, and you will get complaints that there are
23739# no rules to generate ltmain.sh.
23740if test -f "$ltmain"; then
23741 # See if we are running on zsh, and set the options which allow our commands through
23742 # without removal of \ escapes.
23743 if test -n "${ZSH_VERSION+set}" ; then
23744 setopt NO_GLOB_SUBST
23745 fi
23746 # Now quote all the things that may contain metacharacters while being
23747 # careful not to overquote the AC_SUBSTed values. We take copies of the
23748 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23750 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23753 deplibs_check_method reload_flag reload_cmds need_locks \
23754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23755 lt_cv_sys_global_symbol_to_c_name_address \
23756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23757 old_postinstall_cmds old_postuninstall_cmds \
23758 compiler_GCJ \
23759 CC_GCJ \
23760 LD_GCJ \
23761 lt_prog_compiler_wl_GCJ \
23762 lt_prog_compiler_pic_GCJ \
23763 lt_prog_compiler_static_GCJ \
23764 lt_prog_compiler_no_builtin_flag_GCJ \
23765 export_dynamic_flag_spec_GCJ \
23766 thread_safe_flag_spec_GCJ \
23767 whole_archive_flag_spec_GCJ \
23768 enable_shared_with_static_runtimes_GCJ \
23769 old_archive_cmds_GCJ \
23770 old_archive_from_new_cmds_GCJ \
23771 predep_objects_GCJ \
23772 postdep_objects_GCJ \
23773 predeps_GCJ \
23774 postdeps_GCJ \
23775 compiler_lib_search_path_GCJ \
23776 archive_cmds_GCJ \
23777 archive_expsym_cmds_GCJ \
23778 postinstall_cmds_GCJ \
23779 postuninstall_cmds_GCJ \
23780 old_archive_from_expsyms_cmds_GCJ \
23781 allow_undefined_flag_GCJ \
23782 no_undefined_flag_GCJ \
23783 export_symbols_cmds_GCJ \
23784 hardcode_libdir_flag_spec_GCJ \
23785 hardcode_libdir_flag_spec_ld_GCJ \
23786 hardcode_libdir_separator_GCJ \
23787 hardcode_automatic_GCJ \
23788 module_cmds_GCJ \
23789 module_expsym_cmds_GCJ \
23790 lt_cv_prog_compiler_c_o_GCJ \
23791 exclude_expsyms_GCJ \
23792 include_expsyms_GCJ; do
23793
23794 case $var in
23795 old_archive_cmds_GCJ | \
23796 old_archive_from_new_cmds_GCJ | \
23797 archive_cmds_GCJ | \
23798 archive_expsym_cmds_GCJ | \
23799 module_cmds_GCJ | \
23800 module_expsym_cmds_GCJ | \
23801 old_archive_from_expsyms_cmds_GCJ | \
23802 export_symbols_cmds_GCJ | \
23803 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23804 postinstall_cmds | postuninstall_cmds | \
23805 old_postinstall_cmds | old_postuninstall_cmds | \
23806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23807 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023808 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 +000023809 ;;
23810 *)
23811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23812 ;;
23813 esac
23814 done
23815
23816 case $lt_echo in
23817 *'\$0 --fallback-echo"')
23818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23819 ;;
23820 esac
23821
23822cfgfile="$ofile"
23823
23824 cat <<__EOF__ >> "$cfgfile"
23825# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23826
23827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23828
23829# Shell to use when invoking shell scripts.
23830SHELL=$lt_SHELL
23831
23832# Whether or not to build shared libraries.
23833build_libtool_libs=$enable_shared
23834
23835# Whether or not to build static libraries.
23836build_old_libs=$enable_static
23837
23838# Whether or not to add -lc for building shared libraries.
23839build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23840
23841# Whether or not to disallow shared libs when runtime libs are static
23842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23843
23844# Whether or not to optimize for fast installation.
23845fast_install=$enable_fast_install
23846
23847# The host system.
23848host_alias=$host_alias
23849host=$host
23850
23851# An echo program that does not interpret backslashes.
23852echo=$lt_echo
23853
23854# The archiver.
23855AR=$lt_AR
23856AR_FLAGS=$lt_AR_FLAGS
23857
23858# A C compiler.
23859LTCC=$lt_LTCC
23860
23861# A language-specific compiler.
23862CC=$lt_compiler_GCJ
23863
23864# Is the compiler the GNU C compiler?
23865with_gcc=$GCC_GCJ
23866
23867# An ERE matcher.
23868EGREP=$lt_EGREP
23869
23870# The linker used to build libraries.
23871LD=$lt_LD_GCJ
23872
23873# Whether we need hard or soft links.
23874LN_S=$lt_LN_S
23875
23876# A BSD-compatible nm program.
23877NM=$lt_NM
23878
23879# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023880STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023881
23882# Used to examine libraries when file_magic_cmd begins "file"
23883MAGIC_CMD=$MAGIC_CMD
23884
23885# Used on cygwin: DLL creation program.
23886DLLTOOL="$DLLTOOL"
23887
23888# Used on cygwin: object dumper.
23889OBJDUMP="$OBJDUMP"
23890
23891# Used on cygwin: assembler.
23892AS="$AS"
23893
23894# The name of the directory that contains temporary libtool files.
23895objdir=$objdir
23896
23897# How to create reloadable object files.
23898reload_flag=$lt_reload_flag
23899reload_cmds=$lt_reload_cmds
23900
23901# How to pass a linker flag through the compiler.
23902wl=$lt_lt_prog_compiler_wl_GCJ
23903
23904# Object file suffix (normally "o").
23905objext="$ac_objext"
23906
23907# Old archive suffix (normally "a").
23908libext="$libext"
23909
23910# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023911shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023912
23913# Executable file suffix (normally "").
23914exeext="$exeext"
23915
23916# Additional compiler flags for building library objects.
23917pic_flag=$lt_lt_prog_compiler_pic_GCJ
23918pic_mode=$pic_mode
23919
23920# What is the maximum length of a command?
23921max_cmd_len=$lt_cv_sys_max_cmd_len
23922
23923# Does compiler simultaneously support -c and -o options?
23924compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23925
23926# Must we lock files when doing compilation ?
23927need_locks=$lt_need_locks
23928
23929# Do we need the lib prefix for modules?
23930need_lib_prefix=$need_lib_prefix
23931
23932# Do we need a version for libraries?
23933need_version=$need_version
23934
23935# Whether dlopen is supported.
23936dlopen_support=$enable_dlopen
23937
23938# Whether dlopen of programs is supported.
23939dlopen_self=$enable_dlopen_self
23940
23941# Whether dlopen of statically linked programs is supported.
23942dlopen_self_static=$enable_dlopen_self_static
23943
23944# Compiler flag to prevent dynamic linking.
23945link_static_flag=$lt_lt_prog_compiler_static_GCJ
23946
23947# Compiler flag to turn off builtin functions.
23948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23949
23950# Compiler flag to allow reflexive dlopens.
23951export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23952
23953# Compiler flag to generate shared objects directly from archives.
23954whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23955
23956# Compiler flag to generate thread-safe objects.
23957thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23958
23959# Library versioning type.
23960version_type=$version_type
23961
23962# Format of library name prefix.
23963libname_spec=$lt_libname_spec
23964
23965# List of archive names. First name is the real one, the rest are links.
23966# The last name is the one that the linker finds with -lNAME.
23967library_names_spec=$lt_library_names_spec
23968
23969# The coded name of the library, if different from the real name.
23970soname_spec=$lt_soname_spec
23971
23972# Commands used to build and install an old-style archive.
23973RANLIB=$lt_RANLIB
23974old_archive_cmds=$lt_old_archive_cmds_GCJ
23975old_postinstall_cmds=$lt_old_postinstall_cmds
23976old_postuninstall_cmds=$lt_old_postuninstall_cmds
23977
23978# Create an old-style archive from a shared archive.
23979old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23980
23981# Create a temporary old-style archive to link instead of a shared archive.
23982old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23983
23984# Commands used to build and install a shared archive.
23985archive_cmds=$lt_archive_cmds_GCJ
23986archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23987postinstall_cmds=$lt_postinstall_cmds
23988postuninstall_cmds=$lt_postuninstall_cmds
23989
23990# Commands used to build a loadable module (assumed same as above if empty)
23991module_cmds=$lt_module_cmds_GCJ
23992module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23993
23994# Commands to strip libraries.
23995old_striplib=$lt_old_striplib
23996striplib=$lt_striplib
23997
23998# Dependencies to place before the objects being linked to create a
23999# shared library.
24000predep_objects=$lt_predep_objects_GCJ
24001
24002# Dependencies to place after the objects being linked to create a
24003# shared library.
24004postdep_objects=$lt_postdep_objects_GCJ
24005
24006# Dependencies to place before the objects being linked to create a
24007# shared library.
24008predeps=$lt_predeps_GCJ
24009
24010# Dependencies to place after the objects being linked to create a
24011# shared library.
24012postdeps=$lt_postdeps_GCJ
24013
24014# The library search path used internally by the compiler when linking
24015# a shared library.
24016compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24017
24018# Method to check whether dependent libraries are shared objects.
24019deplibs_check_method=$lt_deplibs_check_method
24020
24021# Command to use when deplibs_check_method == file_magic.
24022file_magic_cmd=$lt_file_magic_cmd
24023
24024# Flag that allows shared libraries with undefined symbols to be built.
24025allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24026
24027# Flag that forces no undefined symbols.
24028no_undefined_flag=$lt_no_undefined_flag_GCJ
24029
24030# Commands used to finish a libtool library installation in a directory.
24031finish_cmds=$lt_finish_cmds
24032
24033# Same as above, but a single script fragment to be evaled but not shown.
24034finish_eval=$lt_finish_eval
24035
24036# Take the output of nm and produce a listing of raw symbols and C names.
24037global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24038
24039# Transform the output of nm in a proper C declaration
24040global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24041
24042# Transform the output of nm in a C name address pair
24043global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24044
24045# This is the shared library runtime path variable.
24046runpath_var=$runpath_var
24047
24048# This is the shared library path variable.
24049shlibpath_var=$shlibpath_var
24050
24051# Is shlibpath searched before the hard-coded library search path?
24052shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24053
24054# How to hardcode a shared library path into an executable.
24055hardcode_action=$hardcode_action_GCJ
24056
24057# Whether we should hardcode library paths into libraries.
24058hardcode_into_libs=$hardcode_into_libs
24059
24060# Flag to hardcode \$libdir into a binary during linking.
24061# This must work even if \$libdir does not exist.
24062hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24063
24064# If ld is used when linking, flag to hardcode \$libdir into
24065# a binary during linking. This must work even if \$libdir does
24066# not exist.
24067hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24068
24069# Whether we need a single -rpath flag with a separated argument.
24070hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24071
24072# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24073# resulting binary.
24074hardcode_direct=$hardcode_direct_GCJ
24075
24076# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24077# resulting binary.
24078hardcode_minus_L=$hardcode_minus_L_GCJ
24079
24080# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24081# the resulting binary.
24082hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24083
24084# Set to yes if building a shared library automatically hardcodes DIR into the library
24085# and all subsequent libraries and executables linked against it.
24086hardcode_automatic=$hardcode_automatic_GCJ
24087
24088# Variables whose values should be saved in libtool wrapper scripts and
24089# restored at relink time.
24090variables_saved_for_relink="$variables_saved_for_relink"
24091
24092# Whether libtool must link a program against all its dependency libraries.
24093link_all_deplibs=$link_all_deplibs_GCJ
24094
24095# Compile-time system search path for libraries
24096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24097
24098# Run-time system search path for libraries
24099sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24100
24101# Fix the shell variable \$srcfile for the compiler.
24102fix_srcfile_path="$fix_srcfile_path_GCJ"
24103
24104# Set to yes if exported symbols are required.
24105always_export_symbols=$always_export_symbols_GCJ
24106
24107# The commands to list exported symbols.
24108export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24109
24110# The commands to extract the exported symbol list from a shared archive.
24111extract_expsyms_cmds=$lt_extract_expsyms_cmds
24112
24113# Symbols that should not be listed in the preloaded symbols.
24114exclude_expsyms=$lt_exclude_expsyms_GCJ
24115
24116# Symbols that must always be exported.
24117include_expsyms=$lt_include_expsyms_GCJ
24118
24119# ### END LIBTOOL TAG CONFIG: $tagname
24120
24121__EOF__
24122
24123
24124else
24125 # If there is no Makefile yet, we rely on a make rule to execute
24126 # `config.status --recheck' to rerun these tests and create the
24127 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024128 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24129 if test -f "$ltmain_in"; then
24130 test -f Makefile && make "$ltmain"
24131 fi
John Criswell47fdd832003-07-14 16:52:07 +000024132fi
24133
24134
24135ac_ext=c
24136ac_cpp='$CPP $CPPFLAGS'
24137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24139ac_compiler_gnu=$ac_cv_c_compiler_gnu
24140
24141CC="$lt_save_CC"
24142
24143 else
24144 tagname=""
24145 fi
24146 ;;
24147
24148 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024149 ac_ext=c
24150ac_cpp='$CPP $CPPFLAGS'
24151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24153ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024154
24155
24156# Source file extension for RC test sources.
24157ac_ext=rc
24158
24159# Object file extension for compiled RC test sources.
24160objext=o
24161objext_RC=$objext
24162
24163# Code to be used in simple compile tests
24164lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24165
24166# Code to be used in simple link tests
24167lt_simple_link_test_code="$lt_simple_compile_test_code"
24168
24169# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24170
24171# If no C compiler was specified, use CC.
24172LTCC=${LTCC-"$CC"}
24173
24174# Allow CC to be a program name with arguments.
24175compiler=$CC
24176
24177
24178# Allow CC to be a program name with arguments.
24179lt_save_CC="$CC"
24180CC=${RC-"windres"}
24181compiler=$CC
24182compiler_RC=$CC
24183lt_cv_prog_compiler_c_o_RC=yes
24184
24185# The else clause should only fire when bootstrapping the
24186# libtool distribution, otherwise you forgot to ship ltmain.sh
24187# with your package, and you will get complaints that there are
24188# no rules to generate ltmain.sh.
24189if test -f "$ltmain"; then
24190 # See if we are running on zsh, and set the options which allow our commands through
24191 # without removal of \ escapes.
24192 if test -n "${ZSH_VERSION+set}" ; then
24193 setopt NO_GLOB_SUBST
24194 fi
24195 # Now quote all the things that may contain metacharacters while being
24196 # careful not to overquote the AC_SUBSTed values. We take copies of the
24197 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24199 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24202 deplibs_check_method reload_flag reload_cmds need_locks \
24203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24204 lt_cv_sys_global_symbol_to_c_name_address \
24205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24206 old_postinstall_cmds old_postuninstall_cmds \
24207 compiler_RC \
24208 CC_RC \
24209 LD_RC \
24210 lt_prog_compiler_wl_RC \
24211 lt_prog_compiler_pic_RC \
24212 lt_prog_compiler_static_RC \
24213 lt_prog_compiler_no_builtin_flag_RC \
24214 export_dynamic_flag_spec_RC \
24215 thread_safe_flag_spec_RC \
24216 whole_archive_flag_spec_RC \
24217 enable_shared_with_static_runtimes_RC \
24218 old_archive_cmds_RC \
24219 old_archive_from_new_cmds_RC \
24220 predep_objects_RC \
24221 postdep_objects_RC \
24222 predeps_RC \
24223 postdeps_RC \
24224 compiler_lib_search_path_RC \
24225 archive_cmds_RC \
24226 archive_expsym_cmds_RC \
24227 postinstall_cmds_RC \
24228 postuninstall_cmds_RC \
24229 old_archive_from_expsyms_cmds_RC \
24230 allow_undefined_flag_RC \
24231 no_undefined_flag_RC \
24232 export_symbols_cmds_RC \
24233 hardcode_libdir_flag_spec_RC \
24234 hardcode_libdir_flag_spec_ld_RC \
24235 hardcode_libdir_separator_RC \
24236 hardcode_automatic_RC \
24237 module_cmds_RC \
24238 module_expsym_cmds_RC \
24239 lt_cv_prog_compiler_c_o_RC \
24240 exclude_expsyms_RC \
24241 include_expsyms_RC; do
24242
24243 case $var in
24244 old_archive_cmds_RC | \
24245 old_archive_from_new_cmds_RC | \
24246 archive_cmds_RC | \
24247 archive_expsym_cmds_RC | \
24248 module_cmds_RC | \
24249 module_expsym_cmds_RC | \
24250 old_archive_from_expsyms_cmds_RC | \
24251 export_symbols_cmds_RC | \
24252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24253 postinstall_cmds | postuninstall_cmds | \
24254 old_postinstall_cmds | old_postuninstall_cmds | \
24255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24256 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024257 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 +000024258 ;;
24259 *)
24260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24261 ;;
24262 esac
24263 done
24264
24265 case $lt_echo in
24266 *'\$0 --fallback-echo"')
24267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24268 ;;
24269 esac
24270
24271cfgfile="$ofile"
24272
24273 cat <<__EOF__ >> "$cfgfile"
24274# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24275
24276# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24277
24278# Shell to use when invoking shell scripts.
24279SHELL=$lt_SHELL
24280
24281# Whether or not to build shared libraries.
24282build_libtool_libs=$enable_shared
24283
24284# Whether or not to build static libraries.
24285build_old_libs=$enable_static
24286
24287# Whether or not to add -lc for building shared libraries.
24288build_libtool_need_lc=$archive_cmds_need_lc_RC
24289
24290# Whether or not to disallow shared libs when runtime libs are static
24291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24292
24293# Whether or not to optimize for fast installation.
24294fast_install=$enable_fast_install
24295
24296# The host system.
24297host_alias=$host_alias
24298host=$host
24299
24300# An echo program that does not interpret backslashes.
24301echo=$lt_echo
24302
24303# The archiver.
24304AR=$lt_AR
24305AR_FLAGS=$lt_AR_FLAGS
24306
24307# A C compiler.
24308LTCC=$lt_LTCC
24309
24310# A language-specific compiler.
24311CC=$lt_compiler_RC
24312
24313# Is the compiler the GNU C compiler?
24314with_gcc=$GCC_RC
24315
24316# An ERE matcher.
24317EGREP=$lt_EGREP
24318
24319# The linker used to build libraries.
24320LD=$lt_LD_RC
24321
24322# Whether we need hard or soft links.
24323LN_S=$lt_LN_S
24324
24325# A BSD-compatible nm program.
24326NM=$lt_NM
24327
24328# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024329STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024330
24331# Used to examine libraries when file_magic_cmd begins "file"
24332MAGIC_CMD=$MAGIC_CMD
24333
24334# Used on cygwin: DLL creation program.
24335DLLTOOL="$DLLTOOL"
24336
24337# Used on cygwin: object dumper.
24338OBJDUMP="$OBJDUMP"
24339
24340# Used on cygwin: assembler.
24341AS="$AS"
24342
24343# The name of the directory that contains temporary libtool files.
24344objdir=$objdir
24345
24346# How to create reloadable object files.
24347reload_flag=$lt_reload_flag
24348reload_cmds=$lt_reload_cmds
24349
24350# How to pass a linker flag through the compiler.
24351wl=$lt_lt_prog_compiler_wl_RC
24352
24353# Object file suffix (normally "o").
24354objext="$ac_objext"
24355
24356# Old archive suffix (normally "a").
24357libext="$libext"
24358
24359# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024360shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024361
24362# Executable file suffix (normally "").
24363exeext="$exeext"
24364
24365# Additional compiler flags for building library objects.
24366pic_flag=$lt_lt_prog_compiler_pic_RC
24367pic_mode=$pic_mode
24368
24369# What is the maximum length of a command?
24370max_cmd_len=$lt_cv_sys_max_cmd_len
24371
24372# Does compiler simultaneously support -c and -o options?
24373compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24374
24375# Must we lock files when doing compilation ?
24376need_locks=$lt_need_locks
24377
24378# Do we need the lib prefix for modules?
24379need_lib_prefix=$need_lib_prefix
24380
24381# Do we need a version for libraries?
24382need_version=$need_version
24383
24384# Whether dlopen is supported.
24385dlopen_support=$enable_dlopen
24386
24387# Whether dlopen of programs is supported.
24388dlopen_self=$enable_dlopen_self
24389
24390# Whether dlopen of statically linked programs is supported.
24391dlopen_self_static=$enable_dlopen_self_static
24392
24393# Compiler flag to prevent dynamic linking.
24394link_static_flag=$lt_lt_prog_compiler_static_RC
24395
24396# Compiler flag to turn off builtin functions.
24397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24398
24399# Compiler flag to allow reflexive dlopens.
24400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24401
24402# Compiler flag to generate shared objects directly from archives.
24403whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24404
24405# Compiler flag to generate thread-safe objects.
24406thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24407
24408# Library versioning type.
24409version_type=$version_type
24410
24411# Format of library name prefix.
24412libname_spec=$lt_libname_spec
24413
24414# List of archive names. First name is the real one, the rest are links.
24415# The last name is the one that the linker finds with -lNAME.
24416library_names_spec=$lt_library_names_spec
24417
24418# The coded name of the library, if different from the real name.
24419soname_spec=$lt_soname_spec
24420
24421# Commands used to build and install an old-style archive.
24422RANLIB=$lt_RANLIB
24423old_archive_cmds=$lt_old_archive_cmds_RC
24424old_postinstall_cmds=$lt_old_postinstall_cmds
24425old_postuninstall_cmds=$lt_old_postuninstall_cmds
24426
24427# Create an old-style archive from a shared archive.
24428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24429
24430# Create a temporary old-style archive to link instead of a shared archive.
24431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24432
24433# Commands used to build and install a shared archive.
24434archive_cmds=$lt_archive_cmds_RC
24435archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24436postinstall_cmds=$lt_postinstall_cmds
24437postuninstall_cmds=$lt_postuninstall_cmds
24438
24439# Commands used to build a loadable module (assumed same as above if empty)
24440module_cmds=$lt_module_cmds_RC
24441module_expsym_cmds=$lt_module_expsym_cmds_RC
24442
24443# Commands to strip libraries.
24444old_striplib=$lt_old_striplib
24445striplib=$lt_striplib
24446
24447# Dependencies to place before the objects being linked to create a
24448# shared library.
24449predep_objects=$lt_predep_objects_RC
24450
24451# Dependencies to place after the objects being linked to create a
24452# shared library.
24453postdep_objects=$lt_postdep_objects_RC
24454
24455# Dependencies to place before the objects being linked to create a
24456# shared library.
24457predeps=$lt_predeps_RC
24458
24459# Dependencies to place after the objects being linked to create a
24460# shared library.
24461postdeps=$lt_postdeps_RC
24462
24463# The library search path used internally by the compiler when linking
24464# a shared library.
24465compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24466
24467# Method to check whether dependent libraries are shared objects.
24468deplibs_check_method=$lt_deplibs_check_method
24469
24470# Command to use when deplibs_check_method == file_magic.
24471file_magic_cmd=$lt_file_magic_cmd
24472
24473# Flag that allows shared libraries with undefined symbols to be built.
24474allow_undefined_flag=$lt_allow_undefined_flag_RC
24475
24476# Flag that forces no undefined symbols.
24477no_undefined_flag=$lt_no_undefined_flag_RC
24478
24479# Commands used to finish a libtool library installation in a directory.
24480finish_cmds=$lt_finish_cmds
24481
24482# Same as above, but a single script fragment to be evaled but not shown.
24483finish_eval=$lt_finish_eval
24484
24485# Take the output of nm and produce a listing of raw symbols and C names.
24486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24487
24488# Transform the output of nm in a proper C declaration
24489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24490
24491# Transform the output of nm in a C name address pair
24492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24493
24494# This is the shared library runtime path variable.
24495runpath_var=$runpath_var
24496
24497# This is the shared library path variable.
24498shlibpath_var=$shlibpath_var
24499
24500# Is shlibpath searched before the hard-coded library search path?
24501shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24502
24503# How to hardcode a shared library path into an executable.
24504hardcode_action=$hardcode_action_RC
24505
24506# Whether we should hardcode library paths into libraries.
24507hardcode_into_libs=$hardcode_into_libs
24508
24509# Flag to hardcode \$libdir into a binary during linking.
24510# This must work even if \$libdir does not exist.
24511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24512
24513# If ld is used when linking, flag to hardcode \$libdir into
24514# a binary during linking. This must work even if \$libdir does
24515# not exist.
24516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24517
24518# Whether we need a single -rpath flag with a separated argument.
24519hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24520
24521# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24522# resulting binary.
24523hardcode_direct=$hardcode_direct_RC
24524
24525# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24526# resulting binary.
24527hardcode_minus_L=$hardcode_minus_L_RC
24528
24529# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24530# the resulting binary.
24531hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24532
24533# Set to yes if building a shared library automatically hardcodes DIR into the library
24534# and all subsequent libraries and executables linked against it.
24535hardcode_automatic=$hardcode_automatic_RC
24536
24537# Variables whose values should be saved in libtool wrapper scripts and
24538# restored at relink time.
24539variables_saved_for_relink="$variables_saved_for_relink"
24540
24541# Whether libtool must link a program against all its dependency libraries.
24542link_all_deplibs=$link_all_deplibs_RC
24543
24544# Compile-time system search path for libraries
24545sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24546
24547# Run-time system search path for libraries
24548sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24549
24550# Fix the shell variable \$srcfile for the compiler.
24551fix_srcfile_path="$fix_srcfile_path_RC"
24552
24553# Set to yes if exported symbols are required.
24554always_export_symbols=$always_export_symbols_RC
24555
24556# The commands to list exported symbols.
24557export_symbols_cmds=$lt_export_symbols_cmds_RC
24558
24559# The commands to extract the exported symbol list from a shared archive.
24560extract_expsyms_cmds=$lt_extract_expsyms_cmds
24561
24562# Symbols that should not be listed in the preloaded symbols.
24563exclude_expsyms=$lt_exclude_expsyms_RC
24564
24565# Symbols that must always be exported.
24566include_expsyms=$lt_include_expsyms_RC
24567
24568# ### END LIBTOOL TAG CONFIG: $tagname
24569
24570__EOF__
24571
24572
24573else
24574 # If there is no Makefile yet, we rely on a make rule to execute
24575 # `config.status --recheck' to rerun these tests and create the
24576 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024577 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24578 if test -f "$ltmain_in"; then
24579 test -f Makefile && make "$ltmain"
24580 fi
John Criswell47fdd832003-07-14 16:52:07 +000024581fi
24582
24583
24584ac_ext=c
24585ac_cpp='$CPP $CPPFLAGS'
24586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24588ac_compiler_gnu=$ac_cv_c_compiler_gnu
24589
24590CC="$lt_save_CC"
24591
24592 ;;
24593
24594 *)
24595 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24596echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24597 { (exit 1); exit 1; }; }
24598 ;;
24599 esac
24600
24601 # Append the new tag name to the list of available tags.
24602 if test -n "$tagname" ; then
24603 available_tags="$available_tags $tagname"
24604 fi
24605 fi
24606 done
24607 IFS="$lt_save_ifs"
24608
24609 # Now substitute the updated list of available tags.
24610 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24611 mv "${ofile}T" "$ofile"
24612 chmod +x "$ofile"
24613 else
24614 rm -f "${ofile}T"
24615 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24616echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24617 { (exit 1); exit 1; }; }
24618 fi
24619fi
John Criswell7a73b802003-06-30 21:59:07 +000024620
24621
24622
24623# This can be used to rebuild libtool when needed
24624LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24625
24626# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024627LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024628
24629# Prevent multiple expansion
24630
24631
24632
John Criswell47fdd832003-07-14 16:52:07 +000024633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024650
Reid Spencer582a23c2004-12-29 07:07:57 +000024651if test "$lt_cv_dlopen_self" = "yes" ; then
24652
24653cat >>confdefs.h <<\_ACEOF
24654#define CAN_DLOPEN_SELF 1
24655_ACEOF
24656
24657fi
24658
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024659etags_version=`$ETAGS --version 2>&1`
24660case "$etags_version" in
24661 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24662 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24663 *) ETAGSFLAGS="" ;;
24664esac
24665ETAGSFLAGS=$ETAGSFLAGS
24666
24667
Reid Spencer7931a782004-12-27 06:15:02 +000024668if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024669 LLVMGCC="llvm-gcc${EXEEXT}"
24670 LLVMGXX="llvm-g++${EXEEXT}"
24671 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24672set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024673echo "$as_me:$LINENO: checking for $ac_word" >&5
24674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24675if test "${ac_cv_path_LLVMGCC+set}" = set; then
24676 echo $ECHO_N "(cached) $ECHO_C" >&6
24677else
24678 case $LLVMGCC in
24679 [\\/]* | ?:[\\/]*)
24680 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24681 ;;
24682 *)
24683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684for as_dir in $PATH
24685do
24686 IFS=$as_save_IFS
24687 test -z "$as_dir" && as_dir=.
24688 for ac_exec_ext in '' $ac_executable_extensions; do
24689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24690 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24692 break 2
24693 fi
24694done
24695done
24696
Reid Spencer59473af2004-12-25 07:31:29 +000024697 ;;
24698esac
24699fi
24700LLVMGCC=$ac_cv_path_LLVMGCC
24701
24702if test -n "$LLVMGCC"; then
24703 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24704echo "${ECHO_T}$LLVMGCC" >&6
24705else
24706 echo "$as_me:$LINENO: result: no" >&5
24707echo "${ECHO_T}no" >&6
24708fi
24709
Reid Spencerc84492c2005-06-02 22:34:49 +000024710 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24711set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024712echo "$as_me:$LINENO: checking for $ac_word" >&5
24713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24714if test "${ac_cv_path_LLVMGXX+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24716else
24717 case $LLVMGXX in
24718 [\\/]* | ?:[\\/]*)
24719 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24720 ;;
24721 *)
24722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24723for as_dir in $PATH
24724do
24725 IFS=$as_save_IFS
24726 test -z "$as_dir" && as_dir=.
24727 for ac_exec_ext in '' $ac_executable_extensions; do
24728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24729 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24731 break 2
24732 fi
24733done
24734done
24735
Reid Spencer59473af2004-12-25 07:31:29 +000024736 ;;
24737esac
24738fi
24739LLVMGXX=$ac_cv_path_LLVMGXX
24740
24741if test -n "$LLVMGXX"; then
24742 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24743echo "${ECHO_T}$LLVMGXX" >&6
24744else
24745 echo "$as_me:$LINENO: result: no" >&5
24746echo "${ECHO_T}no" >&6
24747fi
24748
24749else
Reid Spencerc84492c2005-06-02 22:34:49 +000024750 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24751 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024752 LLVMGCC=$LLVMGCC
24753
24754 LLVMGXX=$LLVMGXX
24755
24756fi
24757
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024758echo "$as_me:$LINENO: checking tool compatibility" >&5
24759echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24760
Reid Spencer86901802004-12-08 23:07:27 +000024761ICC=no
24762IXX=no
24763case $CC in
24764 icc*|icpc*)
24765 ICC=yes
24766 IXX=yes
24767 ;;
24768 *)
24769 ;;
24770esac
24771
24772if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024773then
Reid Spencer86901802004-12-08 23:07:27 +000024774 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24775echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024776 { (exit 1); exit 1; }; }
24777fi
24778
Reid Spencer86901802004-12-08 23:07:27 +000024779if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024780then
Reid Spencer86901802004-12-08 23:07:27 +000024781 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24782echo "$as_me: error: g++|icc required but not found" >&2;}
24783 { (exit 1); exit 1; }; }
24784fi
24785
24786if test "$GCC" = "yes"
24787then
24788 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24789 if test "$gccmajor" -lt "3"
24790 then
24791 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024792echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24793 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024794 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024795fi
24796
24797if test -z "$llvm_cv_gnu_make_command"
24798then
24799 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24800echo "$as_me: error: GNU Make required but not found" >&2;}
24801 { (exit 1); exit 1; }; }
24802fi
24803
24804echo "$as_me:$LINENO: result: ok" >&5
24805echo "${ECHO_T}ok" >&6
24806
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024807
John Criswell7a73b802003-06-30 21:59:07 +000024808
John Criswell7a73b802003-06-30 21:59:07 +000024809echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24810echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24811if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24813else
24814 ac_check_lib_save_LIBS=$LIBS
24815LIBS="-lelf $LIBS"
24816cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024817/* confdefs.h. */
24818_ACEOF
24819cat confdefs.h >>conftest.$ac_ext
24820cat >>conftest.$ac_ext <<_ACEOF
24821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024822
24823/* Override any gcc2 internal prototype to avoid an error. */
24824#ifdef __cplusplus
24825extern "C"
24826#endif
24827/* We use char because int might match the return type of a gcc2
24828 builtin and then its argument prototype would still apply. */
24829char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024830int
24831main ()
24832{
24833elf_begin ();
24834 ;
24835 return 0;
24836}
24837_ACEOF
24838rm -f conftest.$ac_objext conftest$ac_exeext
24839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024840 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024841 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_cv_lib_elf_elf_begin=yes
24861else
24862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024863sed 's/^/| /' conftest.$ac_ext >&5
24864
John Criswell7a73b802003-06-30 21:59:07 +000024865ac_cv_lib_elf_elf_begin=no
24866fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024867rm -f conftest.err conftest.$ac_objext \
24868 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024869LIBS=$ac_check_lib_save_LIBS
24870fi
24871echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24872echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24873if test $ac_cv_lib_elf_elf_begin = yes; then
24874 cat >>confdefs.h <<_ACEOF
24875#define HAVE_LIBELF 1
24876_ACEOF
24877
24878 LIBS="-lelf $LIBS"
24879
24880fi
24881
24882
Reid Spencer22177fe2005-07-12 15:24:20 +000024883
Reid Spencer17795972004-11-18 09:47:37 +000024884echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24885echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24886if test "${ac_cv_search_lt_dlopen+set}" = set; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24888else
24889 ac_func_search_save_LIBS=$LIBS
24890ac_cv_search_lt_dlopen=no
24891cat >conftest.$ac_ext <<_ACEOF
24892/* confdefs.h. */
24893_ACEOF
24894cat confdefs.h >>conftest.$ac_ext
24895cat >>conftest.$ac_ext <<_ACEOF
24896/* end confdefs.h. */
24897
24898/* Override any gcc2 internal prototype to avoid an error. */
24899#ifdef __cplusplus
24900extern "C"
24901#endif
24902/* We use char because int might match the return type of a gcc2
24903 builtin and then its argument prototype would still apply. */
24904char lt_dlopen ();
24905int
24906main ()
24907{
24908lt_dlopen ();
24909 ;
24910 return 0;
24911}
24912_ACEOF
24913rm -f conftest.$ac_objext conftest$ac_exeext
24914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24915 (eval $ac_link) 2>conftest.er1
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } &&
24922 { ac_try='test -z "$ac_c_werror_flag"
24923 || test ! -s conftest.err'
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; } &&
24929 { ac_try='test -s conftest$ac_exeext'
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; }; then
24935 ac_cv_search_lt_dlopen="none required"
24936else
24937 echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940fi
24941rm -f conftest.err conftest.$ac_objext \
24942 conftest$ac_exeext conftest.$ac_ext
24943if test "$ac_cv_search_lt_dlopen" = no; then
24944 for ac_lib in ltdl; do
24945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24946 cat >conftest.$ac_ext <<_ACEOF
24947/* confdefs.h. */
24948_ACEOF
24949cat confdefs.h >>conftest.$ac_ext
24950cat >>conftest.$ac_ext <<_ACEOF
24951/* end confdefs.h. */
24952
24953/* Override any gcc2 internal prototype to avoid an error. */
24954#ifdef __cplusplus
24955extern "C"
24956#endif
24957/* We use char because int might match the return type of a gcc2
24958 builtin and then its argument prototype would still apply. */
24959char lt_dlopen ();
24960int
24961main ()
24962{
24963lt_dlopen ();
24964 ;
24965 return 0;
24966}
24967_ACEOF
24968rm -f conftest.$ac_objext conftest$ac_exeext
24969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24970 (eval $ac_link) 2>conftest.er1
24971 ac_status=$?
24972 grep -v '^ *+' conftest.er1 >conftest.err
24973 rm -f conftest.er1
24974 cat conftest.err >&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } &&
24977 { ac_try='test -z "$ac_c_werror_flag"
24978 || test ! -s conftest.err'
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; } &&
24984 { ac_try='test -s conftest$ac_exeext'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; }; then
24990 ac_cv_search_lt_dlopen="-l$ac_lib"
24991break
24992else
24993 echo "$as_me: failed program was:" >&5
24994sed 's/^/| /' conftest.$ac_ext >&5
24995
24996fi
24997rm -f conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
24999 done
25000fi
25001LIBS=$ac_func_search_save_LIBS
25002fi
25003echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25004echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25005if test "$ac_cv_search_lt_dlopen" != no; then
25006 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25007
25008cat >>confdefs.h <<\_ACEOF
25009#define HAVE_LT_DLOPEN 1
25010_ACEOF
25011
25012else
25013 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25014 not be available" >&5
25015echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25016 not be available" >&2;}
25017fi
25018
25019
John Criswell7a73b802003-06-30 21:59:07 +000025020echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25021echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25022if test "${ac_cv_search_dlopen+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25024else
25025 ac_func_search_save_LIBS=$LIBS
25026ac_cv_search_dlopen=no
25027cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025028/* confdefs.h. */
25029_ACEOF
25030cat confdefs.h >>conftest.$ac_ext
25031cat >>conftest.$ac_ext <<_ACEOF
25032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025033
25034/* Override any gcc2 internal prototype to avoid an error. */
25035#ifdef __cplusplus
25036extern "C"
25037#endif
25038/* We use char because int might match the return type of a gcc2
25039 builtin and then its argument prototype would still apply. */
25040char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025041int
25042main ()
25043{
25044dlopen ();
25045 ;
25046 return 0;
25047}
25048_ACEOF
25049rm -f conftest.$ac_objext conftest$ac_exeext
25050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025051 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025053 grep -v '^ *+' conftest.er1 >conftest.err
25054 rm -f conftest.er1
25055 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058 { ac_try='test -z "$ac_c_werror_flag"
25059 || test ! -s conftest.err'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; } &&
25065 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; }; then
25071 ac_cv_search_dlopen="none required"
25072else
25073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025074sed 's/^/| /' conftest.$ac_ext >&5
25075
John Criswell7a73b802003-06-30 21:59:07 +000025076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025077rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025079if test "$ac_cv_search_dlopen" = no; then
25080 for ac_lib in dl; do
25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25082 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025083/* confdefs.h. */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025088
25089/* Override any gcc2 internal prototype to avoid an error. */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093/* We use char because int might match the return type of a gcc2
25094 builtin and then its argument prototype would still apply. */
25095char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025096int
25097main ()
25098{
25099dlopen ();
25100 ;
25101 return 0;
25102}
25103_ACEOF
25104rm -f conftest.$ac_objext conftest$ac_exeext
25105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025106 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025113 { ac_try='test -z "$ac_c_werror_flag"
25114 || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_cv_search_dlopen="-l$ac_lib"
25127break
25128else
25129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025130sed 's/^/| /' conftest.$ac_ext >&5
25131
John Criswell7a73b802003-06-30 21:59:07 +000025132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025133rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025135 done
25136fi
25137LIBS=$ac_func_search_save_LIBS
25138fi
25139echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25140echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25141if test "$ac_cv_search_dlopen" != no; then
25142 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025143
25144cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025145#define HAVE_DLOPEN 1
25146_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025147
25148else
Brian Gaekec45be042003-10-07 06:01:34 +000025149 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25150echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025151fi
25152
25153
25154echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25155echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25156if test "${ac_cv_search_mallinfo+set}" = set; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25158else
25159 ac_func_search_save_LIBS=$LIBS
25160ac_cv_search_mallinfo=no
25161cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025162/* confdefs.h. */
25163_ACEOF
25164cat confdefs.h >>conftest.$ac_ext
25165cat >>conftest.$ac_ext <<_ACEOF
25166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025167
25168/* Override any gcc2 internal prototype to avoid an error. */
25169#ifdef __cplusplus
25170extern "C"
25171#endif
25172/* We use char because int might match the return type of a gcc2
25173 builtin and then its argument prototype would still apply. */
25174char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025175int
25176main ()
25177{
25178mallinfo ();
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183rm -f conftest.$ac_objext conftest$ac_exeext
25184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025185 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025186 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025187 grep -v '^ *+' conftest.er1 >conftest.err
25188 rm -f conftest.er1
25189 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_search_mallinfo="none required"
25206else
25207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025208sed 's/^/| /' conftest.$ac_ext >&5
25209
John Criswell7a73b802003-06-30 21:59:07 +000025210fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025211rm -f conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025213if test "$ac_cv_search_mallinfo" = no; then
25214 for ac_lib in malloc; do
25215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25216 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025217/* confdefs.h. */
25218_ACEOF
25219cat confdefs.h >>conftest.$ac_ext
25220cat >>conftest.$ac_ext <<_ACEOF
25221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025222
25223/* Override any gcc2 internal prototype to avoid an error. */
25224#ifdef __cplusplus
25225extern "C"
25226#endif
25227/* We use char because int might match the return type of a gcc2
25228 builtin and then its argument prototype would still apply. */
25229char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025230int
25231main ()
25232{
25233mallinfo ();
25234 ;
25235 return 0;
25236}
25237_ACEOF
25238rm -f conftest.$ac_objext conftest$ac_exeext
25239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025240 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025241 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025247 { ac_try='test -z "$ac_c_werror_flag"
25248 || test ! -s conftest.err'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_cv_search_mallinfo="-l$ac_lib"
25261break
25262else
25263 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025264sed 's/^/| /' conftest.$ac_ext >&5
25265
John Criswell7a73b802003-06-30 21:59:07 +000025266fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025267rm -f conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025269 done
25270fi
25271LIBS=$ac_func_search_save_LIBS
25272fi
25273echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25274echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25275if test "$ac_cv_search_mallinfo" != no; then
25276 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025277
25278cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025279#define HAVE_MALLINFO 1
25280_ACEOF
25281
25282fi
25283
25284
Reid Spencer22177fe2005-07-12 15:24:20 +000025285
25286echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25287echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25288if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25290else
25291 ac_check_lib_save_LIBS=$LIBS
25292LIBS="-lpthread $LIBS"
25293cat >conftest.$ac_ext <<_ACEOF
25294/* confdefs.h. */
25295_ACEOF
25296cat confdefs.h >>conftest.$ac_ext
25297cat >>conftest.$ac_ext <<_ACEOF
25298/* end confdefs.h. */
25299
25300/* Override any gcc2 internal prototype to avoid an error. */
25301#ifdef __cplusplus
25302extern "C"
25303#endif
25304/* We use char because int might match the return type of a gcc2
25305 builtin and then its argument prototype would still apply. */
25306char pthread_mutex_init ();
25307int
25308main ()
25309{
25310pthread_mutex_init ();
25311 ;
25312 return 0;
25313}
25314_ACEOF
25315rm -f conftest.$ac_objext conftest$ac_exeext
25316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25317 (eval $ac_link) 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } &&
25324 { ac_try='test -z "$ac_c_werror_flag"
25325 || test ! -s conftest.err'
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; } &&
25331 { ac_try='test -s conftest$ac_exeext'
25332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); }; }; then
25337 ac_cv_lib_pthread_pthread_mutex_init=yes
25338else
25339 echo "$as_me: failed program was:" >&5
25340sed 's/^/| /' conftest.$ac_ext >&5
25341
25342ac_cv_lib_pthread_pthread_mutex_init=no
25343fi
25344rm -f conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
25346LIBS=$ac_check_lib_save_LIBS
25347fi
25348echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25349echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25350if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25351 cat >>confdefs.h <<_ACEOF
25352#define HAVE_LIBPTHREAD 1
25353_ACEOF
25354
25355 LIBS="-lpthread $LIBS"
25356
25357fi
25358
Brian Gaeke5f268f72003-12-05 19:29:01 +000025359echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25360echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25361if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25362 echo $ECHO_N "(cached) $ECHO_C" >&6
25363else
25364 ac_func_search_save_LIBS=$LIBS
25365ac_cv_search_pthread_mutex_lock=no
25366cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025367/* confdefs.h. */
25368_ACEOF
25369cat confdefs.h >>conftest.$ac_ext
25370cat >>conftest.$ac_ext <<_ACEOF
25371/* end confdefs.h. */
25372
25373/* Override any gcc2 internal prototype to avoid an error. */
25374#ifdef __cplusplus
25375extern "C"
25376#endif
25377/* We use char because int might match the return type of a gcc2
25378 builtin and then its argument prototype would still apply. */
25379char pthread_mutex_lock ();
25380int
25381main ()
25382{
25383pthread_mutex_lock ();
25384 ;
25385 return 0;
25386}
25387_ACEOF
25388rm -f conftest.$ac_objext conftest$ac_exeext
25389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025390 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025392 grep -v '^ *+' conftest.er1 >conftest.err
25393 rm -f conftest.er1
25394 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025397 { ac_try='test -z "$ac_c_werror_flag"
25398 || test ! -s conftest.err'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_cv_search_pthread_mutex_lock="none required"
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025416rm -f conftest.err conftest.$ac_objext \
25417 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025418if test "$ac_cv_search_pthread_mutex_lock" = no; then
25419 for ac_lib in pthread; do
25420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25421 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025422/* confdefs.h. */
25423_ACEOF
25424cat confdefs.h >>conftest.$ac_ext
25425cat >>conftest.$ac_ext <<_ACEOF
25426/* end confdefs.h. */
25427
25428/* Override any gcc2 internal prototype to avoid an error. */
25429#ifdef __cplusplus
25430extern "C"
25431#endif
25432/* We use char because int might match the return type of a gcc2
25433 builtin and then its argument prototype would still apply. */
25434char pthread_mutex_lock ();
25435int
25436main ()
25437{
25438pthread_mutex_lock ();
25439 ;
25440 return 0;
25441}
25442_ACEOF
25443rm -f conftest.$ac_objext conftest$ac_exeext
25444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025445 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025447 grep -v '^ *+' conftest.er1 >conftest.err
25448 rm -f conftest.er1
25449 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025452 { ac_try='test -z "$ac_c_werror_flag"
25453 || test ! -s conftest.err'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25456 ac_status=$?
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } &&
25459 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25462 ac_status=$?
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25466break
25467else
25468 echo "$as_me: failed program was:" >&5
25469sed 's/^/| /' conftest.$ac_ext >&5
25470
25471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025472rm -f conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025474 done
25475fi
25476LIBS=$ac_func_search_save_LIBS
25477fi
25478echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25479echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25480if test "$ac_cv_search_pthread_mutex_lock" != no; then
25481 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025482
John Criswell40468462004-09-24 21:19:06 +000025483cat >>confdefs.h <<\_ACEOF
25484#define HAVE_PTHREAD_MUTEX_LOCK 1
25485_ACEOF
25486
25487fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025488
Brian Gaekec9a410c2004-02-23 21:30:37 +000025489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025490
Reid Spencer59473af2004-12-25 07:31:29 +000025491
25492
25493
25494
25495
25496ac_header_dirent=no
25497for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25498 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25499echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25500echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25501if eval "test \"\${$as_ac_Header+set}\" = set"; then
25502 echo $ECHO_N "(cached) $ECHO_C" >&6
25503else
25504 cat >conftest.$ac_ext <<_ACEOF
25505/* confdefs.h. */
25506_ACEOF
25507cat confdefs.h >>conftest.$ac_ext
25508cat >>conftest.$ac_ext <<_ACEOF
25509/* end confdefs.h. */
25510#include <sys/types.h>
25511#include <$ac_hdr>
25512
25513int
25514main ()
25515{
25516if ((DIR *) 0)
25517return 0;
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext
25523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524 (eval $ac_compile) 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest.$ac_objext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 eval "$as_ac_Header=yes"
25545else
25546 echo "$as_me: failed program was:" >&5
25547sed 's/^/| /' conftest.$ac_ext >&5
25548
25549eval "$as_ac_Header=no"
25550fi
25551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25552fi
25553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25555if test `eval echo '${'$as_ac_Header'}'` = yes; then
25556 cat >>confdefs.h <<_ACEOF
25557#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25558_ACEOF
25559
25560ac_header_dirent=$ac_hdr; break
25561fi
25562
25563done
25564# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25565if test $ac_header_dirent = dirent.h; then
25566 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25567echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25568if test "${ac_cv_search_opendir+set}" = set; then
25569 echo $ECHO_N "(cached) $ECHO_C" >&6
25570else
25571 ac_func_search_save_LIBS=$LIBS
25572ac_cv_search_opendir=no
25573cat >conftest.$ac_ext <<_ACEOF
25574/* confdefs.h. */
25575_ACEOF
25576cat confdefs.h >>conftest.$ac_ext
25577cat >>conftest.$ac_ext <<_ACEOF
25578/* end confdefs.h. */
25579
25580/* Override any gcc2 internal prototype to avoid an error. */
25581#ifdef __cplusplus
25582extern "C"
25583#endif
25584/* We use char because int might match the return type of a gcc2
25585 builtin and then its argument prototype would still apply. */
25586char opendir ();
25587int
25588main ()
25589{
25590opendir ();
25591 ;
25592 return 0;
25593}
25594_ACEOF
25595rm -f conftest.$ac_objext conftest$ac_exeext
25596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25597 (eval $ac_link) 2>conftest.er1
25598 ac_status=$?
25599 grep -v '^ *+' conftest.er1 >conftest.err
25600 rm -f conftest.er1
25601 cat conftest.err >&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } &&
25604 { ac_try='test -z "$ac_c_werror_flag"
25605 || test ! -s conftest.err'
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; } &&
25611 { ac_try='test -s conftest$ac_exeext'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 ac_cv_search_opendir="none required"
25618else
25619 echo "$as_me: failed program was:" >&5
25620sed 's/^/| /' conftest.$ac_ext >&5
25621
25622fi
25623rm -f conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
25625if test "$ac_cv_search_opendir" = no; then
25626 for ac_lib in dir; do
25627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25628 cat >conftest.$ac_ext <<_ACEOF
25629/* confdefs.h. */
25630_ACEOF
25631cat confdefs.h >>conftest.$ac_ext
25632cat >>conftest.$ac_ext <<_ACEOF
25633/* end confdefs.h. */
25634
25635/* Override any gcc2 internal prototype to avoid an error. */
25636#ifdef __cplusplus
25637extern "C"
25638#endif
25639/* We use char because int might match the return type of a gcc2
25640 builtin and then its argument prototype would still apply. */
25641char opendir ();
25642int
25643main ()
25644{
25645opendir ();
25646 ;
25647 return 0;
25648}
25649_ACEOF
25650rm -f conftest.$ac_objext conftest$ac_exeext
25651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652 (eval $ac_link) 2>conftest.er1
25653 ac_status=$?
25654 grep -v '^ *+' conftest.er1 >conftest.err
25655 rm -f conftest.er1
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } &&
25659 { ac_try='test -z "$ac_c_werror_flag"
25660 || test ! -s conftest.err'
25661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25662 (eval $ac_try) 2>&5
25663 ac_status=$?
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); }; } &&
25666 { ac_try='test -s conftest$ac_exeext'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25672 ac_cv_search_opendir="-l$ac_lib"
25673break
25674else
25675 echo "$as_me: failed program was:" >&5
25676sed 's/^/| /' conftest.$ac_ext >&5
25677
25678fi
25679rm -f conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25681 done
25682fi
25683LIBS=$ac_func_search_save_LIBS
25684fi
25685echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25686echo "${ECHO_T}$ac_cv_search_opendir" >&6
25687if test "$ac_cv_search_opendir" != no; then
25688 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25689
25690fi
25691
25692else
25693 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25694echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25695if test "${ac_cv_search_opendir+set}" = set; then
25696 echo $ECHO_N "(cached) $ECHO_C" >&6
25697else
25698 ac_func_search_save_LIBS=$LIBS
25699ac_cv_search_opendir=no
25700cat >conftest.$ac_ext <<_ACEOF
25701/* confdefs.h. */
25702_ACEOF
25703cat confdefs.h >>conftest.$ac_ext
25704cat >>conftest.$ac_ext <<_ACEOF
25705/* end confdefs.h. */
25706
25707/* Override any gcc2 internal prototype to avoid an error. */
25708#ifdef __cplusplus
25709extern "C"
25710#endif
25711/* We use char because int might match the return type of a gcc2
25712 builtin and then its argument prototype would still apply. */
25713char opendir ();
25714int
25715main ()
25716{
25717opendir ();
25718 ;
25719 return 0;
25720}
25721_ACEOF
25722rm -f conftest.$ac_objext conftest$ac_exeext
25723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25724 (eval $ac_link) 2>conftest.er1
25725 ac_status=$?
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest$ac_exeext'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_cv_search_opendir="none required"
25745else
25746 echo "$as_me: failed program was:" >&5
25747sed 's/^/| /' conftest.$ac_ext >&5
25748
25749fi
25750rm -f conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
25752if test "$ac_cv_search_opendir" = no; then
25753 for ac_lib in x; do
25754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25755 cat >conftest.$ac_ext <<_ACEOF
25756/* confdefs.h. */
25757_ACEOF
25758cat confdefs.h >>conftest.$ac_ext
25759cat >>conftest.$ac_ext <<_ACEOF
25760/* end confdefs.h. */
25761
25762/* Override any gcc2 internal prototype to avoid an error. */
25763#ifdef __cplusplus
25764extern "C"
25765#endif
25766/* We use char because int might match the return type of a gcc2
25767 builtin and then its argument prototype would still apply. */
25768char opendir ();
25769int
25770main ()
25771{
25772opendir ();
25773 ;
25774 return 0;
25775}
25776_ACEOF
25777rm -f conftest.$ac_objext conftest$ac_exeext
25778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779 (eval $ac_link) 2>conftest.er1
25780 ac_status=$?
25781 grep -v '^ *+' conftest.er1 >conftest.err
25782 rm -f conftest.er1
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } &&
25786 { ac_try='test -z "$ac_c_werror_flag"
25787 || test ! -s conftest.err'
25788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789 (eval $ac_try) 2>&5
25790 ac_status=$?
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); }; } &&
25793 { ac_try='test -s conftest$ac_exeext'
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; }; then
25799 ac_cv_search_opendir="-l$ac_lib"
25800break
25801else
25802 echo "$as_me: failed program was:" >&5
25803sed 's/^/| /' conftest.$ac_ext >&5
25804
25805fi
25806rm -f conftest.err conftest.$ac_objext \
25807 conftest$ac_exeext conftest.$ac_ext
25808 done
25809fi
25810LIBS=$ac_func_search_save_LIBS
25811fi
25812echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813echo "${ECHO_T}$ac_cv_search_opendir" >&6
25814if test "$ac_cv_search_opendir" != no; then
25815 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25816
25817fi
25818
25819fi
25820
25821echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25822echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25823if test "${ac_cv_header_mmap_anon+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25825else
25826 ac_ext=c
25827ac_cpp='$CPP $CPPFLAGS'
25828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25830ac_compiler_gnu=$ac_cv_c_compiler_gnu
25831
25832 cat >conftest.$ac_ext <<_ACEOF
25833/* confdefs.h. */
25834_ACEOF
25835cat confdefs.h >>conftest.$ac_ext
25836cat >>conftest.$ac_ext <<_ACEOF
25837/* end confdefs.h. */
25838#include <sys/mman.h>
25839#include <unistd.h>
25840#include <fcntl.h>
25841int
25842main ()
25843{
25844mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25845 ;
25846 return 0;
25847}
25848_ACEOF
25849rm -f conftest.$ac_objext
25850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25851 (eval $ac_compile) 2>conftest.er1
25852 ac_status=$?
25853 grep -v '^ *+' conftest.er1 >conftest.err
25854 rm -f conftest.er1
25855 cat conftest.err >&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); } &&
25858 { ac_try='test -z "$ac_c_werror_flag"
25859 || test ! -s conftest.err'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; } &&
25865 { ac_try='test -s conftest.$ac_objext'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; }; then
25871 ac_cv_header_mmap_anon=yes
25872else
25873 echo "$as_me: failed program was:" >&5
25874sed 's/^/| /' conftest.$ac_ext >&5
25875
25876ac_cv_header_mmap_anon=no
25877fi
25878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25879 ac_ext=c
25880ac_cpp='$CPP $CPPFLAGS'
25881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25883ac_compiler_gnu=$ac_cv_c_compiler_gnu
25884
25885
25886fi
25887echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25888echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25889if test "$ac_cv_header_mmap_anon" = yes; then
25890
25891cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025892#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025893_ACEOF
25894
25895fi
25896
25897echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25898echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25899if test "${ac_cv_header_stat_broken+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25901else
25902 cat >conftest.$ac_ext <<_ACEOF
25903/* confdefs.h. */
25904_ACEOF
25905cat confdefs.h >>conftest.$ac_ext
25906cat >>conftest.$ac_ext <<_ACEOF
25907/* end confdefs.h. */
25908#include <sys/types.h>
25909#include <sys/stat.h>
25910
25911#if defined(S_ISBLK) && defined(S_IFDIR)
25912# if S_ISBLK (S_IFDIR)
25913You lose.
25914# endif
25915#endif
25916
25917#if defined(S_ISBLK) && defined(S_IFCHR)
25918# if S_ISBLK (S_IFCHR)
25919You lose.
25920# endif
25921#endif
25922
25923#if defined(S_ISLNK) && defined(S_IFREG)
25924# if S_ISLNK (S_IFREG)
25925You lose.
25926# endif
25927#endif
25928
25929#if defined(S_ISSOCK) && defined(S_IFREG)
25930# if S_ISSOCK (S_IFREG)
25931You lose.
25932# endif
25933#endif
25934
25935_ACEOF
25936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25937 $EGREP "You lose" >/dev/null 2>&1; then
25938 ac_cv_header_stat_broken=yes
25939else
25940 ac_cv_header_stat_broken=no
25941fi
25942rm -f conftest*
25943
25944fi
25945echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25946echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25947if test $ac_cv_header_stat_broken = yes; then
25948
25949cat >>confdefs.h <<\_ACEOF
25950#define STAT_MACROS_BROKEN 1
25951_ACEOF
25952
25953fi
25954
John Criswell7a73b802003-06-30 21:59:07 +000025955echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25956echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25957if test "${ac_cv_header_stdc+set}" = set; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25959else
25960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025961/* confdefs.h. */
25962_ACEOF
25963cat confdefs.h >>conftest.$ac_ext
25964cat >>conftest.$ac_ext <<_ACEOF
25965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025966#include <stdlib.h>
25967#include <stdarg.h>
25968#include <string.h>
25969#include <float.h>
25970
John Criswell0c38eaf2003-09-10 15:17:25 +000025971int
25972main ()
25973{
25974
25975 ;
25976 return 0;
25977}
John Criswell7a73b802003-06-30 21:59:07 +000025978_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025979rm -f conftest.$ac_objext
25980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025981 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025982 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025983 grep -v '^ *+' conftest.er1 >conftest.err
25984 rm -f conftest.er1
25985 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025987 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025988 { ac_try='test -z "$ac_c_werror_flag"
25989 || test ! -s conftest.err'
25990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991 (eval $ac_try) 2>&5
25992 ac_status=$?
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; } &&
25995 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026001 ac_cv_header_stdc=yes
26002else
26003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026004sed 's/^/| /' conftest.$ac_ext >&5
26005
26006ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026007fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026009
26010if test $ac_cv_header_stdc = yes; then
26011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026013/* confdefs.h. */
26014_ACEOF
26015cat confdefs.h >>conftest.$ac_ext
26016cat >>conftest.$ac_ext <<_ACEOF
26017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026018#include <string.h>
26019
26020_ACEOF
26021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026022 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026023 :
26024else
26025 ac_cv_header_stdc=no
26026fi
26027rm -f conftest*
26028
26029fi
26030
26031if test $ac_cv_header_stdc = yes; then
26032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026034/* confdefs.h. */
26035_ACEOF
26036cat confdefs.h >>conftest.$ac_ext
26037cat >>conftest.$ac_ext <<_ACEOF
26038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026039#include <stdlib.h>
26040
26041_ACEOF
26042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026043 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026044 :
26045else
26046 ac_cv_header_stdc=no
26047fi
26048rm -f conftest*
26049
26050fi
26051
26052if test $ac_cv_header_stdc = yes; then
26053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26054 if test "$cross_compiling" = yes; then
26055 :
26056else
26057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026058/* confdefs.h. */
26059_ACEOF
26060cat confdefs.h >>conftest.$ac_ext
26061cat >>conftest.$ac_ext <<_ACEOF
26062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026063#include <ctype.h>
26064#if ((' ' & 0x0FF) == 0x020)
26065# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26066# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26067#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026068# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026069 (('a' <= (c) && (c) <= 'i') \
26070 || ('j' <= (c) && (c) <= 'r') \
26071 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026072# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26073#endif
26074
26075#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26076int
26077main ()
26078{
26079 int i;
26080 for (i = 0; i < 256; i++)
26081 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026082 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026083 exit(2);
26084 exit (0);
26085}
26086_ACEOF
26087rm -f conftest$ac_exeext
26088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089 (eval $ac_link) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; }; then
26098 :
26099else
26100 echo "$as_me: program exited with status $ac_status" >&5
26101echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026102sed 's/^/| /' conftest.$ac_ext >&5
26103
John Criswell7a73b802003-06-30 21:59:07 +000026104( exit $ac_status )
26105ac_cv_header_stdc=no
26106fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026107rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026108fi
26109fi
26110fi
26111echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26112echo "${ECHO_T}$ac_cv_header_stdc" >&6
26113if test $ac_cv_header_stdc = yes; then
26114
26115cat >>confdefs.h <<\_ACEOF
26116#define STDC_HEADERS 1
26117_ACEOF
26118
26119fi
26120
26121echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26122echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26123if test "${ac_cv_header_sys_wait_h+set}" = set; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26125else
26126 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026127/* confdefs.h. */
26128_ACEOF
26129cat confdefs.h >>conftest.$ac_ext
26130cat >>conftest.$ac_ext <<_ACEOF
26131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026132#include <sys/types.h>
26133#include <sys/wait.h>
26134#ifndef WEXITSTATUS
26135# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26136#endif
26137#ifndef WIFEXITED
26138# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26139#endif
26140
John Criswell7a73b802003-06-30 21:59:07 +000026141int
26142main ()
26143{
26144 int s;
26145 wait (&s);
26146 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26147 ;
26148 return 0;
26149}
26150_ACEOF
26151rm -f conftest.$ac_objext
26152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026153 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026154 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026155 grep -v '^ *+' conftest.er1 >conftest.err
26156 rm -f conftest.er1
26157 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026160 { ac_try='test -z "$ac_c_werror_flag"
26161 || test ! -s conftest.err'
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26164 ac_status=$?
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; } &&
26167 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; }; then
26173 ac_cv_header_sys_wait_h=yes
26174else
26175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026176sed 's/^/| /' conftest.$ac_ext >&5
26177
John Criswell7a73b802003-06-30 21:59:07 +000026178ac_cv_header_sys_wait_h=no
26179fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026181fi
26182echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26183echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26184if test $ac_cv_header_sys_wait_h = yes; then
26185
26186cat >>confdefs.h <<\_ACEOF
26187#define HAVE_SYS_WAIT_H 1
26188_ACEOF
26189
26190fi
26191
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026192echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26193echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26194if test "${ac_cv_header_time+set}" = set; then
26195 echo $ECHO_N "(cached) $ECHO_C" >&6
26196else
26197 cat >conftest.$ac_ext <<_ACEOF
26198/* confdefs.h. */
26199_ACEOF
26200cat confdefs.h >>conftest.$ac_ext
26201cat >>conftest.$ac_ext <<_ACEOF
26202/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026203#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026204#include <sys/time.h>
26205#include <time.h>
26206
26207int
26208main ()
26209{
26210if ((struct tm *) 0)
26211return 0;
26212 ;
26213 return 0;
26214}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026215_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026216rm -f conftest.$ac_objext
26217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26218 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026219 ac_status=$?
26220 grep -v '^ *+' conftest.er1 >conftest.err
26221 rm -f conftest.er1
26222 cat conftest.err >&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026224 (exit $ac_status); } &&
26225 { ac_try='test -z "$ac_c_werror_flag"
26226 || test ! -s conftest.err'
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26229 ac_status=$?
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; } &&
26232 { ac_try='test -s conftest.$ac_objext'
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; }; then
26238 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026239else
26240 echo "$as_me: failed program was:" >&5
26241sed 's/^/| /' conftest.$ac_ext >&5
26242
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026243ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026244fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26246fi
26247echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26248echo "${ECHO_T}$ac_cv_header_time" >&6
26249if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026250
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026251cat >>confdefs.h <<\_ACEOF
26252#define TIME_WITH_SYS_TIME 1
26253_ACEOF
26254
26255fi
26256
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026257
Reid Spencer59473af2004-12-25 07:31:29 +000026258
26259
26260
26261
26262
26263
26264for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26265do
26266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26267if eval "test \"\${$as_ac_Header+set}\" = set"; then
26268 echo "$as_me:$LINENO: checking for $ac_header" >&5
26269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26272fi
26273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26275else
26276 # Is the header compilable?
26277echo "$as_me:$LINENO: checking $ac_header usability" >&5
26278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26279cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026280/* confdefs.h. */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026285$ac_includes_default
26286#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026287_ACEOF
26288rm -f conftest.$ac_objext
26289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26290 (eval $ac_compile) 2>conftest.er1
26291 ac_status=$?
26292 grep -v '^ *+' conftest.er1 >conftest.err
26293 rm -f conftest.er1
26294 cat conftest.err >&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); } &&
26297 { ac_try='test -z "$ac_c_werror_flag"
26298 || test ! -s conftest.err'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try='test -s conftest.$ac_objext'
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026310 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026311else
26312 echo "$as_me: failed program was:" >&5
26313sed 's/^/| /' conftest.$ac_ext >&5
26314
Reid Spencer59473af2004-12-25 07:31:29 +000026315ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026316fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26319echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026320
Reid Spencer59473af2004-12-25 07:31:29 +000026321# Is the header present?
26322echo "$as_me:$LINENO: checking $ac_header presence" >&5
26323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26324cat >conftest.$ac_ext <<_ACEOF
26325/* confdefs.h. */
26326_ACEOF
26327cat confdefs.h >>conftest.$ac_ext
26328cat >>conftest.$ac_ext <<_ACEOF
26329/* end confdefs.h. */
26330#include <$ac_header>
26331_ACEOF
26332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26334 ac_status=$?
26335 grep -v '^ *+' conftest.er1 >conftest.err
26336 rm -f conftest.er1
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } >/dev/null; then
26340 if test -s conftest.err; then
26341 ac_cpp_err=$ac_c_preproc_warn_flag
26342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26343 else
26344 ac_cpp_err=
26345 fi
26346else
26347 ac_cpp_err=yes
26348fi
26349if test -z "$ac_cpp_err"; then
26350 ac_header_preproc=yes
26351else
26352 echo "$as_me: failed program was:" >&5
26353sed 's/^/| /' conftest.$ac_ext >&5
26354
26355 ac_header_preproc=no
26356fi
26357rm -f conftest.err conftest.$ac_ext
26358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359echo "${ECHO_T}$ac_header_preproc" >&6
26360
26361# So? What about this header?
26362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26363 yes:no: )
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26368 ac_header_preproc=yes
26369 ;;
26370 no:yes:* )
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26383 (
26384 cat <<\_ASBOX
26385## ----------------------------------- ##
26386## Report this to llvmbugs@cs.uiuc.edu ##
26387## ----------------------------------- ##
26388_ASBOX
26389 ) |
26390 sed "s/^/$as_me: WARNING: /" >&2
26391 ;;
26392esac
26393echo "$as_me:$LINENO: checking for $ac_header" >&5
26394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26395if eval "test \"\${$as_ac_Header+set}\" = set"; then
26396 echo $ECHO_N "(cached) $ECHO_C" >&6
26397else
26398 eval "$as_ac_Header=\$ac_header_preproc"
26399fi
26400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026402
26403fi
Reid Spencer59473af2004-12-25 07:31:29 +000026404if test `eval echo '${'$as_ac_Header'}'` = yes; then
26405 cat >>confdefs.h <<_ACEOF
26406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026407_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026408
26409fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026410
Reid Spencer59473af2004-12-25 07:31:29 +000026411done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026412
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026413
26414
Reid Spencer59473af2004-12-25 07:31:29 +000026415
26416
26417
26418
Reid Spencer22177fe2005-07-12 15:24:20 +000026419for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26420do
26421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26422if eval "test \"\${$as_ac_Header+set}\" = set"; then
26423 echo "$as_me:$LINENO: checking for $ac_header" >&5
26424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26425if eval "test \"\${$as_ac_Header+set}\" = set"; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26427fi
26428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26430else
26431 # Is the header compilable?
26432echo "$as_me:$LINENO: checking $ac_header usability" >&5
26433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26434cat >conftest.$ac_ext <<_ACEOF
26435/* confdefs.h. */
26436_ACEOF
26437cat confdefs.h >>conftest.$ac_ext
26438cat >>conftest.$ac_ext <<_ACEOF
26439/* end confdefs.h. */
26440$ac_includes_default
26441#include <$ac_header>
26442_ACEOF
26443rm -f conftest.$ac_objext
26444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26445 (eval $ac_compile) 2>conftest.er1
26446 ac_status=$?
26447 grep -v '^ *+' conftest.er1 >conftest.err
26448 rm -f conftest.er1
26449 cat conftest.err >&5
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); } &&
26452 { ac_try='test -z "$ac_c_werror_flag"
26453 || test ! -s conftest.err'
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; } &&
26459 { ac_try='test -s conftest.$ac_objext'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
26465 ac_header_compiler=yes
26466else
26467 echo "$as_me: failed program was:" >&5
26468sed 's/^/| /' conftest.$ac_ext >&5
26469
26470ac_header_compiler=no
26471fi
26472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26474echo "${ECHO_T}$ac_header_compiler" >&6
26475
26476# Is the header present?
26477echo "$as_me:$LINENO: checking $ac_header presence" >&5
26478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26479cat >conftest.$ac_ext <<_ACEOF
26480/* confdefs.h. */
26481_ACEOF
26482cat confdefs.h >>conftest.$ac_ext
26483cat >>conftest.$ac_ext <<_ACEOF
26484/* end confdefs.h. */
26485#include <$ac_header>
26486_ACEOF
26487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26489 ac_status=$?
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } >/dev/null; then
26495 if test -s conftest.err; then
26496 ac_cpp_err=$ac_c_preproc_warn_flag
26497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26498 else
26499 ac_cpp_err=
26500 fi
26501else
26502 ac_cpp_err=yes
26503fi
26504if test -z "$ac_cpp_err"; then
26505 ac_header_preproc=yes
26506else
26507 echo "$as_me: failed program was:" >&5
26508sed 's/^/| /' conftest.$ac_ext >&5
26509
26510 ac_header_preproc=no
26511fi
26512rm -f conftest.err conftest.$ac_ext
26513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26514echo "${ECHO_T}$ac_header_preproc" >&6
26515
26516# So? What about this header?
26517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26518 yes:no: )
26519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26523 ac_header_preproc=yes
26524 ;;
26525 no:yes:* )
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26538 (
26539 cat <<\_ASBOX
26540## ----------------------------------- ##
26541## Report this to llvmbugs@cs.uiuc.edu ##
26542## ----------------------------------- ##
26543_ASBOX
26544 ) |
26545 sed "s/^/$as_me: WARNING: /" >&2
26546 ;;
26547esac
26548echo "$as_me:$LINENO: checking for $ac_header" >&5
26549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26550if eval "test \"\${$as_ac_Header+set}\" = set"; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26552else
26553 eval "$as_ac_Header=\$ac_header_preproc"
26554fi
26555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26557
26558fi
26559if test `eval echo '${'$as_ac_Header'}'` = yes; then
26560 cat >>confdefs.h <<_ACEOF
26561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26562_ACEOF
26563
26564fi
26565
26566done
26567
26568
26569for ac_header in windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026570do
26571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26572if eval "test \"\${$as_ac_Header+set}\" = set"; then
26573 echo "$as_me:$LINENO: checking for $ac_header" >&5
26574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26575if eval "test \"\${$as_ac_Header+set}\" = set"; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26577fi
26578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26580else
26581 # Is the header compilable?
26582echo "$as_me:$LINENO: checking $ac_header usability" >&5
26583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26584cat >conftest.$ac_ext <<_ACEOF
26585/* confdefs.h. */
26586_ACEOF
26587cat confdefs.h >>conftest.$ac_ext
26588cat >>conftest.$ac_ext <<_ACEOF
26589/* end confdefs.h. */
26590$ac_includes_default
26591#include <$ac_header>
26592_ACEOF
26593rm -f conftest.$ac_objext
26594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26595 (eval $ac_compile) 2>conftest.er1
26596 ac_status=$?
26597 grep -v '^ *+' conftest.er1 >conftest.err
26598 rm -f conftest.er1
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } &&
26602 { ac_try='test -z "$ac_c_werror_flag"
26603 || test ! -s conftest.err'
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; } &&
26609 { ac_try='test -s conftest.$ac_objext'
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; }; then
26615 ac_header_compiler=yes
26616else
26617 echo "$as_me: failed program was:" >&5
26618sed 's/^/| /' conftest.$ac_ext >&5
26619
26620ac_header_compiler=no
26621fi
26622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26624echo "${ECHO_T}$ac_header_compiler" >&6
26625
26626# Is the header present?
26627echo "$as_me:$LINENO: checking $ac_header presence" >&5
26628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26629cat >conftest.$ac_ext <<_ACEOF
26630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
26635#include <$ac_header>
26636_ACEOF
26637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26639 ac_status=$?
26640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } >/dev/null; then
26645 if test -s conftest.err; then
26646 ac_cpp_err=$ac_c_preproc_warn_flag
26647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26648 else
26649 ac_cpp_err=
26650 fi
26651else
26652 ac_cpp_err=yes
26653fi
26654if test -z "$ac_cpp_err"; then
26655 ac_header_preproc=yes
26656else
26657 echo "$as_me: failed program was:" >&5
26658sed 's/^/| /' conftest.$ac_ext >&5
26659
26660 ac_header_preproc=no
26661fi
26662rm -f conftest.err conftest.$ac_ext
26663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26664echo "${ECHO_T}$ac_header_preproc" >&6
26665
26666# So? What about this header?
26667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26668 yes:no: )
26669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26673 ac_header_preproc=yes
26674 ;;
26675 no:yes:* )
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26688 (
26689 cat <<\_ASBOX
26690## ----------------------------------- ##
26691## Report this to llvmbugs@cs.uiuc.edu ##
26692## ----------------------------------- ##
26693_ASBOX
26694 ) |
26695 sed "s/^/$as_me: WARNING: /" >&2
26696 ;;
26697esac
26698echo "$as_me:$LINENO: checking for $ac_header" >&5
26699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26700if eval "test \"\${$as_ac_Header+set}\" = set"; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26702else
26703 eval "$as_ac_Header=\$ac_header_preproc"
26704fi
26705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26707
26708fi
26709if test `eval echo '${'$as_ac_Header'}'` = yes; then
26710 cat >>confdefs.h <<_ACEOF
26711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26712_ACEOF
26713
26714fi
26715
26716done
26717
26718
26719
26720
26721
26722
26723for 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 +000026724do
26725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26726if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727 echo "$as_me:$LINENO: checking for $ac_header" >&5
26728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26729if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026730 echo $ECHO_N "(cached) $ECHO_C" >&6
26731fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026734else
26735 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026736echo "$as_me:$LINENO: checking $ac_header usability" >&5
26737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026738cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
26744$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026745#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026746_ACEOF
26747rm -f conftest.$ac_objext
26748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026749 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026756 { ac_try='test -z "$ac_c_werror_flag"
26757 || test ! -s conftest.err'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_header_compiler=yes
26770else
26771 echo "$as_me: failed program was:" >&5
26772sed 's/^/| /' conftest.$ac_ext >&5
26773
26774ac_header_compiler=no
26775fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26778echo "${ECHO_T}$ac_header_compiler" >&6
26779
26780# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026781echo "$as_me:$LINENO: checking $ac_header presence" >&5
26782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026783cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026784/* confdefs.h. */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026789#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026790_ACEOF
26791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26793 ac_status=$?
26794 grep -v '^ *+' conftest.er1 >conftest.err
26795 rm -f conftest.er1
26796 cat conftest.err >&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } >/dev/null; then
26799 if test -s conftest.err; then
26800 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026802 else
26803 ac_cpp_err=
26804 fi
26805else
26806 ac_cpp_err=yes
26807fi
26808if test -z "$ac_cpp_err"; then
26809 ac_header_preproc=yes
26810else
26811 echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 ac_header_preproc=no
26815fi
26816rm -f conftest.err conftest.$ac_ext
26817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26818echo "${ECHO_T}$ac_header_preproc" >&6
26819
26820# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26822 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026827 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026828 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026829 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026842 (
26843 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026844## ----------------------------------- ##
26845## Report this to llvmbugs@cs.uiuc.edu ##
26846## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026847_ASBOX
26848 ) |
26849 sed "s/^/$as_me: WARNING: /" >&2
26850 ;;
26851esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026852echo "$as_me:$LINENO: checking for $ac_header" >&5
26853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26854if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026855 echo $ECHO_N "(cached) $ECHO_C" >&6
26856else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026857 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026858fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026861
26862fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026863if test `eval echo '${'$as_ac_Header'}'` = yes; then
26864 cat >>confdefs.h <<_ACEOF
26865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026866_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026867
26868fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026870done
26871
John Criswell7ed43ad2004-07-19 16:12:29 +000026872
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026873
Reid Spencer8085cff2005-01-16 02:58:39 +000026874for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26875do
26876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26877if eval "test \"\${$as_ac_Header+set}\" = set"; then
26878 echo "$as_me:$LINENO: checking for $ac_header" >&5
26879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26882fi
26883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26885else
26886 # Is the header compilable?
26887echo "$as_me:$LINENO: checking $ac_header usability" >&5
26888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26889cat >conftest.$ac_ext <<_ACEOF
26890/* confdefs.h. */
26891_ACEOF
26892cat confdefs.h >>conftest.$ac_ext
26893cat >>conftest.$ac_ext <<_ACEOF
26894/* end confdefs.h. */
26895$ac_includes_default
26896#include <$ac_header>
26897_ACEOF
26898rm -f conftest.$ac_objext
26899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900 (eval $ac_compile) 2>conftest.er1
26901 ac_status=$?
26902 grep -v '^ *+' conftest.er1 >conftest.err
26903 rm -f conftest.er1
26904 cat conftest.err >&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
26907 { ac_try='test -z "$ac_c_werror_flag"
26908 || test ! -s conftest.err'
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; } &&
26914 { ac_try='test -s conftest.$ac_objext'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }; then
26920 ac_header_compiler=yes
26921else
26922 echo "$as_me: failed program was:" >&5
26923sed 's/^/| /' conftest.$ac_ext >&5
26924
26925ac_header_compiler=no
26926fi
26927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26929echo "${ECHO_T}$ac_header_compiler" >&6
26930
26931# Is the header present?
26932echo "$as_me:$LINENO: checking $ac_header presence" >&5
26933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26934cat >conftest.$ac_ext <<_ACEOF
26935/* confdefs.h. */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h. */
26940#include <$ac_header>
26941_ACEOF
26942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26944 ac_status=$?
26945 grep -v '^ *+' conftest.er1 >conftest.err
26946 rm -f conftest.er1
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } >/dev/null; then
26950 if test -s conftest.err; then
26951 ac_cpp_err=$ac_c_preproc_warn_flag
26952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26953 else
26954 ac_cpp_err=
26955 fi
26956else
26957 ac_cpp_err=yes
26958fi
26959if test -z "$ac_cpp_err"; then
26960 ac_header_preproc=yes
26961else
26962 echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965 ac_header_preproc=no
26966fi
26967rm -f conftest.err conftest.$ac_ext
26968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26969echo "${ECHO_T}$ac_header_preproc" >&6
26970
26971# So? What about this header?
26972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26973 yes:no: )
26974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26978 ac_header_preproc=yes
26979 ;;
26980 no:yes:* )
26981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26993 (
26994 cat <<\_ASBOX
26995## ----------------------------------- ##
26996## Report this to llvmbugs@cs.uiuc.edu ##
26997## ----------------------------------- ##
26998_ASBOX
26999 ) |
27000 sed "s/^/$as_me: WARNING: /" >&2
27001 ;;
27002esac
27003echo "$as_me:$LINENO: checking for $ac_header" >&5
27004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27005if eval "test \"\${$as_ac_Header+set}\" = set"; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27007else
27008 eval "$as_ac_Header=\$ac_header_preproc"
27009fi
27010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27012
27013fi
27014if test `eval echo '${'$as_ac_Header'}'` = yes; then
27015 cat >>confdefs.h <<_ACEOF
27016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27017_ACEOF
27018
27019fi
27020
27021done
27022
27023
27024
John Criswell7a73b802003-06-30 21:59:07 +000027025echo "$as_me:$LINENO: checking for pid_t" >&5
27026echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27027if test "${ac_cv_type_pid_t+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027031/* confdefs.h. */
27032_ACEOF
27033cat confdefs.h >>conftest.$ac_ext
27034cat >>conftest.$ac_ext <<_ACEOF
27035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027036$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027037int
27038main ()
27039{
27040if ((pid_t *) 0)
27041 return 0;
27042if (sizeof (pid_t))
27043 return 0;
27044 ;
27045 return 0;
27046}
27047_ACEOF
27048rm -f conftest.$ac_objext
27049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027050 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027052 grep -v '^ *+' conftest.er1 >conftest.err
27053 rm -f conftest.er1
27054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027057 { ac_try='test -z "$ac_c_werror_flag"
27058 || test ! -s conftest.err'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_cv_type_pid_t=yes
27071else
27072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027073sed 's/^/| /' conftest.$ac_ext >&5
27074
John Criswell7a73b802003-06-30 21:59:07 +000027075ac_cv_type_pid_t=no
27076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027078fi
27079echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27080echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27081if test $ac_cv_type_pid_t = yes; then
27082 :
27083else
27084
27085cat >>confdefs.h <<_ACEOF
27086#define pid_t int
27087_ACEOF
27088
27089fi
27090
27091echo "$as_me:$LINENO: checking for size_t" >&5
27092echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27093if test "${ac_cv_type_size_t+set}" = set; then
27094 echo $ECHO_N "(cached) $ECHO_C" >&6
27095else
27096 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027097/* confdefs.h. */
27098_ACEOF
27099cat confdefs.h >>conftest.$ac_ext
27100cat >>conftest.$ac_ext <<_ACEOF
27101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027102$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027103int
27104main ()
27105{
27106if ((size_t *) 0)
27107 return 0;
27108if (sizeof (size_t))
27109 return 0;
27110 ;
27111 return 0;
27112}
27113_ACEOF
27114rm -f conftest.$ac_objext
27115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027116 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027123 { ac_try='test -z "$ac_c_werror_flag"
27124 || test ! -s conftest.err'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136 ac_cv_type_size_t=yes
27137else
27138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027139sed 's/^/| /' conftest.$ac_ext >&5
27140
John Criswell7a73b802003-06-30 21:59:07 +000027141ac_cv_type_size_t=no
27142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027144fi
27145echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27146echo "${ECHO_T}$ac_cv_type_size_t" >&6
27147if test $ac_cv_type_size_t = yes; then
27148 :
27149else
27150
27151cat >>confdefs.h <<_ACEOF
27152#define size_t unsigned
27153_ACEOF
27154
27155fi
27156
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027157echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27158echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27159if test "${ac_cv_type_signal+set}" = set; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27161else
27162 cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h. */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h. */
27168#include <sys/types.h>
27169#include <signal.h>
27170#ifdef signal
27171# undef signal
27172#endif
27173#ifdef __cplusplus
27174extern "C" void (*signal (int, void (*)(int)))(int);
27175#else
27176void (*signal ()) ();
27177#endif
27178
27179int
27180main ()
27181{
27182int i;
27183 ;
27184 return 0;
27185}
27186_ACEOF
27187rm -f conftest.$ac_objext
27188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27189 (eval $ac_compile) 2>conftest.er1
27190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag"
27197 || test ! -s conftest.err'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; } &&
27203 { ac_try='test -s conftest.$ac_objext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_type_signal=void
27210else
27211 echo "$as_me: failed program was:" >&5
27212sed 's/^/| /' conftest.$ac_ext >&5
27213
27214ac_cv_type_signal=int
27215fi
27216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27217fi
27218echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27219echo "${ECHO_T}$ac_cv_type_signal" >&6
27220
27221cat >>confdefs.h <<_ACEOF
27222#define RETSIGTYPE $ac_cv_type_signal
27223_ACEOF
27224
27225
27226echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27227echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27228if test "${ac_cv_struct_tm+set}" = set; then
27229 echo $ECHO_N "(cached) $ECHO_C" >&6
27230else
27231 cat >conftest.$ac_ext <<_ACEOF
27232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
27237#include <sys/types.h>
27238#include <time.h>
27239
27240int
27241main ()
27242{
27243struct tm *tp; tp->tm_sec;
27244 ;
27245 return 0;
27246}
27247_ACEOF
27248rm -f conftest.$ac_objext
27249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250 (eval $ac_compile) 2>conftest.er1
27251 ac_status=$?
27252 grep -v '^ *+' conftest.er1 >conftest.err
27253 rm -f conftest.er1
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag"
27258 || test ! -s conftest.err'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; } &&
27264 { ac_try='test -s conftest.$ac_objext'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27267 ac_status=$?
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; }; then
27270 ac_cv_struct_tm=time.h
27271else
27272 echo "$as_me: failed program was:" >&5
27273sed 's/^/| /' conftest.$ac_ext >&5
27274
27275ac_cv_struct_tm=sys/time.h
27276fi
27277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27278fi
27279echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27280echo "${ECHO_T}$ac_cv_struct_tm" >&6
27281if test $ac_cv_struct_tm = sys/time.h; then
27282
27283cat >>confdefs.h <<\_ACEOF
27284#define TM_IN_SYS_TIME 1
27285_ACEOF
27286
27287fi
27288
John Criswell7a73b802003-06-30 21:59:07 +000027289echo "$as_me:$LINENO: checking for int64_t" >&5
27290echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27291if test "${ac_cv_type_int64_t+set}" = set; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
27293else
27294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027300$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027301int
27302main ()
27303{
27304if ((int64_t *) 0)
27305 return 0;
27306if (sizeof (int64_t))
27307 return 0;
27308 ;
27309 return 0;
27310}
27311_ACEOF
27312rm -f conftest.$ac_objext
27313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027314 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027321 { ac_try='test -z "$ac_c_werror_flag"
27322 || test ! -s conftest.err'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330 (eval $ac_try) 2>&5
27331 ac_status=$?
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; }; then
27334 ac_cv_type_int64_t=yes
27335else
27336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027337sed 's/^/| /' conftest.$ac_ext >&5
27338
John Criswell7a73b802003-06-30 21:59:07 +000027339ac_cv_type_int64_t=no
27340fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027342fi
27343echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27344echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27345if test $ac_cv_type_int64_t = yes; then
27346
27347cat >>confdefs.h <<_ACEOF
27348#define HAVE_INT64_T 1
27349_ACEOF
27350
27351
27352else
27353 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27354echo "$as_me: error: Type int64_t required but not found" >&2;}
27355 { (exit 1); exit 1; }; }
27356fi
27357
27358echo "$as_me:$LINENO: checking for uint64_t" >&5
27359echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27360if test "${ac_cv_type_uint64_t+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27362else
27363 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027364/* confdefs.h. */
27365_ACEOF
27366cat confdefs.h >>conftest.$ac_ext
27367cat >>conftest.$ac_ext <<_ACEOF
27368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027369$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027370int
27371main ()
27372{
27373if ((uint64_t *) 0)
27374 return 0;
27375if (sizeof (uint64_t))
27376 return 0;
27377 ;
27378 return 0;
27379}
27380_ACEOF
27381rm -f conftest.$ac_objext
27382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027385 grep -v '^ *+' conftest.er1 >conftest.err
27386 rm -f conftest.er1
27387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027390 { ac_try='test -z "$ac_c_werror_flag"
27391 || test ! -s conftest.err'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_type_uint64_t=yes
27404else
27405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027406sed 's/^/| /' conftest.$ac_ext >&5
27407
John Criswell7a73b802003-06-30 21:59:07 +000027408ac_cv_type_uint64_t=no
27409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027411fi
27412echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27413echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27414if test $ac_cv_type_uint64_t = yes; then
27415
27416cat >>confdefs.h <<_ACEOF
27417#define HAVE_UINT64_T 1
27418_ACEOF
27419
27420
27421else
Misha Brukmanceca9042004-09-02 23:02:30 +000027422 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027423echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27424if test "${ac_cv_type_u_int64_t+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433$ac_includes_default
27434int
27435main ()
27436{
27437if ((u_int64_t *) 0)
27438 return 0;
27439if (sizeof (u_int64_t))
27440 return 0;
27441 ;
27442 return 0;
27443}
27444_ACEOF
27445rm -f conftest.$ac_objext
27446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027447 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027449 grep -v '^ *+' conftest.er1 >conftest.err
27450 rm -f conftest.er1
27451 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027454 { ac_try='test -z "$ac_c_werror_flag"
27455 || test ! -s conftest.err'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_cv_type_u_int64_t=yes
27468else
27469 echo "$as_me: failed program was:" >&5
27470sed 's/^/| /' conftest.$ac_ext >&5
27471
27472ac_cv_type_u_int64_t=no
27473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027475fi
27476echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27477echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27478if test $ac_cv_type_u_int64_t = yes; then
27479
27480cat >>confdefs.h <<_ACEOF
27481#define HAVE_U_INT64_T 1
27482_ACEOF
27483
27484
Misha Brukmanceca9042004-09-02 23:02:30 +000027485else
27486 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27487echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27488 { (exit 1); exit 1; }; }
27489fi
27490
John Criswell679ff312004-09-02 18:44:44 +000027491fi
27492
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027493
27494
27495
27496
27497
27498
27499
Reid Spencerb9a5d682005-05-15 22:15:11 +000027500for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
Reid Spencerab5eaea2004-12-20 00:59:04 +000027501do
27502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27503echo "$as_me:$LINENO: checking for $ac_func" >&5
27504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27505if eval "test \"\${$as_ac_var+set}\" = set"; then
27506 echo $ECHO_N "(cached) $ECHO_C" >&6
27507else
27508 cat >conftest.$ac_ext <<_ACEOF
27509/* confdefs.h. */
27510_ACEOF
27511cat confdefs.h >>conftest.$ac_ext
27512cat >>conftest.$ac_ext <<_ACEOF
27513/* end confdefs.h. */
27514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27516#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027517
Reid Spencerab5eaea2004-12-20 00:59:04 +000027518/* System header to define __stub macros and hopefully few prototypes,
27519 which can conflict with char $ac_func (); below.
27520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27521 <limits.h> exists even on freestanding compilers. */
27522
27523#ifdef __STDC__
27524# include <limits.h>
27525#else
27526# include <assert.h>
27527#endif
27528
27529#undef $ac_func
27530
27531/* Override any gcc2 internal prototype to avoid an error. */
27532#ifdef __cplusplus
27533extern "C"
27534{
27535#endif
27536/* We use char because int might match the return type of a gcc2
27537 builtin and then its argument prototype would still apply. */
27538char $ac_func ();
27539/* The GNU C library defines this for functions which it implements
27540 to always fail with ENOSYS. Some functions are actually named
27541 something starting with __ and the normal name is an alias. */
27542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27543choke me
27544#else
27545char (*f) () = $ac_func;
27546#endif
27547#ifdef __cplusplus
27548}
27549#endif
27550
27551int
27552main ()
27553{
27554return f != $ac_func;
27555 ;
27556 return 0;
27557}
27558_ACEOF
27559rm -f conftest.$ac_objext conftest$ac_exeext
27560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27561 (eval $ac_link) 2>conftest.er1
27562 ac_status=$?
27563 grep -v '^ *+' conftest.er1 >conftest.err
27564 rm -f conftest.er1
27565 cat conftest.err >&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } &&
27568 { ac_try='test -z "$ac_c_werror_flag"
27569 || test ! -s conftest.err'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; } &&
27575 { ac_try='test -s conftest$ac_exeext'
27576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577 (eval $ac_try) 2>&5
27578 ac_status=$?
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; }; then
27581 eval "$as_ac_var=yes"
27582else
27583 echo "$as_me: failed program was:" >&5
27584sed 's/^/| /' conftest.$ac_ext >&5
27585
27586eval "$as_ac_var=no"
27587fi
27588rm -f conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27590fi
27591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27593if test `eval echo '${'$as_ac_var'}'` = yes; then
27594 cat >>confdefs.h <<_ACEOF
27595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27596_ACEOF
27597
27598fi
27599done
27600
27601
27602
27603
Reid Spencerc29b13d2005-05-14 16:42:52 +000027604
27605for ac_func in isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027606do
27607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27608echo "$as_me:$LINENO: checking for $ac_func" >&5
27609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27610if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027611 echo $ECHO_N "(cached) $ECHO_C" >&6
27612else
27613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027614/* confdefs.h. */
27615_ACEOF
27616cat confdefs.h >>conftest.$ac_ext
27617cat >>conftest.$ac_ext <<_ACEOF
27618/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27621#define $ac_func innocuous_$ac_func
27622
27623/* System header to define __stub macros and hopefully few prototypes,
27624 which can conflict with char $ac_func (); below.
27625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27626 <limits.h> exists even on freestanding compilers. */
27627
27628#ifdef __STDC__
27629# include <limits.h>
27630#else
27631# include <assert.h>
27632#endif
27633
27634#undef $ac_func
27635
27636/* Override any gcc2 internal prototype to avoid an error. */
27637#ifdef __cplusplus
27638extern "C"
27639{
27640#endif
27641/* We use char because int might match the return type of a gcc2
27642 builtin and then its argument prototype would still apply. */
27643char $ac_func ();
27644/* The GNU C library defines this for functions which it implements
27645 to always fail with ENOSYS. Some functions are actually named
27646 something starting with __ and the normal name is an alias. */
27647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27648choke me
27649#else
27650char (*f) () = $ac_func;
27651#endif
27652#ifdef __cplusplus
27653}
27654#endif
John Criswell7a73b802003-06-30 21:59:07 +000027655
John Criswell7a73b802003-06-30 21:59:07 +000027656int
27657main ()
27658{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027659return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027660 ;
27661 return 0;
27662}
27663_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027664rm -f conftest.$ac_objext conftest$ac_exeext
27665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27666 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027673 { ac_try='test -z "$ac_c_werror_flag"
27674 || test ! -s conftest.err'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027680 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027686 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027687else
27688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027689sed 's/^/| /' conftest.$ac_ext >&5
27690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027691eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027692fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027693rm -f conftest.err conftest.$ac_objext \
27694 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027695fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27698if test `eval echo '${'$as_ac_var'}'` = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027701_ACEOF
27702
27703fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027704done
John Criswell7a73b802003-06-30 21:59:07 +000027705
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027706
27707
27708
Reid Spencer6af3d262004-12-15 04:01:48 +000027709
27710
Reid Spencer59473af2004-12-25 07:31:29 +000027711
Reid Spencerba46ca32004-12-31 05:49:15 +000027712for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027713do
27714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27715echo "$as_me:$LINENO: checking for $ac_func" >&5
27716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27717if eval "test \"\${$as_ac_var+set}\" = set"; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27719else
27720 cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
27726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27728#define $ac_func innocuous_$ac_func
27729
27730/* System header to define __stub macros and hopefully few prototypes,
27731 which can conflict with char $ac_func (); below.
27732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27733 <limits.h> exists even on freestanding compilers. */
27734
27735#ifdef __STDC__
27736# include <limits.h>
27737#else
27738# include <assert.h>
27739#endif
27740
27741#undef $ac_func
27742
27743/* Override any gcc2 internal prototype to avoid an error. */
27744#ifdef __cplusplus
27745extern "C"
27746{
27747#endif
27748/* We use char because int might match the return type of a gcc2
27749 builtin and then its argument prototype would still apply. */
27750char $ac_func ();
27751/* The GNU C library defines this for functions which it implements
27752 to always fail with ENOSYS. Some functions are actually named
27753 something starting with __ and the normal name is an alias. */
27754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27755choke me
27756#else
27757char (*f) () = $ac_func;
27758#endif
27759#ifdef __cplusplus
27760}
27761#endif
27762
27763int
27764main ()
27765{
27766return f != $ac_func;
27767 ;
27768 return 0;
27769}
27770_ACEOF
27771rm -f conftest.$ac_objext conftest$ac_exeext
27772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27773 (eval $ac_link) 2>conftest.er1
27774 ac_status=$?
27775 grep -v '^ *+' conftest.er1 >conftest.err
27776 rm -f conftest.er1
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
27780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 eval "$as_ac_var=yes"
27794else
27795 echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
27798eval "$as_ac_var=no"
27799fi
27800rm -f conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
27802fi
27803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27804echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27805if test `eval echo '${'$as_ac_var'}'` = yes; then
27806 cat >>confdefs.h <<_ACEOF
27807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27808_ACEOF
27809
27810fi
27811done
27812
27813
Reid Spencerba46ca32004-12-31 05:49:15 +000027814
27815
27816for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027817do
27818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27819echo "$as_me:$LINENO: checking for $ac_func" >&5
27820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27821if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027822 echo $ECHO_N "(cached) $ECHO_C" >&6
27823else
27824 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027825/* confdefs.h. */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27832#define $ac_func innocuous_$ac_func
27833
27834/* System header to define __stub macros and hopefully few prototypes,
27835 which can conflict with char $ac_func (); below.
27836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27837 <limits.h> exists even on freestanding compilers. */
27838
27839#ifdef __STDC__
27840# include <limits.h>
27841#else
27842# include <assert.h>
27843#endif
27844
27845#undef $ac_func
27846
27847/* Override any gcc2 internal prototype to avoid an error. */
27848#ifdef __cplusplus
27849extern "C"
27850{
27851#endif
27852/* We use char because int might match the return type of a gcc2
27853 builtin and then its argument prototype would still apply. */
27854char $ac_func ();
27855/* The GNU C library defines this for functions which it implements
27856 to always fail with ENOSYS. Some functions are actually named
27857 something starting with __ and the normal name is an alias. */
27858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27859choke me
27860#else
27861char (*f) () = $ac_func;
27862#endif
27863#ifdef __cplusplus
27864}
27865#endif
John Criswell7a73b802003-06-30 21:59:07 +000027866
John Criswell7a73b802003-06-30 21:59:07 +000027867int
27868main ()
27869{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027870return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027871 ;
27872 return 0;
27873}
27874_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027875rm -f conftest.$ac_objext conftest$ac_exeext
27876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27877 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027884 { ac_try='test -z "$ac_c_werror_flag"
27885 || test ! -s conftest.err'
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27888 ac_status=$?
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027891 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027897 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027898else
27899 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027900sed 's/^/| /' conftest.$ac_ext >&5
27901
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027902eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027903fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027904rm -f conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027906fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27909if test `eval echo '${'$as_ac_var'}'` = yes; then
27910 cat >>confdefs.h <<_ACEOF
27911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027912_ACEOF
27913
27914fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027915done
John Criswell7a73b802003-06-30 21:59:07 +000027916
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027917echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27918echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027919if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027920 echo $ECHO_N "(cached) $ECHO_C" >&6
27921else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027922 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027923ac_cpp='$CPP $CPPFLAGS'
27924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27926ac_compiler_gnu=$ac_cv_c_compiler_gnu
27927
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027928 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027929 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027930else
27931 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027932
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027933 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027934_ACEOF
27935cat confdefs.h >>conftest.$ac_ext
27936cat >>conftest.$ac_ext <<_ACEOF
27937/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027938
John Criswella0137d32003-10-13 16:22:01 +000027939#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027940#include <stdlib.h>
27941
John Criswella0137d32003-10-13 16:22:01 +000027942int
27943main ()
27944{
27945
Reid Spencer2706f8c2004-09-19 23:53:36 +000027946volatile double A, B;
27947char Buffer[100];
27948A = 1;
27949A /= 10.0;
27950sprintf(Buffer, "%a", A);
27951B = atof(Buffer);
27952if (A != B)
27953 return (1);
27954if (A != 0x1.999999999999ap-4)
27955 return (1);
27956return (0);
John Criswella0137d32003-10-13 16:22:01 +000027957 ;
27958 return 0;
27959}
27960_ACEOF
27961rm -f conftest$ac_exeext
27962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27963 (eval $ac_link) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027972 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027973else
27974 echo "$as_me: program exited with status $ac_status" >&5
27975echo "$as_me: failed program was:" >&5
27976sed 's/^/| /' conftest.$ac_ext >&5
27977
27978( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027979llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027980fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027982fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027983 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027984ac_cpp='$CPP $CPPFLAGS'
27985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27987ac_compiler_gnu=$ac_cv_c_compiler_gnu
27988
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027989fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027990echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27991echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27992 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027993
27994cat >>confdefs.h <<\_ACEOF
27995#define HAVE_PRINTF_A 1
27996_ACEOF
27997
Reid Spencer2706f8c2004-09-19 23:53:36 +000027998 fi
John Criswella0137d32003-10-13 16:22:01 +000027999
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028000# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28001# for constant arguments. Useless!
28002echo "$as_me:$LINENO: checking for working alloca.h" >&5
28003echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28004if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028005 echo $ECHO_N "(cached) $ECHO_C" >&6
28006else
John Criswell0021c312004-02-13 21:57:29 +000028007 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028008/* confdefs.h. */
28009_ACEOF
28010cat confdefs.h >>conftest.$ac_ext
28011cat >>conftest.$ac_ext <<_ACEOF
28012/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028013#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028014int
28015main ()
28016{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028017char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028018 ;
28019 return 0;
28020}
28021_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028022rm -f conftest.$ac_objext conftest$ac_exeext
28023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28024 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028026 grep -v '^ *+' conftest.er1 >conftest.err
28027 rm -f conftest.er1
28028 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028031 { ac_try='test -z "$ac_c_werror_flag"
28032 || test ! -s conftest.err'
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028038 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028044 ac_cv_working_alloca_h=yes
28045else
28046 echo "$as_me: failed program was:" >&5
28047sed 's/^/| /' conftest.$ac_ext >&5
28048
28049ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028051rm -f conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
28053fi
28054echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28055echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28056if test $ac_cv_working_alloca_h = yes; then
28057
28058cat >>confdefs.h <<\_ACEOF
28059#define HAVE_ALLOCA_H 1
28060_ACEOF
28061
28062fi
28063
28064echo "$as_me:$LINENO: checking for alloca" >&5
28065echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28066if test "${ac_cv_func_alloca_works+set}" = set; then
28067 echo $ECHO_N "(cached) $ECHO_C" >&6
28068else
28069 cat >conftest.$ac_ext <<_ACEOF
28070/* confdefs.h. */
28071_ACEOF
28072cat confdefs.h >>conftest.$ac_ext
28073cat >>conftest.$ac_ext <<_ACEOF
28074/* end confdefs.h. */
28075#ifdef __GNUC__
28076# define alloca __builtin_alloca
28077#else
28078# ifdef _MSC_VER
28079# include <malloc.h>
28080# define alloca _alloca
28081# else
28082# if HAVE_ALLOCA_H
28083# include <alloca.h>
28084# else
28085# ifdef _AIX
28086 #pragma alloca
28087# else
28088# ifndef alloca /* predefined by HP cc +Olibcalls */
28089char *alloca ();
28090# endif
28091# endif
28092# endif
28093# endif
28094#endif
28095
28096int
28097main ()
28098{
28099char *p = (char *) alloca (1);
28100 ;
28101 return 0;
28102}
28103_ACEOF
28104rm -f conftest.$ac_objext conftest$ac_exeext
28105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28106 (eval $ac_link) 2>conftest.er1
28107 ac_status=$?
28108 grep -v '^ *+' conftest.er1 >conftest.err
28109 rm -f conftest.er1
28110 cat conftest.err >&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
28113 { ac_try='test -z "$ac_c_werror_flag"
28114 || test ! -s conftest.err'
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28117 ac_status=$?
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; } &&
28120 { ac_try='test -s conftest$ac_exeext'
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
28126 ac_cv_func_alloca_works=yes
28127else
28128 echo "$as_me: failed program was:" >&5
28129sed 's/^/| /' conftest.$ac_ext >&5
28130
28131ac_cv_func_alloca_works=no
28132fi
28133rm -f conftest.err conftest.$ac_objext \
28134 conftest$ac_exeext conftest.$ac_ext
28135fi
28136echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28137echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28138
28139if test $ac_cv_func_alloca_works = yes; then
28140
28141cat >>confdefs.h <<\_ACEOF
28142#define HAVE_ALLOCA 1
28143_ACEOF
28144
28145else
28146 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28147# that cause trouble. Some versions do not even contain alloca or
28148# contain a buggy version. If you still want to use their alloca,
28149# use ar to extract alloca.o from them instead of compiling alloca.c.
28150
28151ALLOCA=alloca.$ac_objext
28152
28153cat >>confdefs.h <<\_ACEOF
28154#define C_ALLOCA 1
28155_ACEOF
28156
28157
28158echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28159echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28160if test "${ac_cv_os_cray+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
28163 cat >conftest.$ac_ext <<_ACEOF
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169#if defined(CRAY) && ! defined(CRAY2)
28170webecray
28171#else
28172wenotbecray
28173#endif
28174
28175_ACEOF
28176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28177 $EGREP "webecray" >/dev/null 2>&1; then
28178 ac_cv_os_cray=yes
28179else
28180 ac_cv_os_cray=no
28181fi
28182rm -f conftest*
28183
28184fi
28185echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28186echo "${ECHO_T}$ac_cv_os_cray" >&6
28187if test $ac_cv_os_cray = yes; then
28188 for ac_func in _getb67 GETB67 getb67; do
28189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28190echo "$as_me:$LINENO: checking for $ac_func" >&5
28191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28192if eval "test \"\${$as_ac_var+set}\" = set"; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28194else
28195 cat >conftest.$ac_ext <<_ACEOF
28196/* confdefs.h. */
28197_ACEOF
28198cat confdefs.h >>conftest.$ac_ext
28199cat >>conftest.$ac_ext <<_ACEOF
28200/* end confdefs.h. */
28201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28203#define $ac_func innocuous_$ac_func
28204
28205/* System header to define __stub macros and hopefully few prototypes,
28206 which can conflict with char $ac_func (); below.
28207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208 <limits.h> exists even on freestanding compilers. */
28209
28210#ifdef __STDC__
28211# include <limits.h>
28212#else
28213# include <assert.h>
28214#endif
28215
28216#undef $ac_func
28217
28218/* Override any gcc2 internal prototype to avoid an error. */
28219#ifdef __cplusplus
28220extern "C"
28221{
28222#endif
28223/* We use char because int might match the return type of a gcc2
28224 builtin and then its argument prototype would still apply. */
28225char $ac_func ();
28226/* The GNU C library defines this for functions which it implements
28227 to always fail with ENOSYS. Some functions are actually named
28228 something starting with __ and the normal name is an alias. */
28229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28230choke me
28231#else
28232char (*f) () = $ac_func;
28233#endif
28234#ifdef __cplusplus
28235}
28236#endif
28237
28238int
28239main ()
28240{
28241return f != $ac_func;
28242 ;
28243 return 0;
28244}
28245_ACEOF
28246rm -f conftest.$ac_objext conftest$ac_exeext
28247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28248 (eval $ac_link) 2>conftest.er1
28249 ac_status=$?
28250 grep -v '^ *+' conftest.er1 >conftest.err
28251 rm -f conftest.er1
28252 cat conftest.err >&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } &&
28255 { ac_try='test -z "$ac_c_werror_flag"
28256 || test ! -s conftest.err'
28257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258 (eval $ac_try) 2>&5
28259 ac_status=$?
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; } &&
28262 { ac_try='test -s conftest$ac_exeext'
28263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264 (eval $ac_try) 2>&5
28265 ac_status=$?
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; }; then
28268 eval "$as_ac_var=yes"
28269else
28270 echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273eval "$as_ac_var=no"
28274fi
28275rm -f conftest.err conftest.$ac_objext \
28276 conftest$ac_exeext conftest.$ac_ext
28277fi
28278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28280if test `eval echo '${'$as_ac_var'}'` = yes; then
28281
28282cat >>confdefs.h <<_ACEOF
28283#define CRAY_STACKSEG_END $ac_func
28284_ACEOF
28285
28286 break
28287fi
28288
28289 done
28290fi
28291
28292echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28293echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28294if test "${ac_cv_c_stack_direction+set}" = set; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28296else
28297 if test "$cross_compiling" = yes; then
28298 ac_cv_c_stack_direction=0
28299else
28300 cat >conftest.$ac_ext <<_ACEOF
28301/* confdefs.h. */
28302_ACEOF
28303cat confdefs.h >>conftest.$ac_ext
28304cat >>conftest.$ac_ext <<_ACEOF
28305/* end confdefs.h. */
28306int
28307find_stack_direction ()
28308{
28309 static char *addr = 0;
28310 auto char dummy;
28311 if (addr == 0)
28312 {
28313 addr = &dummy;
28314 return find_stack_direction ();
28315 }
John Criswell0021c312004-02-13 21:57:29 +000028316 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028317 return (&dummy > addr) ? 1 : -1;
28318}
John Criswell0021c312004-02-13 21:57:29 +000028319
John Criswell0021c312004-02-13 21:57:29 +000028320int
28321main ()
28322{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028323 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028324}
28325_ACEOF
28326rm -f conftest$ac_exeext
28327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328 (eval $ac_link) 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333 (eval $ac_try) 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028337 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028338else
28339 echo "$as_me: program exited with status $ac_status" >&5
28340echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028344ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028347fi
28348fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028349echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28350echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28351
28352cat >>confdefs.h <<_ACEOF
28353#define STACK_DIRECTION $ac_cv_c_stack_direction
28354_ACEOF
28355
28356
John Criswell0021c312004-02-13 21:57:29 +000028357fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028358
28359
28360echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28361echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28362if test "${ac_cv_func_rand48+set}" = set; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28364else
28365 ac_ext=cc
28366ac_cpp='$CXXCPP $CPPFLAGS'
28367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28370
28371 cat >conftest.$ac_ext <<_ACEOF
28372/* confdefs.h. */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h. */
28377#include <stdlib.h>
28378int
28379main ()
28380{
28381srand48(0);lrand48();drand48();
28382 ;
28383 return 0;
28384}
28385_ACEOF
28386rm -f conftest.$ac_objext
28387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28388 (eval $ac_compile) 2>conftest.er1
28389 ac_status=$?
28390 grep -v '^ *+' conftest.er1 >conftest.err
28391 rm -f conftest.er1
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try='test -z "$ac_cxx_werror_flag"
28396 || test ! -s conftest.err'
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28399 ac_status=$?
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; } &&
28402 { ac_try='test -s conftest.$ac_objext'
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_cv_func_rand48=yes
28409else
28410 echo "$as_me: failed program was:" >&5
28411sed 's/^/| /' conftest.$ac_ext >&5
28412
28413ac_cv_func_rand48=no
28414fi
28415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28416 ac_ext=c
28417ac_cpp='$CPP $CPPFLAGS'
28418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28420ac_compiler_gnu=$ac_cv_c_compiler_gnu
28421
28422fi
28423echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28424echo "${ECHO_T}$ac_cv_func_rand48" >&6
28425
28426if test "$ac_cv_func_rand48" = "yes" ; then
28427
28428cat >>confdefs.h <<\_ACEOF
28429#define HAVE_RAND48 1
28430_ACEOF
28431
28432fi
John Criswell0021c312004-02-13 21:57:29 +000028433
28434
John Criswell7a73b802003-06-30 21:59:07 +000028435echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28436echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28437if test "${ac_cv_cxx_namespaces+set}" = set; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28439else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028440 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028441ac_cpp='$CXXCPP $CPPFLAGS'
28442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28445
28446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028447/* confdefs.h. */
28448_ACEOF
28449cat confdefs.h >>conftest.$ac_ext
28450cat >>conftest.$ac_ext <<_ACEOF
28451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028452namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028453int
28454main ()
28455{
28456using namespace Outer::Inner; return i;
28457 ;
28458 return 0;
28459}
28460_ACEOF
28461rm -f conftest.$ac_objext
28462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028463 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028465 grep -v '^ *+' conftest.er1 >conftest.err
28466 rm -f conftest.er1
28467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028470 { ac_try='test -z "$ac_cxx_werror_flag"
28471 || test ! -s conftest.err'
28472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473 (eval $ac_try) 2>&5
28474 ac_status=$?
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; } &&
28477 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28480 ac_status=$?
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; }; then
28483 ac_cv_cxx_namespaces=yes
28484else
28485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028486sed 's/^/| /' conftest.$ac_ext >&5
28487
John Criswell7a73b802003-06-30 21:59:07 +000028488ac_cv_cxx_namespaces=no
28489fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028491 ac_ext=c
28492ac_cpp='$CPP $CPPFLAGS'
28493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495ac_compiler_gnu=$ac_cv_c_compiler_gnu
28496
28497
28498fi
28499echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28500echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28501if test "$ac_cv_cxx_namespaces" = yes; then
28502
28503cat >>confdefs.h <<\_ACEOF
28504#define HAVE_NAMESPACES
28505_ACEOF
28506
28507fi
28508
Brian Gaeke90583492003-11-10 03:06:28 +000028509echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28510echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28511if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028512 echo $ECHO_N "(cached) $ECHO_C" >&6
28513else
28514
John Criswell7a73b802003-06-30 21:59:07 +000028515 ac_ext=cc
28516ac_cpp='$CXXCPP $CPPFLAGS'
28517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28520
28521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028522/* confdefs.h. */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028527#include <ext/hash_map>
28528#ifdef HAVE_NAMESPACES
28529using namespace std;
28530#endif
John Criswell7a73b802003-06-30 21:59:07 +000028531int
28532main ()
28533{
Brian Gaeke90583492003-11-10 03:06:28 +000028534hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028535 ;
28536 return 0;
28537}
28538_ACEOF
28539rm -f conftest.$ac_objext
28540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028541 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028543 grep -v '^ *+' conftest.er1 >conftest.err
28544 rm -f conftest.er1
28545 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028548 { ac_try='test -z "$ac_cxx_werror_flag"
28549 || test ! -s conftest.err'
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028561 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028562else
28563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028564sed 's/^/| /' conftest.$ac_ext >&5
28565
Brian Gaeke90583492003-11-10 03:06:28 +000028566ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028567fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028569 ac_ext=c
28570ac_cpp='$CPP $CPPFLAGS'
28571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573ac_compiler_gnu=$ac_cv_c_compiler_gnu
28574
John Criswell7a73b802003-06-30 21:59:07 +000028575fi
Brian Gaeke90583492003-11-10 03:06:28 +000028576echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28577echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028578 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28579 then
John Criswell9f011862004-09-24 18:28:00 +000028580
28581cat >>confdefs.h <<\_ACEOF
28582#define HAVE_STD_EXT_HASH_MAP 1
28583_ACEOF
28584
28585 else
28586
28587cat >>confdefs.h <<\_ACEOF
28588#define HAVE_STD_EXT_HASH_MAP 0
28589_ACEOF
28590
Brian Gaeke90583492003-11-10 03:06:28 +000028591 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028592
Brian Gaeke90583492003-11-10 03:06:28 +000028593 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28594echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28595if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28597else
28598
Brian Gaeke90583492003-11-10 03:06:28 +000028599 ac_ext=cc
28600ac_cpp='$CXXCPP $CPPFLAGS'
28601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28604
28605 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028606/* confdefs.h. */
28607_ACEOF
28608cat confdefs.h >>conftest.$ac_ext
28609cat >>conftest.$ac_ext <<_ACEOF
28610/* end confdefs.h. */
28611#include <ext/hash_map>
28612#ifdef HAVE_NAMESPACES
28613using namespace __gnu_cxx;
28614#endif
28615int
28616main ()
28617{
28618hash_map<int,int> t;
28619 ;
28620 return 0;
28621}
28622_ACEOF
28623rm -f conftest.$ac_objext
28624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028625 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028627 grep -v '^ *+' conftest.er1 >conftest.err
28628 rm -f conftest.er1
28629 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028632 { ac_try='test -z "$ac_cxx_werror_flag"
28633 || test ! -s conftest.err'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; }; then
28645 ac_cv_cxx_have_gnu_ext_hash_map=yes
28646else
28647 echo "$as_me: failed program was:" >&5
28648sed 's/^/| /' conftest.$ac_ext >&5
28649
28650ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028651fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028653 ac_ext=c
28654ac_cpp='$CPP $CPPFLAGS'
28655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28657ac_compiler_gnu=$ac_cv_c_compiler_gnu
28658
28659fi
28660echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28661echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028662 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28663 then
John Criswell9f011862004-09-24 18:28:00 +000028664
28665cat >>confdefs.h <<\_ACEOF
28666#define HAVE_GNU_EXT_HASH_MAP 1
28667_ACEOF
28668
28669 else
28670
28671cat >>confdefs.h <<\_ACEOF
28672#define HAVE_GNU_EXT_HASH_MAP 0
28673_ACEOF
28674
Brian Gaeke90583492003-11-10 03:06:28 +000028675 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028676
Brian Gaeke90583492003-11-10 03:06:28 +000028677 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28678echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28679if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28681else
John Criswell7a73b802003-06-30 21:59:07 +000028682
Brian Gaeke90583492003-11-10 03:06:28 +000028683 ac_ext=cc
28684ac_cpp='$CXXCPP $CPPFLAGS'
28685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28688
28689 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028690/* confdefs.h. */
28691_ACEOF
28692cat confdefs.h >>conftest.$ac_ext
28693cat >>conftest.$ac_ext <<_ACEOF
28694/* end confdefs.h. */
28695#include <hash_map>
28696int
28697main ()
28698{
28699hash_map<int,int> t;
28700 ;
28701 return 0;
28702}
28703_ACEOF
28704rm -f conftest.$ac_objext
28705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028706 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028708 grep -v '^ *+' conftest.er1 >conftest.err
28709 rm -f conftest.er1
28710 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028713 { ac_try='test -z "$ac_cxx_werror_flag"
28714 || test ! -s conftest.err'
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; } &&
28720 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722 (eval $ac_try) 2>&5
28723 ac_status=$?
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 ac_cv_cxx_have_global_hash_map=yes
28727else
28728 echo "$as_me: failed program was:" >&5
28729sed 's/^/| /' conftest.$ac_ext >&5
28730
28731ac_cv_cxx_have_global_hash_map=no
28732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028734 ac_ext=c
28735ac_cpp='$CPP $CPPFLAGS'
28736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28738ac_compiler_gnu=$ac_cv_c_compiler_gnu
28739
28740fi
28741echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28742echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028743 if test "$ac_cv_cxx_have_global_hash_map" = yes
28744 then
John Criswell9f011862004-09-24 18:28:00 +000028745
28746cat >>confdefs.h <<\_ACEOF
28747#define HAVE_GLOBAL_HASH_MAP 1
28748_ACEOF
28749
28750 else
28751
28752cat >>confdefs.h <<\_ACEOF
28753#define HAVE_GLOBAL_HASH_MAP 0
28754_ACEOF
28755
Brian Gaeke90583492003-11-10 03:06:28 +000028756 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028757
Brian Gaeke90583492003-11-10 03:06:28 +000028758echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28759echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28760if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028761 echo $ECHO_N "(cached) $ECHO_C" >&6
28762else
28763
John Criswell7a73b802003-06-30 21:59:07 +000028764 ac_ext=cc
28765ac_cpp='$CXXCPP $CPPFLAGS'
28766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28769
28770 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028771/* confdefs.h. */
28772_ACEOF
28773cat confdefs.h >>conftest.$ac_ext
28774cat >>conftest.$ac_ext <<_ACEOF
28775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028776#include <ext/hash_set>
28777#ifdef HAVE_NAMESPACES
28778using namespace std;
28779#endif
John Criswell7a73b802003-06-30 21:59:07 +000028780int
28781main ()
28782{
Brian Gaeke90583492003-11-10 03:06:28 +000028783hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028784 ;
28785 return 0;
28786}
28787_ACEOF
28788rm -f conftest.$ac_objext
28789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028790 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028792 grep -v '^ *+' conftest.er1 >conftest.err
28793 rm -f conftest.er1
28794 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028797 { ac_try='test -z "$ac_cxx_werror_flag"
28798 || test ! -s conftest.err'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; } &&
28804 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28807 ac_status=$?
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028810 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028811else
28812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028813sed 's/^/| /' conftest.$ac_ext >&5
28814
Brian Gaeke90583492003-11-10 03:06:28 +000028815ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028816fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028818 ac_ext=c
28819ac_cpp='$CPP $CPPFLAGS'
28820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28822ac_compiler_gnu=$ac_cv_c_compiler_gnu
28823
28824fi
28825echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28826echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028827 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28828 then
John Criswell9f011862004-09-24 18:28:00 +000028829
28830cat >>confdefs.h <<\_ACEOF
28831#define HAVE_STD_EXT_HASH_SET 1
28832_ACEOF
28833
28834 else
28835
28836cat >>confdefs.h <<\_ACEOF
28837#define HAVE_STD_EXT_HASH_SET 0
28838_ACEOF
28839
Brian Gaeke90583492003-11-10 03:06:28 +000028840 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028841
Brian Gaeke90583492003-11-10 03:06:28 +000028842 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28843echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28844if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28846else
28847
Brian Gaeke90583492003-11-10 03:06:28 +000028848 ac_ext=cc
28849ac_cpp='$CXXCPP $CPPFLAGS'
28850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28853
John Criswell7a73b802003-06-30 21:59:07 +000028854 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028855/* confdefs.h. */
28856_ACEOF
28857cat confdefs.h >>conftest.$ac_ext
28858cat >>conftest.$ac_ext <<_ACEOF
28859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028860#include <ext/hash_set>
28861#ifdef HAVE_NAMESPACES
28862using namespace __gnu_cxx;
28863#endif
John Criswell7a73b802003-06-30 21:59:07 +000028864int
28865main ()
28866{
Brian Gaeke90583492003-11-10 03:06:28 +000028867hash_set<int> t;
28868 ;
28869 return 0;
28870}
28871_ACEOF
28872rm -f conftest.$ac_objext
28873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028874 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028876 grep -v '^ *+' conftest.er1 >conftest.err
28877 rm -f conftest.er1
28878 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028881 { ac_try='test -z "$ac_cxx_werror_flag"
28882 || test ! -s conftest.err'
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28885 ac_status=$?
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; } &&
28888 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28891 ac_status=$?
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; }; then
28894 ac_cv_cxx_have_gnu_ext_hash_set=yes
28895else
28896 echo "$as_me: failed program was:" >&5
28897sed 's/^/| /' conftest.$ac_ext >&5
28898
28899ac_cv_cxx_have_gnu_ext_hash_set=no
28900fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028902 ac_ext=c
28903ac_cpp='$CPP $CPPFLAGS'
28904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906ac_compiler_gnu=$ac_cv_c_compiler_gnu
28907
28908fi
28909echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28910echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028911 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28912 then
John Criswell9f011862004-09-24 18:28:00 +000028913
28914cat >>confdefs.h <<\_ACEOF
28915#define HAVE_GNU_EXT_HASH_SET 1
28916_ACEOF
28917
28918 else
28919
28920cat >>confdefs.h <<\_ACEOF
28921#define HAVE_GNU_EXT_HASH_SET 0
28922_ACEOF
28923
Brian Gaeke90583492003-11-10 03:06:28 +000028924 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028925
Brian Gaeke90583492003-11-10 03:06:28 +000028926 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28927echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28928if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28930else
28931
Brian Gaeke90583492003-11-10 03:06:28 +000028932 ac_ext=cc
28933ac_cpp='$CXXCPP $CPPFLAGS'
28934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28937
28938 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028939/* confdefs.h. */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h. */
28944#include <hash_set>
28945int
28946main ()
28947{
John Criswell7a73b802003-06-30 21:59:07 +000028948hash_set<int> t; return 0;
28949 ;
28950 return 0;
28951}
28952_ACEOF
28953rm -f conftest.$ac_objext
28954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028955 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028957 grep -v '^ *+' conftest.er1 >conftest.err
28958 rm -f conftest.er1
28959 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028962 { ac_try='test -z "$ac_cxx_werror_flag"
28963 || test ! -s conftest.err'
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28966 ac_status=$?
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; } &&
28969 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028975 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028976else
28977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028978sed 's/^/| /' conftest.$ac_ext >&5
28979
Brian Gaeke90583492003-11-10 03:06:28 +000028980ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028981fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028983 ac_ext=c
28984ac_cpp='$CPP $CPPFLAGS'
28985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28987ac_compiler_gnu=$ac_cv_c_compiler_gnu
28988
John Criswell7a73b802003-06-30 21:59:07 +000028989fi
Brian Gaeke90583492003-11-10 03:06:28 +000028990echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28991echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028992 if test "$ac_cv_cxx_have_global_hash_set" = yes
28993 then
John Criswell9f011862004-09-24 18:28:00 +000028994
28995cat >>confdefs.h <<\_ACEOF
28996#define HAVE_GLOBAL_HASH_SET 1
28997_ACEOF
28998
28999 else
29000
29001cat >>confdefs.h <<\_ACEOF
29002#define HAVE_GLOBAL_HASH_SET 0
29003_ACEOF
29004
Brian Gaeke90583492003-11-10 03:06:28 +000029005 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029006
John Criswell7a73b802003-06-30 21:59:07 +000029007echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29008echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29009if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29011else
29012
John Criswell7a73b802003-06-30 21:59:07 +000029013 ac_ext=cc
29014ac_cpp='$CXXCPP $CPPFLAGS'
29015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29018
29019 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029020/* confdefs.h. */
29021_ACEOF
29022cat confdefs.h >>conftest.$ac_ext
29023cat >>conftest.$ac_ext <<_ACEOF
29024/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029025#include <iterator>
29026#ifdef HAVE_NAMESPACES
29027using namespace std;
29028#endif
John Criswell7a73b802003-06-30 21:59:07 +000029029int
29030main ()
29031{
29032iterator<int,int,int> t; return 0;
29033 ;
29034 return 0;
29035}
29036_ACEOF
29037rm -f conftest.$ac_objext
29038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029039 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029041 grep -v '^ *+' conftest.er1 >conftest.err
29042 rm -f conftest.er1
29043 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029046 { ac_try='test -z "$ac_cxx_werror_flag"
29047 || test ! -s conftest.err'
29048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049 (eval $ac_try) 2>&5
29050 ac_status=$?
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); }; } &&
29053 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29056 ac_status=$?
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 ac_cv_cxx_have_std_iterator=yes
29060else
29061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029062sed 's/^/| /' conftest.$ac_ext >&5
29063
John Criswell7a73b802003-06-30 21:59:07 +000029064ac_cv_cxx_have_std_iterator=no
29065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029067 ac_ext=c
29068ac_cpp='$CPP $CPPFLAGS'
29069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071ac_compiler_gnu=$ac_cv_c_compiler_gnu
29072
29073
29074fi
29075echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29076echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029077if test "$ac_cv_cxx_have_std_iterator" = yes
29078then
John Criswell40468462004-09-24 21:19:06 +000029079
29080cat >>confdefs.h <<\_ACEOF
29081#define HAVE_STD_ITERATOR 1
29082_ACEOF
29083
29084else
29085
29086cat >>confdefs.h <<\_ACEOF
29087#define HAVE_STD_ITERATOR 0
29088_ACEOF
29089
John Criswell7a73b802003-06-30 21:59:07 +000029090fi
29091
29092echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29093echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29094if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096else
29097
John Criswell7a73b802003-06-30 21:59:07 +000029098 ac_ext=cc
29099ac_cpp='$CXXCPP $CPPFLAGS'
29100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29103
29104 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029105/* confdefs.h. */
29106_ACEOF
29107cat confdefs.h >>conftest.$ac_ext
29108cat >>conftest.$ac_ext <<_ACEOF
29109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029110#include <iterator>
29111#ifdef HAVE_NAMESPACES
29112using namespace std;
29113#endif
John Criswell7a73b802003-06-30 21:59:07 +000029114int
29115main ()
29116{
John Criswellc78022e2003-07-29 19:11:58 +000029117bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029118 ;
29119 return 0;
29120}
29121_ACEOF
29122rm -f conftest.$ac_objext
29123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029124 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029125 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029126 grep -v '^ *+' conftest.er1 >conftest.err
29127 rm -f conftest.er1
29128 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029131 { ac_try='test -z "$ac_cxx_werror_flag"
29132 || test ! -s conftest.err'
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; } &&
29138 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140 (eval $ac_try) 2>&5
29141 ac_status=$?
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
29144 ac_cv_cxx_have_bi_iterator=yes
29145else
29146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029147sed 's/^/| /' conftest.$ac_ext >&5
29148
John Criswell7a73b802003-06-30 21:59:07 +000029149ac_cv_cxx_have_bi_iterator=no
29150fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029152 ac_ext=c
29153ac_cpp='$CPP $CPPFLAGS'
29154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156ac_compiler_gnu=$ac_cv_c_compiler_gnu
29157
29158
29159fi
29160echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29161echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029162if test "$ac_cv_cxx_have_bi_iterator" = yes
29163then
John Criswell40468462004-09-24 21:19:06 +000029164
29165cat >>confdefs.h <<\_ACEOF
29166#define HAVE_BI_ITERATOR 1
29167_ACEOF
29168
29169else
29170
29171cat >>confdefs.h <<\_ACEOF
29172#define HAVE_BI_ITERATOR 0
29173_ACEOF
29174
John Criswell7a73b802003-06-30 21:59:07 +000029175fi
29176
29177echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29178echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29179if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29181else
29182
John Criswell7a73b802003-06-30 21:59:07 +000029183 ac_ext=cc
29184ac_cpp='$CXXCPP $CPPFLAGS'
29185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29188
29189 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029190/* confdefs.h. */
29191_ACEOF
29192cat confdefs.h >>conftest.$ac_ext
29193cat >>conftest.$ac_ext <<_ACEOF
29194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029195#include <iterator>
29196#ifdef HAVE_NAMESPACES
29197using namespace std;
29198#endif
John Criswell7a73b802003-06-30 21:59:07 +000029199int
29200main ()
29201{
John Criswellc78022e2003-07-29 19:11:58 +000029202forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029203 ;
29204 return 0;
29205}
29206_ACEOF
29207rm -f conftest.$ac_objext
29208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029209 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029210 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029211 grep -v '^ *+' conftest.er1 >conftest.err
29212 rm -f conftest.er1
29213 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029216 { ac_try='test -z "$ac_cxx_werror_flag"
29217 || test ! -s conftest.err'
29218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29219 (eval $ac_try) 2>&5
29220 ac_status=$?
29221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 (exit $ac_status); }; } &&
29223 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225 (eval $ac_try) 2>&5
29226 ac_status=$?
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; }; then
29229 ac_cv_cxx_have_fwd_iterator=yes
29230else
29231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029232sed 's/^/| /' conftest.$ac_ext >&5
29233
John Criswell7a73b802003-06-30 21:59:07 +000029234ac_cv_cxx_have_fwd_iterator=no
29235fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029237 ac_ext=c
29238ac_cpp='$CPP $CPPFLAGS'
29239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29241ac_compiler_gnu=$ac_cv_c_compiler_gnu
29242
29243
29244fi
29245echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29246echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029247if test "$ac_cv_cxx_have_fwd_iterator" = yes
29248then
John Criswell40468462004-09-24 21:19:06 +000029249
29250cat >>confdefs.h <<\_ACEOF
29251#define HAVE_FWD_ITERATOR 1
29252_ACEOF
29253
29254else
29255
29256cat >>confdefs.h <<\_ACEOF
29257#define HAVE_FWD_ITERATOR 0
29258_ACEOF
29259
John Criswell7a73b802003-06-30 21:59:07 +000029260fi
29261
29262
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029263echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29264echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29265if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29267else
29268 ac_ext=cc
29269ac_cpp='$CXXCPP $CPPFLAGS'
29270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29273
Reid Spencerabec8f92004-10-27 23:03:44 +000029274 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029275/* confdefs.h. */
29276_ACEOF
29277cat confdefs.h >>conftest.$ac_ext
29278cat >>conftest.$ac_ext <<_ACEOF
29279/* end confdefs.h. */
29280#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029281int
29282main ()
29283{
29284float f; isnan(f);
29285 ;
29286 return 0;
29287}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029288_ACEOF
29289rm -f conftest.$ac_objext
29290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029291 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029293 grep -v '^ *+' conftest.er1 >conftest.err
29294 rm -f conftest.er1
29295 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029298 { ac_try='test -z "$ac_cxx_werror_flag"
29299 || test ! -s conftest.err'
29300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301 (eval $ac_try) 2>&5
29302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29308 ac_status=$?
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; }; then
29311 ac_cv_func_isnan_in_math_h=yes
29312else
29313 echo "$as_me: failed program was:" >&5
29314sed 's/^/| /' conftest.$ac_ext >&5
29315
29316ac_cv_func_isnan_in_math_h=no
29317fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029319 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029320ac_cpp='$CPP $CPPFLAGS'
29321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29323ac_compiler_gnu=$ac_cv_c_compiler_gnu
29324
29325fi
29326echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29327echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029328
29329
29330if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029331
29332cat >>confdefs.h <<\_ACEOF
29333#define HAVE_ISNAN_IN_MATH_H 1
29334_ACEOF
29335
Reid Spencerabec8f92004-10-27 23:03:44 +000029336fi
29337
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029338echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29339echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29340if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29341 echo $ECHO_N "(cached) $ECHO_C" >&6
29342else
29343 ac_ext=cc
29344ac_cpp='$CXXCPP $CPPFLAGS'
29345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29348
Reid Spencerabec8f92004-10-27 23:03:44 +000029349 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029350/* confdefs.h. */
29351_ACEOF
29352cat confdefs.h >>conftest.$ac_ext
29353cat >>conftest.$ac_ext <<_ACEOF
29354/* end confdefs.h. */
29355#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029356int
29357main ()
29358{
29359float f; isnan(f);
29360 ;
29361 return 0;
29362}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029363_ACEOF
29364rm -f conftest.$ac_objext
29365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029366 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029367 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029368 grep -v '^ *+' conftest.er1 >conftest.err
29369 rm -f conftest.er1
29370 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029373 { ac_try='test -z "$ac_cxx_werror_flag"
29374 || test ! -s conftest.err'
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; } &&
29380 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; }; then
29386 ac_cv_func_isnan_in_cmath=yes
29387else
29388 echo "$as_me: failed program was:" >&5
29389sed 's/^/| /' conftest.$ac_ext >&5
29390
29391ac_cv_func_isnan_in_cmath=no
29392fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029394 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029395ac_cpp='$CPP $CPPFLAGS'
29396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398ac_compiler_gnu=$ac_cv_c_compiler_gnu
29399
29400fi
29401echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29402echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029403
29404if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029405
29406cat >>confdefs.h <<\_ACEOF
29407#define HAVE_ISNAN_IN_CMATH 1
29408_ACEOF
29409
Reid Spencerabec8f92004-10-27 23:03:44 +000029410fi
29411
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029412echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29413echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29414if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29416else
29417 ac_ext=cc
29418ac_cpp='$CXXCPP $CPPFLAGS'
29419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29422
Reid Spencerabec8f92004-10-27 23:03:44 +000029423 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029424/* confdefs.h. */
29425_ACEOF
29426cat confdefs.h >>conftest.$ac_ext
29427cat >>conftest.$ac_ext <<_ACEOF
29428/* end confdefs.h. */
29429#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029430int
29431main ()
29432{
29433float f; std::isnan(f);
29434 ;
29435 return 0;
29436}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029437_ACEOF
29438rm -f conftest.$ac_objext
29439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029440 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029442 grep -v '^ *+' conftest.er1 >conftest.err
29443 rm -f conftest.er1
29444 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029447 { ac_try='test -z "$ac_cxx_werror_flag"
29448 || test ! -s conftest.err'
29449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450 (eval $ac_try) 2>&5
29451 ac_status=$?
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; } &&
29454 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29457 ac_status=$?
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 ac_cv_func_std_isnan_in_cmath=yes
29461else
29462 echo "$as_me: failed program was:" >&5
29463sed 's/^/| /' conftest.$ac_ext >&5
29464
29465ac_cv_func_std_isnan_in_cmath=no
29466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029468 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029469ac_cpp='$CPP $CPPFLAGS'
29470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29472ac_compiler_gnu=$ac_cv_c_compiler_gnu
29473
29474fi
29475echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29476echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029477
29478if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029479
29480cat >>confdefs.h <<\_ACEOF
29481#define HAVE_STD_ISNAN_IN_CMATH 1
29482_ACEOF
29483
Reid Spencerabec8f92004-10-27 23:03:44 +000029484fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029485
29486
Brian Gaeke52a551d2004-07-21 03:14:12 +000029487echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29488echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29489if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29491else
29492 ac_ext=cc
29493ac_cpp='$CXXCPP $CPPFLAGS'
29494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29497
Reid Spencerabec8f92004-10-27 23:03:44 +000029498 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029499/* confdefs.h. */
29500_ACEOF
29501cat confdefs.h >>conftest.$ac_ext
29502cat >>conftest.$ac_ext <<_ACEOF
29503/* end confdefs.h. */
29504#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029505int
29506main ()
29507{
29508float f; isinf(f);
29509 ;
29510 return 0;
29511}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029512_ACEOF
29513rm -f conftest.$ac_objext
29514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029515 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029516 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029517 grep -v '^ *+' conftest.er1 >conftest.err
29518 rm -f conftest.er1
29519 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029522 { ac_try='test -z "$ac_cxx_werror_flag"
29523 || test ! -s conftest.err'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29532 ac_status=$?
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; }; then
29535 ac_cv_func_isinf_in_math_h=yes
29536else
29537 echo "$as_me: failed program was:" >&5
29538sed 's/^/| /' conftest.$ac_ext >&5
29539
29540ac_cv_func_isinf_in_math_h=no
29541fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029543 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029544ac_cpp='$CPP $CPPFLAGS'
29545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29547ac_compiler_gnu=$ac_cv_c_compiler_gnu
29548
29549fi
29550echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29551echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029552
29553if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029554
29555cat >>confdefs.h <<\_ACEOF
29556#define HAVE_ISINF_IN_MATH_H 1
29557_ACEOF
29558
Reid Spencerabec8f92004-10-27 23:03:44 +000029559fi
29560
Brian Gaeke52a551d2004-07-21 03:14:12 +000029561echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29562echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29563if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565else
29566 ac_ext=cc
29567ac_cpp='$CXXCPP $CPPFLAGS'
29568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29571
Reid Spencerabec8f92004-10-27 23:03:44 +000029572 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029573/* confdefs.h. */
29574_ACEOF
29575cat confdefs.h >>conftest.$ac_ext
29576cat >>conftest.$ac_ext <<_ACEOF
29577/* end confdefs.h. */
29578#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029579int
29580main ()
29581{
29582float f; isinf(f);
29583 ;
29584 return 0;
29585}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029586_ACEOF
29587rm -f conftest.$ac_objext
29588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029589 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029590 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029591 grep -v '^ *+' conftest.er1 >conftest.err
29592 rm -f conftest.er1
29593 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029596 { ac_try='test -z "$ac_cxx_werror_flag"
29597 || test ! -s conftest.err'
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; } &&
29603 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 ac_cv_func_isinf_in_cmath=yes
29610else
29611 echo "$as_me: failed program was:" >&5
29612sed 's/^/| /' conftest.$ac_ext >&5
29613
29614ac_cv_func_isinf_in_cmath=no
29615fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029617 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029618ac_cpp='$CPP $CPPFLAGS'
29619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621ac_compiler_gnu=$ac_cv_c_compiler_gnu
29622
29623fi
29624echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29625echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029626
29627if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029628
29629cat >>confdefs.h <<\_ACEOF
29630#define HAVE_ISINF_IN_CMATH 1
29631_ACEOF
29632
Reid Spencerabec8f92004-10-27 23:03:44 +000029633fi
29634
Brian Gaeke52a551d2004-07-21 03:14:12 +000029635echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29636echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29637if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29638 echo $ECHO_N "(cached) $ECHO_C" >&6
29639else
29640 ac_ext=cc
29641ac_cpp='$CXXCPP $CPPFLAGS'
29642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29645
Reid Spencerabec8f92004-10-27 23:03:44 +000029646 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029647/* confdefs.h. */
29648_ACEOF
29649cat confdefs.h >>conftest.$ac_ext
29650cat >>conftest.$ac_ext <<_ACEOF
29651/* end confdefs.h. */
29652#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029653int
29654main ()
29655{
29656float f; std::isinf(f)}
29657 ;
29658 return 0;
29659}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029660_ACEOF
29661rm -f conftest.$ac_objext
29662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029663 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029665 grep -v '^ *+' conftest.er1 >conftest.err
29666 rm -f conftest.er1
29667 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029670 { ac_try='test -z "$ac_cxx_werror_flag"
29671 || test ! -s conftest.err'
29672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673 (eval $ac_try) 2>&5
29674 ac_status=$?
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; } &&
29677 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679 (eval $ac_try) 2>&5
29680 ac_status=$?
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; }; then
29683 ac_cv_func_std_isinf_in_cmath=yes
29684else
29685 echo "$as_me: failed program was:" >&5
29686sed 's/^/| /' conftest.$ac_ext >&5
29687
29688ac_cv_func_std_isinf_in_cmath=no
29689fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029691 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029692ac_cpp='$CPP $CPPFLAGS'
29693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695ac_compiler_gnu=$ac_cv_c_compiler_gnu
29696
29697fi
29698echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29699echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029700
29701if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029702
29703cat >>confdefs.h <<\_ACEOF
29704#define HAVE_STD_ISINF_IN_CMATH 1
29705_ACEOF
29706
Reid Spencerabec8f92004-10-27 23:03:44 +000029707fi
29708
Brian Gaeked59a6472004-07-21 03:33:58 +000029709echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29710echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29711if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29713else
29714 ac_ext=cc
29715ac_cpp='$CXXCPP $CPPFLAGS'
29716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29719
Reid Spencerabec8f92004-10-27 23:03:44 +000029720 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029721/* confdefs.h. */
29722_ACEOF
29723cat confdefs.h >>conftest.$ac_ext
29724cat >>conftest.$ac_ext <<_ACEOF
29725/* end confdefs.h. */
29726#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029727int
29728main ()
29729{
29730float f; finite(f);
29731 ;
29732 return 0;
29733}
Brian Gaeked59a6472004-07-21 03:33:58 +000029734_ACEOF
29735rm -f conftest.$ac_objext
29736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029737 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029739 grep -v '^ *+' conftest.er1 >conftest.err
29740 rm -f conftest.er1
29741 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029744 { ac_try='test -z "$ac_cxx_werror_flag"
29745 || test ! -s conftest.err'
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; } &&
29751 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29753 (eval $ac_try) 2>&5
29754 ac_status=$?
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); }; }; then
29757 ac_cv_func_finite_in_ieeefp_h=yes
29758else
29759 echo "$as_me: failed program was:" >&5
29760sed 's/^/| /' conftest.$ac_ext >&5
29761
29762ac_cv_func_finite_in_ieeefp_h=no
29763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029765 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029766ac_cpp='$CPP $CPPFLAGS'
29767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29769ac_compiler_gnu=$ac_cv_c_compiler_gnu
29770
29771fi
29772echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29773echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029774
Brian Gaeke6802b552004-10-28 05:06:45 +000029775if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029776
29777cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029778#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029779_ACEOF
29780
Reid Spencerabec8f92004-10-27 23:03:44 +000029781fi
29782
29783
29784
John Criswell7a73b802003-06-30 21:59:07 +000029785
29786
29787for ac_header in stdlib.h unistd.h
29788do
29789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29790if eval "test \"\${$as_ac_Header+set}\" = set"; then
29791 echo "$as_me:$LINENO: checking for $ac_header" >&5
29792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29793if eval "test \"\${$as_ac_Header+set}\" = set"; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
29795fi
29796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29798else
29799 # Is the header compilable?
29800echo "$as_me:$LINENO: checking $ac_header usability" >&5
29801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29802cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029803/* confdefs.h. */
29804_ACEOF
29805cat confdefs.h >>conftest.$ac_ext
29806cat >>conftest.$ac_ext <<_ACEOF
29807/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029808$ac_includes_default
29809#include <$ac_header>
29810_ACEOF
29811rm -f conftest.$ac_objext
29812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029813 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029814 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029815 grep -v '^ *+' conftest.er1 >conftest.err
29816 rm -f conftest.er1
29817 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029820 { ac_try='test -z "$ac_c_werror_flag"
29821 || test ! -s conftest.err'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829 (eval $ac_try) 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 ac_header_compiler=yes
29834else
29835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029836sed 's/^/| /' conftest.$ac_ext >&5
29837
John Criswell7a73b802003-06-30 21:59:07 +000029838ac_header_compiler=no
29839fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29842echo "${ECHO_T}$ac_header_compiler" >&6
29843
29844# Is the header present?
29845echo "$as_me:$LINENO: checking $ac_header presence" >&5
29846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29847cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029848/* confdefs.h. */
29849_ACEOF
29850cat confdefs.h >>conftest.$ac_ext
29851cat >>conftest.$ac_ext <<_ACEOF
29852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029853#include <$ac_header>
29854_ACEOF
29855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29857 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029858 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } >/dev/null; then
29863 if test -s conftest.err; then
29864 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029866 else
29867 ac_cpp_err=
29868 fi
29869else
29870 ac_cpp_err=yes
29871fi
29872if test -z "$ac_cpp_err"; then
29873 ac_header_preproc=yes
29874else
29875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029876sed 's/^/| /' conftest.$ac_ext >&5
29877
John Criswell7a73b802003-06-30 21:59:07 +000029878 ac_header_preproc=no
29879fi
29880rm -f conftest.err conftest.$ac_ext
29881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29882echo "${ECHO_T}$ac_header_preproc" >&6
29883
29884# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29886 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29891 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029892 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029893 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029906 (
29907 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029908## ----------------------------------- ##
29909## Report this to llvmbugs@cs.uiuc.edu ##
29910## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029911_ASBOX
29912 ) |
29913 sed "s/^/$as_me: WARNING: /" >&2
29914 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029915esac
29916echo "$as_me:$LINENO: checking for $ac_header" >&5
29917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29918if eval "test \"\${$as_ac_Header+set}\" = set"; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29920else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029921 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029922fi
29923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29925
29926fi
29927if test `eval echo '${'$as_ac_Header'}'` = yes; then
29928 cat >>confdefs.h <<_ACEOF
29929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29930_ACEOF
29931
29932fi
29933
29934done
29935
29936
29937for ac_func in getpagesize
29938do
29939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940echo "$as_me:$LINENO: checking for $ac_func" >&5
29941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29942if eval "test \"\${$as_ac_var+set}\" = set"; then
29943 echo $ECHO_N "(cached) $ECHO_C" >&6
29944else
29945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029946/* confdefs.h. */
29947_ACEOF
29948cat confdefs.h >>conftest.$ac_ext
29949cat >>conftest.$ac_ext <<_ACEOF
29950/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29953#define $ac_func innocuous_$ac_func
29954
John Criswell7a73b802003-06-30 21:59:07 +000029955/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029956 which can conflict with char $ac_func (); below.
29957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29958 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029959
John Criswell0c38eaf2003-09-10 15:17:25 +000029960#ifdef __STDC__
29961# include <limits.h>
29962#else
29963# include <assert.h>
29964#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029965
29966#undef $ac_func
29967
John Criswell7a73b802003-06-30 21:59:07 +000029968/* Override any gcc2 internal prototype to avoid an error. */
29969#ifdef __cplusplus
29970extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029971{
John Criswell7a73b802003-06-30 21:59:07 +000029972#endif
29973/* We use char because int might match the return type of a gcc2
29974 builtin and then its argument prototype would still apply. */
29975char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029976/* The GNU C library defines this for functions which it implements
29977 to always fail with ENOSYS. Some functions are actually named
29978 something starting with __ and the normal name is an alias. */
29979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29980choke me
29981#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029982char (*f) () = $ac_func;
29983#endif
29984#ifdef __cplusplus
29985}
John Criswell7a73b802003-06-30 21:59:07 +000029986#endif
29987
John Criswell0c38eaf2003-09-10 15:17:25 +000029988int
29989main ()
29990{
29991return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029992 ;
29993 return 0;
29994}
29995_ACEOF
29996rm -f conftest.$ac_objext conftest$ac_exeext
29997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029998 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030000 grep -v '^ *+' conftest.er1 >conftest.err
30001 rm -f conftest.er1
30002 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030005 { ac_try='test -z "$ac_c_werror_flag"
30006 || test ! -s conftest.err'
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; } &&
30012 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30014 (eval $ac_try) 2>&5
30015 ac_status=$?
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); }; }; then
30018 eval "$as_ac_var=yes"
30019else
30020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030021sed 's/^/| /' conftest.$ac_ext >&5
30022
John Criswell7a73b802003-06-30 21:59:07 +000030023eval "$as_ac_var=no"
30024fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030025rm -f conftest.err conftest.$ac_objext \
30026 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030027fi
30028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30030if test `eval echo '${'$as_ac_var'}'` = yes; then
30031 cat >>confdefs.h <<_ACEOF
30032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30033_ACEOF
30034
30035fi
30036done
30037
30038echo "$as_me:$LINENO: checking for working mmap" >&5
30039echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30040if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30041 echo $ECHO_N "(cached) $ECHO_C" >&6
30042else
30043 if test "$cross_compiling" = yes; then
30044 ac_cv_func_mmap_fixed_mapped=no
30045else
30046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030047/* confdefs.h. */
30048_ACEOF
30049cat confdefs.h >>conftest.$ac_ext
30050cat >>conftest.$ac_ext <<_ACEOF
30051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030052$ac_includes_default
30053/* malloc might have been renamed as rpl_malloc. */
30054#undef malloc
30055
30056/* Thanks to Mike Haertel and Jim Avera for this test.
30057 Here is a matrix of mmap possibilities:
30058 mmap private not fixed
30059 mmap private fixed at somewhere currently unmapped
30060 mmap private fixed at somewhere already mapped
30061 mmap shared not fixed
30062 mmap shared fixed at somewhere currently unmapped
30063 mmap shared fixed at somewhere already mapped
30064 For private mappings, we should verify that changes cannot be read()
30065 back from the file, nor mmap's back from the file at a different
30066 address. (There have been systems where private was not correctly
30067 implemented like the infamous i386 svr4.0, and systems where the
30068 VM page cache was not coherent with the file system buffer cache
30069 like early versions of FreeBSD and possibly contemporary NetBSD.)
30070 For shared mappings, we should conversely verify that changes get
30071 propagated back to all the places they're supposed to be.
30072
30073 Grep wants private fixed already mapped.
30074 The main things grep needs to know about mmap are:
30075 * does it exist and is it safe to write into the mmap'd area
30076 * how to use it (BSD variants) */
30077
30078#include <fcntl.h>
30079#include <sys/mman.h>
30080
30081#if !STDC_HEADERS && !HAVE_STDLIB_H
30082char *malloc ();
30083#endif
30084
30085/* This mess was copied from the GNU getpagesize.h. */
30086#if !HAVE_GETPAGESIZE
30087/* Assume that all systems that can run configure have sys/param.h. */
30088# if !HAVE_SYS_PARAM_H
30089# define HAVE_SYS_PARAM_H 1
30090# endif
30091
30092# ifdef _SC_PAGESIZE
30093# define getpagesize() sysconf(_SC_PAGESIZE)
30094# else /* no _SC_PAGESIZE */
30095# if HAVE_SYS_PARAM_H
30096# include <sys/param.h>
30097# ifdef EXEC_PAGESIZE
30098# define getpagesize() EXEC_PAGESIZE
30099# else /* no EXEC_PAGESIZE */
30100# ifdef NBPG
30101# define getpagesize() NBPG * CLSIZE
30102# ifndef CLSIZE
30103# define CLSIZE 1
30104# endif /* no CLSIZE */
30105# else /* no NBPG */
30106# ifdef NBPC
30107# define getpagesize() NBPC
30108# else /* no NBPC */
30109# ifdef PAGESIZE
30110# define getpagesize() PAGESIZE
30111# endif /* PAGESIZE */
30112# endif /* no NBPC */
30113# endif /* no NBPG */
30114# endif /* no EXEC_PAGESIZE */
30115# else /* no HAVE_SYS_PARAM_H */
30116# define getpagesize() 8192 /* punt totally */
30117# endif /* no HAVE_SYS_PARAM_H */
30118# endif /* no _SC_PAGESIZE */
30119
30120#endif /* no HAVE_GETPAGESIZE */
30121
30122int
30123main ()
30124{
30125 char *data, *data2, *data3;
30126 int i, pagesize;
30127 int fd;
30128
30129 pagesize = getpagesize ();
30130
30131 /* First, make a file with some known garbage in it. */
30132 data = (char *) malloc (pagesize);
30133 if (!data)
30134 exit (1);
30135 for (i = 0; i < pagesize; ++i)
30136 *(data + i) = rand ();
30137 umask (0);
30138 fd = creat ("conftest.mmap", 0600);
30139 if (fd < 0)
30140 exit (1);
30141 if (write (fd, data, pagesize) != pagesize)
30142 exit (1);
30143 close (fd);
30144
30145 /* Next, try to mmap the file at a fixed address which already has
30146 something else allocated at it. If we can, also make sure that
30147 we see the same garbage. */
30148 fd = open ("conftest.mmap", O_RDWR);
30149 if (fd < 0)
30150 exit (1);
30151 data2 = (char *) malloc (2 * pagesize);
30152 if (!data2)
30153 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030154 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030157 exit (1);
30158 for (i = 0; i < pagesize; ++i)
30159 if (*(data + i) != *(data2 + i))
30160 exit (1);
30161
30162 /* Finally, make sure that changes to the mapped area do not
30163 percolate back to the file as seen by read(). (This is a bug on
30164 some variants of i386 svr4.0.) */
30165 for (i = 0; i < pagesize; ++i)
30166 *(data2 + i) = *(data2 + i) + 1;
30167 data3 = (char *) malloc (pagesize);
30168 if (!data3)
30169 exit (1);
30170 if (read (fd, data3, pagesize) != pagesize)
30171 exit (1);
30172 for (i = 0; i < pagesize; ++i)
30173 if (*(data + i) != *(data3 + i))
30174 exit (1);
30175 close (fd);
30176 exit (0);
30177}
30178_ACEOF
30179rm -f conftest$ac_exeext
30180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30181 (eval $ac_link) 2>&5
30182 ac_status=$?
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; }; then
30190 ac_cv_func_mmap_fixed_mapped=yes
30191else
30192 echo "$as_me: program exited with status $ac_status" >&5
30193echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030194sed 's/^/| /' conftest.$ac_ext >&5
30195
John Criswell7a73b802003-06-30 21:59:07 +000030196( exit $ac_status )
30197ac_cv_func_mmap_fixed_mapped=no
30198fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030200fi
30201fi
30202echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30203echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30204if test $ac_cv_func_mmap_fixed_mapped = yes; then
30205
30206cat >>confdefs.h <<\_ACEOF
30207#define HAVE_MMAP 1
30208_ACEOF
30209
30210fi
30211rm -f conftest.mmap
30212
30213echo "$as_me:$LINENO: checking for mmap of files" >&5
30214echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30215if test "${ac_cv_func_mmap_file+set}" = set; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30217else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030218 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030219ac_cpp='$CPP $CPPFLAGS'
30220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222ac_compiler_gnu=$ac_cv_c_compiler_gnu
30223
30224 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030225 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030226else
30227 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030228
Reid Spencer777ce172004-09-20 04:09:56 +000030229 /* confdefs.h. */
30230_ACEOF
30231cat confdefs.h >>conftest.$ac_ext
30232cat >>conftest.$ac_ext <<_ACEOF
30233/* end confdefs.h. */
30234
John Criswell7a73b802003-06-30 21:59:07 +000030235#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030236#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030237#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030238
30239int
30240main ()
30241{
John Criswell7a73b802003-06-30 21:59:07 +000030242
30243 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030244 fd = creat ("foo",0777);
30245 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30246 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030247 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030248 ;
30249 return 0;
30250}
John Criswell7a73b802003-06-30 21:59:07 +000030251_ACEOF
30252rm -f conftest$ac_exeext
30253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30254 (eval $ac_link) 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; }; then
30263 ac_cv_func_mmap_file=yes
30264else
30265 echo "$as_me: program exited with status $ac_status" >&5
30266echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030267sed 's/^/| /' conftest.$ac_ext >&5
30268
John Criswell7a73b802003-06-30 21:59:07 +000030269( exit $ac_status )
30270ac_cv_func_mmap_file=no
30271fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030272rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030273fi
30274 ac_ext=c
30275ac_cpp='$CPP $CPPFLAGS'
30276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30278ac_compiler_gnu=$ac_cv_c_compiler_gnu
30279
30280
30281fi
30282echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30283echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30284if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030285
30286cat >>confdefs.h <<\_ACEOF
30287#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030288_ACEOF
30289
30290 MMAP_FILE=yes
30291
30292fi
30293
Reid Spencer7931a782004-12-27 06:15:02 +000030294echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30295echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30296if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30298else
Reid Spencer582a23c2004-12-29 07:07:57 +000030299 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030300 ac_cv_need_dev_zero_for_mmap=yes
30301 else
30302 ac_cv_need_dev_zero_for_mmap=no
30303 fi
30304
30305fi
30306echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30307echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30308if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30309
30310cat >>confdefs.h <<\_ACEOF
30311#define NEED_DEV_ZERO_FOR_MMAP 1
30312_ACEOF
30313
30314fi
John Criswell7a73b802003-06-30 21:59:07 +000030315echo "$as_me:$LINENO: checking for mprotect" >&5
30316echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30317if test "${ac_cv_func_mprotect+set}" = set; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30319else
30320 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030321/* confdefs.h. */
30322_ACEOF
30323cat confdefs.h >>conftest.$ac_ext
30324cat >>conftest.$ac_ext <<_ACEOF
30325/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030326/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30328#define mprotect innocuous_mprotect
30329
John Criswell7a73b802003-06-30 21:59:07 +000030330/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030331 which can conflict with char mprotect (); below.
30332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30333 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030334
John Criswell0c38eaf2003-09-10 15:17:25 +000030335#ifdef __STDC__
30336# include <limits.h>
30337#else
30338# include <assert.h>
30339#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030340
30341#undef mprotect
30342
John Criswell7a73b802003-06-30 21:59:07 +000030343/* Override any gcc2 internal prototype to avoid an error. */
30344#ifdef __cplusplus
30345extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030346{
John Criswell7a73b802003-06-30 21:59:07 +000030347#endif
30348/* We use char because int might match the return type of a gcc2
30349 builtin and then its argument prototype would still apply. */
30350char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030351/* The GNU C library defines this for functions which it implements
30352 to always fail with ENOSYS. Some functions are actually named
30353 something starting with __ and the normal name is an alias. */
30354#if defined (__stub_mprotect) || defined (__stub___mprotect)
30355choke me
30356#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030357char (*f) () = mprotect;
30358#endif
30359#ifdef __cplusplus
30360}
John Criswell7a73b802003-06-30 21:59:07 +000030361#endif
30362
John Criswell0c38eaf2003-09-10 15:17:25 +000030363int
30364main ()
30365{
30366return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030367 ;
30368 return 0;
30369}
30370_ACEOF
30371rm -f conftest.$ac_objext conftest$ac_exeext
30372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030373 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030375 grep -v '^ *+' conftest.er1 >conftest.err
30376 rm -f conftest.er1
30377 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030380 { ac_try='test -z "$ac_c_werror_flag"
30381 || test ! -s conftest.err'
30382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383 (eval $ac_try) 2>&5
30384 ac_status=$?
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 (eval $ac_try) 2>&5
30390 ac_status=$?
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; }; then
30393 ac_cv_func_mprotect=yes
30394else
30395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030396sed 's/^/| /' conftest.$ac_ext >&5
30397
John Criswell7a73b802003-06-30 21:59:07 +000030398ac_cv_func_mprotect=no
30399fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030400rm -f conftest.err conftest.$ac_objext \
30401 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030402fi
30403echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30404echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30405if test $ac_cv_func_mprotect = yes; then
30406 :
30407else
30408 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30409echo "$as_me: error: Function mprotect() required but not found" >&2;}
30410 { (exit 1); exit 1; }; }
30411fi
30412
30413
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030414if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030415then
Reid Spencer582a23c2004-12-29 07:07:57 +000030416 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30417echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030418fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030419if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030420then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030421 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30422echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030423fi
John Criswell7a73b802003-06-30 21:59:07 +000030424
30425
Brian Gaekef3b24102003-11-16 18:38:14 +000030426echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30427echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030428if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30430else
30431 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030432if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030433 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030434 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030435 if test $? -eq 0 ; then
30436 llvm_cv_llvmgcc_sanity="yes"
30437 fi
30438 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030439fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030440fi
30441echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30442echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30443
30444if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030445 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030446 LLVMCC1=$llvmcc1path
30447
Reid Spencer502935f2004-12-22 05:56:56 +000030448 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030449 LLVMCC1PLUS=$llvmcc1pluspath
30450
Reid Spencer502935f2004-12-22 05:56:56 +000030451 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30452 LLVMGCCDIR=$llvmgccdir
30453
Brian Gaekef3b24102003-11-16 18:38:14 +000030454fi
30455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030456SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030457
30458
Reid Spencere9de0912004-08-20 09:03:57 +000030459# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030460# information into substitutions that will end up in Makefile.config.in
30461# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030462eval LLVM_PREFIX="${prefix}";
30463eval LLVM_BINDIR="${prefix}/bin";
30464eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030465eval LLVM_DATADIR="${prefix}/share/llvm";
30466eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30467eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030468eval LLVM_INCLUDEDIR="${prefix}/include";
30469eval LLVM_INFODIR="${prefix}/info";
30470eval LLVM_MANDIR="${prefix}/man";
30471LLVM_CONFIGTIME=`date`
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030483# Place the various directores into the config.h file as #defines so that we
30484# can know about the installation paths within LLVM.
30485
Reid Spencere9de0912004-08-20 09:03:57 +000030486cat >>confdefs.h <<_ACEOF
30487#define LLVM_PREFIX "$LLVM_PREFIX"
30488_ACEOF
30489
30490
30491cat >>confdefs.h <<_ACEOF
30492#define LLVM_BINDIR "$LLVM_BINDIR"
30493_ACEOF
30494
30495
30496cat >>confdefs.h <<_ACEOF
30497#define LLVM_LIBDIR "$LLVM_LIBDIR"
30498_ACEOF
30499
30500
30501cat >>confdefs.h <<_ACEOF
30502#define LLVM_DATADIR "$LLVM_DATADIR"
30503_ACEOF
30504
30505
30506cat >>confdefs.h <<_ACEOF
30507#define LLVM_DATADIR "$LLVM_DOCSDIR"
30508_ACEOF
30509
30510
30511cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030512#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030513_ACEOF
30514
30515
30516cat >>confdefs.h <<_ACEOF
30517#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30518_ACEOF
30519
30520
30521cat >>confdefs.h <<_ACEOF
30522#define LLVM_INFODIR "$LLVM_INFODIR"
30523_ACEOF
30524
30525
30526cat >>confdefs.h <<_ACEOF
30527#define LLVM_MANDIR "$LLVM_MANDIR"
30528_ACEOF
30529
30530
30531cat >>confdefs.h <<_ACEOF
30532#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30533_ACEOF
30534
30535
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030536
30537 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30538
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030539 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30540
30541 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30542
30543 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30544
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030545 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30546
30547
30548 ac_config_files="$ac_config_files Makefile.config"
30549
30550
Reid Spencer1f319422004-11-29 04:56:35 +000030551 ac_config_files="$ac_config_files docs/doxygen.cfg"
30552
30553
Reid Spencerc0682832005-02-24 19:05:19 +000030554 ac_config_commands="$ac_config_commands setup"
30555
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030556 ac_config_commands="$ac_config_commands Makefile"
30557
30558
30559 ac_config_commands="$ac_config_commands Makefile.common"
30560
30561
30562 ac_config_commands="$ac_config_commands examples/Makefile"
30563
30564
30565 ac_config_commands="$ac_config_commands lib/Makefile"
30566
30567
30568 ac_config_commands="$ac_config_commands runtime/Makefile"
30569
30570
30571 ac_config_commands="$ac_config_commands test/Makefile"
30572
30573
30574 ac_config_commands="$ac_config_commands test/Makefile.tests"
30575
30576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030577 ac_config_commands="$ac_config_commands tools/Makefile"
30578
30579
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030580 ac_config_commands="$ac_config_commands utils/Makefile"
30581
30582
30583 ac_config_commands="$ac_config_commands projects/Makefile"
30584
30585
30586
John Criswell7a73b802003-06-30 21:59:07 +000030587cat >confcache <<\_ACEOF
30588# This file is a shell script that caches the results of configure
30589# tests run on this system so they can be shared between configure
30590# scripts and configure runs, see configure's option --config-cache.
30591# It is not useful on other systems. If it contains results you don't
30592# want to keep, you may remove or edit it.
30593#
30594# config.status only pays attention to the cache file if you give it
30595# the --recheck option to rerun configure.
30596#
John Criswell0c38eaf2003-09-10 15:17:25 +000030597# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030598# loading this file, other *unset* `ac_cv_foo' will be assigned the
30599# following values.
30600
30601_ACEOF
30602
30603# The following way of writing the cache mishandles newlines in values,
30604# but we know of no workaround that is simple, portable, and efficient.
30605# So, don't put newlines in cache variables' values.
30606# Ultrix sh set writes to stderr and can't be redirected directly,
30607# and sets the high bit in the cache file unless we assign to the vars.
30608{
30609 (set) 2>&1 |
30610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30611 *ac_space=\ *)
30612 # `set' does not quote correctly, so add quotes (double-quote
30613 # substitution turns \\\\ into \\, and sed turns \\ into \).
30614 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030615 "s/'/'\\\\''/g;
30616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030617 ;;
30618 *)
30619 # `set' quotes correctly as required by POSIX, so do not add quotes.
30620 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030621 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030622 ;;
30623 esac;
30624} |
30625 sed '
30626 t clear
30627 : clear
30628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30629 t end
30630 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30631 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030632if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030633 if test -w $cache_file; then
30634 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30635 cat confcache >$cache_file
30636 else
30637 echo "not updating unwritable cache $cache_file"
30638 fi
30639fi
30640rm -f confcache
30641
30642test "x$prefix" = xNONE && prefix=$ac_default_prefix
30643# Let make expand exec_prefix.
30644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30645
30646# VPATH may cause trouble with some makes, so we remove $(srcdir),
30647# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30648# trailing colons and then remove the whole line if VPATH becomes empty
30649# (actually we leave an empty line to preserve line numbers).
30650if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030652s/:*\$(srcdir):*/:/;
30653s/:*\${srcdir}:*/:/;
30654s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030655s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030656s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030657s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030658}'
30659fi
30660
30661DEFS=-DHAVE_CONFIG_H
30662
John Criswell0c38eaf2003-09-10 15:17:25 +000030663ac_libobjs=
30664ac_ltlibobjs=
30665for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30666 # 1. Remove the extension, and $U if already installed.
30667 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030668 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030669 # 2. Add them.
30670 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30671 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30672done
30673LIBOBJS=$ac_libobjs
30674
30675LTLIBOBJS=$ac_ltlibobjs
30676
30677
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030678if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30679 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30680Usually this means the macro was only invoked conditionally." >&5
30681echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30682Usually this means the macro was only invoked conditionally." >&2;}
30683 { (exit 1); exit 1; }; }
30684fi
30685if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30686 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30687Usually this means the macro was only invoked conditionally." >&5
30688echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30689Usually this means the macro was only invoked conditionally." >&2;}
30690 { (exit 1); exit 1; }; }
30691fi
John Criswell7a73b802003-06-30 21:59:07 +000030692
30693: ${CONFIG_STATUS=./config.status}
30694ac_clean_files_save=$ac_clean_files
30695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30696{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30697echo "$as_me: creating $CONFIG_STATUS" >&6;}
30698cat >$CONFIG_STATUS <<_ACEOF
30699#! $SHELL
30700# Generated by $as_me.
30701# Run this file to recreate the current configuration.
30702# Compiler output produced by configure, useful for debugging
30703# configure, is in config.log if it exists.
30704
30705debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030706ac_cs_recheck=false
30707ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030708SHELL=\${CONFIG_SHELL-$SHELL}
30709_ACEOF
30710
30711cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030712## --------------------- ##
30713## M4sh Initialization. ##
30714## --------------------- ##
30715
30716# Be Bourne compatible
30717if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30718 emulate sh
30719 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030720 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30721 # is contrary to our usage. Disable this feature.
30722 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030723elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30724 set -o posix
30725fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030726DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030727
John Criswell7a73b802003-06-30 21:59:07 +000030728# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030729if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030730 as_unset=unset
30731else
30732 as_unset=false
30733fi
30734
John Criswell0c38eaf2003-09-10 15:17:25 +000030735
30736# Work around bugs in pre-3.0 UWIN ksh.
30737$as_unset ENV MAIL MAILPATH
30738PS1='$ '
30739PS2='> '
30740PS4='+ '
30741
30742# NLS nuisances.
30743for as_var in \
30744 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30745 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30746 LC_TELEPHONE LC_TIME
30747do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030748 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030749 eval $as_var=C; export $as_var
30750 else
30751 $as_unset $as_var
30752 fi
30753done
30754
30755# Required to use basename.
30756if expr a : '\(a\)' >/dev/null 2>&1; then
30757 as_expr=expr
30758else
30759 as_expr=false
30760fi
30761
30762if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30763 as_basename=basename
30764else
30765 as_basename=false
30766fi
John Criswell7a73b802003-06-30 21:59:07 +000030767
30768
30769# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030770as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030771$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30772 X"$0" : 'X\(//\)$' \| \
30773 X"$0" : 'X\(/\)$' \| \
30774 . : '\(.\)' 2>/dev/null ||
30775echo X/"$0" |
30776 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30777 /^X\/\(\/\/\)$/{ s//\1/; q; }
30778 /^X\/\(\/\).*/{ s//\1/; q; }
30779 s/.*/./; q'`
30780
John Criswell0c38eaf2003-09-10 15:17:25 +000030781
John Criswell7a73b802003-06-30 21:59:07 +000030782# PATH needs CR, and LINENO needs CR and PATH.
30783# Avoid depending upon Character Ranges.
30784as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30785as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30786as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30787as_cr_digits='0123456789'
30788as_cr_alnum=$as_cr_Letters$as_cr_digits
30789
30790# The user is always right.
30791if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030792 echo "#! /bin/sh" >conf$$.sh
30793 echo "exit 0" >>conf$$.sh
30794 chmod +x conf$$.sh
30795 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030796 PATH_SEPARATOR=';'
30797 else
30798 PATH_SEPARATOR=:
30799 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030800 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030801fi
30802
30803
30804 as_lineno_1=$LINENO
30805 as_lineno_2=$LINENO
30806 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30807 test "x$as_lineno_1" != "x$as_lineno_2" &&
30808 test "x$as_lineno_3" = "x$as_lineno_2" || {
30809 # Find who we are. Look in the path if we contain no path at all
30810 # relative or not.
30811 case $0 in
30812 *[\\/]* ) as_myself=$0 ;;
30813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30814for as_dir in $PATH
30815do
30816 IFS=$as_save_IFS
30817 test -z "$as_dir" && as_dir=.
30818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30819done
30820
30821 ;;
30822 esac
30823 # We did not find ourselves, most probably we were run as `sh COMMAND'
30824 # in which case we are not to be found in the path.
30825 if test "x$as_myself" = x; then
30826 as_myself=$0
30827 fi
30828 if test ! -f "$as_myself"; then
30829 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30830echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30831 { (exit 1); exit 1; }; }
30832 fi
30833 case $CONFIG_SHELL in
30834 '')
30835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30836for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30837do
30838 IFS=$as_save_IFS
30839 test -z "$as_dir" && as_dir=.
30840 for as_base in sh bash ksh sh5; do
30841 case $as_dir in
30842 /*)
30843 if ("$as_dir/$as_base" -c '
30844 as_lineno_1=$LINENO
30845 as_lineno_2=$LINENO
30846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30847 test "x$as_lineno_1" != "x$as_lineno_2" &&
30848 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030849 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30850 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030851 CONFIG_SHELL=$as_dir/$as_base
30852 export CONFIG_SHELL
30853 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30854 fi;;
30855 esac
30856 done
30857done
30858;;
30859 esac
30860
30861 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30862 # uniformly replaced by the line number. The first 'sed' inserts a
30863 # line-number line before each line; the second 'sed' does the real
30864 # work. The second script uses 'N' to pair each line-number line
30865 # with the numbered line, and appends trailing '-' during
30866 # substitution so that $LINENO is not a special case at line end.
30867 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30868 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30869 sed '=' <$as_myself |
30870 sed '
30871 N
30872 s,$,-,
30873 : loop
30874 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30875 t loop
30876 s,-$,,
30877 s,^['$as_cr_digits']*\n,,
30878 ' >$as_me.lineno &&
30879 chmod +x $as_me.lineno ||
30880 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30881echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30882 { (exit 1); exit 1; }; }
30883
30884 # Don't try to exec as it changes $[0], causing all sort of problems
30885 # (the dirname of $[0] is not the place where we might find the
30886 # original and so on. Autoconf is especially sensible to this).
30887 . ./$as_me.lineno
30888 # Exit status is that of the last command.
30889 exit
30890}
30891
30892
30893case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30894 *c*,-n*) ECHO_N= ECHO_C='
30895' ECHO_T=' ' ;;
30896 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30897 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30898esac
30899
30900if expr a : '\(a\)' >/dev/null 2>&1; then
30901 as_expr=expr
30902else
30903 as_expr=false
30904fi
30905
30906rm -f conf$$ conf$$.exe conf$$.file
30907echo >conf$$.file
30908if ln -s conf$$.file conf$$ 2>/dev/null; then
30909 # We could just check for DJGPP; but this test a) works b) is more generic
30910 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30911 if test -f conf$$.exe; then
30912 # Don't use ln at all; we don't have any links
30913 as_ln_s='cp -p'
30914 else
30915 as_ln_s='ln -s'
30916 fi
30917elif ln conf$$.file conf$$ 2>/dev/null; then
30918 as_ln_s=ln
30919else
30920 as_ln_s='cp -p'
30921fi
30922rm -f conf$$ conf$$.exe conf$$.file
30923
John Criswell0c38eaf2003-09-10 15:17:25 +000030924if mkdir -p . 2>/dev/null; then
30925 as_mkdir_p=:
30926else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030927 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030928 as_mkdir_p=false
30929fi
30930
John Criswell7a73b802003-06-30 21:59:07 +000030931as_executable_p="test -f"
30932
30933# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030935
30936# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030938
30939
30940# IFS
30941# We need space, tab and new line, in precisely that order.
30942as_nl='
30943'
30944IFS=" $as_nl"
30945
30946# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030947$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030948
30949exec 6>&1
30950
30951# Open the log real soon, to keep \$[0] and so on meaningful, and to
30952# report actual input values of CONFIG_FILES etc. instead of their
30953# values after options handling. Logging --version etc. is OK.
30954exec 5>>config.log
30955{
30956 echo
30957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30958## Running $as_me. ##
30959_ASBOX
30960} >&5
30961cat >&5 <<_CSEOF
30962
John Criswell5690c532005-05-18 20:18:40 +000030963This file was extended by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030964generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030965
30966 CONFIG_FILES = $CONFIG_FILES
30967 CONFIG_HEADERS = $CONFIG_HEADERS
30968 CONFIG_LINKS = $CONFIG_LINKS
30969 CONFIG_COMMANDS = $CONFIG_COMMANDS
30970 $ $0 $@
30971
30972_CSEOF
30973echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30974echo >&5
30975_ACEOF
30976
30977# Files that config.status was made for.
30978if test -n "$ac_config_files"; then
30979 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30980fi
30981
30982if test -n "$ac_config_headers"; then
30983 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30984fi
30985
30986if test -n "$ac_config_links"; then
30987 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30988fi
30989
30990if test -n "$ac_config_commands"; then
30991 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30992fi
30993
30994cat >>$CONFIG_STATUS <<\_ACEOF
30995
30996ac_cs_usage="\
30997\`$as_me' instantiates files from templates according to the
30998current configuration.
30999
31000Usage: $0 [OPTIONS] [FILE]...
31001
31002 -h, --help print this help, then exit
31003 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031004 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031005 -d, --debug don't remove temporary files
31006 --recheck update $as_me by reconfiguring in the same conditions
31007 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031008 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031009 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031010 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031011
31012Configuration files:
31013$config_files
31014
31015Configuration headers:
31016$config_headers
31017
John Criswellc764fbc2003-09-06 15:17:13 +000031018Configuration commands:
31019$config_commands
31020
John Criswell7a73b802003-06-30 21:59:07 +000031021Report bugs to <bug-autoconf@gnu.org>."
31022_ACEOF
31023
31024cat >>$CONFIG_STATUS <<_ACEOF
31025ac_cs_version="\\
John Criswell5690c532005-05-18 20:18:40 +000031026llvm config.status 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031027configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031028 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31029
Reid Spencer2706f8c2004-09-19 23:53:36 +000031030Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031031This config.status script is free software; the Free Software Foundation
31032gives unlimited permission to copy, distribute and modify it."
31033srcdir=$srcdir
31034INSTALL="$INSTALL"
31035_ACEOF
31036
31037cat >>$CONFIG_STATUS <<\_ACEOF
31038# If no file are specified by the user, then we need to provide default
31039# value. By we need to know if files were specified by the user.
31040ac_need_defaults=:
31041while test $# != 0
31042do
31043 case $1 in
31044 --*=*)
31045 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31046 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031047 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031048 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031049 -*)
31050 ac_option=$1
31051 ac_optarg=$2
31052 ac_shift=shift
31053 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031054 *) # This is not an option, so the user has probably given explicit
31055 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031056 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031057 ac_need_defaults=false;;
31058 esac
31059
John Criswell0c38eaf2003-09-10 15:17:25 +000031060 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031061 # Handling of the options.
31062_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031063cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31065 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031066 --version | --vers* | -V )
31067 echo "$ac_cs_version"; exit 0 ;;
31068 --he | --h)
31069 # Conflict between --help and --header
31070 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31071Try \`$0 --help' for more information." >&5
31072echo "$as_me: error: ambiguous option: $1
31073Try \`$0 --help' for more information." >&2;}
31074 { (exit 1); exit 1; }; };;
31075 --help | --hel | -h )
31076 echo "$ac_cs_usage"; exit 0 ;;
31077 --debug | --d* | -d )
31078 debug=: ;;
31079 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031080 $ac_shift
31081 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031082 ac_need_defaults=false;;
31083 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031084 $ac_shift
31085 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031086 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31088 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31089 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031090
31091 # This is an error.
31092 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31093Try \`$0 --help' for more information." >&5
31094echo "$as_me: error: unrecognized option: $1
31095Try \`$0 --help' for more information." >&2;}
31096 { (exit 1); exit 1; }; } ;;
31097
31098 *) ac_config_targets="$ac_config_targets $1" ;;
31099
31100 esac
31101 shift
31102done
31103
John Criswell0c38eaf2003-09-10 15:17:25 +000031104ac_configure_extra_args=
31105
31106if $ac_cs_silent; then
31107 exec 6>/dev/null
31108 ac_configure_extra_args="$ac_configure_extra_args --silent"
31109fi
31110
31111_ACEOF
31112cat >>$CONFIG_STATUS <<_ACEOF
31113if \$ac_cs_recheck; then
31114 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31115 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31116fi
31117
John Criswell7a73b802003-06-30 21:59:07 +000031118_ACEOF
31119
John Criswellc764fbc2003-09-06 15:17:13 +000031120cat >>$CONFIG_STATUS <<_ACEOF
31121#
31122# INIT-COMMANDS section.
31123#
John Criswell7a73b802003-06-30 21:59:07 +000031124
Reid Spencerc0682832005-02-24 19:05:19 +000031125llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031126
31127_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031128
31129
31130
31131cat >>$CONFIG_STATUS <<\_ACEOF
31132for ac_config_target in $ac_config_targets
31133do
31134 case "$ac_config_target" in
31135 # Handling of arguments.
31136 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031137 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031138 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031139 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31140 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031141 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031142 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031143 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031144 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31145 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031146 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031147 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031148 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031149 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031150 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031151 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31152 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031153 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31155echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31156 { (exit 1); exit 1; }; };;
31157 esac
31158done
31159
31160# If the user did not use the arguments to specify the items to instantiate,
31161# then the envvar interface is used. Set only those that are not.
31162# We use the long form for the default assignment because of an extremely
31163# bizarre bug on SunOS 4.1.3.
31164if $ac_need_defaults; then
31165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031168fi
31169
John Criswell0c38eaf2003-09-10 15:17:25 +000031170# Have a temporary directory for convenience. Make it in the build tree
31171# simply because there is no reason to put it here, and in addition,
31172# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031173# Create a temporary directory, and hook for its removal unless debugging.
31174$debug ||
31175{
31176 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31177 trap '{ (exit 1); exit 1; }' 1 2 13 15
31178}
31179
31180# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031181
John Criswell7a73b802003-06-30 21:59:07 +000031182{
John Criswell0c38eaf2003-09-10 15:17:25 +000031183 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031184 test -n "$tmp" && test -d "$tmp"
31185} ||
31186{
John Criswell0c38eaf2003-09-10 15:17:25 +000031187 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031188 (umask 077 && mkdir $tmp)
31189} ||
31190{
John Criswell0c38eaf2003-09-10 15:17:25 +000031191 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031192 { (exit 1); exit 1; }
31193}
31194
31195_ACEOF
31196
31197cat >>$CONFIG_STATUS <<_ACEOF
31198
31199#
31200# CONFIG_FILES section.
31201#
31202
31203# No need to generate the scripts if there are no CONFIG_FILES.
31204# This happens for instance when ./config.status config.h
31205if test -n "\$CONFIG_FILES"; then
31206 # Protect against being on the right side of a sed subst in config.status.
31207 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31208 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31209s,@SHELL@,$SHELL,;t t
31210s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31211s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31212s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31213s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31214s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31215s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31216s,@exec_prefix@,$exec_prefix,;t t
31217s,@prefix@,$prefix,;t t
31218s,@program_transform_name@,$program_transform_name,;t t
31219s,@bindir@,$bindir,;t t
31220s,@sbindir@,$sbindir,;t t
31221s,@libexecdir@,$libexecdir,;t t
31222s,@datadir@,$datadir,;t t
31223s,@sysconfdir@,$sysconfdir,;t t
31224s,@sharedstatedir@,$sharedstatedir,;t t
31225s,@localstatedir@,$localstatedir,;t t
31226s,@libdir@,$libdir,;t t
31227s,@includedir@,$includedir,;t t
31228s,@oldincludedir@,$oldincludedir,;t t
31229s,@infodir@,$infodir,;t t
31230s,@mandir@,$mandir,;t t
31231s,@build_alias@,$build_alias,;t t
31232s,@host_alias@,$host_alias,;t t
31233s,@target_alias@,$target_alias,;t t
31234s,@DEFS@,$DEFS,;t t
31235s,@ECHO_C@,$ECHO_C,;t t
31236s,@ECHO_N@,$ECHO_N,;t t
31237s,@ECHO_T@,$ECHO_T,;t t
31238s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031239s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031240s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031241s,@build@,$build,;t t
31242s,@build_cpu@,$build_cpu,;t t
31243s,@build_vendor@,$build_vendor,;t t
31244s,@build_os@,$build_os,;t t
31245s,@host@,$host,;t t
31246s,@host_cpu@,$host_cpu,;t t
31247s,@host_vendor@,$host_vendor,;t t
31248s,@host_os@,$host_os,;t t
31249s,@target@,$target,;t t
31250s,@target_cpu@,$target_cpu,;t t
31251s,@target_vendor@,$target_vendor,;t t
31252s,@target_os@,$target_os,;t t
31253s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031254s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31255s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031256s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031257s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031258s,@CC@,$CC,;t t
31259s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031260s,@LDFLAGS@,$LDFLAGS,;t t
31261s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031262s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031263s,@EXEEXT@,$EXEEXT,;t t
31264s,@OBJEXT@,$OBJEXT,;t t
31265s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31266s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031267s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031268s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031269s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031270s,@CXX@,$CXX,;t t
31271s,@CXXFLAGS@,$CXXFLAGS,;t t
31272s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031273s,@LEX@,$LEX,;t t
31274s,@LEXLIB@,$LEXLIB,;t t
31275s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031276s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031277s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031278s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031279s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031280s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031281s,@CMP@,$CMP,;t t
31282s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031283s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031284s,@FIND@,$FIND,;t t
31285s,@GREP@,$GREP,;t t
31286s,@MKDIR@,$MKDIR,;t t
31287s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031288s,@RANLIB@,$RANLIB,;t t
31289s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031290s,@RM@,$RM,;t t
31291s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031292s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031293s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031294s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31295s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31296s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031297s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031298s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031299s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031300s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031301s,@GROFF@,$GROFF,;t t
31302s,@GZIP@,$GZIP,;t t
31303s,@POD2HTML@,$POD2HTML,;t t
31304s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031305s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031306s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031307s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031308s,@EGREP@,$EGREP,;t t
31309s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31310s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31311s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31312s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31313s,@LIBADD_DL@,$LIBADD_DL,;t t
31314s,@ECHO@,$ECHO,;t t
31315s,@AR@,$AR,;t t
31316s,@ac_ct_AR@,$ac_ct_AR,;t t
31317s,@STRIP@,$STRIP,;t t
31318s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31319s,@CXXCPP@,$CXXCPP,;t t
31320s,@F77@,$F77,;t t
31321s,@FFLAGS@,$FFLAGS,;t t
31322s,@ac_ct_F77@,$ac_ct_F77,;t t
31323s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031324s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031325s,@LLVMGCC@,$LLVMGCC,;t t
31326s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031327s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031328s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031329s,@LLVMCC1@,$LLVMCC1,;t t
31330s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031331s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031332s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031333s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31334s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31335s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31336s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31337s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31338s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31339s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31340s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31341s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31342s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031343s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031344s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031345CEOF
31346
31347_ACEOF
31348
31349 cat >>$CONFIG_STATUS <<\_ACEOF
31350 # Split the substitutions into bite-sized pieces for seds with
31351 # small command number limits, like on Digital OSF/1 and HP-UX.
31352 ac_max_sed_lines=48
31353 ac_sed_frag=1 # Number of current file.
31354 ac_beg=1 # First line for current file.
31355 ac_end=$ac_max_sed_lines # Line after last line for current file.
31356 ac_more_lines=:
31357 ac_sed_cmds=
31358 while $ac_more_lines; do
31359 if test $ac_beg -gt 1; then
31360 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31361 else
31362 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31363 fi
31364 if test ! -s $tmp/subs.frag; then
31365 ac_more_lines=false
31366 else
31367 # The purpose of the label and of the branching condition is to
31368 # speed up the sed processing (if there are no `@' at all, there
31369 # is no need to browse any of the substitutions).
31370 # These are the two extra sed commands mentioned above.
31371 (echo ':t
31372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31373 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031374 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031375 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031376 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031377 fi
31378 ac_sed_frag=`expr $ac_sed_frag + 1`
31379 ac_beg=$ac_end
31380 ac_end=`expr $ac_end + $ac_max_sed_lines`
31381 fi
31382 done
31383 if test -z "$ac_sed_cmds"; then
31384 ac_sed_cmds=cat
31385 fi
31386fi # test -n "$CONFIG_FILES"
31387
31388_ACEOF
31389cat >>$CONFIG_STATUS <<\_ACEOF
31390for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31392 case $ac_file in
31393 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031394 cat >$tmp/stdin
31395 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031397 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031399 * ) ac_file_in=$ac_file.in ;;
31400 esac
31401
31402 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31404$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031405 X"$ac_file" : 'X\(//\)[^/]' \| \
31406 X"$ac_file" : 'X\(//\)$' \| \
31407 X"$ac_file" : 'X\(/\)' \| \
31408 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031409echo X"$ac_file" |
31410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31412 /^X\(\/\/\)$/{ s//\1/; q; }
31413 /^X\(\/\).*/{ s//\1/; q; }
31414 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031415 { if $as_mkdir_p; then
31416 mkdir -p "$ac_dir"
31417 else
31418 as_dir="$ac_dir"
31419 as_dirs=
31420 while test ! -d "$as_dir"; do
31421 as_dirs="$as_dir $as_dirs"
31422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031424 X"$as_dir" : 'X\(//\)[^/]' \| \
31425 X"$as_dir" : 'X\(//\)$' \| \
31426 X"$as_dir" : 'X\(/\)' \| \
31427 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031428echo X"$as_dir" |
31429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31431 /^X\(\/\/\)$/{ s//\1/; q; }
31432 /^X\(\/\).*/{ s//\1/; q; }
31433 s/.*/./; q'`
31434 done
31435 test ! -n "$as_dirs" || mkdir $as_dirs
31436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31437echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31438 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031439
31440 ac_builddir=.
31441
31442if test "$ac_dir" != .; then
31443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31444 # A "../" for each directory in $ac_dir_suffix.
31445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31446else
31447 ac_dir_suffix= ac_top_builddir=
31448fi
31449
31450case $srcdir in
31451 .) # No --srcdir option. We are building in place.
31452 ac_srcdir=.
31453 if test -z "$ac_top_builddir"; then
31454 ac_top_srcdir=.
31455 else
31456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31457 fi ;;
31458 [\\/]* | ?:[\\/]* ) # Absolute path.
31459 ac_srcdir=$srcdir$ac_dir_suffix;
31460 ac_top_srcdir=$srcdir ;;
31461 *) # Relative path.
31462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31464esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031465
31466# Do not use `cd foo && pwd` to compute absolute paths, because
31467# the directories may not exist.
31468case `pwd` in
31469.) ac_abs_builddir="$ac_dir";;
31470*)
31471 case "$ac_dir" in
31472 .) ac_abs_builddir=`pwd`;;
31473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31475 esac;;
31476esac
31477case $ac_abs_builddir in
31478.) ac_abs_top_builddir=${ac_top_builddir}.;;
31479*)
31480 case ${ac_top_builddir}. in
31481 .) ac_abs_top_builddir=$ac_abs_builddir;;
31482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31484 esac;;
31485esac
31486case $ac_abs_builddir in
31487.) ac_abs_srcdir=$ac_srcdir;;
31488*)
31489 case $ac_srcdir in
31490 .) ac_abs_srcdir=$ac_abs_builddir;;
31491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31493 esac;;
31494esac
31495case $ac_abs_builddir in
31496.) ac_abs_top_srcdir=$ac_top_srcdir;;
31497*)
31498 case $ac_top_srcdir in
31499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31502 esac;;
31503esac
John Criswell7a73b802003-06-30 21:59:07 +000031504
31505
31506 case $INSTALL in
31507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31508 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31509 esac
31510
31511 if test x"$ac_file" != x-; then
31512 { echo "$as_me:$LINENO: creating $ac_file" >&5
31513echo "$as_me: creating $ac_file" >&6;}
31514 rm -f "$ac_file"
31515 fi
31516 # Let's still pretend it is `configure' which instantiates (i.e., don't
31517 # use $as_me), people would be surprised to read:
31518 # /* config.h. Generated by config.status. */
31519 if test x"$ac_file" = x-; then
31520 configure_input=
31521 else
31522 configure_input="$ac_file. "
31523 fi
31524 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031525 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031526
31527 # First look for the input files in the build tree, otherwise in the
31528 # src tree.
31529 ac_file_inputs=`IFS=:
31530 for f in $ac_file_in; do
31531 case $f in
31532 -) echo $tmp/stdin ;;
31533 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031534 # Absolute (can't be DOS-style, as IFS=:)
31535 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031536echo "$as_me: error: cannot find input file: $f" >&2;}
31537 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031538 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031539 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031540 if test -f "$f"; then
31541 # Build tree
31542 echo "$f"
31543 elif test -f "$srcdir/$f"; then
31544 # Source tree
31545 echo "$srcdir/$f"
31546 else
31547 # /dev/null tree
31548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031549echo "$as_me: error: cannot find input file: $f" >&2;}
31550 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031551 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031552 esac
31553 done` || { (exit 1); exit 1; }
31554_ACEOF
31555cat >>$CONFIG_STATUS <<_ACEOF
31556 sed "$ac_vpsub
31557$extrasub
31558_ACEOF
31559cat >>$CONFIG_STATUS <<\_ACEOF
31560:t
31561/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31562s,@configure_input@,$configure_input,;t t
31563s,@srcdir@,$ac_srcdir,;t t
31564s,@abs_srcdir@,$ac_abs_srcdir,;t t
31565s,@top_srcdir@,$ac_top_srcdir,;t t
31566s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31567s,@builddir@,$ac_builddir,;t t
31568s,@abs_builddir@,$ac_abs_builddir,;t t
31569s,@top_builddir@,$ac_top_builddir,;t t
31570s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31571s,@INSTALL@,$ac_INSTALL,;t t
31572" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31573 rm -f $tmp/stdin
31574 if test x"$ac_file" != x-; then
31575 mv $tmp/out $ac_file
31576 else
31577 cat $tmp/out
31578 rm -f $tmp/out
31579 fi
31580
31581done
31582_ACEOF
31583cat >>$CONFIG_STATUS <<\_ACEOF
31584
31585#
31586# CONFIG_HEADER section.
31587#
31588
31589# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31590# NAME is the cpp macro being defined and VALUE is the value it is being given.
31591#
31592# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031593ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31594ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031595ac_dC=' '
31596ac_dD=',;t'
31597# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031598ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031599ac_uB='$,\1#\2define\3'
31600ac_uC=' '
31601ac_uD=',;t'
31602
31603for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31605 case $ac_file in
31606 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031607 cat >$tmp/stdin
31608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031612 * ) ac_file_in=$ac_file.in ;;
31613 esac
31614
31615 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31616echo "$as_me: creating $ac_file" >&6;}
31617
31618 # First look for the input files in the build tree, otherwise in the
31619 # src tree.
31620 ac_file_inputs=`IFS=:
31621 for f in $ac_file_in; do
31622 case $f in
31623 -) echo $tmp/stdin ;;
31624 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031625 # Absolute (can't be DOS-style, as IFS=:)
31626 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031627echo "$as_me: error: cannot find input file: $f" >&2;}
31628 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031629 # Do quote $f, to prevent DOS paths from being IFS'd.
31630 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031631 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031632 if test -f "$f"; then
31633 # Build tree
31634 echo "$f"
31635 elif test -f "$srcdir/$f"; then
31636 # Source tree
31637 echo "$srcdir/$f"
31638 else
31639 # /dev/null tree
31640 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031641echo "$as_me: error: cannot find input file: $f" >&2;}
31642 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031643 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031644 esac
31645 done` || { (exit 1); exit 1; }
31646 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031647 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031648
31649_ACEOF
31650
31651# Transform confdefs.h into two sed scripts, `conftest.defines' and
31652# `conftest.undefs', that substitutes the proper values into
31653# config.h.in to produce config.h. The first handles `#define'
31654# templates, and the second `#undef' templates.
31655# And first: Protect against being on the right side of a sed subst in
31656# config.status. Protect against being in an unquoted here document
31657# in config.status.
31658rm -f conftest.defines conftest.undefs
31659# Using a here document instead of a string reduces the quoting nightmare.
31660# Putting comments in sed scripts is not portable.
31661#
31662# `end' is used to avoid that the second main sed command (meant for
31663# 0-ary CPP macros) applies to n-ary macro definitions.
31664# See the Autoconf documentation for `clear'.
31665cat >confdef2sed.sed <<\_ACEOF
31666s/[\\&,]/\\&/g
31667s,[\\$`],\\&,g
31668t clear
31669: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031670s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031671t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031672s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031673: end
31674_ACEOF
31675# If some macros were called several times there might be several times
31676# the same #defines, which is useless. Nevertheless, we may not want to
31677# sort them, since we want the *last* AC-DEFINE to be honored.
31678uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31679sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31680rm -f confdef2sed.sed
31681
31682# This sed command replaces #undef with comments. This is necessary, for
31683# example, in the case of _POSIX_SOURCE, which is predefined and required
31684# on some systems where configure will not decide to define it.
31685cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031686s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031687_ACEOF
31688
31689# Break up conftest.defines because some shells have a limit on the size
31690# of here documents, and old seds have small limits too (100 cmds).
31691echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031692echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031693echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31694echo ' :' >>$CONFIG_STATUS
31695rm -f conftest.tail
31696while grep . conftest.defines >/dev/null
31697do
31698 # Write a limited-size here document to $tmp/defines.sed.
31699 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31700 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031701 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031702 # Work around the forget-to-reset-the-flag bug.
31703 echo 't clr' >>$CONFIG_STATUS
31704 echo ': clr' >>$CONFIG_STATUS
31705 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31706 echo 'CEOF
31707 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31708 rm -f $tmp/in
31709 mv $tmp/out $tmp/in
31710' >>$CONFIG_STATUS
31711 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31712 rm -f conftest.defines
31713 mv conftest.tail conftest.defines
31714done
31715rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031716echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031717echo >>$CONFIG_STATUS
31718
31719# Break up conftest.undefs because some shells have a limit on the size
31720# of here documents, and old seds have small limits too (100 cmds).
31721echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31722rm -f conftest.tail
31723while grep . conftest.undefs >/dev/null
31724do
31725 # Write a limited-size here document to $tmp/undefs.sed.
31726 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31727 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031728 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031729 # Work around the forget-to-reset-the-flag bug.
31730 echo 't clr' >>$CONFIG_STATUS
31731 echo ': clr' >>$CONFIG_STATUS
31732 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31733 echo 'CEOF
31734 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31735 rm -f $tmp/in
31736 mv $tmp/out $tmp/in
31737' >>$CONFIG_STATUS
31738 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31739 rm -f conftest.undefs
31740 mv conftest.tail conftest.undefs
31741done
31742rm -f conftest.undefs
31743
31744cat >>$CONFIG_STATUS <<\_ACEOF
31745 # Let's still pretend it is `configure' which instantiates (i.e., don't
31746 # use $as_me), people would be surprised to read:
31747 # /* config.h. Generated by config.status. */
31748 if test x"$ac_file" = x-; then
31749 echo "/* Generated by configure. */" >$tmp/config.h
31750 else
31751 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31752 fi
31753 cat $tmp/in >>$tmp/config.h
31754 rm -f $tmp/in
31755 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031756 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031757 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31758echo "$as_me: $ac_file is unchanged" >&6;}
31759 else
31760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31761$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031762 X"$ac_file" : 'X\(//\)[^/]' \| \
31763 X"$ac_file" : 'X\(//\)$' \| \
31764 X"$ac_file" : 'X\(/\)' \| \
31765 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031766echo X"$ac_file" |
31767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31769 /^X\(\/\/\)$/{ s//\1/; q; }
31770 /^X\(\/\).*/{ s//\1/; q; }
31771 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031772 { if $as_mkdir_p; then
31773 mkdir -p "$ac_dir"
31774 else
31775 as_dir="$ac_dir"
31776 as_dirs=
31777 while test ! -d "$as_dir"; do
31778 as_dirs="$as_dir $as_dirs"
31779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031781 X"$as_dir" : 'X\(//\)[^/]' \| \
31782 X"$as_dir" : 'X\(//\)$' \| \
31783 X"$as_dir" : 'X\(/\)' \| \
31784 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031785echo X"$as_dir" |
31786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31788 /^X\(\/\/\)$/{ s//\1/; q; }
31789 /^X\(\/\).*/{ s//\1/; q; }
31790 s/.*/./; q'`
31791 done
31792 test ! -n "$as_dirs" || mkdir $as_dirs
31793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31794echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31795 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031796
31797 rm -f $ac_file
31798 mv $tmp/config.h $ac_file
31799 fi
31800 else
31801 cat $tmp/config.h
31802 rm -f $tmp/config.h
31803 fi
31804done
31805_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031806cat >>$CONFIG_STATUS <<\_ACEOF
31807
31808#
31809# CONFIG_COMMANDS section.
31810#
31811for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31812 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31813 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31814 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31815$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031816 X"$ac_dest" : 'X\(//\)[^/]' \| \
31817 X"$ac_dest" : 'X\(//\)$' \| \
31818 X"$ac_dest" : 'X\(/\)' \| \
31819 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031820echo X"$ac_dest" |
31821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31823 /^X\(\/\/\)$/{ s//\1/; q; }
31824 /^X\(\/\).*/{ s//\1/; q; }
31825 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031826 { if $as_mkdir_p; then
31827 mkdir -p "$ac_dir"
31828 else
31829 as_dir="$ac_dir"
31830 as_dirs=
31831 while test ! -d "$as_dir"; do
31832 as_dirs="$as_dir $as_dirs"
31833 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31834$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31835 X"$as_dir" : 'X\(//\)[^/]' \| \
31836 X"$as_dir" : 'X\(//\)$' \| \
31837 X"$as_dir" : 'X\(/\)' \| \
31838 . : '\(.\)' 2>/dev/null ||
31839echo X"$as_dir" |
31840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31842 /^X\(\/\/\)$/{ s//\1/; q; }
31843 /^X\(\/\).*/{ s//\1/; q; }
31844 s/.*/./; q'`
31845 done
31846 test ! -n "$as_dirs" || mkdir $as_dirs
31847 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31848echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31849 { (exit 1); exit 1; }; }; }
31850
John Criswellc764fbc2003-09-06 15:17:13 +000031851 ac_builddir=.
31852
31853if test "$ac_dir" != .; then
31854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31855 # A "../" for each directory in $ac_dir_suffix.
31856 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31857else
31858 ac_dir_suffix= ac_top_builddir=
31859fi
31860
31861case $srcdir in
31862 .) # No --srcdir option. We are building in place.
31863 ac_srcdir=.
31864 if test -z "$ac_top_builddir"; then
31865 ac_top_srcdir=.
31866 else
31867 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31868 fi ;;
31869 [\\/]* | ?:[\\/]* ) # Absolute path.
31870 ac_srcdir=$srcdir$ac_dir_suffix;
31871 ac_top_srcdir=$srcdir ;;
31872 *) # Relative path.
31873 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31874 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31875esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031876
31877# Do not use `cd foo && pwd` to compute absolute paths, because
31878# the directories may not exist.
31879case `pwd` in
31880.) ac_abs_builddir="$ac_dir";;
31881*)
31882 case "$ac_dir" in
31883 .) ac_abs_builddir=`pwd`;;
31884 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31885 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31886 esac;;
31887esac
31888case $ac_abs_builddir in
31889.) ac_abs_top_builddir=${ac_top_builddir}.;;
31890*)
31891 case ${ac_top_builddir}. in
31892 .) ac_abs_top_builddir=$ac_abs_builddir;;
31893 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31894 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31895 esac;;
31896esac
31897case $ac_abs_builddir in
31898.) ac_abs_srcdir=$ac_srcdir;;
31899*)
31900 case $ac_srcdir in
31901 .) ac_abs_srcdir=$ac_abs_builddir;;
31902 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31903 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31904 esac;;
31905esac
31906case $ac_abs_builddir in
31907.) ac_abs_top_srcdir=$ac_top_srcdir;;
31908*)
31909 case $ac_top_srcdir in
31910 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31911 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31912 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31913 esac;;
31914esac
John Criswellc764fbc2003-09-06 15:17:13 +000031915
31916
31917 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31918echo "$as_me: executing $ac_dest commands" >&6;}
31919 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031920 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31921 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31922 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31923 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31924 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31925 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31926 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31927 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31928 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31929 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31930 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31931 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31932 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31933 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31934 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31935 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31936 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31937 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31938 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31939 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031940 esac
31941done
31942_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031943
31944cat >>$CONFIG_STATUS <<\_ACEOF
31945
31946{ (exit 0); exit 0; }
31947_ACEOF
31948chmod +x $CONFIG_STATUS
31949ac_clean_files=$ac_clean_files_save
31950
31951
31952# configure is writing to config.log, and then calls config.status.
31953# config.status does its own redirection, appending to config.log.
31954# Unfortunately, on DOS this fails, as config.log is still kept open
31955# by configure, so config.status won't be able to write to it; its
31956# output is simply discarded. So we exec the FD to /dev/null,
31957# effectively closing config.log, so it can be properly (re)opened and
31958# appended to by config.status. When coming back to configure, we
31959# need to make the FD available again.
31960if test "$no_create" != yes; then
31961 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031962 ac_config_status_args=
31963 test "$silent" = yes &&
31964 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031965 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031967 exec 5>>config.log
31968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31969 # would make configure fail if this is the last instruction.
31970 $ac_cs_success || { (exit 1); exit 1; }
31971fi
31972
John Criswell12399a12003-09-30 15:55:44 +000031973#
31974# CONFIG_SUBDIRS section.
31975#
31976if test "$no_recursion" != yes; then
31977
31978 # Remove --cache-file and --srcdir arguments so they do not pile up.
31979 ac_sub_configure_args=
31980 ac_prev=
31981 for ac_arg in $ac_configure_args; do
31982 if test -n "$ac_prev"; then
31983 ac_prev=
31984 continue
31985 fi
31986 case $ac_arg in
31987 -cache-file | --cache-file | --cache-fil | --cache-fi \
31988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31989 ac_prev=cache_file ;;
31990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31992 | --c=*)
31993 ;;
31994 --config-cache | -C)
31995 ;;
31996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31997 ac_prev=srcdir ;;
31998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31999 ;;
32000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32001 ac_prev=prefix ;;
32002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32003 ;;
32004 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32005 esac
32006 done
32007
32008 # Always prepend --prefix to ensure using the same prefix
32009 # in subdir configurations.
32010 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32011
32012 ac_popdir=`pwd`
32013 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32014
32015 # Do not complain, so a configure script can configure whichever
32016 # parts of a large source tree are present.
32017 test -d $srcdir/$ac_dir || continue
32018
32019 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32020echo "$as_me: configuring in $ac_dir" >&6;}
32021 { if $as_mkdir_p; then
32022 mkdir -p "$ac_dir"
32023 else
32024 as_dir="$ac_dir"
32025 as_dirs=
32026 while test ! -d "$as_dir"; do
32027 as_dirs="$as_dir $as_dirs"
32028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032030 X"$as_dir" : 'X\(//\)[^/]' \| \
32031 X"$as_dir" : 'X\(//\)$' \| \
32032 X"$as_dir" : 'X\(/\)' \| \
32033 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032034echo X"$as_dir" |
32035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32037 /^X\(\/\/\)$/{ s//\1/; q; }
32038 /^X\(\/\).*/{ s//\1/; q; }
32039 s/.*/./; q'`
32040 done
32041 test ! -n "$as_dirs" || mkdir $as_dirs
32042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32043echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32044 { (exit 1); exit 1; }; }; }
32045
32046 ac_builddir=.
32047
32048if test "$ac_dir" != .; then
32049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32050 # A "../" for each directory in $ac_dir_suffix.
32051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32052else
32053 ac_dir_suffix= ac_top_builddir=
32054fi
32055
32056case $srcdir in
32057 .) # No --srcdir option. We are building in place.
32058 ac_srcdir=.
32059 if test -z "$ac_top_builddir"; then
32060 ac_top_srcdir=.
32061 else
32062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32063 fi ;;
32064 [\\/]* | ?:[\\/]* ) # Absolute path.
32065 ac_srcdir=$srcdir$ac_dir_suffix;
32066 ac_top_srcdir=$srcdir ;;
32067 *) # Relative path.
32068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32070esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032071
32072# Do not use `cd foo && pwd` to compute absolute paths, because
32073# the directories may not exist.
32074case `pwd` in
32075.) ac_abs_builddir="$ac_dir";;
32076*)
32077 case "$ac_dir" in
32078 .) ac_abs_builddir=`pwd`;;
32079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32081 esac;;
32082esac
32083case $ac_abs_builddir in
32084.) ac_abs_top_builddir=${ac_top_builddir}.;;
32085*)
32086 case ${ac_top_builddir}. in
32087 .) ac_abs_top_builddir=$ac_abs_builddir;;
32088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32090 esac;;
32091esac
32092case $ac_abs_builddir in
32093.) ac_abs_srcdir=$ac_srcdir;;
32094*)
32095 case $ac_srcdir in
32096 .) ac_abs_srcdir=$ac_abs_builddir;;
32097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32099 esac;;
32100esac
32101case $ac_abs_builddir in
32102.) ac_abs_top_srcdir=$ac_top_srcdir;;
32103*)
32104 case $ac_top_srcdir in
32105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32108 esac;;
32109esac
John Criswell12399a12003-09-30 15:55:44 +000032110
32111
32112 cd $ac_dir
32113
32114 # Check for guested configure; otherwise get Cygnus style configure.
32115 if test -f $ac_srcdir/configure.gnu; then
32116 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32117 elif test -f $ac_srcdir/configure; then
32118 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32119 elif test -f $ac_srcdir/configure.in; then
32120 ac_sub_configure=$ac_configure
32121 else
32122 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32123echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32124 ac_sub_configure=
32125 fi
32126
32127 # The recursion is here.
32128 if test -n "$ac_sub_configure"; then
32129 # Make the cache file name correct relative to the subdirectory.
32130 case $cache_file in
32131 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32132 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032133 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032134 esac
32135
32136 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32137echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32138 # The eval makes quoting arguments work.
32139 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032140 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32141 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032142echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32143 { (exit 1); exit 1; }; }
32144 fi
32145
32146 cd $ac_popdir
32147 done
32148fi
32149
Brian Gaekef3b24102003-11-16 18:38:14 +000032150
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032151if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032152 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32153echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032154 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32155echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32156 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32157echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32158 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32159echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32160 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32161echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032162fi