blob: da27b99980e5d388069e08ee5613ffa58110161a [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer78ba11d2005-02-16 16:21:00 +00003# Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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-'
Reid Spencer78ba11d2005-02-16 16:21:00 +0000428PACKAGE_VERSION='1.5cvs'
429PACKAGE_STRING='llvm 1.5cvs'
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"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer945de9b2005-04-22 07:27:28 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 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 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +0000968\`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencer78ba11d2005-02-16 16:21:00 +00001030 short | recursive ) echo "Configuration of llvm 1.5cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer945de9b2005-04-22 07:27:28 +00001040 --enable-target-this Build only the current host's target (default is NO)
1041 --enable-target-x86 Build the x86 target (default is YES)
1042 --enable-target-x86-64 Build the x86_64 target (default is YES)
1043 --enable-target-sparc Build the Sparc target (default is YES)
1044 --enable-target-powerpc Build the PowerPC target (default is YES)
1045 --enable-target-alpha Build the Alpha target (default is YES)
1046 --enable-target-ia64 Build the IA64 target (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001047 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001048 --enable-shared[=PKGS]
1049 build shared libraries [default=yes]
1050 --enable-static[=PKGS]
1051 build static libraries [default=yes]
1052 --enable-fast-install[=PKGS]
1053 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001054 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Optional Packages:
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001059 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1060 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001061 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1064 both]
1065 --with-tags[=TAGS]
1066 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001069 CC C compiler command
1070 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001075 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082Use these variables to override the choices made by `configure' or to help
1083it to find libraries and programs with nonstandard names/locations.
1084
1085Report bugs to <llvmbugs@cs.uiuc.edu>.
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101 ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157esac
John Criswell7a73b802003-06-30 21:59:07 +00001158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001168 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176fi
1177
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180 cat <<\_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +00001181llvm configure 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001183
Reid Spencer2706f8c2004-09-19 23:53:36 +00001184Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001185This configure script is free software; the Free Software Foundation
1186gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001187
1188$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001189_ACEOF
1190 exit 0
1191fi
1192exec 5>config.log
1193cat >&5 <<_ACEOF
1194This file contains any messages produced by compilers while
1195running configure, to aid debugging if configure makes a mistake.
1196
Reid Spencer78ba11d2005-02-16 16:21:00 +00001197It was created by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001198generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001199
1200 $ $0 $@
1201
1202_ACEOF
1203{
1204cat <<_ASUNAME
1205## --------- ##
1206## Platform. ##
1207## --------- ##
1208
1209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1217
1218/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1225
1226_ASUNAME
1227
1228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229for as_dir in $PATH
1230do
1231 IFS=$as_save_IFS
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1234done
1235
1236} >&5
1237
1238cat >&5 <<_ACEOF
1239
1240
1241## ----------- ##
1242## Core tests. ##
1243## ----------- ##
1244
1245_ACEOF
1246
1247
1248# Keep a trace of the command line.
1249# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001250# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001251# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001252# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001253ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001254ac_configure_args0=
1255ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001256ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001257ac_must_keep_next=false
1258for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001259do
John Criswell0c38eaf2003-09-10 15:17:25 +00001260 for ac_arg
1261 do
1262 case $ac_arg in
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 continue ;;
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 esac
1270 case $ac_pass in
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272 2)
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001275 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001276 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001277 case $ac_arg in
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 esac
1285 ;;
1286 -* ) ac_must_keep_next=true ;;
1287 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001288 fi
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1291 ac_sep=" "
1292 ;;
1293 esac
1294 done
John Criswell7a73b802003-06-30 21:59:07 +00001295done
John Criswell0c38eaf2003-09-10 15:17:25 +00001296$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297$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 +00001298
1299# When interrupted or exit'd, cleanup temporary files, and complete
1300# config.log. We remove comments because anyway the quotes in there
1301# would cause problems or look ugly.
1302# WARNING: Be sure not to use single quotes in there, as some shells,
1303# such as our DU 5.0 friend, will then `close' the trap.
1304trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1306 {
1307 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001308
John Criswell7a73b802003-06-30 21:59:07 +00001309 cat <<\_ASBOX
1310## ---------------- ##
1311## Cache variables. ##
1312## ---------------- ##
1313_ASBOX
1314 echo
1315 # The following way of writing the cache mishandles newlines in values,
1316{
1317 (set) 2>&1 |
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 *ac_space=\ *)
1320 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001323 ;;
1324 *)
1325 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001327 ;;
1328 esac;
1329}
1330 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001331
1332 cat <<\_ASBOX
1333## ----------------- ##
1334## Output variables. ##
1335## ----------------- ##
1336_ASBOX
1337 echo
1338 for ac_var in $ac_subst_vars
1339 do
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1342 done | sort
1343 echo
1344
1345 if test -n "$ac_subst_files"; then
1346 cat <<\_ASBOX
1347## ------------- ##
1348## Output files. ##
1349## ------------- ##
1350_ASBOX
1351 echo
1352 for ac_var in $ac_subst_files
1353 do
1354 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001355 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001356 done | sort
1357 echo
1358 fi
1359
John Criswell7a73b802003-06-30 21:59:07 +00001360 if test -s confdefs.h; then
1361 cat <<\_ASBOX
1362## ----------- ##
1363## confdefs.h. ##
1364## ----------- ##
1365_ASBOX
1366 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001367 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001368 echo
1369 fi
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1373 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001374 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 exit $exit_status
1377 ' 0
1378for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380done
1381ac_signal=0
1382
1383# confdefs.h avoids OS command line length limits that DEFS can exceed.
1384rm -rf conftest* confdefs.h
1385# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386echo >confdefs.h
1387
1388# Predefined preprocessor variables.
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_NAME "$PACKAGE_NAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_VERSION "$PACKAGE_VERSION"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_STRING "$PACKAGE_STRING"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412_ACEOF
1413
1414
1415# Let the site file select an alternate cache file if it wants to.
1416# Prefer explicitly selected file to automatically selected ones.
1417if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420 else
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 fi
1423fi
1424for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1429 . "$ac_site_file"
1430 fi
1431done
1432
1433if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438echo "$as_me: loading cache $cache_file" >&6;}
1439 case $cache_file in
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1442 esac
1443 fi
1444else
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446echo "$as_me: creating cache $cache_file" >&6;}
1447 >$cache_file
1448fi
1449
1450# Check that the precious variables saved in the cache have kept the same
1451# value.
1452ac_cache_corrupted=false
1453for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1460 set,)
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1464 ,set)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,);;
1469 *)
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001474echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001476echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001477 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001478 fi;;
1479 esac
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1482 case $ac_new_val in
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1486 esac
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490 esac
1491 fi
1492done
1493if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1499fi
1500
1501ac_ext=c
1502ac_cpp='$CPP $CPPFLAGS'
1503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1535
1536
1537
1538
1539
1540
1541
John Criswell7a73b802003-06-30 21:59:07 +00001542ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001543for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001544 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break
1548 elif test -f $ac_dir/install.sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 break
1552 elif test -f $ac_dir/shtool; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break
1556 fi
1557done
1558if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001561 { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
John Criswell392aaa32003-07-22 19:18:09 +00001567
Reid Spencer2706f8c2004-09-19 23:53:36 +00001568if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001571echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001573 fi
John Criswell93e1c722003-09-15 17:04:06 +00001574fi
1575
John Criswell33a911a2003-11-25 20:36:46 +00001576for i in `ls ${srcdir}/projects`
1577do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578 if test -d ${srcdir}/projects/${i} ; then
1579 case ${i} in
1580 "CVS") ;;
1581 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/sample"
1584 ;;
1585 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001586
Reid Spencer4d68ba22004-09-07 16:35:45 +00001587subdirs="$subdirs projects/Stacker"
1588 ;;
1589 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001590
Reid Spencer4d68ba22004-09-07 16:35:45 +00001591subdirs="$subdirs projects/llvm-test"
1592 ;;
1593 "llvm-reopt")
1594
1595subdirs="$subdirs projects/llvm-reopt"
1596;;
1597 "llvm-gcc")
1598
1599subdirs="$subdirs projects/llvm-gcc"
1600 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001601 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001602
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001603subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001604 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001605 "llvm-tv")
1606
1607subdirs="$subdirs projects/llvm-tv"
1608 ;;
1609 "llvm-fefw")
1610
1611subdirs="$subdirs projects/llvm-fefw"
1612 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001613 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001614
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001615subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001616 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001617 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001618 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1619echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001620 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001621 esac
John Criswell33a911a2003-11-25 20:36:46 +00001622 fi
1623done
John Criswell559a6c12003-09-30 16:31:48 +00001624
John Criswell7a73b802003-06-30 21:59:07 +00001625
1626# Make sure we can run config.sub.
1627$ac_config_sub sun4 >/dev/null 2>&1 ||
1628 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1629echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632echo "$as_me:$LINENO: checking build system type" >&5
1633echo $ECHO_N "checking build system type... $ECHO_C" >&6
1634if test "${ac_cv_build+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_build_alias=$build_alias
1638test -z "$ac_cv_build_alias" &&
1639 ac_cv_build_alias=`$ac_config_guess`
1640test -z "$ac_cv_build_alias" &&
1641 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1642echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1643 { (exit 1); exit 1; }; }
1644ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1646echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1648
1649fi
1650echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1651echo "${ECHO_T}$ac_cv_build" >&6
1652build=$ac_cv_build
1653build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658echo "$as_me:$LINENO: checking host system type" >&5
1659echo $ECHO_N "checking host system type... $ECHO_C" >&6
1660if test "${ac_cv_host+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 ac_cv_host_alias=$host_alias
1664test -z "$ac_cv_host_alias" &&
1665 ac_cv_host_alias=$ac_cv_build_alias
1666ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1668echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1669 { (exit 1); exit 1; }; }
1670
1671fi
1672echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1673echo "${ECHO_T}$ac_cv_host" >&6
1674host=$ac_cv_host
1675host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680echo "$as_me:$LINENO: checking target system type" >&5
1681echo $ECHO_N "checking target system type... $ECHO_C" >&6
1682if test "${ac_cv_target+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685 ac_cv_target_alias=$target_alias
1686test "x$ac_cv_target_alias" = "x" &&
1687 ac_cv_target_alias=$ac_cv_host_alias
1688ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1690echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1691 { (exit 1); exit 1; }; }
1692
1693fi
1694echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1695echo "${ECHO_T}$ac_cv_target" >&6
1696target=$ac_cv_target
1697target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700
1701
1702# The aliases save the names the user supplied, while $host etc.
1703# will get canonicalized.
1704test -n "$target_alias" &&
1705 test "$program_prefix$program_suffix$program_transform_name" = \
1706 NONENONEs,x,x, &&
1707 program_prefix=${target_alias}-
1708
Reid Spencer7b3e8512004-12-24 06:29:05 +00001709echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1710echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1711if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001715 *-*-aix*)
1716 llvm_cv_os_type="AIX"
1717 llvm_cv_platform_type="Unix" ;;
1718 *-*-cygwin*)
1719 llvm_cv_os_type="Cygwin"
1720 llvm_cv_platform_type="Unix" ;;
1721 *-*-darwin*)
1722 llvm_cv_os_type="Darwin"
1723 llvm_cv_platform_type="Unix" ;;
1724 *-*-freebsd*)
1725 llvm_cv_os_type="FreeBSD"
1726 llvm_cv_platform_type="Unix" ;;
1727 *-*-interix*)
1728 llvm_cv_os_type="Interix"
1729 llvm_cv_platform_type="Unix" ;;
1730 *-*-linux*)
1731 llvm_cv_os_type="Linux"
1732 llvm_cv_platform_type="Unix" ;;
1733 *-*-solaris*)
1734 llvm_cv_os_type="SunOS"
1735 llvm_cv_platform_type="Unix" ;;
1736 *-*-win32*)
1737 llvm_cv_os_type="Win32"
1738 llvm_cv_platform_type="Win32" ;;
1739 *-*-mingw*)
1740 llvm_cv_os_type="MingW"
1741 llvm_cv_platform_type="Win32" ;;
1742 *)
1743 llvm_cv_os_type="Unknown"
1744 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001745esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001746fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001747echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001749
Reid Spencer7b3e8512004-12-24 06:29:05 +00001750if test "$llvm_cv_os_type" = "Unknown" ; then
1751 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001753 { (exit 1); exit 1; }; }
1754fi
1755
Reid Spencer7b3e8512004-12-24 06:29:05 +00001756OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001757
1758
Reid Spencer7b3e8512004-12-24 06:29:05 +00001759case $llvm_cv_platform_type in
1760 Unix)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_UNIX 1
1764_ACEOF
1765
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001766 LLVM_ON_UNIX=1
1767
1768 LLVM_ON_WIN32=0
1769
Reid Spencer7b3e8512004-12-24 06:29:05 +00001770 ;;
1771 Win32)
1772
1773cat >>confdefs.h <<\_ACEOF
1774#define LLVM_ON_WIN32 1
1775_ACEOF
1776
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001777 LLVM_ON_UNIX=0
1778
1779 LLVM_ON_WIN32=1
1780
Reid Spencer7b3e8512004-12-24 06:29:05 +00001781 ;;
1782esac
1783
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001784case $target in
1785 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1786
1787 ;;
1788esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001789
1790echo "$as_me:$LINENO: checking target architecture" >&5
1791echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001792if test "${llvm_cv_target_arch+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794else
1795 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001796 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001797 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001798 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1799 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001800 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001801 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001802 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001803esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001804fi
1805echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1806echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001807
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808if test "$llvm_cv_target_arch" = "Unknown" ; then
1809 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1810echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1811fi
John Criswell76595452003-07-01 22:07:39 +00001812
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001813ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001814
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001815
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001816ac_ext=c
1817ac_cpp='$CPP $CPPFLAGS'
1818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001821if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6
1852else
1853 echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857fi
1858if test -z "$ac_cv_prog_CC"; then
1859 ac_ct_CC=$CC
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861set dummy gcc; ac_word=$2
1862echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881done
1882done
1883
1884fi
1885fi
1886ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889echo "${ECHO_T}$ac_ct_CC" >&6
1890else
1891 echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6
1893fi
1894
1895 CC=$ac_ct_CC
1896else
1897 CC="$ac_cv_prog_CC"
1898fi
1899
1900if test -z "$CC"; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903set dummy ${ac_tool_prefix}cc; ac_word=$2
1904echo "$as_me:$LINENO: checking for $ac_word" >&5
1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911else
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="${ac_tool_prefix}cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1922 fi
1923done
1924done
1925
1926fi
1927fi
1928CC=$ac_cv_prog_CC
1929if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931echo "${ECHO_T}$CC" >&6
1932else
1933 echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937fi
1938if test -z "$ac_cv_prog_CC"; then
1939 ac_ct_CC=$CC
1940 # Extract the first word of "cc", so it can be a program name with args.
1941set dummy cc; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947 if test -n "$ac_ct_CC"; then
1948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_CC="cc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1960 fi
1961done
1962done
1963
1964fi
1965fi
1966ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967if test -n "$ac_ct_CC"; then
1968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969echo "${ECHO_T}$ac_ct_CC" >&6
1970else
1971 echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975 CC=$ac_ct_CC
1976else
1977 CC="$ac_cv_prog_CC"
1978fi
1979
1980fi
1981if test -z "$CC"; then
1982 # Extract the first word of "cc", so it can be a program name with args.
1983set dummy cc; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991else
1992 ac_prog_rejected=no
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001 ac_prog_rejected=yes
2002 continue
2003 fi
2004 ac_cv_prog_CC="cc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2007 fi
2008done
2009done
2010
2011if test $ac_prog_rejected = yes; then
2012 # We found a bogon in the path, so make sure we never use it.
2013 set dummy $ac_cv_prog_CC
2014 shift
2015 if test $# != 0; then
2016 # We chose a different compiler from the bogus one.
2017 # However, it has the same basename, so the bogon will be chosen
2018 # first if we set CC to just the basename; use the full file name.
2019 shift
2020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2021 fi
2022fi
2023fi
2024fi
2025CC=$ac_cv_prog_CC
2026if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028echo "${ECHO_T}$CC" >&6
2029else
2030 echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034fi
2035if test -z "$CC"; then
2036 if test -n "$ac_tool_prefix"; then
2037 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002038 do
2039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2059 fi
2060done
2061done
2062
2063fi
2064fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065CC=$ac_cv_prog_CC
2066if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002069else
2070 echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6
2072fi
2073
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002075 done
2076fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077if test -z "$CC"; then
2078 ac_ct_CC=$CC
2079 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002080do
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082set dummy $ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002098 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2101 fi
2102done
2103done
2104
2105fi
2106fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002107ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002111else
2112 echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002116 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002117done
John Criswell7a73b802003-06-30 21:59:07 +00002118
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002119 CC=$ac_ct_CC
2120fi
2121
John Criswell7a73b802003-06-30 21:59:07 +00002122fi
2123
2124
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002125test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2130
John Criswell7a73b802003-06-30 21:59:07 +00002131# Provide some information about the compiler.
2132echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002133 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002134ac_compiler=`set X $ac_compile; echo $2`
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136 (eval $ac_compiler --version </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141 (eval $ac_compiler -v </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146 (eval $ac_compiler -V </dev/null >&5) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150
2151cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002152/* confdefs.h. */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002157
John Criswell7a73b802003-06-30 21:59:07 +00002158int
2159main ()
2160{
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002167ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002168# Try to create an executable without -o first, disregard a.out.
2169# It will help us diagnose broken compilers, and finding out an intuition
2170# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002171echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002173ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175 (eval $ac_link_default) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # Find the output, starting from the most likely. This scheme is
2180# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181# resort.
2182
2183# Be careful to initialize this variable, since it used to be cached.
2184# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2185ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002186# b.out is created by i960 compilers.
2187for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2188do
2189 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002190 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002194 # This is the source file.
2195 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002196 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002197 # We found the default executable, but exeext='' is most
2198 # certainly right.
2199 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 # FIXME: I believe we export ac_cv_exeext for Libtool,
2203 # but it would be cool to find out if it's true. Does anybody
2204 # maintain Libtool? --akim.
2205 export ac_cv_exeext
2206 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002207 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002208 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002209 esac
2210done
2211else
2212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002213sed 's/^/| /' conftest.$ac_ext >&5
2214
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002215{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002216See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002217echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002218See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002219 { (exit 77); exit 77; }; }
2220fi
2221
2222ac_exeext=$ac_cv_exeext
2223echo "$as_me:$LINENO: result: $ac_file" >&5
2224echo "${ECHO_T}$ac_file" >&6
2225
2226# Check the compiler produces executables we can run. If not, either
2227# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002228echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002230# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231# If not cross compiling, check that we can run a simple program.
2232if test "$cross_compiling" != yes; then
2233 if { ac_try='./$ac_file'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 cross_compiling=no
2240 else
2241 if test "$cross_compiling" = maybe; then
2242 cross_compiling=yes
2243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002247echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002250 { (exit 1); exit 1; }; }
2251 fi
2252 fi
2253fi
2254echo "$as_me:$LINENO: result: yes" >&5
2255echo "${ECHO_T}yes" >&6
2256
John Criswell0c38eaf2003-09-10 15:17:25 +00002257rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002258ac_clean_files=$ac_clean_files_save
2259# Check the compiler produces executables we can run. If not, either
2260# the compiler is broken, or we cross compile.
2261echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264echo "${ECHO_T}$cross_compiling" >&6
2265
2266echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269 (eval $ac_link) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275# work properly (i.e., refer to `conftest.exe'), while it won't with
2276# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002277for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002279 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002282 export ac_cv_exeext
2283 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002284 * ) break;;
2285 esac
2286done
2287else
John Criswell0c38eaf2003-09-10 15:17:25 +00002288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&5
2290echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002292 { (exit 1); exit 1; }; }
2293fi
2294
2295rm -f conftest$ac_cv_exeext
2296echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297echo "${ECHO_T}$ac_cv_exeext" >&6
2298
2299rm -f conftest.$ac_ext
2300EXEEXT=$ac_cv_exeext
2301ac_exeext=$EXEEXT
2302echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002308/* confdefs.h. */
2309_ACEOF
2310cat confdefs.h >>conftest.$ac_ext
2311cat >>conftest.$ac_ext <<_ACEOF
2312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002313
John Criswell7a73b802003-06-30 21:59:07 +00002314int
2315main ()
2316{
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.o conftest.obj
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2329 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 break;;
2333 esac
2334done
2335else
2336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002343 { (exit 1); exit 1; }; }
2344fi
2345
2346rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347fi
2348echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349echo "${ECHO_T}$ac_cv_objext" >&6
2350OBJEXT=$ac_cv_objext
2351ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002358/* confdefs.h. */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002363
John Criswell7a73b802003-06-30 21:59:07 +00002364int
2365main ()
2366{
2367#ifndef __GNUC__
2368 choke me
2369#endif
2370
2371 ;
2372 return 0;
2373}
2374_ACEOF
2375rm -f conftest.$ac_objext
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002377 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_compiler_gnu=yes
2398else
2399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002400sed 's/^/| /' conftest.$ac_ext >&5
2401
John Criswell7a73b802003-06-30 21:59:07 +00002402ac_compiler_gnu=no
2403fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002406
2407fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410GCC=`test $ac_compiler_gnu = yes && echo yes`
2411ac_test_CFLAGS=${CFLAGS+set}
2412ac_save_CFLAGS=$CFLAGS
2413CFLAGS="-g"
2414echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002420/* confdefs.h. */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002425
John Criswell7a73b802003-06-30 21:59:07 +00002426int
2427main ()
2428{
2429
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434rm -f conftest.$ac_objext
2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002436 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002457else
2458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002459sed 's/^/| /' conftest.$ac_ext >&5
2460
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002462fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002464fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2471 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002472 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002474 fi
2475else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476 if test "$GCC" = yes; then
2477 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002478 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002480 fi
2481fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 ac_cv_prog_cc_stdc=no
2488ac_save_CC=$CC
2489cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h. */
2495#include <stdarg.h>
2496#include <stdio.h>
2497#include <sys/types.h>
2498#include <sys/stat.h>
2499/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500struct buf { int x; };
2501FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502static char *e (p, i)
2503 char **p;
2504 int i;
2505{
2506 return p[i];
2507}
2508static char *f (char * (*g) (char **, int), char **p, ...)
2509{
2510 char *s;
2511 va_list v;
2512 va_start (v,p);
2513 s = g (p, va_arg (v,int));
2514 va_end (v);
2515 return s;
2516}
2517
2518/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std1 is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std1. */
2525int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526
2527int test (int i, double x);
2528struct s1 {int (*f) (int a);};
2529struct s2 {int (*f) (double a);};
2530int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531int argc;
2532char **argv;
2533int
2534main ()
2535{
2536return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2537 ;
2538 return 0;
2539}
2540_ACEOF
2541# Don't try gcc -ansi; that turns off useful extensions and
2542# breaks some systems' header files.
2543# AIX -qlanglvl=ansi
2544# Ultrix and OSF/1 -std1
2545# HP-UX 10.20 and later -Ae
2546# HP-UX older versions -Aa -D_HPUX_SOURCE
2547# SVR4 -Xc -D__EXTENSIONS__
2548for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549do
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_prog_cc_stdc=$ac_arg
2574break
2575else
2576 echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579fi
2580rm -f conftest.err conftest.$ac_objext
2581done
2582rm -f conftest.$ac_ext conftest.$ac_objext
2583CC=$ac_save_CC
2584
2585fi
2586
2587case "x$ac_cv_prog_cc_stdc" in
2588 x|xno)
2589 echo "$as_me:$LINENO: result: none needed" >&5
2590echo "${ECHO_T}none needed" >&6 ;;
2591 *)
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595esac
2596
2597# Some people use a C++ compiler to compile C. Since we use `exit',
2598# in C++ we need to declare it. In case someone uses the same compiler
2599# for both compiling C and C++ we need to have the C++ compiler decide
2600# the declaration of exit, since it's the most demanding environment.
2601cat >conftest.$ac_ext <<_ACEOF
2602#ifndef __cplusplus
2603 choke me
2604#endif
2605_ACEOF
2606rm -f conftest.$ac_objext
2607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002629 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002630 'extern "C" void std::exit (int) throw (); using std::exit;' \
2631 'extern "C" void std::exit (int); using std::exit;' \
2632 'extern "C" void exit (int) throw ();' \
2633 'extern "C" void exit (int);' \
2634 'void exit (int);'
2635do
2636 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002642$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002643#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002644int
2645main ()
2646{
2647exit (42);
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 :
2675else
2676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002677sed 's/^/| /' conftest.$ac_ext >&5
2678
John Criswell7a73b802003-06-30 21:59:07 +00002679continue
2680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002688$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002689int
2690main ()
2691{
2692exit (42);
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
2698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002699 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 break
2720else
2721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002722sed 's/^/| /' conftest.$ac_ext >&5
2723
John Criswell7a73b802003-06-30 21:59:07 +00002724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002726done
2727rm -f conftest*
2728if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2732fi
2733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734else
2735 echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746
2747echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2748echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2749if test "${ac_cv_c_bigendian+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751else
2752 # See if sys/param.h defines the BYTE_ORDER macro.
2753cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759#include <sys/types.h>
2760#include <sys/param.h>
2761
2762int
2763main ()
2764{
2765#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2766 bogus endian macros
2767#endif
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 # It does; now see whether it defined to BIG_ENDIAN or not.
2796cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h. */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h. */
2802#include <sys/types.h>
2803#include <sys/param.h>
2804
2805int
2806main ()
2807{
2808#if BYTE_ORDER != BIG_ENDIAN
2809 not big endian
2810#endif
2811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext
2817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818 (eval $ac_compile) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -z "$ac_c_werror_flag"
2826 || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_cv_c_bigendian=yes
2839else
2840 echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843ac_cv_c_bigendian=no
2844fi
2845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2846else
2847 echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850# It does not; compile a test program.
2851if test "$cross_compiling" = yes; then
2852 # try to guess the endianness by grepping values into an object file
2853 ac_cv_c_bigendian=unknown
2854 cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h. */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h. */
2860short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2861short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2862void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2863short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2864short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2865void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2866int
2867main ()
2868{
2869 _ascii (); _ebcdic ();
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext
2875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2897 ac_cv_c_bigendian=yes
2898fi
2899if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2900 if test "$ac_cv_c_bigendian" = unknown; then
2901 ac_cv_c_bigendian=no
2902 else
2903 # finding both strings is unlikely to happen, but who knows?
2904 ac_cv_c_bigendian=unknown
2905 fi
2906fi
2907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911fi
2912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913else
2914 cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h. */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920int
2921main ()
2922{
2923 /* Are we little or big endian? From Harbison&Steele. */
2924 union
2925 {
2926 long l;
2927 char c[sizeof (long)];
2928 } u;
2929 u.l = 1;
2930 exit (u.c[sizeof (long) - 1] == 1);
2931}
2932_ACEOF
2933rm -f conftest$ac_exeext
2934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935 (eval $ac_link) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_c_bigendian=no
2945else
2946 echo "$as_me: program exited with status $ac_status" >&5
2947echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950( exit $ac_status )
2951ac_cv_c_bigendian=yes
2952fi
2953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954fi
2955fi
2956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957fi
2958echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2959echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2960case $ac_cv_c_bigendian in
2961 yes)
2962 ENDIAN=big
2963 ;;
2964 no)
2965 ENDIAN=little
2966 ;;
2967 *)
2968 { { echo "$as_me:$LINENO: error: unknown endianness
2969presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2970echo "$as_me: error: unknown endianness
2971presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2972 { (exit 1); exit 1; }; } ;;
2973esac
2974
2975
2976
2977# Check whether --enable-optimized or --disable-optimized was given.
2978if test "${enable_optimized+set}" = set; then
2979 enableval="$enable_optimized"
2980
2981else
2982 enableval=no
2983fi;
2984if test ${enableval} = "no" ; then
2985 ENABLE_OPTIMIZED=
2986
2987else
2988 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2989
2990fi
2991
2992# Check whether --enable-jit or --disable-jit was given.
2993if test "${enable_jit+set}" = set; then
2994 enableval="$enable_jit"
2995
2996else
2997 enableval=default
2998fi;
2999if test ${enableval} = "no"
3000then
3001 JIT=
3002
3003else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003004 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003005 x86) JIT=TARGET_HAS_JIT=1
3006 ;;
3007 Sparc) JIT=TARGET_HAS_JIT=1
3008 ;;
3009 PowerPC) JIT=TARGET_HAS_JIT=1
3010 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003011 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003012 ;;
Reid Spencer945de9b2005-04-22 07:27:28 +00003013 Alpha) JIT=
3014 ;;
3015 IA64) JIT=
3016 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003017 *) JIT=
3018 ;;
3019 esac
3020fi
3021
Reid Spencer1f319422004-11-29 04:56:35 +00003022# Check whether --enable-doxygen or --disable-doxygen was given.
3023if test "${enable_doxygen+set}" = set; then
3024 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003025
Reid Spencer1f319422004-11-29 04:56:35 +00003026else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003027 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003028fi;
3029case "$enableval" in
3030 yes) ENABLE_DOXYGEN=1
3031 ;;
3032 no) ENABLE_DOXYGEN=0
3033 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003034 default) ENABLE_DOXYGEN=0
3035 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003036 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3037echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3038 { (exit 1); exit 1; }; } ;;
3039esac
3040
Reid Spencer945de9b2005-04-22 07:27:28 +00003041TARGETS_TO_BUILD=""
3042# Check whether --enable-target-this or --disable-target-this was given.
3043if test "${enable_target_this+set}" = set; then
3044 enableval="$enable_target_this"
3045
3046else
3047 enable_target_this=no
3048fi;
3049# Check whether --enable-target-x86 or --disable-target-x86 was given.
3050if test "${enable_target_x86+set}" = set; then
3051 enableval="$enable_target_x86"
3052
3053else
3054 enable_target_x86=yes
3055fi;
3056# Check whether --enable-target-x86-64 or --disable-target-x86-64 was given.
3057if test "${enable_target_x86_64+set}" = set; then
3058 enableval="$enable_target_x86_64"
3059
3060else
3061 enable_target_x86_64=yes
3062fi;
3063# Check whether --enable-target-sparc or --disable-target-sparc was given.
3064if test "${enable_target_sparc+set}" = set; then
3065 enableval="$enable_target_sparc"
3066
3067else
3068 enable_target_sparc=yes
3069fi;
3070# Check whether --enable-target-powerpc or --disable-target-powerpc was given.
3071if test "${enable_target_powerpc+set}" = set; then
3072 enableval="$enable_target_powerpc"
3073
3074else
3075 enable_target_powerpc=yes
3076fi;
3077# Check whether --enable-target-alpha or --disable-target-alpha was given.
3078if test "${enable_target_alpha+set}" = set; then
3079 enableval="$enable_target_alpha"
3080
3081else
3082 enable_target_alpha=yes
3083fi;
3084# Check whether --enable-]target-ia64] or --disable-]target-ia64] was given.
3085if test "${enable_target_ia64]]+set}" = set; then
3086 enableval="$enable_target_ia64]]"
3087
3088else
3089 enable_target_ia64=yes
3090fi;
3091
3092if test "$enable_target_this" = "yes" ; then
3093 case "$llvm_cv_target_arch" in
3094 x86) TARGETS_TO_BUILD="X86" ;;
3095 x86_64) TARGETS_TO_BUILD="X86" ;;
3096 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3097 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3098 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3099 IA64) TARGETS_TO_BUILD="IA64" ;;
3100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3101echo "$as_me: error: Can not set target to build" >&2;}
3102 { (exit 1); exit 1; }; } ;;
3103 esac
3104else
3105 if test "$enable_target_x86" = "yes" -o "$enable_target_x86_64" = "yes" ; then
3106 TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD"
3107 fi
3108 if test "$enable_target_sparc" = "yes" ; then
3109 TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD"
3110 fi
3111 if test "$enable_target_powerpc" = "yes" ; then
3112 TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD"
3113 fi
3114 if test "$enable_target_alpha" = "yes" ; then
3115 TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD"
3116 fi
3117 if test "$enable_target_ia64" = "yes" ; then
3118 TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD"
3119 fi
3120fi
3121
3122TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3123
3124
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003125
Reid Spencer59473af2004-12-25 07:31:29 +00003126# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3127if test "${with_llvmgccdir+set}" = set; then
3128 withval="$with_llvmgccdir"
3129
3130else
3131 withval=default
3132fi;
3133case "$withval" in
3134 default) WITH_LLVMGCCDIR=default ;;
3135 /*) WITH_LLVMGCCDIR=$withval ;;
3136 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3137echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3138 { (exit 1); exit 1; }; } ;;
3139esac
3140
3141
Reid Spencer945de9b2005-04-22 07:27:28 +00003142
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003143ac_ext=c
3144ac_cpp='$CPP $CPPFLAGS'
3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3149echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3150# On Suns, sometimes $CPP names a directory.
3151if test -n "$CPP" && test -d "$CPP"; then
3152 CPP=
3153fi
3154if test -z "$CPP"; then
3155 if test "${ac_cv_prog_CPP+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158 # Double quotes because CPP needs to be expanded
3159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3160 do
3161 ac_preproc_ok=false
3162for ac_c_preproc_warn_flag in '' yes
3163do
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176#ifdef __STDC__
3177# include <limits.h>
3178#else
3179# include <assert.h>
3180#endif
3181 Syntax error
3182_ACEOF
3183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194 else
3195 ac_cpp_err=
3196 fi
3197else
3198 ac_cpp_err=yes
3199fi
3200if test -z "$ac_cpp_err"; then
3201 :
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 # Broken: fails on valid input.
3207continue
3208fi
3209rm -f conftest.err conftest.$ac_ext
3210
3211 # OK, works on sane cases. Now check whether non-existent headers
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <ac_nonexistent.h>
3220_ACEOF
3221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3232 else
3233 ac_cpp_err=
3234 fi
3235else
3236 ac_cpp_err=yes
3237fi
3238if test -z "$ac_cpp_err"; then
3239 # Broken: success on invalid input.
3240continue
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 # Passes both tests.
3246ac_preproc_ok=:
3247break
3248fi
3249rm -f conftest.err conftest.$ac_ext
3250
3251done
3252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253rm -f conftest.err conftest.$ac_ext
3254if $ac_preproc_ok; then
3255 break
3256fi
3257
3258 done
3259 ac_cv_prog_CPP=$CPP
3260
3261fi
3262 CPP=$ac_cv_prog_CPP
3263else
3264 ac_cv_prog_CPP=$CPP
3265fi
3266echo "$as_me:$LINENO: result: $CPP" >&5
3267echo "${ECHO_T}$CPP" >&6
3268ac_preproc_ok=false
3269for ac_c_preproc_warn_flag in '' yes
3270do
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
3283#ifdef __STDC__
3284# include <limits.h>
3285#else
3286# include <assert.h>
3287#endif
3288 Syntax error
3289_ACEOF
3290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 else
3302 ac_cpp_err=
3303 fi
3304else
3305 ac_cpp_err=yes
3306fi
3307if test -z "$ac_cpp_err"; then
3308 :
3309else
3310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 # Broken: fails on valid input.
3314continue
3315fi
3316rm -f conftest.err conftest.$ac_ext
3317
3318 # OK, works on sane cases. Now check whether non-existent headers
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#include <ac_nonexistent.h>
3327_ACEOF
3328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339 else
3340 ac_cpp_err=
3341 fi
3342else
3343 ac_cpp_err=yes
3344fi
3345if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3347continue
3348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 # Passes both tests.
3353ac_preproc_ok=:
3354break
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358done
3359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360rm -f conftest.err conftest.$ac_ext
3361if $ac_preproc_ok; then
3362 :
3363else
3364 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3365See \`config.log' for more details." >&5
3366echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3367See \`config.log' for more details." >&2;}
3368 { (exit 1); exit 1; }; }
3369fi
3370
John Criswell7a73b802003-06-30 21:59:07 +00003371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376
3377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382if test -n "$ac_tool_prefix"; then
3383 for ac_prog in gcc
3384 do
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387echo "$as_me:$LINENO: checking for $ac_word" >&5
3388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389if test "${ac_cv_prog_CC+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406done
3407done
3408
3409fi
3410fi
3411CC=$ac_cv_prog_CC
3412if test -n "$CC"; then
3413 echo "$as_me:$LINENO: result: $CC" >&5
3414echo "${ECHO_T}$CC" >&6
3415else
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
3418fi
3419
3420 test -n "$CC" && break
3421 done
3422fi
3423if test -z "$CC"; then
3424 ac_ct_CC=$CC
3425 for ac_prog in gcc
3426do
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428set dummy $ac_prog; ac_word=$2
3429echo "$as_me:$LINENO: checking for $ac_word" >&5
3430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 if test -n "$ac_ct_CC"; then
3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_ac_ct_CC="$ac_prog"
3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448done
3449done
3450
3451fi
3452fi
3453ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454if test -n "$ac_ct_CC"; then
3455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456echo "${ECHO_T}$ac_ct_CC" >&6
3457else
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
3460fi
3461
3462 test -n "$ac_ct_CC" && break
3463done
3464
3465 CC=$ac_ct_CC
3466fi
3467
3468
John Criswell0c38eaf2003-09-10 15:17:25 +00003469test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3470See \`config.log' for more details." >&5
3471echo "$as_me: error: no acceptable C compiler found in \$PATH
3472See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003473 { (exit 1); exit 1; }; }
3474
3475# Provide some information about the compiler.
3476echo "$as_me:$LINENO:" \
3477 "checking for C compiler version" >&5
3478ac_compiler=`set X $ac_compile; echo $2`
3479{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3480 (eval $ac_compiler --version </dev/null >&5) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }
3484{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3485 (eval $ac_compiler -v </dev/null >&5) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }
3489{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3490 (eval $ac_compiler -V </dev/null >&5) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }
3494
3495echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3496echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3497if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003506
John Criswell7a73b802003-06-30 21:59:07 +00003507int
3508main ()
3509{
3510#ifndef __GNUC__
3511 choke me
3512#endif
3513
3514 ;
3515 return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003520 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_compiler_gnu=yes
3541else
3542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003543sed 's/^/| /' conftest.$ac_ext >&5
3544
John Criswell7a73b802003-06-30 21:59:07 +00003545ac_compiler_gnu=no
3546fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003548ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549
3550fi
3551echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3552echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3553GCC=`test $ac_compiler_gnu = yes && echo yes`
3554ac_test_CFLAGS=${CFLAGS+set}
3555ac_save_CFLAGS=$CFLAGS
3556CFLAGS="-g"
3557echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3558echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3559if test "${ac_cv_prog_cc_g+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003563/* confdefs.h. */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003568
John Criswell7a73b802003-06-30 21:59:07 +00003569int
3570main ()
3571{
3572
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext
3578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003579 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_prog_cc_g=yes
3600else
3601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003602sed 's/^/| /' conftest.$ac_ext >&5
3603
John Criswell7a73b802003-06-30 21:59:07 +00003604ac_cv_prog_cc_g=no
3605fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003607fi
3608echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3610if test "$ac_test_CFLAGS" = set; then
3611 CFLAGS=$ac_save_CFLAGS
3612elif test $ac_cv_prog_cc_g = yes; then
3613 if test "$GCC" = yes; then
3614 CFLAGS="-g -O2"
3615 else
3616 CFLAGS="-g"
3617 fi
3618else
3619 if test "$GCC" = yes; then
3620 CFLAGS="-O2"
3621 else
3622 CFLAGS=
3623 fi
3624fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003625echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3626echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3627if test "${ac_cv_prog_cc_stdc+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 ac_cv_prog_cc_stdc=no
3631ac_save_CC=$CC
3632cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
3638#include <stdarg.h>
3639#include <stdio.h>
3640#include <sys/types.h>
3641#include <sys/stat.h>
3642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643struct buf { int x; };
3644FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645static char *e (p, i)
3646 char **p;
3647 int i;
3648{
3649 return p[i];
3650}
3651static char *f (char * (*g) (char **, int), char **p, ...)
3652{
3653 char *s;
3654 va_list v;
3655 va_start (v,p);
3656 s = g (p, va_arg (v,int));
3657 va_end (v);
3658 return s;
3659}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003660
3661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std1 is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std1. */
3668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
John Criswell0c38eaf2003-09-10 15:17:25 +00003670int test (int i, double x);
3671struct s1 {int (*f) (int a);};
3672struct s2 {int (*f) (double a);};
3673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3674int argc;
3675char **argv;
3676int
3677main ()
3678{
3679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684# Don't try gcc -ansi; that turns off useful extensions and
3685# breaks some systems' header files.
3686# AIX -qlanglvl=ansi
3687# Ultrix and OSF/1 -std1
3688# HP-UX 10.20 and later -Ae
3689# HP-UX older versions -Aa -D_HPUX_SOURCE
3690# SVR4 -Xc -D__EXTENSIONS__
3691for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692do
3693 CC="$ac_save_CC $ac_arg"
3694 rm -f conftest.$ac_objext
3695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003696 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003703 { ac_try='test -z "$ac_c_werror_flag"
3704 || test ! -s conftest.err'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; } &&
3710 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_prog_cc_stdc=$ac_arg
3717break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003723rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003724done
3725rm -f conftest.$ac_ext conftest.$ac_objext
3726CC=$ac_save_CC
3727
3728fi
3729
3730case "x$ac_cv_prog_cc_stdc" in
3731 x|xno)
3732 echo "$as_me:$LINENO: result: none needed" >&5
3733echo "${ECHO_T}none needed" >&6 ;;
3734 *)
3735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3736echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3737 CC="$CC $ac_cv_prog_cc_stdc" ;;
3738esac
3739
John Criswell7a73b802003-06-30 21:59:07 +00003740# Some people use a C++ compiler to compile C. Since we use `exit',
3741# in C++ we need to declare it. In case someone uses the same compiler
3742# for both compiling C and C++ we need to have the C++ compiler decide
3743# the declaration of exit, since it's the most demanding environment.
3744cat >conftest.$ac_ext <<_ACEOF
3745#ifndef __cplusplus
3746 choke me
3747#endif
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003751 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003772 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003773 'extern "C" void std::exit (int) throw (); using std::exit;' \
3774 'extern "C" void std::exit (int); using std::exit;' \
3775 'extern "C" void exit (int) throw ();' \
3776 'extern "C" void exit (int);' \
3777 'void exit (int);'
3778do
3779 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003785$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003786#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003787int
3788main ()
3789{
3790exit (42);
3791 ;
3792 return 0;
3793}
3794_ACEOF
3795rm -f conftest.$ac_objext
3796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003797 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003798 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003804 { ac_try='test -z "$ac_c_werror_flag"
3805 || test ! -s conftest.err'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } &&
3811 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 :
3818else
3819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003820sed 's/^/| /' conftest.$ac_ext >&5
3821
John Criswell7a73b802003-06-30 21:59:07 +00003822continue
3823fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003825 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003831$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003832int
3833main ()
3834{
3835exit (42);
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext
3841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003842 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 break
3863else
3864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003865sed 's/^/| /' conftest.$ac_ext >&5
3866
John Criswell7a73b802003-06-30 21:59:07 +00003867fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003869done
3870rm -f conftest*
3871if test -n "$ac_declaration"; then
3872 echo '#ifdef __cplusplus' >>confdefs.h
3873 echo $ac_declaration >>confdefs.h
3874 echo '#endif' >>confdefs.h
3875fi
3876
3877else
3878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003879sed 's/^/| /' conftest.$ac_ext >&5
3880
John Criswell7a73b802003-06-30 21:59:07 +00003881fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003889ac_ext=cc
3890ac_cpp='$CXXCPP $CPPFLAGS'
3891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3894if test -n "$ac_tool_prefix"; then
3895 for ac_prog in $CCC g++
3896 do
3897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3899echo "$as_me:$LINENO: checking for $ac_word" >&5
3900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003904 if test -n "$CXX"; then
3905 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003909do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918done
3919done
3920
3921fi
3922fi
3923CXX=$ac_cv_prog_CXX
3924if test -n "$CXX"; then
3925 echo "$as_me:$LINENO: result: $CXX" >&5
3926echo "${ECHO_T}$CXX" >&6
3927else
3928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
3930fi
3931
3932 test -n "$CXX" && break
3933 done
3934fi
3935if test -z "$CXX"; then
3936 ac_ct_CXX=$CXX
3937 for ac_prog in $CCC g++
3938do
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940set dummy $ac_prog; ac_word=$2
3941echo "$as_me:$LINENO: checking for $ac_word" >&5
3942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 if test -n "$ac_ct_CXX"; then
3947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_ac_ct_CXX="$ac_prog"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961done
3962
3963fi
3964fi
3965ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3966if test -n "$ac_ct_CXX"; then
3967 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3968echo "${ECHO_T}$ac_ct_CXX" >&6
3969else
3970 echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972fi
3973
3974 test -n "$ac_ct_CXX" && break
3975done
3976test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3977
3978 CXX=$ac_ct_CXX
3979fi
3980
3981
3982# Provide some information about the compiler.
3983echo "$as_me:$LINENO:" \
3984 "checking for C++ compiler version" >&5
3985ac_compiler=`set X $ac_compile; echo $2`
3986{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3987 (eval $ac_compiler --version </dev/null >&5) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }
3991{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3992 (eval $ac_compiler -v </dev/null >&5) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3997 (eval $ac_compiler -V </dev/null >&5) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }
4001
4002echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4003echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4004if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
John Criswell7a73b802003-06-30 21:59:07 +00004007 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004008/* confdefs.h. */
4009_ACEOF
4010cat confdefs.h >>conftest.$ac_ext
4011cat >>conftest.$ac_ext <<_ACEOF
4012/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004013
4014int
4015main ()
4016{
4017#ifndef __GNUC__
4018 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004019#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004020
4021 ;
4022 return 0;
4023}
John Criswell7a73b802003-06-30 21:59:07 +00004024_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004025rm -f conftest.$ac_objext
4026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004028 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004029 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_cxx_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_compiler_gnu=yes
4048else
4049 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052ac_compiler_gnu=no
4053fi
4054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4056
4057fi
4058echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4059echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4060GXX=`test $ac_compiler_gnu = yes && echo yes`
4061ac_test_CXXFLAGS=${CXXFLAGS+set}
4062ac_save_CXXFLAGS=$CXXFLAGS
4063CXXFLAGS="-g"
4064echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4065echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4066if test "${ac_cv_prog_cxx_g+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 cat >conftest.$ac_ext <<_ACEOF
4070/* confdefs.h. */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h. */
4075
4076int
4077main ()
4078{
4079
4080 ;
4081 return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext
4085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_cxx_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_cv_prog_cxx_g=yes
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111ac_cv_prog_cxx_g=no
4112fi
4113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114fi
4115echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4116echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4117if test "$ac_test_CXXFLAGS" = set; then
4118 CXXFLAGS=$ac_save_CXXFLAGS
4119elif test $ac_cv_prog_cxx_g = yes; then
4120 if test "$GXX" = yes; then
4121 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004122 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004123 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004124 fi
4125else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004126 if test "$GXX" = yes; then
4127 CXXFLAGS="-O2"
4128 else
4129 CXXFLAGS=
4130 fi
John Criswell7a73b802003-06-30 21:59:07 +00004131fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004132for ac_declaration in \
4133 '' \
4134 'extern "C" void std::exit (int) throw (); using std::exit;' \
4135 'extern "C" void std::exit (int); using std::exit;' \
4136 'extern "C" void exit (int) throw ();' \
4137 'extern "C" void exit (int);' \
4138 'void exit (int);'
4139do
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146$ac_declaration
4147#include <stdlib.h>
4148int
4149main ()
4150{
4151exit (42);
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext
4157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_cxx_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004178 :
4179else
4180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004181sed 's/^/| /' conftest.$ac_ext >&5
4182
John Criswell7a73b802003-06-30 21:59:07 +00004183continue
4184fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004192$ac_declaration
4193int
4194main ()
4195{
4196exit (42);
4197 ;
4198 return 0;
4199}
John Criswell7a73b802003-06-30 21:59:07 +00004200_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004201rm -f conftest.$ac_objext
4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004204 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004205 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_cxx_werror_flag"
4211 || test ! -s conftest.err'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest.$ac_objext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004223 break
John Criswell7a73b802003-06-30 21:59:07 +00004224else
4225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004226sed 's/^/| /' conftest.$ac_ext >&5
4227
John Criswell7a73b802003-06-30 21:59:07 +00004228fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004230done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004231rm -f conftest*
4232if test -n "$ac_declaration"; then
4233 echo '#ifdef __cplusplus' >>confdefs.h
4234 echo $ac_declaration >>confdefs.h
4235 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004236fi
4237
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
John Criswell7a73b802003-06-30 21:59:07 +00004244echo "$as_me:$LINENO: checking " >&5
4245echo $ECHO_N "checking ... $ECHO_C" >&6
4246if test "${ac_cv_has_flex+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 for ac_prog in flex lex
4250do
4251 # Extract the first word of "$ac_prog", so it can be a program name with args.
4252set dummy $ac_prog; ac_word=$2
4253echo "$as_me:$LINENO: checking for $ac_word" >&5
4254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255if test "${ac_cv_prog_LEX+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 if test -n "$LEX"; then
4259 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_LEX="$ac_prog"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272done
4273done
4274
4275fi
4276fi
4277LEX=$ac_cv_prog_LEX
4278if test -n "$LEX"; then
4279 echo "$as_me:$LINENO: result: $LEX" >&5
4280echo "${ECHO_T}$LEX" >&6
4281else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284fi
4285
4286 test -n "$LEX" && break
4287done
4288test -n "$LEX" || LEX=":"
4289
4290if test -z "$LEXLIB"
4291then
4292 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4293echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4294if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297 ac_check_lib_save_LIBS=$LIBS
4298LIBS="-lfl $LIBS"
4299cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004300/* confdefs.h. */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004305
4306/* Override any gcc2 internal prototype to avoid an error. */
4307#ifdef __cplusplus
4308extern "C"
4309#endif
4310/* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4312char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004313int
4314main ()
4315{
4316yywrap ();
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321rm -f conftest.$ac_objext conftest$ac_exeext
4322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004323 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004330 { ac_try='test -z "$ac_c_werror_flag"
4331 || test ! -s conftest.err'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_lib_fl_yywrap=yes
4344else
4345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004346sed 's/^/| /' conftest.$ac_ext >&5
4347
John Criswell7a73b802003-06-30 21:59:07 +00004348ac_cv_lib_fl_yywrap=no
4349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004350rm -f conftest.err conftest.$ac_objext \
4351 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004352LIBS=$ac_check_lib_save_LIBS
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4355echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4356if test $ac_cv_lib_fl_yywrap = yes; then
4357 LEXLIB="-lfl"
4358else
4359 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4360echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4361if test "${ac_cv_lib_l_yywrap+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364 ac_check_lib_save_LIBS=$LIBS
4365LIBS="-ll $LIBS"
4366cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004367/* confdefs.h. */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004372
4373/* Override any gcc2 internal prototype to avoid an error. */
4374#ifdef __cplusplus
4375extern "C"
4376#endif
4377/* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4379char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004380int
4381main ()
4382{
4383yywrap ();
4384 ;
4385 return 0;
4386}
4387_ACEOF
4388rm -f conftest.$ac_objext conftest$ac_exeext
4389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004390 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004397 { ac_try='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_lib_l_yywrap=yes
4411else
4412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004413sed 's/^/| /' conftest.$ac_ext >&5
4414
John Criswell7a73b802003-06-30 21:59:07 +00004415ac_cv_lib_l_yywrap=no
4416fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004417rm -f conftest.err conftest.$ac_objext \
4418 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004419LIBS=$ac_check_lib_save_LIBS
4420fi
4421echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4422echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4423if test $ac_cv_lib_l_yywrap = yes; then
4424 LEXLIB="-ll"
4425fi
4426
4427fi
4428
4429fi
4430
4431if test "x$LEX" != "x:"; then
4432 echo "$as_me:$LINENO: checking lex output file root" >&5
4433echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4434if test "${ac_cv_prog_lex_root+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 # The minimal lex program is just a single line: %%. But some broken lexes
4438# (Solaris, I think it was) want two %% lines, so accommodate them.
4439cat >conftest.l <<_ACEOF
4440%%
4441%%
4442_ACEOF
4443{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4444 (eval $LEX conftest.l) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }
4448if test -f lex.yy.c; then
4449 ac_cv_prog_lex_root=lex.yy
4450elif test -f lexyy.c; then
4451 ac_cv_prog_lex_root=lexyy
4452else
4453 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4454echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4455 { (exit 1); exit 1; }; }
4456fi
4457fi
4458echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4459echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4460rm -f conftest.l
4461LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4462
4463echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4464echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4465if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 # POSIX says lex can declare yytext either as a pointer or an array; the
4469# default is implementation-dependent. Figure out which it is, since
4470# not all implementations provide the %pointer and %array declarations.
4471ac_cv_prog_lex_yytext_pointer=no
4472echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4473ac_save_LIBS=$LIBS
4474LIBS="$LIBS $LEXLIB"
4475cat >conftest.$ac_ext <<_ACEOF
4476`cat $LEX_OUTPUT_ROOT.c`
4477_ACEOF
4478rm -f conftest.$ac_objext conftest$ac_exeext
4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004480 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004487 { ac_try='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_prog_lex_yytext_pointer=yes
4501else
4502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004503sed 's/^/| /' conftest.$ac_ext >&5
4504
John Criswell7a73b802003-06-30 21:59:07 +00004505fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004506rm -f conftest.err conftest.$ac_objext \
4507 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004508LIBS=$ac_save_LIBS
4509rm -f "${LEX_OUTPUT_ROOT}.c"
4510
4511fi
4512echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4513echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4514if test $ac_cv_prog_lex_yytext_pointer = yes; then
4515
4516cat >>confdefs.h <<\_ACEOF
4517#define YYTEXT_POINTER 1
4518_ACEOF
4519
4520fi
4521
4522fi
4523
4524fi
4525echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4526echo "${ECHO_T}$ac_cv_has_flex" >&6
4527if test "$LEX" != "flex"; then
4528 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4529echo "$as_me: error: flex not found but required" >&2;}
4530 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004531else
4532 FLEX=flex
4533
John Criswell7a73b802003-06-30 21:59:07 +00004534fi
4535
4536echo "$as_me:$LINENO: checking " >&5
4537echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004538if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 for ac_prog in 'bison -y' byacc
4542do
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544set dummy $ac_prog; ac_word=$2
4545echo "$as_me:$LINENO: checking for $ac_word" >&5
4546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547if test "${ac_cv_prog_YACC+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550 if test -n "$YACC"; then
4551 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_YACC="$ac_prog"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565done
4566
4567fi
4568fi
4569YACC=$ac_cv_prog_YACC
4570if test -n "$YACC"; then
4571 echo "$as_me:$LINENO: result: $YACC" >&5
4572echo "${ECHO_T}$YACC" >&6
4573else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576fi
4577
4578 test -n "$YACC" && break
4579done
4580test -n "$YACC" || YACC="yacc"
4581
John Criswell7a73b802003-06-30 21:59:07 +00004582fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004583echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4584echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004585if test "$YACC" != "bison -y"; then
4586 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4587echo "$as_me: error: bison not found but required" >&2;}
4588 { (exit 1); exit 1; }; }
4589else
Brian Gaeke12810632004-01-13 06:52:10 +00004590 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004591
4592fi
4593
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004594echo "$as_me:$LINENO: checking for GNU make" >&5
4595echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4596if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004599 llvm_cv_gnu_make_command=''
4600 for a in "$MAKE" make gmake gnumake ; do
4601 if test -z "$a" ; then continue ; fi ;
4602 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4603 then
4604 llvm_cv_gnu_make_command=$a ;
4605 break;
John Criswell47fdd832003-07-14 16:52:07 +00004606 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004607 done
John Criswell7a73b802003-06-30 21:59:07 +00004608fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004609echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4610echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4611 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4612 ifGNUmake='' ;
4613 else
4614 ifGNUmake='#' ;
4615 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4616echo "${ECHO_T}\"Not found\"" >&6;
4617 fi
John Criswell7a73b802003-06-30 21:59:07 +00004618
John Criswell7a73b802003-06-30 21:59:07 +00004619
4620echo "$as_me:$LINENO: checking whether ln -s works" >&5
4621echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4622LN_S=$as_ln_s
4623if test "$LN_S" = "ln -s"; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625echo "${ECHO_T}yes" >&6
4626else
4627 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4628echo "${ECHO_T}no, using $LN_S" >&6
4629fi
4630
Reid Spencer8a2d4712004-12-16 17:48:14 +00004631# Extract the first word of "cmp", so it can be a program name with args.
4632set dummy cmp; ac_word=$2
4633echo "$as_me:$LINENO: checking for $ac_word" >&5
4634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635if test "${ac_cv_path_CMP+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 case $CMP in
4639 [\\/]* | ?:[\\/]*)
4640 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4641 ;;
4642 *)
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656
4657 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4658 ;;
4659esac
4660fi
4661CMP=$ac_cv_path_CMP
4662
4663if test -n "$CMP"; then
4664 echo "$as_me:$LINENO: result: $CMP" >&5
4665echo "${ECHO_T}$CMP" >&6
4666else
4667 echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
4669fi
4670
4671# Extract the first word of "cp", so it can be a program name with args.
4672set dummy cp; ac_word=$2
4673echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675if test "${ac_cv_path_CP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678 case $CP in
4679 [\\/]* | ?:[\\/]*)
4680 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4681 ;;
4682 *)
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694done
4695done
4696
4697 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4698 ;;
4699esac
4700fi
4701CP=$ac_cv_path_CP
4702
4703if test -n "$CP"; then
4704 echo "$as_me:$LINENO: result: $CP" >&5
4705echo "${ECHO_T}$CP" >&6
4706else
4707 echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709fi
4710
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004711# Extract the first word of "date", so it can be a program name with args.
4712set dummy date; ac_word=$2
4713echo "$as_me:$LINENO: checking for $ac_word" >&5
4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4715if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004718 case $DATE in
4719 [\\/]* | ?:[\\/]*)
4720 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004721 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004722 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004733 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004734done
4735done
John Criswell7a73b802003-06-30 21:59:07 +00004736
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004737 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004738 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004739esac
John Criswell7a73b802003-06-30 21:59:07 +00004740fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004741DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004742
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004743if test -n "$DATE"; then
4744 echo "$as_me:$LINENO: result: $DATE" >&5
4745echo "${ECHO_T}$DATE" >&6
4746else
4747 echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
4749fi
John Criswell7a73b802003-06-30 21:59:07 +00004750
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004751# Extract the first word of "find", so it can be a program name with args.
4752set dummy find; ac_word=$2
4753echo "$as_me:$LINENO: checking for $ac_word" >&5
4754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4755if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004758 case $FIND in
4759 [\\/]* | ?:[\\/]*)
4760 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4761 ;;
4762 *)
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775done
4776
4777 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4778 ;;
4779esac
4780fi
4781FIND=$ac_cv_path_FIND
4782
4783if test -n "$FIND"; then
4784 echo "$as_me:$LINENO: result: $FIND" >&5
4785echo "${ECHO_T}$FIND" >&6
4786else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789fi
4790
4791# Extract the first word of "grep", so it can be a program name with args.
4792set dummy grep; ac_word=$2
4793echo "$as_me:$LINENO: checking for $ac_word" >&5
4794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795if test "${ac_cv_path_GREP+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 case $GREP in
4799 [\\/]* | ?:[\\/]*)
4800 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4801 ;;
4802 *)
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
4805do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4813 fi
4814done
4815done
4816
4817 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4818 ;;
4819esac
4820fi
4821GREP=$ac_cv_path_GREP
4822
4823if test -n "$GREP"; then
4824 echo "$as_me:$LINENO: result: $GREP" >&5
4825echo "${ECHO_T}$GREP" >&6
4826else
4827 echo "$as_me:$LINENO: result: no" >&5
4828echo "${ECHO_T}no" >&6
4829fi
4830
4831# Extract the first word of "mkdir", so it can be a program name with args.
4832set dummy mkdir; ac_word=$2
4833echo "$as_me:$LINENO: checking for $ac_word" >&5
4834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4835if test "${ac_cv_path_MKDIR+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838 case $MKDIR in
4839 [\\/]* | ?:[\\/]*)
4840 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4841 ;;
4842 *)
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854done
4855done
4856
4857 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4858 ;;
4859esac
4860fi
4861MKDIR=$ac_cv_path_MKDIR
4862
4863if test -n "$MKDIR"; then
4864 echo "$as_me:$LINENO: result: $MKDIR" >&5
4865echo "${ECHO_T}$MKDIR" >&6
4866else
4867 echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869fi
4870
4871# Extract the first word of "mv", so it can be a program name with args.
4872set dummy mv; ac_word=$2
4873echo "$as_me:$LINENO: checking for $ac_word" >&5
4874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875if test "${ac_cv_path_MV+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878 case $MV in
4879 [\\/]* | ?:[\\/]*)
4880 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4881 ;;
4882 *)
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894done
4895done
4896
4897 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4898 ;;
4899esac
4900fi
4901MV=$ac_cv_path_MV
4902
4903if test -n "$MV"; then
4904 echo "$as_me:$LINENO: result: $MV" >&5
4905echo "${ECHO_T}$MV" >&6
4906else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909fi
4910
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004911if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4913set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4914echo "$as_me:$LINENO: checking for $ac_word" >&5
4915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916if test "${ac_cv_prog_RANLIB+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919 if test -n "$RANLIB"; then
4920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933done
4934done
4935
4936fi
4937fi
4938RANLIB=$ac_cv_prog_RANLIB
4939if test -n "$RANLIB"; then
4940 echo "$as_me:$LINENO: result: $RANLIB" >&5
4941echo "${ECHO_T}$RANLIB" >&6
4942else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945fi
4946
4947fi
4948if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951set dummy ranlib; ac_word=$2
4952echo "$as_me:$LINENO: checking for $ac_word" >&5
4953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_ac_ct_RANLIB="ranlib"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971done
4972done
4973
4974 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4975fi
4976fi
4977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978if test -n "$ac_ct_RANLIB"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4980echo "${ECHO_T}$ac_ct_RANLIB" >&6
4981else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984fi
4985
4986 RANLIB=$ac_ct_RANLIB
4987else
4988 RANLIB="$ac_cv_prog_RANLIB"
4989fi
4990
4991# Extract the first word of "rm", so it can be a program name with args.
4992set dummy rm; ac_word=$2
4993echo "$as_me:$LINENO: checking for $ac_word" >&5
4994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4995if test "${ac_cv_path_RM+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998 case $RM in
4999 [\\/]* | ?:[\\/]*)
5000 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5001 ;;
5002 *)
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014done
5015done
5016
5017 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5018 ;;
5019esac
5020fi
5021RM=$ac_cv_path_RM
5022
5023if test -n "$RM"; then
5024 echo "$as_me:$LINENO: result: $RM" >&5
5025echo "${ECHO_T}$RM" >&6
5026else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029fi
5030
5031# Extract the first word of "sed", so it can be a program name with args.
5032set dummy sed; ac_word=$2
5033echo "$as_me:$LINENO: checking for $ac_word" >&5
5034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035if test "${ac_cv_path_SED+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038 case $SED in
5039 [\\/]* | ?:[\\/]*)
5040 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041 ;;
5042 *)
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054done
5055done
5056
5057 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5058 ;;
5059esac
5060fi
5061SED=$ac_cv_path_SED
5062
5063if test -n "$SED"; then
5064 echo "$as_me:$LINENO: result: $SED" >&5
5065echo "${ECHO_T}$SED" >&6
5066else
5067 echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6
5069fi
5070
5071# Extract the first word of "tar", so it can be a program name with args.
5072set dummy tar; ac_word=$2
5073echo "$as_me:$LINENO: checking for $ac_word" >&5
5074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075if test "${ac_cv_path_TAR+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 case $TAR in
5079 [\\/]* | ?:[\\/]*)
5080 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5081 ;;
5082 *)
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH
5085do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5093 fi
5094done
5095done
5096
5097 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5098 ;;
5099esac
5100fi
5101TAR=$ac_cv_path_TAR
5102
5103if test -n "$TAR"; then
5104 echo "$as_me:$LINENO: result: $TAR" >&5
5105echo "${ECHO_T}$TAR" >&6
5106else
5107 echo "$as_me:$LINENO: result: no" >&5
5108echo "${ECHO_T}no" >&6
5109fi
5110
5111
5112# Find a good install program. We prefer a C program (faster),
5113# so one script is as good as another. But avoid the broken or
5114# incompatible versions:
5115# SysV /etc/install, /usr/sbin/install
5116# SunOS /usr/etc/install
5117# IRIX /sbin/install
5118# AIX /bin/install
5119# AmigaOS /C/install, which installs bootblocks on floppy discs
5120# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5121# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5122# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5123# OS/2's system install, which has a completely different semantic
5124# ./install, which can be erroneously created by make from ./install.sh.
5125echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5126echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5127if test -z "$INSTALL"; then
5128if test "${ac_cv_path_install+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 # Account for people who put trailing slashes in PATH elements.
5137case $as_dir/ in
5138 ./ | .// | /cC/* | \
5139 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5140 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5141 /usr/ucb/* ) ;;
5142 *)
5143 # OSF1 and SCO ODT 3.0 have their own names for install.
5144 # Don't use installbsd from OSF since it installs stuff as root
5145 # by default.
5146 for ac_prog in ginstall scoinst install; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5149 if test $ac_prog = install &&
5150 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5151 # AIX install. It has an incompatible calling convention.
5152 :
5153 elif test $ac_prog = install &&
5154 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5155 # program-specific install script used by HP pwplus--don't use.
5156 :
5157 else
5158 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5159 break 3
5160 fi
5161 fi
5162 done
5163 done
5164 ;;
5165esac
5166done
5167
5168
5169fi
5170 if test "${ac_cv_path_install+set}" = set; then
5171 INSTALL=$ac_cv_path_install
5172 else
5173 # As a last resort, use the slow shell script. We don't cache a
5174 # path for INSTALL within a source directory, because that will
5175 # break other packages using the cache if that directory is
5176 # removed, or if the path is relative.
5177 INSTALL=$ac_install_sh
5178 fi
5179fi
5180echo "$as_me:$LINENO: result: $INSTALL" >&5
5181echo "${ECHO_T}$INSTALL" >&6
5182
5183# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5184# It thinks the first close brace ends the variable substitution.
5185test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5186
5187test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5188
5189test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5190
5191
5192# Extract the first word of "bzip2", so it can be a program name with args.
5193set dummy bzip2; ac_word=$2
5194echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196if test "${ac_cv_path_BZIP2+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 case $BZIP2 in
5200 [\\/]* | ?:[\\/]*)
5201 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5202 ;;
5203 *)
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215done
5216done
5217
5218 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5219 ;;
5220esac
5221fi
5222BZIP2=$ac_cv_path_BZIP2
5223
5224if test -n "$BZIP2"; then
5225 echo "$as_me:$LINENO: result: $BZIP2" >&5
5226echo "${ECHO_T}$BZIP2" >&6
5227else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230fi
5231
5232# Extract the first word of "dot", so it can be a program name with args.
5233set dummy dot; ac_word=$2
5234echo "$as_me:$LINENO: checking for $ac_word" >&5
5235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236if test "${ac_cv_path_DOT+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 case $DOT in
5240 [\\/]* | ?:[\\/]*)
5241 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5242 ;;
5243 *)
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256done
5257
5258 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5259 ;;
5260esac
5261fi
5262DOT=$ac_cv_path_DOT
5263
5264if test -n "$DOT"; then
5265 echo "$as_me:$LINENO: result: $DOT" >&5
5266echo "${ECHO_T}$DOT" >&6
5267else
5268 echo "$as_me:$LINENO: result: no" >&5
5269echo "${ECHO_T}no" >&6
5270fi
5271
5272# Extract the first word of "doxygen", so it can be a program name with args.
5273set dummy doxygen; ac_word=$2
5274echo "$as_me:$LINENO: checking for $ac_word" >&5
5275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276if test "${ac_cv_path_DOXYGEN+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 case $DOXYGEN in
5280 [\\/]* | ?:[\\/]*)
5281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5282 ;;
5283 *)
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295done
5296done
5297
5298 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5299 ;;
5300esac
5301fi
5302DOXYGEN=$ac_cv_path_DOXYGEN
5303
5304if test -n "$DOXYGEN"; then
5305 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5306echo "${ECHO_T}$DOXYGEN" >&6
5307else
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310fi
5311
5312# Extract the first word of "etags", so it can be a program name with args.
5313set dummy etags; ac_word=$2
5314echo "$as_me:$LINENO: checking for $ac_word" >&5
5315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316if test "${ac_cv_path_ETAGS+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 case $ETAGS in
5320 [\\/]* | ?:[\\/]*)
5321 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5322 ;;
5323 *)
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335done
5336done
5337
5338 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5339 ;;
5340esac
5341fi
5342ETAGS=$ac_cv_path_ETAGS
5343
5344if test -n "$ETAGS"; then
5345 echo "$as_me:$LINENO: result: $ETAGS" >&5
5346echo "${ECHO_T}$ETAGS" >&6
5347else
5348 echo "$as_me:$LINENO: result: no" >&5
5349echo "${ECHO_T}no" >&6
5350fi
5351
5352# Extract the first word of "groff", so it can be a program name with args.
5353set dummy groff; ac_word=$2
5354echo "$as_me:$LINENO: checking for $ac_word" >&5
5355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356if test "${ac_cv_path_GROFF+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359 case $GROFF in
5360 [\\/]* | ?:[\\/]*)
5361 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5362 ;;
5363 *)
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376done
5377
5378 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5379 ;;
5380esac
5381fi
5382GROFF=$ac_cv_path_GROFF
5383
5384if test -n "$GROFF"; then
5385 echo "$as_me:$LINENO: result: $GROFF" >&5
5386echo "${ECHO_T}$GROFF" >&6
5387else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390fi
5391
5392# Extract the first word of "gzip", so it can be a program name with args.
5393set dummy gzip; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_path_GZIP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 case $GZIP in
5400 [\\/]* | ?:[\\/]*)
5401 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5402 ;;
5403 *)
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416done
5417
5418 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5419 ;;
5420esac
5421fi
5422GZIP=$ac_cv_path_GZIP
5423
5424if test -n "$GZIP"; then
5425 echo "$as_me:$LINENO: result: $GZIP" >&5
5426echo "${ECHO_T}$GZIP" >&6
5427else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430fi
5431
5432# Extract the first word of "pod2html", so it can be a program name with args.
5433set dummy pod2html; ac_word=$2
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_path_POD2HTML+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 case $POD2HTML in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5442 ;;
5443 *)
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456done
5457
5458 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5459 ;;
5460esac
5461fi
5462POD2HTML=$ac_cv_path_POD2HTML
5463
5464if test -n "$POD2HTML"; then
5465 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5466echo "${ECHO_T}$POD2HTML" >&6
5467else
5468 echo "$as_me:$LINENO: result: no" >&5
5469echo "${ECHO_T}no" >&6
5470fi
5471
5472# Extract the first word of "pod2man", so it can be a program name with args.
5473set dummy pod2man; ac_word=$2
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476if test "${ac_cv_path_POD2MAN+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 case $POD2MAN in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495done
5496done
5497
5498 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5499 ;;
5500esac
5501fi
5502POD2MAN=$ac_cv_path_POD2MAN
5503
5504if test -n "$POD2MAN"; then
5505 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5506echo "${ECHO_T}$POD2MAN" >&6
5507else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510fi
5511
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005512# Extract the first word of "runtest", so it can be a program name with args.
5513set dummy runtest; ac_word=$2
5514echo "$as_me:$LINENO: checking for $ac_word" >&5
5515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5516if test "${ac_cv_path_RUNTEST+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519 case $RUNTEST in
5520 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535done
5536done
5537
5538 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5539 ;;
5540esac
5541fi
5542RUNTEST=$ac_cv_path_RUNTEST
5543
5544if test -n "$RUNTEST"; then
5545 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5546echo "${ECHO_T}$RUNTEST" >&6
5547else
5548 echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
5550fi
5551
Reid Spencer0fcb9412004-11-30 08:11:54 +00005552
Reid Spencer0fcb9412004-11-30 08:11:54 +00005553no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005554echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5555echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005556
5557# Check whether --with-tclinclude or --without-tclinclude was given.
5558if test "${with_tclinclude+set}" = set; then
5559 withval="$with_tclinclude"
5560 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005561else
5562 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005563fi;
5564if test "${ac_cv_path_tclsh+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567
5568if test x"${with_tclinclude}" != x ; then
5569 if test -f ${with_tclinclude}/tclsh ; then
5570 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5571 elif test -f ${with_tclinclude}/src/tclsh ; then
5572 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5573 else
5574 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5575echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5576 { (exit 1); exit 1; }; }
5577 fi
5578fi
5579
Reid Spencer0fcb9412004-11-30 08:11:54 +00005580if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005581 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005582echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005583 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 +00005584do
5585 # Extract the first word of "$ac_prog", so it can be a program name with args.
5586set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005587echo "$as_me:$LINENO: checking for $ac_word" >&5
5588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005589if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
Reid Spencercda35f82004-12-02 04:17:20 +00005592 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005593 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005594 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005595 ;;
5596 *)
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005604 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609done
5610
5611 ;;
5612esac
5613fi
Reid Spencercda35f82004-12-02 04:17:20 +00005614TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005615
Reid Spencercda35f82004-12-02 04:17:20 +00005616if test -n "$TCLSH"; then
5617 echo "$as_me:$LINENO: result: $TCLSH" >&5
5618echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005619else
5620 echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622fi
5623
Reid Spencercda35f82004-12-02 04:17:20 +00005624 test -n "$TCLSH" && break
5625done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005626
Reid Spencercda35f82004-12-02 04:17:20 +00005627 if test x"${TCLSH}" = x ; then
5628 ac_cv_path_tclsh='';
5629 else
5630 ac_cv_path_tclsh="${TCLSH}";
5631 fi
5632else
5633 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5634echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5635 TCLSH="${ac_cv_path_tclsh}"
5636
5637fi
5638
5639fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005640
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005641# Extract the first word of "zip", so it can be a program name with args.
5642set dummy zip; ac_word=$2
5643echo "$as_me:$LINENO: checking for $ac_word" >&5
5644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645if test "${ac_cv_path_ZIP+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648 case $ZIP in
5649 [\\/]* | ?:[\\/]*)
5650 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5651 ;;
5652 *)
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665done
5666
5667 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5668 ;;
5669esac
5670fi
5671ZIP=$ac_cv_path_ZIP
5672
5673if test -n "$ZIP"; then
5674 echo "$as_me:$LINENO: result: $ZIP" >&5
5675echo "${ECHO_T}$ZIP" >&6
5676else
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679fi
5680
5681
5682echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5683echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5684if test "${llvm_cv_link_use_r+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005688ac_cpp='$CPP $CPPFLAGS'
5689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005693 oldcflags="$CFLAGS"
5694 CFLAGS="$CFLAGS -Wl,-R."
5695 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005701
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005702int
5703main ()
5704{
5705int main() { return 0; }
5706 ;
5707 return 0;
5708}
John Criswell47fdd832003-07-14 16:52:07 +00005709_ACEOF
5710rm -f conftest.$ac_objext conftest$ac_exeext
5711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005712 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005718 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005732 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005733else
John Criswell47fdd832003-07-14 16:52:07 +00005734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005735sed 's/^/| /' conftest.$ac_ext >&5
5736
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005737llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005738fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005739rm -f conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005741 CFLAGS="$oldcflags"
5742 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005748
John Criswell7a73b802003-06-30 21:59:07 +00005749fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005750echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5751echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5752if test "$llvm_cv_link_use_r" = yes ; then
5753
5754cat >>confdefs.h <<\_ACEOF
5755#define HAVE_LINK_R 1
5756_ACEOF
5757
John Criswell47fdd832003-07-14 16:52:07 +00005758 fi
John Criswell47fdd832003-07-14 16:52:07 +00005759
John Criswell47fdd832003-07-14 16:52:07 +00005760
John Criswell47fdd832003-07-14 16:52:07 +00005761
John Criswell7a73b802003-06-30 21:59:07 +00005762
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005763echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5764echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5765if test "${ac_cv_c_const+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h. */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h. */
5774
5775int
5776main ()
5777{
5778/* FIXME: Include the comments suggested by Paul. */
5779#ifndef __cplusplus
5780 /* Ultrix mips cc rejects this. */
5781 typedef int charset[2];
5782 const charset x;
5783 /* SunOS 4.1.1 cc rejects this. */
5784 char const *const *ccp;
5785 char **p;
5786 /* NEC SVR4.0.2 mips cc rejects this. */
5787 struct point {int x, y;};
5788 static struct point const zero = {0,0};
5789 /* AIX XL C 1.02.0.0 rejects this.
5790 It does not let you subtract one const X* pointer from another in
5791 an arm of an if-expression whose if-part is not a constant
5792 expression */
5793 const char *g = "string";
5794 ccp = &g + (g ? g-g : 0);
5795 /* HPUX 7.0 cc rejects these. */
5796 ++ccp;
5797 p = (char**) ccp;
5798 ccp = (char const *const *) p;
5799 { /* SCO 3.2v4 cc rejects this. */
5800 char *t;
5801 char const *s = 0 ? (char *) 0 : (char const *) 0;
5802
5803 *t++ = 0;
5804 }
5805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5806 int x[] = {25, 17};
5807 const int *foo = &x[0];
5808 ++foo;
5809 }
5810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5811 typedef const int *iptr;
5812 iptr p = 0;
5813 ++p;
5814 }
5815 { /* AIX XL C 1.02.0.0 rejects this saying
5816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5817 struct s { int j; const int *ap[3]; };
5818 struct s *b; b->j = 5;
5819 }
5820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5821 const int foo = 10;
5822 }
5823#endif
5824
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_c_const=yes
5852else
5853 echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856ac_cv_c_const=no
5857fi
5858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859fi
5860echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5861echo "${ECHO_T}$ac_cv_c_const" >&6
5862if test $ac_cv_c_const = no; then
5863
5864cat >>confdefs.h <<\_ACEOF
5865#define const
5866_ACEOF
5867
5868fi
5869
5870
5871echo "$as_me:$LINENO: checking for egrep" >&5
5872echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5873if test "${ac_cv_prog_egrep+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5877 then ac_cv_prog_egrep='grep -E'
5878 else ac_cv_prog_egrep='egrep'
5879 fi
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5882echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5883 EGREP=$ac_cv_prog_egrep
5884
John Criswell7a73b802003-06-30 21:59:07 +00005885
5886echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5887echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5888if test "${ac_cv_header_stdc+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005897#include <stdlib.h>
5898#include <stdarg.h>
5899#include <string.h>
5900#include <float.h>
5901
John Criswell0c38eaf2003-09-10 15:17:25 +00005902int
5903main ()
5904{
5905
5906 ;
5907 return 0;
5908}
John Criswell7a73b802003-06-30 21:59:07 +00005909_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005910rm -f conftest.$ac_objext
5911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005912 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005913 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005918 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005932 ac_cv_header_stdc=yes
5933else
5934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005938fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005940
5941if test $ac_cv_header_stdc = yes; then
5942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005949#include <string.h>
5950
5951_ACEOF
5952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005953 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005954 :
5955else
5956 ac_cv_header_stdc=no
5957fi
5958rm -f conftest*
5959
5960fi
5961
5962if test $ac_cv_header_stdc = yes; then
5963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005970#include <stdlib.h>
5971
5972_ACEOF
5973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005974 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005975 :
5976else
5977 ac_cv_header_stdc=no
5978fi
5979rm -f conftest*
5980
5981fi
5982
5983if test $ac_cv_header_stdc = yes; then
5984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5985 if test "$cross_compiling" = yes; then
5986 :
5987else
5988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005989/* confdefs.h. */
5990_ACEOF
5991cat confdefs.h >>conftest.$ac_ext
5992cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005994#include <ctype.h>
5995#if ((' ' & 0x0FF) == 0x020)
5996# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5997# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005999# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006000 (('a' <= (c) && (c) <= 'i') \
6001 || ('j' <= (c) && (c) <= 'r') \
6002 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006003# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6004#endif
6005
6006#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6007int
6008main ()
6009{
6010 int i;
6011 for (i = 0; i < 256; i++)
6012 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006013 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006014 exit(2);
6015 exit (0);
6016}
6017_ACEOF
6018rm -f conftest$ac_exeext
6019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020 (eval $ac_link) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 :
6030else
6031 echo "$as_me: program exited with status $ac_status" >&5
6032echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006033sed 's/^/| /' conftest.$ac_ext >&5
6034
John Criswell7a73b802003-06-30 21:59:07 +00006035( exit $ac_status )
6036ac_cv_header_stdc=no
6037fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006039fi
6040fi
6041fi
6042echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6043echo "${ECHO_T}$ac_cv_header_stdc" >&6
6044if test $ac_cv_header_stdc = yes; then
6045
6046cat >>confdefs.h <<\_ACEOF
6047#define STDC_HEADERS 1
6048_ACEOF
6049
6050fi
6051
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006052
6053
6054
6055
6056
6057ac_header_dirent=no
6058for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6059 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6060echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6061echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6062if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065 cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h. */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h. */
6071#include <sys/types.h>
6072#include <$ac_hdr>
6073
6074int
6075main ()
6076{
6077if ((DIR *) 0)
6078return 0;
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083rm -f conftest.$ac_objext
6084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 eval "$as_ac_Header=yes"
6106else
6107 echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
6110eval "$as_ac_Header=no"
6111fi
6112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113fi
6114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6119_ACEOF
6120
6121ac_header_dirent=$ac_hdr; break
6122fi
6123
6124done
6125# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6126if test $ac_header_dirent = dirent.h; then
6127 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6128echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6129if test "${ac_cv_search_opendir+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132 ac_func_search_save_LIBS=$LIBS
6133ac_cv_search_opendir=no
6134cat >conftest.$ac_ext <<_ACEOF
6135/* confdefs.h. */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h. */
6140
6141/* Override any gcc2 internal prototype to avoid an error. */
6142#ifdef __cplusplus
6143extern "C"
6144#endif
6145/* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6147char opendir ();
6148int
6149main ()
6150{
6151opendir ();
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156rm -f conftest.$ac_objext conftest$ac_exeext
6157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6158 (eval $ac_link) 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag"
6166 || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try='test -s conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_cv_search_opendir="none required"
6179else
6180 echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183fi
6184rm -f conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6186if test "$ac_cv_search_opendir" = no; then
6187 for ac_lib in dir; do
6188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6189 cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195
6196/* Override any gcc2 internal prototype to avoid an error. */
6197#ifdef __cplusplus
6198extern "C"
6199#endif
6200/* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6202char opendir ();
6203int
6204main ()
6205{
6206opendir ();
6207 ;
6208 return 0;
6209}
6210_ACEOF
6211rm -f conftest.$ac_objext conftest$ac_exeext
6212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213 (eval $ac_link) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_c_werror_flag"
6221 || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
6227 { ac_try='test -s conftest$ac_exeext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_search_opendir="-l$ac_lib"
6234break
6235else
6236 echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239fi
6240rm -f conftest.err conftest.$ac_objext \
6241 conftest$ac_exeext conftest.$ac_ext
6242 done
6243fi
6244LIBS=$ac_func_search_save_LIBS
6245fi
6246echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6247echo "${ECHO_T}$ac_cv_search_opendir" >&6
6248if test "$ac_cv_search_opendir" != no; then
6249 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6250
6251fi
6252
6253else
6254 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6255echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6256if test "${ac_cv_search_opendir+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259 ac_func_search_save_LIBS=$LIBS
6260ac_cv_search_opendir=no
6261cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267
6268/* Override any gcc2 internal prototype to avoid an error. */
6269#ifdef __cplusplus
6270extern "C"
6271#endif
6272/* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6274char opendir ();
6275int
6276main ()
6277{
6278opendir ();
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext conftest$ac_exeext
6284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_c_werror_flag"
6293 || test ! -s conftest.err'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; } &&
6299 { ac_try='test -s conftest$ac_exeext'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; }; then
6305 ac_cv_search_opendir="none required"
6306else
6307 echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310fi
6311rm -f conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313if test "$ac_cv_search_opendir" = no; then
6314 for ac_lib in x; do
6315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322
6323/* Override any gcc2 internal prototype to avoid an error. */
6324#ifdef __cplusplus
6325extern "C"
6326#endif
6327/* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329char opendir ();
6330int
6331main ()
6332{
6333opendir ();
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext conftest$ac_exeext
6339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_search_opendir="-l$ac_lib"
6361break
6362else
6363 echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366fi
6367rm -f conftest.err conftest.$ac_objext \
6368 conftest$ac_exeext conftest.$ac_ext
6369 done
6370fi
6371LIBS=$ac_func_search_save_LIBS
6372fi
6373echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6374echo "${ECHO_T}$ac_cv_search_opendir" >&6
6375if test "$ac_cv_search_opendir" != no; then
6376 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6377
6378fi
6379
6380fi
6381
John Criswell7a73b802003-06-30 21:59:07 +00006382# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006393 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006394do
6395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396echo "$as_me:$LINENO: checking for $ac_header" >&5
6397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006402/* confdefs.h. */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006407$ac_includes_default
6408
6409#include <$ac_header>
6410_ACEOF
6411rm -f conftest.$ac_objext
6412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006413 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 eval "$as_ac_Header=yes"
6434else
6435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006436sed 's/^/| /' conftest.$ac_ext >&5
6437
John Criswell7a73b802003-06-30 21:59:07 +00006438eval "$as_ac_Header=no"
6439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006441fi
6442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447_ACEOF
6448
6449fi
6450
6451done
6452
6453
6454
6455for ac_header in dlfcn.h
6456do
6457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006463fi
6464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006466else
Brian Gaeke0a621332004-09-08 20:38:05 +00006467 # Is the header compilable?
6468echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006471/* confdefs.h. */
6472_ACEOF
6473cat confdefs.h >>conftest.$ac_ext
6474cat >>conftest.$ac_ext <<_ACEOF
6475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006476$ac_includes_default
6477#include <$ac_header>
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006481 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006501 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006502else
6503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006504sed 's/^/| /' conftest.$ac_ext >&5
6505
Brian Gaeke0a621332004-09-08 20:38:05 +00006506ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006507fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510echo "${ECHO_T}$ac_header_compiler" >&6
6511
6512# Is the header present?
6513echo "$as_me:$LINENO: checking $ac_header presence" >&5
6514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6515cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
6521#include <$ac_header>
6522_ACEOF
6523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null; then
6531 if test -s conftest.err; then
6532 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006534 else
6535 ac_cpp_err=
6536 fi
6537else
6538 ac_cpp_err=yes
6539fi
6540if test -z "$ac_cpp_err"; then
6541 ac_header_preproc=yes
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 ac_header_preproc=no
6547fi
6548rm -f conftest.err conftest.$ac_ext
6549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550echo "${ECHO_T}$ac_header_preproc" >&6
6551
6552# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6559 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006560 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006561 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006574 (
6575 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006576## ----------------------------------- ##
6577## Report this to llvmbugs@cs.uiuc.edu ##
6578## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006579_ASBOX
6580 ) |
6581 sed "s/^/$as_me: WARNING: /" >&2
6582 ;;
6583esac
6584echo "$as_me:$LINENO: checking for $ac_header" >&5
6585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6586if eval "test \"\${$as_ac_Header+set}\" = set"; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006589 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006593
6594fi
John Criswell7a73b802003-06-30 21:59:07 +00006595if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598_ACEOF
6599
6600fi
6601
6602done
6603
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006604# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6605if test "${enable_ltdl_install+set}" = set; then
6606 enableval="$enable_ltdl_install"
6607
6608fi;
6609
6610
6611
6612if test x"${enable_ltdl_install-no}" != xno; then
6613 INSTALL_LTDL_TRUE=
6614 INSTALL_LTDL_FALSE='#'
6615else
6616 INSTALL_LTDL_TRUE='#'
6617 INSTALL_LTDL_FALSE=
6618fi
6619
6620
6621
6622if test x"${enable_ltdl_convenience-no}" != xno; then
6623 CONVENIENCE_LTDL_TRUE=
6624 CONVENIENCE_LTDL_FALSE='#'
6625else
6626 CONVENIENCE_LTDL_TRUE='#'
6627 CONVENIENCE_LTDL_FALSE=
6628fi
6629
6630
6631echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6632echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6633library_names_spec=
6634libname_spec='lib$name'
6635soname_spec=
6636shrext_cmds=".so"
6637postinstall_cmds=
6638postuninstall_cmds=
6639finish_cmds=
6640finish_eval=
6641shlibpath_var=
6642shlibpath_overrides_runpath=unknown
6643version_type=none
6644dynamic_linker="$host_os ld.so"
6645sys_lib_dlsearch_path_spec="/lib /usr/lib"
6646if test "$GCC" = yes; then
6647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6649 # if the path contains ";" then we assume it to be the separator
6650 # otherwise default to the standard path separator (i.e. ":") - it is
6651 # assumed that no part of a normal pathname contains ";" but that should
6652 # okay in the real world where ";" in dirpaths is itself problematic.
6653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6654 else
6655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6656 fi
6657else
6658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6659fi
6660need_lib_prefix=unknown
6661hardcode_into_libs=no
6662
6663# when you set need_version to no, make sure it does not cause -set_version
6664# flags to be left without arguments
6665need_version=unknown
6666
6667case $host_os in
6668aix3*)
6669 version_type=linux
6670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6671 shlibpath_var=LIBPATH
6672
6673 # AIX 3 has no versioning support, so we append a major version to the name.
6674 soname_spec='${libname}${release}${shared_ext}$major'
6675 ;;
6676
6677aix4* | aix5*)
6678 version_type=linux
6679 need_lib_prefix=no
6680 need_version=no
6681 hardcode_into_libs=yes
6682 if test "$host_cpu" = ia64; then
6683 # AIX 5 supports IA64
6684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6685 shlibpath_var=LD_LIBRARY_PATH
6686 else
6687 # With GCC up to 2.95.x, collect2 would create an import file
6688 # for dependence libraries. The import file would start with
6689 # the line `#! .'. This would cause the generated library to
6690 # depend on `.', always an invalid library. This was fixed in
6691 # development snapshots of GCC prior to 3.0.
6692 case $host_os in
6693 aix4 | aix4.[01] | aix4.[01].*)
6694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6695 echo ' yes '
6696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6697 :
6698 else
6699 can_build_shared=no
6700 fi
6701 ;;
6702 esac
6703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6704 # soname into executable. Probably we can add versioning support to
6705 # collect2, so additional links can be useful in future.
6706 if test "$aix_use_runtimelinking" = yes; then
6707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6708 # instead of lib<name>.a to let people know that these are not
6709 # typical AIX shared libraries.
6710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6711 else
6712 # We preserve .a as extension for shared libraries through AIX4.2
6713 # and later when we are not doing run time linking.
6714 library_names_spec='${libname}${release}.a $libname.a'
6715 soname_spec='${libname}${release}${shared_ext}$major'
6716 fi
6717 shlibpath_var=LIBPATH
6718 fi
6719 ;;
6720
6721amigaos*)
6722 library_names_spec='$libname.ixlibrary $libname.a'
6723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6724 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'
6725 ;;
6726
6727beos*)
6728 library_names_spec='${libname}${shared_ext}'
6729 dynamic_linker="$host_os ld.so"
6730 shlibpath_var=LIBRARY_PATH
6731 ;;
6732
6733bsdi[45]*)
6734 version_type=linux
6735 need_version=no
6736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6737 soname_spec='${libname}${release}${shared_ext}$major'
6738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6739 shlibpath_var=LD_LIBRARY_PATH
6740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6742 # the default ld.so.conf also contains /usr/contrib/lib and
6743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6744 # libtool to hard-code these into programs
6745 ;;
6746
6747cygwin* | mingw* | pw32*)
6748 version_type=windows
6749 shrext_cmds=".dll"
6750 need_version=no
6751 need_lib_prefix=no
6752
6753 case $GCC,$host_os in
6754 yes,cygwin* | yes,mingw* | yes,pw32*)
6755 library_names_spec='$libname.dll.a'
6756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6757 postinstall_cmds='base_file=`basename \${file}`~
6758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6759 dldir=$destdir/`dirname \$dlpath`~
6760 test -d \$dldir || mkdir -p \$dldir~
6761 $install_prog $dir/$dlname \$dldir/$dlname'
6762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6763 dlpath=$dir/\$dldll~
6764 $rm \$dlpath'
6765 shlibpath_overrides_runpath=yes
6766
6767 case $host_os in
6768 cygwin*)
6769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6772 ;;
6773 mingw*)
6774 # MinGW DLLs use traditional 'lib' prefix
6775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6778 # It is most probably a Windows format PATH printed by
6779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6780 # path with ; separators, and with drive letters. We can handle the
6781 # drive letters (cygwin fileutils understands them), so leave them,
6782 # especially as we might pass files found there to a mingw objdump,
6783 # which wouldn't understand a cygwinified path. Ahh.
6784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6785 else
6786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6787 fi
6788 ;;
6789 pw32*)
6790 # pw32 DLLs use 'pw' prefix rather than 'lib'
6791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6792 ;;
6793 esac
6794 ;;
6795
6796 *)
6797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6798 ;;
6799 esac
6800 dynamic_linker='Win32 ld.exe'
6801 # FIXME: first we should search . and the directory the executable is in
6802 shlibpath_var=PATH
6803 ;;
6804
6805darwin* | rhapsody*)
6806 dynamic_linker="$host_os dyld"
6807 version_type=darwin
6808 need_lib_prefix=no
6809 need_version=no
6810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6811 soname_spec='${libname}${release}${major}$shared_ext'
6812 shlibpath_overrides_runpath=yes
6813 shlibpath_var=DYLD_LIBRARY_PATH
6814 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6815 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6816 if test "$GCC" = yes; then
6817 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"`
6818 else
6819 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6820 fi
6821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6822 ;;
6823
6824dgux*)
6825 version_type=linux
6826 need_lib_prefix=no
6827 need_version=no
6828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6829 soname_spec='${libname}${release}${shared_ext}$major'
6830 shlibpath_var=LD_LIBRARY_PATH
6831 ;;
6832
6833freebsd1*)
6834 dynamic_linker=no
6835 ;;
6836
6837kfreebsd*-gnu)
6838 version_type=linux
6839 need_lib_prefix=no
6840 need_version=no
6841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6842 soname_spec='${libname}${release}${shared_ext}$major'
6843 shlibpath_var=LD_LIBRARY_PATH
6844 shlibpath_overrides_runpath=no
6845 hardcode_into_libs=yes
6846 dynamic_linker='GNU ld.so'
6847 ;;
6848
6849freebsd*)
6850 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6851 version_type=freebsd-$objformat
6852 case $version_type in
6853 freebsd-elf*)
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6855 need_version=no
6856 need_lib_prefix=no
6857 ;;
6858 freebsd-*)
6859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6860 need_version=yes
6861 ;;
6862 esac
6863 shlibpath_var=LD_LIBRARY_PATH
6864 case $host_os in
6865 freebsd2*)
6866 shlibpath_overrides_runpath=yes
6867 ;;
6868 freebsd3.01* | freebsdelf3.01*)
6869 shlibpath_overrides_runpath=yes
6870 hardcode_into_libs=yes
6871 ;;
6872 *) # from 3.2 on
6873 shlibpath_overrides_runpath=no
6874 hardcode_into_libs=yes
6875 ;;
6876 esac
6877 ;;
6878
6879gnu*)
6880 version_type=linux
6881 need_lib_prefix=no
6882 need_version=no
6883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6884 soname_spec='${libname}${release}${shared_ext}$major'
6885 shlibpath_var=LD_LIBRARY_PATH
6886 hardcode_into_libs=yes
6887 ;;
6888
6889hpux9* | hpux10* | hpux11*)
6890 # Give a soname corresponding to the major version so that dld.sl refuses to
6891 # link against other versions.
6892 version_type=sunos
6893 need_lib_prefix=no
6894 need_version=no
6895 case "$host_cpu" in
6896 ia64*)
6897 shrext_cmds='.so'
6898 hardcode_into_libs=yes
6899 dynamic_linker="$host_os dld.so"
6900 shlibpath_var=LD_LIBRARY_PATH
6901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6903 soname_spec='${libname}${release}${shared_ext}$major'
6904 if test "X$HPUX_IA64_MODE" = X32; then
6905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6906 else
6907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6908 fi
6909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6910 ;;
6911 hppa*64*)
6912 shrext_cmds='.sl'
6913 hardcode_into_libs=yes
6914 dynamic_linker="$host_os dld.sl"
6915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6918 soname_spec='${libname}${release}${shared_ext}$major'
6919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6921 ;;
6922 *)
6923 shrext_cmds='.sl'
6924 dynamic_linker="$host_os dld.sl"
6925 shlibpath_var=SHLIB_PATH
6926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6928 soname_spec='${libname}${release}${shared_ext}$major'
6929 ;;
6930 esac
6931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6932 postinstall_cmds='chmod 555 $lib'
6933 ;;
6934
6935irix5* | irix6* | nonstopux*)
6936 case $host_os in
6937 nonstopux*) version_type=nonstopux ;;
6938 *)
6939 if test "$lt_cv_prog_gnu_ld" = yes; then
6940 version_type=linux
6941 else
6942 version_type=irix
6943 fi ;;
6944 esac
6945 need_lib_prefix=no
6946 need_version=no
6947 soname_spec='${libname}${release}${shared_ext}$major'
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6949 case $host_os in
6950 irix5* | nonstopux*)
6951 libsuff= shlibsuff=
6952 ;;
6953 *)
6954 case $LD in # libtool.m4 will add one of these switches to LD
6955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6956 libsuff= shlibsuff= libmagic=32-bit;;
6957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6958 libsuff=32 shlibsuff=N32 libmagic=N32;;
6959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6961 *) libsuff= shlibsuff= libmagic=never-match;;
6962 esac
6963 ;;
6964 esac
6965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6966 shlibpath_overrides_runpath=no
6967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6969 hardcode_into_libs=yes
6970 ;;
6971
6972# No shared lib support for Linux oldld, aout, or coff.
6973linux*oldld* | linux*aout* | linux*coff*)
6974 dynamic_linker=no
6975 ;;
6976
6977# This must be Linux ELF.
6978linux*)
6979 version_type=linux
6980 need_lib_prefix=no
6981 need_version=no
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983 soname_spec='${libname}${release}${shared_ext}$major'
6984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6985 shlibpath_var=LD_LIBRARY_PATH
6986 shlibpath_overrides_runpath=no
6987 # This implies no fast_install, which is unacceptable.
6988 # Some rework will be needed to allow for fast_install
6989 # before this can be enabled.
6990 hardcode_into_libs=yes
6991
6992 # Append ld.so.conf contents to the search path
6993 if test -f /etc/ld.so.conf; then
6994 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6996 fi
6997
6998 # We used to test for /lib/ld.so.1 and disable shared libraries on
6999 # powerpc, because MkLinux only supported shared libraries with the
7000 # GNU dynamic linker. Since this was broken with cross compilers,
7001 # most powerpc-linux boxes support dynamic linking these days and
7002 # people can always --disable-shared, the test was removed, and we
7003 # assume the GNU/Linux dynamic linker is in use.
7004 dynamic_linker='GNU/Linux ld.so'
7005 ;;
7006
7007knetbsd*-gnu)
7008 version_type=linux
7009 need_lib_prefix=no
7010 need_version=no
7011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 shlibpath_var=LD_LIBRARY_PATH
7014 shlibpath_overrides_runpath=no
7015 hardcode_into_libs=yes
7016 dynamic_linker='GNU ld.so'
7017 ;;
7018
7019netbsd*)
7020 version_type=sunos
7021 need_lib_prefix=no
7022 need_version=no
7023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7026 dynamic_linker='NetBSD (a.out) ld.so'
7027 else
7028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7029 soname_spec='${libname}${release}${shared_ext}$major'
7030 dynamic_linker='NetBSD ld.elf_so'
7031 fi
7032 shlibpath_var=LD_LIBRARY_PATH
7033 shlibpath_overrides_runpath=yes
7034 hardcode_into_libs=yes
7035 ;;
7036
7037newsos6)
7038 version_type=linux
7039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7040 shlibpath_var=LD_LIBRARY_PATH
7041 shlibpath_overrides_runpath=yes
7042 ;;
7043
7044nto-qnx*)
7045 version_type=linux
7046 need_lib_prefix=no
7047 need_version=no
7048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049 soname_spec='${libname}${release}${shared_ext}$major'
7050 shlibpath_var=LD_LIBRARY_PATH
7051 shlibpath_overrides_runpath=yes
7052 ;;
7053
7054openbsd*)
7055 version_type=sunos
7056 need_lib_prefix=no
7057 need_version=no
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7060 shlibpath_var=LD_LIBRARY_PATH
7061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7062 case $host_os in
7063 openbsd2.[89] | openbsd2.[89].*)
7064 shlibpath_overrides_runpath=no
7065 ;;
7066 *)
7067 shlibpath_overrides_runpath=yes
7068 ;;
7069 esac
7070 else
7071 shlibpath_overrides_runpath=yes
7072 fi
7073 ;;
7074
7075os2*)
7076 libname_spec='$name'
7077 shrext_cmds=".dll"
7078 need_lib_prefix=no
7079 library_names_spec='$libname${shared_ext} $libname.a'
7080 dynamic_linker='OS/2 ld.exe'
7081 shlibpath_var=LIBPATH
7082 ;;
7083
7084osf3* | osf4* | osf5*)
7085 version_type=osf
7086 need_lib_prefix=no
7087 need_version=no
7088 soname_spec='${libname}${release}${shared_ext}$major'
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7093 ;;
7094
7095sco3.2v5*)
7096 version_type=osf
7097 soname_spec='${libname}${release}${shared_ext}$major'
7098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7099 shlibpath_var=LD_LIBRARY_PATH
7100 ;;
7101
7102solaris*)
7103 version_type=linux
7104 need_lib_prefix=no
7105 need_version=no
7106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7107 soname_spec='${libname}${release}${shared_ext}$major'
7108 shlibpath_var=LD_LIBRARY_PATH
7109 shlibpath_overrides_runpath=yes
7110 hardcode_into_libs=yes
7111 # ldd complains unless libraries are executable
7112 postinstall_cmds='chmod +x $lib'
7113 ;;
7114
7115sunos4*)
7116 version_type=sunos
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7119 shlibpath_var=LD_LIBRARY_PATH
7120 shlibpath_overrides_runpath=yes
7121 if test "$with_gnu_ld" = yes; then
7122 need_lib_prefix=no
7123 fi
7124 need_version=yes
7125 ;;
7126
7127sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7128 version_type=linux
7129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7130 soname_spec='${libname}${release}${shared_ext}$major'
7131 shlibpath_var=LD_LIBRARY_PATH
7132 case $host_vendor in
7133 sni)
7134 shlibpath_overrides_runpath=no
7135 need_lib_prefix=no
7136 export_dynamic_flag_spec='${wl}-Blargedynsym'
7137 runpath_var=LD_RUN_PATH
7138 ;;
7139 siemens)
7140 need_lib_prefix=no
7141 ;;
7142 motorola)
7143 need_lib_prefix=no
7144 need_version=no
7145 shlibpath_overrides_runpath=no
7146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7147 ;;
7148 esac
7149 ;;
7150
7151sysv4*MP*)
7152 if test -d /usr/nec ;then
7153 version_type=linux
7154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7155 soname_spec='$libname${shared_ext}.$major'
7156 shlibpath_var=LD_LIBRARY_PATH
7157 fi
7158 ;;
7159
7160uts4*)
7161 version_type=linux
7162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7163 soname_spec='${libname}${release}${shared_ext}$major'
7164 shlibpath_var=LD_LIBRARY_PATH
7165 ;;
7166
7167*)
7168 dynamic_linker=no
7169 ;;
7170esac
7171echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7172echo "${ECHO_T}$dynamic_linker" >&6
7173test "$dynamic_linker" = no && can_build_shared=no
7174
7175
7176echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7177echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7178if test "${libltdl_cv_shlibext+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181
7182module=yes
7183eval libltdl_cv_shlibext=$shrext_cmds
7184
7185fi
7186echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7187echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7188if test -n "$libltdl_cv_shlibext"; then
7189
7190cat >>confdefs.h <<_ACEOF
7191#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7192_ACEOF
7193
7194fi
7195
7196
7197echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7198echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7199if test "${libltdl_cv_shlibpath_var+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 libltdl_cv_shlibpath_var="$shlibpath_var"
7203fi
7204echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7205echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7206if test -n "$libltdl_cv_shlibpath_var"; then
7207
7208cat >>confdefs.h <<_ACEOF
7209#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7210_ACEOF
7211
7212fi
7213
7214
7215echo "$as_me:$LINENO: checking for the default library search path" >&5
7216echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7217if test "${libltdl_cv_sys_search_path+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7221fi
7222echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7223echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7224if test -n "$libltdl_cv_sys_search_path"; then
7225 sys_search_path=
7226 for dir in $libltdl_cv_sys_search_path; do
7227 if test -z "$sys_search_path"; then
7228 sys_search_path="$dir"
7229 else
7230 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7231 fi
7232 done
7233
7234cat >>confdefs.h <<_ACEOF
7235#define LTDL_SYSSEARCHPATH "$sys_search_path"
7236_ACEOF
7237
7238fi
7239
7240echo "$as_me:$LINENO: checking for objdir" >&5
7241echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7242if test "${libltdl_cv_objdir+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245 libltdl_cv_objdir="$objdir"
7246 if test -n "$objdir"; then
7247 :
7248 else
7249 rm -f .libs 2>/dev/null
7250 mkdir .libs 2>/dev/null
7251 if test -d .libs; then
7252 libltdl_cv_objdir=.libs
7253 else
7254 # MS-DOS does not allow filenames that begin with a dot.
7255 libltdl_cv_objdir=_libs
7256 fi
7257 rmdir .libs 2>/dev/null
7258 fi
7259
7260fi
7261echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7262echo "${ECHO_T}$libltdl_cv_objdir" >&6
7263
7264cat >>confdefs.h <<_ACEOF
7265#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7266_ACEOF
7267
7268
7269echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7270echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7271if test "${lt_cv_path_NM+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274 if test -n "$NM"; then
7275 # Let the user override the test.
7276 lt_cv_path_NM="$NM"
7277else
7278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7279 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7280 IFS="$lt_save_ifs"
7281 test -z "$ac_dir" && ac_dir=.
7282 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7284 # Check to see if the nm accepts a BSD-compat flag.
7285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7286 # nm: unknown option "B" ignored
7287 # Tru64's nm complains that /dev/null is an invalid object file
7288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7289 */dev/null* | *'Invalid file or object type'*)
7290 lt_cv_path_NM="$tmp_nm -B"
7291 break
7292 ;;
7293 *)
7294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7295 */dev/null*)
7296 lt_cv_path_NM="$tmp_nm -p"
7297 break
7298 ;;
7299 *)
7300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7301 continue # so that we can try to find one that supports BSD flags
7302 ;;
7303 esac
7304 esac
7305 fi
7306 done
7307 IFS="$lt_save_ifs"
7308 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7309fi
7310fi
7311echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7312echo "${ECHO_T}$lt_cv_path_NM" >&6
7313NM="$lt_cv_path_NM"
7314
7315
7316
7317
7318
7319# Check for command to grab the raw symbol name followed by C symbol from nm.
7320echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7321echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7322if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325
7326# These are sane defaults that work on at least a few old systems.
7327# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7328
7329# Character class describing NM global symbol codes.
7330symcode='[BCDEGRST]'
7331
7332# Regexp to match symbols that can be accessed directly from C.
7333sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7334
7335# Transform the above into a raw symbol and a C symbol.
7336symxfrm='\1 \2\3 \3'
7337
7338# Transform an extracted symbol line into a proper C declaration
7339lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7340
7341# Transform an extracted symbol line into symbol name and symbol address
7342lt_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'"
7343
7344# Define system-specific variables.
7345case $host_os in
7346aix*)
7347 symcode='[BCDT]'
7348 ;;
7349cygwin* | mingw* | pw32*)
7350 symcode='[ABCDGISTW]'
7351 ;;
7352hpux*) # Its linker distinguishes data from code symbols
7353 if test "$host_cpu" = ia64; then
7354 symcode='[ABCDEGRST]'
7355 fi
7356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7357 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'"
7358 ;;
7359linux*)
7360 if test "$host_cpu" = ia64; then
7361 symcode='[ABCDGIRSTW]'
7362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7363 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'"
7364 fi
7365 ;;
7366irix* | nonstopux*)
7367 symcode='[BCDEGRST]'
7368 ;;
7369osf*)
7370 symcode='[BCDEGQRST]'
7371 ;;
7372solaris* | sysv5*)
7373 symcode='[BDRT]'
7374 ;;
7375sysv4)
7376 symcode='[DFNSTU]'
7377 ;;
7378esac
7379
7380# Handle CRLF in mingw tool chain
7381opt_cr=
7382case $build_os in
7383mingw*)
7384 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7385 ;;
7386esac
7387
7388# If we're using GNU nm, then use its standard symbol codes.
7389case `$NM -V 2>&1` in
7390*GNU* | *'with BFD'*)
7391 symcode='[ABCDGIRSTW]' ;;
7392esac
7393
7394# Try without a prefix undercore, then with it.
7395for ac_symprfx in "" "_"; do
7396
7397 # Write the raw and C identifiers.
7398 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7399
7400 # Check to see that the pipe works correctly.
7401 pipe_works=no
7402
7403 rm -f conftest*
7404 cat > conftest.$ac_ext <<EOF
7405#ifdef __cplusplus
7406extern "C" {
7407#endif
7408char nm_test_var;
7409void nm_test_func(){}
7410#ifdef __cplusplus
7411}
7412#endif
7413int main(){nm_test_var='a';nm_test_func();return(0);}
7414EOF
7415
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; then
7421 # Now try to grab the symbols.
7422 nlist=conftest.nm
7423 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7424 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && test -s "$nlist"; then
7428 # Try sorting and uniquifying the output.
7429 if sort "$nlist" | uniq > "$nlist"T; then
7430 mv -f "$nlist"T "$nlist"
7431 else
7432 rm -f "$nlist"T
7433 fi
7434
7435 # Make sure that we snagged all the symbols we need.
7436 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7437 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7438 cat <<EOF > conftest.$ac_ext
7439#ifdef __cplusplus
7440extern "C" {
7441#endif
7442
7443EOF
7444 # Now generate the symbol file.
7445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7446
7447 cat <<EOF >> conftest.$ac_ext
7448#if defined (__STDC__) && __STDC__
7449# define lt_ptr_t void *
7450#else
7451# define lt_ptr_t char *
7452# define const
7453#endif
7454
7455/* The mapping between symbol names and symbols. */
7456const struct {
7457 const char *name;
7458 lt_ptr_t address;
7459}
7460lt_preloaded_symbols[] =
7461{
7462EOF
7463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7464 cat <<\EOF >> conftest.$ac_ext
7465 {0, (lt_ptr_t) 0}
7466};
7467
7468#ifdef __cplusplus
7469}
7470#endif
7471EOF
7472 # Now try linking the two files.
7473 mv conftest.$ac_objext conftstm.$ac_objext
7474 lt_save_LIBS="$LIBS"
7475 lt_save_CFLAGS="$CFLAGS"
7476 LIBS="conftstm.$ac_objext"
7477 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7483 pipe_works=yes
7484 fi
7485 LIBS="$lt_save_LIBS"
7486 CFLAGS="$lt_save_CFLAGS"
7487 else
7488 echo "cannot find nm_test_func in $nlist" >&5
7489 fi
7490 else
7491 echo "cannot find nm_test_var in $nlist" >&5
7492 fi
7493 else
7494 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7495 fi
7496 else
7497 echo "$progname: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7499 fi
7500 rm -f conftest* conftst*
7501
7502 # Do not use the global_symbol_pipe unless it works.
7503 if test "$pipe_works" = yes; then
7504 break
7505 else
7506 lt_cv_sys_global_symbol_pipe=
7507 fi
7508done
7509
7510fi
7511
7512if test -z "$lt_cv_sys_global_symbol_pipe"; then
7513 lt_cv_sys_global_symbol_to_cdecl=
7514fi
7515if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7516 echo "$as_me:$LINENO: result: failed" >&5
7517echo "${ECHO_T}failed" >&6
7518else
7519 echo "$as_me:$LINENO: result: ok" >&5
7520echo "${ECHO_T}ok" >&6
7521fi
7522
7523
7524echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7525echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7526if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7530 libltdl_cv_preloaded_symbols=yes
7531 else
7532 libltdl_cv_preloaded_symbols=no
7533 fi
7534
7535fi
7536echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7537echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7538if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7539
7540cat >>confdefs.h <<\_ACEOF
7541#define HAVE_PRELOADED_SYMBOLS 1
7542_ACEOF
7543
7544fi
7545
7546LIBADD_DL=
7547
7548ac_ext=c
7549ac_cpp='$CPP $CPPFLAGS'
7550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
7554
7555echo "$as_me:$LINENO: checking for shl_load" >&5
7556echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7557if test "${ac_cv_func_shl_load+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h. */
7566/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7568#define shl_load innocuous_shl_load
7569
7570/* System header to define __stub macros and hopefully few prototypes,
7571 which can conflict with char shl_load (); below.
7572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573 <limits.h> exists even on freestanding compilers. */
7574
7575#ifdef __STDC__
7576# include <limits.h>
7577#else
7578# include <assert.h>
7579#endif
7580
7581#undef shl_load
7582
7583/* Override any gcc2 internal prototype to avoid an error. */
7584#ifdef __cplusplus
7585extern "C"
7586{
7587#endif
7588/* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7590char shl_load ();
7591/* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594#if defined (__stub_shl_load) || defined (__stub___shl_load)
7595choke me
7596#else
7597char (*f) () = shl_load;
7598#endif
7599#ifdef __cplusplus
7600}
7601#endif
7602
7603int
7604main ()
7605{
7606return f != shl_load;
7607 ;
7608 return 0;
7609}
7610_ACEOF
7611rm -f conftest.$ac_objext conftest$ac_exeext
7612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -z "$ac_c_werror_flag"
7621 || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_func_shl_load=yes
7634else
7635 echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638ac_cv_func_shl_load=no
7639fi
7640rm -f conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7642fi
7643echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7644echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7645if test $ac_cv_func_shl_load = yes; then
7646
7647cat >>confdefs.h <<\_ACEOF
7648#define HAVE_SHL_LOAD 1
7649_ACEOF
7650
7651else
7652 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7653echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7654if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657 ac_check_lib_save_LIBS=$LIBS
7658LIBS="-ldld $LIBS"
7659cat >conftest.$ac_ext <<_ACEOF
7660/* confdefs.h. */
7661_ACEOF
7662cat confdefs.h >>conftest.$ac_ext
7663cat >>conftest.$ac_ext <<_ACEOF
7664/* end confdefs.h. */
7665
7666/* Override any gcc2 internal prototype to avoid an error. */
7667#ifdef __cplusplus
7668extern "C"
7669#endif
7670/* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672char shl_load ();
7673int
7674main ()
7675{
7676shl_load ();
7677 ;
7678 return 0;
7679}
7680_ACEOF
7681rm -f conftest.$ac_objext conftest$ac_exeext
7682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_lib_dld_shl_load=yes
7704else
7705 echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
7708ac_cv_lib_dld_shl_load=no
7709fi
7710rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712LIBS=$ac_check_lib_save_LIBS
7713fi
7714echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7715echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7716if test $ac_cv_lib_dld_shl_load = yes; then
7717
7718cat >>confdefs.h <<\_ACEOF
7719#define HAVE_SHL_LOAD 1
7720_ACEOF
7721
7722 LIBADD_DL="$LIBADD_DL -ldld"
7723else
7724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7725echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7726if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729 ac_check_lib_save_LIBS=$LIBS
7730LIBS="-ldl $LIBS"
7731cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737
7738/* Override any gcc2 internal prototype to avoid an error. */
7739#ifdef __cplusplus
7740extern "C"
7741#endif
7742/* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744char dlopen ();
7745int
7746main ()
7747{
7748dlopen ();
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext conftest$ac_exeext
7754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_lib_dl_dlopen=yes
7776else
7777 echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780ac_cv_lib_dl_dlopen=no
7781fi
7782rm -f conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7784LIBS=$ac_check_lib_save_LIBS
7785fi
7786echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7787echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7788if test $ac_cv_lib_dl_dlopen = yes; then
7789
7790cat >>confdefs.h <<\_ACEOF
7791#define HAVE_LIBDL 1
7792_ACEOF
7793
7794 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7795else
7796 cat >conftest.$ac_ext <<_ACEOF
7797/* confdefs.h. */
7798_ACEOF
7799cat confdefs.h >>conftest.$ac_ext
7800cat >>conftest.$ac_ext <<_ACEOF
7801/* end confdefs.h. */
7802#if HAVE_DLFCN_H
7803# include <dlfcn.h>
7804#endif
7805
7806int
7807main ()
7808{
7809dlopen(0, 0);
7810 ;
7811 return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext conftest$ac_exeext
7815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836
7837cat >>confdefs.h <<\_ACEOF
7838#define HAVE_LIBDL 1
7839_ACEOF
7840 libltdl_cv_func_dlopen="yes"
7841else
7842 echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7846echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7847if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850 ac_check_lib_save_LIBS=$LIBS
7851LIBS="-lsvld $LIBS"
7852cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
7858
7859/* Override any gcc2 internal prototype to avoid an error. */
7860#ifdef __cplusplus
7861extern "C"
7862#endif
7863/* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7865char dlopen ();
7866int
7867main ()
7868{
7869dlopen ();
7870 ;
7871 return 0;
7872}
7873_ACEOF
7874rm -f conftest.$ac_objext conftest$ac_exeext
7875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_svld_dlopen=yes
7897else
7898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901ac_cv_lib_svld_dlopen=no
7902fi
7903rm -f conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905LIBS=$ac_check_lib_save_LIBS
7906fi
7907echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909if test $ac_cv_lib_svld_dlopen = yes; then
7910
7911cat >>confdefs.h <<\_ACEOF
7912#define HAVE_LIBDL 1
7913_ACEOF
7914
7915 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7916else
7917 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7918echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7919if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922 ac_check_lib_save_LIBS=$LIBS
7923LIBS="-ldld $LIBS"
7924cat >conftest.$ac_ext <<_ACEOF
7925/* confdefs.h. */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h. */
7930
7931/* Override any gcc2 internal prototype to avoid an error. */
7932#ifdef __cplusplus
7933extern "C"
7934#endif
7935/* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937char dld_link ();
7938int
7939main ()
7940{
7941dld_link ();
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_lib_dld_dld_link=yes
7969else
7970 echo "$as_me: failed program was:" >&5
7971sed 's/^/| /' conftest.$ac_ext >&5
7972
7973ac_cv_lib_dld_dld_link=no
7974fi
7975rm -f conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977LIBS=$ac_check_lib_save_LIBS
7978fi
7979echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7980echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7981if test $ac_cv_lib_dld_dld_link = yes; then
7982
7983cat >>confdefs.h <<\_ACEOF
7984#define HAVE_DLD 1
7985_ACEOF
7986
7987 LIBADD_DL="$LIBADD_DL -ldld"
7988else
7989 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7990echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7991if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994 cat >conftest.$ac_ext <<_ACEOF
7995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h. */
8000/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8002#define _dyld_func_lookup innocuous__dyld_func_lookup
8003
8004/* System header to define __stub macros and hopefully few prototypes,
8005 which can conflict with char _dyld_func_lookup (); below.
8006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007 <limits.h> exists even on freestanding compilers. */
8008
8009#ifdef __STDC__
8010# include <limits.h>
8011#else
8012# include <assert.h>
8013#endif
8014
8015#undef _dyld_func_lookup
8016
8017/* Override any gcc2 internal prototype to avoid an error. */
8018#ifdef __cplusplus
8019extern "C"
8020{
8021#endif
8022/* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024char _dyld_func_lookup ();
8025/* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8029choke me
8030#else
8031char (*f) () = _dyld_func_lookup;
8032#endif
8033#ifdef __cplusplus
8034}
8035#endif
8036
8037int
8038main ()
8039{
8040return f != _dyld_func_lookup;
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext conftest$ac_exeext
8046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 ac_cv_func__dyld_func_lookup=yes
8068else
8069 echo "$as_me: failed program was:" >&5
8070sed 's/^/| /' conftest.$ac_ext >&5
8071
8072ac_cv_func__dyld_func_lookup=no
8073fi
8074rm -f conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8076fi
8077echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8078echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8079if test $ac_cv_func__dyld_func_lookup = yes; then
8080
8081cat >>confdefs.h <<\_ACEOF
8082#define HAVE_DYLD 1
8083_ACEOF
8084
8085fi
8086
8087
8088fi
8089
8090
8091fi
8092
8093
8094fi
8095rm -f conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097
8098fi
8099
8100
8101fi
8102
8103
8104fi
8105
8106
8107if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8108then
8109 lt_save_LIBS="$LIBS"
8110 LIBS="$LIBS $LIBADD_DL"
8111
8112for ac_func in dlerror
8113do
8114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8115echo "$as_me:$LINENO: checking for $ac_func" >&5
8116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8117if eval "test \"\${$as_ac_var+set}\" = set"; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8128#define $ac_func innocuous_$ac_func
8129
8130/* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char $ac_func (); below.
8132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8133 <limits.h> exists even on freestanding compilers. */
8134
8135#ifdef __STDC__
8136# include <limits.h>
8137#else
8138# include <assert.h>
8139#endif
8140
8141#undef $ac_func
8142
8143/* Override any gcc2 internal prototype to avoid an error. */
8144#ifdef __cplusplus
8145extern "C"
8146{
8147#endif
8148/* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8150char $ac_func ();
8151/* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155choke me
8156#else
8157char (*f) () = $ac_func;
8158#endif
8159#ifdef __cplusplus
8160}
8161#endif
8162
8163int
8164main ()
8165{
8166return f != $ac_func;
8167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
8172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 eval "$as_ac_var=yes"
8194else
8195 echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
8198eval "$as_ac_var=no"
8199fi
8200rm -f conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202fi
8203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8205if test `eval echo '${'$as_ac_var'}'` = yes; then
8206 cat >>confdefs.h <<_ACEOF
8207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8208_ACEOF
8209
8210fi
8211done
8212
8213 LIBS="$lt_save_LIBS"
8214fi
8215ac_ext=c
8216ac_cpp='$CPP $CPPFLAGS'
8217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
8221
8222
8223echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8224echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8225if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 ac_cv_sys_symbol_underscore=no
8229 cat > conftest.$ac_ext <<EOF
8230void nm_test_func(){}
8231int main(){nm_test_func;return 0;}
8232EOF
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; then
8238 # Now try to grab the symbols.
8239 ac_nlist=conftest.nm
8240 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && test -s "$ac_nlist"; then
8245 # See whether the symbols have a leading underscore.
8246 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8247 ac_cv_sys_symbol_underscore=yes
8248 else
8249 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8250 :
8251 else
8252 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8253 fi
8254 fi
8255 else
8256 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8257 fi
8258 else
8259 echo "configure: failed program was:" >&5
8260 cat conftest.c >&5
8261 fi
8262 rm -rf conftest*
8263
8264fi
8265echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8266echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8267
8268
8269if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8270 if test x"$libltdl_cv_func_dlopen" = xyes ||
8271 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8272 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8273echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8274if test "${libltdl_cv_need_uscore+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 libltdl_cv_need_uscore=unknown
8278 save_LIBS="$LIBS"
8279 LIBS="$LIBS $LIBADD_DL"
8280 if test "$cross_compiling" = yes; then :
8281 libltdl_cv_need_uscore=cross
8282else
8283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8284 lt_status=$lt_dlunknown
8285 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +00008286#line 8286 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008287#include "confdefs.h"
8288
8289#if HAVE_DLFCN_H
8290#include <dlfcn.h>
8291#endif
8292
8293#include <stdio.h>
8294
8295#ifdef RTLD_GLOBAL
8296# define LT_DLGLOBAL RTLD_GLOBAL
8297#else
8298# ifdef DL_GLOBAL
8299# define LT_DLGLOBAL DL_GLOBAL
8300# else
8301# define LT_DLGLOBAL 0
8302# endif
8303#endif
8304
8305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8306 find out it does not work in some platform. */
8307#ifndef LT_DLLAZY_OR_NOW
8308# ifdef RTLD_LAZY
8309# define LT_DLLAZY_OR_NOW RTLD_LAZY
8310# else
8311# ifdef DL_LAZY
8312# define LT_DLLAZY_OR_NOW DL_LAZY
8313# else
8314# ifdef RTLD_NOW
8315# define LT_DLLAZY_OR_NOW RTLD_NOW
8316# else
8317# ifdef DL_NOW
8318# define LT_DLLAZY_OR_NOW DL_NOW
8319# else
8320# define LT_DLLAZY_OR_NOW 0
8321# endif
8322# endif
8323# endif
8324# endif
8325#endif
8326
8327#ifdef __cplusplus
8328extern "C" void exit (int);
8329#endif
8330
8331void fnord() { int i=42;}
8332int main ()
8333{
8334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8335 int status = $lt_dlunknown;
8336
8337 if (self)
8338 {
8339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8340 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8341 /* dlclose (self); */
8342 }
8343
8344 exit (status);
8345}
8346EOF
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8352 (./conftest; exit; ) 2>/dev/null
8353 lt_status=$?
8354 case x$lt_status in
8355 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8356 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8357 x$lt_unknown|x*) ;;
8358 esac
8359 else :
8360 # compilation failed
8361
8362 fi
8363fi
8364rm -fr conftest*
8365
8366 LIBS="$save_LIBS"
8367
8368fi
8369echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8370echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8371 fi
8372fi
8373
8374if test x"$libltdl_cv_need_uscore" = xyes; then
8375
8376cat >>confdefs.h <<\_ACEOF
8377#define NEED_USCORE 1
8378_ACEOF
8379
8380fi
8381
8382
8383echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8384echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8385if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387else
8388 # PORTME does your system automatically load deplibs for dlopen?
8389 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8390 # For now, we just catch OSes we know something about -- in the
8391 # future, we'll try test this programmatically.
8392 libltdl_cv_sys_dlopen_deplibs=unknown
8393 case "$host_os" in
8394 aix3*|aix4.1.*|aix4.2.*)
8395 # Unknown whether this is true for these versions of AIX, but
8396 # we want this `case' here to explicitly catch those versions.
8397 libltdl_cv_sys_dlopen_deplibs=unknown
8398 ;;
8399 aix[45]*)
8400 libltdl_cv_sys_dlopen_deplibs=yes
8401 ;;
8402 darwin*)
8403 # Assuming the user has installed a libdl from somewhere, this is true
8404 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8405 libltdl_cv_sys_dlopen_deplibs=yes
8406 ;;
8407 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8408 # GNU and its variants, using gnu ld.so (Glibc)
8409 libltdl_cv_sys_dlopen_deplibs=yes
8410 ;;
8411 hpux10*|hpux11*)
8412 libltdl_cv_sys_dlopen_deplibs=yes
8413 ;;
8414 irix[12345]*|irix6.[01]*)
8415 # Catch all versions of IRIX before 6.2, and indicate that we don't
8416 # know how it worked for any of those versions.
8417 libltdl_cv_sys_dlopen_deplibs=unknown
8418 ;;
8419 irix*)
8420 # The case above catches anything before 6.2, and it's known that
8421 # at 6.2 and later dlopen does load deplibs.
8422 libltdl_cv_sys_dlopen_deplibs=yes
8423 ;;
8424 netbsd*)
8425 libltdl_cv_sys_dlopen_deplibs=yes
8426 ;;
8427 openbsd*)
8428 libltdl_cv_sys_dlopen_deplibs=yes
8429 ;;
8430 osf[1234]*)
8431 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8432 # it did *not* use an RPATH in a shared library to find objects the
8433 # library depends on, so we explictly say `no'.
8434 libltdl_cv_sys_dlopen_deplibs=no
8435 ;;
8436 osf5.0|osf5.0a|osf5.1)
8437 # dlopen *does* load deplibs and with the right loader patch applied
8438 # it even uses RPATH in a shared library to search for shared objects
8439 # that the library depends on, but there's no easy way to know if that
8440 # patch is installed. Since this is the case, all we can really
8441 # say is unknown -- it depends on the patch being installed. If
8442 # it is, this changes to `yes'. Without it, it would be `no'.
8443 libltdl_cv_sys_dlopen_deplibs=unknown
8444 ;;
8445 osf*)
8446 # the two cases above should catch all versions of osf <= 5.1. Read
8447 # the comments above for what we know about them.
8448 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8449 # is used to find them so we can finally say `yes'.
8450 libltdl_cv_sys_dlopen_deplibs=yes
8451 ;;
8452 solaris*)
8453 libltdl_cv_sys_dlopen_deplibs=yes
8454 ;;
8455 esac
8456
8457fi
8458echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8459echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8460if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8461
8462cat >>confdefs.h <<\_ACEOF
8463#define LTDL_DLOPEN_DEPLIBS 1
8464_ACEOF
8465
8466fi
8467
8468
8469for ac_header in argz.h
8470do
8471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8472if eval "test \"\${$as_ac_Header+set}\" = set"; then
8473 echo "$as_me:$LINENO: checking for $ac_header" >&5
8474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8477fi
8478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480else
8481 # Is the header compilable?
8482echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8484cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
8490$ac_includes_default
8491#include <$ac_header>
8492_ACEOF
8493rm -f conftest.$ac_objext
8494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_header_compiler=yes
8516else
8517 echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520ac_header_compiler=no
8521fi
8522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524echo "${ECHO_T}$ac_header_compiler" >&6
8525
8526# Is the header present?
8527echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8529cat >conftest.$ac_ext <<_ACEOF
8530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
8535#include <$ac_header>
8536_ACEOF
8537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } >/dev/null; then
8545 if test -s conftest.err; then
8546 ac_cpp_err=$ac_c_preproc_warn_flag
8547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8548 else
8549 ac_cpp_err=
8550 fi
8551else
8552 ac_cpp_err=yes
8553fi
8554if test -z "$ac_cpp_err"; then
8555 ac_header_preproc=yes
8556else
8557 echo "$as_me: failed program was:" >&5
8558sed 's/^/| /' conftest.$ac_ext >&5
8559
8560 ac_header_preproc=no
8561fi
8562rm -f conftest.err conftest.$ac_ext
8563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8564echo "${ECHO_T}$ac_header_preproc" >&6
8565
8566# So? What about this header?
8567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8568 yes:no: )
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8573 ac_header_preproc=yes
8574 ;;
8575 no:yes:* )
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8583echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8588 (
8589 cat <<\_ASBOX
8590## ----------------------------------- ##
8591## Report this to llvmbugs@cs.uiuc.edu ##
8592## ----------------------------------- ##
8593_ASBOX
8594 ) |
8595 sed "s/^/$as_me: WARNING: /" >&2
8596 ;;
8597esac
8598echo "$as_me:$LINENO: checking for $ac_header" >&5
8599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603 eval "$as_ac_Header=\$ac_header_preproc"
8604fi
8605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607
8608fi
8609if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612_ACEOF
8613
8614fi
8615
8616done
8617
8618
8619echo "$as_me:$LINENO: checking for error_t" >&5
8620echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8621if test "${ac_cv_type_error_t+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624 cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630#if HAVE_ARGZ_H
8631# include <argz.h>
8632#endif
8633
8634int
8635main ()
8636{
8637if ((error_t *) 0)
8638 return 0;
8639if (sizeof (error_t))
8640 return 0;
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645rm -f conftest.$ac_objext
8646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag"
8655 || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest.$ac_objext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_type_error_t=yes
8668else
8669 echo "$as_me: failed program was:" >&5
8670sed 's/^/| /' conftest.$ac_ext >&5
8671
8672ac_cv_type_error_t=no
8673fi
8674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675fi
8676echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8677echo "${ECHO_T}$ac_cv_type_error_t" >&6
8678if test $ac_cv_type_error_t = yes; then
8679
8680cat >>confdefs.h <<_ACEOF
8681#define HAVE_ERROR_T 1
8682_ACEOF
8683
8684
8685else
8686
8687cat >>confdefs.h <<\_ACEOF
8688#define error_t int
8689_ACEOF
8690
8691fi
8692
8693
8694
8695
8696
8697
8698
8699for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8700do
8701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702echo "$as_me:$LINENO: checking for $ac_func" >&5
8703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704if eval "test \"\${$as_ac_var+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707 cat >conftest.$ac_ext <<_ACEOF
8708/* confdefs.h. */
8709_ACEOF
8710cat confdefs.h >>conftest.$ac_ext
8711cat >>conftest.$ac_ext <<_ACEOF
8712/* end confdefs.h. */
8713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8715#define $ac_func innocuous_$ac_func
8716
8717/* System header to define __stub macros and hopefully few prototypes,
8718 which can conflict with char $ac_func (); below.
8719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 <limits.h> exists even on freestanding compilers. */
8721
8722#ifdef __STDC__
8723# include <limits.h>
8724#else
8725# include <assert.h>
8726#endif
8727
8728#undef $ac_func
8729
8730/* Override any gcc2 internal prototype to avoid an error. */
8731#ifdef __cplusplus
8732extern "C"
8733{
8734#endif
8735/* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8737char $ac_func ();
8738/* The GNU C library defines this for functions which it implements
8739 to always fail with ENOSYS. Some functions are actually named
8740 something starting with __ and the normal name is an alias. */
8741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8742choke me
8743#else
8744char (*f) () = $ac_func;
8745#endif
8746#ifdef __cplusplus
8747}
8748#endif
8749
8750int
8751main ()
8752{
8753return f != $ac_func;
8754 ;
8755 return 0;
8756}
8757_ACEOF
8758rm -f conftest.$ac_objext conftest$ac_exeext
8759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 eval "$as_ac_var=yes"
8781else
8782 echo "$as_me: failed program was:" >&5
8783sed 's/^/| /' conftest.$ac_ext >&5
8784
8785eval "$as_ac_var=no"
8786fi
8787rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789fi
8790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8792if test `eval echo '${'$as_ac_var'}'` = yes; then
8793 cat >>confdefs.h <<_ACEOF
8794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8795_ACEOF
8796
8797fi
8798done
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8828 stdio.h unistd.h
8829do
8830as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8831if eval "test \"\${$as_ac_Header+set}\" = set"; then
8832 echo "$as_me:$LINENO: checking for $ac_header" >&5
8833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8834if eval "test \"\${$as_ac_Header+set}\" = set"; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836fi
8837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8839else
8840 # Is the header compilable?
8841echo "$as_me:$LINENO: checking $ac_header usability" >&5
8842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8843cat >conftest.$ac_ext <<_ACEOF
8844/* confdefs.h. */
8845_ACEOF
8846cat confdefs.h >>conftest.$ac_ext
8847cat >>conftest.$ac_ext <<_ACEOF
8848/* end confdefs.h. */
8849$ac_includes_default
8850#include <$ac_header>
8851_ACEOF
8852rm -f conftest.$ac_objext
8853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854 (eval $ac_compile) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_header_compiler=yes
8875else
8876 echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879ac_header_compiler=no
8880fi
8881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883echo "${ECHO_T}$ac_header_compiler" >&6
8884
8885# Is the header present?
8886echo "$as_me:$LINENO: checking $ac_header presence" >&5
8887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8888cat >conftest.$ac_ext <<_ACEOF
8889/* confdefs.h. */
8890_ACEOF
8891cat confdefs.h >>conftest.$ac_ext
8892cat >>conftest.$ac_ext <<_ACEOF
8893/* end confdefs.h. */
8894#include <$ac_header>
8895_ACEOF
8896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } >/dev/null; then
8904 if test -s conftest.err; then
8905 ac_cpp_err=$ac_c_preproc_warn_flag
8906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8907 else
8908 ac_cpp_err=
8909 fi
8910else
8911 ac_cpp_err=yes
8912fi
8913if test -z "$ac_cpp_err"; then
8914 ac_header_preproc=yes
8915else
8916 echo "$as_me: failed program was:" >&5
8917sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_header_preproc=no
8920fi
8921rm -f conftest.err conftest.$ac_ext
8922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923echo "${ECHO_T}$ac_header_preproc" >&6
8924
8925# So? What about this header?
8926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8927 yes:no: )
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8932 ac_header_preproc=yes
8933 ;;
8934 no:yes:* )
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8942echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8947 (
8948 cat <<\_ASBOX
8949## ----------------------------------- ##
8950## Report this to llvmbugs@cs.uiuc.edu ##
8951## ----------------------------------- ##
8952_ASBOX
8953 ) |
8954 sed "s/^/$as_me: WARNING: /" >&2
8955 ;;
8956esac
8957echo "$as_me:$LINENO: checking for $ac_header" >&5
8958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962 eval "$as_ac_Header=\$ac_header_preproc"
8963fi
8964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966
8967fi
8968if test `eval echo '${'$as_ac_Header'}'` = yes; then
8969 cat >>confdefs.h <<_ACEOF
8970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8971_ACEOF
8972
8973fi
8974
8975done
8976
8977
8978
8979
8980
8981for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8982do
8983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8984if eval "test \"\${$as_ac_Header+set}\" = set"; then
8985 echo "$as_me:$LINENO: checking for $ac_header" >&5
8986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8987if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989fi
8990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992else
8993 # Is the header compilable?
8994echo "$as_me:$LINENO: checking $ac_header usability" >&5
8995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8996cat >conftest.$ac_ext <<_ACEOF
8997/* confdefs.h. */
8998_ACEOF
8999cat confdefs.h >>conftest.$ac_ext
9000cat >>conftest.$ac_ext <<_ACEOF
9001/* end confdefs.h. */
9002$ac_includes_default
9003#include <$ac_header>
9004_ACEOF
9005rm -f conftest.$ac_objext
9006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_header_compiler=yes
9028else
9029 echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032ac_header_compiler=no
9033fi
9034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9036echo "${ECHO_T}$ac_header_compiler" >&6
9037
9038# Is the header present?
9039echo "$as_me:$LINENO: checking $ac_header presence" >&5
9040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047#include <$ac_header>
9048_ACEOF
9049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } >/dev/null; then
9057 if test -s conftest.err; then
9058 ac_cpp_err=$ac_c_preproc_warn_flag
9059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9060 else
9061 ac_cpp_err=
9062 fi
9063else
9064 ac_cpp_err=yes
9065fi
9066if test -z "$ac_cpp_err"; then
9067 ac_header_preproc=yes
9068else
9069 echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 ac_header_preproc=no
9073fi
9074rm -f conftest.err conftest.$ac_ext
9075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9076echo "${ECHO_T}$ac_header_preproc" >&6
9077
9078# So? What about this header?
9079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9080 yes:no: )
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9085 ac_header_preproc=yes
9086 ;;
9087 no:yes:* )
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9100 (
9101 cat <<\_ASBOX
9102## ----------------------------------- ##
9103## Report this to llvmbugs@cs.uiuc.edu ##
9104## ----------------------------------- ##
9105_ASBOX
9106 ) |
9107 sed "s/^/$as_me: WARNING: /" >&2
9108 ;;
9109esac
9110echo "$as_me:$LINENO: checking for $ac_header" >&5
9111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9112if eval "test \"\${$as_ac_Header+set}\" = set"; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115 eval "$as_ac_Header=\$ac_header_preproc"
9116fi
9117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119
9120fi
9121if test `eval echo '${'$as_ac_Header'}'` = yes; then
9122 cat >>confdefs.h <<_ACEOF
9123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9124_ACEOF
9125
9126fi
9127
9128done
9129
9130
9131
9132for ac_header in string.h strings.h
9133do
9134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135if eval "test \"\${$as_ac_Header+set}\" = set"; then
9136 echo "$as_me:$LINENO: checking for $ac_header" >&5
9137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9138if eval "test \"\${$as_ac_Header+set}\" = set"; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140fi
9141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9143else
9144 # Is the header compilable?
9145echo "$as_me:$LINENO: checking $ac_header usability" >&5
9146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9147cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h. */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h. */
9153$ac_includes_default
9154#include <$ac_header>
9155_ACEOF
9156rm -f conftest.$ac_objext
9157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9158 (eval $ac_compile) 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest.$ac_objext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_header_compiler=yes
9179else
9180 echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183ac_header_compiler=no
9184fi
9185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9187echo "${ECHO_T}$ac_header_compiler" >&6
9188
9189# Is the header present?
9190echo "$as_me:$LINENO: checking $ac_header presence" >&5
9191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9192cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
9197/* end confdefs.h. */
9198#include <$ac_header>
9199_ACEOF
9200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev/null; then
9208 if test -s conftest.err; then
9209 ac_cpp_err=$ac_c_preproc_warn_flag
9210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9211 else
9212 ac_cpp_err=
9213 fi
9214else
9215 ac_cpp_err=yes
9216fi
9217if test -z "$ac_cpp_err"; then
9218 ac_header_preproc=yes
9219else
9220 echo "$as_me: failed program was:" >&5
9221sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 ac_header_preproc=no
9224fi
9225rm -f conftest.err conftest.$ac_ext
9226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227echo "${ECHO_T}$ac_header_preproc" >&6
9228
9229# So? What about this header?
9230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 yes:no: )
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9236 ac_header_preproc=yes
9237 ;;
9238 no:yes:* )
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9251 (
9252 cat <<\_ASBOX
9253## ----------------------------------- ##
9254## Report this to llvmbugs@cs.uiuc.edu ##
9255## ----------------------------------- ##
9256_ASBOX
9257 ) |
9258 sed "s/^/$as_me: WARNING: /" >&2
9259 ;;
9260esac
9261echo "$as_me:$LINENO: checking for $ac_header" >&5
9262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9263if eval "test \"\${$as_ac_Header+set}\" = set"; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265else
9266 eval "$as_ac_Header=\$ac_header_preproc"
9267fi
9268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9270
9271fi
9272if test `eval echo '${'$as_ac_Header'}'` = yes; then
9273 cat >>confdefs.h <<_ACEOF
9274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9275_ACEOF
9276 break
9277fi
9278
9279done
9280
9281
9282
9283
9284for ac_func in strchr index
9285do
9286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9287echo "$as_me:$LINENO: checking for $ac_func" >&5
9288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9289if eval "test \"\${$as_ac_var+set}\" = set"; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h. */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h. */
9298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9300#define $ac_func innocuous_$ac_func
9301
9302/* System header to define __stub macros and hopefully few prototypes,
9303 which can conflict with char $ac_func (); below.
9304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9305 <limits.h> exists even on freestanding compilers. */
9306
9307#ifdef __STDC__
9308# include <limits.h>
9309#else
9310# include <assert.h>
9311#endif
9312
9313#undef $ac_func
9314
9315/* Override any gcc2 internal prototype to avoid an error. */
9316#ifdef __cplusplus
9317extern "C"
9318{
9319#endif
9320/* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9322char $ac_func ();
9323/* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9327choke me
9328#else
9329char (*f) () = $ac_func;
9330#endif
9331#ifdef __cplusplus
9332}
9333#endif
9334
9335int
9336main ()
9337{
9338return f != $ac_func;
9339 ;
9340 return 0;
9341}
9342_ACEOF
9343rm -f conftest.$ac_objext conftest$ac_exeext
9344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 eval "$as_ac_var=yes"
9366else
9367 echo "$as_me: failed program was:" >&5
9368sed 's/^/| /' conftest.$ac_ext >&5
9369
9370eval "$as_ac_var=no"
9371fi
9372rm -f conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374fi
9375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9377if test `eval echo '${'$as_ac_var'}'` = yes; then
9378 cat >>confdefs.h <<_ACEOF
9379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9380_ACEOF
9381 break
9382fi
9383done
9384
9385
9386
9387for ac_func in strrchr rindex
9388do
9389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390echo "$as_me:$LINENO: checking for $ac_func" >&5
9391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9392if eval "test \"\${$as_ac_var+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 cat >conftest.$ac_ext <<_ACEOF
9396/* confdefs.h. */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h. */
9401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9403#define $ac_func innocuous_$ac_func
9404
9405/* System header to define __stub macros and hopefully few prototypes,
9406 which can conflict with char $ac_func (); below.
9407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408 <limits.h> exists even on freestanding compilers. */
9409
9410#ifdef __STDC__
9411# include <limits.h>
9412#else
9413# include <assert.h>
9414#endif
9415
9416#undef $ac_func
9417
9418/* Override any gcc2 internal prototype to avoid an error. */
9419#ifdef __cplusplus
9420extern "C"
9421{
9422#endif
9423/* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9425char $ac_func ();
9426/* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430choke me
9431#else
9432char (*f) () = $ac_func;
9433#endif
9434#ifdef __cplusplus
9435}
9436#endif
9437
9438int
9439main ()
9440{
9441return f != $ac_func;
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446rm -f conftest.$ac_objext conftest$ac_exeext
9447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 eval "$as_ac_var=yes"
9469else
9470 echo "$as_me: failed program was:" >&5
9471sed 's/^/| /' conftest.$ac_ext >&5
9472
9473eval "$as_ac_var=no"
9474fi
9475rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477fi
9478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9480if test `eval echo '${'$as_ac_var'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9483_ACEOF
9484 break
9485fi
9486done
9487
9488
9489
9490for ac_func in memcpy bcopy
9491do
9492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9493echo "$as_me:$LINENO: checking for $ac_func" >&5
9494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9495if eval "test \"\${$as_ac_var+set}\" = set"; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497else
9498 cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h. */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */
9504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506#define $ac_func innocuous_$ac_func
9507
9508/* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char $ac_func (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9512
9513#ifdef __STDC__
9514# include <limits.h>
9515#else
9516# include <assert.h>
9517#endif
9518
9519#undef $ac_func
9520
9521/* Override any gcc2 internal prototype to avoid an error. */
9522#ifdef __cplusplus
9523extern "C"
9524{
9525#endif
9526/* We use char because int might match the return type of a gcc2
9527 builtin and then its argument prototype would still apply. */
9528char $ac_func ();
9529/* The GNU C library defines this for functions which it implements
9530 to always fail with ENOSYS. Some functions are actually named
9531 something starting with __ and the normal name is an alias. */
9532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9533choke me
9534#else
9535char (*f) () = $ac_func;
9536#endif
9537#ifdef __cplusplus
9538}
9539#endif
9540
9541int
9542main ()
9543{
9544return f != $ac_func;
9545 ;
9546 return 0;
9547}
9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 eval "$as_ac_var=yes"
9572else
9573 echo "$as_me: failed program was:" >&5
9574sed 's/^/| /' conftest.$ac_ext >&5
9575
9576eval "$as_ac_var=no"
9577fi
9578rm -f conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580fi
9581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9583if test `eval echo '${'$as_ac_var'}'` = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9586_ACEOF
9587 break
9588fi
9589done
9590
9591
9592
9593for ac_func in memmove strcmp
9594do
9595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596echo "$as_me:$LINENO: checking for $ac_func" >&5
9597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9598if eval "test \"\${$as_ac_var+set}\" = set"; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600else
9601 cat >conftest.$ac_ext <<_ACEOF
9602/* confdefs.h. */
9603_ACEOF
9604cat confdefs.h >>conftest.$ac_ext
9605cat >>conftest.$ac_ext <<_ACEOF
9606/* end confdefs.h. */
9607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609#define $ac_func innocuous_$ac_func
9610
9611/* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9615
9616#ifdef __STDC__
9617# include <limits.h>
9618#else
9619# include <assert.h>
9620#endif
9621
9622#undef $ac_func
9623
9624/* Override any gcc2 internal prototype to avoid an error. */
9625#ifdef __cplusplus
9626extern "C"
9627{
9628#endif
9629/* We use char because int might match the return type of a gcc2
9630 builtin and then its argument prototype would still apply. */
9631char $ac_func ();
9632/* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9636choke me
9637#else
9638char (*f) () = $ac_func;
9639#endif
9640#ifdef __cplusplus
9641}
9642#endif
9643
9644int
9645main ()
9646{
9647return f != $ac_func;
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
9653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 eval "$as_ac_var=yes"
9675else
9676 echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
9679eval "$as_ac_var=no"
9680fi
9681rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683fi
9684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9686if test `eval echo '${'$as_ac_var'}'` = yes; then
9687 cat >>confdefs.h <<_ACEOF
9688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9689_ACEOF
9690
9691fi
9692done
9693
9694
9695
9696
9697for ac_func in closedir opendir readdir
9698do
9699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9700echo "$as_me:$LINENO: checking for $ac_func" >&5
9701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9702if eval "test \"\${$as_ac_var+set}\" = set"; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
9711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713#define $ac_func innocuous_$ac_func
9714
9715/* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char $ac_func (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9719
9720#ifdef __STDC__
9721# include <limits.h>
9722#else
9723# include <assert.h>
9724#endif
9725
9726#undef $ac_func
9727
9728/* Override any gcc2 internal prototype to avoid an error. */
9729#ifdef __cplusplus
9730extern "C"
9731{
9732#endif
9733/* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9735char $ac_func ();
9736/* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9740choke me
9741#else
9742char (*f) () = $ac_func;
9743#endif
9744#ifdef __cplusplus
9745}
9746#endif
9747
9748int
9749main ()
9750{
9751return f != $ac_func;
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 eval "$as_ac_var=yes"
9779else
9780 echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783eval "$as_ac_var=no"
9784fi
9785rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787fi
9788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9790if test `eval echo '${'$as_ac_var'}'` = yes; then
9791 cat >>confdefs.h <<_ACEOF
9792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9793_ACEOF
9794
9795fi
9796done
9797
9798
9799# Check whether --enable-shared or --disable-shared was given.
9800if test "${enable_shared+set}" = set; then
9801 enableval="$enable_shared"
9802 p=${PACKAGE-default}
9803 case $enableval in
9804 yes) enable_shared=yes ;;
9805 no) enable_shared=no ;;
9806 *)
9807 enable_shared=no
9808 # Look at the argument we got. We use all the common list separators.
9809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810 for pkg in $enableval; do
9811 IFS="$lt_save_ifs"
9812 if test "X$pkg" = "X$p"; then
9813 enable_shared=yes
9814 fi
9815 done
9816 IFS="$lt_save_ifs"
9817 ;;
9818 esac
9819else
9820 enable_shared=yes
9821fi;
9822
9823# Check whether --enable-static or --disable-static was given.
9824if test "${enable_static+set}" = set; then
9825 enableval="$enable_static"
9826 p=${PACKAGE-default}
9827 case $enableval in
9828 yes) enable_static=yes ;;
9829 no) enable_static=no ;;
9830 *)
9831 enable_static=no
9832 # Look at the argument we got. We use all the common list separators.
9833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9834 for pkg in $enableval; do
9835 IFS="$lt_save_ifs"
9836 if test "X$pkg" = "X$p"; then
9837 enable_static=yes
9838 fi
9839 done
9840 IFS="$lt_save_ifs"
9841 ;;
9842 esac
9843else
9844 enable_static=yes
9845fi;
9846
9847# Check whether --enable-fast-install or --disable-fast-install was given.
9848if test "${enable_fast_install+set}" = set; then
9849 enableval="$enable_fast_install"
9850 p=${PACKAGE-default}
9851 case $enableval in
9852 yes) enable_fast_install=yes ;;
9853 no) enable_fast_install=no ;;
9854 *)
9855 enable_fast_install=no
9856 # Look at the argument we got. We use all the common list separators.
9857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9858 for pkg in $enableval; do
9859 IFS="$lt_save_ifs"
9860 if test "X$pkg" = "X$p"; then
9861 enable_fast_install=yes
9862 fi
9863 done
9864 IFS="$lt_save_ifs"
9865 ;;
9866 esac
9867else
9868 enable_fast_install=yes
9869fi;
9870
9871echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9872echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9873if test "${lt_cv_path_SED+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875else
9876 # Loop through the user's path and test for sed and gsed.
9877# Then use that list of sed's as ones to test for truncation.
9878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $PATH
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for lt_ac_prog in sed gsed; do
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9886 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9887 fi
9888 done
9889 done
9890done
9891lt_ac_max=0
9892lt_ac_count=0
9893# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9894# along with /bin/sed that truncates output.
9895for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9896 test ! -f $lt_ac_sed && break
9897 cat /dev/null > conftest.in
9898 lt_ac_count=0
9899 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9900 # Check for GNU sed and select it if it is found.
9901 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9902 lt_cv_path_SED=$lt_ac_sed
9903 break
9904 fi
9905 while true; do
9906 cat conftest.in conftest.in >conftest.tmp
9907 mv conftest.tmp conftest.in
9908 cp conftest.in conftest.nl
9909 echo >>conftest.nl
9910 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9911 cmp -s conftest.out conftest.nl || break
9912 # 10000 chars as input seems more than enough
9913 test $lt_ac_count -gt 10 && break
9914 lt_ac_count=`expr $lt_ac_count + 1`
9915 if test $lt_ac_count -gt $lt_ac_max; then
9916 lt_ac_max=$lt_ac_count
9917 lt_cv_path_SED=$lt_ac_sed
9918 fi
9919 done
9920done
9921
9922fi
9923
9924SED=$lt_cv_path_SED
9925echo "$as_me:$LINENO: result: $SED" >&5
9926echo "${ECHO_T}$SED" >&6
9927
9928
9929# Check whether --with-gnu-ld or --without-gnu-ld was given.
9930if test "${with_gnu_ld+set}" = set; then
9931 withval="$with_gnu_ld"
9932 test "$withval" = no || with_gnu_ld=yes
9933else
9934 with_gnu_ld=no
9935fi;
9936ac_prog=ld
9937if test "$GCC" = yes; then
9938 # Check if gcc -print-prog-name=ld gives a path.
9939 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9940echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9941 case $host in
9942 *-*-mingw*)
9943 # gcc leaves a trailing carriage return which upsets mingw
9944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9945 *)
9946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9947 esac
9948 case $ac_prog in
9949 # Accept absolute paths.
9950 [\\/]* | ?:[\\/]*)
9951 re_direlt='/[^/][^/]*/\.\./'
9952 # Canonicalize the pathname of ld
9953 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9954 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9955 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9956 done
9957 test -z "$LD" && LD="$ac_prog"
9958 ;;
9959 "")
9960 # If it fails, then pretend we aren't using GCC.
9961 ac_prog=ld
9962 ;;
9963 *)
9964 # If it is relative, then search for the first ld in PATH.
9965 with_gnu_ld=unknown
9966 ;;
9967 esac
9968elif test "$with_gnu_ld" = yes; then
9969 echo "$as_me:$LINENO: checking for GNU ld" >&5
9970echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9971else
9972 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9973echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9974fi
9975if test "${lt_cv_path_LD+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978 if test -z "$LD"; then
9979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9980 for ac_dir in $PATH; do
9981 IFS="$lt_save_ifs"
9982 test -z "$ac_dir" && ac_dir=.
9983 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9984 lt_cv_path_LD="$ac_dir/$ac_prog"
9985 # Check to see if the program is GNU ld. I'd rather use --version,
9986 # but apparently some GNU ld's only accept -v.
9987 # Break only if it was the GNU/non-GNU ld that we prefer.
9988 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9989 *GNU* | *'with BFD'*)
9990 test "$with_gnu_ld" != no && break
9991 ;;
9992 *)
9993 test "$with_gnu_ld" != yes && break
9994 ;;
9995 esac
9996 fi
9997 done
9998 IFS="$lt_save_ifs"
9999else
10000 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10001fi
10002fi
10003
10004LD="$lt_cv_path_LD"
10005if test -n "$LD"; then
10006 echo "$as_me:$LINENO: result: $LD" >&5
10007echo "${ECHO_T}$LD" >&6
10008else
10009 echo "$as_me:$LINENO: result: no" >&5
10010echo "${ECHO_T}no" >&6
10011fi
10012test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10013echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10014 { (exit 1); exit 1; }; }
10015echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10016echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10017if test "${lt_cv_prog_gnu_ld+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021case `$LD -v 2>&1 </dev/null` in
10022*GNU* | *'with BFD'*)
10023 lt_cv_prog_gnu_ld=yes
10024 ;;
10025*)
10026 lt_cv_prog_gnu_ld=no
10027 ;;
10028esac
10029fi
10030echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10031echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10032with_gnu_ld=$lt_cv_prog_gnu_ld
10033
10034
10035echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10036echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10037if test "${lt_cv_ld_reload_flag+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040 lt_cv_ld_reload_flag='-r'
10041fi
10042echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10043echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10044reload_flag=$lt_cv_ld_reload_flag
10045case $reload_flag in
10046"" | " "*) ;;
10047*) reload_flag=" $reload_flag" ;;
10048esac
10049reload_cmds='$LD$reload_flag -o $output$reload_objs'
10050case $host_os in
10051 darwin*)
10052 if test "$GCC" = yes; then
10053 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10054 else
10055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10056 fi
10057 ;;
10058esac
10059
10060echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10061echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10062if test "${lt_cv_deplibs_check_method+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064else
10065 lt_cv_file_magic_cmd='$MAGIC_CMD'
10066lt_cv_file_magic_test_file=
10067lt_cv_deplibs_check_method='unknown'
10068# Need to set the preceding variable on all platforms that support
10069# interlibrary dependencies.
10070# 'none' -- dependencies not supported.
10071# `unknown' -- same as none, but documents that we really don't know.
10072# 'pass_all' -- all dependencies passed with no checks.
10073# 'test_compile' -- check by making test program.
10074# 'file_magic [[regex]]' -- check by looking for files in library path
10075# which responds to the $file_magic_cmd with a given extended regex.
10076# If you have `file' or equivalent on your system and you're not sure
10077# whether `pass_all' will *always* work, you probably want this one.
10078
10079case $host_os in
10080aix4* | aix5*)
10081 lt_cv_deplibs_check_method=pass_all
10082 ;;
10083
10084beos*)
10085 lt_cv_deplibs_check_method=pass_all
10086 ;;
10087
10088bsdi[45]*)
10089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10090 lt_cv_file_magic_cmd='/usr/bin/file -L'
10091 lt_cv_file_magic_test_file=/shlib/libc.so
10092 ;;
10093
10094cygwin*)
10095 # func_win32_libid is a shell function defined in ltmain.sh
10096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10097 lt_cv_file_magic_cmd='func_win32_libid'
10098 ;;
10099
10100mingw* | pw32*)
10101 # Base MSYS/MinGW do not provide the 'file' command needed by
10102 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10103 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10104 lt_cv_file_magic_cmd='$OBJDUMP -f'
10105 ;;
10106
10107darwin* | rhapsody*)
10108 lt_cv_deplibs_check_method=pass_all
10109 ;;
10110
10111freebsd* | kfreebsd*-gnu)
10112 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10113 case $host_cpu in
10114 i*86 )
10115 # Not sure whether the presence of OpenBSD here was a mistake.
10116 # Let's accept both of them until this is cleared up.
10117 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10118 lt_cv_file_magic_cmd=/usr/bin/file
10119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10120 ;;
10121 esac
10122 else
10123 lt_cv_deplibs_check_method=pass_all
10124 fi
10125 ;;
10126
10127gnu*)
10128 lt_cv_deplibs_check_method=pass_all
10129 ;;
10130
10131hpux10.20* | hpux11*)
10132 lt_cv_file_magic_cmd=/usr/bin/file
10133 case "$host_cpu" in
10134 ia64*)
10135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10137 ;;
10138 hppa*64*)
10139 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]'
10140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10141 ;;
10142 *)
10143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10144 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10145 ;;
10146 esac
10147 ;;
10148
10149irix5* | irix6* | nonstopux*)
10150 case $LD in
10151 *-32|*"-32 ") libmagic=32-bit;;
10152 *-n32|*"-n32 ") libmagic=N32;;
10153 *-64|*"-64 ") libmagic=64-bit;;
10154 *) libmagic=never-match;;
10155 esac
10156 lt_cv_deplibs_check_method=pass_all
10157 ;;
10158
10159# This must be Linux ELF.
10160linux*)
10161 lt_cv_deplibs_check_method=pass_all
10162 ;;
10163
10164netbsd*)
10165 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10167 else
10168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10169 fi
10170 ;;
10171
10172newos6*)
10173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10174 lt_cv_file_magic_cmd=/usr/bin/file
10175 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10176 ;;
10177
10178nto-qnx*)
10179 lt_cv_deplibs_check_method=unknown
10180 ;;
10181
10182openbsd*)
10183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10185 else
10186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10187 fi
10188 ;;
10189
10190osf3* | osf4* | osf5*)
10191 lt_cv_deplibs_check_method=pass_all
10192 ;;
10193
10194sco3.2v5*)
10195 lt_cv_deplibs_check_method=pass_all
10196 ;;
10197
10198solaris*)
10199 lt_cv_deplibs_check_method=pass_all
10200 ;;
10201
10202sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10203 case $host_vendor in
10204 motorola)
10205 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]'
10206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10207 ;;
10208 ncr)
10209 lt_cv_deplibs_check_method=pass_all
10210 ;;
10211 sequent)
10212 lt_cv_file_magic_cmd='/bin/file'
10213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10214 ;;
10215 sni)
10216 lt_cv_file_magic_cmd='/bin/file'
10217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10218 lt_cv_file_magic_test_file=/lib/libc.so
10219 ;;
10220 siemens)
10221 lt_cv_deplibs_check_method=pass_all
10222 ;;
10223 esac
10224 ;;
10225
10226sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10227 lt_cv_deplibs_check_method=pass_all
10228 ;;
10229esac
10230
10231fi
10232echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10233echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10234file_magic_cmd=$lt_cv_file_magic_cmd
10235deplibs_check_method=$lt_cv_deplibs_check_method
10236test -z "$deplibs_check_method" && deplibs_check_method=unknown
10237
10238
10239
10240# If no C compiler was specified, use CC.
10241LTCC=${LTCC-"$CC"}
10242
10243# Allow CC to be a program name with arguments.
10244compiler=$CC
10245
10246# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10247if test "${enable_libtool_lock+set}" = set; then
10248 enableval="$enable_libtool_lock"
10249
10250fi;
10251test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10252
10253# Some flags need to be propagated to the compiler or linker for good
10254# libtool support.
10255case $host in
10256ia64-*-hpux*)
10257 # Find out which ABI we are using.
10258 echo 'int i;' > conftest.$ac_ext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; then
10264 case `/usr/bin/file conftest.$ac_objext` in
10265 *ELF-32*)
10266 HPUX_IA64_MODE="32"
10267 ;;
10268 *ELF-64*)
10269 HPUX_IA64_MODE="64"
10270 ;;
10271 esac
10272 fi
10273 rm -rf conftest*
10274 ;;
10275*-*-irix6*)
10276 # Find out which ABI we are using.
Reid Spencer945de9b2005-04-22 07:27:28 +000010277 echo '#line 10277 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; then
10283 if test "$lt_cv_prog_gnu_ld" = yes; then
10284 case `/usr/bin/file conftest.$ac_objext` in
10285 *32-bit*)
10286 LD="${LD-ld} -melf32bsmip"
10287 ;;
10288 *N32*)
10289 LD="${LD-ld} -melf32bmipn32"
10290 ;;
10291 *64-bit*)
10292 LD="${LD-ld} -melf64bmip"
10293 ;;
10294 esac
10295 else
10296 case `/usr/bin/file conftest.$ac_objext` in
10297 *32-bit*)
10298 LD="${LD-ld} -32"
10299 ;;
10300 *N32*)
10301 LD="${LD-ld} -n32"
10302 ;;
10303 *64-bit*)
10304 LD="${LD-ld} -64"
10305 ;;
10306 esac
10307 fi
10308 fi
10309 rm -rf conftest*
10310 ;;
10311
10312x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10313 # Find out which ABI we are using.
10314 echo 'int i;' > conftest.$ac_ext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; then
10320 case "`/usr/bin/file conftest.o`" in
10321 *32-bit*)
10322 case $host in
10323 x86_64-*linux*)
10324 LD="${LD-ld} -m elf_i386"
10325 ;;
10326 ppc64-*linux*|powerpc64-*linux*)
10327 LD="${LD-ld} -m elf32ppclinux"
10328 ;;
10329 s390x-*linux*)
10330 LD="${LD-ld} -m elf_s390"
10331 ;;
10332 sparc64-*linux*)
10333 LD="${LD-ld} -m elf32_sparc"
10334 ;;
10335 esac
10336 ;;
10337 *64-bit*)
10338 case $host in
10339 x86_64-*linux*)
10340 LD="${LD-ld} -m elf_x86_64"
10341 ;;
10342 ppc*-*linux*|powerpc*-*linux*)
10343 LD="${LD-ld} -m elf64ppc"
10344 ;;
10345 s390*-*linux*)
10346 LD="${LD-ld} -m elf64_s390"
10347 ;;
10348 sparc*-*linux*)
10349 LD="${LD-ld} -m elf64_sparc"
10350 ;;
10351 esac
10352 ;;
10353 esac
10354 fi
10355 rm -rf conftest*
10356 ;;
10357
10358*-*-sco3.2v5*)
10359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10360 SAVE_CFLAGS="$CFLAGS"
10361 CFLAGS="$CFLAGS -belf"
10362 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10363echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10364if test "${lt_cv_cc_needs_belf+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366else
10367 ac_ext=c
10368ac_cpp='$CPP $CPPFLAGS'
10369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371ac_compiler_gnu=$ac_cv_c_compiler_gnu
10372
10373 cat >conftest.$ac_ext <<_ACEOF
10374/* confdefs.h. */
10375_ACEOF
10376cat confdefs.h >>conftest.$ac_ext
10377cat >>conftest.$ac_ext <<_ACEOF
10378/* end confdefs.h. */
10379
10380_ACEOF
10381rm -f conftest.$ac_objext conftest$ac_exeext
10382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 lt_cv_cc_needs_belf=yes
10404else
10405 echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
10408lt_cv_cc_needs_belf=no
10409fi
10410rm -f conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 ac_ext=c
10413ac_cpp='$CPP $CPPFLAGS'
10414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417
10418fi
10419echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10420echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10421 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10422 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10423 CFLAGS="$SAVE_CFLAGS"
10424 fi
10425 ;;
10426
10427esac
10428
10429need_locks="$enable_libtool_lock"
10430
10431
Reid Spencer2706f8c2004-09-19 23:53:36 +000010432
10433
10434if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10435 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10436 (test "X$CXX" != "Xg++"))) ; then
10437 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010438ac_cpp='$CXXCPP $CPPFLAGS'
10439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10442echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10443echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10444if test -z "$CXXCPP"; then
10445 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447else
John Criswell47fdd832003-07-14 16:52:07 +000010448 # Double quotes because CXXCPP needs to be expanded
10449 for CXXCPP in "$CXX -E" "/lib/cpp"
10450 do
10451 ac_preproc_ok=false
10452for ac_cxx_preproc_warn_flag in '' yes
10453do
10454 # Use a header file that comes with gcc, so configuring glibc
10455 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10457 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010458 # On the NeXT, cc -E runs the code through the compiler's parser,
10459 # not just through cpp. "Syntax error" is here to catch this case.
10460 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
10466#ifdef __STDC__
10467# include <limits.h>
10468#else
10469# include <assert.h>
10470#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010471 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010472_ACEOF
10473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010476 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null; then
10481 if test -s conftest.err; then
10482 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010484 else
John Criswell47fdd832003-07-14 16:52:07 +000010485 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010486 fi
John Criswell47fdd832003-07-14 16:52:07 +000010487else
10488 ac_cpp_err=yes
10489fi
10490if test -z "$ac_cpp_err"; then
10491 :
10492else
10493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010494sed 's/^/| /' conftest.$ac_ext >&5
10495
John Criswell47fdd832003-07-14 16:52:07 +000010496 # Broken: fails on valid input.
10497continue
10498fi
10499rm -f conftest.err conftest.$ac_ext
10500
10501 # OK, works on sane cases. Now check whether non-existent headers
10502 # can be detected and how.
10503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010504/* confdefs.h. */
10505_ACEOF
10506cat confdefs.h >>conftest.$ac_ext
10507cat >>conftest.$ac_ext <<_ACEOF
10508/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010509#include <ac_nonexistent.h>
10510_ACEOF
10511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10513 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010514 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } >/dev/null; then
10519 if test -s conftest.err; then
10520 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010522 else
10523 ac_cpp_err=
10524 fi
10525else
10526 ac_cpp_err=yes
10527fi
10528if test -z "$ac_cpp_err"; then
10529 # Broken: success on invalid input.
10530continue
10531else
10532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010533sed 's/^/| /' conftest.$ac_ext >&5
10534
John Criswell47fdd832003-07-14 16:52:07 +000010535 # Passes both tests.
10536ac_preproc_ok=:
10537break
10538fi
10539rm -f conftest.err conftest.$ac_ext
10540
10541done
10542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10543rm -f conftest.err conftest.$ac_ext
10544if $ac_preproc_ok; then
10545 break
John Criswell7a73b802003-06-30 21:59:07 +000010546fi
10547
John Criswell47fdd832003-07-14 16:52:07 +000010548 done
10549 ac_cv_prog_CXXCPP=$CXXCPP
10550
10551fi
10552 CXXCPP=$ac_cv_prog_CXXCPP
10553else
10554 ac_cv_prog_CXXCPP=$CXXCPP
10555fi
10556echo "$as_me:$LINENO: result: $CXXCPP" >&5
10557echo "${ECHO_T}$CXXCPP" >&6
10558ac_preproc_ok=false
10559for ac_cxx_preproc_warn_flag in '' yes
10560do
10561 # Use a header file that comes with gcc, so configuring glibc
10562 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010565 # On the NeXT, cc -E runs the code through the compiler's parser,
10566 # not just through cpp. "Syntax error" is here to catch this case.
10567 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010568/* confdefs.h. */
10569_ACEOF
10570cat confdefs.h >>conftest.$ac_ext
10571cat >>conftest.$ac_ext <<_ACEOF
10572/* end confdefs.h. */
10573#ifdef __STDC__
10574# include <limits.h>
10575#else
10576# include <assert.h>
10577#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010578 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010579_ACEOF
10580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10582 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010583 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } >/dev/null; then
10588 if test -s conftest.err; then
10589 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010591 else
10592 ac_cpp_err=
10593 fi
10594else
10595 ac_cpp_err=yes
10596fi
10597if test -z "$ac_cpp_err"; then
10598 :
10599else
10600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010601sed 's/^/| /' conftest.$ac_ext >&5
10602
John Criswell47fdd832003-07-14 16:52:07 +000010603 # Broken: fails on valid input.
10604continue
10605fi
10606rm -f conftest.err conftest.$ac_ext
10607
10608 # OK, works on sane cases. Now check whether non-existent headers
10609 # can be detected and how.
10610 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010616#include <ac_nonexistent.h>
10617_ACEOF
10618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10620 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010621 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } >/dev/null; then
10626 if test -s conftest.err; then
10627 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010629 else
10630 ac_cpp_err=
10631 fi
10632else
10633 ac_cpp_err=yes
10634fi
10635if test -z "$ac_cpp_err"; then
10636 # Broken: success on invalid input.
10637continue
10638else
10639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010640sed 's/^/| /' conftest.$ac_ext >&5
10641
John Criswell47fdd832003-07-14 16:52:07 +000010642 # Passes both tests.
10643ac_preproc_ok=:
10644break
10645fi
10646rm -f conftest.err conftest.$ac_ext
10647
10648done
10649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10650rm -f conftest.err conftest.$ac_ext
10651if $ac_preproc_ok; then
10652 :
10653else
John Criswell0c38eaf2003-09-10 15:17:25 +000010654 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10655See \`config.log' for more details." >&5
10656echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10657See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010658 { (exit 1); exit 1; }; }
10659fi
10660
10661ac_ext=cc
10662ac_cpp='$CXXCPP $CPPFLAGS'
10663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10666
Reid Spencer2706f8c2004-09-19 23:53:36 +000010667fi
10668
John Criswell47fdd832003-07-14 16:52:07 +000010669
10670ac_ext=f
10671ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10672ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10673ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10674if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010675 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 +000010676 do
10677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10679echo "$as_me:$LINENO: checking for $ac_word" >&5
10680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681if test "${ac_cv_prog_F77+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683else
10684 if test -n "$F77"; then
10685 ac_cv_prog_F77="$F77" # Let the user override the test.
10686else
10687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $PATH
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698done
10699done
10700
10701fi
10702fi
10703F77=$ac_cv_prog_F77
10704if test -n "$F77"; then
10705 echo "$as_me:$LINENO: result: $F77" >&5
10706echo "${ECHO_T}$F77" >&6
10707else
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
10710fi
10711
10712 test -n "$F77" && break
10713 done
10714fi
10715if test -z "$F77"; then
10716 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010717 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 +000010718do
10719 # Extract the first word of "$ac_prog", so it can be a program name with args.
10720set dummy $ac_prog; ac_word=$2
10721echo "$as_me:$LINENO: checking for $ac_word" >&5
10722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10723if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726 if test -n "$ac_ct_F77"; then
10727 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10728else
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_ac_ct_F77="$ac_prog"
10737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741done
10742
10743fi
10744fi
10745ac_ct_F77=$ac_cv_prog_ac_ct_F77
10746if test -n "$ac_ct_F77"; then
10747 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10748echo "${ECHO_T}$ac_ct_F77" >&6
10749else
10750 echo "$as_me:$LINENO: result: no" >&5
10751echo "${ECHO_T}no" >&6
10752fi
10753
10754 test -n "$ac_ct_F77" && break
10755done
10756
10757 F77=$ac_ct_F77
10758fi
10759
10760
10761# Provide some information about the compiler.
Reid Spencer945de9b2005-04-22 07:27:28 +000010762echo "$as_me:10762:" \
John Criswell47fdd832003-07-14 16:52:07 +000010763 "checking for Fortran 77 compiler version" >&5
10764ac_compiler=`set X $ac_compile; echo $2`
10765{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10766 (eval $ac_compiler --version </dev/null >&5) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }
10770{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10771 (eval $ac_compiler -v </dev/null >&5) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }
10775{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10776 (eval $ac_compiler -V </dev/null >&5) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010780rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010781
10782# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010783# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010784ac_save_ext=$ac_ext
10785ac_ext=F
10786echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10787echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10788if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 cat >conftest.$ac_ext <<_ACEOF
10792 program main
10793#ifndef __GNUC__
10794 choke me
10795#endif
10796
10797 end
10798_ACEOF
10799rm -f conftest.$ac_objext
10800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010801 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010808 { ac_try='test -z "$ac_f77_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_compiler_gnu=yes
10822else
10823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010824sed 's/^/| /' conftest.$ac_ext >&5
10825
John Criswell47fdd832003-07-14 16:52:07 +000010826ac_compiler_gnu=no
10827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010829ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10830
10831fi
10832echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10833echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10834ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010835ac_test_FFLAGS=${FFLAGS+set}
10836ac_save_FFLAGS=$FFLAGS
10837FFLAGS=
10838echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10839echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10840if test "${ac_cv_prog_f77_g+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 FFLAGS=-g
10844cat >conftest.$ac_ext <<_ACEOF
10845 program main
10846
10847 end
10848_ACEOF
10849rm -f conftest.$ac_objext
10850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010858 { ac_try='test -z "$ac_f77_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_prog_f77_g=yes
10872else
10873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010874sed 's/^/| /' conftest.$ac_ext >&5
10875
John Criswell47fdd832003-07-14 16:52:07 +000010876ac_cv_prog_f77_g=no
10877fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010879
10880fi
10881echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10882echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10883if test "$ac_test_FFLAGS" = set; then
10884 FFLAGS=$ac_save_FFLAGS
10885elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010886 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010887 FFLAGS="-g -O2"
10888 else
10889 FFLAGS="-g"
10890 fi
10891else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010892 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010893 FFLAGS="-O2"
10894 else
10895 FFLAGS=
10896 fi
10897fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010898
10899G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010900ac_ext=c
10901ac_cpp='$CPP $CPPFLAGS'
10902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10904ac_compiler_gnu=$ac_cv_c_compiler_gnu
10905
10906
10907
10908# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10909
10910# find the maximum length of command line arguments
10911echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10912echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10913if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010917 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010918
10919 case $build_os in
10920 msdosdjgpp*)
10921 # On DJGPP, this test can blow up pretty badly due to problems in libc
10922 # (any single argument exceeding 2000 bytes causes a buffer overrun
10923 # during glob expansion). Even if it were fixed, the result of this
10924 # check would be larger than it should be.
10925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10926 ;;
10927
10928 gnu*)
10929 # Under GNU Hurd, this test is not required because there is
10930 # no limit to the length of command line arguments.
10931 # Libtool will interpret -1 as no limit whatsoever
10932 lt_cv_sys_max_cmd_len=-1;
10933 ;;
10934
10935 cygwin* | mingw*)
10936 # On Win9x/ME, this test blows up -- it succeeds, but takes
10937 # about 5 minutes as the teststring grows exponentially.
10938 # Worse, since 9x/ME are not pre-emptively multitasking,
10939 # you end up with a "frozen" computer, even though with patience
10940 # the test eventually succeeds (with a max line length of 256k).
10941 # Instead, let's just punt: use the minimum linelength reported by
10942 # all of the supported platforms: 8192 (on NT/2K/XP).
10943 lt_cv_sys_max_cmd_len=8192;
10944 ;;
10945
Reid Spencer2706f8c2004-09-19 23:53:36 +000010946 amigaos*)
10947 # On AmigaOS with pdksh, this test takes hours, literally.
10948 # So we just punt and use a minimum line length of 8192.
10949 lt_cv_sys_max_cmd_len=8192;
10950 ;;
10951
10952 netbsd* | freebsd* | openbsd* | darwin* )
10953 # This has been around since 386BSD, at least. Likely further.
10954 if test -x /sbin/sysctl; then
10955 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10956 elif test -x /usr/sbin/sysctl; then
10957 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10958 else
10959 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10960 fi
10961 # And add a safety zone
10962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10963 ;;
10964
John Criswell47fdd832003-07-14 16:52:07 +000010965 *)
10966 # If test is not a shell built-in, we'll probably end up computing a
10967 # maximum length that is only half of the actual maximum length, but
10968 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10970 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10971 = "XX$teststring") >/dev/null 2>&1 &&
10972 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010973 lt_cv_sys_max_cmd_len=$new_result &&
10974 test $i != 17 # 1/2 MB should be enough
10975 do
10976 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010977 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010978 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010979 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010980 # Add a significant safety factor because C++ compilers can tack on massive
10981 # amounts of additional arguments before passing them to the linker.
10982 # It appears as though 1/2 is a usable value.
10983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10984 ;;
10985 esac
10986
10987fi
10988
10989if test -n $lt_cv_sys_max_cmd_len ; then
10990 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10991echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10992else
10993 echo "$as_me:$LINENO: result: none" >&5
10994echo "${ECHO_T}none" >&6
10995fi
10996
10997
10998
10999
11000# Check for command to grab the raw symbol name followed by C symbol from nm.
11001echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11002echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11003if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005else
11006
11007# These are sane defaults that work on at least a few old systems.
11008# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11009
11010# Character class describing NM global symbol codes.
11011symcode='[BCDEGRST]'
11012
11013# Regexp to match symbols that can be accessed directly from C.
11014sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11015
11016# Transform the above into a raw symbol and a C symbol.
11017symxfrm='\1 \2\3 \3'
11018
11019# Transform an extracted symbol line into a proper C declaration
11020lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11021
11022# Transform an extracted symbol line into symbol name and symbol address
11023lt_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'"
11024
11025# Define system-specific variables.
11026case $host_os in
11027aix*)
11028 symcode='[BCDT]'
11029 ;;
11030cygwin* | mingw* | pw32*)
11031 symcode='[ABCDGISTW]'
11032 ;;
11033hpux*) # Its linker distinguishes data from code symbols
11034 if test "$host_cpu" = ia64; then
11035 symcode='[ABCDEGRST]'
11036 fi
11037 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11038 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'"
11039 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011040linux*)
11041 if test "$host_cpu" = ia64; then
11042 symcode='[ABCDGIRSTW]'
11043 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11044 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'"
11045 fi
11046 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011047irix* | nonstopux*)
11048 symcode='[BCDEGRST]'
11049 ;;
11050osf*)
11051 symcode='[BCDEGQRST]'
11052 ;;
11053solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011054 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011055 ;;
11056sysv4)
11057 symcode='[DFNSTU]'
11058 ;;
11059esac
11060
11061# Handle CRLF in mingw tool chain
11062opt_cr=
11063case $build_os in
11064mingw*)
11065 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11066 ;;
11067esac
11068
11069# If we're using GNU nm, then use its standard symbol codes.
11070case `$NM -V 2>&1` in
11071*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011072 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011073esac
11074
11075# Try without a prefix undercore, then with it.
11076for ac_symprfx in "" "_"; do
11077
11078 # Write the raw and C identifiers.
11079 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11080
11081 # Check to see that the pipe works correctly.
11082 pipe_works=no
11083
11084 rm -f conftest*
11085 cat > conftest.$ac_ext <<EOF
11086#ifdef __cplusplus
11087extern "C" {
11088#endif
11089char nm_test_var;
11090void nm_test_func(){}
11091#ifdef __cplusplus
11092}
11093#endif
11094int main(){nm_test_var='a';nm_test_func();return(0);}
11095EOF
11096
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; then
11102 # Now try to grab the symbols.
11103 nlist=conftest.nm
11104 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11105 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && test -s "$nlist"; then
11109 # Try sorting and uniquifying the output.
11110 if sort "$nlist" | uniq > "$nlist"T; then
11111 mv -f "$nlist"T "$nlist"
11112 else
11113 rm -f "$nlist"T
11114 fi
11115
11116 # Make sure that we snagged all the symbols we need.
11117 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11118 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11119 cat <<EOF > conftest.$ac_ext
11120#ifdef __cplusplus
11121extern "C" {
11122#endif
11123
11124EOF
11125 # Now generate the symbol file.
11126 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11127
11128 cat <<EOF >> conftest.$ac_ext
11129#if defined (__STDC__) && __STDC__
11130# define lt_ptr_t void *
11131#else
11132# define lt_ptr_t char *
11133# define const
11134#endif
11135
11136/* The mapping between symbol names and symbols. */
11137const struct {
11138 const char *name;
11139 lt_ptr_t address;
11140}
11141lt_preloaded_symbols[] =
11142{
11143EOF
11144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11145 cat <<\EOF >> conftest.$ac_ext
11146 {0, (lt_ptr_t) 0}
11147};
11148
11149#ifdef __cplusplus
11150}
11151#endif
11152EOF
11153 # Now try linking the two files.
11154 mv conftest.$ac_objext conftstm.$ac_objext
11155 lt_save_LIBS="$LIBS"
11156 lt_save_CFLAGS="$CFLAGS"
11157 LIBS="conftstm.$ac_objext"
11158 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11164 pipe_works=yes
11165 fi
11166 LIBS="$lt_save_LIBS"
11167 CFLAGS="$lt_save_CFLAGS"
11168 else
11169 echo "cannot find nm_test_func in $nlist" >&5
11170 fi
11171 else
11172 echo "cannot find nm_test_var in $nlist" >&5
11173 fi
11174 else
11175 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11176 fi
11177 else
11178 echo "$progname: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 fi
11181 rm -f conftest* conftst*
11182
11183 # Do not use the global_symbol_pipe unless it works.
11184 if test "$pipe_works" = yes; then
11185 break
11186 else
11187 lt_cv_sys_global_symbol_pipe=
11188 fi
11189done
11190
11191fi
11192
11193if test -z "$lt_cv_sys_global_symbol_pipe"; then
11194 lt_cv_sys_global_symbol_to_cdecl=
11195fi
11196if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11197 echo "$as_me:$LINENO: result: failed" >&5
11198echo "${ECHO_T}failed" >&6
11199else
11200 echo "$as_me:$LINENO: result: ok" >&5
11201echo "${ECHO_T}ok" >&6
11202fi
11203
11204echo "$as_me:$LINENO: checking for objdir" >&5
11205echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11206if test "${lt_cv_objdir+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 rm -f .libs 2>/dev/null
11210mkdir .libs 2>/dev/null
11211if test -d .libs; then
11212 lt_cv_objdir=.libs
11213else
11214 # MS-DOS does not allow filenames that begin with a dot.
11215 lt_cv_objdir=_libs
11216fi
11217rmdir .libs 2>/dev/null
11218fi
11219echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11220echo "${ECHO_T}$lt_cv_objdir" >&6
11221objdir=$lt_cv_objdir
11222
11223
11224
11225
11226
11227case $host_os in
11228aix3*)
11229 # AIX sometimes has problems with the GCC collect2 program. For some
11230 # reason, if we set the COLLECT_NAMES environment variable, the problems
11231 # vanish in a puff of smoke.
11232 if test "X${COLLECT_NAMES+set}" != Xset; then
11233 COLLECT_NAMES=
11234 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011235 fi
11236 ;;
11237esac
11238
John Criswell47fdd832003-07-14 16:52:07 +000011239# Sed substitution that helps us do robust quoting. It backslashifies
11240# metacharacters that are still active within double-quoted strings.
11241Xsed='sed -e s/^X//'
11242sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11243
11244# Same as above, but do not quote variable references.
11245double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11246
11247# Sed substitution to delay expansion of an escaped shell variable in a
11248# double_quote_subst'ed string.
11249delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11250
11251# Sed substitution to avoid accidental globbing in evaled expressions
11252no_glob_subst='s/\*/\\\*/g'
11253
11254# Constants:
11255rm="rm -f"
11256
11257# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011258default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011259can_build_shared=yes
11260
11261# All known linkers require a `.a' archive for static linking (except M$VC,
11262# which needs '.lib').
11263libext=a
11264ltmain="$ac_aux_dir/ltmain.sh"
11265ofile="$default_ofile"
11266with_gnu_ld="$lt_cv_prog_gnu_ld"
11267
11268if test -n "$ac_tool_prefix"; then
11269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11270set dummy ${ac_tool_prefix}ar; ac_word=$2
11271echo "$as_me:$LINENO: checking for $ac_word" >&5
11272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11273if test "${ac_cv_prog_AR+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275else
11276 if test -n "$AR"; then
11277 ac_cv_prog_AR="$AR" # Let the user override the test.
11278else
11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280for as_dir in $PATH
11281do
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
11284 for ac_exec_ext in '' $ac_executable_extensions; do
11285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_prog_AR="${ac_tool_prefix}ar"
11287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11288 break 2
11289 fi
11290done
11291done
11292
11293fi
11294fi
11295AR=$ac_cv_prog_AR
11296if test -n "$AR"; then
11297 echo "$as_me:$LINENO: result: $AR" >&5
11298echo "${ECHO_T}$AR" >&6
11299else
11300 echo "$as_me:$LINENO: result: no" >&5
11301echo "${ECHO_T}no" >&6
11302fi
11303
11304fi
11305if test -z "$ac_cv_prog_AR"; then
11306 ac_ct_AR=$AR
11307 # Extract the first word of "ar", so it can be a program name with args.
11308set dummy ar; ac_word=$2
11309echo "$as_me:$LINENO: checking for $ac_word" >&5
11310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11311if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313else
11314 if test -n "$ac_ct_AR"; then
11315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11316else
11317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_prog_ac_ct_AR="ar"
11325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11327 fi
11328done
11329done
11330
11331 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11332fi
11333fi
11334ac_ct_AR=$ac_cv_prog_ac_ct_AR
11335if test -n "$ac_ct_AR"; then
11336 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11337echo "${ECHO_T}$ac_ct_AR" >&6
11338else
11339 echo "$as_me:$LINENO: result: no" >&5
11340echo "${ECHO_T}no" >&6
11341fi
11342
11343 AR=$ac_ct_AR
11344else
11345 AR="$ac_cv_prog_AR"
11346fi
11347
John Criswell7a73b802003-06-30 21:59:07 +000011348if test -n "$ac_tool_prefix"; then
11349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11351echo "$as_me:$LINENO: checking for $ac_word" >&5
11352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353if test "${ac_cv_prog_RANLIB+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 if test -n "$RANLIB"; then
11357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11358else
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370done
11371done
11372
11373fi
11374fi
11375RANLIB=$ac_cv_prog_RANLIB
11376if test -n "$RANLIB"; then
11377 echo "$as_me:$LINENO: result: $RANLIB" >&5
11378echo "${ECHO_T}$RANLIB" >&6
11379else
11380 echo "$as_me:$LINENO: result: no" >&5
11381echo "${ECHO_T}no" >&6
11382fi
11383
11384fi
11385if test -z "$ac_cv_prog_RANLIB"; then
11386 ac_ct_RANLIB=$RANLIB
11387 # Extract the first word of "ranlib", so it can be a program name with args.
11388set dummy ranlib; ac_word=$2
11389echo "$as_me:$LINENO: checking for $ac_word" >&5
11390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 if test -n "$ac_ct_RANLIB"; then
11395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_ac_ct_RANLIB="ranlib"
11405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408done
11409done
11410
11411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11412fi
11413fi
11414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11415if test -n "$ac_ct_RANLIB"; then
11416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11417echo "${ECHO_T}$ac_ct_RANLIB" >&6
11418else
11419 echo "$as_me:$LINENO: result: no" >&5
11420echo "${ECHO_T}no" >&6
11421fi
11422
11423 RANLIB=$ac_ct_RANLIB
11424else
11425 RANLIB="$ac_cv_prog_RANLIB"
11426fi
11427
11428if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11430set dummy ${ac_tool_prefix}strip; ac_word=$2
11431echo "$as_me:$LINENO: checking for $ac_word" >&5
11432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433if test "${ac_cv_prog_STRIP+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 if test -n "$STRIP"; then
11437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452
11453fi
11454fi
11455STRIP=$ac_cv_prog_STRIP
11456if test -n "$STRIP"; then
11457 echo "$as_me:$LINENO: result: $STRIP" >&5
11458echo "${ECHO_T}$STRIP" >&6
11459else
11460 echo "$as_me:$LINENO: result: no" >&5
11461echo "${ECHO_T}no" >&6
11462fi
11463
11464fi
11465if test -z "$ac_cv_prog_STRIP"; then
11466 ac_ct_STRIP=$STRIP
11467 # Extract the first word of "strip", so it can be a program name with args.
11468set dummy strip; ac_word=$2
11469echo "$as_me:$LINENO: checking for $ac_word" >&5
11470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11471if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473else
11474 if test -n "$ac_ct_STRIP"; then
11475 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11476else
11477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478for as_dir in $PATH
11479do
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11484 ac_cv_prog_ac_ct_STRIP="strip"
11485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11487 fi
11488done
11489done
11490
11491 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11492fi
11493fi
11494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11495if test -n "$ac_ct_STRIP"; then
11496 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11497echo "${ECHO_T}$ac_ct_STRIP" >&6
11498else
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501fi
11502
11503 STRIP=$ac_ct_STRIP
11504else
11505 STRIP="$ac_cv_prog_STRIP"
11506fi
11507
11508
John Criswell7a73b802003-06-30 21:59:07 +000011509old_CC="$CC"
11510old_CFLAGS="$CFLAGS"
11511
11512# Set sane defaults for various variables
11513test -z "$AR" && AR=ar
11514test -z "$AR_FLAGS" && AR_FLAGS=cru
11515test -z "$AS" && AS=as
11516test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011517test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011518test -z "$DLLTOOL" && DLLTOOL=dlltool
11519test -z "$LD" && LD=ld
11520test -z "$LN_S" && LN_S="ln -s"
11521test -z "$MAGIC_CMD" && MAGIC_CMD=file
11522test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011523test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011524test -z "$OBJDUMP" && OBJDUMP=objdump
11525test -z "$RANLIB" && RANLIB=:
11526test -z "$STRIP" && STRIP=:
11527test -z "$ac_objext" && ac_objext=o
11528
John Criswell7a73b802003-06-30 21:59:07 +000011529# Determine commands to create old-style static archives.
11530old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11531old_postinstall_cmds='chmod 644 $oldlib'
11532old_postuninstall_cmds=
11533
11534if test -n "$RANLIB"; then
11535 case $host_os in
11536 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011537 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011538 ;;
11539 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011540 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011541 ;;
11542 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011544fi
11545
Reid Spencer2706f8c2004-09-19 23:53:36 +000011546cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11547
John Criswell47fdd832003-07-14 16:52:07 +000011548# Only perform the check for file, if the check method requires it
11549case $deplibs_check_method in
11550file_magic*)
11551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11552 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11553echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11554if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011556else
John Criswell47fdd832003-07-14 16:52:07 +000011557 case $MAGIC_CMD in
11558[\\/*] | ?:[\\/]*)
11559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11560 ;;
11561*)
11562 lt_save_MAGIC_CMD="$MAGIC_CMD"
11563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11565 for ac_dir in $ac_dummy; do
11566 IFS="$lt_save_ifs"
11567 test -z "$ac_dir" && ac_dir=.
11568 if test -f $ac_dir/${ac_tool_prefix}file; then
11569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11570 if test -n "$file_magic_test_file"; then
11571 case $deplibs_check_method in
11572 "file_magic "*)
11573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11576 $EGREP "$file_magic_regex" > /dev/null; then
11577 :
11578 else
11579 cat <<EOF 1>&2
11580
11581*** Warning: the command libtool uses to detect shared libraries,
11582*** $file_magic_cmd, produces output that libtool cannot recognize.
11583*** The result is that libtool may fail to recognize shared libraries
11584*** as such. This will affect the creation of libtool libraries that
11585*** depend on shared libraries, but programs linked with such libtool
11586*** libraries will work regardless of this problem. Nevertheless, you
11587*** may want to report the problem to your system manager and/or to
11588*** bug-libtool@gnu.org
11589
11590EOF
11591 fi ;;
11592 esac
11593 fi
11594 break
11595 fi
11596 done
11597 IFS="$lt_save_ifs"
11598 MAGIC_CMD="$lt_save_MAGIC_CMD"
11599 ;;
11600esac
John Criswell7a73b802003-06-30 21:59:07 +000011601fi
John Criswell7a73b802003-06-30 21:59:07 +000011602
John Criswell47fdd832003-07-14 16:52:07 +000011603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11604if test -n "$MAGIC_CMD"; then
11605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11606echo "${ECHO_T}$MAGIC_CMD" >&6
11607else
11608 echo "$as_me:$LINENO: result: no" >&5
11609echo "${ECHO_T}no" >&6
11610fi
John Criswell7a73b802003-06-30 21:59:07 +000011611
John Criswell47fdd832003-07-14 16:52:07 +000011612if test -z "$lt_cv_path_MAGIC_CMD"; then
11613 if test -n "$ac_tool_prefix"; then
11614 echo "$as_me:$LINENO: checking for file" >&5
11615echo $ECHO_N "checking for file... $ECHO_C" >&6
11616if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618else
11619 case $MAGIC_CMD in
11620[\\/*] | ?:[\\/]*)
11621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11622 ;;
11623*)
11624 lt_save_MAGIC_CMD="$MAGIC_CMD"
11625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11626 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11627 for ac_dir in $ac_dummy; do
11628 IFS="$lt_save_ifs"
11629 test -z "$ac_dir" && ac_dir=.
11630 if test -f $ac_dir/file; then
11631 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11632 if test -n "$file_magic_test_file"; then
11633 case $deplibs_check_method in
11634 "file_magic "*)
11635 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11638 $EGREP "$file_magic_regex" > /dev/null; then
11639 :
11640 else
11641 cat <<EOF 1>&2
11642
11643*** Warning: the command libtool uses to detect shared libraries,
11644*** $file_magic_cmd, produces output that libtool cannot recognize.
11645*** The result is that libtool may fail to recognize shared libraries
11646*** as such. This will affect the creation of libtool libraries that
11647*** depend on shared libraries, but programs linked with such libtool
11648*** libraries will work regardless of this problem. Nevertheless, you
11649*** may want to report the problem to your system manager and/or to
11650*** bug-libtool@gnu.org
11651
11652EOF
11653 fi ;;
11654 esac
11655 fi
11656 break
11657 fi
11658 done
11659 IFS="$lt_save_ifs"
11660 MAGIC_CMD="$lt_save_MAGIC_CMD"
11661 ;;
11662esac
11663fi
11664
11665MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11666if test -n "$MAGIC_CMD"; then
11667 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11668echo "${ECHO_T}$MAGIC_CMD" >&6
11669else
11670 echo "$as_me:$LINENO: result: no" >&5
11671echo "${ECHO_T}no" >&6
11672fi
11673
11674 else
11675 MAGIC_CMD=:
11676 fi
11677fi
11678
11679 fi
11680 ;;
11681esac
11682
Reid Spencer17795972004-11-18 09:47:37 +000011683enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011684enable_win32_dll=no
11685
11686# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11687if test "${enable_libtool_lock+set}" = set; then
11688 enableval="$enable_libtool_lock"
11689
11690fi;
11691test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11692
John Criswell7a73b802003-06-30 21:59:07 +000011693
11694# Check whether --with-pic or --without-pic was given.
11695if test "${with_pic+set}" = set; then
11696 withval="$with_pic"
11697 pic_mode="$withval"
11698else
11699 pic_mode=default
11700fi;
11701test -z "$pic_mode" && pic_mode=default
11702
John Criswell47fdd832003-07-14 16:52:07 +000011703# Use C for the default configuration in the libtool script
11704tagname=
11705lt_save_CC="$CC"
11706ac_ext=c
11707ac_cpp='$CPP $CPPFLAGS'
11708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711
11712
11713# Source file extension for C test sources.
11714ac_ext=c
11715
11716# Object file extension for compiled C test sources.
11717objext=o
11718objext=$objext
11719
11720# Code to be used in simple compile tests
11721lt_simple_compile_test_code="int some_variable = 0;\n"
11722
11723# Code to be used in simple link tests
11724lt_simple_link_test_code='int main(){return(0);}\n'
11725
11726
11727# If no C compiler was specified, use CC.
11728LTCC=${LTCC-"$CC"}
11729
11730# Allow CC to be a program name with arguments.
11731compiler=$CC
11732
11733
11734#
11735# Check for any special shared library compilation flags.
11736#
11737lt_prog_cc_shlib=
11738if test "$GCC" = no; then
11739 case $host_os in
11740 sco3.2v5*)
11741 lt_prog_cc_shlib='-belf'
11742 ;;
11743 esac
11744fi
11745if test -n "$lt_prog_cc_shlib"; then
11746 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11747echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11748 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11749 else
11750 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11751echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11752 lt_cv_prog_cc_can_build_shared=no
11753 fi
11754fi
11755
11756
11757#
11758# Check to make sure the static flag actually works.
11759#
11760echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11761echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11762if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
John Criswell47fdd832003-07-14 16:52:07 +000011765 lt_prog_compiler_static_works=no
11766 save_LDFLAGS="$LDFLAGS"
11767 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11768 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11770 # The compiler can only warn and ignore the option if not recognized
11771 # So say no if there are warnings
11772 if test -s conftest.err; then
11773 # Append any errors to the config.log.
11774 cat conftest.err 1>&5
11775 else
11776 lt_prog_compiler_static_works=yes
11777 fi
11778 fi
11779 $rm conftest*
11780 LDFLAGS="$save_LDFLAGS"
11781
11782fi
11783echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11784echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11785
11786if test x"$lt_prog_compiler_static_works" = xyes; then
11787 :
11788else
11789 lt_prog_compiler_static=
11790fi
11791
11792
11793
John Criswell47fdd832003-07-14 16:52:07 +000011794
11795lt_prog_compiler_no_builtin_flag=
11796
11797if test "$GCC" = yes; then
11798 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11799
Reid Spencer2706f8c2004-09-19 23:53:36 +000011800
11801echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011802echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11803if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805else
11806 lt_cv_prog_compiler_rtti_exceptions=no
11807 ac_outfile=conftest.$ac_objext
11808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11809 lt_compiler_flag="-fno-rtti -fno-exceptions"
11810 # Insert the option either (1) after the last *FLAGS variable, or
11811 # (2) before a word containing "conftest.", or (3) at the end.
11812 # Note that $ac_compile itself does not contain backslashes and begins
11813 # with a dollar sign (not a hyphen), so the echo should work correctly.
11814 # The option is referenced via a variable to avoid confusing sed.
11815 lt_compile=`echo "$ac_compile" | $SED \
11816 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11818 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000011819 (eval echo "\"\$as_me:11819: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011820 (eval "$lt_compile" 2>conftest.err)
11821 ac_status=$?
11822 cat conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000011823 echo "$as_me:11823: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011824 if (exit $ac_status) && test -s "$ac_outfile"; then
11825 # The compiler can only warn and ignore the option if not recognized
11826 # So say no if there are warnings
11827 if test ! -s conftest.err; then
11828 lt_cv_prog_compiler_rtti_exceptions=yes
11829 fi
11830 fi
11831 $rm conftest*
11832
11833fi
11834echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11835echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11836
11837if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11838 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11839else
11840 :
11841fi
11842
11843fi
11844
11845lt_prog_compiler_wl=
11846lt_prog_compiler_pic=
11847lt_prog_compiler_static=
11848
11849echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11850echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011851
11852 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011853 lt_prog_compiler_wl='-Wl,'
11854 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011855
11856 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011857 aix*)
11858 # All AIX code is PIC.
11859 if test "$host_cpu" = ia64; then
11860 # AIX 5 now supports IA64 processor
11861 lt_prog_compiler_static='-Bstatic'
11862 fi
John Criswell7a73b802003-06-30 21:59:07 +000011863 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011864
John Criswell7a73b802003-06-30 21:59:07 +000011865 amigaos*)
11866 # FIXME: we need at least 68020 code to build shared libraries, but
11867 # adding the `-m68020' flag to GCC prevents building anything better,
11868 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011869 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011870 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011871
11872 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011873 # PIC is the default for these OSes.
11874 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011875
11876 mingw* | pw32* | os2*)
11877 # This hack is so that the source file can tell whether it is being
11878 # built for inclusion in a dll (and should export symbols for example).
11879 lt_prog_compiler_pic='-DDLL_EXPORT'
11880 ;;
11881
John Criswell7a73b802003-06-30 21:59:07 +000011882 darwin* | rhapsody*)
11883 # PIC is the default on this platform
11884 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011885 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011886 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011887
11888 msdosdjgpp*)
11889 # Just because we use GCC doesn't mean we suddenly get shared libraries
11890 # on systems that don't support them.
11891 lt_prog_compiler_can_build_shared=no
11892 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011893 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011894
John Criswell7a73b802003-06-30 21:59:07 +000011895 sysv4*MP*)
11896 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011897 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011898 fi
11899 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011900
11901 hpux*)
11902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11903 # not for PA HP-UX.
11904 case "$host_cpu" in
11905 hppa*64*|ia64*)
11906 # +Z the default
11907 ;;
11908 *)
11909 lt_prog_compiler_pic='-fPIC'
11910 ;;
11911 esac
11912 ;;
11913
John Criswell7a73b802003-06-30 21:59:07 +000011914 *)
John Criswell47fdd832003-07-14 16:52:07 +000011915 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011916 ;;
11917 esac
11918 else
John Criswell47fdd832003-07-14 16:52:07 +000011919 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011920 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011921 aix*)
11922 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011923 if test "$host_cpu" = ia64; then
11924 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011925 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011926 else
John Criswell47fdd832003-07-14 16:52:07 +000011927 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011928 fi
11929 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011930 darwin*)
11931 # PIC is the default on this platform
11932 # Common symbols not allowed in MH_DYLIB files
11933 case "$cc_basename" in
11934 xlc*)
11935 lt_prog_compiler_pic='-qnocommon'
11936 lt_prog_compiler_wl='-Wl,'
11937 ;;
11938 esac
11939 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011940
John Criswell47fdd832003-07-14 16:52:07 +000011941 mingw* | pw32* | os2*)
11942 # This hack is so that the source file can tell whether it is being
11943 # built for inclusion in a dll (and should export symbols for example).
11944 lt_prog_compiler_pic='-DDLL_EXPORT'
11945 ;;
11946
John Criswell7a73b802003-06-30 21:59:07 +000011947 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011948 lt_prog_compiler_wl='-Wl,'
11949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11950 # not for PA HP-UX.
11951 case "$host_cpu" in
11952 hppa*64*|ia64*)
11953 # +Z the default
11954 ;;
11955 *)
11956 lt_prog_compiler_pic='+Z'
11957 ;;
11958 esac
11959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11960 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011961 ;;
11962
John Criswell47fdd832003-07-14 16:52:07 +000011963 irix5* | irix6* | nonstopux*)
11964 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011965 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011966 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011967 ;;
11968
11969 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011970 lt_prog_compiler_pic='-KPIC'
11971 lt_prog_compiler_static='-Bstatic'
11972 ;;
11973
11974 linux*)
11975 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011976 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011977 lt_prog_compiler_wl='-Wl,'
11978 lt_prog_compiler_pic='-KPIC'
11979 lt_prog_compiler_static='-static'
11980 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011981 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011982 lt_prog_compiler_wl='-Wl,'
11983 # All Alpha code is PIC.
11984 lt_prog_compiler_static='-non_shared'
11985 ;;
11986 esac
John Criswell7a73b802003-06-30 21:59:07 +000011987 ;;
11988
11989 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011990 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011991 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011992 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011993 ;;
11994
11995 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011996 lt_prog_compiler_pic='-Kpic'
11997 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011998 ;;
11999
12000 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012001 lt_prog_compiler_wl='-Wl,'
12002 lt_prog_compiler_pic='-KPIC'
12003 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012004 ;;
12005
12006 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012007 lt_prog_compiler_wl='-Qoption ld '
12008 lt_prog_compiler_pic='-PIC'
12009 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012010 ;;
12011
12012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012013 lt_prog_compiler_wl='-Wl,'
12014 lt_prog_compiler_pic='-KPIC'
12015 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012016 ;;
12017
12018 sysv4*MP*)
12019 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012020 lt_prog_compiler_pic='-Kconform_pic'
12021 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012022 fi
12023 ;;
12024
John Criswell47fdd832003-07-14 16:52:07 +000012025 uts4*)
12026 lt_prog_compiler_pic='-pic'
12027 lt_prog_compiler_static='-Bstatic'
12028 ;;
12029
John Criswell7a73b802003-06-30 21:59:07 +000012030 *)
John Criswell47fdd832003-07-14 16:52:07 +000012031 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012032 ;;
12033 esac
12034 fi
12035
John Criswell47fdd832003-07-14 16:52:07 +000012036echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12037echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012038
John Criswell47fdd832003-07-14 16:52:07 +000012039#
12040# Check to make sure the PIC flag actually works.
12041#
12042if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012043
12044echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012045echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12046if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
John Criswell47fdd832003-07-14 16:52:07 +000012049 lt_prog_compiler_pic_works=no
12050 ac_outfile=conftest.$ac_objext
12051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12053 # Insert the option either (1) after the last *FLAGS variable, or
12054 # (2) before a word containing "conftest.", or (3) at the end.
12055 # Note that $ac_compile itself does not contain backslashes and begins
12056 # with a dollar sign (not a hyphen), so the echo should work correctly.
12057 # The option is referenced via a variable to avoid confusing sed.
12058 lt_compile=`echo "$ac_compile" | $SED \
12059 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12061 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000012062 (eval echo "\"\$as_me:12062: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012063 (eval "$lt_compile" 2>conftest.err)
12064 ac_status=$?
12065 cat conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000012066 echo "$as_me:12066: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012067 if (exit $ac_status) && test -s "$ac_outfile"; then
12068 # The compiler can only warn and ignore the option if not recognized
12069 # So say no if there are warnings
12070 if test ! -s conftest.err; then
12071 lt_prog_compiler_pic_works=yes
12072 fi
12073 fi
12074 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012075
John Criswell47fdd832003-07-14 16:52:07 +000012076fi
12077echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12078echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012079
John Criswell47fdd832003-07-14 16:52:07 +000012080if test x"$lt_prog_compiler_pic_works" = xyes; then
12081 case $lt_prog_compiler_pic in
12082 "" | " "*) ;;
12083 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12084 esac
John Criswell7a73b802003-06-30 21:59:07 +000012085else
John Criswell47fdd832003-07-14 16:52:07 +000012086 lt_prog_compiler_pic=
12087 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012088fi
12089
John Criswell7a73b802003-06-30 21:59:07 +000012090fi
John Criswell47fdd832003-07-14 16:52:07 +000012091case "$host_os" in
12092 # For platforms which do not support PIC, -DPIC is meaningless:
12093 *djgpp*)
12094 lt_prog_compiler_pic=
12095 ;;
12096 *)
12097 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12098 ;;
12099esac
John Criswell7a73b802003-06-30 21:59:07 +000012100
John Criswell7a73b802003-06-30 21:59:07 +000012101echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12102echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012103if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
John Criswell47fdd832003-07-14 16:52:07 +000012106 lt_cv_prog_compiler_c_o=no
12107 $rm -r conftest 2>/dev/null
12108 mkdir conftest
12109 cd conftest
12110 mkdir out
12111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012112
John Criswell47fdd832003-07-14 16:52:07 +000012113 lt_compiler_flag="-o out/conftest2.$ac_objext"
12114 # Insert the option either (1) after the last *FLAGS variable, or
12115 # (2) before a word containing "conftest.", or (3) at the end.
12116 # Note that $ac_compile itself does not contain backslashes and begins
12117 # with a dollar sign (not a hyphen), so the echo should work correctly.
12118 lt_compile=`echo "$ac_compile" | $SED \
12119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12121 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000012122 (eval echo "\"\$as_me:12122: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012123 (eval "$lt_compile" 2>out/conftest.err)
12124 ac_status=$?
12125 cat out/conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000012126 echo "$as_me:12126: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12128 then
12129 # The compiler can only warn and ignore the option if not recognized
12130 # So say no if there are warnings
12131 if test ! -s out/conftest.err; then
12132 lt_cv_prog_compiler_c_o=yes
12133 fi
12134 fi
12135 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012136 $rm conftest*
12137 # SGI C++ compiler will create directory out/ii_files/ for
12138 # template instantiation
12139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12140 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012141 cd ..
12142 rmdir conftest
12143 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012144
12145fi
John Criswell47fdd832003-07-14 16:52:07 +000012146echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12147echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012148
John Criswell7a73b802003-06-30 21:59:07 +000012149
John Criswell7a73b802003-06-30 21:59:07 +000012150hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012151if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012152 # do not overwrite the value of need_locks provided by the user
12153 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12154echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12155 hard_links=yes
12156 $rm conftest*
12157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12158 touch conftest.a
12159 ln conftest.a conftest.b 2>&5 || hard_links=no
12160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12161 echo "$as_me:$LINENO: result: $hard_links" >&5
12162echo "${ECHO_T}$hard_links" >&6
12163 if test "$hard_links" = no; then
12164 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12165echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12166 need_locks=warn
12167 fi
12168else
12169 need_locks=no
12170fi
John Criswell7a73b802003-06-30 21:59:07 +000012171
John Criswell47fdd832003-07-14 16:52:07 +000012172echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12173echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12174
12175 runpath_var=
12176 allow_undefined_flag=
12177 enable_shared_with_static_runtimes=no
12178 archive_cmds=
12179 archive_expsym_cmds=
12180 old_archive_From_new_cmds=
12181 old_archive_from_expsyms_cmds=
12182 export_dynamic_flag_spec=
12183 whole_archive_flag_spec=
12184 thread_safe_flag_spec=
12185 hardcode_libdir_flag_spec=
12186 hardcode_libdir_flag_spec_ld=
12187 hardcode_libdir_separator=
12188 hardcode_direct=no
12189 hardcode_minus_L=no
12190 hardcode_shlibpath_var=unsupported
12191 link_all_deplibs=unknown
12192 hardcode_automatic=no
12193 module_cmds=
12194 module_expsym_cmds=
12195 always_export_symbols=no
12196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12197 # include_expsyms should be a list of space-separated symbols to be *always*
12198 # included in the symbol list
12199 include_expsyms=
12200 # exclude_expsyms can be an extended regexp of symbols to exclude
12201 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12202 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12203 # as well as any symbol that contains `d'.
12204 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12206 # platforms (ab)use it in PIC code, but their linkers get confused if
12207 # the symbol is explicitly referenced. Since portable code cannot
12208 # rely on this symbol name, it's probably fine to never include it in
12209 # preloaded symbol tables.
12210 extract_expsyms_cmds=
12211
12212 case $host_os in
12213 cygwin* | mingw* | pw32*)
12214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12215 # When not using gcc, we currently assume that we are using
12216 # Microsoft Visual C++.
12217 if test "$GCC" != yes; then
12218 with_gnu_ld=no
12219 fi
12220 ;;
12221 openbsd*)
12222 with_gnu_ld=no
12223 ;;
12224 esac
12225
12226 ld_shlibs=yes
12227 if test "$with_gnu_ld" = yes; then
12228 # If archive_cmds runs LD, not CC, wlarc should be empty
12229 wlarc='${wl}'
12230
12231 # See if GNU ld supports shared libraries.
12232 case $host_os in
12233 aix3* | aix4* | aix5*)
12234 # On AIX/PPC, the GNU linker is very broken
12235 if test "$host_cpu" != ia64; then
12236 ld_shlibs=no
12237 cat <<EOF 1>&2
12238
12239*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12240*** to be unable to reliably create shared libraries on AIX.
12241*** Therefore, libtool is disabling shared libraries support. If you
12242*** really care for shared libraries, you may want to modify your PATH
12243*** so that a non-GNU linker is found, and then restart.
12244
12245EOF
12246 fi
12247 ;;
12248
12249 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012250 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 +000012251 hardcode_libdir_flag_spec='-L$libdir'
12252 hardcode_minus_L=yes
12253
12254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12255 # that the semantics of dynamic libraries on AmigaOS, at least up
12256 # to version 4, is to share data among multiple programs linked
12257 # with the same dynamic library. Since this doesn't match the
12258 # behavior of shared libraries on other platforms, we can't use
12259 # them.
12260 ld_shlibs=no
12261 ;;
12262
12263 beos*)
12264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12265 allow_undefined_flag=unsupported
12266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12267 # support --undefined. This deserves some investigation. FIXME
12268 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269 else
12270 ld_shlibs=no
12271 fi
12272 ;;
12273
12274 cygwin* | mingw* | pw32*)
12275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12276 # as there is no search path for DLLs.
12277 hardcode_libdir_flag_spec='-L$libdir'
12278 allow_undefined_flag=unsupported
12279 always_export_symbols=no
12280 enable_shared_with_static_runtimes=yes
12281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12282
12283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12285 # If the export-symbols file already is a .def file (1st line
12286 # is EXPORTS), use it as is; otherwise, prepend...
12287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12288 cp $export_symbols $output_objdir/$soname.def;
12289 else
12290 echo EXPORTS > $output_objdir/$soname.def;
12291 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012292 fi~
12293 $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 +000012294 else
12295 ld_shlibs=no
12296 fi
12297 ;;
12298
12299 netbsd*)
12300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12301 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12302 wlarc=
12303 else
12304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12306 fi
12307 ;;
12308
12309 solaris* | sysv5*)
12310 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12311 ld_shlibs=no
12312 cat <<EOF 1>&2
12313
12314*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12315*** create shared libraries on Solaris systems. Therefore, libtool
12316*** is disabling shared libraries support. We urge you to upgrade GNU
12317*** binutils to release 2.9.1 or newer. Another option is to modify
12318*** your PATH or compiler configuration so that the native linker is
12319*** used, and then restart.
12320
12321EOF
12322 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12325 else
12326 ld_shlibs=no
12327 fi
12328 ;;
12329
12330 sunos4*)
12331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12332 wlarc=
12333 hardcode_direct=yes
12334 hardcode_shlibpath_var=no
12335 ;;
12336
Reid Spencer2706f8c2004-09-19 23:53:36 +000012337 linux*)
12338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12339 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 archive_cmds="$tmp_archive_cmds"
12341 supports_anon_versioning=no
12342 case `$LD -v 2>/dev/null` in
12343 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12346 *\ 2.11.*) ;; # other 2.11 versions
12347 *) supports_anon_versioning=yes ;;
12348 esac
12349 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012350 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12351cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012353 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12354 else
12355 archive_expsym_cmds="$tmp_archive_cmds"
12356 fi
12357 else
12358 ld_shlibs=no
12359 fi
12360 ;;
12361
John Criswell47fdd832003-07-14 16:52:07 +000012362 *)
12363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12366 else
12367 ld_shlibs=no
12368 fi
12369 ;;
12370 esac
12371
12372 if test "$ld_shlibs" = yes; then
12373 runpath_var=LD_RUN_PATH
12374 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12375 export_dynamic_flag_spec='${wl}--export-dynamic'
12376 # ancient GNU ld didn't support --whole-archive et. al.
12377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12378 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12379 else
12380 whole_archive_flag_spec=
12381 fi
12382 fi
12383 else
12384 # PORTME fill in a description of your system's linker (not GNU ld)
12385 case $host_os in
12386 aix3*)
12387 allow_undefined_flag=unsupported
12388 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012389 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 +000012390 # Note: this linker hardcodes the directories in LIBPATH if there
12391 # are no directories specified by -L.
12392 hardcode_minus_L=yes
12393 if test "$GCC" = yes && test -z "$link_static_flag"; then
12394 # Neither direct hardcoding nor static linking is supported with a
12395 # broken collect2.
12396 hardcode_direct=unsupported
12397 fi
12398 ;;
12399
12400 aix4* | aix5*)
12401 if test "$host_cpu" = ia64; then
12402 # On IA64, the linker does run time linking by default, so we don't
12403 # have to do anything special.
12404 aix_use_runtimelinking=no
12405 exp_sym_flag='-Bexport'
12406 no_entry_flag=""
12407 else
12408 # If we're using GNU nm, then we don't want the "-C" option.
12409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12411 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'
12412 else
12413 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'
12414 fi
12415 aix_use_runtimelinking=no
12416
12417 # Test if we are trying to use run time linking or normal
12418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12419 # need to do runtime linking.
12420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12421 for ld_flag in $LDFLAGS; do
12422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12423 aix_use_runtimelinking=yes
12424 break
12425 fi
12426 done
12427 esac
12428
12429 exp_sym_flag='-bexport'
12430 no_entry_flag='-bnoentry'
12431 fi
12432
12433 # When large executables or shared objects are built, AIX ld can
12434 # have problems creating the table of contents. If linking a library
12435 # or program results in "error TOC overflow" add -mminimal-toc to
12436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12438
12439 archive_cmds=''
12440 hardcode_direct=yes
12441 hardcode_libdir_separator=':'
12442 link_all_deplibs=yes
12443
12444 if test "$GCC" = yes; then
12445 case $host_os in aix4.012|aix4.012.*)
12446 # We only want to do this on AIX 4.2 and lower, the check
12447 # below for broken collect2 doesn't work under 4.3+
12448 collect2name=`${CC} -print-prog-name=collect2`
12449 if test -f "$collect2name" && \
12450 strings "$collect2name" | grep resolve_lib_name >/dev/null
12451 then
12452 # We have reworked collect2
12453 hardcode_direct=yes
12454 else
12455 # We have old collect2
12456 hardcode_direct=unsupported
12457 # It fails to find uninstalled libraries when the uninstalled
12458 # path is not listed in the libpath. Setting hardcode_minus_L
12459 # to unsupported forces relinking
12460 hardcode_minus_L=yes
12461 hardcode_libdir_flag_spec='-L$libdir'
12462 hardcode_libdir_separator=
12463 fi
12464 esac
12465 shared_flag='-shared'
12466 else
12467 # not using gcc
12468 if test "$host_cpu" = ia64; then
12469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12470 # chokes on -Wl,-G. The following line is correct:
12471 shared_flag='-G'
12472 else
12473 if test "$aix_use_runtimelinking" = yes; then
12474 shared_flag='${wl}-G'
12475 else
12476 shared_flag='${wl}-bM:SRE'
12477 fi
12478 fi
12479 fi
12480
12481 # It seems that -bexpall does not export symbols beginning with
12482 # underscore (_), so it is better to generate a list of symbols to export.
12483 always_export_symbols=yes
12484 if test "$aix_use_runtimelinking" = yes; then
12485 # Warning - without using the other runtime loading flags (-brtl),
12486 # -berok will link without error, but may produce a broken library.
12487 allow_undefined_flag='-berok'
12488 # Determine the default libpath from the value encoded in an empty executable.
12489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012495
John Criswell7a73b802003-06-30 21:59:07 +000012496int
12497main ()
12498{
John Criswell47fdd832003-07-14 16:52:07 +000012499
John Criswell7a73b802003-06-30 21:59:07 +000012500 ;
12501 return 0;
12502}
12503_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012504rm -f conftest.$ac_objext conftest$ac_exeext
12505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012506 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012526
John Criswell47fdd832003-07-14 16:52:07 +000012527aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12528}'`
12529# Check for a 64-bit object if we didn't find anything.
12530if 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; }
12531}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012532else
12533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012534sed 's/^/| /' conftest.$ac_ext >&5
12535
John Criswell7a73b802003-06-30 21:59:07 +000012536fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012537rm -f conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012539if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012540
John Criswell47fdd832003-07-14 16:52:07 +000012541 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12542 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"
12543 else
12544 if test "$host_cpu" = ia64; then
12545 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12546 allow_undefined_flag="-z nodefs"
12547 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"
12548 else
12549 # Determine the default libpath from the value encoded in an empty executable.
12550 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012556
John Criswell47fdd832003-07-14 16:52:07 +000012557int
12558main ()
12559{
John Criswell7a73b802003-06-30 21:59:07 +000012560
John Criswell47fdd832003-07-14 16:52:07 +000012561 ;
12562 return 0;
12563}
12564_ACEOF
12565rm -f conftest.$ac_objext conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012567 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012574 { ac_try='test -z "$ac_c_werror_flag"
12575 || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012587
John Criswell47fdd832003-07-14 16:52:07 +000012588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12589}'`
12590# Check for a 64-bit object if we didn't find anything.
12591if 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; }
12592}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012593else
John Criswell47fdd832003-07-14 16:52:07 +000012594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012595sed 's/^/| /' conftest.$ac_ext >&5
12596
John Criswell47fdd832003-07-14 16:52:07 +000012597fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012598rm -f conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012600if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012601
John Criswell47fdd832003-07-14 16:52:07 +000012602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12603 # Warning - without using the other run time loading flags,
12604 # -berok will link without error, but may produce a broken library.
12605 no_undefined_flag=' ${wl}-bernotok'
12606 allow_undefined_flag=' ${wl}-berok'
12607 # -bexpall does not export symbols beginning with underscore (_)
12608 always_export_symbols=yes
12609 # Exported symbols can be pulled into shared objects from archives
12610 whole_archive_flag_spec=' '
12611 archive_cmds_need_lc=yes
12612 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012613 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 +000012614 fi
12615 fi
John Criswell7a73b802003-06-30 21:59:07 +000012616 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012617
12618 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012619 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 +000012620 hardcode_libdir_flag_spec='-L$libdir'
12621 hardcode_minus_L=yes
12622 # see comment about different semantics on the GNU ld section
12623 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012624 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012625
Reid Spencer2706f8c2004-09-19 23:53:36 +000012626 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012627 export_dynamic_flag_spec=-rdynamic
12628 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012629
John Criswell47fdd832003-07-14 16:52:07 +000012630 cygwin* | mingw* | pw32*)
12631 # When not using gcc, we currently assume that we are using
12632 # Microsoft Visual C++.
12633 # hardcode_libdir_flag_spec is actually meaningless, as there is
12634 # no search path for DLLs.
12635 hardcode_libdir_flag_spec=' '
12636 allow_undefined_flag=unsupported
12637 # Tell ltmain to make .lib files, not .a files.
12638 libext=lib
12639 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012640 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012641 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012643 # The linker will automatically build a .lib file if we build a DLL.
12644 old_archive_From_new_cmds='true'
12645 # FIXME: Should let the user specify the lib program.
12646 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12647 fix_srcfile_path='`cygpath -w "$srcfile"`'
12648 enable_shared_with_static_runtimes=yes
12649 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012650
John Criswell47fdd832003-07-14 16:52:07 +000012651 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012652 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012653 rhapsody* | darwin1.[012])
12654 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12655 ;;
12656 *) # Darwin 1.3 on
12657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12658 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12659 else
12660 case ${MACOSX_DEPLOYMENT_TARGET} in
12661 10.[012])
12662 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12663 ;;
12664 10.*)
12665 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12666 ;;
12667 esac
12668 fi
12669 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012670 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012671 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012672 hardcode_direct=no
12673 hardcode_automatic=yes
12674 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012675 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012676 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012677 if test "$GCC" = yes ; then
12678 output_verbose_link_cmd='echo'
12679 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12680 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12681 # 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 +000012682 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}'
12683 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 +000012684 else
12685 case "$cc_basename" in
12686 xlc*)
12687 output_verbose_link_cmd='echo'
12688 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12689 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12690 # 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 +000012691 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}'
12692 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 +000012693 ;;
12694 *)
12695 ld_shlibs=no
12696 ;;
12697 esac
John Criswell7a73b802003-06-30 21:59:07 +000012698 fi
John Criswell47fdd832003-07-14 16:52:07 +000012699 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012700
John Criswell47fdd832003-07-14 16:52:07 +000012701 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012703 hardcode_libdir_flag_spec='-L$libdir'
12704 hardcode_shlibpath_var=no
12705 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012706
John Criswell47fdd832003-07-14 16:52:07 +000012707 freebsd1*)
12708 ld_shlibs=no
12709 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012710
John Criswell47fdd832003-07-14 16:52:07 +000012711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12712 # support. Future versions do this automatically, but an explicit c++rt0.o
12713 # does not break anything, and helps significantly (at the cost of a little
12714 # extra space).
12715 freebsd2.2*)
12716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12717 hardcode_libdir_flag_spec='-R$libdir'
12718 hardcode_direct=yes
12719 hardcode_shlibpath_var=no
12720 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012721
John Criswell47fdd832003-07-14 16:52:07 +000012722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12723 freebsd2*)
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12725 hardcode_direct=yes
12726 hardcode_minus_L=yes
12727 hardcode_shlibpath_var=no
12728 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012729
John Criswell47fdd832003-07-14 16:52:07 +000012730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012731 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12733 hardcode_libdir_flag_spec='-R$libdir'
12734 hardcode_direct=yes
12735 hardcode_shlibpath_var=no
12736 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012737
John Criswell47fdd832003-07-14 16:52:07 +000012738 hpux9*)
12739 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012740 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 +000012741 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012742 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 +000012743 fi
12744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12745 hardcode_libdir_separator=:
12746 hardcode_direct=yes
12747
12748 # hardcode_minus_L: Not really in the search PATH,
12749 # but as the default location of the library.
12750 hardcode_minus_L=yes
12751 export_dynamic_flag_spec='${wl}-E'
12752 ;;
12753
12754 hpux10* | hpux11*)
12755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12756 case "$host_cpu" in
12757 hppa*64*|ia64*)
12758 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12759 ;;
12760 *)
12761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12762 ;;
12763 esac
12764 else
12765 case "$host_cpu" in
12766 hppa*64*|ia64*)
12767 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12768 ;;
12769 *)
12770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12771 ;;
12772 esac
12773 fi
12774 if test "$with_gnu_ld" = no; then
12775 case "$host_cpu" in
12776 hppa*64*)
12777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_flag_spec_ld='+b $libdir'
12779 hardcode_libdir_separator=:
12780 hardcode_direct=no
12781 hardcode_shlibpath_var=no
12782 ;;
12783 ia64*)
12784 hardcode_libdir_flag_spec='-L$libdir'
12785 hardcode_direct=no
12786 hardcode_shlibpath_var=no
12787
12788 # hardcode_minus_L: Not really in the search PATH,
12789 # but as the default location of the library.
12790 hardcode_minus_L=yes
12791 ;;
12792 *)
12793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_separator=:
12795 hardcode_direct=yes
12796 export_dynamic_flag_spec='${wl}-E'
12797
12798 # hardcode_minus_L: Not really in the search PATH,
12799 # but as the default location of the library.
12800 hardcode_minus_L=yes
12801 ;;
12802 esac
12803 fi
12804 ;;
12805
12806 irix5* | irix6* | nonstopux*)
12807 if test "$GCC" = yes; then
12808 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'
12809 else
12810 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'
12811 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12812 fi
12813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12814 hardcode_libdir_separator=:
12815 link_all_deplibs=yes
12816 ;;
12817
12818 netbsd*)
12819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12821 else
12822 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12823 fi
12824 hardcode_libdir_flag_spec='-R$libdir'
12825 hardcode_direct=yes
12826 hardcode_shlibpath_var=no
12827 ;;
12828
12829 newsos6)
12830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12831 hardcode_direct=yes
12832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12833 hardcode_libdir_separator=:
12834 hardcode_shlibpath_var=no
12835 ;;
12836
12837 openbsd*)
12838 hardcode_direct=yes
12839 hardcode_shlibpath_var=no
12840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012842 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 +000012843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12844 export_dynamic_flag_spec='${wl}-E'
12845 else
12846 case $host_os in
12847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12849 hardcode_libdir_flag_spec='-R$libdir'
12850 ;;
12851 *)
12852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12854 ;;
12855 esac
12856 fi
12857 ;;
12858
12859 os2*)
12860 hardcode_libdir_flag_spec='-L$libdir'
12861 hardcode_minus_L=yes
12862 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012863 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 +000012864 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12865 ;;
12866
12867 osf3*)
12868 if test "$GCC" = yes; then
12869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12870 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'
12871 else
12872 allow_undefined_flag=' -expect_unresolved \*'
12873 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'
12874 fi
12875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12876 hardcode_libdir_separator=:
12877 ;;
12878
12879 osf4* | osf5*) # as osf3* with the addition of -msym flag
12880 if test "$GCC" = yes; then
12881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12882 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'
12883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12884 else
12885 allow_undefined_flag=' -expect_unresolved \*'
12886 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 +000012887 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12888 $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'
12889
John Criswell47fdd832003-07-14 16:52:07 +000012890 # Both c and cxx compiler support -rpath directly
12891 hardcode_libdir_flag_spec='-rpath $libdir'
12892 fi
12893 hardcode_libdir_separator=:
12894 ;;
12895
12896 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12898 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012899 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012900 runpath_var=LD_RUN_PATH
12901 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012902 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012903
John Criswell47fdd832003-07-14 16:52:07 +000012904 solaris*)
12905 no_undefined_flag=' -z text'
12906 if test "$GCC" = yes; then
12907 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012908 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12909 $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 +000012910 else
12911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12913 $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 +000012914 fi
12915 hardcode_libdir_flag_spec='-R$libdir'
12916 hardcode_shlibpath_var=no
12917 case $host_os in
12918 solaris2.[0-5] | solaris2.[0-5].*) ;;
12919 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12921 esac
12922 link_all_deplibs=yes
12923 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012924
John Criswell47fdd832003-07-14 16:52:07 +000012925 sunos4*)
12926 if test "x$host_vendor" = xsequent; then
12927 # Use $CC to link under sequent, because it throws in some extra .o
12928 # files that make .init and .fini sections work.
12929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12930 else
12931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12932 fi
12933 hardcode_libdir_flag_spec='-L$libdir'
12934 hardcode_direct=yes
12935 hardcode_minus_L=yes
12936 hardcode_shlibpath_var=no
12937 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012938
John Criswell47fdd832003-07-14 16:52:07 +000012939 sysv4)
12940 case $host_vendor in
12941 sni)
12942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_direct=yes # is this really true???
12944 ;;
12945 siemens)
12946 ## LD is ld it makes a PLAMLIB
12947 ## CC just makes a GrossModule.
12948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12949 reload_cmds='$CC -r -o $output$reload_objs'
12950 hardcode_direct=no
12951 ;;
12952 motorola)
12953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12955 ;;
12956 esac
12957 runpath_var='LD_RUN_PATH'
12958 hardcode_shlibpath_var=no
12959 ;;
12960
12961 sysv4.3*)
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_shlibpath_var=no
12964 export_dynamic_flag_spec='-Bexport'
12965 ;;
12966
12967 sysv4*MP*)
12968 if test -d /usr/nec; then
12969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_shlibpath_var=no
12971 runpath_var=LD_RUN_PATH
12972 hardcode_runpath_var=yes
12973 ld_shlibs=yes
12974 fi
12975 ;;
12976
12977 sysv4.2uw2*)
12978 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12979 hardcode_direct=yes
12980 hardcode_minus_L=no
12981 hardcode_shlibpath_var=no
12982 hardcode_runpath_var=yes
12983 runpath_var=LD_RUN_PATH
12984 ;;
12985
12986 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12987 no_undefined_flag='${wl}-z ${wl}text'
12988 if test "$GCC" = yes; then
12989 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 else
12991 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 fi
12993 runpath_var='LD_RUN_PATH'
12994 hardcode_shlibpath_var=no
12995 ;;
12996
12997 sysv5*)
12998 no_undefined_flag=' -z text'
12999 # $CC -shared without GNU ld will not create a library from C++
13000 # object files and a static libstdc++, better avoid it by now
13001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013002 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $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 +000013004 hardcode_libdir_flag_spec=
13005 hardcode_shlibpath_var=no
13006 runpath_var='LD_RUN_PATH'
13007 ;;
13008
13009 uts4*)
13010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13011 hardcode_libdir_flag_spec='-L$libdir'
13012 hardcode_shlibpath_var=no
13013 ;;
13014
13015 *)
13016 ld_shlibs=no
13017 ;;
13018 esac
13019 fi
13020
John Criswell7a73b802003-06-30 21:59:07 +000013021echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13022echo "${ECHO_T}$ld_shlibs" >&6
13023test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013024
John Criswell47fdd832003-07-14 16:52:07 +000013025variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13026if test "$GCC" = yes; then
13027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13028fi
13029
13030#
13031# Do we need to explicitly link libc?
13032#
13033case "x$archive_cmds_need_lc" in
13034x|xyes)
13035 # Assume -lc should be added
13036 archive_cmds_need_lc=yes
13037
13038 if test "$enable_shared" = yes && test "$GCC" = yes; then
13039 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013040 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013041 # FIXME: we may have to deal with multi-command sequences.
13042 ;;
13043 '$CC '*)
13044 # Test whether the compiler implicitly links with -lc since on some
13045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13046 # to ld, don't add -lc before -lgcc.
13047 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13048echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13049 $rm conftest*
13050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13051
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } 2>conftest.err; then
13057 soname=conftest
13058 lib=conftest
13059 libobjs=conftest.$ac_objext
13060 deplibs=
13061 wl=$lt_prog_compiler_wl
13062 compiler_flags=-v
13063 linker_flags=-v
13064 verstring=
13065 output_objdir=.
13066 libname=conftest
13067 lt_save_allow_undefined_flag=$allow_undefined_flag
13068 allow_undefined_flag=
13069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13070 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }
13074 then
13075 archive_cmds_need_lc=no
13076 else
13077 archive_cmds_need_lc=yes
13078 fi
13079 allow_undefined_flag=$lt_save_allow_undefined_flag
13080 else
13081 cat conftest.err 1>&5
13082 fi
13083 $rm conftest*
13084 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13085echo "${ECHO_T}$archive_cmds_need_lc" >&6
13086 ;;
13087 esac
13088 fi
13089 ;;
13090esac
13091
John Criswell7a73b802003-06-30 21:59:07 +000013092echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13093echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13094library_names_spec=
13095libname_spec='lib$name'
13096soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013097shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013098postinstall_cmds=
13099postuninstall_cmds=
13100finish_cmds=
13101finish_eval=
13102shlibpath_var=
13103shlibpath_overrides_runpath=unknown
13104version_type=none
13105dynamic_linker="$host_os ld.so"
13106sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013107if test "$GCC" = yes; then
13108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13110 # if the path contains ";" then we assume it to be the separator
13111 # otherwise default to the standard path separator (i.e. ":") - it is
13112 # assumed that no part of a normal pathname contains ";" but that should
13113 # okay in the real world where ";" in dirpaths is itself problematic.
13114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13115 else
13116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13117 fi
13118else
13119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13120fi
13121need_lib_prefix=unknown
13122hardcode_into_libs=no
13123
13124# when you set need_version to no, make sure it does not cause -set_version
13125# flags to be left without arguments
13126need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013127
13128case $host_os in
13129aix3*)
13130 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013132 shlibpath_var=LIBPATH
13133
John Criswell47fdd832003-07-14 16:52:07 +000013134 # AIX 3 has no versioning support, so we append a major version to the name.
13135 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013136 ;;
13137
13138aix4* | aix5*)
13139 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013140 need_lib_prefix=no
13141 need_version=no
13142 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013143 if test "$host_cpu" = ia64; then
13144 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013146 shlibpath_var=LD_LIBRARY_PATH
13147 else
13148 # With GCC up to 2.95.x, collect2 would create an import file
13149 # for dependence libraries. The import file would start with
13150 # the line `#! .'. This would cause the generated library to
13151 # depend on `.', always an invalid library. This was fixed in
13152 # development snapshots of GCC prior to 3.0.
13153 case $host_os in
13154 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13156 echo ' yes '
13157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13158 :
13159 else
13160 can_build_shared=no
13161 fi
13162 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013163 esac
John Criswell47fdd832003-07-14 16:52:07 +000013164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13165 # soname into executable. Probably we can add versioning support to
13166 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013167 if test "$aix_use_runtimelinking" = yes; then
13168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13169 # instead of lib<name>.a to let people know that these are not
13170 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013172 else
13173 # We preserve .a as extension for shared libraries through AIX4.2
13174 # and later when we are not doing run time linking.
13175 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013176 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013177 fi
13178 shlibpath_var=LIBPATH
13179 fi
13180 ;;
13181
13182amigaos*)
13183 library_names_spec='$libname.ixlibrary $libname.a'
13184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013185 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 +000013186 ;;
13187
13188beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013189 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013190 dynamic_linker="$host_os ld.so"
13191 shlibpath_var=LIBRARY_PATH
13192 ;;
13193
Reid Spencer2706f8c2004-09-19 23:53:36 +000013194bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013195 version_type=linux
13196 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013203 # the default ld.so.conf also contains /usr/contrib/lib and
13204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13205 # libtool to hard-code these into programs
13206 ;;
13207
13208cygwin* | mingw* | pw32*)
13209 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013210 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013211 need_version=no
13212 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013213
John Criswell7a73b802003-06-30 21:59:07 +000013214 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013215 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013216 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013218 postinstall_cmds='base_file=`basename \${file}`~
13219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13220 dldir=$destdir/`dirname \$dlpath`~
13221 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013222 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13224 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013225 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013226 shlibpath_overrides_runpath=yes
13227
13228 case $host_os in
13229 cygwin*)
13230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13231 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 +000013232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013233 ;;
13234 mingw*)
13235 # MinGW DLLs use traditional 'lib' prefix
13236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13239 # It is most probably a Windows format PATH printed by
13240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13241 # path with ; separators, and with drive letters. We can handle the
13242 # drive letters (cygwin fileutils understands them), so leave them,
13243 # especially as we might pass files found there to a mingw objdump,
13244 # which wouldn't understand a cygwinified path. Ahh.
13245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13246 else
13247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13248 fi
13249 ;;
13250 pw32*)
13251 # pw32 DLLs use 'pw' prefix rather than 'lib'
13252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13253 ;;
13254 esac
John Criswell7a73b802003-06-30 21:59:07 +000013255 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013256
John Criswell7a73b802003-06-30 21:59:07 +000013257 *)
John Criswell47fdd832003-07-14 16:52:07 +000013258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013259 ;;
13260 esac
13261 dynamic_linker='Win32 ld.exe'
13262 # FIXME: first we should search . and the directory the executable is in
13263 shlibpath_var=PATH
13264 ;;
13265
13266darwin* | rhapsody*)
13267 dynamic_linker="$host_os dyld"
13268 version_type=darwin
13269 need_lib_prefix=no
13270 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013271 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013272 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013273 shlibpath_overrides_runpath=yes
13274 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013275 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013276 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013277 if test "$GCC" = yes; then
13278 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"`
13279 else
13280 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013281 fi
13282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13283 ;;
13284
13285dgux*)
13286 version_type=linux
13287 need_lib_prefix=no
13288 need_version=no
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013292 ;;
13293
13294freebsd1*)
13295 dynamic_linker=no
13296 ;;
13297
Reid Spencer2706f8c2004-09-19 23:53:36 +000013298kfreebsd*-gnu)
13299 version_type=linux
13300 need_lib_prefix=no
13301 need_version=no
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=no
13306 hardcode_into_libs=yes
13307 dynamic_linker='GNU ld.so'
13308 ;;
13309
John Criswell7a73b802003-06-30 21:59:07 +000013310freebsd*)
13311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13312 version_type=freebsd-$objformat
13313 case $version_type in
13314 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013316 need_version=no
13317 need_lib_prefix=no
13318 ;;
13319 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013321 need_version=yes
13322 ;;
13323 esac
13324 shlibpath_var=LD_LIBRARY_PATH
13325 case $host_os in
13326 freebsd2*)
13327 shlibpath_overrides_runpath=yes
13328 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013329 freebsd3.01* | freebsdelf3.01*)
13330 shlibpath_overrides_runpath=yes
13331 hardcode_into_libs=yes
13332 ;;
13333 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013334 shlibpath_overrides_runpath=no
13335 hardcode_into_libs=yes
13336 ;;
13337 esac
13338 ;;
13339
13340gnu*)
13341 version_type=linux
13342 need_lib_prefix=no
13343 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13345 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013346 shlibpath_var=LD_LIBRARY_PATH
13347 hardcode_into_libs=yes
13348 ;;
13349
13350hpux9* | hpux10* | hpux11*)
13351 # Give a soname corresponding to the major version so that dld.sl refuses to
13352 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013353 version_type=sunos
13354 need_lib_prefix=no
13355 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013356 case "$host_cpu" in
13357 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013358 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013359 hardcode_into_libs=yes
13360 dynamic_linker="$host_os dld.so"
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364 soname_spec='${libname}${release}${shared_ext}$major'
13365 if test "X$HPUX_IA64_MODE" = X32; then
13366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13367 else
13368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13369 fi
13370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13371 ;;
13372 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013373 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013374 hardcode_into_libs=yes
13375 dynamic_linker="$host_os dld.sl"
13376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13382 ;;
13383 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013384 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013385 dynamic_linker="$host_os dld.sl"
13386 shlibpath_var=SHLIB_PATH
13387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 ;;
13391 esac
John Criswell7a73b802003-06-30 21:59:07 +000013392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13393 postinstall_cmds='chmod 555 $lib'
13394 ;;
13395
John Criswell47fdd832003-07-14 16:52:07 +000013396irix5* | irix6* | nonstopux*)
13397 case $host_os in
13398 nonstopux*) version_type=nonstopux ;;
13399 *)
13400 if test "$lt_cv_prog_gnu_ld" = yes; then
13401 version_type=linux
13402 else
13403 version_type=irix
13404 fi ;;
13405 esac
John Criswell7a73b802003-06-30 21:59:07 +000013406 need_lib_prefix=no
13407 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013408 soname_spec='${libname}${release}${shared_ext}$major'
13409 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 +000013410 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013411 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013412 libsuff= shlibsuff=
13413 ;;
13414 *)
13415 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13417 libsuff= shlibsuff= libmagic=32-bit;;
13418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13419 libsuff=32 shlibsuff=N32 libmagic=N32;;
13420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013422 *) libsuff= shlibsuff= libmagic=never-match;;
13423 esac
13424 ;;
13425 esac
13426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13427 shlibpath_overrides_runpath=no
13428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013430 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013431 ;;
13432
13433# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013434linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013435 dynamic_linker=no
13436 ;;
13437
13438# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013439linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013440 version_type=linux
13441 need_lib_prefix=no
13442 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=no
13448 # This implies no fast_install, which is unacceptable.
13449 # Some rework will be needed to allow for fast_install
13450 # before this can be enabled.
13451 hardcode_into_libs=yes
13452
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453 # Append ld.so.conf contents to the search path
13454 if test -f /etc/ld.so.conf; then
13455 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13457 fi
13458
John Criswell7a73b802003-06-30 21:59:07 +000013459 # We used to test for /lib/ld.so.1 and disable shared libraries on
13460 # powerpc, because MkLinux only supported shared libraries with the
13461 # GNU dynamic linker. Since this was broken with cross compilers,
13462 # most powerpc-linux boxes support dynamic linking these days and
13463 # people can always --disable-shared, the test was removed, and we
13464 # assume the GNU/Linux dynamic linker is in use.
13465 dynamic_linker='GNU/Linux ld.so'
13466 ;;
13467
Reid Spencer2706f8c2004-09-19 23:53:36 +000013468knetbsd*-gnu)
13469 version_type=linux
13470 need_lib_prefix=no
13471 need_version=no
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 shlibpath_overrides_runpath=no
13476 hardcode_into_libs=yes
13477 dynamic_linker='GNU ld.so'
13478 ;;
13479
John Criswell7a73b802003-06-30 21:59:07 +000013480netbsd*)
13481 version_type=sunos
13482 need_lib_prefix=no
13483 need_version=no
13484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13487 dynamic_linker='NetBSD (a.out) ld.so'
13488 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013490 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013491 dynamic_linker='NetBSD ld.elf_so'
13492 fi
13493 shlibpath_var=LD_LIBRARY_PATH
13494 shlibpath_overrides_runpath=yes
13495 hardcode_into_libs=yes
13496 ;;
13497
13498newsos6)
13499 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=yes
13503 ;;
13504
Reid Spencer2706f8c2004-09-19 23:53:36 +000013505nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013506 version_type=linux
13507 need_lib_prefix=no
13508 need_version=no
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013511 shlibpath_var=LD_LIBRARY_PATH
13512 shlibpath_overrides_runpath=yes
13513 ;;
13514
13515openbsd*)
13516 version_type=sunos
13517 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013518 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13521 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013522 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 +000013523 case $host_os in
13524 openbsd2.[89] | openbsd2.[89].*)
13525 shlibpath_overrides_runpath=no
13526 ;;
13527 *)
13528 shlibpath_overrides_runpath=yes
13529 ;;
13530 esac
John Criswell7a73b802003-06-30 21:59:07 +000013531 else
13532 shlibpath_overrides_runpath=yes
13533 fi
John Criswell7a73b802003-06-30 21:59:07 +000013534 ;;
13535
13536os2*)
13537 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013538 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013539 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013540 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013541 dynamic_linker='OS/2 ld.exe'
13542 shlibpath_var=LIBPATH
13543 ;;
13544
13545osf3* | osf4* | osf5*)
13546 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013547 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013548 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013549 soname_spec='${libname}${release}${shared_ext}$major'
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013551 shlibpath_var=LD_LIBRARY_PATH
13552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13554 ;;
13555
13556sco3.2v5*)
13557 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013558 soname_spec='${libname}${release}${shared_ext}$major'
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013560 shlibpath_var=LD_LIBRARY_PATH
13561 ;;
13562
13563solaris*)
13564 version_type=linux
13565 need_lib_prefix=no
13566 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013569 shlibpath_var=LD_LIBRARY_PATH
13570 shlibpath_overrides_runpath=yes
13571 hardcode_into_libs=yes
13572 # ldd complains unless libraries are executable
13573 postinstall_cmds='chmod +x $lib'
13574 ;;
13575
13576sunos4*)
13577 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 shlibpath_overrides_runpath=yes
13582 if test "$with_gnu_ld" = yes; then
13583 need_lib_prefix=no
13584 fi
13585 need_version=yes
13586 ;;
13587
13588sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13589 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013592 shlibpath_var=LD_LIBRARY_PATH
13593 case $host_vendor in
13594 sni)
13595 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013596 need_lib_prefix=no
13597 export_dynamic_flag_spec='${wl}-Blargedynsym'
13598 runpath_var=LD_RUN_PATH
13599 ;;
13600 siemens)
13601 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013602 ;;
13603 motorola)
13604 need_lib_prefix=no
13605 need_version=no
13606 shlibpath_overrides_runpath=no
13607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13608 ;;
13609 esac
13610 ;;
13611
John Criswell7a73b802003-06-30 21:59:07 +000013612sysv4*MP*)
13613 if test -d /usr/nec ;then
13614 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13616 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013617 shlibpath_var=LD_LIBRARY_PATH
13618 fi
13619 ;;
13620
John Criswell47fdd832003-07-14 16:52:07 +000013621uts4*)
13622 version_type=linux
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624 soname_spec='${libname}${release}${shared_ext}$major'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 ;;
13627
John Criswell7a73b802003-06-30 21:59:07 +000013628*)
13629 dynamic_linker=no
13630 ;;
13631esac
13632echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13633echo "${ECHO_T}$dynamic_linker" >&6
13634test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013635
Reid Spencer2706f8c2004-09-19 23:53:36 +000013636echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13637echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13638hardcode_action=
13639if test -n "$hardcode_libdir_flag_spec" || \
13640 test -n "$runpath_var" || \
13641 test "X$hardcode_automatic" = "Xyes" ; then
13642
13643 # We can hardcode non-existant directories.
13644 if test "$hardcode_direct" != no &&
13645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13646 # have to relink, otherwise we might link with an installed library
13647 # when we should be linking with a yet-to-be-installed one
13648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13649 test "$hardcode_minus_L" != no; then
13650 # Linking always hardcodes the temporary library directory.
13651 hardcode_action=relink
13652 else
13653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13654 hardcode_action=immediate
13655 fi
13656else
13657 # We cannot hardcode anything, or else we can only hardcode existing
13658 # directories.
13659 hardcode_action=unsupported
13660fi
13661echo "$as_me:$LINENO: result: $hardcode_action" >&5
13662echo "${ECHO_T}$hardcode_action" >&6
13663
13664if test "$hardcode_action" = relink; then
13665 # Fast installation is not supported
13666 enable_fast_install=no
13667elif test "$shlibpath_overrides_runpath" = yes ||
13668 test "$enable_shared" = no; then
13669 # Fast installation is not necessary
13670 enable_fast_install=needless
13671fi
13672
13673striplib=
13674old_striplib=
13675echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13676echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13677if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13680 echo "$as_me:$LINENO: result: yes" >&5
13681echo "${ECHO_T}yes" >&6
13682else
13683# FIXME - insert some real tests, host_os isn't really good enough
13684 case $host_os in
13685 darwin*)
13686 if test -n "$STRIP" ; then
13687 striplib="$STRIP -x"
13688 echo "$as_me:$LINENO: result: yes" >&5
13689echo "${ECHO_T}yes" >&6
13690 else
13691 echo "$as_me:$LINENO: result: no" >&5
13692echo "${ECHO_T}no" >&6
13693fi
13694 ;;
13695 *)
13696 echo "$as_me:$LINENO: result: no" >&5
13697echo "${ECHO_T}no" >&6
13698 ;;
13699 esac
13700fi
13701
John Criswell7a73b802003-06-30 21:59:07 +000013702if test "x$enable_dlopen" != xyes; then
13703 enable_dlopen=unknown
13704 enable_dlopen_self=unknown
13705 enable_dlopen_self_static=unknown
13706else
13707 lt_cv_dlopen=no
13708 lt_cv_dlopen_libs=
13709
13710 case $host_os in
13711 beos*)
13712 lt_cv_dlopen="load_add_on"
13713 lt_cv_dlopen_libs=
13714 lt_cv_dlopen_self=yes
13715 ;;
13716
John Criswell47fdd832003-07-14 16:52:07 +000013717 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013718 lt_cv_dlopen="LoadLibrary"
13719 lt_cv_dlopen_libs=
13720 ;;
13721
John Criswell47fdd832003-07-14 16:52:07 +000013722 cygwin*)
13723 lt_cv_dlopen="dlopen"
13724 lt_cv_dlopen_libs=
13725 ;;
13726
13727 darwin*)
13728 # if libdl is installed we need to link against it
13729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13730echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13731if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733else
13734 ac_check_lib_save_LIBS=$LIBS
13735LIBS="-ldl $LIBS"
13736cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013742
13743/* Override any gcc2 internal prototype to avoid an error. */
13744#ifdef __cplusplus
13745extern "C"
13746#endif
13747/* We use char because int might match the return type of a gcc2
13748 builtin and then its argument prototype would still apply. */
13749char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013750int
13751main ()
13752{
13753dlopen ();
13754 ;
13755 return 0;
13756}
13757_ACEOF
13758rm -f conftest.$ac_objext conftest$ac_exeext
13759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013760 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_lib_dl_dlopen=yes
13781else
13782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013783sed 's/^/| /' conftest.$ac_ext >&5
13784
John Criswell47fdd832003-07-14 16:52:07 +000013785ac_cv_lib_dl_dlopen=no
13786fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013787rm -f conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013789LIBS=$ac_check_lib_save_LIBS
13790fi
13791echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13792echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13793if test $ac_cv_lib_dl_dlopen = yes; then
13794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13795else
13796
13797 lt_cv_dlopen="dyld"
13798 lt_cv_dlopen_libs=
13799 lt_cv_dlopen_self=yes
13800
13801fi
13802
13803 ;;
13804
John Criswell7a73b802003-06-30 21:59:07 +000013805 *)
13806 echo "$as_me:$LINENO: checking for shl_load" >&5
13807echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13808if test "${ac_cv_func_shl_load+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013812/* confdefs.h. */
13813_ACEOF
13814cat confdefs.h >>conftest.$ac_ext
13815cat >>conftest.$ac_ext <<_ACEOF
13816/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013817/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13819#define shl_load innocuous_shl_load
13820
John Criswell7a73b802003-06-30 21:59:07 +000013821/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013822 which can conflict with char shl_load (); below.
13823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13824 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013825
John Criswell0c38eaf2003-09-10 15:17:25 +000013826#ifdef __STDC__
13827# include <limits.h>
13828#else
13829# include <assert.h>
13830#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013831
13832#undef shl_load
13833
John Criswell7a73b802003-06-30 21:59:07 +000013834/* Override any gcc2 internal prototype to avoid an error. */
13835#ifdef __cplusplus
13836extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013837{
John Criswell7a73b802003-06-30 21:59:07 +000013838#endif
13839/* We use char because int might match the return type of a gcc2
13840 builtin and then its argument prototype would still apply. */
13841char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013842/* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845#if defined (__stub_shl_load) || defined (__stub___shl_load)
13846choke me
13847#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013848char (*f) () = shl_load;
13849#endif
13850#ifdef __cplusplus
13851}
John Criswell7a73b802003-06-30 21:59:07 +000013852#endif
13853
John Criswell0c38eaf2003-09-10 15:17:25 +000013854int
13855main ()
13856{
13857return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013858 ;
13859 return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013864 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_func_shl_load=yes
13885else
13886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013887sed 's/^/| /' conftest.$ac_ext >&5
13888
John Criswell7a73b802003-06-30 21:59:07 +000013889ac_cv_func_shl_load=no
13890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891rm -f conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013893fi
13894echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13895echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13896if test $ac_cv_func_shl_load = yes; then
13897 lt_cv_dlopen="shl_load"
13898else
13899 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13900echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13901if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 ac_check_lib_save_LIBS=$LIBS
13905LIBS="-ldld $LIBS"
13906cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
13911/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013912
13913/* Override any gcc2 internal prototype to avoid an error. */
13914#ifdef __cplusplus
13915extern "C"
13916#endif
13917/* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13919char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013920int
13921main ()
13922{
13923shl_load ();
13924 ;
13925 return 0;
13926}
13927_ACEOF
13928rm -f conftest.$ac_objext conftest$ac_exeext
13929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013930 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013931 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013937 { ac_try='test -z "$ac_c_werror_flag"
13938 || test ! -s conftest.err'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_cv_lib_dld_shl_load=yes
13951else
13952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013953sed 's/^/| /' conftest.$ac_ext >&5
13954
John Criswell7a73b802003-06-30 21:59:07 +000013955ac_cv_lib_dld_shl_load=no
13956fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013957rm -f conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013959LIBS=$ac_check_lib_save_LIBS
13960fi
13961echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13962echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13963if test $ac_cv_lib_dld_shl_load = yes; then
13964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13965else
13966 echo "$as_me:$LINENO: checking for dlopen" >&5
13967echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13968if test "${ac_cv_func_dlopen+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13970else
13971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013972/* confdefs.h. */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013977/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13979#define dlopen innocuous_dlopen
13980
John Criswell7a73b802003-06-30 21:59:07 +000013981/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013982 which can conflict with char dlopen (); below.
13983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13984 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985
John Criswell0c38eaf2003-09-10 15:17:25 +000013986#ifdef __STDC__
13987# include <limits.h>
13988#else
13989# include <assert.h>
13990#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013991
13992#undef dlopen
13993
John Criswell7a73b802003-06-30 21:59:07 +000013994/* Override any gcc2 internal prototype to avoid an error. */
13995#ifdef __cplusplus
13996extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013997{
John Criswell7a73b802003-06-30 21:59:07 +000013998#endif
13999/* We use char because int might match the return type of a gcc2
14000 builtin and then its argument prototype would still apply. */
14001char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014002/* The GNU C library defines this for functions which it implements
14003 to always fail with ENOSYS. Some functions are actually named
14004 something starting with __ and the normal name is an alias. */
14005#if defined (__stub_dlopen) || defined (__stub___dlopen)
14006choke me
14007#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014008char (*f) () = dlopen;
14009#endif
14010#ifdef __cplusplus
14011}
John Criswell7a73b802003-06-30 21:59:07 +000014012#endif
14013
John Criswell0c38eaf2003-09-10 15:17:25 +000014014int
14015main ()
14016{
14017return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014018 ;
14019 return 0;
14020}
14021_ACEOF
14022rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014024 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_func_dlopen=yes
14045else
14046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014047sed 's/^/| /' conftest.$ac_ext >&5
14048
John Criswell7a73b802003-06-30 21:59:07 +000014049ac_cv_func_dlopen=no
14050fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014053fi
14054echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14055echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14056if test $ac_cv_func_dlopen = yes; then
14057 lt_cv_dlopen="dlopen"
14058else
14059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14060echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14061if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063else
14064 ac_check_lib_save_LIBS=$LIBS
14065LIBS="-ldl $LIBS"
14066cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014067/* confdefs.h. */
14068_ACEOF
14069cat confdefs.h >>conftest.$ac_ext
14070cat >>conftest.$ac_ext <<_ACEOF
14071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014072
14073/* Override any gcc2 internal prototype to avoid an error. */
14074#ifdef __cplusplus
14075extern "C"
14076#endif
14077/* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014080int
14081main ()
14082{
14083dlopen ();
14084 ;
14085 return 0;
14086}
14087_ACEOF
14088rm -f conftest.$ac_objext conftest$ac_exeext
14089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014090 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014097 { ac_try='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_lib_dl_dlopen=yes
14111else
14112 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014113sed 's/^/| /' conftest.$ac_ext >&5
14114
John Criswell7a73b802003-06-30 21:59:07 +000014115ac_cv_lib_dl_dlopen=no
14116fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014117rm -f conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014119LIBS=$ac_check_lib_save_LIBS
14120fi
14121echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14122echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14123if test $ac_cv_lib_dl_dlopen = yes; then
14124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14125else
14126 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14127echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14128if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131 ac_check_lib_save_LIBS=$LIBS
14132LIBS="-lsvld $LIBS"
14133cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014134/* confdefs.h. */
14135_ACEOF
14136cat confdefs.h >>conftest.$ac_ext
14137cat >>conftest.$ac_ext <<_ACEOF
14138/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014139
14140/* Override any gcc2 internal prototype to avoid an error. */
14141#ifdef __cplusplus
14142extern "C"
14143#endif
14144/* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14146char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014147int
14148main ()
14149{
14150dlopen ();
14151 ;
14152 return 0;
14153}
14154_ACEOF
14155rm -f conftest.$ac_objext conftest$ac_exeext
14156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014157 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_lib_svld_dlopen=yes
14178else
14179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014180sed 's/^/| /' conftest.$ac_ext >&5
14181
John Criswell7a73b802003-06-30 21:59:07 +000014182ac_cv_lib_svld_dlopen=no
14183fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014184rm -f conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014186LIBS=$ac_check_lib_save_LIBS
14187fi
14188echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14189echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14190if test $ac_cv_lib_svld_dlopen = yes; then
14191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14192else
14193 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14194echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14195if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197else
14198 ac_check_lib_save_LIBS=$LIBS
14199LIBS="-ldld $LIBS"
14200cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014201/* confdefs.h. */
14202_ACEOF
14203cat confdefs.h >>conftest.$ac_ext
14204cat >>conftest.$ac_ext <<_ACEOF
14205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014206
14207/* Override any gcc2 internal prototype to avoid an error. */
14208#ifdef __cplusplus
14209extern "C"
14210#endif
14211/* We use char because int might match the return type of a gcc2
14212 builtin and then its argument prototype would still apply. */
14213char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014214int
14215main ()
14216{
14217dld_link ();
14218 ;
14219 return 0;
14220}
14221_ACEOF
14222rm -f conftest.$ac_objext conftest$ac_exeext
14223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014224 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014225 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_lib_dld_dld_link=yes
14245else
14246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014247sed 's/^/| /' conftest.$ac_ext >&5
14248
John Criswell7a73b802003-06-30 21:59:07 +000014249ac_cv_lib_dld_dld_link=no
14250fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014251rm -f conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014253LIBS=$ac_check_lib_save_LIBS
14254fi
14255echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14256echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14257if test $ac_cv_lib_dld_dld_link = yes; then
14258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14259fi
14260
14261
14262fi
14263
14264
14265fi
14266
14267
14268fi
14269
14270
14271fi
14272
14273
14274fi
14275
14276 ;;
14277 esac
14278
14279 if test "x$lt_cv_dlopen" != xno; then
14280 enable_dlopen=yes
14281 else
14282 enable_dlopen=no
14283 fi
14284
14285 case $lt_cv_dlopen in
14286 dlopen)
14287 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014289
14290 save_LDFLAGS="$LDFLAGS"
14291 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14292
14293 save_LIBS="$LIBS"
14294 LIBS="$lt_cv_dlopen_libs $LIBS"
14295
14296 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14297echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14298if test "${lt_cv_dlopen_self+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 if test "$cross_compiling" = yes; then :
14302 lt_cv_dlopen_self=cross
14303else
John Criswell47fdd832003-07-14 16:52:07 +000014304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014305 lt_status=$lt_dlunknown
14306 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +000014307#line 14307 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014308#include "confdefs.h"
14309
14310#if HAVE_DLFCN_H
14311#include <dlfcn.h>
14312#endif
14313
14314#include <stdio.h>
14315
14316#ifdef RTLD_GLOBAL
14317# define LT_DLGLOBAL RTLD_GLOBAL
14318#else
14319# ifdef DL_GLOBAL
14320# define LT_DLGLOBAL DL_GLOBAL
14321# else
14322# define LT_DLGLOBAL 0
14323# endif
14324#endif
14325
14326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14327 find out it does not work in some platform. */
14328#ifndef LT_DLLAZY_OR_NOW
14329# ifdef RTLD_LAZY
14330# define LT_DLLAZY_OR_NOW RTLD_LAZY
14331# else
14332# ifdef DL_LAZY
14333# define LT_DLLAZY_OR_NOW DL_LAZY
14334# else
14335# ifdef RTLD_NOW
14336# define LT_DLLAZY_OR_NOW RTLD_NOW
14337# else
14338# ifdef DL_NOW
14339# define LT_DLLAZY_OR_NOW DL_NOW
14340# else
14341# define LT_DLLAZY_OR_NOW 0
14342# endif
14343# endif
14344# endif
14345# endif
14346#endif
14347
14348#ifdef __cplusplus
14349extern "C" void exit (int);
14350#endif
14351
14352void fnord() { int i=42;}
14353int main ()
14354{
14355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14356 int status = $lt_dlunknown;
14357
14358 if (self)
14359 {
14360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14362 /* dlclose (self); */
14363 }
14364
14365 exit (status);
14366}
14367EOF
14368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369 (eval $ac_link) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14373 (./conftest; exit; ) 2>/dev/null
14374 lt_status=$?
14375 case x$lt_status in
14376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14378 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14379 esac
14380 else :
14381 # compilation failed
14382 lt_cv_dlopen_self=no
14383 fi
14384fi
14385rm -fr conftest*
14386
14387
14388fi
14389echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14390echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14391
14392 if test "x$lt_cv_dlopen_self" = xyes; then
14393 LDFLAGS="$LDFLAGS $link_static_flag"
14394 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14395echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14396if test "${lt_cv_dlopen_self_static+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 if test "$cross_compiling" = yes; then :
14400 lt_cv_dlopen_self_static=cross
14401else
John Criswell47fdd832003-07-14 16:52:07 +000014402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014403 lt_status=$lt_dlunknown
14404 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +000014405#line 14405 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014406#include "confdefs.h"
14407
14408#if HAVE_DLFCN_H
14409#include <dlfcn.h>
14410#endif
14411
14412#include <stdio.h>
14413
14414#ifdef RTLD_GLOBAL
14415# define LT_DLGLOBAL RTLD_GLOBAL
14416#else
14417# ifdef DL_GLOBAL
14418# define LT_DLGLOBAL DL_GLOBAL
14419# else
14420# define LT_DLGLOBAL 0
14421# endif
14422#endif
14423
14424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14425 find out it does not work in some platform. */
14426#ifndef LT_DLLAZY_OR_NOW
14427# ifdef RTLD_LAZY
14428# define LT_DLLAZY_OR_NOW RTLD_LAZY
14429# else
14430# ifdef DL_LAZY
14431# define LT_DLLAZY_OR_NOW DL_LAZY
14432# else
14433# ifdef RTLD_NOW
14434# define LT_DLLAZY_OR_NOW RTLD_NOW
14435# else
14436# ifdef DL_NOW
14437# define LT_DLLAZY_OR_NOW DL_NOW
14438# else
14439# define LT_DLLAZY_OR_NOW 0
14440# endif
14441# endif
14442# endif
14443# endif
14444#endif
14445
14446#ifdef __cplusplus
14447extern "C" void exit (int);
14448#endif
14449
14450void fnord() { int i=42;}
14451int main ()
14452{
14453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14454 int status = $lt_dlunknown;
14455
14456 if (self)
14457 {
14458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14460 /* dlclose (self); */
14461 }
14462
14463 exit (status);
14464}
14465EOF
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14471 (./conftest; exit; ) 2>/dev/null
14472 lt_status=$?
14473 case x$lt_status in
14474 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14475 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14476 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14477 esac
14478 else :
14479 # compilation failed
14480 lt_cv_dlopen_self_static=no
14481 fi
14482fi
14483rm -fr conftest*
14484
14485
14486fi
14487echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14488echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14489 fi
14490
14491 CPPFLAGS="$save_CPPFLAGS"
14492 LDFLAGS="$save_LDFLAGS"
14493 LIBS="$save_LIBS"
14494 ;;
14495 esac
14496
14497 case $lt_cv_dlopen_self in
14498 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14499 *) enable_dlopen_self=unknown ;;
14500 esac
14501
14502 case $lt_cv_dlopen_self_static in
14503 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14504 *) enable_dlopen_self_static=unknown ;;
14505 esac
14506fi
14507
14508
John Criswell47fdd832003-07-14 16:52:07 +000014509# Report which librarie types wil actually be built
14510echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14511echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14512echo "$as_me:$LINENO: result: $can_build_shared" >&5
14513echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014514
John Criswell47fdd832003-07-14 16:52:07 +000014515echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14516echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14517test "$can_build_shared" = "no" && enable_shared=no
14518
14519# On AIX, shared libraries and static libraries use the same namespace, and
14520# are all built from PIC.
14521case "$host_os" in
14522aix3*)
14523 test "$enable_shared" = yes && enable_static=no
14524 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014526 postinstall_cmds='$RANLIB $lib'
14527 fi
14528 ;;
14529
Reid Spencer2706f8c2004-09-19 23:53:36 +000014530aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14532 test "$enable_shared" = yes && enable_static=no
14533 fi
John Criswell7a73b802003-06-30 21:59:07 +000014534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014535esac
14536echo "$as_me:$LINENO: result: $enable_shared" >&5
14537echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014538
John Criswell47fdd832003-07-14 16:52:07 +000014539echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14540echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14541# Make sure either enable_shared or enable_static is yes.
14542test "$enable_shared" = yes || enable_static=yes
14543echo "$as_me:$LINENO: result: $enable_static" >&5
14544echo "${ECHO_T}$enable_static" >&6
14545
14546# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014547# libtool distribution, otherwise you forgot to ship ltmain.sh
14548# with your package, and you will get complaints that there are
14549# no rules to generate ltmain.sh.
14550if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014551 # See if we are running on zsh, and set the options which allow our commands through
14552 # without removal of \ escapes.
14553 if test -n "${ZSH_VERSION+set}" ; then
14554 setopt NO_GLOB_SUBST
14555 fi
John Criswell7a73b802003-06-30 21:59:07 +000014556 # Now quote all the things that may contain metacharacters while being
14557 # careful not to overquote the AC_SUBSTed values. We take copies of the
14558 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014559 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14560 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014561 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14562 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14563 deplibs_check_method reload_flag reload_cmds need_locks \
14564 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14565 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014566 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014567 old_postinstall_cmds old_postuninstall_cmds \
14568 compiler \
14569 CC \
14570 LD \
14571 lt_prog_compiler_wl \
14572 lt_prog_compiler_pic \
14573 lt_prog_compiler_static \
14574 lt_prog_compiler_no_builtin_flag \
14575 export_dynamic_flag_spec \
14576 thread_safe_flag_spec \
14577 whole_archive_flag_spec \
14578 enable_shared_with_static_runtimes \
14579 old_archive_cmds \
14580 old_archive_from_new_cmds \
14581 predep_objects \
14582 postdep_objects \
14583 predeps \
14584 postdeps \
14585 compiler_lib_search_path \
14586 archive_cmds \
14587 archive_expsym_cmds \
14588 postinstall_cmds \
14589 postuninstall_cmds \
14590 old_archive_from_expsyms_cmds \
14591 allow_undefined_flag \
14592 no_undefined_flag \
14593 export_symbols_cmds \
14594 hardcode_libdir_flag_spec \
14595 hardcode_libdir_flag_spec_ld \
14596 hardcode_libdir_separator \
14597 hardcode_automatic \
14598 module_cmds \
14599 module_expsym_cmds \
14600 lt_cv_prog_compiler_c_o \
14601 exclude_expsyms \
14602 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014603
14604 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014605 old_archive_cmds | \
14606 old_archive_from_new_cmds | \
14607 archive_cmds | \
14608 archive_expsym_cmds | \
14609 module_cmds | \
14610 module_expsym_cmds | \
14611 old_archive_from_expsyms_cmds | \
14612 export_symbols_cmds | \
14613 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014614 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014615 old_postinstall_cmds | old_postuninstall_cmds | \
14616 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014617 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014618 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 +000014619 ;;
14620 *)
14621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14622 ;;
14623 esac
14624 done
14625
John Criswell47fdd832003-07-14 16:52:07 +000014626 case $lt_echo in
14627 *'\$0 --fallback-echo"')
14628 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14629 ;;
14630 esac
14631
14632cfgfile="${ofile}T"
14633 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14634 $rm -f "$cfgfile"
14635 { echo "$as_me:$LINENO: creating $ofile" >&5
14636echo "$as_me: creating $ofile" >&6;}
14637
14638 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014639#! $SHELL
14640
John Criswell47fdd832003-07-14 16:52:07 +000014641# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014642# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14643# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14644#
John Criswell47fdd832003-07-14 16:52:07 +000014645# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14646# Free Software Foundation, Inc.
14647#
14648# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014649# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14650#
14651# This program is free software; you can redistribute it and/or modify
14652# it under the terms of the GNU General Public License as published by
14653# the Free Software Foundation; either version 2 of the License, or
14654# (at your option) any later version.
14655#
14656# This program is distributed in the hope that it will be useful, but
14657# WITHOUT ANY WARRANTY; without even the implied warranty of
14658# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14659# General Public License for more details.
14660#
14661# You should have received a copy of the GNU General Public License
14662# along with this program; if not, write to the Free Software
14663# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14664#
14665# As a special exception to the GNU General Public License, if you
14666# distribute this file as part of a program that contains a
14667# configuration script generated by Autoconf, you may include it under
14668# the same distribution terms that you use for the rest of that program.
14669
John Criswell47fdd832003-07-14 16:52:07 +000014670# A sed program that does not truncate output.
14671SED=$lt_SED
14672
John Criswell7a73b802003-06-30 21:59:07 +000014673# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014674Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014675
14676# The HP-UX ksh and POSIX shell print the target directory to stdout
14677# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014678(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014679
John Criswell47fdd832003-07-14 16:52:07 +000014680# The names of the tagged configurations supported by this script.
14681available_tags=
14682
John Criswell7a73b802003-06-30 21:59:07 +000014683# ### BEGIN LIBTOOL CONFIG
14684
14685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14686
14687# Shell to use when invoking shell scripts.
14688SHELL=$lt_SHELL
14689
14690# Whether or not to build shared libraries.
14691build_libtool_libs=$enable_shared
14692
14693# Whether or not to build static libraries.
14694build_old_libs=$enable_static
14695
14696# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014697build_libtool_need_lc=$archive_cmds_need_lc
14698
14699# Whether or not to disallow shared libs when runtime libs are static
14700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014701
14702# Whether or not to optimize for fast installation.
14703fast_install=$enable_fast_install
14704
14705# The host system.
14706host_alias=$host_alias
14707host=$host
14708
14709# An echo program that does not interpret backslashes.
14710echo=$lt_echo
14711
14712# The archiver.
14713AR=$lt_AR
14714AR_FLAGS=$lt_AR_FLAGS
14715
John Criswell47fdd832003-07-14 16:52:07 +000014716# A C compiler.
14717LTCC=$lt_LTCC
14718
14719# A language-specific compiler.
14720CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014721
14722# Is the compiler the GNU C compiler?
14723with_gcc=$GCC
14724
John Criswell47fdd832003-07-14 16:52:07 +000014725# An ERE matcher.
14726EGREP=$lt_EGREP
14727
John Criswell7a73b802003-06-30 21:59:07 +000014728# The linker used to build libraries.
14729LD=$lt_LD
14730
14731# Whether we need hard or soft links.
14732LN_S=$lt_LN_S
14733
14734# A BSD-compatible nm program.
14735NM=$lt_NM
14736
14737# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014738STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014739
14740# Used to examine libraries when file_magic_cmd begins "file"
14741MAGIC_CMD=$MAGIC_CMD
14742
14743# Used on cygwin: DLL creation program.
14744DLLTOOL="$DLLTOOL"
14745
14746# Used on cygwin: object dumper.
14747OBJDUMP="$OBJDUMP"
14748
14749# Used on cygwin: assembler.
14750AS="$AS"
14751
14752# The name of the directory that contains temporary libtool files.
14753objdir=$objdir
14754
14755# How to create reloadable object files.
14756reload_flag=$lt_reload_flag
14757reload_cmds=$lt_reload_cmds
14758
14759# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014760wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014761
14762# Object file suffix (normally "o").
14763objext="$ac_objext"
14764
14765# Old archive suffix (normally "a").
14766libext="$libext"
14767
John Criswell47fdd832003-07-14 16:52:07 +000014768# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014769shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014770
John Criswell7a73b802003-06-30 21:59:07 +000014771# Executable file suffix (normally "").
14772exeext="$exeext"
14773
14774# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014775pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014776pic_mode=$pic_mode
14777
John Criswell47fdd832003-07-14 16:52:07 +000014778# What is the maximum length of a command?
14779max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014780
John Criswell47fdd832003-07-14 16:52:07 +000014781# Does compiler simultaneously support -c and -o options?
14782compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014783
14784# Must we lock files when doing compilation ?
14785need_locks=$lt_need_locks
14786
14787# Do we need the lib prefix for modules?
14788need_lib_prefix=$need_lib_prefix
14789
14790# Do we need a version for libraries?
14791need_version=$need_version
14792
14793# Whether dlopen is supported.
14794dlopen_support=$enable_dlopen
14795
14796# Whether dlopen of programs is supported.
14797dlopen_self=$enable_dlopen_self
14798
14799# Whether dlopen of statically linked programs is supported.
14800dlopen_self_static=$enable_dlopen_self_static
14801
14802# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014803link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014804
14805# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014807
14808# Compiler flag to allow reflexive dlopens.
14809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14810
14811# Compiler flag to generate shared objects directly from archives.
14812whole_archive_flag_spec=$lt_whole_archive_flag_spec
14813
14814# Compiler flag to generate thread-safe objects.
14815thread_safe_flag_spec=$lt_thread_safe_flag_spec
14816
14817# Library versioning type.
14818version_type=$version_type
14819
14820# Format of library name prefix.
14821libname_spec=$lt_libname_spec
14822
14823# List of archive names. First name is the real one, the rest are links.
14824# The last name is the one that the linker finds with -lNAME.
14825library_names_spec=$lt_library_names_spec
14826
14827# The coded name of the library, if different from the real name.
14828soname_spec=$lt_soname_spec
14829
14830# Commands used to build and install an old-style archive.
14831RANLIB=$lt_RANLIB
14832old_archive_cmds=$lt_old_archive_cmds
14833old_postinstall_cmds=$lt_old_postinstall_cmds
14834old_postuninstall_cmds=$lt_old_postuninstall_cmds
14835
14836# Create an old-style archive from a shared archive.
14837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14838
14839# Create a temporary old-style archive to link instead of a shared archive.
14840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14841
14842# Commands used to build and install a shared archive.
14843archive_cmds=$lt_archive_cmds
14844archive_expsym_cmds=$lt_archive_expsym_cmds
14845postinstall_cmds=$lt_postinstall_cmds
14846postuninstall_cmds=$lt_postuninstall_cmds
14847
John Criswell47fdd832003-07-14 16:52:07 +000014848# Commands used to build a loadable module (assumed same as above if empty)
14849module_cmds=$lt_module_cmds
14850module_expsym_cmds=$lt_module_expsym_cmds
14851
John Criswell7a73b802003-06-30 21:59:07 +000014852# Commands to strip libraries.
14853old_striplib=$lt_old_striplib
14854striplib=$lt_striplib
14855
John Criswell47fdd832003-07-14 16:52:07 +000014856# Dependencies to place before the objects being linked to create a
14857# shared library.
14858predep_objects=$lt_predep_objects
14859
14860# Dependencies to place after the objects being linked to create a
14861# shared library.
14862postdep_objects=$lt_postdep_objects
14863
14864# Dependencies to place before the objects being linked to create a
14865# shared library.
14866predeps=$lt_predeps
14867
14868# Dependencies to place after the objects being linked to create a
14869# shared library.
14870postdeps=$lt_postdeps
14871
14872# The library search path used internally by the compiler when linking
14873# a shared library.
14874compiler_lib_search_path=$lt_compiler_lib_search_path
14875
John Criswell7a73b802003-06-30 21:59:07 +000014876# Method to check whether dependent libraries are shared objects.
14877deplibs_check_method=$lt_deplibs_check_method
14878
14879# Command to use when deplibs_check_method == file_magic.
14880file_magic_cmd=$lt_file_magic_cmd
14881
14882# Flag that allows shared libraries with undefined symbols to be built.
14883allow_undefined_flag=$lt_allow_undefined_flag
14884
14885# Flag that forces no undefined symbols.
14886no_undefined_flag=$lt_no_undefined_flag
14887
14888# Commands used to finish a libtool library installation in a directory.
14889finish_cmds=$lt_finish_cmds
14890
14891# Same as above, but a single script fragment to be evaled but not shown.
14892finish_eval=$lt_finish_eval
14893
14894# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014896
14897# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014899
14900# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014902
14903# This is the shared library runtime path variable.
14904runpath_var=$runpath_var
14905
14906# This is the shared library path variable.
14907shlibpath_var=$shlibpath_var
14908
14909# Is shlibpath searched before the hard-coded library search path?
14910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14911
14912# How to hardcode a shared library path into an executable.
14913hardcode_action=$hardcode_action
14914
14915# Whether we should hardcode library paths into libraries.
14916hardcode_into_libs=$hardcode_into_libs
14917
14918# Flag to hardcode \$libdir into a binary during linking.
14919# This must work even if \$libdir does not exist.
14920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14921
John Criswell47fdd832003-07-14 16:52:07 +000014922# If ld is used when linking, flag to hardcode \$libdir into
14923# a binary during linking. This must work even if \$libdir does
14924# not exist.
14925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14926
John Criswell7a73b802003-06-30 21:59:07 +000014927# Whether we need a single -rpath flag with a separated argument.
14928hardcode_libdir_separator=$lt_hardcode_libdir_separator
14929
John Criswell47fdd832003-07-14 16:52:07 +000014930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014931# resulting binary.
14932hardcode_direct=$hardcode_direct
14933
14934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14935# resulting binary.
14936hardcode_minus_L=$hardcode_minus_L
14937
14938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14939# the resulting binary.
14940hardcode_shlibpath_var=$hardcode_shlibpath_var
14941
John Criswell47fdd832003-07-14 16:52:07 +000014942# Set to yes if building a shared library automatically hardcodes DIR into the library
14943# and all subsequent libraries and executables linked against it.
14944hardcode_automatic=$hardcode_automatic
14945
John Criswell7a73b802003-06-30 21:59:07 +000014946# Variables whose values should be saved in libtool wrapper scripts and
14947# restored at relink time.
14948variables_saved_for_relink="$variables_saved_for_relink"
14949
14950# Whether libtool must link a program against all its dependency libraries.
14951link_all_deplibs=$link_all_deplibs
14952
14953# Compile-time system search path for libraries
14954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14955
14956# Run-time system search path for libraries
14957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14958
14959# Fix the shell variable \$srcfile for the compiler.
14960fix_srcfile_path="$fix_srcfile_path"
14961
14962# Set to yes if exported symbols are required.
14963always_export_symbols=$always_export_symbols
14964
14965# The commands to list exported symbols.
14966export_symbols_cmds=$lt_export_symbols_cmds
14967
14968# The commands to extract the exported symbol list from a shared archive.
14969extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970
14971# Symbols that should not be listed in the preloaded symbols.
14972exclude_expsyms=$lt_exclude_expsyms
14973
14974# Symbols that must always be exported.
14975include_expsyms=$lt_include_expsyms
14976
14977# ### END LIBTOOL CONFIG
14978
14979__EOF__
14980
John Criswell47fdd832003-07-14 16:52:07 +000014981
John Criswell7a73b802003-06-30 21:59:07 +000014982 case $host_os in
14983 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014984 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014985
14986# AIX sometimes has problems with the GCC collect2 program. For some
14987# reason, if we set the COLLECT_NAMES environment variable, the problems
14988# vanish in a puff of smoke.
14989if test "X${COLLECT_NAMES+set}" != Xset; then
14990 COLLECT_NAMES=
14991 export COLLECT_NAMES
14992fi
14993EOF
14994 ;;
14995 esac
14996
John Criswell7a73b802003-06-30 21:59:07 +000014997 # We use sed instead of cat because bash on DJGPP gets confused if
14998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14999 # text mode, it properly converts lines to CR/LF. This bash problem
15000 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015001 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015002
John Criswell47fdd832003-07-14 16:52:07 +000015003 mv -f "$cfgfile" "$ofile" || \
15004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015005 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015006
15007else
15008 # If there is no Makefile yet, we rely on a make rule to execute
15009 # `config.status --recheck' to rerun these tests and create the
15010 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15012 if test -f "$ltmain_in"; then
15013 test -f Makefile && make "$ltmain"
15014 fi
John Criswell7a73b802003-06-30 21:59:07 +000015015fi
John Criswell7a73b802003-06-30 21:59:07 +000015016
15017
John Criswell47fdd832003-07-14 16:52:07 +000015018ac_ext=c
15019ac_cpp='$CPP $CPPFLAGS'
15020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022ac_compiler_gnu=$ac_cv_c_compiler_gnu
15023
15024CC="$lt_save_CC"
15025
15026
15027# Check whether --with-tags or --without-tags was given.
15028if test "${with_tags+set}" = set; then
15029 withval="$with_tags"
15030 tagnames="$withval"
15031fi;
15032
15033if test -f "$ltmain" && test -n "$tagnames"; then
15034 if test ! -f "${ofile}"; then
15035 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15036echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15037 fi
15038
15039 if test -z "$LTCC"; then
15040 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15041 if test -z "$LTCC"; then
15042 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15043echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15044 else
15045 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15046echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15047 fi
15048 fi
15049
15050 # Extract list of available tagged configurations in $ofile.
15051 # Note that this assumes the entire list is on one line.
15052 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15053
15054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15055 for tagname in $tagnames; do
15056 IFS="$lt_save_ifs"
15057 # Check whether tagname contains only valid characters
15058 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15059 "") ;;
15060 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15061echo "$as_me: error: invalid tag name: $tagname" >&2;}
15062 { (exit 1); exit 1; }; }
15063 ;;
15064 esac
15065
15066 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15067 then
15068 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15069echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15070 { (exit 1); exit 1; }; }
15071 fi
15072
15073 # Update the list of available tags.
15074 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015075 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015076
15077 case $tagname in
15078 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015079 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15080 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15081 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015082 ac_ext=cc
15083ac_cpp='$CXXCPP $CPPFLAGS'
15084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15087
15088
15089
15090
15091archive_cmds_need_lc_CXX=no
15092allow_undefined_flag_CXX=
15093always_export_symbols_CXX=no
15094archive_expsym_cmds_CXX=
15095export_dynamic_flag_spec_CXX=
15096hardcode_direct_CXX=no
15097hardcode_libdir_flag_spec_CXX=
15098hardcode_libdir_flag_spec_ld_CXX=
15099hardcode_libdir_separator_CXX=
15100hardcode_minus_L_CXX=no
15101hardcode_automatic_CXX=no
15102module_cmds_CXX=
15103module_expsym_cmds_CXX=
15104link_all_deplibs_CXX=unknown
15105old_archive_cmds_CXX=$old_archive_cmds
15106no_undefined_flag_CXX=
15107whole_archive_flag_spec_CXX=
15108enable_shared_with_static_runtimes_CXX=no
15109
15110# Dependencies to place before and after the object being linked:
15111predep_objects_CXX=
15112postdep_objects_CXX=
15113predeps_CXX=
15114postdeps_CXX=
15115compiler_lib_search_path_CXX=
15116
15117# Source file extension for C++ test sources.
15118ac_ext=cc
15119
15120# Object file extension for compiled C++ test sources.
15121objext=o
15122objext_CXX=$objext
15123
15124# Code to be used in simple compile tests
15125lt_simple_compile_test_code="int some_variable = 0;\n"
15126
15127# Code to be used in simple link tests
15128lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15129
15130# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15131
15132# If no C compiler was specified, use CC.
15133LTCC=${LTCC-"$CC"}
15134
15135# Allow CC to be a program name with arguments.
15136compiler=$CC
15137
15138
15139# Allow CC to be a program name with arguments.
15140lt_save_CC=$CC
15141lt_save_LD=$LD
15142lt_save_GCC=$GCC
15143GCC=$GXX
15144lt_save_with_gnu_ld=$with_gnu_ld
15145lt_save_path_LD=$lt_cv_path_LD
15146if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15147 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15148else
15149 unset lt_cv_prog_gnu_ld
15150fi
15151if test -n "${lt_cv_path_LDCXX+set}"; then
15152 lt_cv_path_LD=$lt_cv_path_LDCXX
15153else
15154 unset lt_cv_path_LD
15155fi
15156test -z "${LDCXX+set}" || LD=$LDCXX
15157CC=${CXX-"c++"}
15158compiler=$CC
15159compiler_CXX=$CC
15160cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15161
15162# We don't want -fno-exception wen compiling C++ code, so set the
15163# no_builtin_flag separately
15164if test "$GXX" = yes; then
15165 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15166else
15167 lt_prog_compiler_no_builtin_flag_CXX=
15168fi
15169
15170if test "$GXX" = yes; then
15171 # Set up default GNU C++ configuration
15172
15173
15174# Check whether --with-gnu-ld or --without-gnu-ld was given.
15175if test "${with_gnu_ld+set}" = set; then
15176 withval="$with_gnu_ld"
15177 test "$withval" = no || with_gnu_ld=yes
15178else
15179 with_gnu_ld=no
15180fi;
15181ac_prog=ld
15182if test "$GCC" = yes; then
15183 # Check if gcc -print-prog-name=ld gives a path.
15184 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15185echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15186 case $host in
15187 *-*-mingw*)
15188 # gcc leaves a trailing carriage return which upsets mingw
15189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15190 *)
15191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15192 esac
15193 case $ac_prog in
15194 # Accept absolute paths.
15195 [\\/]* | ?:[\\/]*)
15196 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015197 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015198 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15200 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15201 done
15202 test -z "$LD" && LD="$ac_prog"
15203 ;;
15204 "")
15205 # If it fails, then pretend we aren't using GCC.
15206 ac_prog=ld
15207 ;;
15208 *)
15209 # If it is relative, then search for the first ld in PATH.
15210 with_gnu_ld=unknown
15211 ;;
15212 esac
15213elif test "$with_gnu_ld" = yes; then
15214 echo "$as_me:$LINENO: checking for GNU ld" >&5
15215echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15216else
15217 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15218echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15219fi
15220if test "${lt_cv_path_LD+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222else
15223 if test -z "$LD"; then
15224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15225 for ac_dir in $PATH; do
15226 IFS="$lt_save_ifs"
15227 test -z "$ac_dir" && ac_dir=.
15228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15229 lt_cv_path_LD="$ac_dir/$ac_prog"
15230 # Check to see if the program is GNU ld. I'd rather use --version,
15231 # but apparently some GNU ld's only accept -v.
15232 # Break only if it was the GNU/non-GNU ld that we prefer.
15233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15234 *GNU* | *'with BFD'*)
15235 test "$with_gnu_ld" != no && break
15236 ;;
15237 *)
15238 test "$with_gnu_ld" != yes && break
15239 ;;
15240 esac
15241 fi
15242 done
15243 IFS="$lt_save_ifs"
15244else
15245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15246fi
15247fi
15248
15249LD="$lt_cv_path_LD"
15250if test -n "$LD"; then
15251 echo "$as_me:$LINENO: result: $LD" >&5
15252echo "${ECHO_T}$LD" >&6
15253else
15254 echo "$as_me:$LINENO: result: no" >&5
15255echo "${ECHO_T}no" >&6
15256fi
15257test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15258echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15259 { (exit 1); exit 1; }; }
15260echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15261echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15262if test "${lt_cv_prog_gnu_ld+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264else
15265 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015266case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015267*GNU* | *'with BFD'*)
15268 lt_cv_prog_gnu_ld=yes
15269 ;;
15270*)
15271 lt_cv_prog_gnu_ld=no
15272 ;;
15273esac
15274fi
15275echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15276echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15277with_gnu_ld=$lt_cv_prog_gnu_ld
15278
15279
15280
15281 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15282 # archiving commands below assume that GNU ld is being used.
15283 if test "$with_gnu_ld" = yes; then
15284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285 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'
15286
15287 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15288 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15289
15290 # If archive_cmds runs LD, not CC, wlarc should be empty
15291 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15292 # investigate it a little bit more. (MM)
15293 wlarc='${wl}'
15294
15295 # ancient GNU ld didn't support --whole-archive et. al.
15296 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15297 grep 'no-whole-archive' > /dev/null; then
15298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15299 else
15300 whole_archive_flag_spec_CXX=
15301 fi
15302 else
15303 with_gnu_ld=no
15304 wlarc=
15305
15306 # A generic and very simple default shared library creation
15307 # command for GNU C++ for the case where it uses the native
15308 # linker, instead of GNU ld. If possible, this setting should
15309 # overridden to take advantage of the native linker features on
15310 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015311 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015312 fi
15313
15314 # Commands to make compiler produce verbose output that lists
15315 # what "hidden" libraries, object files and flags are used when
15316 # linking a shared library.
15317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15318
15319else
15320 GXX=no
15321 with_gnu_ld=no
15322 wlarc=
15323fi
15324
15325# PORTME: fill in a description of your system's C++ link characteristics
15326echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15327echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15328ld_shlibs_CXX=yes
15329case $host_os in
15330 aix3*)
15331 # FIXME: insert proper C++ library support
15332 ld_shlibs_CXX=no
15333 ;;
15334 aix4* | aix5*)
15335 if test "$host_cpu" = ia64; then
15336 # On IA64, the linker does run time linking by default, so we don't
15337 # have to do anything special.
15338 aix_use_runtimelinking=no
15339 exp_sym_flag='-Bexport'
15340 no_entry_flag=""
15341 else
15342 aix_use_runtimelinking=no
15343
15344 # Test if we are trying to use run time linking or normal
15345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15346 # need to do runtime linking.
15347 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15348 for ld_flag in $LDFLAGS; do
15349 case $ld_flag in
15350 *-brtl*)
15351 aix_use_runtimelinking=yes
15352 break
15353 ;;
15354 esac
15355 done
15356 esac
15357
15358 exp_sym_flag='-bexport'
15359 no_entry_flag='-bnoentry'
15360 fi
15361
15362 # When large executables or shared objects are built, AIX ld can
15363 # have problems creating the table of contents. If linking a library
15364 # or program results in "error TOC overflow" add -mminimal-toc to
15365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15367
15368 archive_cmds_CXX=''
15369 hardcode_direct_CXX=yes
15370 hardcode_libdir_separator_CXX=':'
15371 link_all_deplibs_CXX=yes
15372
15373 if test "$GXX" = yes; then
15374 case $host_os in aix4.012|aix4.012.*)
15375 # We only want to do this on AIX 4.2 and lower, the check
15376 # below for broken collect2 doesn't work under 4.3+
15377 collect2name=`${CC} -print-prog-name=collect2`
15378 if test -f "$collect2name" && \
15379 strings "$collect2name" | grep resolve_lib_name >/dev/null
15380 then
15381 # We have reworked collect2
15382 hardcode_direct_CXX=yes
15383 else
15384 # We have old collect2
15385 hardcode_direct_CXX=unsupported
15386 # It fails to find uninstalled libraries when the uninstalled
15387 # path is not listed in the libpath. Setting hardcode_minus_L
15388 # to unsupported forces relinking
15389 hardcode_minus_L_CXX=yes
15390 hardcode_libdir_flag_spec_CXX='-L$libdir'
15391 hardcode_libdir_separator_CXX=
15392 fi
15393 esac
15394 shared_flag='-shared'
15395 else
15396 # not using gcc
15397 if test "$host_cpu" = ia64; then
15398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15399 # chokes on -Wl,-G. The following line is correct:
15400 shared_flag='-G'
15401 else
15402 if test "$aix_use_runtimelinking" = yes; then
15403 shared_flag='${wl}-G'
15404 else
15405 shared_flag='${wl}-bM:SRE'
15406 fi
15407 fi
15408 fi
15409
15410 # It seems that -bexpall does not export symbols beginning with
15411 # underscore (_), so it is better to generate a list of symbols to export.
15412 always_export_symbols_CXX=yes
15413 if test "$aix_use_runtimelinking" = yes; then
15414 # Warning - without using the other runtime loading flags (-brtl),
15415 # -berok will link without error, but may produce a broken library.
15416 allow_undefined_flag_CXX='-berok'
15417 # Determine the default libpath from the value encoded in an empty executable.
15418 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015424
John Criswell47fdd832003-07-14 16:52:07 +000015425int
15426main ()
15427{
15428
15429 ;
15430 return 0;
15431}
15432_ACEOF
15433rm -f conftest.$ac_objext conftest$ac_exeext
15434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015442 { ac_try='test -z "$ac_cxx_werror_flag"
15443 || test ! -s conftest.err'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455
15456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15457}'`
15458# Check for a 64-bit object if we didn't find anything.
15459if 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; }
15460}'`; fi
15461else
15462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015463sed 's/^/| /' conftest.$ac_ext >&5
15464
John Criswell47fdd832003-07-14 16:52:07 +000015465fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015466rm -f conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469
15470 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15471
15472 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"
15473 else
15474 if test "$host_cpu" = ia64; then
15475 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15476 allow_undefined_flag_CXX="-z nodefs"
15477 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"
15478 else
15479 # Determine the default libpath from the value encoded in an empty executable.
15480 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015486
John Criswell47fdd832003-07-14 16:52:07 +000015487int
15488main ()
15489{
15490
15491 ;
15492 return 0;
15493}
15494_ACEOF
15495rm -f conftest.$ac_objext conftest$ac_exeext
15496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015497 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015504 { ac_try='test -z "$ac_cxx_werror_flag"
15505 || test ! -s conftest.err'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517
15518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15519}'`
15520# Check for a 64-bit object if we didn't find anything.
15521if 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; }
15522}'`; fi
15523else
15524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015525sed 's/^/| /' conftest.$ac_ext >&5
15526
John Criswell47fdd832003-07-14 16:52:07 +000015527fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015528rm -f conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015530if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15531
15532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15533 # Warning - without using the other run time loading flags,
15534 # -berok will link without error, but may produce a broken library.
15535 no_undefined_flag_CXX=' ${wl}-bernotok'
15536 allow_undefined_flag_CXX=' ${wl}-berok'
15537 # -bexpall does not export symbols beginning with underscore (_)
15538 always_export_symbols_CXX=yes
15539 # Exported symbols can be pulled into shared objects from archives
15540 whole_archive_flag_spec_CXX=' '
15541 archive_cmds_need_lc_CXX=yes
15542 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015543 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 +000015544 fi
15545 fi
15546 ;;
15547 chorus*)
15548 case $cc_basename in
15549 *)
15550 # FIXME: insert proper C++ library support
15551 ld_shlibs_CXX=no
15552 ;;
15553 esac
15554 ;;
15555
Reid Spencer2706f8c2004-09-19 23:53:36 +000015556
John Criswell47fdd832003-07-14 16:52:07 +000015557 cygwin* | mingw* | pw32*)
15558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15559 # as there is no search path for DLLs.
15560 hardcode_libdir_flag_spec_CXX='-L$libdir'
15561 allow_undefined_flag_CXX=unsupported
15562 always_export_symbols_CXX=no
15563 enable_shared_with_static_runtimes_CXX=yes
15564
15565 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15566 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'
15567 # If the export-symbols file already is a .def file (1st line
15568 # is EXPORTS), use it as is; otherwise, prepend...
15569 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15570 cp $export_symbols $output_objdir/$soname.def;
15571 else
15572 echo EXPORTS > $output_objdir/$soname.def;
15573 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015574 fi~
15575 $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 +000015576 else
15577 ld_shlibs_CXX=no
15578 fi
15579 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015580 darwin* | rhapsody*)
15581 case "$host_os" in
15582 rhapsody* | darwin1.[012])
15583 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15584 ;;
15585 *) # Darwin 1.3 on
15586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15587 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15588 else
15589 case ${MACOSX_DEPLOYMENT_TARGET} in
15590 10.[012])
15591 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15592 ;;
15593 10.*)
15594 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15595 ;;
15596 esac
15597 fi
15598 ;;
15599 esac
15600 archive_cmds_need_lc_CXX=no
15601 hardcode_direct_CXX=no
15602 hardcode_automatic_CXX=yes
15603 hardcode_shlibpath_var_CXX=unsupported
15604 whole_archive_flag_spec_CXX=''
15605 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015606
Reid Spencer2706f8c2004-09-19 23:53:36 +000015607 if test "$GXX" = yes ; then
15608 lt_int_apple_cc_single_mod=no
15609 output_verbose_link_cmd='echo'
15610 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15611 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015612 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015614 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 +000015615 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015616 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 +000015617 fi
15618 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15620 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015621 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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 +000015622 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015623 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 +000015624 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015625 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 +000015626 else
15627 case "$cc_basename" in
15628 xlc*)
15629 output_verbose_link_cmd='echo'
15630 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'
15631 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15632 # 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 +000015633 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}'
15634 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 +000015635 ;;
15636 *)
15637 ld_shlibs_CXX=no
15638 ;;
15639 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015640 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015641 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015642
15643 dgux*)
15644 case $cc_basename in
15645 ec++)
15646 # FIXME: insert proper C++ library support
15647 ld_shlibs_CXX=no
15648 ;;
15649 ghcx)
15650 # Green Hills C++ Compiler
15651 # FIXME: insert proper C++ library support
15652 ld_shlibs_CXX=no
15653 ;;
15654 *)
15655 # FIXME: insert proper C++ library support
15656 ld_shlibs_CXX=no
15657 ;;
15658 esac
15659 ;;
15660 freebsd12*)
15661 # C++ shared libraries reported to be fairly broken before switch to ELF
15662 ld_shlibs_CXX=no
15663 ;;
15664 freebsd-elf*)
15665 archive_cmds_need_lc_CXX=no
15666 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015667 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015668 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15669 # conventions
15670 ld_shlibs_CXX=yes
15671 ;;
15672 gnu*)
15673 ;;
15674 hpux9*)
15675 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15676 hardcode_libdir_separator_CXX=:
15677 export_dynamic_flag_spec_CXX='${wl}-E'
15678 hardcode_direct_CXX=yes
15679 hardcode_minus_L_CXX=yes # Not in the search PATH,
15680 # but as the default
15681 # location of the library.
15682
15683 case $cc_basename in
15684 CC)
15685 # FIXME: insert proper C++ library support
15686 ld_shlibs_CXX=no
15687 ;;
15688 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015689 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 +000015690 # Commands to make compiler produce verbose output that lists
15691 # what "hidden" libraries, object files and flags are used when
15692 # linking a shared library.
15693 #
15694 # There doesn't appear to be a way to prevent this compiler from
15695 # explicitly linking system object files so we need to strip them
15696 # from the output so that they don't get included in the library
15697 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015698 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 +000015699 ;;
15700 *)
15701 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015702 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 +000015703 else
15704 # FIXME: insert proper C++ library support
15705 ld_shlibs_CXX=no
15706 fi
15707 ;;
15708 esac
15709 ;;
15710 hpux10*|hpux11*)
15711 if test $with_gnu_ld = no; then
15712 case "$host_cpu" in
15713 hppa*64*)
15714 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15715 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15716 hardcode_libdir_separator_CXX=:
15717 ;;
15718 ia64*)
15719 hardcode_libdir_flag_spec_CXX='-L$libdir'
15720 ;;
15721 *)
15722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15723 hardcode_libdir_separator_CXX=:
15724 export_dynamic_flag_spec_CXX='${wl}-E'
15725 ;;
15726 esac
15727 fi
15728 case "$host_cpu" in
15729 hppa*64*)
15730 hardcode_direct_CXX=no
15731 hardcode_shlibpath_var_CXX=no
15732 ;;
15733 ia64*)
15734 hardcode_direct_CXX=no
15735 hardcode_shlibpath_var_CXX=no
15736 hardcode_minus_L_CXX=yes # Not in the search PATH,
15737 # but as the default
15738 # location of the library.
15739 ;;
15740 *)
15741 hardcode_direct_CXX=yes
15742 hardcode_minus_L_CXX=yes # Not in the search PATH,
15743 # but as the default
15744 # location of the library.
15745 ;;
15746 esac
15747
15748 case $cc_basename in
15749 CC)
15750 # FIXME: insert proper C++ library support
15751 ld_shlibs_CXX=no
15752 ;;
15753 aCC)
15754 case "$host_cpu" in
15755 hppa*64*|ia64*)
15756 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15757 ;;
15758 *)
15759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15760 ;;
15761 esac
15762 # Commands to make compiler produce verbose output that lists
15763 # what "hidden" libraries, object files and flags are used when
15764 # linking a shared library.
15765 #
15766 # There doesn't appear to be a way to prevent this compiler from
15767 # explicitly linking system object files so we need to strip them
15768 # from the output so that they don't get included in the library
15769 # dependencies.
15770 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'
15771 ;;
15772 *)
15773 if test "$GXX" = yes; then
15774 if test $with_gnu_ld = no; then
15775 case "$host_cpu" in
15776 ia64*|hppa*64*)
15777 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15778 ;;
15779 *)
15780 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'
15781 ;;
15782 esac
15783 fi
15784 else
15785 # FIXME: insert proper C++ library support
15786 ld_shlibs_CXX=no
15787 fi
15788 ;;
15789 esac
15790 ;;
15791 irix5* | irix6*)
15792 case $cc_basename in
15793 CC)
15794 # SGI C++
15795 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'
15796
15797 # Archives containing C++ object files must be created using
15798 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15799 # necessary to make sure instantiated templates are included
15800 # in the archive.
15801 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15802 ;;
15803 *)
15804 if test "$GXX" = yes; then
15805 if test "$with_gnu_ld" = no; then
15806 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15807 else
15808 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'
15809 fi
15810 fi
15811 link_all_deplibs_CXX=yes
15812 ;;
15813 esac
15814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15815 hardcode_libdir_separator_CXX=:
15816 ;;
15817 linux*)
15818 case $cc_basename in
15819 KCC)
15820 # Kuck and Associates, Inc. (KAI) C++ Compiler
15821
15822 # KCC will only create a shared library if the output file
15823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15824 # to its proper name (with version) after linking.
15825 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'
15826 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'
15827 # Commands to make compiler produce verbose output that lists
15828 # what "hidden" libraries, object files and flags are used when
15829 # linking a shared library.
15830 #
15831 # There doesn't appear to be a way to prevent this compiler from
15832 # explicitly linking system object files so we need to strip them
15833 # from the output so that they don't get included in the library
15834 # dependencies.
15835 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'
15836
15837 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15839
15840 # Archives containing C++ object files must be created using
15841 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15842 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15843 ;;
15844 icpc)
15845 # Intel C++
15846 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015847 # version 8.0 and above of icpc choke on multiply defined symbols
15848 # if we add $predep_objects and $postdep_objects, however 7.1 and
15849 # earlier do not add the objects themselves.
15850 case `$CC -V 2>&1` in
15851 *"Version 7."*)
15852 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853 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'
15854 ;;
15855 *) # Version 8.0 or newer
15856 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858 ;;
15859 esac
John Criswell47fdd832003-07-14 16:52:07 +000015860 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15863 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15864 ;;
15865 cxx)
15866 # Compaq C++
15867 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15868 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'
15869
15870 runpath_var=LD_RUN_PATH
15871 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15872 hardcode_libdir_separator_CXX=:
15873
15874 # Commands to make compiler produce verbose output that lists
15875 # what "hidden" libraries, object files and flags are used when
15876 # linking a shared library.
15877 #
15878 # There doesn't appear to be a way to prevent this compiler from
15879 # explicitly linking system object files so we need to strip them
15880 # from the output so that they don't get included in the library
15881 # dependencies.
15882 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'
15883 ;;
15884 esac
15885 ;;
15886 lynxos*)
15887 # FIXME: insert proper C++ library support
15888 ld_shlibs_CXX=no
15889 ;;
15890 m88k*)
15891 # FIXME: insert proper C++ library support
15892 ld_shlibs_CXX=no
15893 ;;
15894 mvs*)
15895 case $cc_basename in
15896 cxx)
15897 # FIXME: insert proper C++ library support
15898 ld_shlibs_CXX=no
15899 ;;
15900 *)
15901 # FIXME: insert proper C++ library support
15902 ld_shlibs_CXX=no
15903 ;;
15904 esac
15905 ;;
15906 netbsd*)
15907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15908 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15909 wlarc=
15910 hardcode_libdir_flag_spec_CXX='-R$libdir'
15911 hardcode_direct_CXX=yes
15912 hardcode_shlibpath_var_CXX=no
15913 fi
15914 # Workaround some broken pre-1.5 toolchains
15915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15916 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015917 openbsd2*)
15918 # C++ shared libraries are fairly broken
15919 ld_shlibs_CXX=no
15920 ;;
15921 openbsd*)
15922 hardcode_direct_CXX=yes
15923 hardcode_shlibpath_var_CXX=no
15924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15927 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15928 export_dynamic_flag_spec_CXX='${wl}-E'
15929 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15930 fi
15931 output_verbose_link_cmd='echo'
15932 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015933 osf3*)
15934 case $cc_basename in
15935 KCC)
15936 # Kuck and Associates, Inc. (KAI) C++ Compiler
15937
15938 # KCC will only create a shared library if the output file
15939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15940 # to its proper name (with version) after linking.
15941 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'
15942
15943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15944 hardcode_libdir_separator_CXX=:
15945
15946 # Archives containing C++ object files must be created using
15947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15949
15950 ;;
15951 RCC)
15952 # Rational C++ 2.4.1
15953 # FIXME: insert proper C++ library support
15954 ld_shlibs_CXX=no
15955 ;;
15956 cxx)
15957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15958 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'
15959
15960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15961 hardcode_libdir_separator_CXX=:
15962
15963 # Commands to make compiler produce verbose output that lists
15964 # what "hidden" libraries, object files and flags are used when
15965 # linking a shared library.
15966 #
15967 # There doesn't appear to be a way to prevent this compiler from
15968 # explicitly linking system object files so we need to strip them
15969 # from the output so that they don't get included in the library
15970 # dependencies.
15971 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'
15972 ;;
15973 *)
15974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15976 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'
15977
15978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator_CXX=:
15980
15981 # Commands to make compiler produce verbose output that lists
15982 # what "hidden" libraries, object files and flags are used when
15983 # linking a shared library.
15984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15985
15986 else
15987 # FIXME: insert proper C++ library support
15988 ld_shlibs_CXX=no
15989 fi
15990 ;;
15991 esac
15992 ;;
15993 osf4* | osf5*)
15994 case $cc_basename in
15995 KCC)
15996 # Kuck and Associates, Inc. (KAI) C++ Compiler
15997
15998 # KCC will only create a shared library if the output file
15999 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16000 # to its proper name (with version) after linking.
16001 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'
16002
16003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16004 hardcode_libdir_separator_CXX=:
16005
16006 # Archives containing C++ object files must be created using
16007 # the KAI C++ compiler.
16008 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16009 ;;
16010 RCC)
16011 # Rational C++ 2.4.1
16012 # FIXME: insert proper C++ library support
16013 ld_shlibs_CXX=no
16014 ;;
16015 cxx)
16016 allow_undefined_flag_CXX=' -expect_unresolved \*'
16017 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 +000016018 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16019 echo "-hidden">> $lib.exp~
16020 $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~
16021 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016022
16023 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16024 hardcode_libdir_separator_CXX=:
16025
16026 # Commands to make compiler produce verbose output that lists
16027 # what "hidden" libraries, object files and flags are used when
16028 # linking a shared library.
16029 #
16030 # There doesn't appear to be a way to prevent this compiler from
16031 # explicitly linking system object files so we need to strip them
16032 # from the output so that they don't get included in the library
16033 # dependencies.
16034 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'
16035 ;;
16036 *)
16037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16038 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16039 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'
16040
16041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16042 hardcode_libdir_separator_CXX=:
16043
16044 # Commands to make compiler produce verbose output that lists
16045 # what "hidden" libraries, object files and flags are used when
16046 # linking a shared library.
16047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16048
16049 else
16050 # FIXME: insert proper C++ library support
16051 ld_shlibs_CXX=no
16052 fi
16053 ;;
16054 esac
16055 ;;
16056 psos*)
16057 # FIXME: insert proper C++ library support
16058 ld_shlibs_CXX=no
16059 ;;
16060 sco*)
16061 archive_cmds_need_lc_CXX=no
16062 case $cc_basename in
16063 CC)
16064 # FIXME: insert proper C++ library support
16065 ld_shlibs_CXX=no
16066 ;;
16067 *)
16068 # FIXME: insert proper C++ library support
16069 ld_shlibs_CXX=no
16070 ;;
16071 esac
16072 ;;
16073 sunos4*)
16074 case $cc_basename in
16075 CC)
16076 # Sun C++ 4.x
16077 # FIXME: insert proper C++ library support
16078 ld_shlibs_CXX=no
16079 ;;
16080 lcc)
16081 # Lucid
16082 # FIXME: insert proper C++ library support
16083 ld_shlibs_CXX=no
16084 ;;
16085 *)
16086 # FIXME: insert proper C++ library support
16087 ld_shlibs_CXX=no
16088 ;;
16089 esac
16090 ;;
16091 solaris*)
16092 case $cc_basename in
16093 CC)
16094 # Sun C++ 4.2, 5.x and Centerline C++
16095 no_undefined_flag_CXX=' -zdefs'
16096 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 +000016097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098 $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 +000016099
16100 hardcode_libdir_flag_spec_CXX='-R$libdir'
16101 hardcode_shlibpath_var_CXX=no
16102 case $host_os in
16103 solaris2.0-5 | solaris2.0-5.*) ;;
16104 *)
16105 # The C++ compiler is used as linker so we must use $wl
16106 # flag to pass the commands to the underlying system
16107 # linker.
16108 # Supported since Solaris 2.6 (maybe 2.5.1?)
16109 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16110 ;;
16111 esac
16112 link_all_deplibs_CXX=yes
16113
16114 # Commands to make compiler produce verbose output that lists
16115 # what "hidden" libraries, object files and flags are used when
16116 # linking a shared library.
16117 #
16118 # There doesn't appear to be a way to prevent this compiler from
16119 # explicitly linking system object files so we need to strip them
16120 # from the output so that they don't get included in the library
16121 # dependencies.
16122 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'
16123
16124 # Archives containing C++ object files must be created using
16125 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16126 # necessary to make sure instantiated templates are included
16127 # in the archive.
16128 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16129 ;;
16130 gcx)
16131 # Green Hills C++ Compiler
16132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16133
16134 # The C++ compiler must be used to create the archive.
16135 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16136 ;;
16137 *)
16138 # GNU C++ compiler with Solaris linker
16139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16140 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16141 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016142 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 +000016143 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16145
John Criswell47fdd832003-07-14 16:52:07 +000016146 # Commands to make compiler produce verbose output that lists
16147 # what "hidden" libraries, object files and flags are used when
16148 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016149 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016150 else
16151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16152 # platform.
16153 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 +000016154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16155 $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 +000016156
16157 # Commands to make compiler produce verbose output that lists
16158 # what "hidden" libraries, object files and flags are used when
16159 # linking a shared library.
16160 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16161 fi
16162
16163 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16164 fi
16165 ;;
16166 esac
16167 ;;
16168 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16169 archive_cmds_need_lc_CXX=no
16170 ;;
16171 tandem*)
16172 case $cc_basename in
16173 NCC)
16174 # NonStop-UX NCC 3.20
16175 # FIXME: insert proper C++ library support
16176 ld_shlibs_CXX=no
16177 ;;
16178 *)
16179 # FIXME: insert proper C++ library support
16180 ld_shlibs_CXX=no
16181 ;;
16182 esac
16183 ;;
16184 vxworks*)
16185 # FIXME: insert proper C++ library support
16186 ld_shlibs_CXX=no
16187 ;;
16188 *)
16189 # FIXME: insert proper C++ library support
16190 ld_shlibs_CXX=no
16191 ;;
16192esac
16193echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16194echo "${ECHO_T}$ld_shlibs_CXX" >&6
16195test "$ld_shlibs_CXX" = no && can_build_shared=no
16196
16197GCC_CXX="$GXX"
16198LD_CXX="$LD"
16199
John Criswell47fdd832003-07-14 16:52:07 +000016200
16201cat > conftest.$ac_ext <<EOF
16202class Foo
16203{
16204public:
16205 Foo (void) { a = 0; }
16206private:
16207 int a;
16208};
16209EOF
16210
16211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16212 (eval $ac_compile) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; then
16216 # Parse the compiler output and extract the necessary
16217 # objects, libraries and library flags.
16218
16219 # Sentinel used to keep track of whether or not we are before
16220 # the conftest object file.
16221 pre_test_object_deps_done=no
16222
16223 # The `*' in the case matches for architectures that use `case' in
16224 # $output_verbose_cmd can trigger glob expansion during the loop
16225 # eval without this substitution.
16226 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16227
16228 for p in `eval $output_verbose_link_cmd`; do
16229 case $p in
16230
16231 -L* | -R* | -l*)
16232 # Some compilers place space between "-{L,R}" and the path.
16233 # Remove the space.
16234 if test $p = "-L" \
16235 || test $p = "-R"; then
16236 prev=$p
16237 continue
16238 else
16239 prev=
16240 fi
16241
16242 if test "$pre_test_object_deps_done" = no; then
16243 case $p in
16244 -L* | -R*)
16245 # Internal compiler library paths should come after those
16246 # provided the user. The postdeps already come after the
16247 # user supplied libs so there is no need to process them.
16248 if test -z "$compiler_lib_search_path_CXX"; then
16249 compiler_lib_search_path_CXX="${prev}${p}"
16250 else
16251 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16252 fi
16253 ;;
16254 # The "-l" case would never come before the object being
16255 # linked, so don't bother handling this case.
16256 esac
16257 else
16258 if test -z "$postdeps_CXX"; then
16259 postdeps_CXX="${prev}${p}"
16260 else
16261 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16262 fi
16263 fi
16264 ;;
16265
16266 *.$objext)
16267 # This assumes that the test object file only shows up
16268 # once in the compiler output.
16269 if test "$p" = "conftest.$objext"; then
16270 pre_test_object_deps_done=yes
16271 continue
16272 fi
16273
16274 if test "$pre_test_object_deps_done" = no; then
16275 if test -z "$predep_objects_CXX"; then
16276 predep_objects_CXX="$p"
16277 else
16278 predep_objects_CXX="$predep_objects_CXX $p"
16279 fi
16280 else
16281 if test -z "$postdep_objects_CXX"; then
16282 postdep_objects_CXX="$p"
16283 else
16284 postdep_objects_CXX="$postdep_objects_CXX $p"
16285 fi
16286 fi
16287 ;;
16288
16289 *) ;; # Ignore the rest.
16290
16291 esac
16292 done
16293
16294 # Clean up.
16295 rm -f a.out a.exe
16296else
16297 echo "libtool.m4: error: problem compiling CXX test program"
16298fi
16299
16300$rm -f confest.$objext
16301
16302case " $postdeps_CXX " in
16303*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16304esac
16305
16306lt_prog_compiler_wl_CXX=
16307lt_prog_compiler_pic_CXX=
16308lt_prog_compiler_static_CXX=
16309
16310echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16311echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16312
16313 # C++ specific cases for pic, static, wl, etc.
16314 if test "$GXX" = yes; then
16315 lt_prog_compiler_wl_CXX='-Wl,'
16316 lt_prog_compiler_static_CXX='-static'
16317
16318 case $host_os in
16319 aix*)
16320 # All AIX code is PIC.
16321 if test "$host_cpu" = ia64; then
16322 # AIX 5 now supports IA64 processor
16323 lt_prog_compiler_static_CXX='-Bstatic'
16324 fi
16325 ;;
16326 amigaos*)
16327 # FIXME: we need at least 68020 code to build shared libraries, but
16328 # adding the `-m68020' flag to GCC prevents building anything better,
16329 # like `-m68040'.
16330 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16331 ;;
16332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16333 # PIC is the default for these OSes.
16334 ;;
16335 mingw* | os2* | pw32*)
16336 # This hack is so that the source file can tell whether it is being
16337 # built for inclusion in a dll (and should export symbols for example).
16338 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16339 ;;
16340 darwin* | rhapsody*)
16341 # PIC is the default on this platform
16342 # Common symbols not allowed in MH_DYLIB files
16343 lt_prog_compiler_pic_CXX='-fno-common'
16344 ;;
16345 *djgpp*)
16346 # DJGPP does not support shared libraries at all
16347 lt_prog_compiler_pic_CXX=
16348 ;;
16349 sysv4*MP*)
16350 if test -d /usr/nec; then
16351 lt_prog_compiler_pic_CXX=-Kconform_pic
16352 fi
16353 ;;
16354 hpux*)
16355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16356 # not for PA HP-UX.
16357 case "$host_cpu" in
16358 hppa*64*|ia64*)
16359 ;;
16360 *)
16361 lt_prog_compiler_pic_CXX='-fPIC'
16362 ;;
16363 esac
16364 ;;
16365 *)
16366 lt_prog_compiler_pic_CXX='-fPIC'
16367 ;;
16368 esac
16369 else
16370 case $host_os in
16371 aix4* | aix5*)
16372 # All AIX code is PIC.
16373 if test "$host_cpu" = ia64; then
16374 # AIX 5 now supports IA64 processor
16375 lt_prog_compiler_static_CXX='-Bstatic'
16376 else
16377 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16378 fi
16379 ;;
16380 chorus*)
16381 case $cc_basename in
16382 cxch68)
16383 # Green Hills C++ Compiler
16384 # _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"
16385 ;;
16386 esac
16387 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016388 darwin*)
16389 # PIC is the default on this platform
16390 # Common symbols not allowed in MH_DYLIB files
16391 case "$cc_basename" in
16392 xlc*)
16393 lt_prog_compiler_pic_CXX='-qnocommon'
16394 lt_prog_compiler_wl_CXX='-Wl,'
16395 ;;
16396 esac
16397 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016398 dgux*)
16399 case $cc_basename in
16400 ec++)
16401 lt_prog_compiler_pic_CXX='-KPIC'
16402 ;;
16403 ghcx)
16404 # Green Hills C++ Compiler
16405 lt_prog_compiler_pic_CXX='-pic'
16406 ;;
16407 *)
16408 ;;
16409 esac
16410 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016411 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016412 # FreeBSD uses GNU C++
16413 ;;
16414 hpux9* | hpux10* | hpux11*)
16415 case $cc_basename in
16416 CC)
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 if test "$host_cpu" != ia64; then
16420 lt_prog_compiler_pic_CXX='+Z'
16421 fi
16422 ;;
16423 aCC)
16424 lt_prog_compiler_wl_CXX='-Wl,'
16425 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16426 case "$host_cpu" in
16427 hppa*64*|ia64*)
16428 # +Z the default
16429 ;;
16430 *)
16431 lt_prog_compiler_pic_CXX='+Z'
16432 ;;
16433 esac
16434 ;;
16435 *)
16436 ;;
16437 esac
16438 ;;
16439 irix5* | irix6* | nonstopux*)
16440 case $cc_basename in
16441 CC)
16442 lt_prog_compiler_wl_CXX='-Wl,'
16443 lt_prog_compiler_static_CXX='-non_shared'
16444 # CC pic flag -KPIC is the default.
16445 ;;
16446 *)
16447 ;;
16448 esac
16449 ;;
16450 linux*)
16451 case $cc_basename in
16452 KCC)
16453 # KAI C++ Compiler
16454 lt_prog_compiler_wl_CXX='--backend -Wl,'
16455 lt_prog_compiler_pic_CXX='-fPIC'
16456 ;;
16457 icpc)
16458 # Intel C++
16459 lt_prog_compiler_wl_CXX='-Wl,'
16460 lt_prog_compiler_pic_CXX='-KPIC'
16461 lt_prog_compiler_static_CXX='-static'
16462 ;;
16463 cxx)
16464 # Compaq C++
16465 # Make sure the PIC flag is empty. It appears that all Alpha
16466 # Linux and Compaq Tru64 Unix objects are PIC.
16467 lt_prog_compiler_pic_CXX=
16468 lt_prog_compiler_static_CXX='-non_shared'
16469 ;;
16470 *)
16471 ;;
16472 esac
16473 ;;
16474 lynxos*)
16475 ;;
16476 m88k*)
16477 ;;
16478 mvs*)
16479 case $cc_basename in
16480 cxx)
16481 lt_prog_compiler_pic_CXX='-W c,exportall'
16482 ;;
16483 *)
16484 ;;
16485 esac
16486 ;;
16487 netbsd*)
16488 ;;
16489 osf3* | osf4* | osf5*)
16490 case $cc_basename in
16491 KCC)
16492 lt_prog_compiler_wl_CXX='--backend -Wl,'
16493 ;;
16494 RCC)
16495 # Rational C++ 2.4.1
16496 lt_prog_compiler_pic_CXX='-pic'
16497 ;;
16498 cxx)
16499 # Digital/Compaq C++
16500 lt_prog_compiler_wl_CXX='-Wl,'
16501 # Make sure the PIC flag is empty. It appears that all Alpha
16502 # Linux and Compaq Tru64 Unix objects are PIC.
16503 lt_prog_compiler_pic_CXX=
16504 lt_prog_compiler_static_CXX='-non_shared'
16505 ;;
16506 *)
16507 ;;
16508 esac
16509 ;;
16510 psos*)
16511 ;;
16512 sco*)
16513 case $cc_basename in
16514 CC)
16515 lt_prog_compiler_pic_CXX='-fPIC'
16516 ;;
16517 *)
16518 ;;
16519 esac
16520 ;;
16521 solaris*)
16522 case $cc_basename in
16523 CC)
16524 # Sun C++ 4.2, 5.x and Centerline C++
16525 lt_prog_compiler_pic_CXX='-KPIC'
16526 lt_prog_compiler_static_CXX='-Bstatic'
16527 lt_prog_compiler_wl_CXX='-Qoption ld '
16528 ;;
16529 gcx)
16530 # Green Hills C++ Compiler
16531 lt_prog_compiler_pic_CXX='-PIC'
16532 ;;
16533 *)
16534 ;;
16535 esac
16536 ;;
16537 sunos4*)
16538 case $cc_basename in
16539 CC)
16540 # Sun C++ 4.x
16541 lt_prog_compiler_pic_CXX='-pic'
16542 lt_prog_compiler_static_CXX='-Bstatic'
16543 ;;
16544 lcc)
16545 # Lucid
16546 lt_prog_compiler_pic_CXX='-pic'
16547 ;;
16548 *)
16549 ;;
16550 esac
16551 ;;
16552 tandem*)
16553 case $cc_basename in
16554 NCC)
16555 # NonStop-UX NCC 3.20
16556 lt_prog_compiler_pic_CXX='-KPIC'
16557 ;;
16558 *)
16559 ;;
16560 esac
16561 ;;
16562 unixware*)
16563 ;;
16564 vxworks*)
16565 ;;
16566 *)
16567 lt_prog_compiler_can_build_shared_CXX=no
16568 ;;
16569 esac
16570 fi
16571
16572echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16573echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16574
16575#
16576# Check to make sure the PIC flag actually works.
16577#
16578if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016579
16580echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016581echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16582if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584else
16585 lt_prog_compiler_pic_works_CXX=no
16586 ac_outfile=conftest.$ac_objext
16587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16588 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16589 # Insert the option either (1) after the last *FLAGS variable, or
16590 # (2) before a word containing "conftest.", or (3) at the end.
16591 # Note that $ac_compile itself does not contain backslashes and begins
16592 # with a dollar sign (not a hyphen), so the echo should work correctly.
16593 # The option is referenced via a variable to avoid confusing sed.
16594 lt_compile=`echo "$ac_compile" | $SED \
16595 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16597 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000016598 (eval echo "\"\$as_me:16598: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016599 (eval "$lt_compile" 2>conftest.err)
16600 ac_status=$?
16601 cat conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000016602 echo "$as_me:16602: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016603 if (exit $ac_status) && test -s "$ac_outfile"; then
16604 # The compiler can only warn and ignore the option if not recognized
16605 # So say no if there are warnings
16606 if test ! -s conftest.err; then
16607 lt_prog_compiler_pic_works_CXX=yes
16608 fi
16609 fi
16610 $rm conftest*
16611
16612fi
16613echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16614echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16615
16616if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16617 case $lt_prog_compiler_pic_CXX in
16618 "" | " "*) ;;
16619 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16620 esac
16621else
16622 lt_prog_compiler_pic_CXX=
16623 lt_prog_compiler_can_build_shared_CXX=no
16624fi
16625
16626fi
16627case "$host_os" in
16628 # For platforms which do not support PIC, -DPIC is meaningless:
16629 *djgpp*)
16630 lt_prog_compiler_pic_CXX=
16631 ;;
16632 *)
16633 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16634 ;;
16635esac
16636
16637echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16638echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16639if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 lt_cv_prog_compiler_c_o_CXX=no
16643 $rm -r conftest 2>/dev/null
16644 mkdir conftest
16645 cd conftest
16646 mkdir out
16647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16648
John Criswell47fdd832003-07-14 16:52:07 +000016649 lt_compiler_flag="-o out/conftest2.$ac_objext"
16650 # Insert the option either (1) after the last *FLAGS variable, or
16651 # (2) before a word containing "conftest.", or (3) at the end.
16652 # Note that $ac_compile itself does not contain backslashes and begins
16653 # with a dollar sign (not a hyphen), so the echo should work correctly.
16654 lt_compile=`echo "$ac_compile" | $SED \
16655 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16657 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000016658 (eval echo "\"\$as_me:16658: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016659 (eval "$lt_compile" 2>out/conftest.err)
16660 ac_status=$?
16661 cat out/conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000016662 echo "$as_me:16662: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16664 then
16665 # The compiler can only warn and ignore the option if not recognized
16666 # So say no if there are warnings
16667 if test ! -s out/conftest.err; then
16668 lt_cv_prog_compiler_c_o_CXX=yes
16669 fi
16670 fi
16671 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016672 $rm conftest*
16673 # SGI C++ compiler will create directory out/ii_files/ for
16674 # template instantiation
16675 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16676 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016677 cd ..
16678 rmdir conftest
16679 $rm conftest*
16680
16681fi
16682echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16683echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16684
16685
16686hard_links="nottested"
16687if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16688 # do not overwrite the value of need_locks provided by the user
16689 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16690echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16691 hard_links=yes
16692 $rm conftest*
16693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16694 touch conftest.a
16695 ln conftest.a conftest.b 2>&5 || hard_links=no
16696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16697 echo "$as_me:$LINENO: result: $hard_links" >&5
16698echo "${ECHO_T}$hard_links" >&6
16699 if test "$hard_links" = no; then
16700 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16701echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16702 need_locks=warn
16703 fi
16704else
16705 need_locks=no
16706fi
16707
16708echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16709echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16710
16711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16712 case $host_os in
16713 aix4* | aix5*)
16714 # If we're using GNU nm, then we don't want the "-C" option.
16715 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16716 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16717 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'
16718 else
16719 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'
16720 fi
16721 ;;
16722 pw32*)
16723 export_symbols_cmds_CXX="$ltdll_cmds"
16724 ;;
16725 cygwin* | mingw*)
16726 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16727 ;;
16728 *)
16729 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16730 ;;
16731 esac
16732
16733echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16734echo "${ECHO_T}$ld_shlibs_CXX" >&6
16735test "$ld_shlibs_CXX" = no && can_build_shared=no
16736
16737variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16738if test "$GCC" = yes; then
16739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16740fi
16741
16742#
16743# Do we need to explicitly link libc?
16744#
16745case "x$archive_cmds_need_lc_CXX" in
16746x|xyes)
16747 # Assume -lc should be added
16748 archive_cmds_need_lc_CXX=yes
16749
16750 if test "$enable_shared" = yes && test "$GCC" = yes; then
16751 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016752 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016753 # FIXME: we may have to deal with multi-command sequences.
16754 ;;
16755 '$CC '*)
16756 # Test whether the compiler implicitly links with -lc since on some
16757 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16758 # to ld, don't add -lc before -lgcc.
16759 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16760echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16761 $rm conftest*
16762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } 2>conftest.err; then
16769 soname=conftest
16770 lib=conftest
16771 libobjs=conftest.$ac_objext
16772 deplibs=
16773 wl=$lt_prog_compiler_wl_CXX
16774 compiler_flags=-v
16775 linker_flags=-v
16776 verstring=
16777 output_objdir=.
16778 libname=conftest
16779 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16780 allow_undefined_flag_CXX=
16781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16782 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }
16786 then
16787 archive_cmds_need_lc_CXX=no
16788 else
16789 archive_cmds_need_lc_CXX=yes
16790 fi
16791 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16792 else
16793 cat conftest.err 1>&5
16794 fi
16795 $rm conftest*
16796 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16797echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16798 ;;
16799 esac
16800 fi
16801 ;;
16802esac
16803
John Criswell47fdd832003-07-14 16:52:07 +000016804echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16805echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16806library_names_spec=
16807libname_spec='lib$name'
16808soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016810postinstall_cmds=
16811postuninstall_cmds=
16812finish_cmds=
16813finish_eval=
16814shlibpath_var=
16815shlibpath_overrides_runpath=unknown
16816version_type=none
16817dynamic_linker="$host_os ld.so"
16818sys_lib_dlsearch_path_spec="/lib /usr/lib"
16819if test "$GCC" = yes; then
16820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16821 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16822 # if the path contains ";" then we assume it to be the separator
16823 # otherwise default to the standard path separator (i.e. ":") - it is
16824 # assumed that no part of a normal pathname contains ";" but that should
16825 # okay in the real world where ";" in dirpaths is itself problematic.
16826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16827 else
16828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16829 fi
16830else
16831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16832fi
16833need_lib_prefix=unknown
16834hardcode_into_libs=no
16835
16836# when you set need_version to no, make sure it does not cause -set_version
16837# flags to be left without arguments
16838need_version=unknown
16839
16840case $host_os in
16841aix3*)
16842 version_type=linux
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16844 shlibpath_var=LIBPATH
16845
16846 # AIX 3 has no versioning support, so we append a major version to the name.
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 ;;
16849
16850aix4* | aix5*)
16851 version_type=linux
16852 need_lib_prefix=no
16853 need_version=no
16854 hardcode_into_libs=yes
16855 if test "$host_cpu" = ia64; then
16856 # AIX 5 supports IA64
16857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 else
16860 # With GCC up to 2.95.x, collect2 would create an import file
16861 # for dependence libraries. The import file would start with
16862 # the line `#! .'. This would cause the generated library to
16863 # depend on `.', always an invalid library. This was fixed in
16864 # development snapshots of GCC prior to 3.0.
16865 case $host_os in
16866 aix4 | aix4.[01] | aix4.[01].*)
16867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16868 echo ' yes '
16869 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16870 :
16871 else
16872 can_build_shared=no
16873 fi
16874 ;;
16875 esac
16876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16877 # soname into executable. Probably we can add versioning support to
16878 # collect2, so additional links can be useful in future.
16879 if test "$aix_use_runtimelinking" = yes; then
16880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16881 # instead of lib<name>.a to let people know that these are not
16882 # typical AIX shared libraries.
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 else
16885 # We preserve .a as extension for shared libraries through AIX4.2
16886 # and later when we are not doing run time linking.
16887 library_names_spec='${libname}${release}.a $libname.a'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 fi
16890 shlibpath_var=LIBPATH
16891 fi
16892 ;;
16893
16894amigaos*)
16895 library_names_spec='$libname.ixlibrary $libname.a'
16896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016897 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 +000016898 ;;
16899
16900beos*)
16901 library_names_spec='${libname}${shared_ext}'
16902 dynamic_linker="$host_os ld.so"
16903 shlibpath_var=LIBRARY_PATH
16904 ;;
16905
Reid Spencer2706f8c2004-09-19 23:53:36 +000016906bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016907 version_type=linux
16908 need_version=no
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16915 # the default ld.so.conf also contains /usr/contrib/lib and
16916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16917 # libtool to hard-code these into programs
16918 ;;
16919
16920cygwin* | mingw* | pw32*)
16921 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016922 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016923 need_version=no
16924 need_lib_prefix=no
16925
16926 case $GCC,$host_os in
16927 yes,cygwin* | yes,mingw* | yes,pw32*)
16928 library_names_spec='$libname.dll.a'
16929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016930 postinstall_cmds='base_file=`basename \${file}`~
16931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16932 dldir=$destdir/`dirname \$dlpath`~
16933 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016934 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16936 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016937 $rm \$dlpath'
16938 shlibpath_overrides_runpath=yes
16939
16940 case $host_os in
16941 cygwin*)
16942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16943 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 +000016944 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016945 ;;
16946 mingw*)
16947 # MinGW DLLs use traditional 'lib' prefix
16948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16949 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16950 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16951 # It is most probably a Windows format PATH printed by
16952 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16953 # path with ; separators, and with drive letters. We can handle the
16954 # drive letters (cygwin fileutils understands them), so leave them,
16955 # especially as we might pass files found there to a mingw objdump,
16956 # which wouldn't understand a cygwinified path. Ahh.
16957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16958 else
16959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16960 fi
16961 ;;
16962 pw32*)
16963 # pw32 DLLs use 'pw' prefix rather than 'lib'
16964 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16965 ;;
16966 esac
16967 ;;
16968
16969 *)
16970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16971 ;;
16972 esac
16973 dynamic_linker='Win32 ld.exe'
16974 # FIXME: first we should search . and the directory the executable is in
16975 shlibpath_var=PATH
16976 ;;
16977
16978darwin* | rhapsody*)
16979 dynamic_linker="$host_os dyld"
16980 version_type=darwin
16981 need_lib_prefix=no
16982 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016983 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016984 soname_spec='${libname}${release}${major}$shared_ext'
16985 shlibpath_overrides_runpath=yes
16986 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016987 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016988 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016989 if test "$GCC" = yes; then
16990 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"`
16991 else
16992 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016993 fi
16994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16995 ;;
16996
16997dgux*)
16998 version_type=linux
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 ;;
17005
17006freebsd1*)
17007 dynamic_linker=no
17008 ;;
17009
Reid Spencer2706f8c2004-09-19 23:53:36 +000017010kfreebsd*-gnu)
17011 version_type=linux
17012 need_lib_prefix=no
17013 need_version=no
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 shlibpath_overrides_runpath=no
17018 hardcode_into_libs=yes
17019 dynamic_linker='GNU ld.so'
17020 ;;
17021
John Criswell47fdd832003-07-14 16:52:07 +000017022freebsd*)
17023 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17024 version_type=freebsd-$objformat
17025 case $version_type in
17026 freebsd-elf*)
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17028 need_version=no
17029 need_lib_prefix=no
17030 ;;
17031 freebsd-*)
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17033 need_version=yes
17034 ;;
17035 esac
17036 shlibpath_var=LD_LIBRARY_PATH
17037 case $host_os in
17038 freebsd2*)
17039 shlibpath_overrides_runpath=yes
17040 ;;
17041 freebsd3.01* | freebsdelf3.01*)
17042 shlibpath_overrides_runpath=yes
17043 hardcode_into_libs=yes
17044 ;;
17045 *) # from 3.2 on
17046 shlibpath_overrides_runpath=no
17047 hardcode_into_libs=yes
17048 ;;
17049 esac
17050 ;;
17051
17052gnu*)
17053 version_type=linux
17054 need_lib_prefix=no
17055 need_version=no
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 hardcode_into_libs=yes
17060 ;;
17061
17062hpux9* | hpux10* | hpux11*)
17063 # Give a soname corresponding to the major version so that dld.sl refuses to
17064 # link against other versions.
17065 version_type=sunos
17066 need_lib_prefix=no
17067 need_version=no
17068 case "$host_cpu" in
17069 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017070 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017071 hardcode_into_libs=yes
17072 dynamic_linker="$host_os dld.so"
17073 shlibpath_var=LD_LIBRARY_PATH
17074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 if test "X$HPUX_IA64_MODE" = X32; then
17078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17079 else
17080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17081 fi
17082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17083 ;;
17084 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017085 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017086 hardcode_into_libs=yes
17087 dynamic_linker="$host_os dld.sl"
17088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17094 ;;
17095 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017096 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017097 dynamic_linker="$host_os dld.sl"
17098 shlibpath_var=SHLIB_PATH
17099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 ;;
17103 esac
17104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17105 postinstall_cmds='chmod 555 $lib'
17106 ;;
17107
17108irix5* | irix6* | nonstopux*)
17109 case $host_os in
17110 nonstopux*) version_type=nonstopux ;;
17111 *)
17112 if test "$lt_cv_prog_gnu_ld" = yes; then
17113 version_type=linux
17114 else
17115 version_type=irix
17116 fi ;;
17117 esac
17118 need_lib_prefix=no
17119 need_version=no
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17122 case $host_os in
17123 irix5* | nonstopux*)
17124 libsuff= shlibsuff=
17125 ;;
17126 *)
17127 case $LD in # libtool.m4 will add one of these switches to LD
17128 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17129 libsuff= shlibsuff= libmagic=32-bit;;
17130 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17131 libsuff=32 shlibsuff=N32 libmagic=N32;;
17132 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17133 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17134 *) libsuff= shlibsuff= libmagic=never-match;;
17135 esac
17136 ;;
17137 esac
17138 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17139 shlibpath_overrides_runpath=no
17140 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17141 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17142 hardcode_into_libs=yes
17143 ;;
17144
17145# No shared lib support for Linux oldld, aout, or coff.
17146linux*oldld* | linux*aout* | linux*coff*)
17147 dynamic_linker=no
17148 ;;
17149
17150# This must be Linux ELF.
17151linux*)
17152 version_type=linux
17153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=no
17160 # This implies no fast_install, which is unacceptable.
17161 # Some rework will be needed to allow for fast_install
17162 # before this can be enabled.
17163 hardcode_into_libs=yes
17164
Reid Spencer2706f8c2004-09-19 23:53:36 +000017165 # Append ld.so.conf contents to the search path
17166 if test -f /etc/ld.so.conf; then
17167 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17168 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17169 fi
17170
John Criswell47fdd832003-07-14 16:52:07 +000017171 # We used to test for /lib/ld.so.1 and disable shared libraries on
17172 # powerpc, because MkLinux only supported shared libraries with the
17173 # GNU dynamic linker. Since this was broken with cross compilers,
17174 # most powerpc-linux boxes support dynamic linking these days and
17175 # people can always --disable-shared, the test was removed, and we
17176 # assume the GNU/Linux dynamic linker is in use.
17177 dynamic_linker='GNU/Linux ld.so'
17178 ;;
17179
Reid Spencer2706f8c2004-09-19 23:53:36 +000017180knetbsd*-gnu)
17181 version_type=linux
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 shlibpath_overrides_runpath=no
17188 hardcode_into_libs=yes
17189 dynamic_linker='GNU ld.so'
17190 ;;
17191
John Criswell47fdd832003-07-14 16:52:07 +000017192netbsd*)
17193 version_type=sunos
17194 need_lib_prefix=no
17195 need_version=no
17196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17199 dynamic_linker='NetBSD (a.out) ld.so'
17200 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017202 soname_spec='${libname}${release}${shared_ext}$major'
17203 dynamic_linker='NetBSD ld.elf_so'
17204 fi
17205 shlibpath_var=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath=yes
17207 hardcode_into_libs=yes
17208 ;;
17209
17210newsos6)
17211 version_type=linux
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=yes
17215 ;;
17216
Reid Spencer2706f8c2004-09-19 23:53:36 +000017217nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017218 version_type=linux
17219 need_lib_prefix=no
17220 need_version=no
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17225 ;;
17226
17227openbsd*)
17228 version_type=sunos
17229 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017230 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17235 case $host_os in
17236 openbsd2.[89] | openbsd2.[89].*)
17237 shlibpath_overrides_runpath=no
17238 ;;
17239 *)
17240 shlibpath_overrides_runpath=yes
17241 ;;
17242 esac
17243 else
17244 shlibpath_overrides_runpath=yes
17245 fi
17246 ;;
17247
17248os2*)
17249 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017250 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017251 need_lib_prefix=no
17252 library_names_spec='$libname${shared_ext} $libname.a'
17253 dynamic_linker='OS/2 ld.exe'
17254 shlibpath_var=LIBPATH
17255 ;;
17256
17257osf3* | osf4* | osf5*)
17258 version_type=osf
17259 need_lib_prefix=no
17260 need_version=no
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17266 ;;
17267
17268sco3.2v5*)
17269 version_type=osf
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 shlibpath_var=LD_LIBRARY_PATH
17273 ;;
17274
17275solaris*)
17276 version_type=linux
17277 need_lib_prefix=no
17278 need_version=no
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17283 hardcode_into_libs=yes
17284 # ldd complains unless libraries are executable
17285 postinstall_cmds='chmod +x $lib'
17286 ;;
17287
17288sunos4*)
17289 version_type=sunos
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes
17294 if test "$with_gnu_ld" = yes; then
17295 need_lib_prefix=no
17296 fi
17297 need_version=yes
17298 ;;
17299
17300sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17301 version_type=linux
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 case $host_vendor in
17306 sni)
17307 shlibpath_overrides_runpath=no
17308 need_lib_prefix=no
17309 export_dynamic_flag_spec='${wl}-Blargedynsym'
17310 runpath_var=LD_RUN_PATH
17311 ;;
17312 siemens)
17313 need_lib_prefix=no
17314 ;;
17315 motorola)
17316 need_lib_prefix=no
17317 need_version=no
17318 shlibpath_overrides_runpath=no
17319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17320 ;;
17321 esac
17322 ;;
17323
17324sysv4*MP*)
17325 if test -d /usr/nec ;then
17326 version_type=linux
17327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17328 soname_spec='$libname${shared_ext}.$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 fi
17331 ;;
17332
17333uts4*)
17334 version_type=linux
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 ;;
17339
17340*)
17341 dynamic_linker=no
17342 ;;
17343esac
17344echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17345echo "${ECHO_T}$dynamic_linker" >&6
17346test "$dynamic_linker" = no && can_build_shared=no
17347
Reid Spencer2706f8c2004-09-19 23:53:36 +000017348echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17349echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17350hardcode_action_CXX=
17351if test -n "$hardcode_libdir_flag_spec_CXX" || \
17352 test -n "$runpath_var_CXX" || \
17353 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17354
17355 # We can hardcode non-existant directories.
17356 if test "$hardcode_direct_CXX" != no &&
17357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17358 # have to relink, otherwise we might link with an installed library
17359 # when we should be linking with a yet-to-be-installed one
17360 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17361 test "$hardcode_minus_L_CXX" != no; then
17362 # Linking always hardcodes the temporary library directory.
17363 hardcode_action_CXX=relink
17364 else
17365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17366 hardcode_action_CXX=immediate
17367 fi
17368else
17369 # We cannot hardcode anything, or else we can only hardcode existing
17370 # directories.
17371 hardcode_action_CXX=unsupported
17372fi
17373echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17374echo "${ECHO_T}$hardcode_action_CXX" >&6
17375
17376if test "$hardcode_action_CXX" = relink; then
17377 # Fast installation is not supported
17378 enable_fast_install=no
17379elif test "$shlibpath_overrides_runpath" = yes ||
17380 test "$enable_shared" = no; then
17381 # Fast installation is not necessary
17382 enable_fast_install=needless
17383fi
17384
17385striplib=
17386old_striplib=
17387echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17388echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17389if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17390 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17391 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17392 echo "$as_me:$LINENO: result: yes" >&5
17393echo "${ECHO_T}yes" >&6
17394else
17395# FIXME - insert some real tests, host_os isn't really good enough
17396 case $host_os in
17397 darwin*)
17398 if test -n "$STRIP" ; then
17399 striplib="$STRIP -x"
17400 echo "$as_me:$LINENO: result: yes" >&5
17401echo "${ECHO_T}yes" >&6
17402 else
17403 echo "$as_me:$LINENO: result: no" >&5
17404echo "${ECHO_T}no" >&6
17405fi
17406 ;;
17407 *)
17408 echo "$as_me:$LINENO: result: no" >&5
17409echo "${ECHO_T}no" >&6
17410 ;;
17411 esac
17412fi
17413
John Criswell47fdd832003-07-14 16:52:07 +000017414if test "x$enable_dlopen" != xyes; then
17415 enable_dlopen=unknown
17416 enable_dlopen_self=unknown
17417 enable_dlopen_self_static=unknown
17418else
17419 lt_cv_dlopen=no
17420 lt_cv_dlopen_libs=
17421
17422 case $host_os in
17423 beos*)
17424 lt_cv_dlopen="load_add_on"
17425 lt_cv_dlopen_libs=
17426 lt_cv_dlopen_self=yes
17427 ;;
17428
17429 mingw* | pw32*)
17430 lt_cv_dlopen="LoadLibrary"
17431 lt_cv_dlopen_libs=
17432 ;;
17433
17434 cygwin*)
17435 lt_cv_dlopen="dlopen"
17436 lt_cv_dlopen_libs=
17437 ;;
17438
17439 darwin*)
17440 # if libdl is installed we need to link against it
17441 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17442echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17443if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446 ac_check_lib_save_LIBS=$LIBS
17447LIBS="-ldl $LIBS"
17448cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017449/* confdefs.h. */
17450_ACEOF
17451cat confdefs.h >>conftest.$ac_ext
17452cat >>conftest.$ac_ext <<_ACEOF
17453/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017454
17455/* Override any gcc2 internal prototype to avoid an error. */
17456#ifdef __cplusplus
17457extern "C"
17458#endif
17459/* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
17461char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017462int
17463main ()
17464{
17465dlopen ();
17466 ;
17467 return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext conftest$ac_exeext
17471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017472 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017473 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017479 { ac_try='test -z "$ac_cxx_werror_flag"
17480 || test ! -s conftest.err'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_lib_dl_dlopen=yes
17493else
17494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017495sed 's/^/| /' conftest.$ac_ext >&5
17496
John Criswell47fdd832003-07-14 16:52:07 +000017497ac_cv_lib_dl_dlopen=no
17498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017499rm -f conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017501LIBS=$ac_check_lib_save_LIBS
17502fi
17503echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17504echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17505if test $ac_cv_lib_dl_dlopen = yes; then
17506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17507else
17508
17509 lt_cv_dlopen="dyld"
17510 lt_cv_dlopen_libs=
17511 lt_cv_dlopen_self=yes
17512
17513fi
17514
17515 ;;
17516
17517 *)
17518 echo "$as_me:$LINENO: checking for shl_load" >&5
17519echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17520if test "${ac_cv_func_shl_load+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017529/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17531#define shl_load innocuous_shl_load
17532
John Criswell47fdd832003-07-14 16:52:07 +000017533/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017534 which can conflict with char shl_load (); below.
17535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017537
John Criswell0c38eaf2003-09-10 15:17:25 +000017538#ifdef __STDC__
17539# include <limits.h>
17540#else
17541# include <assert.h>
17542#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017543
17544#undef shl_load
17545
John Criswell47fdd832003-07-14 16:52:07 +000017546/* Override any gcc2 internal prototype to avoid an error. */
17547#ifdef __cplusplus
17548extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017549{
John Criswell47fdd832003-07-14 16:52:07 +000017550#endif
17551/* We use char because int might match the return type of a gcc2
17552 builtin and then its argument prototype would still apply. */
17553char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017554/* The GNU C library defines this for functions which it implements
17555 to always fail with ENOSYS. Some functions are actually named
17556 something starting with __ and the normal name is an alias. */
17557#if defined (__stub_shl_load) || defined (__stub___shl_load)
17558choke me
17559#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017560char (*f) () = shl_load;
17561#endif
17562#ifdef __cplusplus
17563}
John Criswell47fdd832003-07-14 16:52:07 +000017564#endif
17565
John Criswell0c38eaf2003-09-10 15:17:25 +000017566int
17567main ()
17568{
17569return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017570 ;
17571 return 0;
17572}
17573_ACEOF
17574rm -f conftest.$ac_objext conftest$ac_exeext
17575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017576 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017583 { ac_try='test -z "$ac_cxx_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_func_shl_load=yes
17597else
17598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017599sed 's/^/| /' conftest.$ac_ext >&5
17600
John Criswell47fdd832003-07-14 16:52:07 +000017601ac_cv_func_shl_load=no
17602fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017603rm -f conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017605fi
17606echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17607echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17608if test $ac_cv_func_shl_load = yes; then
17609 lt_cv_dlopen="shl_load"
17610else
17611 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17612echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17613if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17615else
17616 ac_check_lib_save_LIBS=$LIBS
17617LIBS="-ldld $LIBS"
17618cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017619/* confdefs.h. */
17620_ACEOF
17621cat confdefs.h >>conftest.$ac_ext
17622cat >>conftest.$ac_ext <<_ACEOF
17623/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017624
17625/* Override any gcc2 internal prototype to avoid an error. */
17626#ifdef __cplusplus
17627extern "C"
17628#endif
17629/* We use char because int might match the return type of a gcc2
17630 builtin and then its argument prototype would still apply. */
17631char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017632int
17633main ()
17634{
17635shl_load ();
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext conftest$ac_exeext
17641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017642 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017649 { ac_try='test -z "$ac_cxx_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_lib_dld_shl_load=yes
17663else
17664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017665sed 's/^/| /' conftest.$ac_ext >&5
17666
John Criswell47fdd832003-07-14 16:52:07 +000017667ac_cv_lib_dld_shl_load=no
17668fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017669rm -f conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017671LIBS=$ac_check_lib_save_LIBS
17672fi
17673echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17674echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17675if test $ac_cv_lib_dld_shl_load = yes; then
17676 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17677else
17678 echo "$as_me:$LINENO: checking for dlopen" >&5
17679echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17680if test "${ac_cv_func_dlopen+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017689/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691#define dlopen innocuous_dlopen
17692
John Criswell47fdd832003-07-14 16:52:07 +000017693/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017694 which can conflict with char dlopen (); below.
17695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697
John Criswell0c38eaf2003-09-10 15:17:25 +000017698#ifdef __STDC__
17699# include <limits.h>
17700#else
17701# include <assert.h>
17702#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017703
17704#undef dlopen
17705
John Criswell47fdd832003-07-14 16:52:07 +000017706/* Override any gcc2 internal prototype to avoid an error. */
17707#ifdef __cplusplus
17708extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017709{
John Criswell47fdd832003-07-14 16:52:07 +000017710#endif
17711/* We use char because int might match the return type of a gcc2
17712 builtin and then its argument prototype would still apply. */
17713char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017714/* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717#if defined (__stub_dlopen) || defined (__stub___dlopen)
17718choke me
17719#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017720char (*f) () = dlopen;
17721#endif
17722#ifdef __cplusplus
17723}
John Criswell47fdd832003-07-14 16:52:07 +000017724#endif
17725
John Criswell0c38eaf2003-09-10 15:17:25 +000017726int
17727main ()
17728{
17729return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext conftest$ac_exeext
17735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017736 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017743 { ac_try='test -z "$ac_cxx_werror_flag"
17744 || test ! -s conftest.err'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_func_dlopen=yes
17757else
17758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017759sed 's/^/| /' conftest.$ac_ext >&5
17760
John Criswell47fdd832003-07-14 16:52:07 +000017761ac_cv_func_dlopen=no
17762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017765fi
17766echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17767echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17768if test $ac_cv_func_dlopen = yes; then
17769 lt_cv_dlopen="dlopen"
17770else
17771 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17772echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17773if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775else
17776 ac_check_lib_save_LIBS=$LIBS
17777LIBS="-ldl $LIBS"
17778cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017784
17785/* Override any gcc2 internal prototype to avoid an error. */
17786#ifdef __cplusplus
17787extern "C"
17788#endif
17789/* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17791char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017792int
17793main ()
17794{
17795dlopen ();
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext conftest$ac_exeext
17801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017802 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017809 { ac_try='test -z "$ac_cxx_werror_flag"
17810 || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_lib_dl_dlopen=yes
17823else
17824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017825sed 's/^/| /' conftest.$ac_ext >&5
17826
John Criswell47fdd832003-07-14 16:52:07 +000017827ac_cv_lib_dl_dlopen=no
17828fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017829rm -f conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017831LIBS=$ac_check_lib_save_LIBS
17832fi
17833echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17834echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17835if test $ac_cv_lib_dl_dlopen = yes; then
17836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17837else
17838 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17839echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17840if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842else
17843 ac_check_lib_save_LIBS=$LIBS
17844LIBS="-lsvld $LIBS"
17845cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017846/* confdefs.h. */
17847_ACEOF
17848cat confdefs.h >>conftest.$ac_ext
17849cat >>conftest.$ac_ext <<_ACEOF
17850/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017851
17852/* Override any gcc2 internal prototype to avoid an error. */
17853#ifdef __cplusplus
17854extern "C"
17855#endif
17856/* We use char because int might match the return type of a gcc2
17857 builtin and then its argument prototype would still apply. */
17858char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017859int
17860main ()
17861{
17862dlopen ();
17863 ;
17864 return 0;
17865}
17866_ACEOF
17867rm -f conftest.$ac_objext conftest$ac_exeext
17868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017869 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017870 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017876 { ac_try='test -z "$ac_cxx_werror_flag"
17877 || test ! -s conftest.err'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17886 ac_status=$?
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_lib_svld_dlopen=yes
17890else
17891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017892sed 's/^/| /' conftest.$ac_ext >&5
17893
John Criswell47fdd832003-07-14 16:52:07 +000017894ac_cv_lib_svld_dlopen=no
17895fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017896rm -f conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017898LIBS=$ac_check_lib_save_LIBS
17899fi
17900echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17901echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17902if test $ac_cv_lib_svld_dlopen = yes; then
17903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17904else
17905 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17906echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17907if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910 ac_check_lib_save_LIBS=$LIBS
17911LIBS="-ldld $LIBS"
17912cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017913/* confdefs.h. */
17914_ACEOF
17915cat confdefs.h >>conftest.$ac_ext
17916cat >>conftest.$ac_ext <<_ACEOF
17917/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017918
17919/* Override any gcc2 internal prototype to avoid an error. */
17920#ifdef __cplusplus
17921extern "C"
17922#endif
17923/* We use char because int might match the return type of a gcc2
17924 builtin and then its argument prototype would still apply. */
17925char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017926int
17927main ()
17928{
17929dld_link ();
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934rm -f conftest.$ac_objext conftest$ac_exeext
17935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017936 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017943 { ac_try='test -z "$ac_cxx_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_cv_lib_dld_dld_link=yes
17957else
17958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017959sed 's/^/| /' conftest.$ac_ext >&5
17960
John Criswell47fdd832003-07-14 16:52:07 +000017961ac_cv_lib_dld_dld_link=no
17962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017963rm -f conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017965LIBS=$ac_check_lib_save_LIBS
17966fi
17967echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17968echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17969if test $ac_cv_lib_dld_dld_link = yes; then
17970 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17971fi
17972
17973
17974fi
17975
17976
17977fi
17978
17979
17980fi
17981
17982
17983fi
17984
17985
17986fi
17987
17988 ;;
17989 esac
17990
17991 if test "x$lt_cv_dlopen" != xno; then
17992 enable_dlopen=yes
17993 else
17994 enable_dlopen=no
17995 fi
17996
17997 case $lt_cv_dlopen in
17998 dlopen)
17999 save_CPPFLAGS="$CPPFLAGS"
18000 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18001
18002 save_LDFLAGS="$LDFLAGS"
18003 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18004
18005 save_LIBS="$LIBS"
18006 LIBS="$lt_cv_dlopen_libs $LIBS"
18007
18008 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18009echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18010if test "${lt_cv_dlopen_self+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18012else
18013 if test "$cross_compiling" = yes; then :
18014 lt_cv_dlopen_self=cross
18015else
18016 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18017 lt_status=$lt_dlunknown
18018 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +000018019#line 18019 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018020#include "confdefs.h"
18021
18022#if HAVE_DLFCN_H
18023#include <dlfcn.h>
18024#endif
18025
18026#include <stdio.h>
18027
18028#ifdef RTLD_GLOBAL
18029# define LT_DLGLOBAL RTLD_GLOBAL
18030#else
18031# ifdef DL_GLOBAL
18032# define LT_DLGLOBAL DL_GLOBAL
18033# else
18034# define LT_DLGLOBAL 0
18035# endif
18036#endif
18037
18038/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18039 find out it does not work in some platform. */
18040#ifndef LT_DLLAZY_OR_NOW
18041# ifdef RTLD_LAZY
18042# define LT_DLLAZY_OR_NOW RTLD_LAZY
18043# else
18044# ifdef DL_LAZY
18045# define LT_DLLAZY_OR_NOW DL_LAZY
18046# else
18047# ifdef RTLD_NOW
18048# define LT_DLLAZY_OR_NOW RTLD_NOW
18049# else
18050# ifdef DL_NOW
18051# define LT_DLLAZY_OR_NOW DL_NOW
18052# else
18053# define LT_DLLAZY_OR_NOW 0
18054# endif
18055# endif
18056# endif
18057# endif
18058#endif
18059
18060#ifdef __cplusplus
18061extern "C" void exit (int);
18062#endif
18063
18064void fnord() { int i=42;}
18065int main ()
18066{
18067 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18068 int status = $lt_dlunknown;
18069
18070 if (self)
18071 {
18072 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18073 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18074 /* dlclose (self); */
18075 }
18076
18077 exit (status);
18078}
18079EOF
18080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081 (eval $ac_link) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18085 (./conftest; exit; ) 2>/dev/null
18086 lt_status=$?
18087 case x$lt_status in
18088 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18089 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18090 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18091 esac
18092 else :
18093 # compilation failed
18094 lt_cv_dlopen_self=no
18095 fi
18096fi
18097rm -fr conftest*
18098
18099
18100fi
18101echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18102echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18103
18104 if test "x$lt_cv_dlopen_self" = xyes; then
18105 LDFLAGS="$LDFLAGS $link_static_flag"
18106 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18107echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18108if test "${lt_cv_dlopen_self_static+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 if test "$cross_compiling" = yes; then :
18112 lt_cv_dlopen_self_static=cross
18113else
18114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18115 lt_status=$lt_dlunknown
18116 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +000018117#line 18117 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018118#include "confdefs.h"
18119
18120#if HAVE_DLFCN_H
18121#include <dlfcn.h>
18122#endif
18123
18124#include <stdio.h>
18125
18126#ifdef RTLD_GLOBAL
18127# define LT_DLGLOBAL RTLD_GLOBAL
18128#else
18129# ifdef DL_GLOBAL
18130# define LT_DLGLOBAL DL_GLOBAL
18131# else
18132# define LT_DLGLOBAL 0
18133# endif
18134#endif
18135
18136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18137 find out it does not work in some platform. */
18138#ifndef LT_DLLAZY_OR_NOW
18139# ifdef RTLD_LAZY
18140# define LT_DLLAZY_OR_NOW RTLD_LAZY
18141# else
18142# ifdef DL_LAZY
18143# define LT_DLLAZY_OR_NOW DL_LAZY
18144# else
18145# ifdef RTLD_NOW
18146# define LT_DLLAZY_OR_NOW RTLD_NOW
18147# else
18148# ifdef DL_NOW
18149# define LT_DLLAZY_OR_NOW DL_NOW
18150# else
18151# define LT_DLLAZY_OR_NOW 0
18152# endif
18153# endif
18154# endif
18155# endif
18156#endif
18157
18158#ifdef __cplusplus
18159extern "C" void exit (int);
18160#endif
18161
18162void fnord() { int i=42;}
18163int main ()
18164{
18165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18166 int status = $lt_dlunknown;
18167
18168 if (self)
18169 {
18170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18172 /* dlclose (self); */
18173 }
18174
18175 exit (status);
18176}
18177EOF
18178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18179 (eval $ac_link) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18183 (./conftest; exit; ) 2>/dev/null
18184 lt_status=$?
18185 case x$lt_status in
18186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18188 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18189 esac
18190 else :
18191 # compilation failed
18192 lt_cv_dlopen_self_static=no
18193 fi
18194fi
18195rm -fr conftest*
18196
18197
18198fi
18199echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18200echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18201 fi
18202
18203 CPPFLAGS="$save_CPPFLAGS"
18204 LDFLAGS="$save_LDFLAGS"
18205 LIBS="$save_LIBS"
18206 ;;
18207 esac
18208
18209 case $lt_cv_dlopen_self in
18210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18211 *) enable_dlopen_self=unknown ;;
18212 esac
18213
18214 case $lt_cv_dlopen_self_static in
18215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18216 *) enable_dlopen_self_static=unknown ;;
18217 esac
18218fi
18219
18220
18221# The else clause should only fire when bootstrapping the
18222# libtool distribution, otherwise you forgot to ship ltmain.sh
18223# with your package, and you will get complaints that there are
18224# no rules to generate ltmain.sh.
18225if test -f "$ltmain"; then
18226 # See if we are running on zsh, and set the options which allow our commands through
18227 # without removal of \ escapes.
18228 if test -n "${ZSH_VERSION+set}" ; then
18229 setopt NO_GLOB_SUBST
18230 fi
18231 # Now quote all the things that may contain metacharacters while being
18232 # careful not to overquote the AC_SUBSTed values. We take copies of the
18233 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018234 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18235 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018236 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18237 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18238 deplibs_check_method reload_flag reload_cmds need_locks \
18239 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18240 lt_cv_sys_global_symbol_to_c_name_address \
18241 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18242 old_postinstall_cmds old_postuninstall_cmds \
18243 compiler_CXX \
18244 CC_CXX \
18245 LD_CXX \
18246 lt_prog_compiler_wl_CXX \
18247 lt_prog_compiler_pic_CXX \
18248 lt_prog_compiler_static_CXX \
18249 lt_prog_compiler_no_builtin_flag_CXX \
18250 export_dynamic_flag_spec_CXX \
18251 thread_safe_flag_spec_CXX \
18252 whole_archive_flag_spec_CXX \
18253 enable_shared_with_static_runtimes_CXX \
18254 old_archive_cmds_CXX \
18255 old_archive_from_new_cmds_CXX \
18256 predep_objects_CXX \
18257 postdep_objects_CXX \
18258 predeps_CXX \
18259 postdeps_CXX \
18260 compiler_lib_search_path_CXX \
18261 archive_cmds_CXX \
18262 archive_expsym_cmds_CXX \
18263 postinstall_cmds_CXX \
18264 postuninstall_cmds_CXX \
18265 old_archive_from_expsyms_cmds_CXX \
18266 allow_undefined_flag_CXX \
18267 no_undefined_flag_CXX \
18268 export_symbols_cmds_CXX \
18269 hardcode_libdir_flag_spec_CXX \
18270 hardcode_libdir_flag_spec_ld_CXX \
18271 hardcode_libdir_separator_CXX \
18272 hardcode_automatic_CXX \
18273 module_cmds_CXX \
18274 module_expsym_cmds_CXX \
18275 lt_cv_prog_compiler_c_o_CXX \
18276 exclude_expsyms_CXX \
18277 include_expsyms_CXX; do
18278
18279 case $var in
18280 old_archive_cmds_CXX | \
18281 old_archive_from_new_cmds_CXX | \
18282 archive_cmds_CXX | \
18283 archive_expsym_cmds_CXX | \
18284 module_cmds_CXX | \
18285 module_expsym_cmds_CXX | \
18286 old_archive_from_expsyms_cmds_CXX | \
18287 export_symbols_cmds_CXX | \
18288 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18289 postinstall_cmds | postuninstall_cmds | \
18290 old_postinstall_cmds | old_postuninstall_cmds | \
18291 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18292 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018293 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 +000018294 ;;
18295 *)
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18297 ;;
18298 esac
18299 done
18300
18301 case $lt_echo in
18302 *'\$0 --fallback-echo"')
18303 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18304 ;;
18305 esac
18306
18307cfgfile="$ofile"
18308
18309 cat <<__EOF__ >> "$cfgfile"
18310# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18311
18312# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18313
18314# Shell to use when invoking shell scripts.
18315SHELL=$lt_SHELL
18316
18317# Whether or not to build shared libraries.
18318build_libtool_libs=$enable_shared
18319
18320# Whether or not to build static libraries.
18321build_old_libs=$enable_static
18322
18323# Whether or not to add -lc for building shared libraries.
18324build_libtool_need_lc=$archive_cmds_need_lc_CXX
18325
18326# Whether or not to disallow shared libs when runtime libs are static
18327allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18328
18329# Whether or not to optimize for fast installation.
18330fast_install=$enable_fast_install
18331
18332# The host system.
18333host_alias=$host_alias
18334host=$host
18335
18336# An echo program that does not interpret backslashes.
18337echo=$lt_echo
18338
18339# The archiver.
18340AR=$lt_AR
18341AR_FLAGS=$lt_AR_FLAGS
18342
18343# A C compiler.
18344LTCC=$lt_LTCC
18345
18346# A language-specific compiler.
18347CC=$lt_compiler_CXX
18348
18349# Is the compiler the GNU C compiler?
18350with_gcc=$GCC_CXX
18351
18352# An ERE matcher.
18353EGREP=$lt_EGREP
18354
18355# The linker used to build libraries.
18356LD=$lt_LD_CXX
18357
18358# Whether we need hard or soft links.
18359LN_S=$lt_LN_S
18360
18361# A BSD-compatible nm program.
18362NM=$lt_NM
18363
18364# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018365STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018366
18367# Used to examine libraries when file_magic_cmd begins "file"
18368MAGIC_CMD=$MAGIC_CMD
18369
18370# Used on cygwin: DLL creation program.
18371DLLTOOL="$DLLTOOL"
18372
18373# Used on cygwin: object dumper.
18374OBJDUMP="$OBJDUMP"
18375
18376# Used on cygwin: assembler.
18377AS="$AS"
18378
18379# The name of the directory that contains temporary libtool files.
18380objdir=$objdir
18381
18382# How to create reloadable object files.
18383reload_flag=$lt_reload_flag
18384reload_cmds=$lt_reload_cmds
18385
18386# How to pass a linker flag through the compiler.
18387wl=$lt_lt_prog_compiler_wl_CXX
18388
18389# Object file suffix (normally "o").
18390objext="$ac_objext"
18391
18392# Old archive suffix (normally "a").
18393libext="$libext"
18394
18395# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018396shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018397
18398# Executable file suffix (normally "").
18399exeext="$exeext"
18400
18401# Additional compiler flags for building library objects.
18402pic_flag=$lt_lt_prog_compiler_pic_CXX
18403pic_mode=$pic_mode
18404
18405# What is the maximum length of a command?
18406max_cmd_len=$lt_cv_sys_max_cmd_len
18407
18408# Does compiler simultaneously support -c and -o options?
18409compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18410
18411# Must we lock files when doing compilation ?
18412need_locks=$lt_need_locks
18413
18414# Do we need the lib prefix for modules?
18415need_lib_prefix=$need_lib_prefix
18416
18417# Do we need a version for libraries?
18418need_version=$need_version
18419
18420# Whether dlopen is supported.
18421dlopen_support=$enable_dlopen
18422
18423# Whether dlopen of programs is supported.
18424dlopen_self=$enable_dlopen_self
18425
18426# Whether dlopen of statically linked programs is supported.
18427dlopen_self_static=$enable_dlopen_self_static
18428
18429# Compiler flag to prevent dynamic linking.
18430link_static_flag=$lt_lt_prog_compiler_static_CXX
18431
18432# Compiler flag to turn off builtin functions.
18433no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18434
18435# Compiler flag to allow reflexive dlopens.
18436export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18437
18438# Compiler flag to generate shared objects directly from archives.
18439whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18440
18441# Compiler flag to generate thread-safe objects.
18442thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18443
18444# Library versioning type.
18445version_type=$version_type
18446
18447# Format of library name prefix.
18448libname_spec=$lt_libname_spec
18449
18450# List of archive names. First name is the real one, the rest are links.
18451# The last name is the one that the linker finds with -lNAME.
18452library_names_spec=$lt_library_names_spec
18453
18454# The coded name of the library, if different from the real name.
18455soname_spec=$lt_soname_spec
18456
18457# Commands used to build and install an old-style archive.
18458RANLIB=$lt_RANLIB
18459old_archive_cmds=$lt_old_archive_cmds_CXX
18460old_postinstall_cmds=$lt_old_postinstall_cmds
18461old_postuninstall_cmds=$lt_old_postuninstall_cmds
18462
18463# Create an old-style archive from a shared archive.
18464old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18465
18466# Create a temporary old-style archive to link instead of a shared archive.
18467old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18468
18469# Commands used to build and install a shared archive.
18470archive_cmds=$lt_archive_cmds_CXX
18471archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18472postinstall_cmds=$lt_postinstall_cmds
18473postuninstall_cmds=$lt_postuninstall_cmds
18474
18475# Commands used to build a loadable module (assumed same as above if empty)
18476module_cmds=$lt_module_cmds_CXX
18477module_expsym_cmds=$lt_module_expsym_cmds_CXX
18478
18479# Commands to strip libraries.
18480old_striplib=$lt_old_striplib
18481striplib=$lt_striplib
18482
18483# Dependencies to place before the objects being linked to create a
18484# shared library.
18485predep_objects=$lt_predep_objects_CXX
18486
18487# Dependencies to place after the objects being linked to create a
18488# shared library.
18489postdep_objects=$lt_postdep_objects_CXX
18490
18491# Dependencies to place before the objects being linked to create a
18492# shared library.
18493predeps=$lt_predeps_CXX
18494
18495# Dependencies to place after the objects being linked to create a
18496# shared library.
18497postdeps=$lt_postdeps_CXX
18498
18499# The library search path used internally by the compiler when linking
18500# a shared library.
18501compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18502
18503# Method to check whether dependent libraries are shared objects.
18504deplibs_check_method=$lt_deplibs_check_method
18505
18506# Command to use when deplibs_check_method == file_magic.
18507file_magic_cmd=$lt_file_magic_cmd
18508
18509# Flag that allows shared libraries with undefined symbols to be built.
18510allow_undefined_flag=$lt_allow_undefined_flag_CXX
18511
18512# Flag that forces no undefined symbols.
18513no_undefined_flag=$lt_no_undefined_flag_CXX
18514
18515# Commands used to finish a libtool library installation in a directory.
18516finish_cmds=$lt_finish_cmds
18517
18518# Same as above, but a single script fragment to be evaled but not shown.
18519finish_eval=$lt_finish_eval
18520
18521# Take the output of nm and produce a listing of raw symbols and C names.
18522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18523
18524# Transform the output of nm in a proper C declaration
18525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18526
18527# Transform the output of nm in a C name address pair
18528global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18529
18530# This is the shared library runtime path variable.
18531runpath_var=$runpath_var
18532
18533# This is the shared library path variable.
18534shlibpath_var=$shlibpath_var
18535
18536# Is shlibpath searched before the hard-coded library search path?
18537shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18538
18539# How to hardcode a shared library path into an executable.
18540hardcode_action=$hardcode_action_CXX
18541
18542# Whether we should hardcode library paths into libraries.
18543hardcode_into_libs=$hardcode_into_libs
18544
18545# Flag to hardcode \$libdir into a binary during linking.
18546# This must work even if \$libdir does not exist.
18547hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18548
18549# If ld is used when linking, flag to hardcode \$libdir into
18550# a binary during linking. This must work even if \$libdir does
18551# not exist.
18552hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18553
18554# Whether we need a single -rpath flag with a separated argument.
18555hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18556
18557# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18558# resulting binary.
18559hardcode_direct=$hardcode_direct_CXX
18560
18561# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18562# resulting binary.
18563hardcode_minus_L=$hardcode_minus_L_CXX
18564
18565# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18566# the resulting binary.
18567hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18568
18569# Set to yes if building a shared library automatically hardcodes DIR into the library
18570# and all subsequent libraries and executables linked against it.
18571hardcode_automatic=$hardcode_automatic_CXX
18572
18573# Variables whose values should be saved in libtool wrapper scripts and
18574# restored at relink time.
18575variables_saved_for_relink="$variables_saved_for_relink"
18576
18577# Whether libtool must link a program against all its dependency libraries.
18578link_all_deplibs=$link_all_deplibs_CXX
18579
18580# Compile-time system search path for libraries
18581sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18582
18583# Run-time system search path for libraries
18584sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18585
18586# Fix the shell variable \$srcfile for the compiler.
18587fix_srcfile_path="$fix_srcfile_path_CXX"
18588
18589# Set to yes if exported symbols are required.
18590always_export_symbols=$always_export_symbols_CXX
18591
18592# The commands to list exported symbols.
18593export_symbols_cmds=$lt_export_symbols_cmds_CXX
18594
18595# The commands to extract the exported symbol list from a shared archive.
18596extract_expsyms_cmds=$lt_extract_expsyms_cmds
18597
18598# Symbols that should not be listed in the preloaded symbols.
18599exclude_expsyms=$lt_exclude_expsyms_CXX
18600
18601# Symbols that must always be exported.
18602include_expsyms=$lt_include_expsyms_CXX
18603
18604# ### END LIBTOOL TAG CONFIG: $tagname
18605
18606__EOF__
18607
18608
18609else
18610 # If there is no Makefile yet, we rely on a make rule to execute
18611 # `config.status --recheck' to rerun these tests and create the
18612 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018613 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18614 if test -f "$ltmain_in"; then
18615 test -f Makefile && make "$ltmain"
18616 fi
John Criswell47fdd832003-07-14 16:52:07 +000018617fi
18618
18619
18620ac_ext=c
18621ac_cpp='$CPP $CPPFLAGS'
18622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624ac_compiler_gnu=$ac_cv_c_compiler_gnu
18625
18626CC=$lt_save_CC
18627LDCXX=$LD
18628LD=$lt_save_LD
18629GCC=$lt_save_GCC
18630with_gnu_ldcxx=$with_gnu_ld
18631with_gnu_ld=$lt_save_with_gnu_ld
18632lt_cv_path_LDCXX=$lt_cv_path_LD
18633lt_cv_path_LD=$lt_save_path_LD
18634lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18635lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18636
18637 else
18638 tagname=""
18639 fi
18640 ;;
18641
18642 F77)
18643 if test -n "$F77" && test "X$F77" != "Xno"; then
18644
18645ac_ext=f
18646ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18647ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18648ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18649
18650
18651archive_cmds_need_lc_F77=no
18652allow_undefined_flag_F77=
18653always_export_symbols_F77=no
18654archive_expsym_cmds_F77=
18655export_dynamic_flag_spec_F77=
18656hardcode_direct_F77=no
18657hardcode_libdir_flag_spec_F77=
18658hardcode_libdir_flag_spec_ld_F77=
18659hardcode_libdir_separator_F77=
18660hardcode_minus_L_F77=no
18661hardcode_automatic_F77=no
18662module_cmds_F77=
18663module_expsym_cmds_F77=
18664link_all_deplibs_F77=unknown
18665old_archive_cmds_F77=$old_archive_cmds
18666no_undefined_flag_F77=
18667whole_archive_flag_spec_F77=
18668enable_shared_with_static_runtimes_F77=no
18669
18670# Source file extension for f77 test sources.
18671ac_ext=f
18672
18673# Object file extension for compiled f77 test sources.
18674objext=o
18675objext_F77=$objext
18676
18677# Code to be used in simple compile tests
18678lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18679
18680# Code to be used in simple link tests
18681lt_simple_link_test_code=" program t\n end\n"
18682
18683# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18684
18685# If no C compiler was specified, use CC.
18686LTCC=${LTCC-"$CC"}
18687
18688# Allow CC to be a program name with arguments.
18689compiler=$CC
18690
18691
18692# Allow CC to be a program name with arguments.
18693lt_save_CC="$CC"
18694CC=${F77-"f77"}
18695compiler=$CC
18696compiler_F77=$CC
18697cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18698
18699echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18700echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18701echo "$as_me:$LINENO: result: $can_build_shared" >&5
18702echo "${ECHO_T}$can_build_shared" >&6
18703
18704echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18705echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18706test "$can_build_shared" = "no" && enable_shared=no
18707
18708# On AIX, shared libraries and static libraries use the same namespace, and
18709# are all built from PIC.
18710case "$host_os" in
18711aix3*)
18712 test "$enable_shared" = yes && enable_static=no
18713 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018715 postinstall_cmds='$RANLIB $lib'
18716 fi
18717 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018718aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018719 test "$enable_shared" = yes && enable_static=no
18720 ;;
18721esac
18722echo "$as_me:$LINENO: result: $enable_shared" >&5
18723echo "${ECHO_T}$enable_shared" >&6
18724
18725echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18726echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18727# Make sure either enable_shared or enable_static is yes.
18728test "$enable_shared" = yes || enable_static=yes
18729echo "$as_me:$LINENO: result: $enable_static" >&5
18730echo "${ECHO_T}$enable_static" >&6
18731
18732test "$ld_shlibs_F77" = no && can_build_shared=no
18733
18734GCC_F77="$G77"
18735LD_F77="$LD"
18736
18737lt_prog_compiler_wl_F77=
18738lt_prog_compiler_pic_F77=
18739lt_prog_compiler_static_F77=
18740
18741echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18742echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18743
18744 if test "$GCC" = yes; then
18745 lt_prog_compiler_wl_F77='-Wl,'
18746 lt_prog_compiler_static_F77='-static'
18747
18748 case $host_os in
18749 aix*)
18750 # All AIX code is PIC.
18751 if test "$host_cpu" = ia64; then
18752 # AIX 5 now supports IA64 processor
18753 lt_prog_compiler_static_F77='-Bstatic'
18754 fi
18755 ;;
18756
18757 amigaos*)
18758 # FIXME: we need at least 68020 code to build shared libraries, but
18759 # adding the `-m68020' flag to GCC prevents building anything better,
18760 # like `-m68040'.
18761 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18762 ;;
18763
18764 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18765 # PIC is the default for these OSes.
18766 ;;
18767
18768 mingw* | pw32* | os2*)
18769 # This hack is so that the source file can tell whether it is being
18770 # built for inclusion in a dll (and should export symbols for example).
18771 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18772 ;;
18773
18774 darwin* | rhapsody*)
18775 # PIC is the default on this platform
18776 # Common symbols not allowed in MH_DYLIB files
18777 lt_prog_compiler_pic_F77='-fno-common'
18778 ;;
18779
18780 msdosdjgpp*)
18781 # Just because we use GCC doesn't mean we suddenly get shared libraries
18782 # on systems that don't support them.
18783 lt_prog_compiler_can_build_shared_F77=no
18784 enable_shared=no
18785 ;;
18786
18787 sysv4*MP*)
18788 if test -d /usr/nec; then
18789 lt_prog_compiler_pic_F77=-Kconform_pic
18790 fi
18791 ;;
18792
18793 hpux*)
18794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18795 # not for PA HP-UX.
18796 case "$host_cpu" in
18797 hppa*64*|ia64*)
18798 # +Z the default
18799 ;;
18800 *)
18801 lt_prog_compiler_pic_F77='-fPIC'
18802 ;;
18803 esac
18804 ;;
18805
18806 *)
18807 lt_prog_compiler_pic_F77='-fPIC'
18808 ;;
18809 esac
18810 else
18811 # PORTME Check for flag to pass linker flags through the system compiler.
18812 case $host_os in
18813 aix*)
18814 lt_prog_compiler_wl_F77='-Wl,'
18815 if test "$host_cpu" = ia64; then
18816 # AIX 5 now supports IA64 processor
18817 lt_prog_compiler_static_F77='-Bstatic'
18818 else
18819 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18820 fi
18821 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018822 darwin*)
18823 # PIC is the default on this platform
18824 # Common symbols not allowed in MH_DYLIB files
18825 case "$cc_basename" in
18826 xlc*)
18827 lt_prog_compiler_pic_F77='-qnocommon'
18828 lt_prog_compiler_wl_F77='-Wl,'
18829 ;;
18830 esac
18831 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018832
18833 mingw* | pw32* | os2*)
18834 # This hack is so that the source file can tell whether it is being
18835 # built for inclusion in a dll (and should export symbols for example).
18836 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18837 ;;
18838
18839 hpux9* | hpux10* | hpux11*)
18840 lt_prog_compiler_wl_F77='-Wl,'
18841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18842 # not for PA HP-UX.
18843 case "$host_cpu" in
18844 hppa*64*|ia64*)
18845 # +Z the default
18846 ;;
18847 *)
18848 lt_prog_compiler_pic_F77='+Z'
18849 ;;
18850 esac
18851 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18852 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18853 ;;
18854
18855 irix5* | irix6* | nonstopux*)
18856 lt_prog_compiler_wl_F77='-Wl,'
18857 # PIC (with -KPIC) is the default.
18858 lt_prog_compiler_static_F77='-non_shared'
18859 ;;
18860
18861 newsos6)
18862 lt_prog_compiler_pic_F77='-KPIC'
18863 lt_prog_compiler_static_F77='-Bstatic'
18864 ;;
18865
18866 linux*)
18867 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018868 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018869 lt_prog_compiler_wl_F77='-Wl,'
18870 lt_prog_compiler_pic_F77='-KPIC'
18871 lt_prog_compiler_static_F77='-static'
18872 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018873 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018874 lt_prog_compiler_wl_F77='-Wl,'
18875 # All Alpha code is PIC.
18876 lt_prog_compiler_static_F77='-non_shared'
18877 ;;
18878 esac
18879 ;;
18880
18881 osf3* | osf4* | osf5*)
18882 lt_prog_compiler_wl_F77='-Wl,'
18883 # All OSF/1 code is PIC.
18884 lt_prog_compiler_static_F77='-non_shared'
18885 ;;
18886
18887 sco3.2v5*)
18888 lt_prog_compiler_pic_F77='-Kpic'
18889 lt_prog_compiler_static_F77='-dn'
18890 ;;
18891
18892 solaris*)
18893 lt_prog_compiler_wl_F77='-Wl,'
18894 lt_prog_compiler_pic_F77='-KPIC'
18895 lt_prog_compiler_static_F77='-Bstatic'
18896 ;;
18897
18898 sunos4*)
18899 lt_prog_compiler_wl_F77='-Qoption ld '
18900 lt_prog_compiler_pic_F77='-PIC'
18901 lt_prog_compiler_static_F77='-Bstatic'
18902 ;;
18903
18904 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18905 lt_prog_compiler_wl_F77='-Wl,'
18906 lt_prog_compiler_pic_F77='-KPIC'
18907 lt_prog_compiler_static_F77='-Bstatic'
18908 ;;
18909
18910 sysv4*MP*)
18911 if test -d /usr/nec ;then
18912 lt_prog_compiler_pic_F77='-Kconform_pic'
18913 lt_prog_compiler_static_F77='-Bstatic'
18914 fi
18915 ;;
18916
18917 uts4*)
18918 lt_prog_compiler_pic_F77='-pic'
18919 lt_prog_compiler_static_F77='-Bstatic'
18920 ;;
18921
18922 *)
18923 lt_prog_compiler_can_build_shared_F77=no
18924 ;;
18925 esac
18926 fi
18927
18928echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18929echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18930
18931#
18932# Check to make sure the PIC flag actually works.
18933#
18934if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018935
18936echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018937echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18938if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18940else
18941 lt_prog_compiler_pic_works_F77=no
18942 ac_outfile=conftest.$ac_objext
18943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18944 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18945 # Insert the option either (1) after the last *FLAGS variable, or
18946 # (2) before a word containing "conftest.", or (3) at the end.
18947 # Note that $ac_compile itself does not contain backslashes and begins
18948 # with a dollar sign (not a hyphen), so the echo should work correctly.
18949 # The option is referenced via a variable to avoid confusing sed.
18950 lt_compile=`echo "$ac_compile" | $SED \
18951 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18953 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000018954 (eval echo "\"\$as_me:18954: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018955 (eval "$lt_compile" 2>conftest.err)
18956 ac_status=$?
18957 cat conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000018958 echo "$as_me:18958: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018959 if (exit $ac_status) && test -s "$ac_outfile"; then
18960 # The compiler can only warn and ignore the option if not recognized
18961 # So say no if there are warnings
18962 if test ! -s conftest.err; then
18963 lt_prog_compiler_pic_works_F77=yes
18964 fi
18965 fi
18966 $rm conftest*
18967
18968fi
18969echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18970echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18971
18972if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18973 case $lt_prog_compiler_pic_F77 in
18974 "" | " "*) ;;
18975 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18976 esac
18977else
18978 lt_prog_compiler_pic_F77=
18979 lt_prog_compiler_can_build_shared_F77=no
18980fi
18981
18982fi
18983case "$host_os" in
18984 # For platforms which do not support PIC, -DPIC is meaningless:
18985 *djgpp*)
18986 lt_prog_compiler_pic_F77=
18987 ;;
18988 *)
18989 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18990 ;;
18991esac
18992
18993echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18994echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18995if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998 lt_cv_prog_compiler_c_o_F77=no
18999 $rm -r conftest 2>/dev/null
19000 mkdir conftest
19001 cd conftest
19002 mkdir out
19003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19004
John Criswell47fdd832003-07-14 16:52:07 +000019005 lt_compiler_flag="-o out/conftest2.$ac_objext"
19006 # Insert the option either (1) after the last *FLAGS variable, or
19007 # (2) before a word containing "conftest.", or (3) at the end.
19008 # Note that $ac_compile itself does not contain backslashes and begins
19009 # with a dollar sign (not a hyphen), so the echo should work correctly.
19010 lt_compile=`echo "$ac_compile" | $SED \
19011 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19013 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000019014 (eval echo "\"\$as_me:19014: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019015 (eval "$lt_compile" 2>out/conftest.err)
19016 ac_status=$?
19017 cat out/conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000019018 echo "$as_me:19018: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19020 then
19021 # The compiler can only warn and ignore the option if not recognized
19022 # So say no if there are warnings
19023 if test ! -s out/conftest.err; then
19024 lt_cv_prog_compiler_c_o_F77=yes
19025 fi
19026 fi
19027 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019028 $rm conftest*
19029 # SGI C++ compiler will create directory out/ii_files/ for
19030 # template instantiation
19031 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19032 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019033 cd ..
19034 rmdir conftest
19035 $rm conftest*
19036
19037fi
19038echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19039echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19040
19041
19042hard_links="nottested"
19043if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19044 # do not overwrite the value of need_locks provided by the user
19045 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19046echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19047 hard_links=yes
19048 $rm conftest*
19049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19050 touch conftest.a
19051 ln conftest.a conftest.b 2>&5 || hard_links=no
19052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19053 echo "$as_me:$LINENO: result: $hard_links" >&5
19054echo "${ECHO_T}$hard_links" >&6
19055 if test "$hard_links" = no; then
19056 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19057echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19058 need_locks=warn
19059 fi
19060else
19061 need_locks=no
19062fi
19063
19064echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19065echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19066
19067 runpath_var=
19068 allow_undefined_flag_F77=
19069 enable_shared_with_static_runtimes_F77=no
19070 archive_cmds_F77=
19071 archive_expsym_cmds_F77=
19072 old_archive_From_new_cmds_F77=
19073 old_archive_from_expsyms_cmds_F77=
19074 export_dynamic_flag_spec_F77=
19075 whole_archive_flag_spec_F77=
19076 thread_safe_flag_spec_F77=
19077 hardcode_libdir_flag_spec_F77=
19078 hardcode_libdir_flag_spec_ld_F77=
19079 hardcode_libdir_separator_F77=
19080 hardcode_direct_F77=no
19081 hardcode_minus_L_F77=no
19082 hardcode_shlibpath_var_F77=unsupported
19083 link_all_deplibs_F77=unknown
19084 hardcode_automatic_F77=no
19085 module_cmds_F77=
19086 module_expsym_cmds_F77=
19087 always_export_symbols_F77=no
19088 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19089 # include_expsyms should be a list of space-separated symbols to be *always*
19090 # included in the symbol list
19091 include_expsyms_F77=
19092 # exclude_expsyms can be an extended regexp of symbols to exclude
19093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19095 # as well as any symbol that contains `d'.
19096 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19098 # platforms (ab)use it in PIC code, but their linkers get confused if
19099 # the symbol is explicitly referenced. Since portable code cannot
19100 # rely on this symbol name, it's probably fine to never include it in
19101 # preloaded symbol tables.
19102 extract_expsyms_cmds=
19103
19104 case $host_os in
19105 cygwin* | mingw* | pw32*)
19106 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19107 # When not using gcc, we currently assume that we are using
19108 # Microsoft Visual C++.
19109 if test "$GCC" != yes; then
19110 with_gnu_ld=no
19111 fi
19112 ;;
19113 openbsd*)
19114 with_gnu_ld=no
19115 ;;
19116 esac
19117
19118 ld_shlibs_F77=yes
19119 if test "$with_gnu_ld" = yes; then
19120 # If archive_cmds runs LD, not CC, wlarc should be empty
19121 wlarc='${wl}'
19122
19123 # See if GNU ld supports shared libraries.
19124 case $host_os in
19125 aix3* | aix4* | aix5*)
19126 # On AIX/PPC, the GNU linker is very broken
19127 if test "$host_cpu" != ia64; then
19128 ld_shlibs_F77=no
19129 cat <<EOF 1>&2
19130
19131*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19132*** to be unable to reliably create shared libraries on AIX.
19133*** Therefore, libtool is disabling shared libraries support. If you
19134*** really care for shared libraries, you may want to modify your PATH
19135*** so that a non-GNU linker is found, and then restart.
19136
19137EOF
19138 fi
19139 ;;
19140
19141 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019142 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 +000019143 hardcode_libdir_flag_spec_F77='-L$libdir'
19144 hardcode_minus_L_F77=yes
19145
19146 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19147 # that the semantics of dynamic libraries on AmigaOS, at least up
19148 # to version 4, is to share data among multiple programs linked
19149 # with the same dynamic library. Since this doesn't match the
19150 # behavior of shared libraries on other platforms, we can't use
19151 # them.
19152 ld_shlibs_F77=no
19153 ;;
19154
19155 beos*)
19156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19157 allow_undefined_flag_F77=unsupported
19158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19159 # support --undefined. This deserves some investigation. FIXME
19160 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 else
19162 ld_shlibs_F77=no
19163 fi
19164 ;;
19165
19166 cygwin* | mingw* | pw32*)
19167 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19168 # as there is no search path for DLLs.
19169 hardcode_libdir_flag_spec_F77='-L$libdir'
19170 allow_undefined_flag_F77=unsupported
19171 always_export_symbols_F77=no
19172 enable_shared_with_static_runtimes_F77=yes
19173 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19174
19175 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19176 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19177 # If the export-symbols file already is a .def file (1st line
19178 # is EXPORTS), use it as is; otherwise, prepend...
19179 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19180 cp $export_symbols $output_objdir/$soname.def;
19181 else
19182 echo EXPORTS > $output_objdir/$soname.def;
19183 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019184 fi~
19185 $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 +000019186 else
19187 ld_shlibs=no
19188 fi
19189 ;;
19190
19191 netbsd*)
19192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19193 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19194 wlarc=
19195 else
19196 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19197 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19198 fi
19199 ;;
19200
19201 solaris* | sysv5*)
19202 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19203 ld_shlibs_F77=no
19204 cat <<EOF 1>&2
19205
19206*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19207*** create shared libraries on Solaris systems. Therefore, libtool
19208*** is disabling shared libraries support. We urge you to upgrade GNU
19209*** binutils to release 2.9.1 or newer. Another option is to modify
19210*** your PATH or compiler configuration so that the native linker is
19211*** used, and then restart.
19212
19213EOF
19214 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19215 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19217 else
19218 ld_shlibs_F77=no
19219 fi
19220 ;;
19221
19222 sunos4*)
19223 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19224 wlarc=
19225 hardcode_direct_F77=yes
19226 hardcode_shlibpath_var_F77=no
19227 ;;
19228
Reid Spencer2706f8c2004-09-19 23:53:36 +000019229 linux*)
19230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19231 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19232 archive_cmds_F77="$tmp_archive_cmds"
19233 supports_anon_versioning=no
19234 case `$LD -v 2>/dev/null` in
19235 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19236 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19237 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19238 *\ 2.11.*) ;; # other 2.11 versions
19239 *) supports_anon_versioning=yes ;;
19240 esac
19241 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019242 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19243cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19244$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019245 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19246 else
19247 archive_expsym_cmds_F77="$tmp_archive_cmds"
19248 fi
19249 else
19250 ld_shlibs_F77=no
19251 fi
19252 ;;
19253
John Criswell47fdd832003-07-14 16:52:07 +000019254 *)
19255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19258 else
19259 ld_shlibs_F77=no
19260 fi
19261 ;;
19262 esac
19263
19264 if test "$ld_shlibs_F77" = yes; then
19265 runpath_var=LD_RUN_PATH
19266 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19268 # ancient GNU ld didn't support --whole-archive et. al.
19269 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19270 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19271 else
19272 whole_archive_flag_spec_F77=
19273 fi
19274 fi
19275 else
19276 # PORTME fill in a description of your system's linker (not GNU ld)
19277 case $host_os in
19278 aix3*)
19279 allow_undefined_flag_F77=unsupported
19280 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019281 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 +000019282 # Note: this linker hardcodes the directories in LIBPATH if there
19283 # are no directories specified by -L.
19284 hardcode_minus_L_F77=yes
19285 if test "$GCC" = yes && test -z "$link_static_flag"; then
19286 # Neither direct hardcoding nor static linking is supported with a
19287 # broken collect2.
19288 hardcode_direct_F77=unsupported
19289 fi
19290 ;;
19291
19292 aix4* | aix5*)
19293 if test "$host_cpu" = ia64; then
19294 # On IA64, the linker does run time linking by default, so we don't
19295 # have to do anything special.
19296 aix_use_runtimelinking=no
19297 exp_sym_flag='-Bexport'
19298 no_entry_flag=""
19299 else
19300 # If we're using GNU nm, then we don't want the "-C" option.
19301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19302 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19303 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'
19304 else
19305 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'
19306 fi
19307 aix_use_runtimelinking=no
19308
19309 # Test if we are trying to use run time linking or normal
19310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19311 # need to do runtime linking.
19312 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19313 for ld_flag in $LDFLAGS; do
19314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19315 aix_use_runtimelinking=yes
19316 break
19317 fi
19318 done
19319 esac
19320
19321 exp_sym_flag='-bexport'
19322 no_entry_flag='-bnoentry'
19323 fi
19324
19325 # When large executables or shared objects are built, AIX ld can
19326 # have problems creating the table of contents. If linking a library
19327 # or program results in "error TOC overflow" add -mminimal-toc to
19328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19330
19331 archive_cmds_F77=''
19332 hardcode_direct_F77=yes
19333 hardcode_libdir_separator_F77=':'
19334 link_all_deplibs_F77=yes
19335
19336 if test "$GCC" = yes; then
19337 case $host_os in aix4.012|aix4.012.*)
19338 # We only want to do this on AIX 4.2 and lower, the check
19339 # below for broken collect2 doesn't work under 4.3+
19340 collect2name=`${CC} -print-prog-name=collect2`
19341 if test -f "$collect2name" && \
19342 strings "$collect2name" | grep resolve_lib_name >/dev/null
19343 then
19344 # We have reworked collect2
19345 hardcode_direct_F77=yes
19346 else
19347 # We have old collect2
19348 hardcode_direct_F77=unsupported
19349 # It fails to find uninstalled libraries when the uninstalled
19350 # path is not listed in the libpath. Setting hardcode_minus_L
19351 # to unsupported forces relinking
19352 hardcode_minus_L_F77=yes
19353 hardcode_libdir_flag_spec_F77='-L$libdir'
19354 hardcode_libdir_separator_F77=
19355 fi
19356 esac
19357 shared_flag='-shared'
19358 else
19359 # not using gcc
19360 if test "$host_cpu" = ia64; then
19361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19362 # chokes on -Wl,-G. The following line is correct:
19363 shared_flag='-G'
19364 else
19365 if test "$aix_use_runtimelinking" = yes; then
19366 shared_flag='${wl}-G'
19367 else
19368 shared_flag='${wl}-bM:SRE'
19369 fi
19370 fi
19371 fi
19372
19373 # It seems that -bexpall does not export symbols beginning with
19374 # underscore (_), so it is better to generate a list of symbols to export.
19375 always_export_symbols_F77=yes
19376 if test "$aix_use_runtimelinking" = yes; then
19377 # Warning - without using the other runtime loading flags (-brtl),
19378 # -berok will link without error, but may produce a broken library.
19379 allow_undefined_flag_F77='-berok'
19380 # Determine the default libpath from the value encoded in an empty executable.
19381 cat >conftest.$ac_ext <<_ACEOF
19382 program main
19383
19384 end
19385_ACEOF
19386rm -f conftest.$ac_objext conftest$ac_exeext
19387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019388 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019395 { ac_try='test -z "$ac_f77_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408
19409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19410}'`
19411# Check for a 64-bit object if we didn't find anything.
19412if 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; }
19413}'`; fi
19414else
19415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019416sed 's/^/| /' conftest.$ac_ext >&5
19417
John Criswell47fdd832003-07-14 16:52:07 +000019418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019419rm -f conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19422
19423 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19424 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"
19425 else
19426 if test "$host_cpu" = ia64; then
19427 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19428 allow_undefined_flag_F77="-z nodefs"
19429 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"
19430 else
19431 # Determine the default libpath from the value encoded in an empty executable.
19432 cat >conftest.$ac_ext <<_ACEOF
19433 program main
19434
19435 end
19436_ACEOF
19437rm -f conftest.$ac_objext conftest$ac_exeext
19438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019439 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019446 { ac_try='test -z "$ac_f77_werror_flag"
19447 || test ! -s conftest.err'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459
19460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19461}'`
19462# Check for a 64-bit object if we didn't find anything.
19463if 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; }
19464}'`; fi
19465else
19466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019467sed 's/^/| /' conftest.$ac_ext >&5
19468
John Criswell47fdd832003-07-14 16:52:07 +000019469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019470rm -f conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19473
19474 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19475 # Warning - without using the other run time loading flags,
19476 # -berok will link without error, but may produce a broken library.
19477 no_undefined_flag_F77=' ${wl}-bernotok'
19478 allow_undefined_flag_F77=' ${wl}-berok'
19479 # -bexpall does not export symbols beginning with underscore (_)
19480 always_export_symbols_F77=yes
19481 # Exported symbols can be pulled into shared objects from archives
19482 whole_archive_flag_spec_F77=' '
19483 archive_cmds_need_lc_F77=yes
19484 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019485 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 +000019486 fi
19487 fi
19488 ;;
19489
19490 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019491 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 +000019492 hardcode_libdir_flag_spec_F77='-L$libdir'
19493 hardcode_minus_L_F77=yes
19494 # see comment about different semantics on the GNU ld section
19495 ld_shlibs_F77=no
19496 ;;
19497
Reid Spencer2706f8c2004-09-19 23:53:36 +000019498 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019499 export_dynamic_flag_spec_F77=-rdynamic
19500 ;;
19501
19502 cygwin* | mingw* | pw32*)
19503 # When not using gcc, we currently assume that we are using
19504 # Microsoft Visual C++.
19505 # hardcode_libdir_flag_spec is actually meaningless, as there is
19506 # no search path for DLLs.
19507 hardcode_libdir_flag_spec_F77=' '
19508 allow_undefined_flag_F77=unsupported
19509 # Tell ltmain to make .lib files, not .a files.
19510 libext=lib
19511 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019512 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019513 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019514 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 +000019515 # The linker will automatically build a .lib file if we build a DLL.
19516 old_archive_From_new_cmds_F77='true'
19517 # FIXME: Should let the user specify the lib program.
19518 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19519 fix_srcfile_path='`cygpath -w "$srcfile"`'
19520 enable_shared_with_static_runtimes_F77=yes
19521 ;;
19522
19523 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019524 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019525 rhapsody* | darwin1.[012])
19526 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19527 ;;
19528 *) # Darwin 1.3 on
19529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19530 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19531 else
19532 case ${MACOSX_DEPLOYMENT_TARGET} in
19533 10.[012])
19534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19535 ;;
19536 10.*)
19537 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19538 ;;
19539 esac
19540 fi
19541 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019542 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019543 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019544 hardcode_direct_F77=no
19545 hardcode_automatic_F77=yes
19546 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019547 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019548 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019549 if test "$GCC" = yes ; then
19550 output_verbose_link_cmd='echo'
19551 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19552 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19553 # 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 +000019554 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}'
19555 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 +000019556 else
19557 case "$cc_basename" in
19558 xlc*)
19559 output_verbose_link_cmd='echo'
19560 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19561 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19562 # 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 +000019563 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}'
19564 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 +000019565 ;;
19566 *)
19567 ld_shlibs_F77=no
19568 ;;
19569 esac
John Criswell47fdd832003-07-14 16:52:07 +000019570 fi
19571 ;;
19572
19573 dgux*)
19574 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19575 hardcode_libdir_flag_spec_F77='-L$libdir'
19576 hardcode_shlibpath_var_F77=no
19577 ;;
19578
19579 freebsd1*)
19580 ld_shlibs_F77=no
19581 ;;
19582
19583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19584 # support. Future versions do this automatically, but an explicit c++rt0.o
19585 # does not break anything, and helps significantly (at the cost of a little
19586 # extra space).
19587 freebsd2.2*)
19588 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19589 hardcode_libdir_flag_spec_F77='-R$libdir'
19590 hardcode_direct_F77=yes
19591 hardcode_shlibpath_var_F77=no
19592 ;;
19593
19594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19595 freebsd2*)
19596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19597 hardcode_direct_F77=yes
19598 hardcode_minus_L_F77=yes
19599 hardcode_shlibpath_var_F77=no
19600 ;;
19601
19602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019603 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019604 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19605 hardcode_libdir_flag_spec_F77='-R$libdir'
19606 hardcode_direct_F77=yes
19607 hardcode_shlibpath_var_F77=no
19608 ;;
19609
19610 hpux9*)
19611 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019612 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 +000019613 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019614 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 +000019615 fi
19616 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19617 hardcode_libdir_separator_F77=:
19618 hardcode_direct_F77=yes
19619
19620 # hardcode_minus_L: Not really in the search PATH,
19621 # but as the default location of the library.
19622 hardcode_minus_L_F77=yes
19623 export_dynamic_flag_spec_F77='${wl}-E'
19624 ;;
19625
19626 hpux10* | hpux11*)
19627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19628 case "$host_cpu" in
19629 hppa*64*|ia64*)
19630 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19631 ;;
19632 *)
19633 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19634 ;;
19635 esac
19636 else
19637 case "$host_cpu" in
19638 hppa*64*|ia64*)
19639 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19640 ;;
19641 *)
19642 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19643 ;;
19644 esac
19645 fi
19646 if test "$with_gnu_ld" = no; then
19647 case "$host_cpu" in
19648 hppa*64*)
19649 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19650 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19651 hardcode_libdir_separator_F77=:
19652 hardcode_direct_F77=no
19653 hardcode_shlibpath_var_F77=no
19654 ;;
19655 ia64*)
19656 hardcode_libdir_flag_spec_F77='-L$libdir'
19657 hardcode_direct_F77=no
19658 hardcode_shlibpath_var_F77=no
19659
19660 # hardcode_minus_L: Not really in the search PATH,
19661 # but as the default location of the library.
19662 hardcode_minus_L_F77=yes
19663 ;;
19664 *)
19665 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19666 hardcode_libdir_separator_F77=:
19667 hardcode_direct_F77=yes
19668 export_dynamic_flag_spec_F77='${wl}-E'
19669
19670 # hardcode_minus_L: Not really in the search PATH,
19671 # but as the default location of the library.
19672 hardcode_minus_L_F77=yes
19673 ;;
19674 esac
19675 fi
19676 ;;
19677
19678 irix5* | irix6* | nonstopux*)
19679 if test "$GCC" = yes; then
19680 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'
19681 else
19682 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'
19683 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19684 fi
19685 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19686 hardcode_libdir_separator_F77=:
19687 link_all_deplibs_F77=yes
19688 ;;
19689
19690 netbsd*)
19691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19692 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19693 else
19694 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19695 fi
19696 hardcode_libdir_flag_spec_F77='-R$libdir'
19697 hardcode_direct_F77=yes
19698 hardcode_shlibpath_var_F77=no
19699 ;;
19700
19701 newsos6)
19702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19703 hardcode_direct_F77=yes
19704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19705 hardcode_libdir_separator_F77=:
19706 hardcode_shlibpath_var_F77=no
19707 ;;
19708
19709 openbsd*)
19710 hardcode_direct_F77=yes
19711 hardcode_shlibpath_var_F77=no
19712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19713 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019714 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 +000019715 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19716 export_dynamic_flag_spec_F77='${wl}-E'
19717 else
19718 case $host_os in
19719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19720 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19721 hardcode_libdir_flag_spec_F77='-R$libdir'
19722 ;;
19723 *)
19724 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19725 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19726 ;;
19727 esac
19728 fi
19729 ;;
19730
19731 os2*)
19732 hardcode_libdir_flag_spec_F77='-L$libdir'
19733 hardcode_minus_L_F77=yes
19734 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019735 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 +000019736 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19737 ;;
19738
19739 osf3*)
19740 if test "$GCC" = yes; then
19741 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19742 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'
19743 else
19744 allow_undefined_flag_F77=' -expect_unresolved \*'
19745 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'
19746 fi
19747 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19748 hardcode_libdir_separator_F77=:
19749 ;;
19750
19751 osf4* | osf5*) # as osf3* with the addition of -msym flag
19752 if test "$GCC" = yes; then
19753 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19754 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'
19755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19756 else
19757 allow_undefined_flag_F77=' -expect_unresolved \*'
19758 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 +000019759 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~
19760 $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'
19761
John Criswell47fdd832003-07-14 16:52:07 +000019762 # Both c and cxx compiler support -rpath directly
19763 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19764 fi
19765 hardcode_libdir_separator_F77=:
19766 ;;
19767
19768 sco3.2v5*)
19769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19770 hardcode_shlibpath_var_F77=no
19771 export_dynamic_flag_spec_F77='${wl}-Bexport'
19772 runpath_var=LD_RUN_PATH
19773 hardcode_runpath_var=yes
19774 ;;
19775
19776 solaris*)
19777 no_undefined_flag_F77=' -z text'
19778 if test "$GCC" = yes; then
19779 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019780 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19781 $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 +000019782 else
19783 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019784 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19785 $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 +000019786 fi
19787 hardcode_libdir_flag_spec_F77='-R$libdir'
19788 hardcode_shlibpath_var_F77=no
19789 case $host_os in
19790 solaris2.[0-5] | solaris2.[0-5].*) ;;
19791 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19792 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19793 esac
19794 link_all_deplibs_F77=yes
19795 ;;
19796
19797 sunos4*)
19798 if test "x$host_vendor" = xsequent; then
19799 # Use $CC to link under sequent, because it throws in some extra .o
19800 # files that make .init and .fini sections work.
19801 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19802 else
19803 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19804 fi
19805 hardcode_libdir_flag_spec_F77='-L$libdir'
19806 hardcode_direct_F77=yes
19807 hardcode_minus_L_F77=yes
19808 hardcode_shlibpath_var_F77=no
19809 ;;
19810
19811 sysv4)
19812 case $host_vendor in
19813 sni)
19814 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19815 hardcode_direct_F77=yes # is this really true???
19816 ;;
19817 siemens)
19818 ## LD is ld it makes a PLAMLIB
19819 ## CC just makes a GrossModule.
19820 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19821 reload_cmds_F77='$CC -r -o $output$reload_objs'
19822 hardcode_direct_F77=no
19823 ;;
19824 motorola)
19825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19827 ;;
19828 esac
19829 runpath_var='LD_RUN_PATH'
19830 hardcode_shlibpath_var_F77=no
19831 ;;
19832
19833 sysv4.3*)
19834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_shlibpath_var_F77=no
19836 export_dynamic_flag_spec_F77='-Bexport'
19837 ;;
19838
19839 sysv4*MP*)
19840 if test -d /usr/nec; then
19841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842 hardcode_shlibpath_var_F77=no
19843 runpath_var=LD_RUN_PATH
19844 hardcode_runpath_var=yes
19845 ld_shlibs_F77=yes
19846 fi
19847 ;;
19848
19849 sysv4.2uw2*)
19850 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19851 hardcode_direct_F77=yes
19852 hardcode_minus_L_F77=no
19853 hardcode_shlibpath_var_F77=no
19854 hardcode_runpath_var=yes
19855 runpath_var=LD_RUN_PATH
19856 ;;
19857
19858 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19859 no_undefined_flag_F77='${wl}-z ${wl}text'
19860 if test "$GCC" = yes; then
19861 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19862 else
19863 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19864 fi
19865 runpath_var='LD_RUN_PATH'
19866 hardcode_shlibpath_var_F77=no
19867 ;;
19868
19869 sysv5*)
19870 no_undefined_flag_F77=' -z text'
19871 # $CC -shared without GNU ld will not create a library from C++
19872 # object files and a static libstdc++, better avoid it by now
19873 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875 $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 +000019876 hardcode_libdir_flag_spec_F77=
19877 hardcode_shlibpath_var_F77=no
19878 runpath_var='LD_RUN_PATH'
19879 ;;
19880
19881 uts4*)
19882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19883 hardcode_libdir_flag_spec_F77='-L$libdir'
19884 hardcode_shlibpath_var_F77=no
19885 ;;
19886
19887 *)
19888 ld_shlibs_F77=no
19889 ;;
19890 esac
19891 fi
19892
19893echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19894echo "${ECHO_T}$ld_shlibs_F77" >&6
19895test "$ld_shlibs_F77" = no && can_build_shared=no
19896
19897variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19898if test "$GCC" = yes; then
19899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19900fi
19901
19902#
19903# Do we need to explicitly link libc?
19904#
19905case "x$archive_cmds_need_lc_F77" in
19906x|xyes)
19907 # Assume -lc should be added
19908 archive_cmds_need_lc_F77=yes
19909
19910 if test "$enable_shared" = yes && test "$GCC" = yes; then
19911 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019912 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019913 # FIXME: we may have to deal with multi-command sequences.
19914 ;;
19915 '$CC '*)
19916 # Test whether the compiler implicitly links with -lc since on some
19917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19918 # to ld, don't add -lc before -lgcc.
19919 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19920echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19921 $rm conftest*
19922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19923
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } 2>conftest.err; then
19929 soname=conftest
19930 lib=conftest
19931 libobjs=conftest.$ac_objext
19932 deplibs=
19933 wl=$lt_prog_compiler_wl_F77
19934 compiler_flags=-v
19935 linker_flags=-v
19936 verstring=
19937 output_objdir=.
19938 libname=conftest
19939 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19940 allow_undefined_flag_F77=
19941 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19942 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }
19946 then
19947 archive_cmds_need_lc_F77=no
19948 else
19949 archive_cmds_need_lc_F77=yes
19950 fi
19951 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19952 else
19953 cat conftest.err 1>&5
19954 fi
19955 $rm conftest*
19956 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19957echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19958 ;;
19959 esac
19960 fi
19961 ;;
19962esac
19963
John Criswell47fdd832003-07-14 16:52:07 +000019964echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19965echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19966library_names_spec=
19967libname_spec='lib$name'
19968soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019969shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019970postinstall_cmds=
19971postuninstall_cmds=
19972finish_cmds=
19973finish_eval=
19974shlibpath_var=
19975shlibpath_overrides_runpath=unknown
19976version_type=none
19977dynamic_linker="$host_os ld.so"
19978sys_lib_dlsearch_path_spec="/lib /usr/lib"
19979if test "$GCC" = yes; then
19980 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19981 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19982 # if the path contains ";" then we assume it to be the separator
19983 # otherwise default to the standard path separator (i.e. ":") - it is
19984 # assumed that no part of a normal pathname contains ";" but that should
19985 # okay in the real world where ";" in dirpaths is itself problematic.
19986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19987 else
19988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19989 fi
19990else
19991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19992fi
19993need_lib_prefix=unknown
19994hardcode_into_libs=no
19995
19996# when you set need_version to no, make sure it does not cause -set_version
19997# flags to be left without arguments
19998need_version=unknown
19999
20000case $host_os in
20001aix3*)
20002 version_type=linux
20003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20004 shlibpath_var=LIBPATH
20005
20006 # AIX 3 has no versioning support, so we append a major version to the name.
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 ;;
20009
20010aix4* | aix5*)
20011 version_type=linux
20012 need_lib_prefix=no
20013 need_version=no
20014 hardcode_into_libs=yes
20015 if test "$host_cpu" = ia64; then
20016 # AIX 5 supports IA64
20017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20018 shlibpath_var=LD_LIBRARY_PATH
20019 else
20020 # With GCC up to 2.95.x, collect2 would create an import file
20021 # for dependence libraries. The import file would start with
20022 # the line `#! .'. This would cause the generated library to
20023 # depend on `.', always an invalid library. This was fixed in
20024 # development snapshots of GCC prior to 3.0.
20025 case $host_os in
20026 aix4 | aix4.[01] | aix4.[01].*)
20027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20028 echo ' yes '
20029 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20030 :
20031 else
20032 can_build_shared=no
20033 fi
20034 ;;
20035 esac
20036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20037 # soname into executable. Probably we can add versioning support to
20038 # collect2, so additional links can be useful in future.
20039 if test "$aix_use_runtimelinking" = yes; then
20040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20041 # instead of lib<name>.a to let people know that these are not
20042 # typical AIX shared libraries.
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044 else
20045 # We preserve .a as extension for shared libraries through AIX4.2
20046 # and later when we are not doing run time linking.
20047 library_names_spec='${libname}${release}.a $libname.a'
20048 soname_spec='${libname}${release}${shared_ext}$major'
20049 fi
20050 shlibpath_var=LIBPATH
20051 fi
20052 ;;
20053
20054amigaos*)
20055 library_names_spec='$libname.ixlibrary $libname.a'
20056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020057 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 +000020058 ;;
20059
20060beos*)
20061 library_names_spec='${libname}${shared_ext}'
20062 dynamic_linker="$host_os ld.so"
20063 shlibpath_var=LIBRARY_PATH
20064 ;;
20065
Reid Spencer2706f8c2004-09-19 23:53:36 +000020066bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020067 version_type=linux
20068 need_version=no
20069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20070 soname_spec='${libname}${release}${shared_ext}$major'
20071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20072 shlibpath_var=LD_LIBRARY_PATH
20073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20075 # the default ld.so.conf also contains /usr/contrib/lib and
20076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20077 # libtool to hard-code these into programs
20078 ;;
20079
20080cygwin* | mingw* | pw32*)
20081 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020082 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020083 need_version=no
20084 need_lib_prefix=no
20085
20086 case $GCC,$host_os in
20087 yes,cygwin* | yes,mingw* | yes,pw32*)
20088 library_names_spec='$libname.dll.a'
20089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020090 postinstall_cmds='base_file=`basename \${file}`~
20091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20092 dldir=$destdir/`dirname \$dlpath`~
20093 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020094 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20096 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020097 $rm \$dlpath'
20098 shlibpath_overrides_runpath=yes
20099
20100 case $host_os in
20101 cygwin*)
20102 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20103 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 +000020104 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020105 ;;
20106 mingw*)
20107 # MinGW DLLs use traditional 'lib' prefix
20108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20109 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20110 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20111 # It is most probably a Windows format PATH printed by
20112 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20113 # path with ; separators, and with drive letters. We can handle the
20114 # drive letters (cygwin fileutils understands them), so leave them,
20115 # especially as we might pass files found there to a mingw objdump,
20116 # which wouldn't understand a cygwinified path. Ahh.
20117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20118 else
20119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20120 fi
20121 ;;
20122 pw32*)
20123 # pw32 DLLs use 'pw' prefix rather than 'lib'
20124 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20125 ;;
20126 esac
20127 ;;
20128
20129 *)
20130 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20131 ;;
20132 esac
20133 dynamic_linker='Win32 ld.exe'
20134 # FIXME: first we should search . and the directory the executable is in
20135 shlibpath_var=PATH
20136 ;;
20137
20138darwin* | rhapsody*)
20139 dynamic_linker="$host_os dyld"
20140 version_type=darwin
20141 need_lib_prefix=no
20142 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020143 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020144 soname_spec='${libname}${release}${major}$shared_ext'
20145 shlibpath_overrides_runpath=yes
20146 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020147 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020148 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020149 if test "$GCC" = yes; then
20150 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"`
20151 else
20152 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020153 fi
20154 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20155 ;;
20156
20157dgux*)
20158 version_type=linux
20159 need_lib_prefix=no
20160 need_version=no
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 ;;
20165
20166freebsd1*)
20167 dynamic_linker=no
20168 ;;
20169
Reid Spencer2706f8c2004-09-19 23:53:36 +000020170kfreebsd*-gnu)
20171 version_type=linux
20172 need_lib_prefix=no
20173 need_version=no
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 shlibpath_var=LD_LIBRARY_PATH
20177 shlibpath_overrides_runpath=no
20178 hardcode_into_libs=yes
20179 dynamic_linker='GNU ld.so'
20180 ;;
20181
John Criswell47fdd832003-07-14 16:52:07 +000020182freebsd*)
20183 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20184 version_type=freebsd-$objformat
20185 case $version_type in
20186 freebsd-elf*)
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20188 need_version=no
20189 need_lib_prefix=no
20190 ;;
20191 freebsd-*)
20192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20193 need_version=yes
20194 ;;
20195 esac
20196 shlibpath_var=LD_LIBRARY_PATH
20197 case $host_os in
20198 freebsd2*)
20199 shlibpath_overrides_runpath=yes
20200 ;;
20201 freebsd3.01* | freebsdelf3.01*)
20202 shlibpath_overrides_runpath=yes
20203 hardcode_into_libs=yes
20204 ;;
20205 *) # from 3.2 on
20206 shlibpath_overrides_runpath=no
20207 hardcode_into_libs=yes
20208 ;;
20209 esac
20210 ;;
20211
20212gnu*)
20213 version_type=linux
20214 need_lib_prefix=no
20215 need_version=no
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 shlibpath_var=LD_LIBRARY_PATH
20219 hardcode_into_libs=yes
20220 ;;
20221
20222hpux9* | hpux10* | hpux11*)
20223 # Give a soname corresponding to the major version so that dld.sl refuses to
20224 # link against other versions.
20225 version_type=sunos
20226 need_lib_prefix=no
20227 need_version=no
20228 case "$host_cpu" in
20229 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020231 hardcode_into_libs=yes
20232 dynamic_linker="$host_os dld.so"
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 soname_spec='${libname}${release}${shared_ext}$major'
20237 if test "X$HPUX_IA64_MODE" = X32; then
20238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20239 else
20240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20241 fi
20242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20243 ;;
20244 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020246 hardcode_into_libs=yes
20247 dynamic_linker="$host_os dld.sl"
20248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20254 ;;
20255 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020256 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020257 dynamic_linker="$host_os dld.sl"
20258 shlibpath_var=SHLIB_PATH
20259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20262 ;;
20263 esac
20264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20265 postinstall_cmds='chmod 555 $lib'
20266 ;;
20267
20268irix5* | irix6* | nonstopux*)
20269 case $host_os in
20270 nonstopux*) version_type=nonstopux ;;
20271 *)
20272 if test "$lt_cv_prog_gnu_ld" = yes; then
20273 version_type=linux
20274 else
20275 version_type=irix
20276 fi ;;
20277 esac
20278 need_lib_prefix=no
20279 need_version=no
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 case $host_os in
20283 irix5* | nonstopux*)
20284 libsuff= shlibsuff=
20285 ;;
20286 *)
20287 case $LD in # libtool.m4 will add one of these switches to LD
20288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20289 libsuff= shlibsuff= libmagic=32-bit;;
20290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20291 libsuff=32 shlibsuff=N32 libmagic=N32;;
20292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20294 *) libsuff= shlibsuff= libmagic=never-match;;
20295 esac
20296 ;;
20297 esac
20298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20299 shlibpath_overrides_runpath=no
20300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20302 hardcode_into_libs=yes
20303 ;;
20304
20305# No shared lib support for Linux oldld, aout, or coff.
20306linux*oldld* | linux*aout* | linux*coff*)
20307 dynamic_linker=no
20308 ;;
20309
20310# This must be Linux ELF.
20311linux*)
20312 version_type=linux
20313 need_lib_prefix=no
20314 need_version=no
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=no
20320 # This implies no fast_install, which is unacceptable.
20321 # Some rework will be needed to allow for fast_install
20322 # before this can be enabled.
20323 hardcode_into_libs=yes
20324
Reid Spencer2706f8c2004-09-19 23:53:36 +000020325 # Append ld.so.conf contents to the search path
20326 if test -f /etc/ld.so.conf; then
20327 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20329 fi
20330
John Criswell47fdd832003-07-14 16:52:07 +000020331 # We used to test for /lib/ld.so.1 and disable shared libraries on
20332 # powerpc, because MkLinux only supported shared libraries with the
20333 # GNU dynamic linker. Since this was broken with cross compilers,
20334 # most powerpc-linux boxes support dynamic linking these days and
20335 # people can always --disable-shared, the test was removed, and we
20336 # assume the GNU/Linux dynamic linker is in use.
20337 dynamic_linker='GNU/Linux ld.so'
20338 ;;
20339
Reid Spencer2706f8c2004-09-19 23:53:36 +000020340knetbsd*-gnu)
20341 version_type=linux
20342 need_lib_prefix=no
20343 need_version=no
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 shlibpath_overrides_runpath=no
20348 hardcode_into_libs=yes
20349 dynamic_linker='GNU ld.so'
20350 ;;
20351
John Criswell47fdd832003-07-14 16:52:07 +000020352netbsd*)
20353 version_type=sunos
20354 need_lib_prefix=no
20355 need_version=no
20356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20359 dynamic_linker='NetBSD (a.out) ld.so'
20360 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020362 soname_spec='${libname}${release}${shared_ext}$major'
20363 dynamic_linker='NetBSD ld.elf_so'
20364 fi
20365 shlibpath_var=LD_LIBRARY_PATH
20366 shlibpath_overrides_runpath=yes
20367 hardcode_into_libs=yes
20368 ;;
20369
20370newsos6)
20371 version_type=linux
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373 shlibpath_var=LD_LIBRARY_PATH
20374 shlibpath_overrides_runpath=yes
20375 ;;
20376
Reid Spencer2706f8c2004-09-19 23:53:36 +000020377nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020378 version_type=linux
20379 need_lib_prefix=no
20380 need_version=no
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=yes
20385 ;;
20386
20387openbsd*)
20388 version_type=sunos
20389 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020390 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20395 case $host_os in
20396 openbsd2.[89] | openbsd2.[89].*)
20397 shlibpath_overrides_runpath=no
20398 ;;
20399 *)
20400 shlibpath_overrides_runpath=yes
20401 ;;
20402 esac
20403 else
20404 shlibpath_overrides_runpath=yes
20405 fi
20406 ;;
20407
20408os2*)
20409 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020410 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020411 need_lib_prefix=no
20412 library_names_spec='$libname${shared_ext} $libname.a'
20413 dynamic_linker='OS/2 ld.exe'
20414 shlibpath_var=LIBPATH
20415 ;;
20416
20417osf3* | osf4* | osf5*)
20418 version_type=osf
20419 need_lib_prefix=no
20420 need_version=no
20421 soname_spec='${libname}${release}${shared_ext}$major'
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20426 ;;
20427
20428sco3.2v5*)
20429 version_type=osf
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 shlibpath_var=LD_LIBRARY_PATH
20433 ;;
20434
20435solaris*)
20436 version_type=linux
20437 need_lib_prefix=no
20438 need_version=no
20439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 soname_spec='${libname}${release}${shared_ext}$major'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 shlibpath_overrides_runpath=yes
20443 hardcode_into_libs=yes
20444 # ldd complains unless libraries are executable
20445 postinstall_cmds='chmod +x $lib'
20446 ;;
20447
20448sunos4*)
20449 version_type=sunos
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 shlibpath_overrides_runpath=yes
20454 if test "$with_gnu_ld" = yes; then
20455 need_lib_prefix=no
20456 fi
20457 need_version=yes
20458 ;;
20459
20460sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20461 version_type=linux
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 case $host_vendor in
20466 sni)
20467 shlibpath_overrides_runpath=no
20468 need_lib_prefix=no
20469 export_dynamic_flag_spec='${wl}-Blargedynsym'
20470 runpath_var=LD_RUN_PATH
20471 ;;
20472 siemens)
20473 need_lib_prefix=no
20474 ;;
20475 motorola)
20476 need_lib_prefix=no
20477 need_version=no
20478 shlibpath_overrides_runpath=no
20479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20480 ;;
20481 esac
20482 ;;
20483
20484sysv4*MP*)
20485 if test -d /usr/nec ;then
20486 version_type=linux
20487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20488 soname_spec='$libname${shared_ext}.$major'
20489 shlibpath_var=LD_LIBRARY_PATH
20490 fi
20491 ;;
20492
20493uts4*)
20494 version_type=linux
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 soname_spec='${libname}${release}${shared_ext}$major'
20497 shlibpath_var=LD_LIBRARY_PATH
20498 ;;
20499
20500*)
20501 dynamic_linker=no
20502 ;;
20503esac
20504echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20505echo "${ECHO_T}$dynamic_linker" >&6
20506test "$dynamic_linker" = no && can_build_shared=no
20507
Reid Spencer2706f8c2004-09-19 23:53:36 +000020508echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20509echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20510hardcode_action_F77=
20511if test -n "$hardcode_libdir_flag_spec_F77" || \
20512 test -n "$runpath_var_F77" || \
20513 test "X$hardcode_automatic_F77" = "Xyes" ; then
20514
20515 # We can hardcode non-existant directories.
20516 if test "$hardcode_direct_F77" != no &&
20517 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20518 # have to relink, otherwise we might link with an installed library
20519 # when we should be linking with a yet-to-be-installed one
20520 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20521 test "$hardcode_minus_L_F77" != no; then
20522 # Linking always hardcodes the temporary library directory.
20523 hardcode_action_F77=relink
20524 else
20525 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20526 hardcode_action_F77=immediate
20527 fi
20528else
20529 # We cannot hardcode anything, or else we can only hardcode existing
20530 # directories.
20531 hardcode_action_F77=unsupported
20532fi
20533echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20534echo "${ECHO_T}$hardcode_action_F77" >&6
20535
20536if test "$hardcode_action_F77" = relink; then
20537 # Fast installation is not supported
20538 enable_fast_install=no
20539elif test "$shlibpath_overrides_runpath" = yes ||
20540 test "$enable_shared" = no; then
20541 # Fast installation is not necessary
20542 enable_fast_install=needless
20543fi
20544
20545striplib=
20546old_striplib=
20547echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20548echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20549if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20550 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20551 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20552 echo "$as_me:$LINENO: result: yes" >&5
20553echo "${ECHO_T}yes" >&6
20554else
20555# FIXME - insert some real tests, host_os isn't really good enough
20556 case $host_os in
20557 darwin*)
20558 if test -n "$STRIP" ; then
20559 striplib="$STRIP -x"
20560 echo "$as_me:$LINENO: result: yes" >&5
20561echo "${ECHO_T}yes" >&6
20562 else
20563 echo "$as_me:$LINENO: result: no" >&5
20564echo "${ECHO_T}no" >&6
20565fi
20566 ;;
20567 *)
20568 echo "$as_me:$LINENO: result: no" >&5
20569echo "${ECHO_T}no" >&6
20570 ;;
20571 esac
20572fi
20573
20574
John Criswell47fdd832003-07-14 16:52:07 +000020575
20576# The else clause should only fire when bootstrapping the
20577# libtool distribution, otherwise you forgot to ship ltmain.sh
20578# with your package, and you will get complaints that there are
20579# no rules to generate ltmain.sh.
20580if test -f "$ltmain"; then
20581 # See if we are running on zsh, and set the options which allow our commands through
20582 # without removal of \ escapes.
20583 if test -n "${ZSH_VERSION+set}" ; then
20584 setopt NO_GLOB_SUBST
20585 fi
20586 # Now quote all the things that may contain metacharacters while being
20587 # careful not to overquote the AC_SUBSTed values. We take copies of the
20588 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020589 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20590 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20593 deplibs_check_method reload_flag reload_cmds need_locks \
20594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20595 lt_cv_sys_global_symbol_to_c_name_address \
20596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20597 old_postinstall_cmds old_postuninstall_cmds \
20598 compiler_F77 \
20599 CC_F77 \
20600 LD_F77 \
20601 lt_prog_compiler_wl_F77 \
20602 lt_prog_compiler_pic_F77 \
20603 lt_prog_compiler_static_F77 \
20604 lt_prog_compiler_no_builtin_flag_F77 \
20605 export_dynamic_flag_spec_F77 \
20606 thread_safe_flag_spec_F77 \
20607 whole_archive_flag_spec_F77 \
20608 enable_shared_with_static_runtimes_F77 \
20609 old_archive_cmds_F77 \
20610 old_archive_from_new_cmds_F77 \
20611 predep_objects_F77 \
20612 postdep_objects_F77 \
20613 predeps_F77 \
20614 postdeps_F77 \
20615 compiler_lib_search_path_F77 \
20616 archive_cmds_F77 \
20617 archive_expsym_cmds_F77 \
20618 postinstall_cmds_F77 \
20619 postuninstall_cmds_F77 \
20620 old_archive_from_expsyms_cmds_F77 \
20621 allow_undefined_flag_F77 \
20622 no_undefined_flag_F77 \
20623 export_symbols_cmds_F77 \
20624 hardcode_libdir_flag_spec_F77 \
20625 hardcode_libdir_flag_spec_ld_F77 \
20626 hardcode_libdir_separator_F77 \
20627 hardcode_automatic_F77 \
20628 module_cmds_F77 \
20629 module_expsym_cmds_F77 \
20630 lt_cv_prog_compiler_c_o_F77 \
20631 exclude_expsyms_F77 \
20632 include_expsyms_F77; do
20633
20634 case $var in
20635 old_archive_cmds_F77 | \
20636 old_archive_from_new_cmds_F77 | \
20637 archive_cmds_F77 | \
20638 archive_expsym_cmds_F77 | \
20639 module_cmds_F77 | \
20640 module_expsym_cmds_F77 | \
20641 old_archive_from_expsyms_cmds_F77 | \
20642 export_symbols_cmds_F77 | \
20643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644 postinstall_cmds | postuninstall_cmds | \
20645 old_postinstall_cmds | old_postuninstall_cmds | \
20646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020648 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 +000020649 ;;
20650 *)
20651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20652 ;;
20653 esac
20654 done
20655
20656 case $lt_echo in
20657 *'\$0 --fallback-echo"')
20658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20659 ;;
20660 esac
20661
20662cfgfile="$ofile"
20663
20664 cat <<__EOF__ >> "$cfgfile"
20665# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666
20667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668
20669# Shell to use when invoking shell scripts.
20670SHELL=$lt_SHELL
20671
20672# Whether or not to build shared libraries.
20673build_libtool_libs=$enable_shared
20674
20675# Whether or not to build static libraries.
20676build_old_libs=$enable_static
20677
20678# Whether or not to add -lc for building shared libraries.
20679build_libtool_need_lc=$archive_cmds_need_lc_F77
20680
20681# Whether or not to disallow shared libs when runtime libs are static
20682allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20683
20684# Whether or not to optimize for fast installation.
20685fast_install=$enable_fast_install
20686
20687# The host system.
20688host_alias=$host_alias
20689host=$host
20690
20691# An echo program that does not interpret backslashes.
20692echo=$lt_echo
20693
20694# The archiver.
20695AR=$lt_AR
20696AR_FLAGS=$lt_AR_FLAGS
20697
20698# A C compiler.
20699LTCC=$lt_LTCC
20700
20701# A language-specific compiler.
20702CC=$lt_compiler_F77
20703
20704# Is the compiler the GNU C compiler?
20705with_gcc=$GCC_F77
20706
20707# An ERE matcher.
20708EGREP=$lt_EGREP
20709
20710# The linker used to build libraries.
20711LD=$lt_LD_F77
20712
20713# Whether we need hard or soft links.
20714LN_S=$lt_LN_S
20715
20716# A BSD-compatible nm program.
20717NM=$lt_NM
20718
20719# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020720STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020721
20722# Used to examine libraries when file_magic_cmd begins "file"
20723MAGIC_CMD=$MAGIC_CMD
20724
20725# Used on cygwin: DLL creation program.
20726DLLTOOL="$DLLTOOL"
20727
20728# Used on cygwin: object dumper.
20729OBJDUMP="$OBJDUMP"
20730
20731# Used on cygwin: assembler.
20732AS="$AS"
20733
20734# The name of the directory that contains temporary libtool files.
20735objdir=$objdir
20736
20737# How to create reloadable object files.
20738reload_flag=$lt_reload_flag
20739reload_cmds=$lt_reload_cmds
20740
20741# How to pass a linker flag through the compiler.
20742wl=$lt_lt_prog_compiler_wl_F77
20743
20744# Object file suffix (normally "o").
20745objext="$ac_objext"
20746
20747# Old archive suffix (normally "a").
20748libext="$libext"
20749
20750# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020751shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020752
20753# Executable file suffix (normally "").
20754exeext="$exeext"
20755
20756# Additional compiler flags for building library objects.
20757pic_flag=$lt_lt_prog_compiler_pic_F77
20758pic_mode=$pic_mode
20759
20760# What is the maximum length of a command?
20761max_cmd_len=$lt_cv_sys_max_cmd_len
20762
20763# Does compiler simultaneously support -c and -o options?
20764compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20765
20766# Must we lock files when doing compilation ?
20767need_locks=$lt_need_locks
20768
20769# Do we need the lib prefix for modules?
20770need_lib_prefix=$need_lib_prefix
20771
20772# Do we need a version for libraries?
20773need_version=$need_version
20774
20775# Whether dlopen is supported.
20776dlopen_support=$enable_dlopen
20777
20778# Whether dlopen of programs is supported.
20779dlopen_self=$enable_dlopen_self
20780
20781# Whether dlopen of statically linked programs is supported.
20782dlopen_self_static=$enable_dlopen_self_static
20783
20784# Compiler flag to prevent dynamic linking.
20785link_static_flag=$lt_lt_prog_compiler_static_F77
20786
20787# Compiler flag to turn off builtin functions.
20788no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20789
20790# Compiler flag to allow reflexive dlopens.
20791export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20792
20793# Compiler flag to generate shared objects directly from archives.
20794whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20795
20796# Compiler flag to generate thread-safe objects.
20797thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20798
20799# Library versioning type.
20800version_type=$version_type
20801
20802# Format of library name prefix.
20803libname_spec=$lt_libname_spec
20804
20805# List of archive names. First name is the real one, the rest are links.
20806# The last name is the one that the linker finds with -lNAME.
20807library_names_spec=$lt_library_names_spec
20808
20809# The coded name of the library, if different from the real name.
20810soname_spec=$lt_soname_spec
20811
20812# Commands used to build and install an old-style archive.
20813RANLIB=$lt_RANLIB
20814old_archive_cmds=$lt_old_archive_cmds_F77
20815old_postinstall_cmds=$lt_old_postinstall_cmds
20816old_postuninstall_cmds=$lt_old_postuninstall_cmds
20817
20818# Create an old-style archive from a shared archive.
20819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20820
20821# Create a temporary old-style archive to link instead of a shared archive.
20822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20823
20824# Commands used to build and install a shared archive.
20825archive_cmds=$lt_archive_cmds_F77
20826archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20827postinstall_cmds=$lt_postinstall_cmds
20828postuninstall_cmds=$lt_postuninstall_cmds
20829
20830# Commands used to build a loadable module (assumed same as above if empty)
20831module_cmds=$lt_module_cmds_F77
20832module_expsym_cmds=$lt_module_expsym_cmds_F77
20833
20834# Commands to strip libraries.
20835old_striplib=$lt_old_striplib
20836striplib=$lt_striplib
20837
20838# Dependencies to place before the objects being linked to create a
20839# shared library.
20840predep_objects=$lt_predep_objects_F77
20841
20842# Dependencies to place after the objects being linked to create a
20843# shared library.
20844postdep_objects=$lt_postdep_objects_F77
20845
20846# Dependencies to place before the objects being linked to create a
20847# shared library.
20848predeps=$lt_predeps_F77
20849
20850# Dependencies to place after the objects being linked to create a
20851# shared library.
20852postdeps=$lt_postdeps_F77
20853
20854# The library search path used internally by the compiler when linking
20855# a shared library.
20856compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20857
20858# Method to check whether dependent libraries are shared objects.
20859deplibs_check_method=$lt_deplibs_check_method
20860
20861# Command to use when deplibs_check_method == file_magic.
20862file_magic_cmd=$lt_file_magic_cmd
20863
20864# Flag that allows shared libraries with undefined symbols to be built.
20865allow_undefined_flag=$lt_allow_undefined_flag_F77
20866
20867# Flag that forces no undefined symbols.
20868no_undefined_flag=$lt_no_undefined_flag_F77
20869
20870# Commands used to finish a libtool library installation in a directory.
20871finish_cmds=$lt_finish_cmds
20872
20873# Same as above, but a single script fragment to be evaled but not shown.
20874finish_eval=$lt_finish_eval
20875
20876# Take the output of nm and produce a listing of raw symbols and C names.
20877global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20878
20879# Transform the output of nm in a proper C declaration
20880global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20881
20882# Transform the output of nm in a C name address pair
20883global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20884
20885# This is the shared library runtime path variable.
20886runpath_var=$runpath_var
20887
20888# This is the shared library path variable.
20889shlibpath_var=$shlibpath_var
20890
20891# Is shlibpath searched before the hard-coded library search path?
20892shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20893
20894# How to hardcode a shared library path into an executable.
20895hardcode_action=$hardcode_action_F77
20896
20897# Whether we should hardcode library paths into libraries.
20898hardcode_into_libs=$hardcode_into_libs
20899
20900# Flag to hardcode \$libdir into a binary during linking.
20901# This must work even if \$libdir does not exist.
20902hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20903
20904# If ld is used when linking, flag to hardcode \$libdir into
20905# a binary during linking. This must work even if \$libdir does
20906# not exist.
20907hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20908
20909# Whether we need a single -rpath flag with a separated argument.
20910hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20911
20912# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20913# resulting binary.
20914hardcode_direct=$hardcode_direct_F77
20915
20916# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20917# resulting binary.
20918hardcode_minus_L=$hardcode_minus_L_F77
20919
20920# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20921# the resulting binary.
20922hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20923
20924# Set to yes if building a shared library automatically hardcodes DIR into the library
20925# and all subsequent libraries and executables linked against it.
20926hardcode_automatic=$hardcode_automatic_F77
20927
20928# Variables whose values should be saved in libtool wrapper scripts and
20929# restored at relink time.
20930variables_saved_for_relink="$variables_saved_for_relink"
20931
20932# Whether libtool must link a program against all its dependency libraries.
20933link_all_deplibs=$link_all_deplibs_F77
20934
20935# Compile-time system search path for libraries
20936sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20937
20938# Run-time system search path for libraries
20939sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20940
20941# Fix the shell variable \$srcfile for the compiler.
20942fix_srcfile_path="$fix_srcfile_path_F77"
20943
20944# Set to yes if exported symbols are required.
20945always_export_symbols=$always_export_symbols_F77
20946
20947# The commands to list exported symbols.
20948export_symbols_cmds=$lt_export_symbols_cmds_F77
20949
20950# The commands to extract the exported symbol list from a shared archive.
20951extract_expsyms_cmds=$lt_extract_expsyms_cmds
20952
20953# Symbols that should not be listed in the preloaded symbols.
20954exclude_expsyms=$lt_exclude_expsyms_F77
20955
20956# Symbols that must always be exported.
20957include_expsyms=$lt_include_expsyms_F77
20958
20959# ### END LIBTOOL TAG CONFIG: $tagname
20960
20961__EOF__
20962
20963
20964else
20965 # If there is no Makefile yet, we rely on a make rule to execute
20966 # `config.status --recheck' to rerun these tests and create the
20967 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020968 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20969 if test -f "$ltmain_in"; then
20970 test -f Makefile && make "$ltmain"
20971 fi
John Criswell47fdd832003-07-14 16:52:07 +000020972fi
20973
20974
20975ac_ext=c
20976ac_cpp='$CPP $CPPFLAGS'
20977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980
20981CC="$lt_save_CC"
20982
20983 else
20984 tagname=""
20985 fi
20986 ;;
20987
20988 GCJ)
20989 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020990 ac_ext=c
20991ac_cpp='$CPP $CPPFLAGS'
20992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020995
20996
20997# Source file extension for Java test sources.
20998ac_ext=java
20999
21000# Object file extension for compiled Java test sources.
21001objext=o
21002objext_GCJ=$objext
21003
21004# Code to be used in simple compile tests
21005lt_simple_compile_test_code="class foo {}\n"
21006
21007# Code to be used in simple link tests
21008lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21009
21010# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21011
21012# If no C compiler was specified, use CC.
21013LTCC=${LTCC-"$CC"}
21014
21015# Allow CC to be a program name with arguments.
21016compiler=$CC
21017
21018
21019# Allow CC to be a program name with arguments.
21020lt_save_CC="$CC"
21021CC=${GCJ-"gcj"}
21022compiler=$CC
21023compiler_GCJ=$CC
21024
21025# GCJ did not exist at the time GCC didn't implicitly link libc in.
21026archive_cmds_need_lc_GCJ=no
21027
John Criswell47fdd832003-07-14 16:52:07 +000021028
21029lt_prog_compiler_no_builtin_flag_GCJ=
21030
21031if test "$GCC" = yes; then
21032 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21033
Reid Spencer2706f8c2004-09-19 23:53:36 +000021034
21035echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021036echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21037if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 lt_cv_prog_compiler_rtti_exceptions=no
21041 ac_outfile=conftest.$ac_objext
21042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21043 lt_compiler_flag="-fno-rtti -fno-exceptions"
21044 # Insert the option either (1) after the last *FLAGS variable, or
21045 # (2) before a word containing "conftest.", or (3) at the end.
21046 # Note that $ac_compile itself does not contain backslashes and begins
21047 # with a dollar sign (not a hyphen), so the echo should work correctly.
21048 # The option is referenced via a variable to avoid confusing sed.
21049 lt_compile=`echo "$ac_compile" | $SED \
21050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21052 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000021053 (eval echo "\"\$as_me:21053: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021054 (eval "$lt_compile" 2>conftest.err)
21055 ac_status=$?
21056 cat conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000021057 echo "$as_me:21057: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021058 if (exit $ac_status) && test -s "$ac_outfile"; then
21059 # The compiler can only warn and ignore the option if not recognized
21060 # So say no if there are warnings
21061 if test ! -s conftest.err; then
21062 lt_cv_prog_compiler_rtti_exceptions=yes
21063 fi
21064 fi
21065 $rm conftest*
21066
21067fi
21068echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21069echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21070
21071if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21072 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21073else
21074 :
21075fi
21076
21077fi
21078
21079lt_prog_compiler_wl_GCJ=
21080lt_prog_compiler_pic_GCJ=
21081lt_prog_compiler_static_GCJ=
21082
21083echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21084echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21085
21086 if test "$GCC" = yes; then
21087 lt_prog_compiler_wl_GCJ='-Wl,'
21088 lt_prog_compiler_static_GCJ='-static'
21089
21090 case $host_os in
21091 aix*)
21092 # All AIX code is PIC.
21093 if test "$host_cpu" = ia64; then
21094 # AIX 5 now supports IA64 processor
21095 lt_prog_compiler_static_GCJ='-Bstatic'
21096 fi
21097 ;;
21098
21099 amigaos*)
21100 # FIXME: we need at least 68020 code to build shared libraries, but
21101 # adding the `-m68020' flag to GCC prevents building anything better,
21102 # like `-m68040'.
21103 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21104 ;;
21105
21106 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21107 # PIC is the default for these OSes.
21108 ;;
21109
21110 mingw* | pw32* | os2*)
21111 # This hack is so that the source file can tell whether it is being
21112 # built for inclusion in a dll (and should export symbols for example).
21113 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21114 ;;
21115
21116 darwin* | rhapsody*)
21117 # PIC is the default on this platform
21118 # Common symbols not allowed in MH_DYLIB files
21119 lt_prog_compiler_pic_GCJ='-fno-common'
21120 ;;
21121
21122 msdosdjgpp*)
21123 # Just because we use GCC doesn't mean we suddenly get shared libraries
21124 # on systems that don't support them.
21125 lt_prog_compiler_can_build_shared_GCJ=no
21126 enable_shared=no
21127 ;;
21128
21129 sysv4*MP*)
21130 if test -d /usr/nec; then
21131 lt_prog_compiler_pic_GCJ=-Kconform_pic
21132 fi
21133 ;;
21134
21135 hpux*)
21136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21137 # not for PA HP-UX.
21138 case "$host_cpu" in
21139 hppa*64*|ia64*)
21140 # +Z the default
21141 ;;
21142 *)
21143 lt_prog_compiler_pic_GCJ='-fPIC'
21144 ;;
21145 esac
21146 ;;
21147
21148 *)
21149 lt_prog_compiler_pic_GCJ='-fPIC'
21150 ;;
21151 esac
21152 else
21153 # PORTME Check for flag to pass linker flags through the system compiler.
21154 case $host_os in
21155 aix*)
21156 lt_prog_compiler_wl_GCJ='-Wl,'
21157 if test "$host_cpu" = ia64; then
21158 # AIX 5 now supports IA64 processor
21159 lt_prog_compiler_static_GCJ='-Bstatic'
21160 else
21161 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21162 fi
21163 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 darwin*)
21165 # PIC is the default on this platform
21166 # Common symbols not allowed in MH_DYLIB files
21167 case "$cc_basename" in
21168 xlc*)
21169 lt_prog_compiler_pic_GCJ='-qnocommon'
21170 lt_prog_compiler_wl_GCJ='-Wl,'
21171 ;;
21172 esac
21173 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021174
21175 mingw* | pw32* | os2*)
21176 # This hack is so that the source file can tell whether it is being
21177 # built for inclusion in a dll (and should export symbols for example).
21178 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21179 ;;
21180
21181 hpux9* | hpux10* | hpux11*)
21182 lt_prog_compiler_wl_GCJ='-Wl,'
21183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21184 # not for PA HP-UX.
21185 case "$host_cpu" in
21186 hppa*64*|ia64*)
21187 # +Z the default
21188 ;;
21189 *)
21190 lt_prog_compiler_pic_GCJ='+Z'
21191 ;;
21192 esac
21193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21194 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21195 ;;
21196
21197 irix5* | irix6* | nonstopux*)
21198 lt_prog_compiler_wl_GCJ='-Wl,'
21199 # PIC (with -KPIC) is the default.
21200 lt_prog_compiler_static_GCJ='-non_shared'
21201 ;;
21202
21203 newsos6)
21204 lt_prog_compiler_pic_GCJ='-KPIC'
21205 lt_prog_compiler_static_GCJ='-Bstatic'
21206 ;;
21207
21208 linux*)
21209 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021210 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021211 lt_prog_compiler_wl_GCJ='-Wl,'
21212 lt_prog_compiler_pic_GCJ='-KPIC'
21213 lt_prog_compiler_static_GCJ='-static'
21214 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021215 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021216 lt_prog_compiler_wl_GCJ='-Wl,'
21217 # All Alpha code is PIC.
21218 lt_prog_compiler_static_GCJ='-non_shared'
21219 ;;
21220 esac
21221 ;;
21222
21223 osf3* | osf4* | osf5*)
21224 lt_prog_compiler_wl_GCJ='-Wl,'
21225 # All OSF/1 code is PIC.
21226 lt_prog_compiler_static_GCJ='-non_shared'
21227 ;;
21228
21229 sco3.2v5*)
21230 lt_prog_compiler_pic_GCJ='-Kpic'
21231 lt_prog_compiler_static_GCJ='-dn'
21232 ;;
21233
21234 solaris*)
21235 lt_prog_compiler_wl_GCJ='-Wl,'
21236 lt_prog_compiler_pic_GCJ='-KPIC'
21237 lt_prog_compiler_static_GCJ='-Bstatic'
21238 ;;
21239
21240 sunos4*)
21241 lt_prog_compiler_wl_GCJ='-Qoption ld '
21242 lt_prog_compiler_pic_GCJ='-PIC'
21243 lt_prog_compiler_static_GCJ='-Bstatic'
21244 ;;
21245
21246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21247 lt_prog_compiler_wl_GCJ='-Wl,'
21248 lt_prog_compiler_pic_GCJ='-KPIC'
21249 lt_prog_compiler_static_GCJ='-Bstatic'
21250 ;;
21251
21252 sysv4*MP*)
21253 if test -d /usr/nec ;then
21254 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21255 lt_prog_compiler_static_GCJ='-Bstatic'
21256 fi
21257 ;;
21258
21259 uts4*)
21260 lt_prog_compiler_pic_GCJ='-pic'
21261 lt_prog_compiler_static_GCJ='-Bstatic'
21262 ;;
21263
21264 *)
21265 lt_prog_compiler_can_build_shared_GCJ=no
21266 ;;
21267 esac
21268 fi
21269
21270echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21271echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21272
21273#
21274# Check to make sure the PIC flag actually works.
21275#
21276if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021277
21278echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021279echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21280if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282else
21283 lt_prog_compiler_pic_works_GCJ=no
21284 ac_outfile=conftest.$ac_objext
21285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21286 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21287 # Insert the option either (1) after the last *FLAGS variable, or
21288 # (2) before a word containing "conftest.", or (3) at the end.
21289 # Note that $ac_compile itself does not contain backslashes and begins
21290 # with a dollar sign (not a hyphen), so the echo should work correctly.
21291 # The option is referenced via a variable to avoid confusing sed.
21292 lt_compile=`echo "$ac_compile" | $SED \
21293 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21295 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000021296 (eval echo "\"\$as_me:21296: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021297 (eval "$lt_compile" 2>conftest.err)
21298 ac_status=$?
21299 cat conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000021300 echo "$as_me:21300: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021301 if (exit $ac_status) && test -s "$ac_outfile"; then
21302 # The compiler can only warn and ignore the option if not recognized
21303 # So say no if there are warnings
21304 if test ! -s conftest.err; then
21305 lt_prog_compiler_pic_works_GCJ=yes
21306 fi
21307 fi
21308 $rm conftest*
21309
21310fi
21311echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21312echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21313
21314if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21315 case $lt_prog_compiler_pic_GCJ in
21316 "" | " "*) ;;
21317 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21318 esac
21319else
21320 lt_prog_compiler_pic_GCJ=
21321 lt_prog_compiler_can_build_shared_GCJ=no
21322fi
21323
21324fi
21325case "$host_os" in
21326 # For platforms which do not support PIC, -DPIC is meaningless:
21327 *djgpp*)
21328 lt_prog_compiler_pic_GCJ=
21329 ;;
21330 *)
21331 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21332 ;;
21333esac
21334
21335echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21336echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21337if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339else
21340 lt_cv_prog_compiler_c_o_GCJ=no
21341 $rm -r conftest 2>/dev/null
21342 mkdir conftest
21343 cd conftest
21344 mkdir out
21345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21346
John Criswell47fdd832003-07-14 16:52:07 +000021347 lt_compiler_flag="-o out/conftest2.$ac_objext"
21348 # Insert the option either (1) after the last *FLAGS variable, or
21349 # (2) before a word containing "conftest.", or (3) at the end.
21350 # Note that $ac_compile itself does not contain backslashes and begins
21351 # with a dollar sign (not a hyphen), so the echo should work correctly.
21352 lt_compile=`echo "$ac_compile" | $SED \
21353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21355 -e 's:$: $lt_compiler_flag:'`
Reid Spencer945de9b2005-04-22 07:27:28 +000021356 (eval echo "\"\$as_me:21356: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021357 (eval "$lt_compile" 2>out/conftest.err)
21358 ac_status=$?
21359 cat out/conftest.err >&5
Reid Spencer945de9b2005-04-22 07:27:28 +000021360 echo "$as_me:21360: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21362 then
21363 # The compiler can only warn and ignore the option if not recognized
21364 # So say no if there are warnings
21365 if test ! -s out/conftest.err; then
21366 lt_cv_prog_compiler_c_o_GCJ=yes
21367 fi
21368 fi
21369 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021370 $rm conftest*
21371 # SGI C++ compiler will create directory out/ii_files/ for
21372 # template instantiation
21373 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21374 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021375 cd ..
21376 rmdir conftest
21377 $rm conftest*
21378
21379fi
21380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21381echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21382
21383
21384hard_links="nottested"
21385if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21386 # do not overwrite the value of need_locks provided by the user
21387 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21388echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21389 hard_links=yes
21390 $rm conftest*
21391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21392 touch conftest.a
21393 ln conftest.a conftest.b 2>&5 || hard_links=no
21394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21395 echo "$as_me:$LINENO: result: $hard_links" >&5
21396echo "${ECHO_T}$hard_links" >&6
21397 if test "$hard_links" = no; then
21398 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21399echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21400 need_locks=warn
21401 fi
21402else
21403 need_locks=no
21404fi
21405
21406echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21407echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21408
21409 runpath_var=
21410 allow_undefined_flag_GCJ=
21411 enable_shared_with_static_runtimes_GCJ=no
21412 archive_cmds_GCJ=
21413 archive_expsym_cmds_GCJ=
21414 old_archive_From_new_cmds_GCJ=
21415 old_archive_from_expsyms_cmds_GCJ=
21416 export_dynamic_flag_spec_GCJ=
21417 whole_archive_flag_spec_GCJ=
21418 thread_safe_flag_spec_GCJ=
21419 hardcode_libdir_flag_spec_GCJ=
21420 hardcode_libdir_flag_spec_ld_GCJ=
21421 hardcode_libdir_separator_GCJ=
21422 hardcode_direct_GCJ=no
21423 hardcode_minus_L_GCJ=no
21424 hardcode_shlibpath_var_GCJ=unsupported
21425 link_all_deplibs_GCJ=unknown
21426 hardcode_automatic_GCJ=no
21427 module_cmds_GCJ=
21428 module_expsym_cmds_GCJ=
21429 always_export_symbols_GCJ=no
21430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21431 # include_expsyms should be a list of space-separated symbols to be *always*
21432 # included in the symbol list
21433 include_expsyms_GCJ=
21434 # exclude_expsyms can be an extended regexp of symbols to exclude
21435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21437 # as well as any symbol that contains `d'.
21438 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21440 # platforms (ab)use it in PIC code, but their linkers get confused if
21441 # the symbol is explicitly referenced. Since portable code cannot
21442 # rely on this symbol name, it's probably fine to never include it in
21443 # preloaded symbol tables.
21444 extract_expsyms_cmds=
21445
21446 case $host_os in
21447 cygwin* | mingw* | pw32*)
21448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21449 # When not using gcc, we currently assume that we are using
21450 # Microsoft Visual C++.
21451 if test "$GCC" != yes; then
21452 with_gnu_ld=no
21453 fi
21454 ;;
21455 openbsd*)
21456 with_gnu_ld=no
21457 ;;
21458 esac
21459
21460 ld_shlibs_GCJ=yes
21461 if test "$with_gnu_ld" = yes; then
21462 # If archive_cmds runs LD, not CC, wlarc should be empty
21463 wlarc='${wl}'
21464
21465 # See if GNU ld supports shared libraries.
21466 case $host_os in
21467 aix3* | aix4* | aix5*)
21468 # On AIX/PPC, the GNU linker is very broken
21469 if test "$host_cpu" != ia64; then
21470 ld_shlibs_GCJ=no
21471 cat <<EOF 1>&2
21472
21473*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21474*** to be unable to reliably create shared libraries on AIX.
21475*** Therefore, libtool is disabling shared libraries support. If you
21476*** really care for shared libraries, you may want to modify your PATH
21477*** so that a non-GNU linker is found, and then restart.
21478
21479EOF
21480 fi
21481 ;;
21482
21483 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021484 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 +000021485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21486 hardcode_minus_L_GCJ=yes
21487
21488 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21489 # that the semantics of dynamic libraries on AmigaOS, at least up
21490 # to version 4, is to share data among multiple programs linked
21491 # with the same dynamic library. Since this doesn't match the
21492 # behavior of shared libraries on other platforms, we can't use
21493 # them.
21494 ld_shlibs_GCJ=no
21495 ;;
21496
21497 beos*)
21498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21499 allow_undefined_flag_GCJ=unsupported
21500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21501 # support --undefined. This deserves some investigation. FIXME
21502 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21503 else
21504 ld_shlibs_GCJ=no
21505 fi
21506 ;;
21507
21508 cygwin* | mingw* | pw32*)
21509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21510 # as there is no search path for DLLs.
21511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21512 allow_undefined_flag_GCJ=unsupported
21513 always_export_symbols_GCJ=no
21514 enable_shared_with_static_runtimes_GCJ=yes
21515 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21516
21517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21519 # If the export-symbols file already is a .def file (1st line
21520 # is EXPORTS), use it as is; otherwise, prepend...
21521 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21522 cp $export_symbols $output_objdir/$soname.def;
21523 else
21524 echo EXPORTS > $output_objdir/$soname.def;
21525 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021526 fi~
21527 $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 +000021528 else
21529 ld_shlibs=no
21530 fi
21531 ;;
21532
21533 netbsd*)
21534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21535 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21536 wlarc=
21537 else
21538 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21539 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21540 fi
21541 ;;
21542
21543 solaris* | sysv5*)
21544 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21545 ld_shlibs_GCJ=no
21546 cat <<EOF 1>&2
21547
21548*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21549*** create shared libraries on Solaris systems. Therefore, libtool
21550*** is disabling shared libraries support. We urge you to upgrade GNU
21551*** binutils to release 2.9.1 or newer. Another option is to modify
21552*** your PATH or compiler configuration so that the native linker is
21553*** used, and then restart.
21554
21555EOF
21556 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21559 else
21560 ld_shlibs_GCJ=no
21561 fi
21562 ;;
21563
21564 sunos4*)
21565 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21566 wlarc=
21567 hardcode_direct_GCJ=yes
21568 hardcode_shlibpath_var_GCJ=no
21569 ;;
21570
Reid Spencer2706f8c2004-09-19 23:53:36 +000021571 linux*)
21572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21573 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21574 archive_cmds_GCJ="$tmp_archive_cmds"
21575 supports_anon_versioning=no
21576 case `$LD -v 2>/dev/null` in
21577 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21578 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21579 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21580 *\ 2.11.*) ;; # other 2.11 versions
21581 *) supports_anon_versioning=yes ;;
21582 esac
21583 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021584 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21585cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21586$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021587 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21588 else
21589 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21590 fi
21591 else
21592 ld_shlibs_GCJ=no
21593 fi
21594 ;;
21595
John Criswell47fdd832003-07-14 16:52:07 +000021596 *)
21597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21598 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21599 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21600 else
21601 ld_shlibs_GCJ=no
21602 fi
21603 ;;
21604 esac
21605
21606 if test "$ld_shlibs_GCJ" = yes; then
21607 runpath_var=LD_RUN_PATH
21608 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21609 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21610 # ancient GNU ld didn't support --whole-archive et. al.
21611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21612 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21613 else
21614 whole_archive_flag_spec_GCJ=
21615 fi
21616 fi
21617 else
21618 # PORTME fill in a description of your system's linker (not GNU ld)
21619 case $host_os in
21620 aix3*)
21621 allow_undefined_flag_GCJ=unsupported
21622 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021623 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 +000021624 # Note: this linker hardcodes the directories in LIBPATH if there
21625 # are no directories specified by -L.
21626 hardcode_minus_L_GCJ=yes
21627 if test "$GCC" = yes && test -z "$link_static_flag"; then
21628 # Neither direct hardcoding nor static linking is supported with a
21629 # broken collect2.
21630 hardcode_direct_GCJ=unsupported
21631 fi
21632 ;;
21633
21634 aix4* | aix5*)
21635 if test "$host_cpu" = ia64; then
21636 # On IA64, the linker does run time linking by default, so we don't
21637 # have to do anything special.
21638 aix_use_runtimelinking=no
21639 exp_sym_flag='-Bexport'
21640 no_entry_flag=""
21641 else
21642 # If we're using GNU nm, then we don't want the "-C" option.
21643 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21644 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21645 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'
21646 else
21647 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'
21648 fi
21649 aix_use_runtimelinking=no
21650
21651 # Test if we are trying to use run time linking or normal
21652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21653 # need to do runtime linking.
21654 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21655 for ld_flag in $LDFLAGS; do
21656 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21657 aix_use_runtimelinking=yes
21658 break
21659 fi
21660 done
21661 esac
21662
21663 exp_sym_flag='-bexport'
21664 no_entry_flag='-bnoentry'
21665 fi
21666
21667 # When large executables or shared objects are built, AIX ld can
21668 # have problems creating the table of contents. If linking a library
21669 # or program results in "error TOC overflow" add -mminimal-toc to
21670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21672
21673 archive_cmds_GCJ=''
21674 hardcode_direct_GCJ=yes
21675 hardcode_libdir_separator_GCJ=':'
21676 link_all_deplibs_GCJ=yes
21677
21678 if test "$GCC" = yes; then
21679 case $host_os in aix4.012|aix4.012.*)
21680 # We only want to do this on AIX 4.2 and lower, the check
21681 # below for broken collect2 doesn't work under 4.3+
21682 collect2name=`${CC} -print-prog-name=collect2`
21683 if test -f "$collect2name" && \
21684 strings "$collect2name" | grep resolve_lib_name >/dev/null
21685 then
21686 # We have reworked collect2
21687 hardcode_direct_GCJ=yes
21688 else
21689 # We have old collect2
21690 hardcode_direct_GCJ=unsupported
21691 # It fails to find uninstalled libraries when the uninstalled
21692 # path is not listed in the libpath. Setting hardcode_minus_L
21693 # to unsupported forces relinking
21694 hardcode_minus_L_GCJ=yes
21695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21696 hardcode_libdir_separator_GCJ=
21697 fi
21698 esac
21699 shared_flag='-shared'
21700 else
21701 # not using gcc
21702 if test "$host_cpu" = ia64; then
21703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21704 # chokes on -Wl,-G. The following line is correct:
21705 shared_flag='-G'
21706 else
21707 if test "$aix_use_runtimelinking" = yes; then
21708 shared_flag='${wl}-G'
21709 else
21710 shared_flag='${wl}-bM:SRE'
21711 fi
21712 fi
21713 fi
21714
21715 # It seems that -bexpall does not export symbols beginning with
21716 # underscore (_), so it is better to generate a list of symbols to export.
21717 always_export_symbols_GCJ=yes
21718 if test "$aix_use_runtimelinking" = yes; then
21719 # Warning - without using the other runtime loading flags (-brtl),
21720 # -berok will link without error, but may produce a broken library.
21721 allow_undefined_flag_GCJ='-berok'
21722 # Determine the default libpath from the value encoded in an empty executable.
21723 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021724/* confdefs.h. */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021729
John Criswell47fdd832003-07-14 16:52:07 +000021730int
21731main ()
21732{
21733
21734 ;
21735 return 0;
21736}
21737_ACEOF
21738rm -f conftest.$ac_objext conftest$ac_exeext
21739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021741 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747 { ac_try='test -z "$ac_c_werror_flag"
21748 || test ! -s conftest.err'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; } &&
21754 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760
21761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21762}'`
21763# Check for a 64-bit object if we didn't find anything.
21764if 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; }
21765}'`; fi
21766else
21767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021768sed 's/^/| /' conftest.$ac_ext >&5
21769
John Criswell47fdd832003-07-14 16:52:07 +000021770fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021771rm -f conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021773if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21774
21775 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21776 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"
21777 else
21778 if test "$host_cpu" = ia64; then
21779 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21780 allow_undefined_flag_GCJ="-z nodefs"
21781 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"
21782 else
21783 # Determine the default libpath from the value encoded in an empty executable.
21784 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021785/* confdefs.h. */
21786_ACEOF
21787cat confdefs.h >>conftest.$ac_ext
21788cat >>conftest.$ac_ext <<_ACEOF
21789/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021790
John Criswell47fdd832003-07-14 16:52:07 +000021791int
21792main ()
21793{
21794
21795 ;
21796 return 0;
21797}
21798_ACEOF
21799rm -f conftest.$ac_objext conftest$ac_exeext
21800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021801 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021808 { ac_try='test -z "$ac_c_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821
21822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21823}'`
21824# Check for a 64-bit object if we didn't find anything.
21825if 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; }
21826}'`; fi
21827else
21828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021829sed 's/^/| /' conftest.$ac_ext >&5
21830
John Criswell47fdd832003-07-14 16:52:07 +000021831fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021832rm -f conftest.err conftest.$ac_objext \
21833 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21835
21836 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21837 # Warning - without using the other run time loading flags,
21838 # -berok will link without error, but may produce a broken library.
21839 no_undefined_flag_GCJ=' ${wl}-bernotok'
21840 allow_undefined_flag_GCJ=' ${wl}-berok'
21841 # -bexpall does not export symbols beginning with underscore (_)
21842 always_export_symbols_GCJ=yes
21843 # Exported symbols can be pulled into shared objects from archives
21844 whole_archive_flag_spec_GCJ=' '
21845 archive_cmds_need_lc_GCJ=yes
21846 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021847 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 +000021848 fi
21849 fi
21850 ;;
21851
21852 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021853 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 +000021854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21855 hardcode_minus_L_GCJ=yes
21856 # see comment about different semantics on the GNU ld section
21857 ld_shlibs_GCJ=no
21858 ;;
21859
Reid Spencer2706f8c2004-09-19 23:53:36 +000021860 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021861 export_dynamic_flag_spec_GCJ=-rdynamic
21862 ;;
21863
21864 cygwin* | mingw* | pw32*)
21865 # When not using gcc, we currently assume that we are using
21866 # Microsoft Visual C++.
21867 # hardcode_libdir_flag_spec is actually meaningless, as there is
21868 # no search path for DLLs.
21869 hardcode_libdir_flag_spec_GCJ=' '
21870 allow_undefined_flag_GCJ=unsupported
21871 # Tell ltmain to make .lib files, not .a files.
21872 libext=lib
21873 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021874 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021875 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021876 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 +000021877 # The linker will automatically build a .lib file if we build a DLL.
21878 old_archive_From_new_cmds_GCJ='true'
21879 # FIXME: Should let the user specify the lib program.
21880 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21881 fix_srcfile_path='`cygpath -w "$srcfile"`'
21882 enable_shared_with_static_runtimes_GCJ=yes
21883 ;;
21884
21885 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021886 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021887 rhapsody* | darwin1.[012])
21888 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21889 ;;
21890 *) # Darwin 1.3 on
21891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21892 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893 else
21894 case ${MACOSX_DEPLOYMENT_TARGET} in
21895 10.[012])
21896 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21897 ;;
21898 10.*)
21899 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21900 ;;
21901 esac
21902 fi
21903 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021904 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021905 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021906 hardcode_direct_GCJ=no
21907 hardcode_automatic_GCJ=yes
21908 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021909 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021910 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021911 if test "$GCC" = yes ; then
21912 output_verbose_link_cmd='echo'
21913 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21914 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21915 # 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 +000021916 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}'
21917 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 +000021918 else
21919 case "$cc_basename" in
21920 xlc*)
21921 output_verbose_link_cmd='echo'
21922 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21923 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21924 # 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 +000021925 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}'
21926 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 +000021927 ;;
21928 *)
21929 ld_shlibs_GCJ=no
21930 ;;
21931 esac
John Criswell47fdd832003-07-14 16:52:07 +000021932 fi
21933 ;;
21934
21935 dgux*)
21936 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21938 hardcode_shlibpath_var_GCJ=no
21939 ;;
21940
21941 freebsd1*)
21942 ld_shlibs_GCJ=no
21943 ;;
21944
21945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21946 # support. Future versions do this automatically, but an explicit c++rt0.o
21947 # does not break anything, and helps significantly (at the cost of a little
21948 # extra space).
21949 freebsd2.2*)
21950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21952 hardcode_direct_GCJ=yes
21953 hardcode_shlibpath_var_GCJ=no
21954 ;;
21955
21956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21957 freebsd2*)
21958 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21959 hardcode_direct_GCJ=yes
21960 hardcode_minus_L_GCJ=yes
21961 hardcode_shlibpath_var_GCJ=no
21962 ;;
21963
21964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021965 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021966 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21967 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21968 hardcode_direct_GCJ=yes
21969 hardcode_shlibpath_var_GCJ=no
21970 ;;
21971
21972 hpux9*)
21973 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021974 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 +000021975 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021976 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 +000021977 fi
21978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21979 hardcode_libdir_separator_GCJ=:
21980 hardcode_direct_GCJ=yes
21981
21982 # hardcode_minus_L: Not really in the search PATH,
21983 # but as the default location of the library.
21984 hardcode_minus_L_GCJ=yes
21985 export_dynamic_flag_spec_GCJ='${wl}-E'
21986 ;;
21987
21988 hpux10* | hpux11*)
21989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21990 case "$host_cpu" in
21991 hppa*64*|ia64*)
21992 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21993 ;;
21994 *)
21995 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21996 ;;
21997 esac
21998 else
21999 case "$host_cpu" in
22000 hppa*64*|ia64*)
22001 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22002 ;;
22003 *)
22004 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22005 ;;
22006 esac
22007 fi
22008 if test "$with_gnu_ld" = no; then
22009 case "$host_cpu" in
22010 hppa*64*)
22011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22012 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22013 hardcode_libdir_separator_GCJ=:
22014 hardcode_direct_GCJ=no
22015 hardcode_shlibpath_var_GCJ=no
22016 ;;
22017 ia64*)
22018 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22019 hardcode_direct_GCJ=no
22020 hardcode_shlibpath_var_GCJ=no
22021
22022 # hardcode_minus_L: Not really in the search PATH,
22023 # but as the default location of the library.
22024 hardcode_minus_L_GCJ=yes
22025 ;;
22026 *)
22027 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22028 hardcode_libdir_separator_GCJ=:
22029 hardcode_direct_GCJ=yes
22030 export_dynamic_flag_spec_GCJ='${wl}-E'
22031
22032 # hardcode_minus_L: Not really in the search PATH,
22033 # but as the default location of the library.
22034 hardcode_minus_L_GCJ=yes
22035 ;;
22036 esac
22037 fi
22038 ;;
22039
22040 irix5* | irix6* | nonstopux*)
22041 if test "$GCC" = yes; then
22042 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'
22043 else
22044 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'
22045 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22046 fi
22047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22048 hardcode_libdir_separator_GCJ=:
22049 link_all_deplibs_GCJ=yes
22050 ;;
22051
22052 netbsd*)
22053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22055 else
22056 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22057 fi
22058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22059 hardcode_direct_GCJ=yes
22060 hardcode_shlibpath_var_GCJ=no
22061 ;;
22062
22063 newsos6)
22064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22065 hardcode_direct_GCJ=yes
22066 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22067 hardcode_libdir_separator_GCJ=:
22068 hardcode_shlibpath_var_GCJ=no
22069 ;;
22070
22071 openbsd*)
22072 hardcode_direct_GCJ=yes
22073 hardcode_shlibpath_var_GCJ=no
22074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22075 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022076 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 +000022077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22078 export_dynamic_flag_spec_GCJ='${wl}-E'
22079 else
22080 case $host_os in
22081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084 ;;
22085 *)
22086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22088 ;;
22089 esac
22090 fi
22091 ;;
22092
22093 os2*)
22094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22095 hardcode_minus_L_GCJ=yes
22096 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022097 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 +000022098 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22099 ;;
22100
22101 osf3*)
22102 if test "$GCC" = yes; then
22103 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22104 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'
22105 else
22106 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22107 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'
22108 fi
22109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22110 hardcode_libdir_separator_GCJ=:
22111 ;;
22112
22113 osf4* | osf5*) # as osf3* with the addition of -msym flag
22114 if test "$GCC" = yes; then
22115 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22116 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'
22117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22118 else
22119 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22120 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 +000022121 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~
22122 $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'
22123
John Criswell47fdd832003-07-14 16:52:07 +000022124 # Both c and cxx compiler support -rpath directly
22125 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22126 fi
22127 hardcode_libdir_separator_GCJ=:
22128 ;;
22129
22130 sco3.2v5*)
22131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22132 hardcode_shlibpath_var_GCJ=no
22133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22134 runpath_var=LD_RUN_PATH
22135 hardcode_runpath_var=yes
22136 ;;
22137
22138 solaris*)
22139 no_undefined_flag_GCJ=' -z text'
22140 if test "$GCC" = yes; then
22141 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022142 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22143 $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 +000022144 else
22145 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022146 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147 $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 +000022148 fi
22149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22150 hardcode_shlibpath_var_GCJ=no
22151 case $host_os in
22152 solaris2.[0-5] | solaris2.[0-5].*) ;;
22153 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22154 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22155 esac
22156 link_all_deplibs_GCJ=yes
22157 ;;
22158
22159 sunos4*)
22160 if test "x$host_vendor" = xsequent; then
22161 # Use $CC to link under sequent, because it throws in some extra .o
22162 # files that make .init and .fini sections work.
22163 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22164 else
22165 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22166 fi
22167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22168 hardcode_direct_GCJ=yes
22169 hardcode_minus_L_GCJ=yes
22170 hardcode_shlibpath_var_GCJ=no
22171 ;;
22172
22173 sysv4)
22174 case $host_vendor in
22175 sni)
22176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_direct_GCJ=yes # is this really true???
22178 ;;
22179 siemens)
22180 ## LD is ld it makes a PLAMLIB
22181 ## CC just makes a GrossModule.
22182 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22183 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22184 hardcode_direct_GCJ=no
22185 ;;
22186 motorola)
22187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22189 ;;
22190 esac
22191 runpath_var='LD_RUN_PATH'
22192 hardcode_shlibpath_var_GCJ=no
22193 ;;
22194
22195 sysv4.3*)
22196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_shlibpath_var_GCJ=no
22198 export_dynamic_flag_spec_GCJ='-Bexport'
22199 ;;
22200
22201 sysv4*MP*)
22202 if test -d /usr/nec; then
22203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_shlibpath_var_GCJ=no
22205 runpath_var=LD_RUN_PATH
22206 hardcode_runpath_var=yes
22207 ld_shlibs_GCJ=yes
22208 fi
22209 ;;
22210
22211 sysv4.2uw2*)
22212 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22213 hardcode_direct_GCJ=yes
22214 hardcode_minus_L_GCJ=no
22215 hardcode_shlibpath_var_GCJ=no
22216 hardcode_runpath_var=yes
22217 runpath_var=LD_RUN_PATH
22218 ;;
22219
22220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22221 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22222 if test "$GCC" = yes; then
22223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22224 else
22225 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22226 fi
22227 runpath_var='LD_RUN_PATH'
22228 hardcode_shlibpath_var_GCJ=no
22229 ;;
22230
22231 sysv5*)
22232 no_undefined_flag_GCJ=' -z text'
22233 # $CC -shared without GNU ld will not create a library from C++
22234 # object files and a static libstdc++, better avoid it by now
22235 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237 $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 +000022238 hardcode_libdir_flag_spec_GCJ=
22239 hardcode_shlibpath_var_GCJ=no
22240 runpath_var='LD_RUN_PATH'
22241 ;;
22242
22243 uts4*)
22244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22246 hardcode_shlibpath_var_GCJ=no
22247 ;;
22248
22249 *)
22250 ld_shlibs_GCJ=no
22251 ;;
22252 esac
22253 fi
22254
22255echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22256echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22257test "$ld_shlibs_GCJ" = no && can_build_shared=no
22258
22259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22260if test "$GCC" = yes; then
22261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22262fi
22263
22264#
22265# Do we need to explicitly link libc?
22266#
22267case "x$archive_cmds_need_lc_GCJ" in
22268x|xyes)
22269 # Assume -lc should be added
22270 archive_cmds_need_lc_GCJ=yes
22271
22272 if test "$enable_shared" = yes && test "$GCC" = yes; then
22273 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022274 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022275 # FIXME: we may have to deal with multi-command sequences.
22276 ;;
22277 '$CC '*)
22278 # Test whether the compiler implicitly links with -lc since on some
22279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22280 # to ld, don't add -lc before -lgcc.
22281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22282echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22283 $rm conftest*
22284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22285
22286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287 (eval $ac_compile) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } 2>conftest.err; then
22291 soname=conftest
22292 lib=conftest
22293 libobjs=conftest.$ac_objext
22294 deplibs=
22295 wl=$lt_prog_compiler_wl_GCJ
22296 compiler_flags=-v
22297 linker_flags=-v
22298 verstring=
22299 output_objdir=.
22300 libname=conftest
22301 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22302 allow_undefined_flag_GCJ=
22303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22304 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }
22308 then
22309 archive_cmds_need_lc_GCJ=no
22310 else
22311 archive_cmds_need_lc_GCJ=yes
22312 fi
22313 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22314 else
22315 cat conftest.err 1>&5
22316 fi
22317 $rm conftest*
22318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22319echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22320 ;;
22321 esac
22322 fi
22323 ;;
22324esac
22325
John Criswell47fdd832003-07-14 16:52:07 +000022326echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22327echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22328library_names_spec=
22329libname_spec='lib$name'
22330soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022331shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022332postinstall_cmds=
22333postuninstall_cmds=
22334finish_cmds=
22335finish_eval=
22336shlibpath_var=
22337shlibpath_overrides_runpath=unknown
22338version_type=none
22339dynamic_linker="$host_os ld.so"
22340sys_lib_dlsearch_path_spec="/lib /usr/lib"
22341if test "$GCC" = yes; then
22342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22344 # if the path contains ";" then we assume it to be the separator
22345 # otherwise default to the standard path separator (i.e. ":") - it is
22346 # assumed that no part of a normal pathname contains ";" but that should
22347 # okay in the real world where ";" in dirpaths is itself problematic.
22348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22349 else
22350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22351 fi
22352else
22353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22354fi
22355need_lib_prefix=unknown
22356hardcode_into_libs=no
22357
22358# when you set need_version to no, make sure it does not cause -set_version
22359# flags to be left without arguments
22360need_version=unknown
22361
22362case $host_os in
22363aix3*)
22364 version_type=linux
22365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22366 shlibpath_var=LIBPATH
22367
22368 # AIX 3 has no versioning support, so we append a major version to the name.
22369 soname_spec='${libname}${release}${shared_ext}$major'
22370 ;;
22371
22372aix4* | aix5*)
22373 version_type=linux
22374 need_lib_prefix=no
22375 need_version=no
22376 hardcode_into_libs=yes
22377 if test "$host_cpu" = ia64; then
22378 # AIX 5 supports IA64
22379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22380 shlibpath_var=LD_LIBRARY_PATH
22381 else
22382 # With GCC up to 2.95.x, collect2 would create an import file
22383 # for dependence libraries. The import file would start with
22384 # the line `#! .'. This would cause the generated library to
22385 # depend on `.', always an invalid library. This was fixed in
22386 # development snapshots of GCC prior to 3.0.
22387 case $host_os in
22388 aix4 | aix4.[01] | aix4.[01].*)
22389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22390 echo ' yes '
22391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22392 :
22393 else
22394 can_build_shared=no
22395 fi
22396 ;;
22397 esac
22398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22399 # soname into executable. Probably we can add versioning support to
22400 # collect2, so additional links can be useful in future.
22401 if test "$aix_use_runtimelinking" = yes; then
22402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22403 # instead of lib<name>.a to let people know that these are not
22404 # typical AIX shared libraries.
22405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22406 else
22407 # We preserve .a as extension for shared libraries through AIX4.2
22408 # and later when we are not doing run time linking.
22409 library_names_spec='${libname}${release}.a $libname.a'
22410 soname_spec='${libname}${release}${shared_ext}$major'
22411 fi
22412 shlibpath_var=LIBPATH
22413 fi
22414 ;;
22415
22416amigaos*)
22417 library_names_spec='$libname.ixlibrary $libname.a'
22418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022419 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 +000022420 ;;
22421
22422beos*)
22423 library_names_spec='${libname}${shared_ext}'
22424 dynamic_linker="$host_os ld.so"
22425 shlibpath_var=LIBRARY_PATH
22426 ;;
22427
Reid Spencer2706f8c2004-09-19 23:53:36 +000022428bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022429 version_type=linux
22430 need_version=no
22431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22432 soname_spec='${libname}${release}${shared_ext}$major'
22433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22434 shlibpath_var=LD_LIBRARY_PATH
22435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22437 # the default ld.so.conf also contains /usr/contrib/lib and
22438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22439 # libtool to hard-code these into programs
22440 ;;
22441
22442cygwin* | mingw* | pw32*)
22443 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022444 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022445 need_version=no
22446 need_lib_prefix=no
22447
22448 case $GCC,$host_os in
22449 yes,cygwin* | yes,mingw* | yes,pw32*)
22450 library_names_spec='$libname.dll.a'
22451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022452 postinstall_cmds='base_file=`basename \${file}`~
22453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22454 dldir=$destdir/`dirname \$dlpath`~
22455 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022456 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22458 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022459 $rm \$dlpath'
22460 shlibpath_overrides_runpath=yes
22461
22462 case $host_os in
22463 cygwin*)
22464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22465 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 +000022466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022467 ;;
22468 mingw*)
22469 # MinGW DLLs use traditional 'lib' prefix
22470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22473 # It is most probably a Windows format PATH printed by
22474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22475 # path with ; separators, and with drive letters. We can handle the
22476 # drive letters (cygwin fileutils understands them), so leave them,
22477 # especially as we might pass files found there to a mingw objdump,
22478 # which wouldn't understand a cygwinified path. Ahh.
22479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22480 else
22481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22482 fi
22483 ;;
22484 pw32*)
22485 # pw32 DLLs use 'pw' prefix rather than 'lib'
22486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22487 ;;
22488 esac
22489 ;;
22490
22491 *)
22492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22493 ;;
22494 esac
22495 dynamic_linker='Win32 ld.exe'
22496 # FIXME: first we should search . and the directory the executable is in
22497 shlibpath_var=PATH
22498 ;;
22499
22500darwin* | rhapsody*)
22501 dynamic_linker="$host_os dyld"
22502 version_type=darwin
22503 need_lib_prefix=no
22504 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022506 soname_spec='${libname}${release}${major}$shared_ext'
22507 shlibpath_overrides_runpath=yes
22508 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022509 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511 if test "$GCC" = yes; then
22512 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"`
22513 else
22514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022515 fi
22516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22517 ;;
22518
22519dgux*)
22520 version_type=linux
22521 need_lib_prefix=no
22522 need_version=no
22523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22524 soname_spec='${libname}${release}${shared_ext}$major'
22525 shlibpath_var=LD_LIBRARY_PATH
22526 ;;
22527
22528freebsd1*)
22529 dynamic_linker=no
22530 ;;
22531
Reid Spencer2706f8c2004-09-19 23:53:36 +000022532kfreebsd*-gnu)
22533 version_type=linux
22534 need_lib_prefix=no
22535 need_version=no
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22537 soname_spec='${libname}${release}${shared_ext}$major'
22538 shlibpath_var=LD_LIBRARY_PATH
22539 shlibpath_overrides_runpath=no
22540 hardcode_into_libs=yes
22541 dynamic_linker='GNU ld.so'
22542 ;;
22543
John Criswell47fdd832003-07-14 16:52:07 +000022544freebsd*)
22545 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22546 version_type=freebsd-$objformat
22547 case $version_type in
22548 freebsd-elf*)
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22550 need_version=no
22551 need_lib_prefix=no
22552 ;;
22553 freebsd-*)
22554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22555 need_version=yes
22556 ;;
22557 esac
22558 shlibpath_var=LD_LIBRARY_PATH
22559 case $host_os in
22560 freebsd2*)
22561 shlibpath_overrides_runpath=yes
22562 ;;
22563 freebsd3.01* | freebsdelf3.01*)
22564 shlibpath_overrides_runpath=yes
22565 hardcode_into_libs=yes
22566 ;;
22567 *) # from 3.2 on
22568 shlibpath_overrides_runpath=no
22569 hardcode_into_libs=yes
22570 ;;
22571 esac
22572 ;;
22573
22574gnu*)
22575 version_type=linux
22576 need_lib_prefix=no
22577 need_version=no
22578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22579 soname_spec='${libname}${release}${shared_ext}$major'
22580 shlibpath_var=LD_LIBRARY_PATH
22581 hardcode_into_libs=yes
22582 ;;
22583
22584hpux9* | hpux10* | hpux11*)
22585 # Give a soname corresponding to the major version so that dld.sl refuses to
22586 # link against other versions.
22587 version_type=sunos
22588 need_lib_prefix=no
22589 need_version=no
22590 case "$host_cpu" in
22591 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022592 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022593 hardcode_into_libs=yes
22594 dynamic_linker="$host_os dld.so"
22595 shlibpath_var=LD_LIBRARY_PATH
22596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22598 soname_spec='${libname}${release}${shared_ext}$major'
22599 if test "X$HPUX_IA64_MODE" = X32; then
22600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22601 else
22602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22603 fi
22604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22605 ;;
22606 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022607 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022608 hardcode_into_libs=yes
22609 dynamic_linker="$host_os dld.sl"
22610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22616 ;;
22617 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022618 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022619 dynamic_linker="$host_os dld.sl"
22620 shlibpath_var=SHLIB_PATH
22621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22623 soname_spec='${libname}${release}${shared_ext}$major'
22624 ;;
22625 esac
22626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22627 postinstall_cmds='chmod 555 $lib'
22628 ;;
22629
22630irix5* | irix6* | nonstopux*)
22631 case $host_os in
22632 nonstopux*) version_type=nonstopux ;;
22633 *)
22634 if test "$lt_cv_prog_gnu_ld" = yes; then
22635 version_type=linux
22636 else
22637 version_type=irix
22638 fi ;;
22639 esac
22640 need_lib_prefix=no
22641 need_version=no
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22644 case $host_os in
22645 irix5* | nonstopux*)
22646 libsuff= shlibsuff=
22647 ;;
22648 *)
22649 case $LD in # libtool.m4 will add one of these switches to LD
22650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22651 libsuff= shlibsuff= libmagic=32-bit;;
22652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22653 libsuff=32 shlibsuff=N32 libmagic=N32;;
22654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22656 *) libsuff= shlibsuff= libmagic=never-match;;
22657 esac
22658 ;;
22659 esac
22660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22661 shlibpath_overrides_runpath=no
22662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22664 hardcode_into_libs=yes
22665 ;;
22666
22667# No shared lib support for Linux oldld, aout, or coff.
22668linux*oldld* | linux*aout* | linux*coff*)
22669 dynamic_linker=no
22670 ;;
22671
22672# This must be Linux ELF.
22673linux*)
22674 version_type=linux
22675 need_lib_prefix=no
22676 need_version=no
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22680 shlibpath_var=LD_LIBRARY_PATH
22681 shlibpath_overrides_runpath=no
22682 # This implies no fast_install, which is unacceptable.
22683 # Some rework will be needed to allow for fast_install
22684 # before this can be enabled.
22685 hardcode_into_libs=yes
22686
Reid Spencer2706f8c2004-09-19 23:53:36 +000022687 # Append ld.so.conf contents to the search path
22688 if test -f /etc/ld.so.conf; then
22689 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22691 fi
22692
John Criswell47fdd832003-07-14 16:52:07 +000022693 # We used to test for /lib/ld.so.1 and disable shared libraries on
22694 # powerpc, because MkLinux only supported shared libraries with the
22695 # GNU dynamic linker. Since this was broken with cross compilers,
22696 # most powerpc-linux boxes support dynamic linking these days and
22697 # people can always --disable-shared, the test was removed, and we
22698 # assume the GNU/Linux dynamic linker is in use.
22699 dynamic_linker='GNU/Linux ld.so'
22700 ;;
22701
Reid Spencer2706f8c2004-09-19 23:53:36 +000022702knetbsd*-gnu)
22703 version_type=linux
22704 need_lib_prefix=no
22705 need_version=no
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 shlibpath_var=LD_LIBRARY_PATH
22709 shlibpath_overrides_runpath=no
22710 hardcode_into_libs=yes
22711 dynamic_linker='GNU ld.so'
22712 ;;
22713
John Criswell47fdd832003-07-14 16:52:07 +000022714netbsd*)
22715 version_type=sunos
22716 need_lib_prefix=no
22717 need_version=no
22718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22721 dynamic_linker='NetBSD (a.out) ld.so'
22722 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022724 soname_spec='${libname}${release}${shared_ext}$major'
22725 dynamic_linker='NetBSD ld.elf_so'
22726 fi
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=yes
22729 hardcode_into_libs=yes
22730 ;;
22731
22732newsos6)
22733 version_type=linux
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath=yes
22737 ;;
22738
Reid Spencer2706f8c2004-09-19 23:53:36 +000022739nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022740 version_type=linux
22741 need_lib_prefix=no
22742 need_version=no
22743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744 soname_spec='${libname}${release}${shared_ext}$major'
22745 shlibpath_var=LD_LIBRARY_PATH
22746 shlibpath_overrides_runpath=yes
22747 ;;
22748
22749openbsd*)
22750 version_type=sunos
22751 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022752 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22757 case $host_os in
22758 openbsd2.[89] | openbsd2.[89].*)
22759 shlibpath_overrides_runpath=no
22760 ;;
22761 *)
22762 shlibpath_overrides_runpath=yes
22763 ;;
22764 esac
22765 else
22766 shlibpath_overrides_runpath=yes
22767 fi
22768 ;;
22769
22770os2*)
22771 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022772 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022773 need_lib_prefix=no
22774 library_names_spec='$libname${shared_ext} $libname.a'
22775 dynamic_linker='OS/2 ld.exe'
22776 shlibpath_var=LIBPATH
22777 ;;
22778
22779osf3* | osf4* | osf5*)
22780 version_type=osf
22781 need_lib_prefix=no
22782 need_version=no
22783 soname_spec='${libname}${release}${shared_ext}$major'
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22788 ;;
22789
22790sco3.2v5*)
22791 version_type=osf
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794 shlibpath_var=LD_LIBRARY_PATH
22795 ;;
22796
22797solaris*)
22798 version_type=linux
22799 need_lib_prefix=no
22800 need_version=no
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=yes
22805 hardcode_into_libs=yes
22806 # ldd complains unless libraries are executable
22807 postinstall_cmds='chmod +x $lib'
22808 ;;
22809
22810sunos4*)
22811 version_type=sunos
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 if test "$with_gnu_ld" = yes; then
22817 need_lib_prefix=no
22818 fi
22819 need_version=yes
22820 ;;
22821
22822sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22823 version_type=linux
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 case $host_vendor in
22828 sni)
22829 shlibpath_overrides_runpath=no
22830 need_lib_prefix=no
22831 export_dynamic_flag_spec='${wl}-Blargedynsym'
22832 runpath_var=LD_RUN_PATH
22833 ;;
22834 siemens)
22835 need_lib_prefix=no
22836 ;;
22837 motorola)
22838 need_lib_prefix=no
22839 need_version=no
22840 shlibpath_overrides_runpath=no
22841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22842 ;;
22843 esac
22844 ;;
22845
22846sysv4*MP*)
22847 if test -d /usr/nec ;then
22848 version_type=linux
22849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22850 soname_spec='$libname${shared_ext}.$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 fi
22853 ;;
22854
22855uts4*)
22856 version_type=linux
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 ;;
22861
22862*)
22863 dynamic_linker=no
22864 ;;
22865esac
22866echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22867echo "${ECHO_T}$dynamic_linker" >&6
22868test "$dynamic_linker" = no && can_build_shared=no
22869
Reid Spencer2706f8c2004-09-19 23:53:36 +000022870echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22871echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22872hardcode_action_GCJ=
22873if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22874 test -n "$runpath_var_GCJ" || \
22875 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22876
22877 # We can hardcode non-existant directories.
22878 if test "$hardcode_direct_GCJ" != no &&
22879 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22880 # have to relink, otherwise we might link with an installed library
22881 # when we should be linking with a yet-to-be-installed one
22882 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22883 test "$hardcode_minus_L_GCJ" != no; then
22884 # Linking always hardcodes the temporary library directory.
22885 hardcode_action_GCJ=relink
22886 else
22887 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22888 hardcode_action_GCJ=immediate
22889 fi
22890else
22891 # We cannot hardcode anything, or else we can only hardcode existing
22892 # directories.
22893 hardcode_action_GCJ=unsupported
22894fi
22895echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22896echo "${ECHO_T}$hardcode_action_GCJ" >&6
22897
22898if test "$hardcode_action_GCJ" = relink; then
22899 # Fast installation is not supported
22900 enable_fast_install=no
22901elif test "$shlibpath_overrides_runpath" = yes ||
22902 test "$enable_shared" = no; then
22903 # Fast installation is not necessary
22904 enable_fast_install=needless
22905fi
22906
22907striplib=
22908old_striplib=
22909echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22910echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22911if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22913 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22914 echo "$as_me:$LINENO: result: yes" >&5
22915echo "${ECHO_T}yes" >&6
22916else
22917# FIXME - insert some real tests, host_os isn't really good enough
22918 case $host_os in
22919 darwin*)
22920 if test -n "$STRIP" ; then
22921 striplib="$STRIP -x"
22922 echo "$as_me:$LINENO: result: yes" >&5
22923echo "${ECHO_T}yes" >&6
22924 else
22925 echo "$as_me:$LINENO: result: no" >&5
22926echo "${ECHO_T}no" >&6
22927fi
22928 ;;
22929 *)
22930 echo "$as_me:$LINENO: result: no" >&5
22931echo "${ECHO_T}no" >&6
22932 ;;
22933 esac
22934fi
22935
John Criswell47fdd832003-07-14 16:52:07 +000022936if test "x$enable_dlopen" != xyes; then
22937 enable_dlopen=unknown
22938 enable_dlopen_self=unknown
22939 enable_dlopen_self_static=unknown
22940else
22941 lt_cv_dlopen=no
22942 lt_cv_dlopen_libs=
22943
22944 case $host_os in
22945 beos*)
22946 lt_cv_dlopen="load_add_on"
22947 lt_cv_dlopen_libs=
22948 lt_cv_dlopen_self=yes
22949 ;;
22950
22951 mingw* | pw32*)
22952 lt_cv_dlopen="LoadLibrary"
22953 lt_cv_dlopen_libs=
22954 ;;
22955
22956 cygwin*)
22957 lt_cv_dlopen="dlopen"
22958 lt_cv_dlopen_libs=
22959 ;;
22960
22961 darwin*)
22962 # if libdl is installed we need to link against it
22963 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22964echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22965if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967else
22968 ac_check_lib_save_LIBS=$LIBS
22969LIBS="-ldl $LIBS"
22970cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022971/* confdefs.h. */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022976
22977/* Override any gcc2 internal prototype to avoid an error. */
22978#ifdef __cplusplus
22979extern "C"
22980#endif
22981/* We use char because int might match the return type of a gcc2
22982 builtin and then its argument prototype would still apply. */
22983char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022984int
22985main ()
22986{
22987dlopen ();
22988 ;
22989 return 0;
22990}
22991_ACEOF
22992rm -f conftest.$ac_objext conftest$ac_exeext
22993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022994 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022995 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022996 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1
22998 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023001 { ac_try='test -z "$ac_c_werror_flag"
23002 || test ! -s conftest.err'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23005 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; } &&
23008 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; }; then
23014 ac_cv_lib_dl_dlopen=yes
23015else
23016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023017sed 's/^/| /' conftest.$ac_ext >&5
23018
John Criswell47fdd832003-07-14 16:52:07 +000023019ac_cv_lib_dl_dlopen=no
23020fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023021rm -f conftest.err conftest.$ac_objext \
23022 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023023LIBS=$ac_check_lib_save_LIBS
23024fi
23025echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23026echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23027if test $ac_cv_lib_dl_dlopen = yes; then
23028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23029else
23030
23031 lt_cv_dlopen="dyld"
23032 lt_cv_dlopen_libs=
23033 lt_cv_dlopen_self=yes
23034
23035fi
23036
23037 ;;
23038
23039 *)
23040 echo "$as_me:$LINENO: checking for shl_load" >&5
23041echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23042if test "${ac_cv_func_shl_load+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23044else
23045 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023046/* confdefs.h. */
23047_ACEOF
23048cat confdefs.h >>conftest.$ac_ext
23049cat >>conftest.$ac_ext <<_ACEOF
23050/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23053#define shl_load innocuous_shl_load
23054
John Criswell47fdd832003-07-14 16:52:07 +000023055/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023056 which can conflict with char shl_load (); below.
23057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23058 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059
John Criswell0c38eaf2003-09-10 15:17:25 +000023060#ifdef __STDC__
23061# include <limits.h>
23062#else
23063# include <assert.h>
23064#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023065
23066#undef shl_load
23067
John Criswell47fdd832003-07-14 16:52:07 +000023068/* Override any gcc2 internal prototype to avoid an error. */
23069#ifdef __cplusplus
23070extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023071{
John Criswell47fdd832003-07-14 16:52:07 +000023072#endif
23073/* We use char because int might match the return type of a gcc2
23074 builtin and then its argument prototype would still apply. */
23075char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023076/* The GNU C library defines this for functions which it implements
23077 to always fail with ENOSYS. Some functions are actually named
23078 something starting with __ and the normal name is an alias. */
23079#if defined (__stub_shl_load) || defined (__stub___shl_load)
23080choke me
23081#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023082char (*f) () = shl_load;
23083#endif
23084#ifdef __cplusplus
23085}
John Criswell47fdd832003-07-14 16:52:07 +000023086#endif
23087
John Criswell0c38eaf2003-09-10 15:17:25 +000023088int
23089main ()
23090{
23091return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023092 ;
23093 return 0;
23094}
23095_ACEOF
23096rm -f conftest.$ac_objext conftest$ac_exeext
23097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023098 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023105 { ac_try='test -z "$ac_c_werror_flag"
23106 || test ! -s conftest.err'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_func_shl_load=yes
23119else
23120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023121sed 's/^/| /' conftest.$ac_ext >&5
23122
John Criswell47fdd832003-07-14 16:52:07 +000023123ac_cv_func_shl_load=no
23124fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023125rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023127fi
23128echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23129echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23130if test $ac_cv_func_shl_load = yes; then
23131 lt_cv_dlopen="shl_load"
23132else
23133 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23134echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23135if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23137else
23138 ac_check_lib_save_LIBS=$LIBS
23139LIBS="-ldld $LIBS"
23140cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023141/* confdefs.h. */
23142_ACEOF
23143cat confdefs.h >>conftest.$ac_ext
23144cat >>conftest.$ac_ext <<_ACEOF
23145/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023146
23147/* Override any gcc2 internal prototype to avoid an error. */
23148#ifdef __cplusplus
23149extern "C"
23150#endif
23151/* We use char because int might match the return type of a gcc2
23152 builtin and then its argument prototype would still apply. */
23153char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023154int
23155main ()
23156{
23157shl_load ();
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162rm -f conftest.$ac_objext conftest$ac_exeext
23163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023164 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023166 grep -v '^ *+' conftest.er1 >conftest.err
23167 rm -f conftest.er1
23168 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023171 { ac_try='test -z "$ac_c_werror_flag"
23172 || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_cv_lib_dld_shl_load=yes
23185else
23186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023187sed 's/^/| /' conftest.$ac_ext >&5
23188
John Criswell47fdd832003-07-14 16:52:07 +000023189ac_cv_lib_dld_shl_load=no
23190fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023191rm -f conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023193LIBS=$ac_check_lib_save_LIBS
23194fi
23195echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23196echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23197if test $ac_cv_lib_dld_shl_load = yes; then
23198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23199else
23200 echo "$as_me:$LINENO: checking for dlopen" >&5
23201echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23202if test "${ac_cv_func_dlopen+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204else
23205 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023206/* confdefs.h. */
23207_ACEOF
23208cat confdefs.h >>conftest.$ac_ext
23209cat >>conftest.$ac_ext <<_ACEOF
23210/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023211/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23213#define dlopen innocuous_dlopen
23214
John Criswell47fdd832003-07-14 16:52:07 +000023215/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023216 which can conflict with char dlopen (); below.
23217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23218 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219
John Criswell0c38eaf2003-09-10 15:17:25 +000023220#ifdef __STDC__
23221# include <limits.h>
23222#else
23223# include <assert.h>
23224#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023225
23226#undef dlopen
23227
John Criswell47fdd832003-07-14 16:52:07 +000023228/* Override any gcc2 internal prototype to avoid an error. */
23229#ifdef __cplusplus
23230extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023231{
John Criswell47fdd832003-07-14 16:52:07 +000023232#endif
23233/* We use char because int might match the return type of a gcc2
23234 builtin and then its argument prototype would still apply. */
23235char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023236/* The GNU C library defines this for functions which it implements
23237 to always fail with ENOSYS. Some functions are actually named
23238 something starting with __ and the normal name is an alias. */
23239#if defined (__stub_dlopen) || defined (__stub___dlopen)
23240choke me
23241#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023242char (*f) () = dlopen;
23243#endif
23244#ifdef __cplusplus
23245}
John Criswell47fdd832003-07-14 16:52:07 +000023246#endif
23247
John Criswell0c38eaf2003-09-10 15:17:25 +000023248int
23249main ()
23250{
23251return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023252 ;
23253 return 0;
23254}
23255_ACEOF
23256rm -f conftest.$ac_objext conftest$ac_exeext
23257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_func_dlopen=yes
23279else
23280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023281sed 's/^/| /' conftest.$ac_ext >&5
23282
John Criswell47fdd832003-07-14 16:52:07 +000023283ac_cv_func_dlopen=no
23284fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023287fi
23288echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23289echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23290if test $ac_cv_func_dlopen = yes; then
23291 lt_cv_dlopen="dlopen"
23292else
23293 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23294echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23295if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23297else
23298 ac_check_lib_save_LIBS=$LIBS
23299LIBS="-ldl $LIBS"
23300cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023301/* confdefs.h. */
23302_ACEOF
23303cat confdefs.h >>conftest.$ac_ext
23304cat >>conftest.$ac_ext <<_ACEOF
23305/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023306
23307/* Override any gcc2 internal prototype to avoid an error. */
23308#ifdef __cplusplus
23309extern "C"
23310#endif
23311/* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23313char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023314int
23315main ()
23316{
23317dlopen ();
23318 ;
23319 return 0;
23320}
23321_ACEOF
23322rm -f conftest.$ac_objext conftest$ac_exeext
23323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023324 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023331 { ac_try='test -z "$ac_c_werror_flag"
23332 || test ! -s conftest.err'
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 ac_cv_lib_dl_dlopen=yes
23345else
23346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023347sed 's/^/| /' conftest.$ac_ext >&5
23348
John Criswell47fdd832003-07-14 16:52:07 +000023349ac_cv_lib_dl_dlopen=no
23350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023351rm -f conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023353LIBS=$ac_check_lib_save_LIBS
23354fi
23355echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23356echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23357if test $ac_cv_lib_dl_dlopen = yes; then
23358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23359else
23360 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23361echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23362if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23363 echo $ECHO_N "(cached) $ECHO_C" >&6
23364else
23365 ac_check_lib_save_LIBS=$LIBS
23366LIBS="-lsvld $LIBS"
23367cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023368/* confdefs.h. */
23369_ACEOF
23370cat confdefs.h >>conftest.$ac_ext
23371cat >>conftest.$ac_ext <<_ACEOF
23372/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023373
23374/* Override any gcc2 internal prototype to avoid an error. */
23375#ifdef __cplusplus
23376extern "C"
23377#endif
23378/* We use char because int might match the return type of a gcc2
23379 builtin and then its argument prototype would still apply. */
23380char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023381int
23382main ()
23383{
23384dlopen ();
23385 ;
23386 return 0;
23387}
23388_ACEOF
23389rm -f conftest.$ac_objext conftest$ac_exeext
23390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023391 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023398 { ac_try='test -z "$ac_c_werror_flag"
23399 || test ! -s conftest.err'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; } &&
23405 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407 (eval $ac_try) 2>&5
23408 ac_status=$?
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; }; then
23411 ac_cv_lib_svld_dlopen=yes
23412else
23413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023414sed 's/^/| /' conftest.$ac_ext >&5
23415
John Criswell47fdd832003-07-14 16:52:07 +000023416ac_cv_lib_svld_dlopen=no
23417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023418rm -f conftest.err conftest.$ac_objext \
23419 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023420LIBS=$ac_check_lib_save_LIBS
23421fi
23422echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23423echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23424if test $ac_cv_lib_svld_dlopen = yes; then
23425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23426else
23427 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23428echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23429if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23430 echo $ECHO_N "(cached) $ECHO_C" >&6
23431else
23432 ac_check_lib_save_LIBS=$LIBS
23433LIBS="-ldld $LIBS"
23434cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023435/* confdefs.h. */
23436_ACEOF
23437cat confdefs.h >>conftest.$ac_ext
23438cat >>conftest.$ac_ext <<_ACEOF
23439/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023440
23441/* Override any gcc2 internal prototype to avoid an error. */
23442#ifdef __cplusplus
23443extern "C"
23444#endif
23445/* We use char because int might match the return type of a gcc2
23446 builtin and then its argument prototype would still apply. */
23447char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023448int
23449main ()
23450{
23451dld_link ();
23452 ;
23453 return 0;
23454}
23455_ACEOF
23456rm -f conftest.$ac_objext conftest$ac_exeext
23457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023458 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023460 grep -v '^ *+' conftest.er1 >conftest.err
23461 rm -f conftest.er1
23462 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023465 { ac_try='test -z "$ac_c_werror_flag"
23466 || test ! -s conftest.err'
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23469 ac_status=$?
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; } &&
23472 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23475 ac_status=$?
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; }; then
23478 ac_cv_lib_dld_dld_link=yes
23479else
23480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023481sed 's/^/| /' conftest.$ac_ext >&5
23482
John Criswell47fdd832003-07-14 16:52:07 +000023483ac_cv_lib_dld_dld_link=no
23484fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023485rm -f conftest.err conftest.$ac_objext \
23486 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023487LIBS=$ac_check_lib_save_LIBS
23488fi
23489echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23490echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23491if test $ac_cv_lib_dld_dld_link = yes; then
23492 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23493fi
23494
23495
23496fi
23497
23498
23499fi
23500
23501
23502fi
23503
23504
23505fi
23506
23507
23508fi
23509
23510 ;;
23511 esac
23512
23513 if test "x$lt_cv_dlopen" != xno; then
23514 enable_dlopen=yes
23515 else
23516 enable_dlopen=no
23517 fi
23518
23519 case $lt_cv_dlopen in
23520 dlopen)
23521 save_CPPFLAGS="$CPPFLAGS"
23522 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23523
23524 save_LDFLAGS="$LDFLAGS"
23525 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23526
23527 save_LIBS="$LIBS"
23528 LIBS="$lt_cv_dlopen_libs $LIBS"
23529
23530 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23531echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23532if test "${lt_cv_dlopen_self+set}" = set; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23534else
23535 if test "$cross_compiling" = yes; then :
23536 lt_cv_dlopen_self=cross
23537else
23538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23539 lt_status=$lt_dlunknown
23540 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +000023541#line 23541 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023542#include "confdefs.h"
23543
23544#if HAVE_DLFCN_H
23545#include <dlfcn.h>
23546#endif
23547
23548#include <stdio.h>
23549
23550#ifdef RTLD_GLOBAL
23551# define LT_DLGLOBAL RTLD_GLOBAL
23552#else
23553# ifdef DL_GLOBAL
23554# define LT_DLGLOBAL DL_GLOBAL
23555# else
23556# define LT_DLGLOBAL 0
23557# endif
23558#endif
23559
23560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23561 find out it does not work in some platform. */
23562#ifndef LT_DLLAZY_OR_NOW
23563# ifdef RTLD_LAZY
23564# define LT_DLLAZY_OR_NOW RTLD_LAZY
23565# else
23566# ifdef DL_LAZY
23567# define LT_DLLAZY_OR_NOW DL_LAZY
23568# else
23569# ifdef RTLD_NOW
23570# define LT_DLLAZY_OR_NOW RTLD_NOW
23571# else
23572# ifdef DL_NOW
23573# define LT_DLLAZY_OR_NOW DL_NOW
23574# else
23575# define LT_DLLAZY_OR_NOW 0
23576# endif
23577# endif
23578# endif
23579# endif
23580#endif
23581
23582#ifdef __cplusplus
23583extern "C" void exit (int);
23584#endif
23585
23586void fnord() { int i=42;}
23587int main ()
23588{
23589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23590 int status = $lt_dlunknown;
23591
23592 if (self)
23593 {
23594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23595 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23596 /* dlclose (self); */
23597 }
23598
23599 exit (status);
23600}
23601EOF
23602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23603 (eval $ac_link) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23607 (./conftest; exit; ) 2>/dev/null
23608 lt_status=$?
23609 case x$lt_status in
23610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23612 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23613 esac
23614 else :
23615 # compilation failed
23616 lt_cv_dlopen_self=no
23617 fi
23618fi
23619rm -fr conftest*
23620
23621
23622fi
23623echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23624echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23625
23626 if test "x$lt_cv_dlopen_self" = xyes; then
23627 LDFLAGS="$LDFLAGS $link_static_flag"
23628 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23629echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23630if test "${lt_cv_dlopen_self_static+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632else
23633 if test "$cross_compiling" = yes; then :
23634 lt_cv_dlopen_self_static=cross
23635else
23636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23637 lt_status=$lt_dlunknown
23638 cat > conftest.$ac_ext <<EOF
Reid Spencer945de9b2005-04-22 07:27:28 +000023639#line 23639 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023640#include "confdefs.h"
23641
23642#if HAVE_DLFCN_H
23643#include <dlfcn.h>
23644#endif
23645
23646#include <stdio.h>
23647
23648#ifdef RTLD_GLOBAL
23649# define LT_DLGLOBAL RTLD_GLOBAL
23650#else
23651# ifdef DL_GLOBAL
23652# define LT_DLGLOBAL DL_GLOBAL
23653# else
23654# define LT_DLGLOBAL 0
23655# endif
23656#endif
23657
23658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23659 find out it does not work in some platform. */
23660#ifndef LT_DLLAZY_OR_NOW
23661# ifdef RTLD_LAZY
23662# define LT_DLLAZY_OR_NOW RTLD_LAZY
23663# else
23664# ifdef DL_LAZY
23665# define LT_DLLAZY_OR_NOW DL_LAZY
23666# else
23667# ifdef RTLD_NOW
23668# define LT_DLLAZY_OR_NOW RTLD_NOW
23669# else
23670# ifdef DL_NOW
23671# define LT_DLLAZY_OR_NOW DL_NOW
23672# else
23673# define LT_DLLAZY_OR_NOW 0
23674# endif
23675# endif
23676# endif
23677# endif
23678#endif
23679
23680#ifdef __cplusplus
23681extern "C" void exit (int);
23682#endif
23683
23684void fnord() { int i=42;}
23685int main ()
23686{
23687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23688 int status = $lt_dlunknown;
23689
23690 if (self)
23691 {
23692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23694 /* dlclose (self); */
23695 }
23696
23697 exit (status);
23698}
23699EOF
23700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23701 (eval $ac_link) 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23705 (./conftest; exit; ) 2>/dev/null
23706 lt_status=$?
23707 case x$lt_status in
23708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23710 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23711 esac
23712 else :
23713 # compilation failed
23714 lt_cv_dlopen_self_static=no
23715 fi
23716fi
23717rm -fr conftest*
23718
23719
23720fi
23721echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23722echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23723 fi
23724
23725 CPPFLAGS="$save_CPPFLAGS"
23726 LDFLAGS="$save_LDFLAGS"
23727 LIBS="$save_LIBS"
23728 ;;
23729 esac
23730
23731 case $lt_cv_dlopen_self in
23732 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23733 *) enable_dlopen_self=unknown ;;
23734 esac
23735
23736 case $lt_cv_dlopen_self_static in
23737 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23738 *) enable_dlopen_self_static=unknown ;;
23739 esac
23740fi
23741
23742
23743# The else clause should only fire when bootstrapping the
23744# libtool distribution, otherwise you forgot to ship ltmain.sh
23745# with your package, and you will get complaints that there are
23746# no rules to generate ltmain.sh.
23747if test -f "$ltmain"; then
23748 # See if we are running on zsh, and set the options which allow our commands through
23749 # without removal of \ escapes.
23750 if test -n "${ZSH_VERSION+set}" ; then
23751 setopt NO_GLOB_SUBST
23752 fi
23753 # Now quote all the things that may contain metacharacters while being
23754 # careful not to overquote the AC_SUBSTed values. We take copies of the
23755 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023756 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23757 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023758 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23759 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23760 deplibs_check_method reload_flag reload_cmds need_locks \
23761 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23762 lt_cv_sys_global_symbol_to_c_name_address \
23763 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23764 old_postinstall_cmds old_postuninstall_cmds \
23765 compiler_GCJ \
23766 CC_GCJ \
23767 LD_GCJ \
23768 lt_prog_compiler_wl_GCJ \
23769 lt_prog_compiler_pic_GCJ \
23770 lt_prog_compiler_static_GCJ \
23771 lt_prog_compiler_no_builtin_flag_GCJ \
23772 export_dynamic_flag_spec_GCJ \
23773 thread_safe_flag_spec_GCJ \
23774 whole_archive_flag_spec_GCJ \
23775 enable_shared_with_static_runtimes_GCJ \
23776 old_archive_cmds_GCJ \
23777 old_archive_from_new_cmds_GCJ \
23778 predep_objects_GCJ \
23779 postdep_objects_GCJ \
23780 predeps_GCJ \
23781 postdeps_GCJ \
23782 compiler_lib_search_path_GCJ \
23783 archive_cmds_GCJ \
23784 archive_expsym_cmds_GCJ \
23785 postinstall_cmds_GCJ \
23786 postuninstall_cmds_GCJ \
23787 old_archive_from_expsyms_cmds_GCJ \
23788 allow_undefined_flag_GCJ \
23789 no_undefined_flag_GCJ \
23790 export_symbols_cmds_GCJ \
23791 hardcode_libdir_flag_spec_GCJ \
23792 hardcode_libdir_flag_spec_ld_GCJ \
23793 hardcode_libdir_separator_GCJ \
23794 hardcode_automatic_GCJ \
23795 module_cmds_GCJ \
23796 module_expsym_cmds_GCJ \
23797 lt_cv_prog_compiler_c_o_GCJ \
23798 exclude_expsyms_GCJ \
23799 include_expsyms_GCJ; do
23800
23801 case $var in
23802 old_archive_cmds_GCJ | \
23803 old_archive_from_new_cmds_GCJ | \
23804 archive_cmds_GCJ | \
23805 archive_expsym_cmds_GCJ | \
23806 module_cmds_GCJ | \
23807 module_expsym_cmds_GCJ | \
23808 old_archive_from_expsyms_cmds_GCJ | \
23809 export_symbols_cmds_GCJ | \
23810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23811 postinstall_cmds | postuninstall_cmds | \
23812 old_postinstall_cmds | old_postuninstall_cmds | \
23813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23814 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023815 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 +000023816 ;;
23817 *)
23818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23819 ;;
23820 esac
23821 done
23822
23823 case $lt_echo in
23824 *'\$0 --fallback-echo"')
23825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23826 ;;
23827 esac
23828
23829cfgfile="$ofile"
23830
23831 cat <<__EOF__ >> "$cfgfile"
23832# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23833
23834# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23835
23836# Shell to use when invoking shell scripts.
23837SHELL=$lt_SHELL
23838
23839# Whether or not to build shared libraries.
23840build_libtool_libs=$enable_shared
23841
23842# Whether or not to build static libraries.
23843build_old_libs=$enable_static
23844
23845# Whether or not to add -lc for building shared libraries.
23846build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23847
23848# Whether or not to disallow shared libs when runtime libs are static
23849allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23850
23851# Whether or not to optimize for fast installation.
23852fast_install=$enable_fast_install
23853
23854# The host system.
23855host_alias=$host_alias
23856host=$host
23857
23858# An echo program that does not interpret backslashes.
23859echo=$lt_echo
23860
23861# The archiver.
23862AR=$lt_AR
23863AR_FLAGS=$lt_AR_FLAGS
23864
23865# A C compiler.
23866LTCC=$lt_LTCC
23867
23868# A language-specific compiler.
23869CC=$lt_compiler_GCJ
23870
23871# Is the compiler the GNU C compiler?
23872with_gcc=$GCC_GCJ
23873
23874# An ERE matcher.
23875EGREP=$lt_EGREP
23876
23877# The linker used to build libraries.
23878LD=$lt_LD_GCJ
23879
23880# Whether we need hard or soft links.
23881LN_S=$lt_LN_S
23882
23883# A BSD-compatible nm program.
23884NM=$lt_NM
23885
23886# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023887STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023888
23889# Used to examine libraries when file_magic_cmd begins "file"
23890MAGIC_CMD=$MAGIC_CMD
23891
23892# Used on cygwin: DLL creation program.
23893DLLTOOL="$DLLTOOL"
23894
23895# Used on cygwin: object dumper.
23896OBJDUMP="$OBJDUMP"
23897
23898# Used on cygwin: assembler.
23899AS="$AS"
23900
23901# The name of the directory that contains temporary libtool files.
23902objdir=$objdir
23903
23904# How to create reloadable object files.
23905reload_flag=$lt_reload_flag
23906reload_cmds=$lt_reload_cmds
23907
23908# How to pass a linker flag through the compiler.
23909wl=$lt_lt_prog_compiler_wl_GCJ
23910
23911# Object file suffix (normally "o").
23912objext="$ac_objext"
23913
23914# Old archive suffix (normally "a").
23915libext="$libext"
23916
23917# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023918shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023919
23920# Executable file suffix (normally "").
23921exeext="$exeext"
23922
23923# Additional compiler flags for building library objects.
23924pic_flag=$lt_lt_prog_compiler_pic_GCJ
23925pic_mode=$pic_mode
23926
23927# What is the maximum length of a command?
23928max_cmd_len=$lt_cv_sys_max_cmd_len
23929
23930# Does compiler simultaneously support -c and -o options?
23931compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23932
23933# Must we lock files when doing compilation ?
23934need_locks=$lt_need_locks
23935
23936# Do we need the lib prefix for modules?
23937need_lib_prefix=$need_lib_prefix
23938
23939# Do we need a version for libraries?
23940need_version=$need_version
23941
23942# Whether dlopen is supported.
23943dlopen_support=$enable_dlopen
23944
23945# Whether dlopen of programs is supported.
23946dlopen_self=$enable_dlopen_self
23947
23948# Whether dlopen of statically linked programs is supported.
23949dlopen_self_static=$enable_dlopen_self_static
23950
23951# Compiler flag to prevent dynamic linking.
23952link_static_flag=$lt_lt_prog_compiler_static_GCJ
23953
23954# Compiler flag to turn off builtin functions.
23955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23956
23957# Compiler flag to allow reflexive dlopens.
23958export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23959
23960# Compiler flag to generate shared objects directly from archives.
23961whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23962
23963# Compiler flag to generate thread-safe objects.
23964thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23965
23966# Library versioning type.
23967version_type=$version_type
23968
23969# Format of library name prefix.
23970libname_spec=$lt_libname_spec
23971
23972# List of archive names. First name is the real one, the rest are links.
23973# The last name is the one that the linker finds with -lNAME.
23974library_names_spec=$lt_library_names_spec
23975
23976# The coded name of the library, if different from the real name.
23977soname_spec=$lt_soname_spec
23978
23979# Commands used to build and install an old-style archive.
23980RANLIB=$lt_RANLIB
23981old_archive_cmds=$lt_old_archive_cmds_GCJ
23982old_postinstall_cmds=$lt_old_postinstall_cmds
23983old_postuninstall_cmds=$lt_old_postuninstall_cmds
23984
23985# Create an old-style archive from a shared archive.
23986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23987
23988# Create a temporary old-style archive to link instead of a shared archive.
23989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23990
23991# Commands used to build and install a shared archive.
23992archive_cmds=$lt_archive_cmds_GCJ
23993archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23994postinstall_cmds=$lt_postinstall_cmds
23995postuninstall_cmds=$lt_postuninstall_cmds
23996
23997# Commands used to build a loadable module (assumed same as above if empty)
23998module_cmds=$lt_module_cmds_GCJ
23999module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24000
24001# Commands to strip libraries.
24002old_striplib=$lt_old_striplib
24003striplib=$lt_striplib
24004
24005# Dependencies to place before the objects being linked to create a
24006# shared library.
24007predep_objects=$lt_predep_objects_GCJ
24008
24009# Dependencies to place after the objects being linked to create a
24010# shared library.
24011postdep_objects=$lt_postdep_objects_GCJ
24012
24013# Dependencies to place before the objects being linked to create a
24014# shared library.
24015predeps=$lt_predeps_GCJ
24016
24017# Dependencies to place after the objects being linked to create a
24018# shared library.
24019postdeps=$lt_postdeps_GCJ
24020
24021# The library search path used internally by the compiler when linking
24022# a shared library.
24023compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24024
24025# Method to check whether dependent libraries are shared objects.
24026deplibs_check_method=$lt_deplibs_check_method
24027
24028# Command to use when deplibs_check_method == file_magic.
24029file_magic_cmd=$lt_file_magic_cmd
24030
24031# Flag that allows shared libraries with undefined symbols to be built.
24032allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24033
24034# Flag that forces no undefined symbols.
24035no_undefined_flag=$lt_no_undefined_flag_GCJ
24036
24037# Commands used to finish a libtool library installation in a directory.
24038finish_cmds=$lt_finish_cmds
24039
24040# Same as above, but a single script fragment to be evaled but not shown.
24041finish_eval=$lt_finish_eval
24042
24043# Take the output of nm and produce a listing of raw symbols and C names.
24044global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24045
24046# Transform the output of nm in a proper C declaration
24047global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24048
24049# Transform the output of nm in a C name address pair
24050global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24051
24052# This is the shared library runtime path variable.
24053runpath_var=$runpath_var
24054
24055# This is the shared library path variable.
24056shlibpath_var=$shlibpath_var
24057
24058# Is shlibpath searched before the hard-coded library search path?
24059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24060
24061# How to hardcode a shared library path into an executable.
24062hardcode_action=$hardcode_action_GCJ
24063
24064# Whether we should hardcode library paths into libraries.
24065hardcode_into_libs=$hardcode_into_libs
24066
24067# Flag to hardcode \$libdir into a binary during linking.
24068# This must work even if \$libdir does not exist.
24069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24070
24071# If ld is used when linking, flag to hardcode \$libdir into
24072# a binary during linking. This must work even if \$libdir does
24073# not exist.
24074hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24075
24076# Whether we need a single -rpath flag with a separated argument.
24077hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24078
24079# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24080# resulting binary.
24081hardcode_direct=$hardcode_direct_GCJ
24082
24083# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24084# resulting binary.
24085hardcode_minus_L=$hardcode_minus_L_GCJ
24086
24087# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24088# the resulting binary.
24089hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24090
24091# Set to yes if building a shared library automatically hardcodes DIR into the library
24092# and all subsequent libraries and executables linked against it.
24093hardcode_automatic=$hardcode_automatic_GCJ
24094
24095# Variables whose values should be saved in libtool wrapper scripts and
24096# restored at relink time.
24097variables_saved_for_relink="$variables_saved_for_relink"
24098
24099# Whether libtool must link a program against all its dependency libraries.
24100link_all_deplibs=$link_all_deplibs_GCJ
24101
24102# Compile-time system search path for libraries
24103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24104
24105# Run-time system search path for libraries
24106sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24107
24108# Fix the shell variable \$srcfile for the compiler.
24109fix_srcfile_path="$fix_srcfile_path_GCJ"
24110
24111# Set to yes if exported symbols are required.
24112always_export_symbols=$always_export_symbols_GCJ
24113
24114# The commands to list exported symbols.
24115export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24116
24117# The commands to extract the exported symbol list from a shared archive.
24118extract_expsyms_cmds=$lt_extract_expsyms_cmds
24119
24120# Symbols that should not be listed in the preloaded symbols.
24121exclude_expsyms=$lt_exclude_expsyms_GCJ
24122
24123# Symbols that must always be exported.
24124include_expsyms=$lt_include_expsyms_GCJ
24125
24126# ### END LIBTOOL TAG CONFIG: $tagname
24127
24128__EOF__
24129
24130
24131else
24132 # If there is no Makefile yet, we rely on a make rule to execute
24133 # `config.status --recheck' to rerun these tests and create the
24134 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024135 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24136 if test -f "$ltmain_in"; then
24137 test -f Makefile && make "$ltmain"
24138 fi
John Criswell47fdd832003-07-14 16:52:07 +000024139fi
24140
24141
24142ac_ext=c
24143ac_cpp='$CPP $CPPFLAGS'
24144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24146ac_compiler_gnu=$ac_cv_c_compiler_gnu
24147
24148CC="$lt_save_CC"
24149
24150 else
24151 tagname=""
24152 fi
24153 ;;
24154
24155 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024156 ac_ext=c
24157ac_cpp='$CPP $CPPFLAGS'
24158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24160ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024161
24162
24163# Source file extension for RC test sources.
24164ac_ext=rc
24165
24166# Object file extension for compiled RC test sources.
24167objext=o
24168objext_RC=$objext
24169
24170# Code to be used in simple compile tests
24171lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24172
24173# Code to be used in simple link tests
24174lt_simple_link_test_code="$lt_simple_compile_test_code"
24175
24176# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24177
24178# If no C compiler was specified, use CC.
24179LTCC=${LTCC-"$CC"}
24180
24181# Allow CC to be a program name with arguments.
24182compiler=$CC
24183
24184
24185# Allow CC to be a program name with arguments.
24186lt_save_CC="$CC"
24187CC=${RC-"windres"}
24188compiler=$CC
24189compiler_RC=$CC
24190lt_cv_prog_compiler_c_o_RC=yes
24191
24192# The else clause should only fire when bootstrapping the
24193# libtool distribution, otherwise you forgot to ship ltmain.sh
24194# with your package, and you will get complaints that there are
24195# no rules to generate ltmain.sh.
24196if test -f "$ltmain"; then
24197 # See if we are running on zsh, and set the options which allow our commands through
24198 # without removal of \ escapes.
24199 if test -n "${ZSH_VERSION+set}" ; then
24200 setopt NO_GLOB_SUBST
24201 fi
24202 # Now quote all the things that may contain metacharacters while being
24203 # careful not to overquote the AC_SUBSTed values. We take copies of the
24204 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24206 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024207 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24208 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24209 deplibs_check_method reload_flag reload_cmds need_locks \
24210 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24211 lt_cv_sys_global_symbol_to_c_name_address \
24212 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24213 old_postinstall_cmds old_postuninstall_cmds \
24214 compiler_RC \
24215 CC_RC \
24216 LD_RC \
24217 lt_prog_compiler_wl_RC \
24218 lt_prog_compiler_pic_RC \
24219 lt_prog_compiler_static_RC \
24220 lt_prog_compiler_no_builtin_flag_RC \
24221 export_dynamic_flag_spec_RC \
24222 thread_safe_flag_spec_RC \
24223 whole_archive_flag_spec_RC \
24224 enable_shared_with_static_runtimes_RC \
24225 old_archive_cmds_RC \
24226 old_archive_from_new_cmds_RC \
24227 predep_objects_RC \
24228 postdep_objects_RC \
24229 predeps_RC \
24230 postdeps_RC \
24231 compiler_lib_search_path_RC \
24232 archive_cmds_RC \
24233 archive_expsym_cmds_RC \
24234 postinstall_cmds_RC \
24235 postuninstall_cmds_RC \
24236 old_archive_from_expsyms_cmds_RC \
24237 allow_undefined_flag_RC \
24238 no_undefined_flag_RC \
24239 export_symbols_cmds_RC \
24240 hardcode_libdir_flag_spec_RC \
24241 hardcode_libdir_flag_spec_ld_RC \
24242 hardcode_libdir_separator_RC \
24243 hardcode_automatic_RC \
24244 module_cmds_RC \
24245 module_expsym_cmds_RC \
24246 lt_cv_prog_compiler_c_o_RC \
24247 exclude_expsyms_RC \
24248 include_expsyms_RC; do
24249
24250 case $var in
24251 old_archive_cmds_RC | \
24252 old_archive_from_new_cmds_RC | \
24253 archive_cmds_RC | \
24254 archive_expsym_cmds_RC | \
24255 module_cmds_RC | \
24256 module_expsym_cmds_RC | \
24257 old_archive_from_expsyms_cmds_RC | \
24258 export_symbols_cmds_RC | \
24259 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24260 postinstall_cmds | postuninstall_cmds | \
24261 old_postinstall_cmds | old_postuninstall_cmds | \
24262 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24263 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024264 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 +000024265 ;;
24266 *)
24267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24268 ;;
24269 esac
24270 done
24271
24272 case $lt_echo in
24273 *'\$0 --fallback-echo"')
24274 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24275 ;;
24276 esac
24277
24278cfgfile="$ofile"
24279
24280 cat <<__EOF__ >> "$cfgfile"
24281# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24282
24283# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24284
24285# Shell to use when invoking shell scripts.
24286SHELL=$lt_SHELL
24287
24288# Whether or not to build shared libraries.
24289build_libtool_libs=$enable_shared
24290
24291# Whether or not to build static libraries.
24292build_old_libs=$enable_static
24293
24294# Whether or not to add -lc for building shared libraries.
24295build_libtool_need_lc=$archive_cmds_need_lc_RC
24296
24297# Whether or not to disallow shared libs when runtime libs are static
24298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24299
24300# Whether or not to optimize for fast installation.
24301fast_install=$enable_fast_install
24302
24303# The host system.
24304host_alias=$host_alias
24305host=$host
24306
24307# An echo program that does not interpret backslashes.
24308echo=$lt_echo
24309
24310# The archiver.
24311AR=$lt_AR
24312AR_FLAGS=$lt_AR_FLAGS
24313
24314# A C compiler.
24315LTCC=$lt_LTCC
24316
24317# A language-specific compiler.
24318CC=$lt_compiler_RC
24319
24320# Is the compiler the GNU C compiler?
24321with_gcc=$GCC_RC
24322
24323# An ERE matcher.
24324EGREP=$lt_EGREP
24325
24326# The linker used to build libraries.
24327LD=$lt_LD_RC
24328
24329# Whether we need hard or soft links.
24330LN_S=$lt_LN_S
24331
24332# A BSD-compatible nm program.
24333NM=$lt_NM
24334
24335# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024336STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024337
24338# Used to examine libraries when file_magic_cmd begins "file"
24339MAGIC_CMD=$MAGIC_CMD
24340
24341# Used on cygwin: DLL creation program.
24342DLLTOOL="$DLLTOOL"
24343
24344# Used on cygwin: object dumper.
24345OBJDUMP="$OBJDUMP"
24346
24347# Used on cygwin: assembler.
24348AS="$AS"
24349
24350# The name of the directory that contains temporary libtool files.
24351objdir=$objdir
24352
24353# How to create reloadable object files.
24354reload_flag=$lt_reload_flag
24355reload_cmds=$lt_reload_cmds
24356
24357# How to pass a linker flag through the compiler.
24358wl=$lt_lt_prog_compiler_wl_RC
24359
24360# Object file suffix (normally "o").
24361objext="$ac_objext"
24362
24363# Old archive suffix (normally "a").
24364libext="$libext"
24365
24366# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024367shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024368
24369# Executable file suffix (normally "").
24370exeext="$exeext"
24371
24372# Additional compiler flags for building library objects.
24373pic_flag=$lt_lt_prog_compiler_pic_RC
24374pic_mode=$pic_mode
24375
24376# What is the maximum length of a command?
24377max_cmd_len=$lt_cv_sys_max_cmd_len
24378
24379# Does compiler simultaneously support -c and -o options?
24380compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24381
24382# Must we lock files when doing compilation ?
24383need_locks=$lt_need_locks
24384
24385# Do we need the lib prefix for modules?
24386need_lib_prefix=$need_lib_prefix
24387
24388# Do we need a version for libraries?
24389need_version=$need_version
24390
24391# Whether dlopen is supported.
24392dlopen_support=$enable_dlopen
24393
24394# Whether dlopen of programs is supported.
24395dlopen_self=$enable_dlopen_self
24396
24397# Whether dlopen of statically linked programs is supported.
24398dlopen_self_static=$enable_dlopen_self_static
24399
24400# Compiler flag to prevent dynamic linking.
24401link_static_flag=$lt_lt_prog_compiler_static_RC
24402
24403# Compiler flag to turn off builtin functions.
24404no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24405
24406# Compiler flag to allow reflexive dlopens.
24407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24408
24409# Compiler flag to generate shared objects directly from archives.
24410whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24411
24412# Compiler flag to generate thread-safe objects.
24413thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24414
24415# Library versioning type.
24416version_type=$version_type
24417
24418# Format of library name prefix.
24419libname_spec=$lt_libname_spec
24420
24421# List of archive names. First name is the real one, the rest are links.
24422# The last name is the one that the linker finds with -lNAME.
24423library_names_spec=$lt_library_names_spec
24424
24425# The coded name of the library, if different from the real name.
24426soname_spec=$lt_soname_spec
24427
24428# Commands used to build and install an old-style archive.
24429RANLIB=$lt_RANLIB
24430old_archive_cmds=$lt_old_archive_cmds_RC
24431old_postinstall_cmds=$lt_old_postinstall_cmds
24432old_postuninstall_cmds=$lt_old_postuninstall_cmds
24433
24434# Create an old-style archive from a shared archive.
24435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24436
24437# Create a temporary old-style archive to link instead of a shared archive.
24438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24439
24440# Commands used to build and install a shared archive.
24441archive_cmds=$lt_archive_cmds_RC
24442archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24443postinstall_cmds=$lt_postinstall_cmds
24444postuninstall_cmds=$lt_postuninstall_cmds
24445
24446# Commands used to build a loadable module (assumed same as above if empty)
24447module_cmds=$lt_module_cmds_RC
24448module_expsym_cmds=$lt_module_expsym_cmds_RC
24449
24450# Commands to strip libraries.
24451old_striplib=$lt_old_striplib
24452striplib=$lt_striplib
24453
24454# Dependencies to place before the objects being linked to create a
24455# shared library.
24456predep_objects=$lt_predep_objects_RC
24457
24458# Dependencies to place after the objects being linked to create a
24459# shared library.
24460postdep_objects=$lt_postdep_objects_RC
24461
24462# Dependencies to place before the objects being linked to create a
24463# shared library.
24464predeps=$lt_predeps_RC
24465
24466# Dependencies to place after the objects being linked to create a
24467# shared library.
24468postdeps=$lt_postdeps_RC
24469
24470# The library search path used internally by the compiler when linking
24471# a shared library.
24472compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24473
24474# Method to check whether dependent libraries are shared objects.
24475deplibs_check_method=$lt_deplibs_check_method
24476
24477# Command to use when deplibs_check_method == file_magic.
24478file_magic_cmd=$lt_file_magic_cmd
24479
24480# Flag that allows shared libraries with undefined symbols to be built.
24481allow_undefined_flag=$lt_allow_undefined_flag_RC
24482
24483# Flag that forces no undefined symbols.
24484no_undefined_flag=$lt_no_undefined_flag_RC
24485
24486# Commands used to finish a libtool library installation in a directory.
24487finish_cmds=$lt_finish_cmds
24488
24489# Same as above, but a single script fragment to be evaled but not shown.
24490finish_eval=$lt_finish_eval
24491
24492# Take the output of nm and produce a listing of raw symbols and C names.
24493global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24494
24495# Transform the output of nm in a proper C declaration
24496global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24497
24498# Transform the output of nm in a C name address pair
24499global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24500
24501# This is the shared library runtime path variable.
24502runpath_var=$runpath_var
24503
24504# This is the shared library path variable.
24505shlibpath_var=$shlibpath_var
24506
24507# Is shlibpath searched before the hard-coded library search path?
24508shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24509
24510# How to hardcode a shared library path into an executable.
24511hardcode_action=$hardcode_action_RC
24512
24513# Whether we should hardcode library paths into libraries.
24514hardcode_into_libs=$hardcode_into_libs
24515
24516# Flag to hardcode \$libdir into a binary during linking.
24517# This must work even if \$libdir does not exist.
24518hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24519
24520# If ld is used when linking, flag to hardcode \$libdir into
24521# a binary during linking. This must work even if \$libdir does
24522# not exist.
24523hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24524
24525# Whether we need a single -rpath flag with a separated argument.
24526hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24527
24528# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24529# resulting binary.
24530hardcode_direct=$hardcode_direct_RC
24531
24532# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24533# resulting binary.
24534hardcode_minus_L=$hardcode_minus_L_RC
24535
24536# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24537# the resulting binary.
24538hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24539
24540# Set to yes if building a shared library automatically hardcodes DIR into the library
24541# and all subsequent libraries and executables linked against it.
24542hardcode_automatic=$hardcode_automatic_RC
24543
24544# Variables whose values should be saved in libtool wrapper scripts and
24545# restored at relink time.
24546variables_saved_for_relink="$variables_saved_for_relink"
24547
24548# Whether libtool must link a program against all its dependency libraries.
24549link_all_deplibs=$link_all_deplibs_RC
24550
24551# Compile-time system search path for libraries
24552sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24553
24554# Run-time system search path for libraries
24555sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24556
24557# Fix the shell variable \$srcfile for the compiler.
24558fix_srcfile_path="$fix_srcfile_path_RC"
24559
24560# Set to yes if exported symbols are required.
24561always_export_symbols=$always_export_symbols_RC
24562
24563# The commands to list exported symbols.
24564export_symbols_cmds=$lt_export_symbols_cmds_RC
24565
24566# The commands to extract the exported symbol list from a shared archive.
24567extract_expsyms_cmds=$lt_extract_expsyms_cmds
24568
24569# Symbols that should not be listed in the preloaded symbols.
24570exclude_expsyms=$lt_exclude_expsyms_RC
24571
24572# Symbols that must always be exported.
24573include_expsyms=$lt_include_expsyms_RC
24574
24575# ### END LIBTOOL TAG CONFIG: $tagname
24576
24577__EOF__
24578
24579
24580else
24581 # If there is no Makefile yet, we rely on a make rule to execute
24582 # `config.status --recheck' to rerun these tests and create the
24583 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024584 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24585 if test -f "$ltmain_in"; then
24586 test -f Makefile && make "$ltmain"
24587 fi
John Criswell47fdd832003-07-14 16:52:07 +000024588fi
24589
24590
24591ac_ext=c
24592ac_cpp='$CPP $CPPFLAGS'
24593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24595ac_compiler_gnu=$ac_cv_c_compiler_gnu
24596
24597CC="$lt_save_CC"
24598
24599 ;;
24600
24601 *)
24602 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24603echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24604 { (exit 1); exit 1; }; }
24605 ;;
24606 esac
24607
24608 # Append the new tag name to the list of available tags.
24609 if test -n "$tagname" ; then
24610 available_tags="$available_tags $tagname"
24611 fi
24612 fi
24613 done
24614 IFS="$lt_save_ifs"
24615
24616 # Now substitute the updated list of available tags.
24617 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24618 mv "${ofile}T" "$ofile"
24619 chmod +x "$ofile"
24620 else
24621 rm -f "${ofile}T"
24622 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24623echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24624 { (exit 1); exit 1; }; }
24625 fi
24626fi
John Criswell7a73b802003-06-30 21:59:07 +000024627
24628
24629
24630# This can be used to rebuild libtool when needed
24631LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24632
24633# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024634LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024635
24636# Prevent multiple expansion
24637
24638
24639
John Criswell47fdd832003-07-14 16:52:07 +000024640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024657
Reid Spencer582a23c2004-12-29 07:07:57 +000024658if test "$lt_cv_dlopen_self" = "yes" ; then
24659
24660cat >>confdefs.h <<\_ACEOF
24661#define CAN_DLOPEN_SELF 1
24662_ACEOF
24663
24664fi
24665
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024666etags_version=`$ETAGS --version 2>&1`
24667case "$etags_version" in
24668 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24669 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24670 *) ETAGSFLAGS="" ;;
24671esac
24672ETAGSFLAGS=$ETAGSFLAGS
24673
24674
Reid Spencer7931a782004-12-27 06:15:02 +000024675if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024676 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24677set dummy llvm-gcc; ac_word=$2
24678echo "$as_me:$LINENO: checking for $ac_word" >&5
24679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24680if test "${ac_cv_path_LLVMGCC+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24682else
24683 case $LLVMGCC in
24684 [\\/]* | ?:[\\/]*)
24685 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24686 ;;
24687 *)
24688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689for as_dir in $PATH
24690do
24691 IFS=$as_save_IFS
24692 test -z "$as_dir" && as_dir=.
24693 for ac_exec_ext in '' $ac_executable_extensions; do
24694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24697 break 2
24698 fi
24699done
24700done
24701
24702 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24703 ;;
24704esac
24705fi
24706LLVMGCC=$ac_cv_path_LLVMGCC
24707
24708if test -n "$LLVMGCC"; then
24709 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24710echo "${ECHO_T}$LLVMGCC" >&6
24711else
24712 echo "$as_me:$LINENO: result: no" >&5
24713echo "${ECHO_T}no" >&6
24714fi
24715
24716 # Extract the first word of "llvm-g++", so it can be a program name with args.
24717set dummy llvm-g++; ac_word=$2
24718echo "$as_me:$LINENO: checking for $ac_word" >&5
24719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24720if test "${ac_cv_path_LLVMGXX+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24722else
24723 case $LLVMGXX in
24724 [\\/]* | ?:[\\/]*)
24725 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24726 ;;
24727 *)
24728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24729for as_dir in $PATH
24730do
24731 IFS=$as_save_IFS
24732 test -z "$as_dir" && as_dir=.
24733 for ac_exec_ext in '' $ac_executable_extensions; do
24734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24735 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24737 break 2
24738 fi
24739done
24740done
24741
24742 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24743 ;;
24744esac
24745fi
24746LLVMGXX=$ac_cv_path_LLVMGXX
24747
24748if test -n "$LLVMGXX"; then
24749 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24750echo "${ECHO_T}$LLVMGXX" >&6
24751else
24752 echo "$as_me:$LINENO: result: no" >&5
24753echo "${ECHO_T}no" >&6
24754fi
24755
24756else
24757 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24758 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24759 LLVMGCC=$LLVMGCC
24760
24761 LLVMGXX=$LLVMGXX
24762
24763fi
24764
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024765echo "$as_me:$LINENO: checking tool compatibility" >&5
24766echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24767
Reid Spencer86901802004-12-08 23:07:27 +000024768ICC=no
24769IXX=no
24770case $CC in
24771 icc*|icpc*)
24772 ICC=yes
24773 IXX=yes
24774 ;;
24775 *)
24776 ;;
24777esac
24778
24779if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024780then
Reid Spencer86901802004-12-08 23:07:27 +000024781 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24782echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024783 { (exit 1); exit 1; }; }
24784fi
24785
Reid Spencer86901802004-12-08 23:07:27 +000024786if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024787then
Reid Spencer86901802004-12-08 23:07:27 +000024788 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24789echo "$as_me: error: g++|icc required but not found" >&2;}
24790 { (exit 1); exit 1; }; }
24791fi
24792
24793if test "$GCC" = "yes"
24794then
24795 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24796 if test "$gccmajor" -lt "3"
24797 then
24798 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024799echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24800 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024801 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024802fi
24803
24804if test -z "$llvm_cv_gnu_make_command"
24805then
24806 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24807echo "$as_me: error: GNU Make required but not found" >&2;}
24808 { (exit 1); exit 1; }; }
24809fi
24810
24811echo "$as_me:$LINENO: result: ok" >&5
24812echo "${ECHO_T}ok" >&6
24813
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024814
John Criswell7a73b802003-06-30 21:59:07 +000024815
John Criswell7a73b802003-06-30 21:59:07 +000024816echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24817echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24818if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24820else
24821 ac_check_lib_save_LIBS=$LIBS
24822LIBS="-lelf $LIBS"
24823cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024824/* confdefs.h. */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024829
24830/* Override any gcc2 internal prototype to avoid an error. */
24831#ifdef __cplusplus
24832extern "C"
24833#endif
24834/* We use char because int might match the return type of a gcc2
24835 builtin and then its argument prototype would still apply. */
24836char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024837int
24838main ()
24839{
24840elf_begin ();
24841 ;
24842 return 0;
24843}
24844_ACEOF
24845rm -f conftest.$ac_objext conftest$ac_exeext
24846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024848 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024849 grep -v '^ *+' conftest.er1 >conftest.err
24850 rm -f conftest.er1
24851 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024854 { ac_try='test -z "$ac_c_werror_flag"
24855 || test ! -s conftest.err'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; } &&
24861 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 ac_cv_lib_elf_elf_begin=yes
24868else
24869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024870sed 's/^/| /' conftest.$ac_ext >&5
24871
John Criswell7a73b802003-06-30 21:59:07 +000024872ac_cv_lib_elf_elf_begin=no
24873fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024874rm -f conftest.err conftest.$ac_objext \
24875 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024876LIBS=$ac_check_lib_save_LIBS
24877fi
24878echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24879echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24880if test $ac_cv_lib_elf_elf_begin = yes; then
24881 cat >>confdefs.h <<_ACEOF
24882#define HAVE_LIBELF 1
24883_ACEOF
24884
24885 LIBS="-lelf $LIBS"
24886
24887fi
24888
24889
Reid Spencer17795972004-11-18 09:47:37 +000024890echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24891echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24892if test "${ac_cv_search_lt_dlopen+set}" = set; then
24893 echo $ECHO_N "(cached) $ECHO_C" >&6
24894else
24895 ac_func_search_save_LIBS=$LIBS
24896ac_cv_search_lt_dlopen=no
24897cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903
24904/* Override any gcc2 internal prototype to avoid an error. */
24905#ifdef __cplusplus
24906extern "C"
24907#endif
24908/* We use char because int might match the return type of a gcc2
24909 builtin and then its argument prototype would still apply. */
24910char lt_dlopen ();
24911int
24912main ()
24913{
24914lt_dlopen ();
24915 ;
24916 return 0;
24917}
24918_ACEOF
24919rm -f conftest.$ac_objext conftest$ac_exeext
24920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24921 (eval $ac_link) 2>conftest.er1
24922 ac_status=$?
24923 grep -v '^ *+' conftest.er1 >conftest.err
24924 rm -f conftest.er1
24925 cat conftest.err >&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } &&
24928 { ac_try='test -z "$ac_c_werror_flag"
24929 || test ! -s conftest.err'
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); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; }; then
24941 ac_cv_search_lt_dlopen="none required"
24942else
24943 echo "$as_me: failed program was:" >&5
24944sed 's/^/| /' conftest.$ac_ext >&5
24945
24946fi
24947rm -f conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
24949if test "$ac_cv_search_lt_dlopen" = no; then
24950 for ac_lib in ltdl; do
24951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24952 cat >conftest.$ac_ext <<_ACEOF
24953/* confdefs.h. */
24954_ACEOF
24955cat confdefs.h >>conftest.$ac_ext
24956cat >>conftest.$ac_ext <<_ACEOF
24957/* end confdefs.h. */
24958
24959/* Override any gcc2 internal prototype to avoid an error. */
24960#ifdef __cplusplus
24961extern "C"
24962#endif
24963/* We use char because int might match the return type of a gcc2
24964 builtin and then its argument prototype would still apply. */
24965char lt_dlopen ();
24966int
24967main ()
24968{
24969lt_dlopen ();
24970 ;
24971 return 0;
24972}
24973_ACEOF
24974rm -f conftest.$ac_objext conftest$ac_exeext
24975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24976 (eval $ac_link) 2>conftest.er1
24977 ac_status=$?
24978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
24983 { ac_try='test -z "$ac_c_werror_flag"
24984 || test ! -s conftest.err'
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); }; } &&
24990 { ac_try='test -s conftest$ac_exeext'
24991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992 (eval $ac_try) 2>&5
24993 ac_status=$?
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); }; }; then
24996 ac_cv_search_lt_dlopen="-l$ac_lib"
24997break
24998else
24999 echo "$as_me: failed program was:" >&5
25000sed 's/^/| /' conftest.$ac_ext >&5
25001
25002fi
25003rm -f conftest.err conftest.$ac_objext \
25004 conftest$ac_exeext conftest.$ac_ext
25005 done
25006fi
25007LIBS=$ac_func_search_save_LIBS
25008fi
25009echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25010echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25011if test "$ac_cv_search_lt_dlopen" != no; then
25012 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25013
25014cat >>confdefs.h <<\_ACEOF
25015#define HAVE_LT_DLOPEN 1
25016_ACEOF
25017
25018else
25019 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25020 not be available" >&5
25021echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25022 not be available" >&2;}
25023fi
25024
25025
John Criswell7a73b802003-06-30 21:59:07 +000025026echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25027echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25028if test "${ac_cv_search_dlopen+set}" = set; then
25029 echo $ECHO_N "(cached) $ECHO_C" >&6
25030else
25031 ac_func_search_save_LIBS=$LIBS
25032ac_cv_search_dlopen=no
25033cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025034/* confdefs.h. */
25035_ACEOF
25036cat confdefs.h >>conftest.$ac_ext
25037cat >>conftest.$ac_ext <<_ACEOF
25038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025039
25040/* Override any gcc2 internal prototype to avoid an error. */
25041#ifdef __cplusplus
25042extern "C"
25043#endif
25044/* We use char because int might match the return type of a gcc2
25045 builtin and then its argument prototype would still apply. */
25046char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025047int
25048main ()
25049{
25050dlopen ();
25051 ;
25052 return 0;
25053}
25054_ACEOF
25055rm -f conftest.$ac_objext conftest$ac_exeext
25056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025057 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025058 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025059 grep -v '^ *+' conftest.er1 >conftest.err
25060 rm -f conftest.er1
25061 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025064 { ac_try='test -z "$ac_c_werror_flag"
25065 || test ! -s conftest.err'
25066 { (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); }; } &&
25071 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077 ac_cv_search_dlopen="none required"
25078else
25079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025080sed 's/^/| /' conftest.$ac_ext >&5
25081
John Criswell7a73b802003-06-30 21:59:07 +000025082fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025083rm -f conftest.err conftest.$ac_objext \
25084 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025085if test "$ac_cv_search_dlopen" = no; then
25086 for ac_lib in dl; do
25087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25088 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025089/* confdefs.h. */
25090_ACEOF
25091cat confdefs.h >>conftest.$ac_ext
25092cat >>conftest.$ac_ext <<_ACEOF
25093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025094
25095/* Override any gcc2 internal prototype to avoid an error. */
25096#ifdef __cplusplus
25097extern "C"
25098#endif
25099/* We use char because int might match the return type of a gcc2
25100 builtin and then its argument prototype would still apply. */
25101char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025102int
25103main ()
25104{
25105dlopen ();
25106 ;
25107 return 0;
25108}
25109_ACEOF
25110rm -f conftest.$ac_objext conftest$ac_exeext
25111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025112 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025114 grep -v '^ *+' conftest.er1 >conftest.err
25115 rm -f conftest.er1
25116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025119 { ac_try='test -z "$ac_c_werror_flag"
25120 || test ! -s conftest.err'
25121 { (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); }; } &&
25126 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; }; then
25132 ac_cv_search_dlopen="-l$ac_lib"
25133break
25134else
25135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025136sed 's/^/| /' conftest.$ac_ext >&5
25137
John Criswell7a73b802003-06-30 21:59:07 +000025138fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025139rm -f conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025141 done
25142fi
25143LIBS=$ac_func_search_save_LIBS
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25146echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25147if test "$ac_cv_search_dlopen" != no; then
25148 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025149
25150cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025151#define HAVE_DLOPEN 1
25152_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025153
25154else
Brian Gaekec45be042003-10-07 06:01:34 +000025155 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25156echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025157fi
25158
25159
25160echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25161echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25162if test "${ac_cv_search_mallinfo+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25164else
25165 ac_func_search_save_LIBS=$LIBS
25166ac_cv_search_mallinfo=no
25167cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025173
25174/* Override any gcc2 internal prototype to avoid an error. */
25175#ifdef __cplusplus
25176extern "C"
25177#endif
25178/* We use char because int might match the return type of a gcc2
25179 builtin and then its argument prototype would still apply. */
25180char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025181int
25182main ()
25183{
25184mallinfo ();
25185 ;
25186 return 0;
25187}
25188_ACEOF
25189rm -f conftest.$ac_objext conftest$ac_exeext
25190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025191 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 grep -v '^ *+' conftest.er1 >conftest.err
25194 rm -f conftest.er1
25195 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025198 { ac_try='test -z "$ac_c_werror_flag"
25199 || test ! -s conftest.err'
25200 { (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); }; } &&
25205 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; }; then
25211 ac_cv_search_mallinfo="none required"
25212else
25213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025214sed 's/^/| /' conftest.$ac_ext >&5
25215
John Criswell7a73b802003-06-30 21:59:07 +000025216fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025217rm -f conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025219if test "$ac_cv_search_mallinfo" = no; then
25220 for ac_lib in malloc; do
25221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25222 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025223/* confdefs.h. */
25224_ACEOF
25225cat confdefs.h >>conftest.$ac_ext
25226cat >>conftest.$ac_ext <<_ACEOF
25227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025228
25229/* Override any gcc2 internal prototype to avoid an error. */
25230#ifdef __cplusplus
25231extern "C"
25232#endif
25233/* We use char because int might match the return type of a gcc2
25234 builtin and then its argument prototype would still apply. */
25235char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025236int
25237main ()
25238{
25239mallinfo ();
25240 ;
25241 return 0;
25242}
25243_ACEOF
25244rm -f conftest.$ac_objext conftest$ac_exeext
25245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025246 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025247 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025248 grep -v '^ *+' conftest.er1 >conftest.err
25249 rm -f conftest.er1
25250 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025253 { ac_try='test -z "$ac_c_werror_flag"
25254 || test ! -s conftest.err'
25255 { (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); }; } &&
25260 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; }; then
25266 ac_cv_search_mallinfo="-l$ac_lib"
25267break
25268else
25269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025270sed 's/^/| /' conftest.$ac_ext >&5
25271
John Criswell7a73b802003-06-30 21:59:07 +000025272fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025273rm -f conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025275 done
25276fi
25277LIBS=$ac_func_search_save_LIBS
25278fi
25279echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25280echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25281if test "$ac_cv_search_mallinfo" != no; then
25282 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025283
25284cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025285#define HAVE_MALLINFO 1
25286_ACEOF
25287
25288fi
25289
25290
Brian Gaeke5f268f72003-12-05 19:29:01 +000025291echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25292echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25293if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25295else
25296 ac_func_search_save_LIBS=$LIBS
25297ac_cv_search_pthread_mutex_lock=no
25298cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025299/* confdefs.h. */
25300_ACEOF
25301cat confdefs.h >>conftest.$ac_ext
25302cat >>conftest.$ac_ext <<_ACEOF
25303/* end confdefs.h. */
25304
25305/* Override any gcc2 internal prototype to avoid an error. */
25306#ifdef __cplusplus
25307extern "C"
25308#endif
25309/* We use char because int might match the return type of a gcc2
25310 builtin and then its argument prototype would still apply. */
25311char pthread_mutex_lock ();
25312int
25313main ()
25314{
25315pthread_mutex_lock ();
25316 ;
25317 return 0;
25318}
25319_ACEOF
25320rm -f conftest.$ac_objext conftest$ac_exeext
25321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025322 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025329 { ac_try='test -z "$ac_c_werror_flag"
25330 || test ! -s conftest.err'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_search_pthread_mutex_lock="none required"
25343else
25344 echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025348rm -f conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025350if test "$ac_cv_search_pthread_mutex_lock" = no; then
25351 for ac_lib in pthread; do
25352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25353 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025354/* confdefs.h. */
25355_ACEOF
25356cat confdefs.h >>conftest.$ac_ext
25357cat >>conftest.$ac_ext <<_ACEOF
25358/* end confdefs.h. */
25359
25360/* Override any gcc2 internal prototype to avoid an error. */
25361#ifdef __cplusplus
25362extern "C"
25363#endif
25364/* We use char because int might match the return type of a gcc2
25365 builtin and then its argument prototype would still apply. */
25366char pthread_mutex_lock ();
25367int
25368main ()
25369{
25370pthread_mutex_lock ();
25371 ;
25372 return 0;
25373}
25374_ACEOF
25375rm -f conftest.$ac_objext conftest$ac_exeext
25376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025379 grep -v '^ *+' conftest.er1 >conftest.err
25380 rm -f conftest.er1
25381 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025384 { ac_try='test -z "$ac_c_werror_flag"
25385 || test ! -s conftest.err'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; } &&
25391 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; }; then
25397 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25398break
25399else
25400 echo "$as_me: failed program was:" >&5
25401sed 's/^/| /' conftest.$ac_ext >&5
25402
25403fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025404rm -f conftest.err conftest.$ac_objext \
25405 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025406 done
25407fi
25408LIBS=$ac_func_search_save_LIBS
25409fi
25410echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25411echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25412if test "$ac_cv_search_pthread_mutex_lock" != no; then
25413 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025414
John Criswell40468462004-09-24 21:19:06 +000025415cat >>confdefs.h <<\_ACEOF
25416#define HAVE_PTHREAD_MUTEX_LOCK 1
25417_ACEOF
25418
25419fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025420
Brian Gaekec9a410c2004-02-23 21:30:37 +000025421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025422
Reid Spencer59473af2004-12-25 07:31:29 +000025423
25424
25425
25426
25427
25428ac_header_dirent=no
25429for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25430 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25431echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25432echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25433if eval "test \"\${$as_ac_Header+set}\" = set"; then
25434 echo $ECHO_N "(cached) $ECHO_C" >&6
25435else
25436 cat >conftest.$ac_ext <<_ACEOF
25437/* confdefs.h. */
25438_ACEOF
25439cat confdefs.h >>conftest.$ac_ext
25440cat >>conftest.$ac_ext <<_ACEOF
25441/* end confdefs.h. */
25442#include <sys/types.h>
25443#include <$ac_hdr>
25444
25445int
25446main ()
25447{
25448if ((DIR *) 0)
25449return 0;
25450 ;
25451 return 0;
25452}
25453_ACEOF
25454rm -f conftest.$ac_objext
25455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25456 (eval $ac_compile) 2>conftest.er1
25457 ac_status=$?
25458 grep -v '^ *+' conftest.er1 >conftest.err
25459 rm -f conftest.er1
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag"
25464 || test ! -s conftest.err'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest.$ac_objext'
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 eval "$as_ac_Header=yes"
25477else
25478 echo "$as_me: failed program was:" >&5
25479sed 's/^/| /' conftest.$ac_ext >&5
25480
25481eval "$as_ac_Header=no"
25482fi
25483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25484fi
25485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25487if test `eval echo '${'$as_ac_Header'}'` = yes; then
25488 cat >>confdefs.h <<_ACEOF
25489#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25490_ACEOF
25491
25492ac_header_dirent=$ac_hdr; break
25493fi
25494
25495done
25496# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25497if test $ac_header_dirent = dirent.h; then
25498 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25499echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25500if test "${ac_cv_search_opendir+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25502else
25503 ac_func_search_save_LIBS=$LIBS
25504ac_cv_search_opendir=no
25505cat >conftest.$ac_ext <<_ACEOF
25506/* confdefs.h. */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h. */
25511
25512/* Override any gcc2 internal prototype to avoid an error. */
25513#ifdef __cplusplus
25514extern "C"
25515#endif
25516/* We use char because int might match the return type of a gcc2
25517 builtin and then its argument prototype would still apply. */
25518char opendir ();
25519int
25520main ()
25521{
25522opendir ();
25523 ;
25524 return 0;
25525}
25526_ACEOF
25527rm -f conftest.$ac_objext conftest$ac_exeext
25528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25529 (eval $ac_link) 2>conftest.er1
25530 ac_status=$?
25531 grep -v '^ *+' conftest.er1 >conftest.err
25532 rm -f conftest.er1
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest$ac_exeext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 ac_cv_search_opendir="none required"
25550else
25551 echo "$as_me: failed program was:" >&5
25552sed 's/^/| /' conftest.$ac_ext >&5
25553
25554fi
25555rm -f conftest.err conftest.$ac_objext \
25556 conftest$ac_exeext conftest.$ac_ext
25557if test "$ac_cv_search_opendir" = no; then
25558 for ac_lib in dir; do
25559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25560 cat >conftest.$ac_ext <<_ACEOF
25561/* confdefs.h. */
25562_ACEOF
25563cat confdefs.h >>conftest.$ac_ext
25564cat >>conftest.$ac_ext <<_ACEOF
25565/* end confdefs.h. */
25566
25567/* Override any gcc2 internal prototype to avoid an error. */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571/* We use char because int might match the return type of a gcc2
25572 builtin and then its argument prototype would still apply. */
25573char opendir ();
25574int
25575main ()
25576{
25577opendir ();
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext conftest$ac_exeext
25583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25584 (eval $ac_link) 2>conftest.er1
25585 ac_status=$?
25586 grep -v '^ *+' conftest.er1 >conftest.err
25587 rm -f conftest.er1
25588 cat conftest.err >&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
25591 { ac_try='test -z "$ac_c_werror_flag"
25592 || test ! -s conftest.err'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; } &&
25598 { ac_try='test -s conftest$ac_exeext'
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; }; then
25604 ac_cv_search_opendir="-l$ac_lib"
25605break
25606else
25607 echo "$as_me: failed program was:" >&5
25608sed 's/^/| /' conftest.$ac_ext >&5
25609
25610fi
25611rm -f conftest.err conftest.$ac_objext \
25612 conftest$ac_exeext conftest.$ac_ext
25613 done
25614fi
25615LIBS=$ac_func_search_save_LIBS
25616fi
25617echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25618echo "${ECHO_T}$ac_cv_search_opendir" >&6
25619if test "$ac_cv_search_opendir" != no; then
25620 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25621
25622fi
25623
25624else
25625 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25626echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25627if test "${ac_cv_search_opendir+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25629else
25630 ac_func_search_save_LIBS=$LIBS
25631ac_cv_search_opendir=no
25632cat >conftest.$ac_ext <<_ACEOF
25633/* confdefs.h. */
25634_ACEOF
25635cat confdefs.h >>conftest.$ac_ext
25636cat >>conftest.$ac_ext <<_ACEOF
25637/* end confdefs.h. */
25638
25639/* Override any gcc2 internal prototype to avoid an error. */
25640#ifdef __cplusplus
25641extern "C"
25642#endif
25643/* We use char because int might match the return type of a gcc2
25644 builtin and then its argument prototype would still apply. */
25645char opendir ();
25646int
25647main ()
25648{
25649opendir ();
25650 ;
25651 return 0;
25652}
25653_ACEOF
25654rm -f conftest.$ac_objext conftest$ac_exeext
25655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656 (eval $ac_link) 2>conftest.er1
25657 ac_status=$?
25658 grep -v '^ *+' conftest.er1 >conftest.err
25659 rm -f conftest.er1
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_search_opendir="none required"
25677else
25678 echo "$as_me: failed program was:" >&5
25679sed 's/^/| /' conftest.$ac_ext >&5
25680
25681fi
25682rm -f conftest.err conftest.$ac_objext \
25683 conftest$ac_exeext conftest.$ac_ext
25684if test "$ac_cv_search_opendir" = no; then
25685 for ac_lib in x; do
25686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25687 cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h. */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h. */
25693
25694/* Override any gcc2 internal prototype to avoid an error. */
25695#ifdef __cplusplus
25696extern "C"
25697#endif
25698/* We use char because int might match the return type of a gcc2
25699 builtin and then its argument prototype would still apply. */
25700char opendir ();
25701int
25702main ()
25703{
25704opendir ();
25705 ;
25706 return 0;
25707}
25708_ACEOF
25709rm -f conftest.$ac_objext conftest$ac_exeext
25710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711 (eval $ac_link) 2>conftest.er1
25712 ac_status=$?
25713 grep -v '^ *+' conftest.er1 >conftest.err
25714 rm -f conftest.er1
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } &&
25718 { ac_try='test -z "$ac_c_werror_flag"
25719 || test ! -s conftest.err'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25722 ac_status=$?
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; } &&
25725 { ac_try='test -s conftest$ac_exeext'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 ac_cv_search_opendir="-l$ac_lib"
25732break
25733else
25734 echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
25737fi
25738rm -f conftest.err conftest.$ac_objext \
25739 conftest$ac_exeext conftest.$ac_ext
25740 done
25741fi
25742LIBS=$ac_func_search_save_LIBS
25743fi
25744echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25745echo "${ECHO_T}$ac_cv_search_opendir" >&6
25746if test "$ac_cv_search_opendir" != no; then
25747 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25748
25749fi
25750
25751fi
25752
25753echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25754echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25755if test "${ac_cv_header_mmap_anon+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25757else
25758 ac_ext=c
25759ac_cpp='$CPP $CPPFLAGS'
25760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762ac_compiler_gnu=$ac_cv_c_compiler_gnu
25763
25764 cat >conftest.$ac_ext <<_ACEOF
25765/* confdefs.h. */
25766_ACEOF
25767cat confdefs.h >>conftest.$ac_ext
25768cat >>conftest.$ac_ext <<_ACEOF
25769/* end confdefs.h. */
25770#include <sys/mman.h>
25771#include <unistd.h>
25772#include <fcntl.h>
25773int
25774main ()
25775{
25776mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25777 ;
25778 return 0;
25779}
25780_ACEOF
25781rm -f conftest.$ac_objext
25782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25783 (eval $ac_compile) 2>conftest.er1
25784 ac_status=$?
25785 grep -v '^ *+' conftest.er1 >conftest.err
25786 rm -f conftest.er1
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } &&
25790 { ac_try='test -z "$ac_c_werror_flag"
25791 || test ! -s conftest.err'
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25794 ac_status=$?
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; } &&
25797 { ac_try='test -s conftest.$ac_objext'
25798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; }; then
25803 ac_cv_header_mmap_anon=yes
25804else
25805 echo "$as_me: failed program was:" >&5
25806sed 's/^/| /' conftest.$ac_ext >&5
25807
25808ac_cv_header_mmap_anon=no
25809fi
25810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25811 ac_ext=c
25812ac_cpp='$CPP $CPPFLAGS'
25813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25815ac_compiler_gnu=$ac_cv_c_compiler_gnu
25816
25817
25818fi
25819echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25820echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25821if test "$ac_cv_header_mmap_anon" = yes; then
25822
25823cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025824#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025825_ACEOF
25826
25827fi
25828
25829echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25830echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25831if test "${ac_cv_header_stat_broken+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25833else
25834 cat >conftest.$ac_ext <<_ACEOF
25835/* confdefs.h. */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h. */
25840#include <sys/types.h>
25841#include <sys/stat.h>
25842
25843#if defined(S_ISBLK) && defined(S_IFDIR)
25844# if S_ISBLK (S_IFDIR)
25845You lose.
25846# endif
25847#endif
25848
25849#if defined(S_ISBLK) && defined(S_IFCHR)
25850# if S_ISBLK (S_IFCHR)
25851You lose.
25852# endif
25853#endif
25854
25855#if defined(S_ISLNK) && defined(S_IFREG)
25856# if S_ISLNK (S_IFREG)
25857You lose.
25858# endif
25859#endif
25860
25861#if defined(S_ISSOCK) && defined(S_IFREG)
25862# if S_ISSOCK (S_IFREG)
25863You lose.
25864# endif
25865#endif
25866
25867_ACEOF
25868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25869 $EGREP "You lose" >/dev/null 2>&1; then
25870 ac_cv_header_stat_broken=yes
25871else
25872 ac_cv_header_stat_broken=no
25873fi
25874rm -f conftest*
25875
25876fi
25877echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25878echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25879if test $ac_cv_header_stat_broken = yes; then
25880
25881cat >>confdefs.h <<\_ACEOF
25882#define STAT_MACROS_BROKEN 1
25883_ACEOF
25884
25885fi
25886
John Criswell7a73b802003-06-30 21:59:07 +000025887echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25888echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25889if test "${ac_cv_header_stdc+set}" = set; then
25890 echo $ECHO_N "(cached) $ECHO_C" >&6
25891else
25892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025893/* confdefs.h. */
25894_ACEOF
25895cat confdefs.h >>conftest.$ac_ext
25896cat >>conftest.$ac_ext <<_ACEOF
25897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025898#include <stdlib.h>
25899#include <stdarg.h>
25900#include <string.h>
25901#include <float.h>
25902
John Criswell0c38eaf2003-09-10 15:17:25 +000025903int
25904main ()
25905{
25906
25907 ;
25908 return 0;
25909}
John Criswell7a73b802003-06-30 21:59:07 +000025910_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025911rm -f conftest.$ac_objext
25912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025913 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025914 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025915 grep -v '^ *+' conftest.er1 >conftest.err
25916 rm -f conftest.er1
25917 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025919 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025920 { ac_try='test -z "$ac_c_werror_flag"
25921 || test ! -s conftest.err'
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; } &&
25927 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025933 ac_cv_header_stdc=yes
25934else
25935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025939fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025941
25942if test $ac_cv_header_stdc = yes; then
25943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025945/* confdefs.h. */
25946_ACEOF
25947cat confdefs.h >>conftest.$ac_ext
25948cat >>conftest.$ac_ext <<_ACEOF
25949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025950#include <string.h>
25951
25952_ACEOF
25953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025954 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025955 :
25956else
25957 ac_cv_header_stdc=no
25958fi
25959rm -f conftest*
25960
25961fi
25962
25963if test $ac_cv_header_stdc = yes; then
25964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25965 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025966/* confdefs.h. */
25967_ACEOF
25968cat confdefs.h >>conftest.$ac_ext
25969cat >>conftest.$ac_ext <<_ACEOF
25970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025971#include <stdlib.h>
25972
25973_ACEOF
25974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025975 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025976 :
25977else
25978 ac_cv_header_stdc=no
25979fi
25980rm -f conftest*
25981
25982fi
25983
25984if test $ac_cv_header_stdc = yes; then
25985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25986 if test "$cross_compiling" = yes; then
25987 :
25988else
25989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025990/* confdefs.h. */
25991_ACEOF
25992cat confdefs.h >>conftest.$ac_ext
25993cat >>conftest.$ac_ext <<_ACEOF
25994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025995#include <ctype.h>
25996#if ((' ' & 0x0FF) == 0x020)
25997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25999#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026000# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026001 (('a' <= (c) && (c) <= 'i') \
26002 || ('j' <= (c) && (c) <= 'r') \
26003 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26005#endif
26006
26007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26008int
26009main ()
26010{
26011 int i;
26012 for (i = 0; i < 256; i++)
26013 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026014 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026015 exit(2);
26016 exit (0);
26017}
26018_ACEOF
26019rm -f conftest$ac_exeext
26020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021 (eval $ac_link) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030 :
26031else
26032 echo "$as_me: program exited with status $ac_status" >&5
26033echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026034sed 's/^/| /' conftest.$ac_ext >&5
26035
John Criswell7a73b802003-06-30 21:59:07 +000026036( exit $ac_status )
26037ac_cv_header_stdc=no
26038fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026040fi
26041fi
26042fi
26043echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26044echo "${ECHO_T}$ac_cv_header_stdc" >&6
26045if test $ac_cv_header_stdc = yes; then
26046
26047cat >>confdefs.h <<\_ACEOF
26048#define STDC_HEADERS 1
26049_ACEOF
26050
26051fi
26052
26053echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26054echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26055if test "${ac_cv_header_sys_wait_h+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26057else
26058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026059/* confdefs.h. */
26060_ACEOF
26061cat confdefs.h >>conftest.$ac_ext
26062cat >>conftest.$ac_ext <<_ACEOF
26063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026064#include <sys/types.h>
26065#include <sys/wait.h>
26066#ifndef WEXITSTATUS
26067# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26068#endif
26069#ifndef WIFEXITED
26070# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26071#endif
26072
John Criswell7a73b802003-06-30 21:59:07 +000026073int
26074main ()
26075{
26076 int s;
26077 wait (&s);
26078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26079 ;
26080 return 0;
26081}
26082_ACEOF
26083rm -f conftest.$ac_objext
26084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026085 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026087 grep -v '^ *+' conftest.er1 >conftest.err
26088 rm -f conftest.er1
26089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026092 { ac_try='test -z "$ac_c_werror_flag"
26093 || test ! -s conftest.err'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; } &&
26099 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; }; then
26105 ac_cv_header_sys_wait_h=yes
26106else
26107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026108sed 's/^/| /' conftest.$ac_ext >&5
26109
John Criswell7a73b802003-06-30 21:59:07 +000026110ac_cv_header_sys_wait_h=no
26111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026113fi
26114echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26115echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26116if test $ac_cv_header_sys_wait_h = yes; then
26117
26118cat >>confdefs.h <<\_ACEOF
26119#define HAVE_SYS_WAIT_H 1
26120_ACEOF
26121
26122fi
26123
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026124echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26125echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26126if test "${ac_cv_header_time+set}" = set; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26128else
26129 cat >conftest.$ac_ext <<_ACEOF
26130/* confdefs.h. */
26131_ACEOF
26132cat confdefs.h >>conftest.$ac_ext
26133cat >>conftest.$ac_ext <<_ACEOF
26134/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026135#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026136#include <sys/time.h>
26137#include <time.h>
26138
26139int
26140main ()
26141{
26142if ((struct tm *) 0)
26143return 0;
26144 ;
26145 return 0;
26146}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026147_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026148rm -f conftest.$ac_objext
26149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26150 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026151 ac_status=$?
26152 grep -v '^ *+' conftest.er1 >conftest.err
26153 rm -f conftest.er1
26154 cat conftest.err >&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026156 (exit $ac_status); } &&
26157 { ac_try='test -z "$ac_c_werror_flag"
26158 || test ! -s conftest.err'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; } &&
26164 { ac_try='test -s conftest.$ac_objext'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26167 ac_status=$?
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; }; then
26170 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026171else
26172 echo "$as_me: failed program was:" >&5
26173sed 's/^/| /' conftest.$ac_ext >&5
26174
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026175ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026176fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26178fi
26179echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26180echo "${ECHO_T}$ac_cv_header_time" >&6
26181if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026182
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026183cat >>confdefs.h <<\_ACEOF
26184#define TIME_WITH_SYS_TIME 1
26185_ACEOF
26186
26187fi
26188
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026189
Reid Spencer59473af2004-12-25 07:31:29 +000026190
26191
26192
26193
26194
26195
26196for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26197do
26198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26199if eval "test \"\${$as_ac_Header+set}\" = set"; then
26200 echo "$as_me:$LINENO: checking for $ac_header" >&5
26201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26202if eval "test \"\${$as_ac_Header+set}\" = set"; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26204fi
26205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26207else
26208 # Is the header compilable?
26209echo "$as_me:$LINENO: checking $ac_header usability" >&5
26210echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26211cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026212/* confdefs.h. */
26213_ACEOF
26214cat confdefs.h >>conftest.$ac_ext
26215cat >>conftest.$ac_ext <<_ACEOF
26216/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026217$ac_includes_default
26218#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026219_ACEOF
26220rm -f conftest.$ac_objext
26221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26222 (eval $ac_compile) 2>conftest.er1
26223 ac_status=$?
26224 grep -v '^ *+' conftest.er1 >conftest.err
26225 rm -f conftest.er1
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -z "$ac_c_werror_flag"
26230 || test ! -s conftest.err'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26233 ac_status=$?
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; } &&
26236 { ac_try='test -s conftest.$ac_objext'
26237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238 (eval $ac_try) 2>&5
26239 ac_status=$?
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026242 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026243else
26244 echo "$as_me: failed program was:" >&5
26245sed 's/^/| /' conftest.$ac_ext >&5
26246
Reid Spencer59473af2004-12-25 07:31:29 +000026247ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026248fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26251echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026252
Reid Spencer59473af2004-12-25 07:31:29 +000026253# Is the header present?
26254echo "$as_me:$LINENO: checking $ac_header presence" >&5
26255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26256cat >conftest.$ac_ext <<_ACEOF
26257/* confdefs.h. */
26258_ACEOF
26259cat confdefs.h >>conftest.$ac_ext
26260cat >>conftest.$ac_ext <<_ACEOF
26261/* end confdefs.h. */
26262#include <$ac_header>
26263_ACEOF
26264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26266 ac_status=$?
26267 grep -v '^ *+' conftest.er1 >conftest.err
26268 rm -f conftest.er1
26269 cat conftest.err >&5
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } >/dev/null; then
26272 if test -s conftest.err; then
26273 ac_cpp_err=$ac_c_preproc_warn_flag
26274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26275 else
26276 ac_cpp_err=
26277 fi
26278else
26279 ac_cpp_err=yes
26280fi
26281if test -z "$ac_cpp_err"; then
26282 ac_header_preproc=yes
26283else
26284 echo "$as_me: failed program was:" >&5
26285sed 's/^/| /' conftest.$ac_ext >&5
26286
26287 ac_header_preproc=no
26288fi
26289rm -f conftest.err conftest.$ac_ext
26290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26291echo "${ECHO_T}$ac_header_preproc" >&6
26292
26293# So? What about this header?
26294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26295 yes:no: )
26296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26300 ac_header_preproc=yes
26301 ;;
26302 no:yes:* )
26303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26315 (
26316 cat <<\_ASBOX
26317## ----------------------------------- ##
26318## Report this to llvmbugs@cs.uiuc.edu ##
26319## ----------------------------------- ##
26320_ASBOX
26321 ) |
26322 sed "s/^/$as_me: WARNING: /" >&2
26323 ;;
26324esac
26325echo "$as_me:$LINENO: checking for $ac_header" >&5
26326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26327if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26329else
26330 eval "$as_ac_Header=\$ac_header_preproc"
26331fi
26332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026334
26335fi
Reid Spencer59473af2004-12-25 07:31:29 +000026336if test `eval echo '${'$as_ac_Header'}'` = yes; then
26337 cat >>confdefs.h <<_ACEOF
26338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026339_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026340
26341fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026342
Reid Spencer59473af2004-12-25 07:31:29 +000026343done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026345
26346
Reid Spencer59473af2004-12-25 07:31:29 +000026347
26348
26349
26350
26351for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26352do
26353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26354if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355 echo "$as_me:$LINENO: checking for $ac_header" >&5
26356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26357if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26359fi
26360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26362else
26363 # Is the header compilable?
26364echo "$as_me:$LINENO: checking $ac_header usability" >&5
26365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26366cat >conftest.$ac_ext <<_ACEOF
26367/* confdefs.h. */
26368_ACEOF
26369cat confdefs.h >>conftest.$ac_ext
26370cat >>conftest.$ac_ext <<_ACEOF
26371/* end confdefs.h. */
26372$ac_includes_default
26373#include <$ac_header>
26374_ACEOF
26375rm -f conftest.$ac_objext
26376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26377 (eval $ac_compile) 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
26384 { ac_try='test -z "$ac_c_werror_flag"
26385 || test ! -s conftest.err'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest.$ac_objext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 ac_header_compiler=yes
26398else
26399 echo "$as_me: failed program was:" >&5
26400sed 's/^/| /' conftest.$ac_ext >&5
26401
26402ac_header_compiler=no
26403fi
26404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406echo "${ECHO_T}$ac_header_compiler" >&6
26407
26408# Is the header present?
26409echo "$as_me:$LINENO: checking $ac_header presence" >&5
26410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26411cat >conftest.$ac_ext <<_ACEOF
26412/* confdefs.h. */
26413_ACEOF
26414cat confdefs.h >>conftest.$ac_ext
26415cat >>conftest.$ac_ext <<_ACEOF
26416/* end confdefs.h. */
26417#include <$ac_header>
26418_ACEOF
26419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26421 ac_status=$?
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null; then
26427 if test -s conftest.err; then
26428 ac_cpp_err=$ac_c_preproc_warn_flag
26429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26430 else
26431 ac_cpp_err=
26432 fi
26433else
26434 ac_cpp_err=yes
26435fi
26436if test -z "$ac_cpp_err"; then
26437 ac_header_preproc=yes
26438else
26439 echo "$as_me: failed program was:" >&5
26440sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 ac_header_preproc=no
26443fi
26444rm -f conftest.err conftest.$ac_ext
26445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446echo "${ECHO_T}$ac_header_preproc" >&6
26447
26448# So? What about this header?
26449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26450 yes:no: )
26451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455 ac_header_preproc=yes
26456 ;;
26457 no:yes:* )
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26470 (
26471 cat <<\_ASBOX
26472## ----------------------------------- ##
26473## Report this to llvmbugs@cs.uiuc.edu ##
26474## ----------------------------------- ##
26475_ASBOX
26476 ) |
26477 sed "s/^/$as_me: WARNING: /" >&2
26478 ;;
26479esac
26480echo "$as_me:$LINENO: checking for $ac_header" >&5
26481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26484else
26485 eval "$as_ac_Header=\$ac_header_preproc"
26486fi
26487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26489
26490fi
26491if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492 cat >>confdefs.h <<_ACEOF
26493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26494_ACEOF
26495
26496fi
26497
26498done
26499
26500
26501
26502
26503
26504
26505for 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 +000026506do
26507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26508if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509 echo "$as_me:$LINENO: checking for $ac_header" >&5
26510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26511if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026512 echo $ECHO_N "(cached) $ECHO_C" >&6
26513fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026516else
26517 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026518echo "$as_me:$LINENO: checking $ac_header usability" >&5
26519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026520cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
26526$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026527#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026528_ACEOF
26529rm -f conftest.$ac_objext
26530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026531 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026532 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026533 grep -v '^ *+' conftest.er1 >conftest.err
26534 rm -f conftest.er1
26535 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026538 { ac_try='test -z "$ac_c_werror_flag"
26539 || test ! -s conftest.err'
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; } &&
26545 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26548 ac_status=$?
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26551 ac_header_compiler=yes
26552else
26553 echo "$as_me: failed program was:" >&5
26554sed 's/^/| /' conftest.$ac_ext >&5
26555
26556ac_header_compiler=no
26557fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560echo "${ECHO_T}$ac_header_compiler" >&6
26561
26562# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026563echo "$as_me:$LINENO: checking $ac_header presence" >&5
26564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026565cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026566/* confdefs.h. */
26567_ACEOF
26568cat confdefs.h >>conftest.$ac_ext
26569cat >>conftest.$ac_ext <<_ACEOF
26570/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026571#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026572_ACEOF
26573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26575 ac_status=$?
26576 grep -v '^ *+' conftest.er1 >conftest.err
26577 rm -f conftest.er1
26578 cat conftest.err >&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } >/dev/null; then
26581 if test -s conftest.err; then
26582 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026584 else
26585 ac_cpp_err=
26586 fi
26587else
26588 ac_cpp_err=yes
26589fi
26590if test -z "$ac_cpp_err"; then
26591 ac_header_preproc=yes
26592else
26593 echo "$as_me: failed program was:" >&5
26594sed 's/^/| /' conftest.$ac_ext >&5
26595
26596 ac_header_preproc=no
26597fi
26598rm -f conftest.err conftest.$ac_ext
26599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26600echo "${ECHO_T}$ac_header_preproc" >&6
26601
26602# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26604 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026609 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026610 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026611 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026624 (
26625 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026626## ----------------------------------- ##
26627## Report this to llvmbugs@cs.uiuc.edu ##
26628## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026629_ASBOX
26630 ) |
26631 sed "s/^/$as_me: WARNING: /" >&2
26632 ;;
26633esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026634echo "$as_me:$LINENO: checking for $ac_header" >&5
26635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26636if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026637 echo $ECHO_N "(cached) $ECHO_C" >&6
26638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026639 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026640fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026643
26644fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026645if test `eval echo '${'$as_ac_Header'}'` = yes; then
26646 cat >>confdefs.h <<_ACEOF
26647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026648_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026649
26650fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026652done
26653
John Criswell7ed43ad2004-07-19 16:12:29 +000026654
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026655
Reid Spencer8085cff2005-01-16 02:58:39 +000026656for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26657do
26658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26659if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660 echo "$as_me:$LINENO: checking for $ac_header" >&5
26661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26664fi
26665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26667else
26668 # Is the header compilable?
26669echo "$as_me:$LINENO: checking $ac_header usability" >&5
26670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26671cat >conftest.$ac_ext <<_ACEOF
26672/* confdefs.h. */
26673_ACEOF
26674cat confdefs.h >>conftest.$ac_ext
26675cat >>conftest.$ac_ext <<_ACEOF
26676/* end confdefs.h. */
26677$ac_includes_default
26678#include <$ac_header>
26679_ACEOF
26680rm -f conftest.$ac_objext
26681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682 (eval $ac_compile) 2>conftest.er1
26683 ac_status=$?
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest.$ac_objext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 ac_header_compiler=yes
26703else
26704 echo "$as_me: failed program was:" >&5
26705sed 's/^/| /' conftest.$ac_ext >&5
26706
26707ac_header_compiler=no
26708fi
26709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26711echo "${ECHO_T}$ac_header_compiler" >&6
26712
26713# Is the header present?
26714echo "$as_me:$LINENO: checking $ac_header presence" >&5
26715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26716cat >conftest.$ac_ext <<_ACEOF
26717/* confdefs.h. */
26718_ACEOF
26719cat confdefs.h >>conftest.$ac_ext
26720cat >>conftest.$ac_ext <<_ACEOF
26721/* end confdefs.h. */
26722#include <$ac_header>
26723_ACEOF
26724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26726 ac_status=$?
26727 grep -v '^ *+' conftest.er1 >conftest.err
26728 rm -f conftest.er1
26729 cat conftest.err >&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } >/dev/null; then
26732 if test -s conftest.err; then
26733 ac_cpp_err=$ac_c_preproc_warn_flag
26734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26735 else
26736 ac_cpp_err=
26737 fi
26738else
26739 ac_cpp_err=yes
26740fi
26741if test -z "$ac_cpp_err"; then
26742 ac_header_preproc=yes
26743else
26744 echo "$as_me: failed program was:" >&5
26745sed 's/^/| /' conftest.$ac_ext >&5
26746
26747 ac_header_preproc=no
26748fi
26749rm -f conftest.err conftest.$ac_ext
26750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26751echo "${ECHO_T}$ac_header_preproc" >&6
26752
26753# So? What about this header?
26754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26755 yes:no: )
26756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26760 ac_header_preproc=yes
26761 ;;
26762 no:yes:* )
26763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26766echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26770echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26775 (
26776 cat <<\_ASBOX
26777## ----------------------------------- ##
26778## Report this to llvmbugs@cs.uiuc.edu ##
26779## ----------------------------------- ##
26780_ASBOX
26781 ) |
26782 sed "s/^/$as_me: WARNING: /" >&2
26783 ;;
26784esac
26785echo "$as_me:$LINENO: checking for $ac_header" >&5
26786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26787if eval "test \"\${$as_ac_Header+set}\" = set"; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26789else
26790 eval "$as_ac_Header=\$ac_header_preproc"
26791fi
26792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26794
26795fi
26796if test `eval echo '${'$as_ac_Header'}'` = yes; then
26797 cat >>confdefs.h <<_ACEOF
26798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26799_ACEOF
26800
26801fi
26802
26803done
26804
26805
26806
John Criswell7a73b802003-06-30 21:59:07 +000026807echo "$as_me:$LINENO: checking for pid_t" >&5
26808echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26809if test "${ac_cv_type_pid_t+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26811else
26812 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026813/* confdefs.h. */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026818$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026819int
26820main ()
26821{
26822if ((pid_t *) 0)
26823 return 0;
26824if (sizeof (pid_t))
26825 return 0;
26826 ;
26827 return 0;
26828}
26829_ACEOF
26830rm -f conftest.$ac_objext
26831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026832 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026833 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026834 grep -v '^ *+' conftest.er1 >conftest.err
26835 rm -f conftest.er1
26836 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026839 { ac_try='test -z "$ac_c_werror_flag"
26840 || test ! -s conftest.err'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; } &&
26846 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 ac_cv_type_pid_t=yes
26853else
26854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026855sed 's/^/| /' conftest.$ac_ext >&5
26856
John Criswell7a73b802003-06-30 21:59:07 +000026857ac_cv_type_pid_t=no
26858fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026860fi
26861echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26862echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26863if test $ac_cv_type_pid_t = yes; then
26864 :
26865else
26866
26867cat >>confdefs.h <<_ACEOF
26868#define pid_t int
26869_ACEOF
26870
26871fi
26872
26873echo "$as_me:$LINENO: checking for size_t" >&5
26874echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26875if test "${ac_cv_type_size_t+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26877else
26878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026879/* confdefs.h. */
26880_ACEOF
26881cat confdefs.h >>conftest.$ac_ext
26882cat >>conftest.$ac_ext <<_ACEOF
26883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026884$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026885int
26886main ()
26887{
26888if ((size_t *) 0)
26889 return 0;
26890if (sizeof (size_t))
26891 return 0;
26892 ;
26893 return 0;
26894}
26895_ACEOF
26896rm -f conftest.$ac_objext
26897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026898 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026899 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026900 grep -v '^ *+' conftest.er1 >conftest.err
26901 rm -f conftest.er1
26902 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026905 { ac_try='test -z "$ac_c_werror_flag"
26906 || test ! -s conftest.err'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; } &&
26912 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 ac_cv_type_size_t=yes
26919else
26920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026921sed 's/^/| /' conftest.$ac_ext >&5
26922
John Criswell7a73b802003-06-30 21:59:07 +000026923ac_cv_type_size_t=no
26924fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026926fi
26927echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26928echo "${ECHO_T}$ac_cv_type_size_t" >&6
26929if test $ac_cv_type_size_t = yes; then
26930 :
26931else
26932
26933cat >>confdefs.h <<_ACEOF
26934#define size_t unsigned
26935_ACEOF
26936
26937fi
26938
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026939echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26940echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26941if test "${ac_cv_type_signal+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26943else
26944 cat >conftest.$ac_ext <<_ACEOF
26945/* confdefs.h. */
26946_ACEOF
26947cat confdefs.h >>conftest.$ac_ext
26948cat >>conftest.$ac_ext <<_ACEOF
26949/* end confdefs.h. */
26950#include <sys/types.h>
26951#include <signal.h>
26952#ifdef signal
26953# undef signal
26954#endif
26955#ifdef __cplusplus
26956extern "C" void (*signal (int, void (*)(int)))(int);
26957#else
26958void (*signal ()) ();
26959#endif
26960
26961int
26962main ()
26963{
26964int i;
26965 ;
26966 return 0;
26967}
26968_ACEOF
26969rm -f conftest.$ac_objext
26970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971 (eval $ac_compile) 2>conftest.er1
26972 ac_status=$?
26973 grep -v '^ *+' conftest.er1 >conftest.err
26974 rm -f conftest.er1
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
26978 { ac_try='test -z "$ac_c_werror_flag"
26979 || test ! -s conftest.err'
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; } &&
26985 { ac_try='test -s conftest.$ac_objext'
26986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987 (eval $ac_try) 2>&5
26988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; }; then
26991 ac_cv_type_signal=void
26992else
26993 echo "$as_me: failed program was:" >&5
26994sed 's/^/| /' conftest.$ac_ext >&5
26995
26996ac_cv_type_signal=int
26997fi
26998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26999fi
27000echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27001echo "${ECHO_T}$ac_cv_type_signal" >&6
27002
27003cat >>confdefs.h <<_ACEOF
27004#define RETSIGTYPE $ac_cv_type_signal
27005_ACEOF
27006
27007
27008echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27009echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27010if test "${ac_cv_struct_tm+set}" = set; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27012else
27013 cat >conftest.$ac_ext <<_ACEOF
27014/* confdefs.h. */
27015_ACEOF
27016cat confdefs.h >>conftest.$ac_ext
27017cat >>conftest.$ac_ext <<_ACEOF
27018/* end confdefs.h. */
27019#include <sys/types.h>
27020#include <time.h>
27021
27022int
27023main ()
27024{
27025struct tm *tp; tp->tm_sec;
27026 ;
27027 return 0;
27028}
27029_ACEOF
27030rm -f conftest.$ac_objext
27031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27032 (eval $ac_compile) 2>conftest.er1
27033 ac_status=$?
27034 grep -v '^ *+' conftest.er1 >conftest.err
27035 rm -f conftest.er1
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } &&
27039 { ac_try='test -z "$ac_c_werror_flag"
27040 || test ! -s conftest.err'
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; } &&
27046 { ac_try='test -s conftest.$ac_objext'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_struct_tm=time.h
27053else
27054 echo "$as_me: failed program was:" >&5
27055sed 's/^/| /' conftest.$ac_ext >&5
27056
27057ac_cv_struct_tm=sys/time.h
27058fi
27059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27060fi
27061echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27062echo "${ECHO_T}$ac_cv_struct_tm" >&6
27063if test $ac_cv_struct_tm = sys/time.h; then
27064
27065cat >>confdefs.h <<\_ACEOF
27066#define TM_IN_SYS_TIME 1
27067_ACEOF
27068
27069fi
27070
John Criswell7a73b802003-06-30 21:59:07 +000027071echo "$as_me:$LINENO: checking for int64_t" >&5
27072echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27073if test "${ac_cv_type_int64_t+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27075else
27076 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027077/* confdefs.h. */
27078_ACEOF
27079cat confdefs.h >>conftest.$ac_ext
27080cat >>conftest.$ac_ext <<_ACEOF
27081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027082$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027083int
27084main ()
27085{
27086if ((int64_t *) 0)
27087 return 0;
27088if (sizeof (int64_t))
27089 return 0;
27090 ;
27091 return 0;
27092}
27093_ACEOF
27094rm -f conftest.$ac_objext
27095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027096 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027098 grep -v '^ *+' conftest.er1 >conftest.err
27099 rm -f conftest.er1
27100 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027103 { ac_try='test -z "$ac_c_werror_flag"
27104 || test ! -s conftest.err'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; } &&
27110 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 (eval $ac_try) 2>&5
27113 ac_status=$?
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); }; }; then
27116 ac_cv_type_int64_t=yes
27117else
27118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027119sed 's/^/| /' conftest.$ac_ext >&5
27120
John Criswell7a73b802003-06-30 21:59:07 +000027121ac_cv_type_int64_t=no
27122fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027124fi
27125echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27126echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27127if test $ac_cv_type_int64_t = yes; then
27128
27129cat >>confdefs.h <<_ACEOF
27130#define HAVE_INT64_T 1
27131_ACEOF
27132
27133
27134else
27135 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27136echo "$as_me: error: Type int64_t required but not found" >&2;}
27137 { (exit 1); exit 1; }; }
27138fi
27139
27140echo "$as_me:$LINENO: checking for uint64_t" >&5
27141echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27142if test "${ac_cv_type_uint64_t+set}" = set; then
27143 echo $ECHO_N "(cached) $ECHO_C" >&6
27144else
27145 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027146/* confdefs.h. */
27147_ACEOF
27148cat confdefs.h >>conftest.$ac_ext
27149cat >>conftest.$ac_ext <<_ACEOF
27150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027151$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027152int
27153main ()
27154{
27155if ((uint64_t *) 0)
27156 return 0;
27157if (sizeof (uint64_t))
27158 return 0;
27159 ;
27160 return 0;
27161}
27162_ACEOF
27163rm -f conftest.$ac_objext
27164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027165 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027167 grep -v '^ *+' conftest.er1 >conftest.err
27168 rm -f conftest.er1
27169 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027172 { ac_try='test -z "$ac_c_werror_flag"
27173 || test ! -s conftest.err'
27174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; } &&
27179 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
27185 ac_cv_type_uint64_t=yes
27186else
27187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027188sed 's/^/| /' conftest.$ac_ext >&5
27189
John Criswell7a73b802003-06-30 21:59:07 +000027190ac_cv_type_uint64_t=no
27191fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027193fi
27194echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27195echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27196if test $ac_cv_type_uint64_t = yes; then
27197
27198cat >>confdefs.h <<_ACEOF
27199#define HAVE_UINT64_T 1
27200_ACEOF
27201
27202
27203else
Misha Brukmanceca9042004-09-02 23:02:30 +000027204 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027205echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27206if test "${ac_cv_type_u_int64_t+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208else
27209 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027210/* confdefs.h. */
27211_ACEOF
27212cat confdefs.h >>conftest.$ac_ext
27213cat >>conftest.$ac_ext <<_ACEOF
27214/* end confdefs.h. */
27215$ac_includes_default
27216int
27217main ()
27218{
27219if ((u_int64_t *) 0)
27220 return 0;
27221if (sizeof (u_int64_t))
27222 return 0;
27223 ;
27224 return 0;
27225}
27226_ACEOF
27227rm -f conftest.$ac_objext
27228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027229 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027230 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027231 grep -v '^ *+' conftest.er1 >conftest.err
27232 rm -f conftest.er1
27233 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027236 { ac_try='test -z "$ac_c_werror_flag"
27237 || test ! -s conftest.err'
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27240 ac_status=$?
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; } &&
27243 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245 (eval $ac_try) 2>&5
27246 ac_status=$?
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; }; then
27249 ac_cv_type_u_int64_t=yes
27250else
27251 echo "$as_me: failed program was:" >&5
27252sed 's/^/| /' conftest.$ac_ext >&5
27253
27254ac_cv_type_u_int64_t=no
27255fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027257fi
27258echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27259echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27260if test $ac_cv_type_u_int64_t = yes; then
27261
27262cat >>confdefs.h <<_ACEOF
27263#define HAVE_U_INT64_T 1
27264_ACEOF
27265
27266
Misha Brukmanceca9042004-09-02 23:02:30 +000027267else
27268 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27269echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27270 { (exit 1); exit 1; }; }
27271fi
27272
John Criswell679ff312004-09-02 18:44:44 +000027273fi
27274
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027275
27276
27277
27278
27279
27280
27281
27282
Reid Spencerab5eaea2004-12-20 00:59:04 +000027283for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27284do
27285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27286echo "$as_me:$LINENO: checking for $ac_func" >&5
27287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27288if eval "test \"\${$as_ac_var+set}\" = set"; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27290else
27291 cat >conftest.$ac_ext <<_ACEOF
27292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
27297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27299#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027300
Reid Spencerab5eaea2004-12-20 00:59:04 +000027301/* System header to define __stub macros and hopefully few prototypes,
27302 which can conflict with char $ac_func (); below.
27303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27304 <limits.h> exists even on freestanding compilers. */
27305
27306#ifdef __STDC__
27307# include <limits.h>
27308#else
27309# include <assert.h>
27310#endif
27311
27312#undef $ac_func
27313
27314/* Override any gcc2 internal prototype to avoid an error. */
27315#ifdef __cplusplus
27316extern "C"
27317{
27318#endif
27319/* We use char because int might match the return type of a gcc2
27320 builtin and then its argument prototype would still apply. */
27321char $ac_func ();
27322/* The GNU C library defines this for functions which it implements
27323 to always fail with ENOSYS. Some functions are actually named
27324 something starting with __ and the normal name is an alias. */
27325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27326choke me
27327#else
27328char (*f) () = $ac_func;
27329#endif
27330#ifdef __cplusplus
27331}
27332#endif
27333
27334int
27335main ()
27336{
27337return f != $ac_func;
27338 ;
27339 return 0;
27340}
27341_ACEOF
27342rm -f conftest.$ac_objext conftest$ac_exeext
27343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344 (eval $ac_link) 2>conftest.er1
27345 ac_status=$?
27346 grep -v '^ *+' conftest.er1 >conftest.err
27347 rm -f conftest.er1
27348 cat conftest.err >&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); } &&
27351 { ac_try='test -z "$ac_c_werror_flag"
27352 || test ! -s conftest.err'
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest$ac_exeext'
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27361 ac_status=$?
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 eval "$as_ac_var=yes"
27365else
27366 echo "$as_me: failed program was:" >&5
27367sed 's/^/| /' conftest.$ac_ext >&5
27368
27369eval "$as_ac_var=no"
27370fi
27371rm -f conftest.err conftest.$ac_objext \
27372 conftest$ac_exeext conftest.$ac_ext
27373fi
27374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27376if test `eval echo '${'$as_ac_var'}'` = yes; then
27377 cat >>confdefs.h <<_ACEOF
27378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27379_ACEOF
27380
27381fi
27382done
27383
27384
27385
27386
27387for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027388do
27389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27390echo "$as_me:$LINENO: checking for $ac_func" >&5
27391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27392if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027393 echo $ECHO_N "(cached) $ECHO_C" >&6
27394else
27395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027396/* confdefs.h. */
27397_ACEOF
27398cat confdefs.h >>conftest.$ac_ext
27399cat >>conftest.$ac_ext <<_ACEOF
27400/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27403#define $ac_func innocuous_$ac_func
27404
27405/* System header to define __stub macros and hopefully few prototypes,
27406 which can conflict with char $ac_func (); below.
27407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27408 <limits.h> exists even on freestanding compilers. */
27409
27410#ifdef __STDC__
27411# include <limits.h>
27412#else
27413# include <assert.h>
27414#endif
27415
27416#undef $ac_func
27417
27418/* Override any gcc2 internal prototype to avoid an error. */
27419#ifdef __cplusplus
27420extern "C"
27421{
27422#endif
27423/* We use char because int might match the return type of a gcc2
27424 builtin and then its argument prototype would still apply. */
27425char $ac_func ();
27426/* The GNU C library defines this for functions which it implements
27427 to always fail with ENOSYS. Some functions are actually named
27428 something starting with __ and the normal name is an alias. */
27429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27430choke me
27431#else
27432char (*f) () = $ac_func;
27433#endif
27434#ifdef __cplusplus
27435}
27436#endif
John Criswell7a73b802003-06-30 21:59:07 +000027437
John Criswell7a73b802003-06-30 21:59:07 +000027438int
27439main ()
27440{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027441return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027442 ;
27443 return 0;
27444}
27445_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027446rm -f conftest.$ac_objext conftest$ac_exeext
27447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27448 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027450 grep -v '^ *+' conftest.er1 >conftest.err
27451 rm -f conftest.er1
27452 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027455 { ac_try='test -z "$ac_c_werror_flag"
27456 || test ! -s conftest.err'
27457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027462 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464 (eval $ac_try) 2>&5
27465 ac_status=$?
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027468 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027469else
27470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027471sed 's/^/| /' conftest.$ac_ext >&5
27472
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027473eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027474fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027475rm -f conftest.err conftest.$ac_objext \
27476 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027477fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27480if test `eval echo '${'$as_ac_var'}'` = yes; then
27481 cat >>confdefs.h <<_ACEOF
27482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027483_ACEOF
27484
27485fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027486done
John Criswell7a73b802003-06-30 21:59:07 +000027487
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027488
27489
27490
Reid Spencer6af3d262004-12-15 04:01:48 +000027491
27492
Reid Spencer59473af2004-12-25 07:31:29 +000027493
Reid Spencerba46ca32004-12-31 05:49:15 +000027494for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027495do
27496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27497echo "$as_me:$LINENO: checking for $ac_func" >&5
27498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27499if eval "test \"\${$as_ac_var+set}\" = set"; then
27500 echo $ECHO_N "(cached) $ECHO_C" >&6
27501else
27502 cat >conftest.$ac_ext <<_ACEOF
27503/* confdefs.h. */
27504_ACEOF
27505cat confdefs.h >>conftest.$ac_ext
27506cat >>conftest.$ac_ext <<_ACEOF
27507/* end confdefs.h. */
27508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27510#define $ac_func innocuous_$ac_func
27511
27512/* System header to define __stub macros and hopefully few prototypes,
27513 which can conflict with char $ac_func (); below.
27514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27515 <limits.h> exists even on freestanding compilers. */
27516
27517#ifdef __STDC__
27518# include <limits.h>
27519#else
27520# include <assert.h>
27521#endif
27522
27523#undef $ac_func
27524
27525/* Override any gcc2 internal prototype to avoid an error. */
27526#ifdef __cplusplus
27527extern "C"
27528{
27529#endif
27530/* We use char because int might match the return type of a gcc2
27531 builtin and then its argument prototype would still apply. */
27532char $ac_func ();
27533/* The GNU C library defines this for functions which it implements
27534 to always fail with ENOSYS. Some functions are actually named
27535 something starting with __ and the normal name is an alias. */
27536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27537choke me
27538#else
27539char (*f) () = $ac_func;
27540#endif
27541#ifdef __cplusplus
27542}
27543#endif
27544
27545int
27546main ()
27547{
27548return f != $ac_func;
27549 ;
27550 return 0;
27551}
27552_ACEOF
27553rm -f conftest.$ac_objext conftest$ac_exeext
27554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27555 (eval $ac_link) 2>conftest.er1
27556 ac_status=$?
27557 grep -v '^ *+' conftest.er1 >conftest.err
27558 rm -f conftest.er1
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag"
27563 || test ! -s conftest.err'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27575 eval "$as_ac_var=yes"
27576else
27577 echo "$as_me: failed program was:" >&5
27578sed 's/^/| /' conftest.$ac_ext >&5
27579
27580eval "$as_ac_var=no"
27581fi
27582rm -f conftest.err conftest.$ac_objext \
27583 conftest$ac_exeext conftest.$ac_ext
27584fi
27585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27586echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27587if test `eval echo '${'$as_ac_var'}'` = yes; then
27588 cat >>confdefs.h <<_ACEOF
27589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27590_ACEOF
27591
27592fi
27593done
27594
27595
Reid Spencerba46ca32004-12-31 05:49:15 +000027596
27597
27598for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027599do
27600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601echo "$as_me:$LINENO: checking for $ac_func" >&5
27602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27603if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027604 echo $ECHO_N "(cached) $ECHO_C" >&6
27605else
27606 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027607/* confdefs.h. */
27608_ACEOF
27609cat confdefs.h >>conftest.$ac_ext
27610cat >>conftest.$ac_ext <<_ACEOF
27611/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27614#define $ac_func innocuous_$ac_func
27615
27616/* System header to define __stub macros and hopefully few prototypes,
27617 which can conflict with char $ac_func (); below.
27618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619 <limits.h> exists even on freestanding compilers. */
27620
27621#ifdef __STDC__
27622# include <limits.h>
27623#else
27624# include <assert.h>
27625#endif
27626
27627#undef $ac_func
27628
27629/* Override any gcc2 internal prototype to avoid an error. */
27630#ifdef __cplusplus
27631extern "C"
27632{
27633#endif
27634/* We use char because int might match the return type of a gcc2
27635 builtin and then its argument prototype would still apply. */
27636char $ac_func ();
27637/* The GNU C library defines this for functions which it implements
27638 to always fail with ENOSYS. Some functions are actually named
27639 something starting with __ and the normal name is an alias. */
27640#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27641choke me
27642#else
27643char (*f) () = $ac_func;
27644#endif
27645#ifdef __cplusplus
27646}
27647#endif
John Criswell7a73b802003-06-30 21:59:07 +000027648
John Criswell7a73b802003-06-30 21:59:07 +000027649int
27650main ()
27651{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027652return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027653 ;
27654 return 0;
27655}
27656_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027657rm -f conftest.$ac_objext conftest$ac_exeext
27658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27659 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027660 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027661 grep -v '^ *+' conftest.er1 >conftest.err
27662 rm -f conftest.er1
27663 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027666 { ac_try='test -z "$ac_c_werror_flag"
27667 || test ! -s conftest.err'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027673 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675 (eval $ac_try) 2>&5
27676 ac_status=$?
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027679 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027680else
27681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027682sed 's/^/| /' conftest.$ac_ext >&5
27683
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027684eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027685fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027686rm -f conftest.err conftest.$ac_objext \
27687 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027688fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27691if test `eval echo '${'$as_ac_var'}'` = yes; then
27692 cat >>confdefs.h <<_ACEOF
27693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027694_ACEOF
27695
27696fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027697done
John Criswell7a73b802003-06-30 21:59:07 +000027698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027699echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27700echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027701if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027702 echo $ECHO_N "(cached) $ECHO_C" >&6
27703else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027704 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027705ac_cpp='$CPP $CPPFLAGS'
27706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27708ac_compiler_gnu=$ac_cv_c_compiler_gnu
27709
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027710 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027711 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027712else
27713 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027714
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027715 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027716_ACEOF
27717cat confdefs.h >>conftest.$ac_ext
27718cat >>conftest.$ac_ext <<_ACEOF
27719/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027720
John Criswella0137d32003-10-13 16:22:01 +000027721#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027722#include <stdlib.h>
27723
John Criswella0137d32003-10-13 16:22:01 +000027724int
27725main ()
27726{
27727
Reid Spencer2706f8c2004-09-19 23:53:36 +000027728volatile double A, B;
27729char Buffer[100];
27730A = 1;
27731A /= 10.0;
27732sprintf(Buffer, "%a", A);
27733B = atof(Buffer);
27734if (A != B)
27735 return (1);
27736if (A != 0x1.999999999999ap-4)
27737 return (1);
27738return (0);
John Criswella0137d32003-10-13 16:22:01 +000027739 ;
27740 return 0;
27741}
27742_ACEOF
27743rm -f conftest$ac_exeext
27744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27745 (eval $ac_link) 2>&5
27746 ac_status=$?
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027754 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027755else
27756 echo "$as_me: program exited with status $ac_status" >&5
27757echo "$as_me: failed program was:" >&5
27758sed 's/^/| /' conftest.$ac_ext >&5
27759
27760( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027761llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027765 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027766ac_cpp='$CPP $CPPFLAGS'
27767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27769ac_compiler_gnu=$ac_cv_c_compiler_gnu
27770
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027771fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027772echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27773echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27774 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027775
27776cat >>confdefs.h <<\_ACEOF
27777#define HAVE_PRINTF_A 1
27778_ACEOF
27779
Reid Spencer2706f8c2004-09-19 23:53:36 +000027780 fi
John Criswella0137d32003-10-13 16:22:01 +000027781
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027782# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27783# for constant arguments. Useless!
27784echo "$as_me:$LINENO: checking for working alloca.h" >&5
27785echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27786if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027787 echo $ECHO_N "(cached) $ECHO_C" >&6
27788else
John Criswell0021c312004-02-13 21:57:29 +000027789 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027790/* confdefs.h. */
27791_ACEOF
27792cat confdefs.h >>conftest.$ac_ext
27793cat >>conftest.$ac_ext <<_ACEOF
27794/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027795#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027796int
27797main ()
27798{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027799char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027800 ;
27801 return 0;
27802}
27803_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027804rm -f conftest.$ac_objext conftest$ac_exeext
27805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27806 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027808 grep -v '^ *+' conftest.er1 >conftest.err
27809 rm -f conftest.er1
27810 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027813 { ac_try='test -z "$ac_c_werror_flag"
27814 || test ! -s conftest.err'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027820 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027826 ac_cv_working_alloca_h=yes
27827else
27828 echo "$as_me: failed program was:" >&5
27829sed 's/^/| /' conftest.$ac_ext >&5
27830
27831ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027832fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027833rm -f conftest.err conftest.$ac_objext \
27834 conftest$ac_exeext conftest.$ac_ext
27835fi
27836echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27837echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27838if test $ac_cv_working_alloca_h = yes; then
27839
27840cat >>confdefs.h <<\_ACEOF
27841#define HAVE_ALLOCA_H 1
27842_ACEOF
27843
27844fi
27845
27846echo "$as_me:$LINENO: checking for alloca" >&5
27847echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27848if test "${ac_cv_func_alloca_works+set}" = set; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27850else
27851 cat >conftest.$ac_ext <<_ACEOF
27852/* confdefs.h. */
27853_ACEOF
27854cat confdefs.h >>conftest.$ac_ext
27855cat >>conftest.$ac_ext <<_ACEOF
27856/* end confdefs.h. */
27857#ifdef __GNUC__
27858# define alloca __builtin_alloca
27859#else
27860# ifdef _MSC_VER
27861# include <malloc.h>
27862# define alloca _alloca
27863# else
27864# if HAVE_ALLOCA_H
27865# include <alloca.h>
27866# else
27867# ifdef _AIX
27868 #pragma alloca
27869# else
27870# ifndef alloca /* predefined by HP cc +Olibcalls */
27871char *alloca ();
27872# endif
27873# endif
27874# endif
27875# endif
27876#endif
27877
27878int
27879main ()
27880{
27881char *p = (char *) alloca (1);
27882 ;
27883 return 0;
27884}
27885_ACEOF
27886rm -f conftest.$ac_objext conftest$ac_exeext
27887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27888 (eval $ac_link) 2>conftest.er1
27889 ac_status=$?
27890 grep -v '^ *+' conftest.er1 >conftest.err
27891 rm -f conftest.er1
27892 cat conftest.err >&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } &&
27895 { ac_try='test -z "$ac_c_werror_flag"
27896 || test ! -s conftest.err'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; } &&
27902 { ac_try='test -s conftest$ac_exeext'
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27905 ac_status=$?
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908 ac_cv_func_alloca_works=yes
27909else
27910 echo "$as_me: failed program was:" >&5
27911sed 's/^/| /' conftest.$ac_ext >&5
27912
27913ac_cv_func_alloca_works=no
27914fi
27915rm -f conftest.err conftest.$ac_objext \
27916 conftest$ac_exeext conftest.$ac_ext
27917fi
27918echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27919echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27920
27921if test $ac_cv_func_alloca_works = yes; then
27922
27923cat >>confdefs.h <<\_ACEOF
27924#define HAVE_ALLOCA 1
27925_ACEOF
27926
27927else
27928 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27929# that cause trouble. Some versions do not even contain alloca or
27930# contain a buggy version. If you still want to use their alloca,
27931# use ar to extract alloca.o from them instead of compiling alloca.c.
27932
27933ALLOCA=alloca.$ac_objext
27934
27935cat >>confdefs.h <<\_ACEOF
27936#define C_ALLOCA 1
27937_ACEOF
27938
27939
27940echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27941echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27942if test "${ac_cv_os_cray+set}" = set; then
27943 echo $ECHO_N "(cached) $ECHO_C" >&6
27944else
27945 cat >conftest.$ac_ext <<_ACEOF
27946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951#if defined(CRAY) && ! defined(CRAY2)
27952webecray
27953#else
27954wenotbecray
27955#endif
27956
27957_ACEOF
27958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27959 $EGREP "webecray" >/dev/null 2>&1; then
27960 ac_cv_os_cray=yes
27961else
27962 ac_cv_os_cray=no
27963fi
27964rm -f conftest*
27965
27966fi
27967echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27968echo "${ECHO_T}$ac_cv_os_cray" >&6
27969if test $ac_cv_os_cray = yes; then
27970 for ac_func in _getb67 GETB67 getb67; do
27971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27972echo "$as_me:$LINENO: checking for $ac_func" >&5
27973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27974if eval "test \"\${$as_ac_var+set}\" = set"; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976else
27977 cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27985#define $ac_func innocuous_$ac_func
27986
27987/* System header to define __stub macros and hopefully few prototypes,
27988 which can conflict with char $ac_func (); below.
27989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27990 <limits.h> exists even on freestanding compilers. */
27991
27992#ifdef __STDC__
27993# include <limits.h>
27994#else
27995# include <assert.h>
27996#endif
27997
27998#undef $ac_func
27999
28000/* Override any gcc2 internal prototype to avoid an error. */
28001#ifdef __cplusplus
28002extern "C"
28003{
28004#endif
28005/* We use char because int might match the return type of a gcc2
28006 builtin and then its argument prototype would still apply. */
28007char $ac_func ();
28008/* The GNU C library defines this for functions which it implements
28009 to always fail with ENOSYS. Some functions are actually named
28010 something starting with __ and the normal name is an alias. */
28011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28012choke me
28013#else
28014char (*f) () = $ac_func;
28015#endif
28016#ifdef __cplusplus
28017}
28018#endif
28019
28020int
28021main ()
28022{
28023return f != $ac_func;
28024 ;
28025 return 0;
28026}
28027_ACEOF
28028rm -f conftest.$ac_objext conftest$ac_exeext
28029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28030 (eval $ac_link) 2>conftest.er1
28031 ac_status=$?
28032 grep -v '^ *+' conftest.er1 >conftest.err
28033 rm -f conftest.er1
28034 cat conftest.err >&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } &&
28037 { ac_try='test -z "$ac_c_werror_flag"
28038 || test ! -s conftest.err'
28039 { (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); }; } &&
28044 { ac_try='test -s conftest$ac_exeext'
28045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046 (eval $ac_try) 2>&5
28047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; }; then
28050 eval "$as_ac_var=yes"
28051else
28052 echo "$as_me: failed program was:" >&5
28053sed 's/^/| /' conftest.$ac_ext >&5
28054
28055eval "$as_ac_var=no"
28056fi
28057rm -f conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
28059fi
28060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28062if test `eval echo '${'$as_ac_var'}'` = yes; then
28063
28064cat >>confdefs.h <<_ACEOF
28065#define CRAY_STACKSEG_END $ac_func
28066_ACEOF
28067
28068 break
28069fi
28070
28071 done
28072fi
28073
28074echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28075echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28076if test "${ac_cv_c_stack_direction+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28078else
28079 if test "$cross_compiling" = yes; then
28080 ac_cv_c_stack_direction=0
28081else
28082 cat >conftest.$ac_ext <<_ACEOF
28083/* confdefs.h. */
28084_ACEOF
28085cat confdefs.h >>conftest.$ac_ext
28086cat >>conftest.$ac_ext <<_ACEOF
28087/* end confdefs.h. */
28088int
28089find_stack_direction ()
28090{
28091 static char *addr = 0;
28092 auto char dummy;
28093 if (addr == 0)
28094 {
28095 addr = &dummy;
28096 return find_stack_direction ();
28097 }
John Criswell0021c312004-02-13 21:57:29 +000028098 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028099 return (&dummy > addr) ? 1 : -1;
28100}
John Criswell0021c312004-02-13 21:57:29 +000028101
John Criswell0021c312004-02-13 21:57:29 +000028102int
28103main ()
28104{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028105 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028106}
28107_ACEOF
28108rm -f conftest$ac_exeext
28109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28110 (eval $ac_link) 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28116 ac_status=$?
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028119 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028120else
28121 echo "$as_me: program exited with status $ac_status" >&5
28122echo "$as_me: failed program was:" >&5
28123sed 's/^/| /' conftest.$ac_ext >&5
28124
28125( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028126ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028127fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028129fi
28130fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028131echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28132echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28133
28134cat >>confdefs.h <<_ACEOF
28135#define STACK_DIRECTION $ac_cv_c_stack_direction
28136_ACEOF
28137
28138
John Criswell0021c312004-02-13 21:57:29 +000028139fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028140
28141
28142echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28143echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28144if test "${ac_cv_func_rand48+set}" = set; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28146else
28147 ac_ext=cc
28148ac_cpp='$CXXCPP $CPPFLAGS'
28149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28152
28153 cat >conftest.$ac_ext <<_ACEOF
28154/* confdefs.h. */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h. */
28159#include <stdlib.h>
28160int
28161main ()
28162{
28163srand48(0);lrand48();drand48();
28164 ;
28165 return 0;
28166}
28167_ACEOF
28168rm -f conftest.$ac_objext
28169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28170 (eval $ac_compile) 2>conftest.er1
28171 ac_status=$?
28172 grep -v '^ *+' conftest.er1 >conftest.err
28173 rm -f conftest.er1
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } &&
28177 { ac_try='test -z "$ac_cxx_werror_flag"
28178 || test ! -s conftest.err'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; } &&
28184 { ac_try='test -s conftest.$ac_objext'
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; }; then
28190 ac_cv_func_rand48=yes
28191else
28192 echo "$as_me: failed program was:" >&5
28193sed 's/^/| /' conftest.$ac_ext >&5
28194
28195ac_cv_func_rand48=no
28196fi
28197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28198 ac_ext=c
28199ac_cpp='$CPP $CPPFLAGS'
28200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28202ac_compiler_gnu=$ac_cv_c_compiler_gnu
28203
28204fi
28205echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28206echo "${ECHO_T}$ac_cv_func_rand48" >&6
28207
28208if test "$ac_cv_func_rand48" = "yes" ; then
28209
28210cat >>confdefs.h <<\_ACEOF
28211#define HAVE_RAND48 1
28212_ACEOF
28213
28214fi
John Criswell0021c312004-02-13 21:57:29 +000028215
28216
John Criswell7a73b802003-06-30 21:59:07 +000028217echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28218echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28219if test "${ac_cv_cxx_namespaces+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28221else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028222 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028223ac_cpp='$CXXCPP $CPPFLAGS'
28224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28227
28228 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028229/* confdefs.h. */
28230_ACEOF
28231cat confdefs.h >>conftest.$ac_ext
28232cat >>conftest.$ac_ext <<_ACEOF
28233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028234namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028235int
28236main ()
28237{
28238using namespace Outer::Inner; return i;
28239 ;
28240 return 0;
28241}
28242_ACEOF
28243rm -f conftest.$ac_objext
28244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028245 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028247 grep -v '^ *+' conftest.er1 >conftest.err
28248 rm -f conftest.er1
28249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028252 { ac_try='test -z "$ac_cxx_werror_flag"
28253 || test ! -s conftest.err'
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; } &&
28259 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28262 ac_status=$?
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; }; then
28265 ac_cv_cxx_namespaces=yes
28266else
28267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028268sed 's/^/| /' conftest.$ac_ext >&5
28269
John Criswell7a73b802003-06-30 21:59:07 +000028270ac_cv_cxx_namespaces=no
28271fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028273 ac_ext=c
28274ac_cpp='$CPP $CPPFLAGS'
28275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28277ac_compiler_gnu=$ac_cv_c_compiler_gnu
28278
28279
28280fi
28281echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28282echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28283if test "$ac_cv_cxx_namespaces" = yes; then
28284
28285cat >>confdefs.h <<\_ACEOF
28286#define HAVE_NAMESPACES
28287_ACEOF
28288
28289fi
28290
Brian Gaeke90583492003-11-10 03:06:28 +000028291echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28292echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28293if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028294 echo $ECHO_N "(cached) $ECHO_C" >&6
28295else
28296
John Criswell7a73b802003-06-30 21:59:07 +000028297 ac_ext=cc
28298ac_cpp='$CXXCPP $CPPFLAGS'
28299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28302
28303 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028304/* confdefs.h. */
28305_ACEOF
28306cat confdefs.h >>conftest.$ac_ext
28307cat >>conftest.$ac_ext <<_ACEOF
28308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028309#include <ext/hash_map>
28310#ifdef HAVE_NAMESPACES
28311using namespace std;
28312#endif
John Criswell7a73b802003-06-30 21:59:07 +000028313int
28314main ()
28315{
Brian Gaeke90583492003-11-10 03:06:28 +000028316hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028317 ;
28318 return 0;
28319}
28320_ACEOF
28321rm -f conftest.$ac_objext
28322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028323 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028325 grep -v '^ *+' conftest.er1 >conftest.err
28326 rm -f conftest.er1
28327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028330 { ac_try='test -z "$ac_cxx_werror_flag"
28331 || test ! -s conftest.err'
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); }; } &&
28337 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028343 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028344else
28345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028346sed 's/^/| /' conftest.$ac_ext >&5
28347
Brian Gaeke90583492003-11-10 03:06:28 +000028348ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028351 ac_ext=c
28352ac_cpp='$CPP $CPPFLAGS'
28353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355ac_compiler_gnu=$ac_cv_c_compiler_gnu
28356
John Criswell7a73b802003-06-30 21:59:07 +000028357fi
Brian Gaeke90583492003-11-10 03:06:28 +000028358echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28359echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028360 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28361 then
John Criswell9f011862004-09-24 18:28:00 +000028362
28363cat >>confdefs.h <<\_ACEOF
28364#define HAVE_STD_EXT_HASH_MAP 1
28365_ACEOF
28366
28367 else
28368
28369cat >>confdefs.h <<\_ACEOF
28370#define HAVE_STD_EXT_HASH_MAP 0
28371_ACEOF
28372
Brian Gaeke90583492003-11-10 03:06:28 +000028373 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028374
Brian Gaeke90583492003-11-10 03:06:28 +000028375 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28376echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28377if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28379else
28380
Brian Gaeke90583492003-11-10 03:06:28 +000028381 ac_ext=cc
28382ac_cpp='$CXXCPP $CPPFLAGS'
28383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28386
28387 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028388/* confdefs.h. */
28389_ACEOF
28390cat confdefs.h >>conftest.$ac_ext
28391cat >>conftest.$ac_ext <<_ACEOF
28392/* end confdefs.h. */
28393#include <ext/hash_map>
28394#ifdef HAVE_NAMESPACES
28395using namespace __gnu_cxx;
28396#endif
28397int
28398main ()
28399{
28400hash_map<int,int> t;
28401 ;
28402 return 0;
28403}
28404_ACEOF
28405rm -f conftest.$ac_objext
28406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028407 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028409 grep -v '^ *+' conftest.er1 >conftest.err
28410 rm -f conftest.er1
28411 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028414 { ac_try='test -z "$ac_cxx_werror_flag"
28415 || test ! -s conftest.err'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28427 ac_cv_cxx_have_gnu_ext_hash_map=yes
28428else
28429 echo "$as_me: failed program was:" >&5
28430sed 's/^/| /' conftest.$ac_ext >&5
28431
28432ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028433fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028435 ac_ext=c
28436ac_cpp='$CPP $CPPFLAGS'
28437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28439ac_compiler_gnu=$ac_cv_c_compiler_gnu
28440
28441fi
28442echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28443echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028444 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28445 then
John Criswell9f011862004-09-24 18:28:00 +000028446
28447cat >>confdefs.h <<\_ACEOF
28448#define HAVE_GNU_EXT_HASH_MAP 1
28449_ACEOF
28450
28451 else
28452
28453cat >>confdefs.h <<\_ACEOF
28454#define HAVE_GNU_EXT_HASH_MAP 0
28455_ACEOF
28456
Brian Gaeke90583492003-11-10 03:06:28 +000028457 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028458
Brian Gaeke90583492003-11-10 03:06:28 +000028459 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28460echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28461if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28462 echo $ECHO_N "(cached) $ECHO_C" >&6
28463else
John Criswell7a73b802003-06-30 21:59:07 +000028464
Brian Gaeke90583492003-11-10 03:06:28 +000028465 ac_ext=cc
28466ac_cpp='$CXXCPP $CPPFLAGS'
28467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28470
28471 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028472/* confdefs.h. */
28473_ACEOF
28474cat confdefs.h >>conftest.$ac_ext
28475cat >>conftest.$ac_ext <<_ACEOF
28476/* end confdefs.h. */
28477#include <hash_map>
28478int
28479main ()
28480{
28481hash_map<int,int> t;
28482 ;
28483 return 0;
28484}
28485_ACEOF
28486rm -f conftest.$ac_objext
28487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028488 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028490 grep -v '^ *+' conftest.er1 >conftest.err
28491 rm -f conftest.er1
28492 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028495 { ac_try='test -z "$ac_cxx_werror_flag"
28496 || test ! -s conftest.err'
28497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28498 (eval $ac_try) 2>&5
28499 ac_status=$?
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; } &&
28502 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; }; then
28508 ac_cv_cxx_have_global_hash_map=yes
28509else
28510 echo "$as_me: failed program was:" >&5
28511sed 's/^/| /' conftest.$ac_ext >&5
28512
28513ac_cv_cxx_have_global_hash_map=no
28514fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028516 ac_ext=c
28517ac_cpp='$CPP $CPPFLAGS'
28518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28520ac_compiler_gnu=$ac_cv_c_compiler_gnu
28521
28522fi
28523echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28524echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028525 if test "$ac_cv_cxx_have_global_hash_map" = yes
28526 then
John Criswell9f011862004-09-24 18:28:00 +000028527
28528cat >>confdefs.h <<\_ACEOF
28529#define HAVE_GLOBAL_HASH_MAP 1
28530_ACEOF
28531
28532 else
28533
28534cat >>confdefs.h <<\_ACEOF
28535#define HAVE_GLOBAL_HASH_MAP 0
28536_ACEOF
28537
Brian Gaeke90583492003-11-10 03:06:28 +000028538 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028539
Brian Gaeke90583492003-11-10 03:06:28 +000028540echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28541echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28542if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544else
28545
John Criswell7a73b802003-06-30 21:59:07 +000028546 ac_ext=cc
28547ac_cpp='$CXXCPP $CPPFLAGS'
28548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28551
28552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028553/* confdefs.h. */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028558#include <ext/hash_set>
28559#ifdef HAVE_NAMESPACES
28560using namespace std;
28561#endif
John Criswell7a73b802003-06-30 21:59:07 +000028562int
28563main ()
28564{
Brian Gaeke90583492003-11-10 03:06:28 +000028565hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028566 ;
28567 return 0;
28568}
28569_ACEOF
28570rm -f conftest.$ac_objext
28571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028572 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028574 grep -v '^ *+' conftest.er1 >conftest.err
28575 rm -f conftest.er1
28576 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028579 { ac_try='test -z "$ac_cxx_werror_flag"
28580 || test ! -s conftest.err'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28583 ac_status=$?
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28589 ac_status=$?
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028592 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028593else
28594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028595sed 's/^/| /' conftest.$ac_ext >&5
28596
Brian Gaeke90583492003-11-10 03:06:28 +000028597ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028598fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028600 ac_ext=c
28601ac_cpp='$CPP $CPPFLAGS'
28602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604ac_compiler_gnu=$ac_cv_c_compiler_gnu
28605
28606fi
28607echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28608echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028609 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28610 then
John Criswell9f011862004-09-24 18:28:00 +000028611
28612cat >>confdefs.h <<\_ACEOF
28613#define HAVE_STD_EXT_HASH_SET 1
28614_ACEOF
28615
28616 else
28617
28618cat >>confdefs.h <<\_ACEOF
28619#define HAVE_STD_EXT_HASH_SET 0
28620_ACEOF
28621
Brian Gaeke90583492003-11-10 03:06:28 +000028622 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028623
Brian Gaeke90583492003-11-10 03:06:28 +000028624 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28625echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28626if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628else
28629
Brian Gaeke90583492003-11-10 03:06:28 +000028630 ac_ext=cc
28631ac_cpp='$CXXCPP $CPPFLAGS'
28632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28635
John Criswell7a73b802003-06-30 21:59:07 +000028636 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028637/* confdefs.h. */
28638_ACEOF
28639cat confdefs.h >>conftest.$ac_ext
28640cat >>conftest.$ac_ext <<_ACEOF
28641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028642#include <ext/hash_set>
28643#ifdef HAVE_NAMESPACES
28644using namespace __gnu_cxx;
28645#endif
John Criswell7a73b802003-06-30 21:59:07 +000028646int
28647main ()
28648{
Brian Gaeke90583492003-11-10 03:06:28 +000028649hash_set<int> t;
28650 ;
28651 return 0;
28652}
28653_ACEOF
28654rm -f conftest.$ac_objext
28655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028656 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028657 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028658 grep -v '^ *+' conftest.er1 >conftest.err
28659 rm -f conftest.er1
28660 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028663 { ac_try='test -z "$ac_cxx_werror_flag"
28664 || test ! -s conftest.err'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28667 ac_status=$?
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; } &&
28670 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; }; then
28676 ac_cv_cxx_have_gnu_ext_hash_set=yes
28677else
28678 echo "$as_me: failed program was:" >&5
28679sed 's/^/| /' conftest.$ac_ext >&5
28680
28681ac_cv_cxx_have_gnu_ext_hash_set=no
28682fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028684 ac_ext=c
28685ac_cpp='$CPP $CPPFLAGS'
28686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28688ac_compiler_gnu=$ac_cv_c_compiler_gnu
28689
28690fi
28691echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28692echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028693 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28694 then
John Criswell9f011862004-09-24 18:28:00 +000028695
28696cat >>confdefs.h <<\_ACEOF
28697#define HAVE_GNU_EXT_HASH_SET 1
28698_ACEOF
28699
28700 else
28701
28702cat >>confdefs.h <<\_ACEOF
28703#define HAVE_GNU_EXT_HASH_SET 0
28704_ACEOF
28705
Brian Gaeke90583492003-11-10 03:06:28 +000028706 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028707
Brian Gaeke90583492003-11-10 03:06:28 +000028708 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28709echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28710if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28712else
28713
Brian Gaeke90583492003-11-10 03:06:28 +000028714 ac_ext=cc
28715ac_cpp='$CXXCPP $CPPFLAGS'
28716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28719
28720 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028721/* confdefs.h. */
28722_ACEOF
28723cat confdefs.h >>conftest.$ac_ext
28724cat >>conftest.$ac_ext <<_ACEOF
28725/* end confdefs.h. */
28726#include <hash_set>
28727int
28728main ()
28729{
John Criswell7a73b802003-06-30 21:59:07 +000028730hash_set<int> t; return 0;
28731 ;
28732 return 0;
28733}
28734_ACEOF
28735rm -f conftest.$ac_objext
28736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028737 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028739 grep -v '^ *+' conftest.er1 >conftest.err
28740 rm -f conftest.er1
28741 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028744 { ac_try='test -z "$ac_cxx_werror_flag"
28745 || test ! -s conftest.err'
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; } &&
28751 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028757 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028758else
28759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028760sed 's/^/| /' conftest.$ac_ext >&5
28761
Brian Gaeke90583492003-11-10 03:06:28 +000028762ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028765 ac_ext=c
28766ac_cpp='$CPP $CPPFLAGS'
28767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769ac_compiler_gnu=$ac_cv_c_compiler_gnu
28770
John Criswell7a73b802003-06-30 21:59:07 +000028771fi
Brian Gaeke90583492003-11-10 03:06:28 +000028772echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28773echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028774 if test "$ac_cv_cxx_have_global_hash_set" = yes
28775 then
John Criswell9f011862004-09-24 18:28:00 +000028776
28777cat >>confdefs.h <<\_ACEOF
28778#define HAVE_GLOBAL_HASH_SET 1
28779_ACEOF
28780
28781 else
28782
28783cat >>confdefs.h <<\_ACEOF
28784#define HAVE_GLOBAL_HASH_SET 0
28785_ACEOF
28786
Brian Gaeke90583492003-11-10 03:06:28 +000028787 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028788
John Criswell7a73b802003-06-30 21:59:07 +000028789echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28790echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28791if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28793else
28794
John Criswell7a73b802003-06-30 21:59:07 +000028795 ac_ext=cc
28796ac_cpp='$CXXCPP $CPPFLAGS'
28797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28800
28801 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028802/* confdefs.h. */
28803_ACEOF
28804cat confdefs.h >>conftest.$ac_ext
28805cat >>conftest.$ac_ext <<_ACEOF
28806/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028807#include <iterator>
28808#ifdef HAVE_NAMESPACES
28809using namespace std;
28810#endif
John Criswell7a73b802003-06-30 21:59:07 +000028811int
28812main ()
28813{
28814iterator<int,int,int> t; return 0;
28815 ;
28816 return 0;
28817}
28818_ACEOF
28819rm -f conftest.$ac_objext
28820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028821 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028822 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028823 grep -v '^ *+' conftest.er1 >conftest.err
28824 rm -f conftest.er1
28825 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028828 { ac_try='test -z "$ac_cxx_werror_flag"
28829 || test ! -s conftest.err'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; }; then
28841 ac_cv_cxx_have_std_iterator=yes
28842else
28843 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028844sed 's/^/| /' conftest.$ac_ext >&5
28845
John Criswell7a73b802003-06-30 21:59:07 +000028846ac_cv_cxx_have_std_iterator=no
28847fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028849 ac_ext=c
28850ac_cpp='$CPP $CPPFLAGS'
28851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28853ac_compiler_gnu=$ac_cv_c_compiler_gnu
28854
28855
28856fi
28857echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28858echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028859if test "$ac_cv_cxx_have_std_iterator" = yes
28860then
John Criswell40468462004-09-24 21:19:06 +000028861
28862cat >>confdefs.h <<\_ACEOF
28863#define HAVE_STD_ITERATOR 1
28864_ACEOF
28865
28866else
28867
28868cat >>confdefs.h <<\_ACEOF
28869#define HAVE_STD_ITERATOR 0
28870_ACEOF
28871
John Criswell7a73b802003-06-30 21:59:07 +000028872fi
28873
28874echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28875echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28876if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28878else
28879
John Criswell7a73b802003-06-30 21:59:07 +000028880 ac_ext=cc
28881ac_cpp='$CXXCPP $CPPFLAGS'
28882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28885
28886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028887/* confdefs.h. */
28888_ACEOF
28889cat confdefs.h >>conftest.$ac_ext
28890cat >>conftest.$ac_ext <<_ACEOF
28891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028892#include <iterator>
28893#ifdef HAVE_NAMESPACES
28894using namespace std;
28895#endif
John Criswell7a73b802003-06-30 21:59:07 +000028896int
28897main ()
28898{
John Criswellc78022e2003-07-29 19:11:58 +000028899bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028900 ;
28901 return 0;
28902}
28903_ACEOF
28904rm -f conftest.$ac_objext
28905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028906 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028907 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028908 grep -v '^ *+' conftest.er1 >conftest.err
28909 rm -f conftest.er1
28910 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028913 { ac_try='test -z "$ac_cxx_werror_flag"
28914 || test ! -s conftest.err'
28915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916 (eval $ac_try) 2>&5
28917 ac_status=$?
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; } &&
28920 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28923 ac_status=$?
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 ac_cv_cxx_have_bi_iterator=yes
28927else
28928 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028929sed 's/^/| /' conftest.$ac_ext >&5
28930
John Criswell7a73b802003-06-30 21:59:07 +000028931ac_cv_cxx_have_bi_iterator=no
28932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028934 ac_ext=c
28935ac_cpp='$CPP $CPPFLAGS'
28936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28938ac_compiler_gnu=$ac_cv_c_compiler_gnu
28939
28940
28941fi
28942echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28943echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028944if test "$ac_cv_cxx_have_bi_iterator" = yes
28945then
John Criswell40468462004-09-24 21:19:06 +000028946
28947cat >>confdefs.h <<\_ACEOF
28948#define HAVE_BI_ITERATOR 1
28949_ACEOF
28950
28951else
28952
28953cat >>confdefs.h <<\_ACEOF
28954#define HAVE_BI_ITERATOR 0
28955_ACEOF
28956
John Criswell7a73b802003-06-30 21:59:07 +000028957fi
28958
28959echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28960echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28961if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28963else
28964
John Criswell7a73b802003-06-30 21:59:07 +000028965 ac_ext=cc
28966ac_cpp='$CXXCPP $CPPFLAGS'
28967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28970
28971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028972/* confdefs.h. */
28973_ACEOF
28974cat confdefs.h >>conftest.$ac_ext
28975cat >>conftest.$ac_ext <<_ACEOF
28976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028977#include <iterator>
28978#ifdef HAVE_NAMESPACES
28979using namespace std;
28980#endif
John Criswell7a73b802003-06-30 21:59:07 +000028981int
28982main ()
28983{
John Criswellc78022e2003-07-29 19:11:58 +000028984forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028985 ;
28986 return 0;
28987}
28988_ACEOF
28989rm -f conftest.$ac_objext
28990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028991 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028993 grep -v '^ *+' conftest.er1 >conftest.err
28994 rm -f conftest.er1
28995 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028998 { ac_try='test -z "$ac_cxx_werror_flag"
28999 || test ! -s conftest.err'
29000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29001 (eval $ac_try) 2>&5
29002 ac_status=$?
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007 (eval $ac_try) 2>&5
29008 ac_status=$?
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; }; then
29011 ac_cv_cxx_have_fwd_iterator=yes
29012else
29013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029014sed 's/^/| /' conftest.$ac_ext >&5
29015
John Criswell7a73b802003-06-30 21:59:07 +000029016ac_cv_cxx_have_fwd_iterator=no
29017fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029019 ac_ext=c
29020ac_cpp='$CPP $CPPFLAGS'
29021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29023ac_compiler_gnu=$ac_cv_c_compiler_gnu
29024
29025
29026fi
29027echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29028echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029029if test "$ac_cv_cxx_have_fwd_iterator" = yes
29030then
John Criswell40468462004-09-24 21:19:06 +000029031
29032cat >>confdefs.h <<\_ACEOF
29033#define HAVE_FWD_ITERATOR 1
29034_ACEOF
29035
29036else
29037
29038cat >>confdefs.h <<\_ACEOF
29039#define HAVE_FWD_ITERATOR 0
29040_ACEOF
29041
John Criswell7a73b802003-06-30 21:59:07 +000029042fi
29043
29044
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029045echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29046echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29047if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29049else
29050 ac_ext=cc
29051ac_cpp='$CXXCPP $CPPFLAGS'
29052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29055
Reid Spencerabec8f92004-10-27 23:03:44 +000029056 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029057/* confdefs.h. */
29058_ACEOF
29059cat confdefs.h >>conftest.$ac_ext
29060cat >>conftest.$ac_ext <<_ACEOF
29061/* end confdefs.h. */
29062#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029063int
29064main ()
29065{
29066float f; isnan(f);
29067 ;
29068 return 0;
29069}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029070_ACEOF
29071rm -f conftest.$ac_objext
29072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029073 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029075 grep -v '^ *+' conftest.er1 >conftest.err
29076 rm -f conftest.er1
29077 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029080 { ac_try='test -z "$ac_cxx_werror_flag"
29081 || test ! -s conftest.err'
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; } &&
29087 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; }; then
29093 ac_cv_func_isnan_in_math_h=yes
29094else
29095 echo "$as_me: failed program was:" >&5
29096sed 's/^/| /' conftest.$ac_ext >&5
29097
29098ac_cv_func_isnan_in_math_h=no
29099fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029101 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029102ac_cpp='$CPP $CPPFLAGS'
29103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29105ac_compiler_gnu=$ac_cv_c_compiler_gnu
29106
29107fi
29108echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29109echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029110
29111
29112if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029113
29114cat >>confdefs.h <<\_ACEOF
29115#define HAVE_ISNAN_IN_MATH_H 1
29116_ACEOF
29117
Reid Spencerabec8f92004-10-27 23:03:44 +000029118fi
29119
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029120echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29121echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29122if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29124else
29125 ac_ext=cc
29126ac_cpp='$CXXCPP $CPPFLAGS'
29127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29130
Reid Spencerabec8f92004-10-27 23:03:44 +000029131 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029132/* confdefs.h. */
29133_ACEOF
29134cat confdefs.h >>conftest.$ac_ext
29135cat >>conftest.$ac_ext <<_ACEOF
29136/* end confdefs.h. */
29137#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029138int
29139main ()
29140{
29141float f; isnan(f);
29142 ;
29143 return 0;
29144}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029145_ACEOF
29146rm -f conftest.$ac_objext
29147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029148 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029150 grep -v '^ *+' conftest.er1 >conftest.err
29151 rm -f conftest.er1
29152 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029155 { ac_try='test -z "$ac_cxx_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 ac_cv_func_isnan_in_cmath=yes
29169else
29170 echo "$as_me: failed program was:" >&5
29171sed 's/^/| /' conftest.$ac_ext >&5
29172
29173ac_cv_func_isnan_in_cmath=no
29174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029176 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029177ac_cpp='$CPP $CPPFLAGS'
29178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180ac_compiler_gnu=$ac_cv_c_compiler_gnu
29181
29182fi
29183echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29184echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029185
29186if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029187
29188cat >>confdefs.h <<\_ACEOF
29189#define HAVE_ISNAN_IN_CMATH 1
29190_ACEOF
29191
Reid Spencerabec8f92004-10-27 23:03:44 +000029192fi
29193
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029194echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29195echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29196if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29198else
29199 ac_ext=cc
29200ac_cpp='$CXXCPP $CPPFLAGS'
29201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29204
Reid Spencerabec8f92004-10-27 23:03:44 +000029205 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029206/* confdefs.h. */
29207_ACEOF
29208cat confdefs.h >>conftest.$ac_ext
29209cat >>conftest.$ac_ext <<_ACEOF
29210/* end confdefs.h. */
29211#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029212int
29213main ()
29214{
29215float f; std::isnan(f);
29216 ;
29217 return 0;
29218}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029219_ACEOF
29220rm -f conftest.$ac_objext
29221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029222 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029223 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029224 grep -v '^ *+' conftest.er1 >conftest.err
29225 rm -f conftest.er1
29226 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029229 { ac_try='test -z "$ac_cxx_werror_flag"
29230 || test ! -s conftest.err'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29233 ac_status=$?
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29242 ac_cv_func_std_isnan_in_cmath=yes
29243else
29244 echo "$as_me: failed program was:" >&5
29245sed 's/^/| /' conftest.$ac_ext >&5
29246
29247ac_cv_func_std_isnan_in_cmath=no
29248fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029250 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029251ac_cpp='$CPP $CPPFLAGS'
29252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254ac_compiler_gnu=$ac_cv_c_compiler_gnu
29255
29256fi
29257echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29258echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029259
29260if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029261
29262cat >>confdefs.h <<\_ACEOF
29263#define HAVE_STD_ISNAN_IN_CMATH 1
29264_ACEOF
29265
Reid Spencerabec8f92004-10-27 23:03:44 +000029266fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029267
29268
Brian Gaeke52a551d2004-07-21 03:14:12 +000029269echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29270echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29271if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29273else
29274 ac_ext=cc
29275ac_cpp='$CXXCPP $CPPFLAGS'
29276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29279
Reid Spencerabec8f92004-10-27 23:03:44 +000029280 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029281/* confdefs.h. */
29282_ACEOF
29283cat confdefs.h >>conftest.$ac_ext
29284cat >>conftest.$ac_ext <<_ACEOF
29285/* end confdefs.h. */
29286#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029287int
29288main ()
29289{
29290float f; isinf(f);
29291 ;
29292 return 0;
29293}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029294_ACEOF
29295rm -f conftest.$ac_objext
29296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029297 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029304 { ac_try='test -z "$ac_cxx_werror_flag"
29305 || test ! -s conftest.err'
29306 { (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); }; } &&
29311 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
29317 ac_cv_func_isinf_in_math_h=yes
29318else
29319 echo "$as_me: failed program was:" >&5
29320sed 's/^/| /' conftest.$ac_ext >&5
29321
29322ac_cv_func_isinf_in_math_h=no
29323fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029325 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029326ac_cpp='$CPP $CPPFLAGS'
29327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329ac_compiler_gnu=$ac_cv_c_compiler_gnu
29330
29331fi
29332echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29333echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029334
29335if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029336
29337cat >>confdefs.h <<\_ACEOF
29338#define HAVE_ISINF_IN_MATH_H 1
29339_ACEOF
29340
Reid Spencerabec8f92004-10-27 23:03:44 +000029341fi
29342
Brian Gaeke52a551d2004-07-21 03:14:12 +000029343echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29344echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29345if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347else
29348 ac_ext=cc
29349ac_cpp='$CXXCPP $CPPFLAGS'
29350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29353
Reid Spencerabec8f92004-10-27 23:03:44 +000029354 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029355/* confdefs.h. */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h. */
29360#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029361int
29362main ()
29363{
29364float f; isinf(f);
29365 ;
29366 return 0;
29367}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029368_ACEOF
29369rm -f conftest.$ac_objext
29370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029371 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029373 grep -v '^ *+' conftest.er1 >conftest.err
29374 rm -f conftest.er1
29375 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029378 { ac_try='test -z "$ac_cxx_werror_flag"
29379 || test ! -s conftest.err'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 ac_cv_func_isinf_in_cmath=yes
29392else
29393 echo "$as_me: failed program was:" >&5
29394sed 's/^/| /' conftest.$ac_ext >&5
29395
29396ac_cv_func_isinf_in_cmath=no
29397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029399 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029400ac_cpp='$CPP $CPPFLAGS'
29401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403ac_compiler_gnu=$ac_cv_c_compiler_gnu
29404
29405fi
29406echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29407echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029408
29409if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029410
29411cat >>confdefs.h <<\_ACEOF
29412#define HAVE_ISINF_IN_CMATH 1
29413_ACEOF
29414
Reid Spencerabec8f92004-10-27 23:03:44 +000029415fi
29416
Brian Gaeke52a551d2004-07-21 03:14:12 +000029417echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29418echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29419if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 ac_ext=cc
29423ac_cpp='$CXXCPP $CPPFLAGS'
29424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29427
Reid Spencerabec8f92004-10-27 23:03:44 +000029428 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
29434#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029435int
29436main ()
29437{
29438float f; std::isinf(f)}
29439 ;
29440 return 0;
29441}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029442_ACEOF
29443rm -f conftest.$ac_objext
29444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029445 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029447 grep -v '^ *+' conftest.er1 >conftest.err
29448 rm -f conftest.er1
29449 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029452 { ac_try='test -z "$ac_cxx_werror_flag"
29453 || test ! -s conftest.err'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29456 ac_status=$?
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29462 ac_status=$?
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; }; then
29465 ac_cv_func_std_isinf_in_cmath=yes
29466else
29467 echo "$as_me: failed program was:" >&5
29468sed 's/^/| /' conftest.$ac_ext >&5
29469
29470ac_cv_func_std_isinf_in_cmath=no
29471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029473 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029474ac_cpp='$CPP $CPPFLAGS'
29475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477ac_compiler_gnu=$ac_cv_c_compiler_gnu
29478
29479fi
29480echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29481echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029482
29483if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029484
29485cat >>confdefs.h <<\_ACEOF
29486#define HAVE_STD_ISINF_IN_CMATH 1
29487_ACEOF
29488
Reid Spencerabec8f92004-10-27 23:03:44 +000029489fi
29490
Brian Gaeked59a6472004-07-21 03:33:58 +000029491echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29492echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29493if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29495else
29496 ac_ext=cc
29497ac_cpp='$CXXCPP $CPPFLAGS'
29498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29501
Reid Spencerabec8f92004-10-27 23:03:44 +000029502 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
29508#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029509int
29510main ()
29511{
29512float f; finite(f);
29513 ;
29514 return 0;
29515}
Brian Gaeked59a6472004-07-21 03:33:58 +000029516_ACEOF
29517rm -f conftest.$ac_objext
29518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029519 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029521 grep -v '^ *+' conftest.er1 >conftest.err
29522 rm -f conftest.er1
29523 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029526 { ac_try='test -z "$ac_cxx_werror_flag"
29527 || test ! -s conftest.err'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29530 ac_status=$?
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; } &&
29533 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29536 ac_status=$?
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_cv_func_finite_in_ieeefp_h=yes
29540else
29541 echo "$as_me: failed program was:" >&5
29542sed 's/^/| /' conftest.$ac_ext >&5
29543
29544ac_cv_func_finite_in_ieeefp_h=no
29545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029547 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029548ac_cpp='$CPP $CPPFLAGS'
29549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29551ac_compiler_gnu=$ac_cv_c_compiler_gnu
29552
29553fi
29554echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29555echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029556
Brian Gaeke6802b552004-10-28 05:06:45 +000029557if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029558
29559cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029560#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029561_ACEOF
29562
Reid Spencerabec8f92004-10-27 23:03:44 +000029563fi
29564
29565
29566
John Criswell7a73b802003-06-30 21:59:07 +000029567
29568
29569for ac_header in stdlib.h unistd.h
29570do
29571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29572if eval "test \"\${$as_ac_Header+set}\" = set"; then
29573 echo "$as_me:$LINENO: checking for $ac_header" >&5
29574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29575if eval "test \"\${$as_ac_Header+set}\" = set"; then
29576 echo $ECHO_N "(cached) $ECHO_C" >&6
29577fi
29578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29580else
29581 # Is the header compilable?
29582echo "$as_me:$LINENO: checking $ac_header usability" >&5
29583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29584cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029585/* confdefs.h. */
29586_ACEOF
29587cat confdefs.h >>conftest.$ac_ext
29588cat >>conftest.$ac_ext <<_ACEOF
29589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029590$ac_includes_default
29591#include <$ac_header>
29592_ACEOF
29593rm -f conftest.$ac_objext
29594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029595 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029597 grep -v '^ *+' conftest.er1 >conftest.err
29598 rm -f conftest.er1
29599 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029602 { ac_try='test -z "$ac_c_werror_flag"
29603 || test ! -s conftest.err'
29604 { (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); }; } &&
29609 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29615 ac_header_compiler=yes
29616else
29617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029618sed 's/^/| /' conftest.$ac_ext >&5
29619
John Criswell7a73b802003-06-30 21:59:07 +000029620ac_header_compiler=no
29621fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29624echo "${ECHO_T}$ac_header_compiler" >&6
29625
29626# Is the header present?
29627echo "$as_me:$LINENO: checking $ac_header presence" >&5
29628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29629cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029630/* confdefs.h. */
29631_ACEOF
29632cat confdefs.h >>conftest.$ac_ext
29633cat >>conftest.$ac_ext <<_ACEOF
29634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029635#include <$ac_header>
29636_ACEOF
29637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29639 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029640 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029641 rm -f conftest.er1
29642 cat conftest.err >&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } >/dev/null; then
29645 if test -s conftest.err; then
29646 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029648 else
29649 ac_cpp_err=
29650 fi
29651else
29652 ac_cpp_err=yes
29653fi
29654if test -z "$ac_cpp_err"; then
29655 ac_header_preproc=yes
29656else
29657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029658sed 's/^/| /' conftest.$ac_ext >&5
29659
John Criswell7a73b802003-06-30 21:59:07 +000029660 ac_header_preproc=no
29661fi
29662rm -f conftest.err conftest.$ac_ext
29663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29664echo "${ECHO_T}$ac_header_preproc" >&6
29665
29666# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29668 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29673 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029674 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029675 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029688 (
29689 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029690## ----------------------------------- ##
29691## Report this to llvmbugs@cs.uiuc.edu ##
29692## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029693_ASBOX
29694 ) |
29695 sed "s/^/$as_me: WARNING: /" >&2
29696 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029697esac
29698echo "$as_me:$LINENO: checking for $ac_header" >&5
29699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29700if eval "test \"\${$as_ac_Header+set}\" = set"; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29702else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029703 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029704fi
29705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29707
29708fi
29709if test `eval echo '${'$as_ac_Header'}'` = yes; then
29710 cat >>confdefs.h <<_ACEOF
29711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29712_ACEOF
29713
29714fi
29715
29716done
29717
29718
29719for ac_func in getpagesize
29720do
29721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722echo "$as_me:$LINENO: checking for $ac_func" >&5
29723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29724if eval "test \"\${$as_ac_var+set}\" = set"; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29726else
29727 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029728/* confdefs.h. */
29729_ACEOF
29730cat confdefs.h >>conftest.$ac_ext
29731cat >>conftest.$ac_ext <<_ACEOF
29732/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29735#define $ac_func innocuous_$ac_func
29736
John Criswell7a73b802003-06-30 21:59:07 +000029737/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029738 which can conflict with char $ac_func (); below.
29739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029741
John Criswell0c38eaf2003-09-10 15:17:25 +000029742#ifdef __STDC__
29743# include <limits.h>
29744#else
29745# include <assert.h>
29746#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029747
29748#undef $ac_func
29749
John Criswell7a73b802003-06-30 21:59:07 +000029750/* Override any gcc2 internal prototype to avoid an error. */
29751#ifdef __cplusplus
29752extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029753{
John Criswell7a73b802003-06-30 21:59:07 +000029754#endif
29755/* We use char because int might match the return type of a gcc2
29756 builtin and then its argument prototype would still apply. */
29757char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029758/* The GNU C library defines this for functions which it implements
29759 to always fail with ENOSYS. Some functions are actually named
29760 something starting with __ and the normal name is an alias. */
29761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29762choke me
29763#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029764char (*f) () = $ac_func;
29765#endif
29766#ifdef __cplusplus
29767}
John Criswell7a73b802003-06-30 21:59:07 +000029768#endif
29769
John Criswell0c38eaf2003-09-10 15:17:25 +000029770int
29771main ()
29772{
29773return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029774 ;
29775 return 0;
29776}
29777_ACEOF
29778rm -f conftest.$ac_objext conftest$ac_exeext
29779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029780 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029782 grep -v '^ *+' conftest.er1 >conftest.err
29783 rm -f conftest.er1
29784 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029787 { ac_try='test -z "$ac_c_werror_flag"
29788 || test ! -s conftest.err'
29789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790 (eval $ac_try) 2>&5
29791 ac_status=$?
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; } &&
29794 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29797 ac_status=$?
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; }; then
29800 eval "$as_ac_var=yes"
29801else
29802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029803sed 's/^/| /' conftest.$ac_ext >&5
29804
John Criswell7a73b802003-06-30 21:59:07 +000029805eval "$as_ac_var=no"
29806fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029807rm -f conftest.err conftest.$ac_objext \
29808 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029809fi
29810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29812if test `eval echo '${'$as_ac_var'}'` = yes; then
29813 cat >>confdefs.h <<_ACEOF
29814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29815_ACEOF
29816
29817fi
29818done
29819
29820echo "$as_me:$LINENO: checking for working mmap" >&5
29821echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29822if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29823 echo $ECHO_N "(cached) $ECHO_C" >&6
29824else
29825 if test "$cross_compiling" = yes; then
29826 ac_cv_func_mmap_fixed_mapped=no
29827else
29828 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029829/* confdefs.h. */
29830_ACEOF
29831cat confdefs.h >>conftest.$ac_ext
29832cat >>conftest.$ac_ext <<_ACEOF
29833/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029834$ac_includes_default
29835/* malloc might have been renamed as rpl_malloc. */
29836#undef malloc
29837
29838/* Thanks to Mike Haertel and Jim Avera for this test.
29839 Here is a matrix of mmap possibilities:
29840 mmap private not fixed
29841 mmap private fixed at somewhere currently unmapped
29842 mmap private fixed at somewhere already mapped
29843 mmap shared not fixed
29844 mmap shared fixed at somewhere currently unmapped
29845 mmap shared fixed at somewhere already mapped
29846 For private mappings, we should verify that changes cannot be read()
29847 back from the file, nor mmap's back from the file at a different
29848 address. (There have been systems where private was not correctly
29849 implemented like the infamous i386 svr4.0, and systems where the
29850 VM page cache was not coherent with the file system buffer cache
29851 like early versions of FreeBSD and possibly contemporary NetBSD.)
29852 For shared mappings, we should conversely verify that changes get
29853 propagated back to all the places they're supposed to be.
29854
29855 Grep wants private fixed already mapped.
29856 The main things grep needs to know about mmap are:
29857 * does it exist and is it safe to write into the mmap'd area
29858 * how to use it (BSD variants) */
29859
29860#include <fcntl.h>
29861#include <sys/mman.h>
29862
29863#if !STDC_HEADERS && !HAVE_STDLIB_H
29864char *malloc ();
29865#endif
29866
29867/* This mess was copied from the GNU getpagesize.h. */
29868#if !HAVE_GETPAGESIZE
29869/* Assume that all systems that can run configure have sys/param.h. */
29870# if !HAVE_SYS_PARAM_H
29871# define HAVE_SYS_PARAM_H 1
29872# endif
29873
29874# ifdef _SC_PAGESIZE
29875# define getpagesize() sysconf(_SC_PAGESIZE)
29876# else /* no _SC_PAGESIZE */
29877# if HAVE_SYS_PARAM_H
29878# include <sys/param.h>
29879# ifdef EXEC_PAGESIZE
29880# define getpagesize() EXEC_PAGESIZE
29881# else /* no EXEC_PAGESIZE */
29882# ifdef NBPG
29883# define getpagesize() NBPG * CLSIZE
29884# ifndef CLSIZE
29885# define CLSIZE 1
29886# endif /* no CLSIZE */
29887# else /* no NBPG */
29888# ifdef NBPC
29889# define getpagesize() NBPC
29890# else /* no NBPC */
29891# ifdef PAGESIZE
29892# define getpagesize() PAGESIZE
29893# endif /* PAGESIZE */
29894# endif /* no NBPC */
29895# endif /* no NBPG */
29896# endif /* no EXEC_PAGESIZE */
29897# else /* no HAVE_SYS_PARAM_H */
29898# define getpagesize() 8192 /* punt totally */
29899# endif /* no HAVE_SYS_PARAM_H */
29900# endif /* no _SC_PAGESIZE */
29901
29902#endif /* no HAVE_GETPAGESIZE */
29903
29904int
29905main ()
29906{
29907 char *data, *data2, *data3;
29908 int i, pagesize;
29909 int fd;
29910
29911 pagesize = getpagesize ();
29912
29913 /* First, make a file with some known garbage in it. */
29914 data = (char *) malloc (pagesize);
29915 if (!data)
29916 exit (1);
29917 for (i = 0; i < pagesize; ++i)
29918 *(data + i) = rand ();
29919 umask (0);
29920 fd = creat ("conftest.mmap", 0600);
29921 if (fd < 0)
29922 exit (1);
29923 if (write (fd, data, pagesize) != pagesize)
29924 exit (1);
29925 close (fd);
29926
29927 /* Next, try to mmap the file at a fixed address which already has
29928 something else allocated at it. If we can, also make sure that
29929 we see the same garbage. */
29930 fd = open ("conftest.mmap", O_RDWR);
29931 if (fd < 0)
29932 exit (1);
29933 data2 = (char *) malloc (2 * pagesize);
29934 if (!data2)
29935 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029936 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029937 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029939 exit (1);
29940 for (i = 0; i < pagesize; ++i)
29941 if (*(data + i) != *(data2 + i))
29942 exit (1);
29943
29944 /* Finally, make sure that changes to the mapped area do not
29945 percolate back to the file as seen by read(). (This is a bug on
29946 some variants of i386 svr4.0.) */
29947 for (i = 0; i < pagesize; ++i)
29948 *(data2 + i) = *(data2 + i) + 1;
29949 data3 = (char *) malloc (pagesize);
29950 if (!data3)
29951 exit (1);
29952 if (read (fd, data3, pagesize) != pagesize)
29953 exit (1);
29954 for (i = 0; i < pagesize; ++i)
29955 if (*(data + i) != *(data3 + i))
29956 exit (1);
29957 close (fd);
29958 exit (0);
29959}
29960_ACEOF
29961rm -f conftest$ac_exeext
29962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29963 (eval $ac_link) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; }; then
29972 ac_cv_func_mmap_fixed_mapped=yes
29973else
29974 echo "$as_me: program exited with status $ac_status" >&5
29975echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029976sed 's/^/| /' conftest.$ac_ext >&5
29977
John Criswell7a73b802003-06-30 21:59:07 +000029978( exit $ac_status )
29979ac_cv_func_mmap_fixed_mapped=no
29980fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029982fi
29983fi
29984echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29985echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29986if test $ac_cv_func_mmap_fixed_mapped = yes; then
29987
29988cat >>confdefs.h <<\_ACEOF
29989#define HAVE_MMAP 1
29990_ACEOF
29991
29992fi
29993rm -f conftest.mmap
29994
29995echo "$as_me:$LINENO: checking for mmap of files" >&5
29996echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29997if test "${ac_cv_func_mmap_file+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
29999else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030000 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030001ac_cpp='$CPP $CPPFLAGS'
30002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004ac_compiler_gnu=$ac_cv_c_compiler_gnu
30005
30006 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030007 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030008else
30009 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030010
Reid Spencer777ce172004-09-20 04:09:56 +000030011 /* confdefs.h. */
30012_ACEOF
30013cat confdefs.h >>conftest.$ac_ext
30014cat >>conftest.$ac_ext <<_ACEOF
30015/* end confdefs.h. */
30016
John Criswell7a73b802003-06-30 21:59:07 +000030017#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030018#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030019#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030020
30021int
30022main ()
30023{
John Criswell7a73b802003-06-30 21:59:07 +000030024
30025 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030026 fd = creat ("foo",0777);
30027 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30028 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030029 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030030 ;
30031 return 0;
30032}
John Criswell7a73b802003-06-30 21:59:07 +000030033_ACEOF
30034rm -f conftest$ac_exeext
30035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30036 (eval $ac_link) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041 (eval $ac_try) 2>&5
30042 ac_status=$?
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; }; then
30045 ac_cv_func_mmap_file=yes
30046else
30047 echo "$as_me: program exited with status $ac_status" >&5
30048echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030049sed 's/^/| /' conftest.$ac_ext >&5
30050
John Criswell7a73b802003-06-30 21:59:07 +000030051( exit $ac_status )
30052ac_cv_func_mmap_file=no
30053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030055fi
30056 ac_ext=c
30057ac_cpp='$CPP $CPPFLAGS'
30058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30060ac_compiler_gnu=$ac_cv_c_compiler_gnu
30061
30062
30063fi
30064echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30065echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30066if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030067
30068cat >>confdefs.h <<\_ACEOF
30069#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030070_ACEOF
30071
30072 MMAP_FILE=yes
30073
30074fi
30075
Reid Spencer7931a782004-12-27 06:15:02 +000030076echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30077echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30078if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
Reid Spencer582a23c2004-12-29 07:07:57 +000030081 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030082 ac_cv_need_dev_zero_for_mmap=yes
30083 else
30084 ac_cv_need_dev_zero_for_mmap=no
30085 fi
30086
30087fi
30088echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30089echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30090if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30091
30092cat >>confdefs.h <<\_ACEOF
30093#define NEED_DEV_ZERO_FOR_MMAP 1
30094_ACEOF
30095
30096fi
John Criswell7a73b802003-06-30 21:59:07 +000030097echo "$as_me:$LINENO: checking for mprotect" >&5
30098echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30099if test "${ac_cv_func_mprotect+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30101else
30102 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030103/* confdefs.h. */
30104_ACEOF
30105cat confdefs.h >>conftest.$ac_ext
30106cat >>conftest.$ac_ext <<_ACEOF
30107/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030108/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30110#define mprotect innocuous_mprotect
30111
John Criswell7a73b802003-06-30 21:59:07 +000030112/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030113 which can conflict with char mprotect (); below.
30114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030116
John Criswell0c38eaf2003-09-10 15:17:25 +000030117#ifdef __STDC__
30118# include <limits.h>
30119#else
30120# include <assert.h>
30121#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030122
30123#undef mprotect
30124
John Criswell7a73b802003-06-30 21:59:07 +000030125/* Override any gcc2 internal prototype to avoid an error. */
30126#ifdef __cplusplus
30127extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030128{
John Criswell7a73b802003-06-30 21:59:07 +000030129#endif
30130/* We use char because int might match the return type of a gcc2
30131 builtin and then its argument prototype would still apply. */
30132char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030133/* The GNU C library defines this for functions which it implements
30134 to always fail with ENOSYS. Some functions are actually named
30135 something starting with __ and the normal name is an alias. */
30136#if defined (__stub_mprotect) || defined (__stub___mprotect)
30137choke me
30138#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030139char (*f) () = mprotect;
30140#endif
30141#ifdef __cplusplus
30142}
John Criswell7a73b802003-06-30 21:59:07 +000030143#endif
30144
John Criswell0c38eaf2003-09-10 15:17:25 +000030145int
30146main ()
30147{
30148return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030149 ;
30150 return 0;
30151}
30152_ACEOF
30153rm -f conftest.$ac_objext conftest$ac_exeext
30154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030155 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030156 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030157 grep -v '^ *+' conftest.er1 >conftest.err
30158 rm -f conftest.er1
30159 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030162 { ac_try='test -z "$ac_c_werror_flag"
30163 || test ! -s conftest.err'
30164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165 (eval $ac_try) 2>&5
30166 ac_status=$?
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; } &&
30169 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171 (eval $ac_try) 2>&5
30172 ac_status=$?
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); }; }; then
30175 ac_cv_func_mprotect=yes
30176else
30177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030178sed 's/^/| /' conftest.$ac_ext >&5
30179
John Criswell7a73b802003-06-30 21:59:07 +000030180ac_cv_func_mprotect=no
30181fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030182rm -f conftest.err conftest.$ac_objext \
30183 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030184fi
30185echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30186echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30187if test $ac_cv_func_mprotect = yes; then
30188 :
30189else
30190 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30191echo "$as_me: error: Function mprotect() required but not found" >&2;}
30192 { (exit 1); exit 1; }; }
30193fi
30194
30195
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030196if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030197then
Reid Spencer582a23c2004-12-29 07:07:57 +000030198 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30199echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030200fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030201if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030202then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030203 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30204echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030205fi
John Criswell7a73b802003-06-30 21:59:07 +000030206
30207
Brian Gaekef3b24102003-11-16 18:38:14 +000030208echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30209echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030210if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30211 echo $ECHO_N "(cached) $ECHO_C" >&6
30212else
30213 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030214if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030215 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030216 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030217 if test $? -eq 0 ; then
30218 llvm_cv_llvmgcc_sanity="yes"
30219 fi
30220 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030221fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030222fi
30223echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30224echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30225
30226if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030227 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030228 LLVMCC1=$llvmcc1path
30229
Reid Spencer502935f2004-12-22 05:56:56 +000030230 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030231 LLVMCC1PLUS=$llvmcc1pluspath
30232
Reid Spencer502935f2004-12-22 05:56:56 +000030233 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30234 LLVMGCCDIR=$llvmgccdir
30235
Brian Gaekef3b24102003-11-16 18:38:14 +000030236fi
30237
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030238SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030239
30240
Reid Spencere9de0912004-08-20 09:03:57 +000030241# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030242# information into substitutions that will end up in Makefile.config.in
30243# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030244eval LLVM_PREFIX="${prefix}";
30245eval LLVM_BINDIR="${prefix}/bin";
30246eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030247eval LLVM_DATADIR="${prefix}/share/llvm";
30248eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30249eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030250eval LLVM_INCLUDEDIR="${prefix}/include";
30251eval LLVM_INFODIR="${prefix}/info";
30252eval LLVM_MANDIR="${prefix}/man";
30253LLVM_CONFIGTIME=`date`
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030265# Place the various directores into the config.h file as #defines so that we
30266# can know about the installation paths within LLVM.
30267
Reid Spencere9de0912004-08-20 09:03:57 +000030268cat >>confdefs.h <<_ACEOF
30269#define LLVM_PREFIX "$LLVM_PREFIX"
30270_ACEOF
30271
30272
30273cat >>confdefs.h <<_ACEOF
30274#define LLVM_BINDIR "$LLVM_BINDIR"
30275_ACEOF
30276
30277
30278cat >>confdefs.h <<_ACEOF
30279#define LLVM_LIBDIR "$LLVM_LIBDIR"
30280_ACEOF
30281
30282
30283cat >>confdefs.h <<_ACEOF
30284#define LLVM_DATADIR "$LLVM_DATADIR"
30285_ACEOF
30286
30287
30288cat >>confdefs.h <<_ACEOF
30289#define LLVM_DATADIR "$LLVM_DOCSDIR"
30290_ACEOF
30291
30292
30293cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030294#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030295_ACEOF
30296
30297
30298cat >>confdefs.h <<_ACEOF
30299#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30300_ACEOF
30301
30302
30303cat >>confdefs.h <<_ACEOF
30304#define LLVM_INFODIR "$LLVM_INFODIR"
30305_ACEOF
30306
30307
30308cat >>confdefs.h <<_ACEOF
30309#define LLVM_MANDIR "$LLVM_MANDIR"
30310_ACEOF
30311
30312
30313cat >>confdefs.h <<_ACEOF
30314#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30315_ACEOF
30316
30317
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030318
30319 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30320
30321
30322 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30323
30324 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30325
30326 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30327
30328 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30329
30330 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30331
30332
30333 ac_config_files="$ac_config_files Makefile.config"
30334
30335
30336 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30337
30338
Reid Spencer1f319422004-11-29 04:56:35 +000030339 ac_config_files="$ac_config_files docs/doxygen.cfg"
30340
30341
Reid Spencerc0682832005-02-24 19:05:19 +000030342 ac_config_commands="$ac_config_commands setup"
30343
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030344 ac_config_commands="$ac_config_commands Makefile"
30345
30346
30347 ac_config_commands="$ac_config_commands Makefile.common"
30348
30349
30350 ac_config_commands="$ac_config_commands examples/Makefile"
30351
30352
30353 ac_config_commands="$ac_config_commands lib/Makefile"
30354
30355
30356 ac_config_commands="$ac_config_commands runtime/Makefile"
30357
30358
30359 ac_config_commands="$ac_config_commands test/Makefile"
30360
30361
30362 ac_config_commands="$ac_config_commands test/Makefile.tests"
30363
30364
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030365 ac_config_commands="$ac_config_commands tools/Makefile"
30366
30367
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030368 ac_config_commands="$ac_config_commands utils/Makefile"
30369
30370
30371 ac_config_commands="$ac_config_commands projects/Makefile"
30372
30373
30374
John Criswell7a73b802003-06-30 21:59:07 +000030375cat >confcache <<\_ACEOF
30376# This file is a shell script that caches the results of configure
30377# tests run on this system so they can be shared between configure
30378# scripts and configure runs, see configure's option --config-cache.
30379# It is not useful on other systems. If it contains results you don't
30380# want to keep, you may remove or edit it.
30381#
30382# config.status only pays attention to the cache file if you give it
30383# the --recheck option to rerun configure.
30384#
John Criswell0c38eaf2003-09-10 15:17:25 +000030385# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030386# loading this file, other *unset* `ac_cv_foo' will be assigned the
30387# following values.
30388
30389_ACEOF
30390
30391# The following way of writing the cache mishandles newlines in values,
30392# but we know of no workaround that is simple, portable, and efficient.
30393# So, don't put newlines in cache variables' values.
30394# Ultrix sh set writes to stderr and can't be redirected directly,
30395# and sets the high bit in the cache file unless we assign to the vars.
30396{
30397 (set) 2>&1 |
30398 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30399 *ac_space=\ *)
30400 # `set' does not quote correctly, so add quotes (double-quote
30401 # substitution turns \\\\ into \\, and sed turns \\ into \).
30402 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030403 "s/'/'\\\\''/g;
30404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030405 ;;
30406 *)
30407 # `set' quotes correctly as required by POSIX, so do not add quotes.
30408 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030409 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030410 ;;
30411 esac;
30412} |
30413 sed '
30414 t clear
30415 : clear
30416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30417 t end
30418 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30419 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030420if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030421 if test -w $cache_file; then
30422 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30423 cat confcache >$cache_file
30424 else
30425 echo "not updating unwritable cache $cache_file"
30426 fi
30427fi
30428rm -f confcache
30429
30430test "x$prefix" = xNONE && prefix=$ac_default_prefix
30431# Let make expand exec_prefix.
30432test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30433
30434# VPATH may cause trouble with some makes, so we remove $(srcdir),
30435# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30436# trailing colons and then remove the whole line if VPATH becomes empty
30437# (actually we leave an empty line to preserve line numbers).
30438if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030440s/:*\$(srcdir):*/:/;
30441s/:*\${srcdir}:*/:/;
30442s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030443s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030444s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030445s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030446}'
30447fi
30448
30449DEFS=-DHAVE_CONFIG_H
30450
John Criswell0c38eaf2003-09-10 15:17:25 +000030451ac_libobjs=
30452ac_ltlibobjs=
30453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30454 # 1. Remove the extension, and $U if already installed.
30455 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030456 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030457 # 2. Add them.
30458 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30459 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30460done
30461LIBOBJS=$ac_libobjs
30462
30463LTLIBOBJS=$ac_ltlibobjs
30464
30465
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030466if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30467 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30468Usually this means the macro was only invoked conditionally." >&5
30469echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30470Usually this means the macro was only invoked conditionally." >&2;}
30471 { (exit 1); exit 1; }; }
30472fi
30473if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30474 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30475Usually this means the macro was only invoked conditionally." >&5
30476echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30477Usually this means the macro was only invoked conditionally." >&2;}
30478 { (exit 1); exit 1; }; }
30479fi
John Criswell7a73b802003-06-30 21:59:07 +000030480
30481: ${CONFIG_STATUS=./config.status}
30482ac_clean_files_save=$ac_clean_files
30483ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30484{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30485echo "$as_me: creating $CONFIG_STATUS" >&6;}
30486cat >$CONFIG_STATUS <<_ACEOF
30487#! $SHELL
30488# Generated by $as_me.
30489# Run this file to recreate the current configuration.
30490# Compiler output produced by configure, useful for debugging
30491# configure, is in config.log if it exists.
30492
30493debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030494ac_cs_recheck=false
30495ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030496SHELL=\${CONFIG_SHELL-$SHELL}
30497_ACEOF
30498
30499cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030500## --------------------- ##
30501## M4sh Initialization. ##
30502## --------------------- ##
30503
30504# Be Bourne compatible
30505if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30506 emulate sh
30507 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030508 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30509 # is contrary to our usage. Disable this feature.
30510 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030511elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30512 set -o posix
30513fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030514DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030515
John Criswell7a73b802003-06-30 21:59:07 +000030516# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030517if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030518 as_unset=unset
30519else
30520 as_unset=false
30521fi
30522
John Criswell0c38eaf2003-09-10 15:17:25 +000030523
30524# Work around bugs in pre-3.0 UWIN ksh.
30525$as_unset ENV MAIL MAILPATH
30526PS1='$ '
30527PS2='> '
30528PS4='+ '
30529
30530# NLS nuisances.
30531for as_var in \
30532 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30533 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30534 LC_TELEPHONE LC_TIME
30535do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030536 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030537 eval $as_var=C; export $as_var
30538 else
30539 $as_unset $as_var
30540 fi
30541done
30542
30543# Required to use basename.
30544if expr a : '\(a\)' >/dev/null 2>&1; then
30545 as_expr=expr
30546else
30547 as_expr=false
30548fi
30549
30550if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30551 as_basename=basename
30552else
30553 as_basename=false
30554fi
John Criswell7a73b802003-06-30 21:59:07 +000030555
30556
30557# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030558as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030559$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30560 X"$0" : 'X\(//\)$' \| \
30561 X"$0" : 'X\(/\)$' \| \
30562 . : '\(.\)' 2>/dev/null ||
30563echo X/"$0" |
30564 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30565 /^X\/\(\/\/\)$/{ s//\1/; q; }
30566 /^X\/\(\/\).*/{ s//\1/; q; }
30567 s/.*/./; q'`
30568
John Criswell0c38eaf2003-09-10 15:17:25 +000030569
John Criswell7a73b802003-06-30 21:59:07 +000030570# PATH needs CR, and LINENO needs CR and PATH.
30571# Avoid depending upon Character Ranges.
30572as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30573as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30574as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30575as_cr_digits='0123456789'
30576as_cr_alnum=$as_cr_Letters$as_cr_digits
30577
30578# The user is always right.
30579if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030580 echo "#! /bin/sh" >conf$$.sh
30581 echo "exit 0" >>conf$$.sh
30582 chmod +x conf$$.sh
30583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030584 PATH_SEPARATOR=';'
30585 else
30586 PATH_SEPARATOR=:
30587 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030588 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030589fi
30590
30591
30592 as_lineno_1=$LINENO
30593 as_lineno_2=$LINENO
30594 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30595 test "x$as_lineno_1" != "x$as_lineno_2" &&
30596 test "x$as_lineno_3" = "x$as_lineno_2" || {
30597 # Find who we are. Look in the path if we contain no path at all
30598 # relative or not.
30599 case $0 in
30600 *[\\/]* ) as_myself=$0 ;;
30601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602for as_dir in $PATH
30603do
30604 IFS=$as_save_IFS
30605 test -z "$as_dir" && as_dir=.
30606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30607done
30608
30609 ;;
30610 esac
30611 # We did not find ourselves, most probably we were run as `sh COMMAND'
30612 # in which case we are not to be found in the path.
30613 if test "x$as_myself" = x; then
30614 as_myself=$0
30615 fi
30616 if test ! -f "$as_myself"; then
30617 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30618echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30619 { (exit 1); exit 1; }; }
30620 fi
30621 case $CONFIG_SHELL in
30622 '')
30623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30625do
30626 IFS=$as_save_IFS
30627 test -z "$as_dir" && as_dir=.
30628 for as_base in sh bash ksh sh5; do
30629 case $as_dir in
30630 /*)
30631 if ("$as_dir/$as_base" -c '
30632 as_lineno_1=$LINENO
30633 as_lineno_2=$LINENO
30634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30635 test "x$as_lineno_1" != "x$as_lineno_2" &&
30636 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030637 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30638 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030639 CONFIG_SHELL=$as_dir/$as_base
30640 export CONFIG_SHELL
30641 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30642 fi;;
30643 esac
30644 done
30645done
30646;;
30647 esac
30648
30649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30650 # uniformly replaced by the line number. The first 'sed' inserts a
30651 # line-number line before each line; the second 'sed' does the real
30652 # work. The second script uses 'N' to pair each line-number line
30653 # with the numbered line, and appends trailing '-' during
30654 # substitution so that $LINENO is not a special case at line end.
30655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30656 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30657 sed '=' <$as_myself |
30658 sed '
30659 N
30660 s,$,-,
30661 : loop
30662 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30663 t loop
30664 s,-$,,
30665 s,^['$as_cr_digits']*\n,,
30666 ' >$as_me.lineno &&
30667 chmod +x $as_me.lineno ||
30668 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30669echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30670 { (exit 1); exit 1; }; }
30671
30672 # Don't try to exec as it changes $[0], causing all sort of problems
30673 # (the dirname of $[0] is not the place where we might find the
30674 # original and so on. Autoconf is especially sensible to this).
30675 . ./$as_me.lineno
30676 # Exit status is that of the last command.
30677 exit
30678}
30679
30680
30681case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30682 *c*,-n*) ECHO_N= ECHO_C='
30683' ECHO_T=' ' ;;
30684 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30685 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30686esac
30687
30688if expr a : '\(a\)' >/dev/null 2>&1; then
30689 as_expr=expr
30690else
30691 as_expr=false
30692fi
30693
30694rm -f conf$$ conf$$.exe conf$$.file
30695echo >conf$$.file
30696if ln -s conf$$.file conf$$ 2>/dev/null; then
30697 # We could just check for DJGPP; but this test a) works b) is more generic
30698 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30699 if test -f conf$$.exe; then
30700 # Don't use ln at all; we don't have any links
30701 as_ln_s='cp -p'
30702 else
30703 as_ln_s='ln -s'
30704 fi
30705elif ln conf$$.file conf$$ 2>/dev/null; then
30706 as_ln_s=ln
30707else
30708 as_ln_s='cp -p'
30709fi
30710rm -f conf$$ conf$$.exe conf$$.file
30711
John Criswell0c38eaf2003-09-10 15:17:25 +000030712if mkdir -p . 2>/dev/null; then
30713 as_mkdir_p=:
30714else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030715 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030716 as_mkdir_p=false
30717fi
30718
John Criswell7a73b802003-06-30 21:59:07 +000030719as_executable_p="test -f"
30720
30721# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030722as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030723
30724# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030725as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030726
30727
30728# IFS
30729# We need space, tab and new line, in precisely that order.
30730as_nl='
30731'
30732IFS=" $as_nl"
30733
30734# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030735$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030736
30737exec 6>&1
30738
30739# Open the log real soon, to keep \$[0] and so on meaningful, and to
30740# report actual input values of CONFIG_FILES etc. instead of their
30741# values after options handling. Logging --version etc. is OK.
30742exec 5>>config.log
30743{
30744 echo
30745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30746## Running $as_me. ##
30747_ASBOX
30748} >&5
30749cat >&5 <<_CSEOF
30750
Reid Spencer78ba11d2005-02-16 16:21:00 +000030751This file was extended by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030752generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030753
30754 CONFIG_FILES = $CONFIG_FILES
30755 CONFIG_HEADERS = $CONFIG_HEADERS
30756 CONFIG_LINKS = $CONFIG_LINKS
30757 CONFIG_COMMANDS = $CONFIG_COMMANDS
30758 $ $0 $@
30759
30760_CSEOF
30761echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30762echo >&5
30763_ACEOF
30764
30765# Files that config.status was made for.
30766if test -n "$ac_config_files"; then
30767 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30768fi
30769
30770if test -n "$ac_config_headers"; then
30771 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30772fi
30773
30774if test -n "$ac_config_links"; then
30775 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30776fi
30777
30778if test -n "$ac_config_commands"; then
30779 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30780fi
30781
30782cat >>$CONFIG_STATUS <<\_ACEOF
30783
30784ac_cs_usage="\
30785\`$as_me' instantiates files from templates according to the
30786current configuration.
30787
30788Usage: $0 [OPTIONS] [FILE]...
30789
30790 -h, --help print this help, then exit
30791 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030792 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030793 -d, --debug don't remove temporary files
30794 --recheck update $as_me by reconfiguring in the same conditions
30795 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030796 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030797 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030798 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030799
30800Configuration files:
30801$config_files
30802
30803Configuration headers:
30804$config_headers
30805
John Criswellc764fbc2003-09-06 15:17:13 +000030806Configuration commands:
30807$config_commands
30808
John Criswell7a73b802003-06-30 21:59:07 +000030809Report bugs to <bug-autoconf@gnu.org>."
30810_ACEOF
30811
30812cat >>$CONFIG_STATUS <<_ACEOF
30813ac_cs_version="\\
Reid Spencer78ba11d2005-02-16 16:21:00 +000030814llvm config.status 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030815configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030816 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30817
Reid Spencer2706f8c2004-09-19 23:53:36 +000030818Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030819This config.status script is free software; the Free Software Foundation
30820gives unlimited permission to copy, distribute and modify it."
30821srcdir=$srcdir
30822INSTALL="$INSTALL"
30823_ACEOF
30824
30825cat >>$CONFIG_STATUS <<\_ACEOF
30826# If no file are specified by the user, then we need to provide default
30827# value. By we need to know if files were specified by the user.
30828ac_need_defaults=:
30829while test $# != 0
30830do
30831 case $1 in
30832 --*=*)
30833 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30834 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030835 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030836 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030837 -*)
30838 ac_option=$1
30839 ac_optarg=$2
30840 ac_shift=shift
30841 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030842 *) # This is not an option, so the user has probably given explicit
30843 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030844 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030845 ac_need_defaults=false;;
30846 esac
30847
John Criswell0c38eaf2003-09-10 15:17:25 +000030848 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030849 # Handling of the options.
30850_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030851cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30853 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030854 --version | --vers* | -V )
30855 echo "$ac_cs_version"; exit 0 ;;
30856 --he | --h)
30857 # Conflict between --help and --header
30858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30859Try \`$0 --help' for more information." >&5
30860echo "$as_me: error: ambiguous option: $1
30861Try \`$0 --help' for more information." >&2;}
30862 { (exit 1); exit 1; }; };;
30863 --help | --hel | -h )
30864 echo "$ac_cs_usage"; exit 0 ;;
30865 --debug | --d* | -d )
30866 debug=: ;;
30867 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030868 $ac_shift
30869 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030870 ac_need_defaults=false;;
30871 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030872 $ac_shift
30873 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030874 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30877 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030878
30879 # This is an error.
30880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30881Try \`$0 --help' for more information." >&5
30882echo "$as_me: error: unrecognized option: $1
30883Try \`$0 --help' for more information." >&2;}
30884 { (exit 1); exit 1; }; } ;;
30885
30886 *) ac_config_targets="$ac_config_targets $1" ;;
30887
30888 esac
30889 shift
30890done
30891
John Criswell0c38eaf2003-09-10 15:17:25 +000030892ac_configure_extra_args=
30893
30894if $ac_cs_silent; then
30895 exec 6>/dev/null
30896 ac_configure_extra_args="$ac_configure_extra_args --silent"
30897fi
30898
30899_ACEOF
30900cat >>$CONFIG_STATUS <<_ACEOF
30901if \$ac_cs_recheck; then
30902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30904fi
30905
John Criswell7a73b802003-06-30 21:59:07 +000030906_ACEOF
30907
John Criswellc764fbc2003-09-06 15:17:13 +000030908cat >>$CONFIG_STATUS <<_ACEOF
30909#
30910# INIT-COMMANDS section.
30911#
John Criswell7a73b802003-06-30 21:59:07 +000030912
Reid Spencerc0682832005-02-24 19:05:19 +000030913llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000030914
30915_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030916
30917
30918
30919cat >>$CONFIG_STATUS <<\_ACEOF
30920for ac_config_target in $ac_config_targets
30921do
30922 case "$ac_config_target" in
30923 # Handling of arguments.
30924 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030925 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30926 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30927 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30928 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030929 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000030930 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030931 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30932 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030933 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030934 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030935 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030936 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30937 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030938 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030939 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030940 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030941 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030942 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030943 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30944 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030945 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30946 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030947 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30948echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30949 { (exit 1); exit 1; }; };;
30950 esac
30951done
30952
30953# If the user did not use the arguments to specify the items to instantiate,
30954# then the envvar interface is used. Set only those that are not.
30955# We use the long form for the default assignment because of an extremely
30956# bizarre bug on SunOS 4.1.3.
30957if $ac_need_defaults; then
30958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30959 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030961fi
30962
John Criswell0c38eaf2003-09-10 15:17:25 +000030963# Have a temporary directory for convenience. Make it in the build tree
30964# simply because there is no reason to put it here, and in addition,
30965# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030966# Create a temporary directory, and hook for its removal unless debugging.
30967$debug ||
30968{
30969 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30970 trap '{ (exit 1); exit 1; }' 1 2 13 15
30971}
30972
30973# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030974
John Criswell7a73b802003-06-30 21:59:07 +000030975{
John Criswell0c38eaf2003-09-10 15:17:25 +000030976 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030977 test -n "$tmp" && test -d "$tmp"
30978} ||
30979{
John Criswell0c38eaf2003-09-10 15:17:25 +000030980 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030981 (umask 077 && mkdir $tmp)
30982} ||
30983{
John Criswell0c38eaf2003-09-10 15:17:25 +000030984 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030985 { (exit 1); exit 1; }
30986}
30987
30988_ACEOF
30989
30990cat >>$CONFIG_STATUS <<_ACEOF
30991
30992#
30993# CONFIG_FILES section.
30994#
30995
30996# No need to generate the scripts if there are no CONFIG_FILES.
30997# This happens for instance when ./config.status config.h
30998if test -n "\$CONFIG_FILES"; then
30999 # Protect against being on the right side of a sed subst in config.status.
31000 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31001 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31002s,@SHELL@,$SHELL,;t t
31003s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31004s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31005s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31006s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31007s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31008s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31009s,@exec_prefix@,$exec_prefix,;t t
31010s,@prefix@,$prefix,;t t
31011s,@program_transform_name@,$program_transform_name,;t t
31012s,@bindir@,$bindir,;t t
31013s,@sbindir@,$sbindir,;t t
31014s,@libexecdir@,$libexecdir,;t t
31015s,@datadir@,$datadir,;t t
31016s,@sysconfdir@,$sysconfdir,;t t
31017s,@sharedstatedir@,$sharedstatedir,;t t
31018s,@localstatedir@,$localstatedir,;t t
31019s,@libdir@,$libdir,;t t
31020s,@includedir@,$includedir,;t t
31021s,@oldincludedir@,$oldincludedir,;t t
31022s,@infodir@,$infodir,;t t
31023s,@mandir@,$mandir,;t t
31024s,@build_alias@,$build_alias,;t t
31025s,@host_alias@,$host_alias,;t t
31026s,@target_alias@,$target_alias,;t t
31027s,@DEFS@,$DEFS,;t t
31028s,@ECHO_C@,$ECHO_C,;t t
31029s,@ECHO_N@,$ECHO_N,;t t
31030s,@ECHO_T@,$ECHO_T,;t t
31031s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031032s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031033s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031034s,@build@,$build,;t t
31035s,@build_cpu@,$build_cpu,;t t
31036s,@build_vendor@,$build_vendor,;t t
31037s,@build_os@,$build_os,;t t
31038s,@host@,$host,;t t
31039s,@host_cpu@,$host_cpu,;t t
31040s,@host_vendor@,$host_vendor,;t t
31041s,@host_os@,$host_os,;t t
31042s,@target@,$target,;t t
31043s,@target_cpu@,$target_cpu,;t t
31044s,@target_vendor@,$target_vendor,;t t
31045s,@target_os@,$target_os,;t t
31046s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031047s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31048s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031049s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031050s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031051s,@CC@,$CC,;t t
31052s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031053s,@LDFLAGS@,$LDFLAGS,;t t
31054s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031055s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031056s,@EXEEXT@,$EXEEXT,;t t
31057s,@OBJEXT@,$OBJEXT,;t t
31058s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31059s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031060s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031061s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031062s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063s,@CXX@,$CXX,;t t
31064s,@CXXFLAGS@,$CXXFLAGS,;t t
31065s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031066s,@LEX@,$LEX,;t t
31067s,@LEXLIB@,$LEXLIB,;t t
31068s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031069s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031070s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031071s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031072s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031073s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031074s,@CMP@,$CMP,;t t
31075s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031076s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031077s,@FIND@,$FIND,;t t
31078s,@GREP@,$GREP,;t t
31079s,@MKDIR@,$MKDIR,;t t
31080s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031081s,@RANLIB@,$RANLIB,;t t
31082s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083s,@RM@,$RM,;t t
31084s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031085s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031086s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31087s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31088s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031089s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031090s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031091s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031092s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031093s,@GROFF@,$GROFF,;t t
31094s,@GZIP@,$GZIP,;t t
31095s,@POD2HTML@,$POD2HTML,;t t
31096s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031097s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031098s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031099s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031100s,@EGREP@,$EGREP,;t t
31101s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31102s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31103s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31104s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31105s,@LIBADD_DL@,$LIBADD_DL,;t t
31106s,@ECHO@,$ECHO,;t t
31107s,@AR@,$AR,;t t
31108s,@ac_ct_AR@,$ac_ct_AR,;t t
31109s,@STRIP@,$STRIP,;t t
31110s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31111s,@CXXCPP@,$CXXCPP,;t t
31112s,@F77@,$F77,;t t
31113s,@FFLAGS@,$FFLAGS,;t t
31114s,@ac_ct_F77@,$ac_ct_F77,;t t
31115s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031116s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031117s,@LLVMGCC@,$LLVMGCC,;t t
31118s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031119s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031120s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031121s,@LLVMCC1@,$LLVMCC1,;t t
31122s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031123s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031124s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031125s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31126s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31127s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31128s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31129s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31130s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31131s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31132s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31133s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31134s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031135s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031136s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031137CEOF
31138
31139_ACEOF
31140
31141 cat >>$CONFIG_STATUS <<\_ACEOF
31142 # Split the substitutions into bite-sized pieces for seds with
31143 # small command number limits, like on Digital OSF/1 and HP-UX.
31144 ac_max_sed_lines=48
31145 ac_sed_frag=1 # Number of current file.
31146 ac_beg=1 # First line for current file.
31147 ac_end=$ac_max_sed_lines # Line after last line for current file.
31148 ac_more_lines=:
31149 ac_sed_cmds=
31150 while $ac_more_lines; do
31151 if test $ac_beg -gt 1; then
31152 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31153 else
31154 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31155 fi
31156 if test ! -s $tmp/subs.frag; then
31157 ac_more_lines=false
31158 else
31159 # The purpose of the label and of the branching condition is to
31160 # speed up the sed processing (if there are no `@' at all, there
31161 # is no need to browse any of the substitutions).
31162 # These are the two extra sed commands mentioned above.
31163 (echo ':t
31164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31165 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031166 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031167 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031168 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031169 fi
31170 ac_sed_frag=`expr $ac_sed_frag + 1`
31171 ac_beg=$ac_end
31172 ac_end=`expr $ac_end + $ac_max_sed_lines`
31173 fi
31174 done
31175 if test -z "$ac_sed_cmds"; then
31176 ac_sed_cmds=cat
31177 fi
31178fi # test -n "$CONFIG_FILES"
31179
31180_ACEOF
31181cat >>$CONFIG_STATUS <<\_ACEOF
31182for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31184 case $ac_file in
31185 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031186 cat >$tmp/stdin
31187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031191 * ) ac_file_in=$ac_file.in ;;
31192 esac
31193
31194 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197 X"$ac_file" : 'X\(//\)[^/]' \| \
31198 X"$ac_file" : 'X\(//\)$' \| \
31199 X"$ac_file" : 'X\(/\)' \| \
31200 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031201echo X"$ac_file" |
31202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31204 /^X\(\/\/\)$/{ s//\1/; q; }
31205 /^X\(\/\).*/{ s//\1/; q; }
31206 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031207 { if $as_mkdir_p; then
31208 mkdir -p "$ac_dir"
31209 else
31210 as_dir="$ac_dir"
31211 as_dirs=
31212 while test ! -d "$as_dir"; do
31213 as_dirs="$as_dir $as_dirs"
31214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031216 X"$as_dir" : 'X\(//\)[^/]' \| \
31217 X"$as_dir" : 'X\(//\)$' \| \
31218 X"$as_dir" : 'X\(/\)' \| \
31219 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031220echo X"$as_dir" |
31221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31223 /^X\(\/\/\)$/{ s//\1/; q; }
31224 /^X\(\/\).*/{ s//\1/; q; }
31225 s/.*/./; q'`
31226 done
31227 test ! -n "$as_dirs" || mkdir $as_dirs
31228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31229echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31230 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031231
31232 ac_builddir=.
31233
31234if test "$ac_dir" != .; then
31235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31236 # A "../" for each directory in $ac_dir_suffix.
31237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31238else
31239 ac_dir_suffix= ac_top_builddir=
31240fi
31241
31242case $srcdir in
31243 .) # No --srcdir option. We are building in place.
31244 ac_srcdir=.
31245 if test -z "$ac_top_builddir"; then
31246 ac_top_srcdir=.
31247 else
31248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31249 fi ;;
31250 [\\/]* | ?:[\\/]* ) # Absolute path.
31251 ac_srcdir=$srcdir$ac_dir_suffix;
31252 ac_top_srcdir=$srcdir ;;
31253 *) # Relative path.
31254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31256esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031257
31258# Do not use `cd foo && pwd` to compute absolute paths, because
31259# the directories may not exist.
31260case `pwd` in
31261.) ac_abs_builddir="$ac_dir";;
31262*)
31263 case "$ac_dir" in
31264 .) ac_abs_builddir=`pwd`;;
31265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31266 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31267 esac;;
31268esac
31269case $ac_abs_builddir in
31270.) ac_abs_top_builddir=${ac_top_builddir}.;;
31271*)
31272 case ${ac_top_builddir}. in
31273 .) ac_abs_top_builddir=$ac_abs_builddir;;
31274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31276 esac;;
31277esac
31278case $ac_abs_builddir in
31279.) ac_abs_srcdir=$ac_srcdir;;
31280*)
31281 case $ac_srcdir in
31282 .) ac_abs_srcdir=$ac_abs_builddir;;
31283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31285 esac;;
31286esac
31287case $ac_abs_builddir in
31288.) ac_abs_top_srcdir=$ac_top_srcdir;;
31289*)
31290 case $ac_top_srcdir in
31291 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31294 esac;;
31295esac
John Criswell7a73b802003-06-30 21:59:07 +000031296
31297
31298 case $INSTALL in
31299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31300 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31301 esac
31302
31303 if test x"$ac_file" != x-; then
31304 { echo "$as_me:$LINENO: creating $ac_file" >&5
31305echo "$as_me: creating $ac_file" >&6;}
31306 rm -f "$ac_file"
31307 fi
31308 # Let's still pretend it is `configure' which instantiates (i.e., don't
31309 # use $as_me), people would be surprised to read:
31310 # /* config.h. Generated by config.status. */
31311 if test x"$ac_file" = x-; then
31312 configure_input=
31313 else
31314 configure_input="$ac_file. "
31315 fi
31316 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031317 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031318
31319 # First look for the input files in the build tree, otherwise in the
31320 # src tree.
31321 ac_file_inputs=`IFS=:
31322 for f in $ac_file_in; do
31323 case $f in
31324 -) echo $tmp/stdin ;;
31325 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031326 # Absolute (can't be DOS-style, as IFS=:)
31327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031328echo "$as_me: error: cannot find input file: $f" >&2;}
31329 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031330 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031331 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031332 if test -f "$f"; then
31333 # Build tree
31334 echo "$f"
31335 elif test -f "$srcdir/$f"; then
31336 # Source tree
31337 echo "$srcdir/$f"
31338 else
31339 # /dev/null tree
31340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031341echo "$as_me: error: cannot find input file: $f" >&2;}
31342 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031343 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031344 esac
31345 done` || { (exit 1); exit 1; }
31346_ACEOF
31347cat >>$CONFIG_STATUS <<_ACEOF
31348 sed "$ac_vpsub
31349$extrasub
31350_ACEOF
31351cat >>$CONFIG_STATUS <<\_ACEOF
31352:t
31353/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31354s,@configure_input@,$configure_input,;t t
31355s,@srcdir@,$ac_srcdir,;t t
31356s,@abs_srcdir@,$ac_abs_srcdir,;t t
31357s,@top_srcdir@,$ac_top_srcdir,;t t
31358s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31359s,@builddir@,$ac_builddir,;t t
31360s,@abs_builddir@,$ac_abs_builddir,;t t
31361s,@top_builddir@,$ac_top_builddir,;t t
31362s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31363s,@INSTALL@,$ac_INSTALL,;t t
31364" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31365 rm -f $tmp/stdin
31366 if test x"$ac_file" != x-; then
31367 mv $tmp/out $ac_file
31368 else
31369 cat $tmp/out
31370 rm -f $tmp/out
31371 fi
31372
31373done
31374_ACEOF
31375cat >>$CONFIG_STATUS <<\_ACEOF
31376
31377#
31378# CONFIG_HEADER section.
31379#
31380
31381# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31382# NAME is the cpp macro being defined and VALUE is the value it is being given.
31383#
31384# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031385ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31386ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031387ac_dC=' '
31388ac_dD=',;t'
31389# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031390ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031391ac_uB='$,\1#\2define\3'
31392ac_uC=' '
31393ac_uD=',;t'
31394
31395for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31397 case $ac_file in
31398 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031399 cat >$tmp/stdin
31400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031404 * ) ac_file_in=$ac_file.in ;;
31405 esac
31406
31407 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31408echo "$as_me: creating $ac_file" >&6;}
31409
31410 # First look for the input files in the build tree, otherwise in the
31411 # src tree.
31412 ac_file_inputs=`IFS=:
31413 for f in $ac_file_in; do
31414 case $f in
31415 -) echo $tmp/stdin ;;
31416 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031417 # Absolute (can't be DOS-style, as IFS=:)
31418 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031419echo "$as_me: error: cannot find input file: $f" >&2;}
31420 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031421 # Do quote $f, to prevent DOS paths from being IFS'd.
31422 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031423 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031424 if test -f "$f"; then
31425 # Build tree
31426 echo "$f"
31427 elif test -f "$srcdir/$f"; then
31428 # Source tree
31429 echo "$srcdir/$f"
31430 else
31431 # /dev/null tree
31432 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031433echo "$as_me: error: cannot find input file: $f" >&2;}
31434 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031435 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031436 esac
31437 done` || { (exit 1); exit 1; }
31438 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031439 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031440
31441_ACEOF
31442
31443# Transform confdefs.h into two sed scripts, `conftest.defines' and
31444# `conftest.undefs', that substitutes the proper values into
31445# config.h.in to produce config.h. The first handles `#define'
31446# templates, and the second `#undef' templates.
31447# And first: Protect against being on the right side of a sed subst in
31448# config.status. Protect against being in an unquoted here document
31449# in config.status.
31450rm -f conftest.defines conftest.undefs
31451# Using a here document instead of a string reduces the quoting nightmare.
31452# Putting comments in sed scripts is not portable.
31453#
31454# `end' is used to avoid that the second main sed command (meant for
31455# 0-ary CPP macros) applies to n-ary macro definitions.
31456# See the Autoconf documentation for `clear'.
31457cat >confdef2sed.sed <<\_ACEOF
31458s/[\\&,]/\\&/g
31459s,[\\$`],\\&,g
31460t clear
31461: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031462s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031463t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031464s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031465: end
31466_ACEOF
31467# If some macros were called several times there might be several times
31468# the same #defines, which is useless. Nevertheless, we may not want to
31469# sort them, since we want the *last* AC-DEFINE to be honored.
31470uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31471sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31472rm -f confdef2sed.sed
31473
31474# This sed command replaces #undef with comments. This is necessary, for
31475# example, in the case of _POSIX_SOURCE, which is predefined and required
31476# on some systems where configure will not decide to define it.
31477cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031478s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031479_ACEOF
31480
31481# Break up conftest.defines because some shells have a limit on the size
31482# of here documents, and old seds have small limits too (100 cmds).
31483echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031484echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031485echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31486echo ' :' >>$CONFIG_STATUS
31487rm -f conftest.tail
31488while grep . conftest.defines >/dev/null
31489do
31490 # Write a limited-size here document to $tmp/defines.sed.
31491 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31492 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031493 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031494 # Work around the forget-to-reset-the-flag bug.
31495 echo 't clr' >>$CONFIG_STATUS
31496 echo ': clr' >>$CONFIG_STATUS
31497 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31498 echo 'CEOF
31499 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31500 rm -f $tmp/in
31501 mv $tmp/out $tmp/in
31502' >>$CONFIG_STATUS
31503 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31504 rm -f conftest.defines
31505 mv conftest.tail conftest.defines
31506done
31507rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031508echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031509echo >>$CONFIG_STATUS
31510
31511# Break up conftest.undefs because some shells have a limit on the size
31512# of here documents, and old seds have small limits too (100 cmds).
31513echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31514rm -f conftest.tail
31515while grep . conftest.undefs >/dev/null
31516do
31517 # Write a limited-size here document to $tmp/undefs.sed.
31518 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31519 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031521 # Work around the forget-to-reset-the-flag bug.
31522 echo 't clr' >>$CONFIG_STATUS
31523 echo ': clr' >>$CONFIG_STATUS
31524 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31525 echo 'CEOF
31526 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31527 rm -f $tmp/in
31528 mv $tmp/out $tmp/in
31529' >>$CONFIG_STATUS
31530 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31531 rm -f conftest.undefs
31532 mv conftest.tail conftest.undefs
31533done
31534rm -f conftest.undefs
31535
31536cat >>$CONFIG_STATUS <<\_ACEOF
31537 # Let's still pretend it is `configure' which instantiates (i.e., don't
31538 # use $as_me), people would be surprised to read:
31539 # /* config.h. Generated by config.status. */
31540 if test x"$ac_file" = x-; then
31541 echo "/* Generated by configure. */" >$tmp/config.h
31542 else
31543 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31544 fi
31545 cat $tmp/in >>$tmp/config.h
31546 rm -f $tmp/in
31547 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031548 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31550echo "$as_me: $ac_file is unchanged" >&6;}
31551 else
31552 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31553$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031554 X"$ac_file" : 'X\(//\)[^/]' \| \
31555 X"$ac_file" : 'X\(//\)$' \| \
31556 X"$ac_file" : 'X\(/\)' \| \
31557 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031558echo X"$ac_file" |
31559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31561 /^X\(\/\/\)$/{ s//\1/; q; }
31562 /^X\(\/\).*/{ s//\1/; q; }
31563 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031564 { if $as_mkdir_p; then
31565 mkdir -p "$ac_dir"
31566 else
31567 as_dir="$ac_dir"
31568 as_dirs=
31569 while test ! -d "$as_dir"; do
31570 as_dirs="$as_dir $as_dirs"
31571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31572$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031573 X"$as_dir" : 'X\(//\)[^/]' \| \
31574 X"$as_dir" : 'X\(//\)$' \| \
31575 X"$as_dir" : 'X\(/\)' \| \
31576 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031577echo X"$as_dir" |
31578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31580 /^X\(\/\/\)$/{ s//\1/; q; }
31581 /^X\(\/\).*/{ s//\1/; q; }
31582 s/.*/./; q'`
31583 done
31584 test ! -n "$as_dirs" || mkdir $as_dirs
31585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31586echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31587 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031588
31589 rm -f $ac_file
31590 mv $tmp/config.h $ac_file
31591 fi
31592 else
31593 cat $tmp/config.h
31594 rm -f $tmp/config.h
31595 fi
31596done
31597_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031598cat >>$CONFIG_STATUS <<\_ACEOF
31599
31600#
31601# CONFIG_COMMANDS section.
31602#
31603for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31604 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31605 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31606 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31607$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031608 X"$ac_dest" : 'X\(//\)[^/]' \| \
31609 X"$ac_dest" : 'X\(//\)$' \| \
31610 X"$ac_dest" : 'X\(/\)' \| \
31611 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031612echo X"$ac_dest" |
31613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31615 /^X\(\/\/\)$/{ s//\1/; q; }
31616 /^X\(\/\).*/{ s//\1/; q; }
31617 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031618 { if $as_mkdir_p; then
31619 mkdir -p "$ac_dir"
31620 else
31621 as_dir="$ac_dir"
31622 as_dirs=
31623 while test ! -d "$as_dir"; do
31624 as_dirs="$as_dir $as_dirs"
31625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31626$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31627 X"$as_dir" : 'X\(//\)[^/]' \| \
31628 X"$as_dir" : 'X\(//\)$' \| \
31629 X"$as_dir" : 'X\(/\)' \| \
31630 . : '\(.\)' 2>/dev/null ||
31631echo X"$as_dir" |
31632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31634 /^X\(\/\/\)$/{ s//\1/; q; }
31635 /^X\(\/\).*/{ s//\1/; q; }
31636 s/.*/./; q'`
31637 done
31638 test ! -n "$as_dirs" || mkdir $as_dirs
31639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31640echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31641 { (exit 1); exit 1; }; }; }
31642
John Criswellc764fbc2003-09-06 15:17:13 +000031643 ac_builddir=.
31644
31645if test "$ac_dir" != .; then
31646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31647 # A "../" for each directory in $ac_dir_suffix.
31648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31649else
31650 ac_dir_suffix= ac_top_builddir=
31651fi
31652
31653case $srcdir in
31654 .) # No --srcdir option. We are building in place.
31655 ac_srcdir=.
31656 if test -z "$ac_top_builddir"; then
31657 ac_top_srcdir=.
31658 else
31659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31660 fi ;;
31661 [\\/]* | ?:[\\/]* ) # Absolute path.
31662 ac_srcdir=$srcdir$ac_dir_suffix;
31663 ac_top_srcdir=$srcdir ;;
31664 *) # Relative path.
31665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31667esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031668
31669# Do not use `cd foo && pwd` to compute absolute paths, because
31670# the directories may not exist.
31671case `pwd` in
31672.) ac_abs_builddir="$ac_dir";;
31673*)
31674 case "$ac_dir" in
31675 .) ac_abs_builddir=`pwd`;;
31676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31678 esac;;
31679esac
31680case $ac_abs_builddir in
31681.) ac_abs_top_builddir=${ac_top_builddir}.;;
31682*)
31683 case ${ac_top_builddir}. in
31684 .) ac_abs_top_builddir=$ac_abs_builddir;;
31685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31687 esac;;
31688esac
31689case $ac_abs_builddir in
31690.) ac_abs_srcdir=$ac_srcdir;;
31691*)
31692 case $ac_srcdir in
31693 .) ac_abs_srcdir=$ac_abs_builddir;;
31694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31696 esac;;
31697esac
31698case $ac_abs_builddir in
31699.) ac_abs_top_srcdir=$ac_top_srcdir;;
31700*)
31701 case $ac_top_srcdir in
31702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31705 esac;;
31706esac
John Criswellc764fbc2003-09-06 15:17:13 +000031707
31708
31709 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31710echo "$as_me: executing $ac_dest commands" >&6;}
31711 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031712 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31713 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31714 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31715 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31716 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31717 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31718 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31719 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31720 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31721 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31722 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31723 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31724 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31725 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31726 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31727 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31728 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31729 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31730 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31731 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031732 esac
31733done
31734_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031735
31736cat >>$CONFIG_STATUS <<\_ACEOF
31737
31738{ (exit 0); exit 0; }
31739_ACEOF
31740chmod +x $CONFIG_STATUS
31741ac_clean_files=$ac_clean_files_save
31742
31743
31744# configure is writing to config.log, and then calls config.status.
31745# config.status does its own redirection, appending to config.log.
31746# Unfortunately, on DOS this fails, as config.log is still kept open
31747# by configure, so config.status won't be able to write to it; its
31748# output is simply discarded. So we exec the FD to /dev/null,
31749# effectively closing config.log, so it can be properly (re)opened and
31750# appended to by config.status. When coming back to configure, we
31751# need to make the FD available again.
31752if test "$no_create" != yes; then
31753 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031754 ac_config_status_args=
31755 test "$silent" = yes &&
31756 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031757 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031759 exec 5>>config.log
31760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31761 # would make configure fail if this is the last instruction.
31762 $ac_cs_success || { (exit 1); exit 1; }
31763fi
31764
John Criswell12399a12003-09-30 15:55:44 +000031765#
31766# CONFIG_SUBDIRS section.
31767#
31768if test "$no_recursion" != yes; then
31769
31770 # Remove --cache-file and --srcdir arguments so they do not pile up.
31771 ac_sub_configure_args=
31772 ac_prev=
31773 for ac_arg in $ac_configure_args; do
31774 if test -n "$ac_prev"; then
31775 ac_prev=
31776 continue
31777 fi
31778 case $ac_arg in
31779 -cache-file | --cache-file | --cache-fil | --cache-fi \
31780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31781 ac_prev=cache_file ;;
31782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31784 | --c=*)
31785 ;;
31786 --config-cache | -C)
31787 ;;
31788 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31789 ac_prev=srcdir ;;
31790 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31791 ;;
31792 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31793 ac_prev=prefix ;;
31794 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31795 ;;
31796 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31797 esac
31798 done
31799
31800 # Always prepend --prefix to ensure using the same prefix
31801 # in subdir configurations.
31802 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31803
31804 ac_popdir=`pwd`
31805 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31806
31807 # Do not complain, so a configure script can configure whichever
31808 # parts of a large source tree are present.
31809 test -d $srcdir/$ac_dir || continue
31810
31811 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31812echo "$as_me: configuring in $ac_dir" >&6;}
31813 { if $as_mkdir_p; then
31814 mkdir -p "$ac_dir"
31815 else
31816 as_dir="$ac_dir"
31817 as_dirs=
31818 while test ! -d "$as_dir"; do
31819 as_dirs="$as_dir $as_dirs"
31820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031822 X"$as_dir" : 'X\(//\)[^/]' \| \
31823 X"$as_dir" : 'X\(//\)$' \| \
31824 X"$as_dir" : 'X\(/\)' \| \
31825 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031826echo X"$as_dir" |
31827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31829 /^X\(\/\/\)$/{ s//\1/; q; }
31830 /^X\(\/\).*/{ s//\1/; q; }
31831 s/.*/./; q'`
31832 done
31833 test ! -n "$as_dirs" || mkdir $as_dirs
31834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31835echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31836 { (exit 1); exit 1; }; }; }
31837
31838 ac_builddir=.
31839
31840if test "$ac_dir" != .; then
31841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31842 # A "../" for each directory in $ac_dir_suffix.
31843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31844else
31845 ac_dir_suffix= ac_top_builddir=
31846fi
31847
31848case $srcdir in
31849 .) # No --srcdir option. We are building in place.
31850 ac_srcdir=.
31851 if test -z "$ac_top_builddir"; then
31852 ac_top_srcdir=.
31853 else
31854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31855 fi ;;
31856 [\\/]* | ?:[\\/]* ) # Absolute path.
31857 ac_srcdir=$srcdir$ac_dir_suffix;
31858 ac_top_srcdir=$srcdir ;;
31859 *) # Relative path.
31860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31862esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031863
31864# Do not use `cd foo && pwd` to compute absolute paths, because
31865# the directories may not exist.
31866case `pwd` in
31867.) ac_abs_builddir="$ac_dir";;
31868*)
31869 case "$ac_dir" in
31870 .) ac_abs_builddir=`pwd`;;
31871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31873 esac;;
31874esac
31875case $ac_abs_builddir in
31876.) ac_abs_top_builddir=${ac_top_builddir}.;;
31877*)
31878 case ${ac_top_builddir}. in
31879 .) ac_abs_top_builddir=$ac_abs_builddir;;
31880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31882 esac;;
31883esac
31884case $ac_abs_builddir in
31885.) ac_abs_srcdir=$ac_srcdir;;
31886*)
31887 case $ac_srcdir in
31888 .) ac_abs_srcdir=$ac_abs_builddir;;
31889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31891 esac;;
31892esac
31893case $ac_abs_builddir in
31894.) ac_abs_top_srcdir=$ac_top_srcdir;;
31895*)
31896 case $ac_top_srcdir in
31897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31900 esac;;
31901esac
John Criswell12399a12003-09-30 15:55:44 +000031902
31903
31904 cd $ac_dir
31905
31906 # Check for guested configure; otherwise get Cygnus style configure.
31907 if test -f $ac_srcdir/configure.gnu; then
31908 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31909 elif test -f $ac_srcdir/configure; then
31910 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31911 elif test -f $ac_srcdir/configure.in; then
31912 ac_sub_configure=$ac_configure
31913 else
31914 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31915echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31916 ac_sub_configure=
31917 fi
31918
31919 # The recursion is here.
31920 if test -n "$ac_sub_configure"; then
31921 # Make the cache file name correct relative to the subdirectory.
31922 case $cache_file in
31923 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31924 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031925 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031926 esac
31927
31928 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31929echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31930 # The eval makes quoting arguments work.
31931 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031932 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31933 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031934echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31935 { (exit 1); exit 1; }; }
31936 fi
31937
31938 cd $ac_popdir
31939 done
31940fi
31941
Brian Gaekef3b24102003-11-16 18:38:14 +000031942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031943if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031944 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31945echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031946 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31947echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31948 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31949echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31950 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31951echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31952 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31953echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031954fi