blob: c386b29b6425de525d5e9f9d1a2b5196e02547cd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
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 Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
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"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/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"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/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 Spencer8a2d4712004-12-16 17:48:14 +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 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX 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 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS 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 Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 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 Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
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 Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
Reid Spencer0fcb9412004-11-30 08:11:54 +00001053 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1056 both]
1057 --with-tags[=TAGS]
1058 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001059
1060Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001061 CC C compiler command
1062 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001067 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <llvmbugs@cs.uiuc.edu>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149esac
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001160 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001173llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001174generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001175
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001179
1180$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
Reid Spencerabec8f92004-10-27 23:03:44 +00001189It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001190generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001242# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001243# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001245ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001246ac_configure_args0=
1247ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001248ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001249ac_must_keep_next=false
1250for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001251do
John Criswell0c38eaf2003-09-10 15:17:25 +00001252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001267 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001268 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
John Criswell7a73b802003-06-30 21:59:07 +00001287done
John Criswell0c38eaf2003-09-10 15:17:25 +00001288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$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 +00001290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001300
John Criswell7a73b802003-06-30 21:59:07 +00001301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001315 ;;
1316 *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001319 ;;
1320 esac;
1321}
1322 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001347 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001348 done | sort
1349 echo
1350 fi
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001359 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001366 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
John Criswell0c38eaf2003-09-10 15:17:25 +00001525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
John Criswell7a73b802003-06-30 21:59:07 +00001534ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001535for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
John Criswell392aaa32003-07-22 19:18:09 +00001559
Reid Spencer2706f8c2004-09-19 23:53:36 +00001560if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001563echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 fi
John Criswell93e1c722003-09-15 17:04:06 +00001566fi
1567
John Criswell33a911a2003-11-25 20:36:46 +00001568for i in `ls ${srcdir}/projects`
1569do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001570 if test -d ${srcdir}/projects/${i} ; then
1571 case ${i} in
1572 "CVS") ;;
1573 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001574
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575subdirs="$subdirs projects/sample"
1576 ;;
1577 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001578
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579subdirs="$subdirs projects/Stacker"
1580 ;;
1581 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/llvm-test"
1584 ;;
1585 "llvm-reopt")
1586
1587subdirs="$subdirs projects/llvm-reopt"
1588;;
1589 "llvm-gcc")
1590
1591subdirs="$subdirs projects/llvm-gcc"
1592 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001593 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594
Reid Spencer641f7ef2004-09-20 22:14:56 +00001595subdirs="$subdirs projects/Java"
1596 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001597 "llvm-tv")
1598
1599subdirs="$subdirs projects/llvm-tv"
1600 ;;
1601 "llvm-fefw")
1602
1603subdirs="$subdirs projects/llvm-fefw"
1604 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001605 "poolalloc")
1606
1607subdirs="$subdirs projects/poolalloc"
1608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001612 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001613 esac
John Criswell33a911a2003-11-25 20:36:46 +00001614 fi
1615done
John Criswell559a6c12003-09-30 16:31:48 +00001616
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618# Make sure we can run config.sub.
1619$ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624echo "$as_me:$LINENO: checking build system type" >&5
1625echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_build_alias=$build_alias
1630test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643echo "${ECHO_T}$ac_cv_build" >&6
1644build=$ac_cv_build
1645build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking host system type" >&5
1651echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_host_alias=$host_alias
1656test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663fi
1664echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665echo "${ECHO_T}$ac_cv_host" >&6
1666host=$ac_cv_host
1667host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672echo "$as_me:$LINENO: checking target system type" >&5
1673echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 ac_cv_target_alias=$target_alias
1678test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687echo "${ECHO_T}$ac_cv_target" >&6
1688target=$ac_cv_target
1689target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694# The aliases save the names the user supplied, while $host etc.
1695# will get canonicalized.
1696test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1698 NONENONEs,x,x, &&
1699 program_prefix=${target_alias}-
1700
Reid Spencer73fb5482004-08-31 14:20:36 +00001701echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001703if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 case $build in
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001717esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001718fi
1719echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001722if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001725 { (exit 1); exit 1; }; }
1726fi
1727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001728OS=$llvm_cv_platform_type
1729
1730
Reid Spenceredd01b92004-11-25 06:03:14 +00001731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001732
1733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001734case $target in
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1736
1737 ;;
1738esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001739
1740echo "$as_me:$LINENO: checking target architecture" >&5
1741echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001742if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 case $target in
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001750esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001751fi
1752echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001755if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758fi
John Criswell76595452003-07-01 22:07:39 +00001759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001760ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001763ac_ext=c
1764ac_cpp='$CPP $CPPFLAGS'
1765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001768if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793fi
1794fi
1795CC=$ac_cv_prog_CC
1796if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798echo "${ECHO_T}$CC" >&6
1799else
1800 echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808set dummy gcc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836echo "${ECHO_T}$ac_ct_CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 CC=$ac_ct_CC
1843else
1844 CC="$ac_cv_prog_CC"
1845fi
1846
1847if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850set dummy ${ac_tool_prefix}cc; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875CC=$ac_cv_prog_CC
1876if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878echo "${ECHO_T}$CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884fi
1885if test -z "$ac_cv_prog_CC"; then
1886 ac_ct_CC=$CC
1887 # Extract the first word of "cc", so it can be a program name with args.
1888set dummy cc; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922 CC=$ac_ct_CC
1923else
1924 CC="$ac_cv_prog_CC"
1925fi
1926
1927fi
1928if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930set dummy cc; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938else
1939 ac_prog_rejected=no
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1949 continue
1950 fi
1951 ac_cv_prog_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1961 shift
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1966 shift
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968 fi
1969fi
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981fi
1982if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001985 do
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001990if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007done
2008done
2009
2010fi
2011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
2026 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
2050done
2051
2052fi
2053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002058else
2059 echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 CC=$ac_ct_CC
2067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069fi
2070
2071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
2079echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002081ac_compiler=`set X $ac_compile; echo $2`
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097
2098cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002104
John Criswell7a73b802003-06-30 21:59:07 +00002105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002114ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002115# Try to create an executable without -o first, disregard a.out.
2116# It will help us diagnose broken compilers, and finding out an intuition
2117# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128# resort.
2129
2130# Be careful to initialize this variable, since it used to be cached.
2131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002133# b.out is created by i960 compilers.
2134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002140 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002141 # This is the source file.
2142 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002143 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002155 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002156 esac
2157done
2158else
2159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002160sed 's/^/| /' conftest.$ac_ext >&5
2161
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002163See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002165See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 77); exit 77; }; }
2167fi
2168
2169ac_exeext=$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_file" >&5
2171echo "${ECHO_T}$ac_file" >&6
2172
2173# Check the compiler produces executables we can run. If not, either
2174# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178# If not cross compiling, check that we can run a simple program.
2179if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002194echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002195If you meant to cross compile, use \`--host'.
2196See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
2198 fi
2199 fi
2200fi
2201echo "$as_me:$LINENO: result: yes" >&5
2202echo "${ECHO_T}yes" >&6
2203
John Criswell0c38eaf2003-09-10 15:17:25 +00002204rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002205ac_clean_files=$ac_clean_files_save
2206# Check the compiler produces executables we can run. If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211echo "${ECHO_T}$cross_compiling" >&6
2212
2213echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222# work properly (i.e., refer to `conftest.exe'), while it won't with
2223# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002224for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002226 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002229 export ac_cv_exeext
2230 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002231 * ) break;;
2232 esac
2233done
2234else
John Criswell0c38eaf2003-09-10 15:17:25 +00002235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002239 { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246rm -f conftest.$ac_ext
2247EXEEXT=$ac_cv_exeext
2248ac_exeext=$EXEEXT
2249echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002260
John Criswell7a73b802003-06-30 21:59:07 +00002261int
2262main ()
2263{
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.o conftest.obj
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 break;;
2280 esac
2281done
2282else
2283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi
2295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296echo "${ECHO_T}$ac_cv_objext" >&6
2297OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002310
John Criswell7a73b802003-06-30 21:59:07 +00002311int
2312main ()
2313{
2314#ifndef __GNUC__
2315 choke me
2316#endif
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002324 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_compiler_gnu=yes
2345else
2346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002347sed 's/^/| /' conftest.$ac_ext >&5
2348
John Criswell7a73b802003-06-30 21:59:07 +00002349ac_compiler_gnu=no
2350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002353
2354fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357GCC=`test $ac_compiler_gnu = yes && echo yes`
2358ac_test_CFLAGS=${CFLAGS+set}
2359ac_save_CFLAGS=$CFLAGS
2360CFLAGS="-g"
2361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391 || test ! -s conftest.err'
2392 { (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); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002404else
2405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2418 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002419 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002421 fi
2422else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 if test "$GCC" = yes; then
2424 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002425 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002427 fi
2428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_cv_prog_cc_stdc=no
2435ac_save_CC=$CC
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#include <stdarg.h>
2443#include <stdio.h>
2444#include <sys/types.h>
2445#include <sys/stat.h>
2446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447struct buf { int x; };
2448FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449static char *e (p, i)
2450 char **p;
2451 int i;
2452{
2453 return p[i];
2454}
2455static char *f (char * (*g) (char **, int), char **p, ...)
2456{
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2463}
2464
2465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474int test (int i, double x);
2475struct s1 {int (*f) (int a);};
2476struct s2 {int (*f) (double a);};
2477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478int argc;
2479char **argv;
2480int
2481main ()
2482{
2483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488# Don't try gcc -ansi; that turns off useful extensions and
2489# breaks some systems' header files.
2490# AIX -qlanglvl=ansi
2491# Ultrix and OSF/1 -std1
2492# HP-UX 10.20 and later -Ae
2493# HP-UX older versions -Aa -D_HPUX_SOURCE
2494# SVR4 -Xc -D__EXTENSIONS__
2495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496do
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2521break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext
2528done
2529rm -f conftest.$ac_ext conftest.$ac_objext
2530CC=$ac_save_CC
2531
2532fi
2533
2534case "x$ac_cv_prog_cc_stdc" in
2535 x|xno)
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6 ;;
2538 *)
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542esac
2543
2544# Some people use a C++ compiler to compile C. Since we use `exit',
2545# in C++ we need to declare it. In case someone uses the same compiler
2546# for both compiling C and C++ we need to have the C++ compiler decide
2547# the declaration of exit, since it's the most demanding environment.
2548cat >conftest.$ac_ext <<_ACEOF
2549#ifndef __cplusplus
2550 choke me
2551#endif
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002576 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2581 'void exit (int);'
2582do
2583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002589$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002590#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002591int
2592main ()
2593{
2594exit (42);
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 :
2622else
2623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002624sed 's/^/| /' conftest.$ac_ext >&5
2625
John Criswell7a73b802003-06-30 21:59:07 +00002626continue
2627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639exit (42);
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 break
2667else
2668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002669sed 's/^/| /' conftest.$ac_ext >&5
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002673done
2674rm -f conftest*
2675if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2679fi
2680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706#include <sys/types.h>
2707#include <sys/param.h>
2708
2709int
2710main ()
2711{
2712#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713 bogus endian macros
2714#endif
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <sys/types.h>
2750#include <sys/param.h>
2751
2752int
2753main ()
2754{
2755#if BYTE_ORDER != BIG_ENDIAN
2756 not big endian
2757#endif
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790ac_cv_c_bigendian=no
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797# It does not; compile a test program.
2798if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813int
2814main ()
2815{
2816 _ascii (); _ebcdic ();
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext
2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2845fi
2846if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2849 else
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2852 fi
2853fi
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860else
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867int
2868main ()
2869{
2870 /* Are we little or big endian? From Harbison&Steele. */
2871 union
2872 {
2873 long l;
2874 char c[sizeof (long)];
2875 } u;
2876 u.l = 1;
2877 exit (u.c[sizeof (long) - 1] == 1);
2878}
2879_ACEOF
2880rm -f conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2892else
2893 echo "$as_me: program exited with status $ac_status" >&5
2894echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897( exit $ac_status )
2898ac_cv_c_bigendian=yes
2899fi
2900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901fi
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907case $ac_cv_c_bigendian in
2908 yes)
2909 ENDIAN=big
2910 ;;
2911 no)
2912 ENDIAN=little
2913 ;;
2914 *)
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917echo "$as_me: error: unknown endianness
2918presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2920esac
2921
2922
2923
2924# Check whether --enable-optimized or --disable-optimized was given.
2925if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2927
2928else
2929 enableval=no
2930fi;
2931if test ${enableval} = "no" ; then
2932 ENABLE_OPTIMIZED=
2933
2934else
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937fi
2938
2939# Check whether --enable-jit or --disable-jit was given.
2940if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2942
2943else
2944 enableval=default
2945fi;
2946if test ${enableval} = "no"
2947then
2948 JIT=
2949
2950else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002951 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002952 x86) JIT=TARGET_HAS_JIT=1
2953 ;;
2954 Sparc) JIT=TARGET_HAS_JIT=1
2955 ;;
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2957 ;;
2958 *) JIT=
2959 ;;
2960 esac
2961fi
2962
Reid Spencer1f319422004-11-29 04:56:35 +00002963# Check whether --enable-doxygen or --disable-doxygen was given.
2964if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002966
Reid Spencer1f319422004-11-29 04:56:35 +00002967else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002968 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002969fi;
2970case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2972 ;;
2973 no) ENABLE_DOXYGEN=0
2974 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002975 default) ENABLE_DOXYGEN=0
2976 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2980esac
2981
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982
2983# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2986 LLVMGCCDIR=$withval
2987
2988fi;
2989
2990if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2992 Linux)
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996 fi
2997 ;;
2998 SunOS)
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002 fi
3003 ;;
3004 esac
3005fi
3006
3007
Reid Spencerca767402004-12-13 02:16:51 +00003008
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009ac_ext=c
3010ac_cpp='$CPP $CPPFLAGS'
3011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3015echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3016# On Suns, sometimes $CPP names a directory.
3017if test -n "$CPP" && test -d "$CPP"; then
3018 CPP=
3019fi
3020if test -z "$CPP"; then
3021 if test "${ac_cv_prog_CPP+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
3024 # Double quotes because CPP needs to be expanded
3025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 do
3027 ac_preproc_ok=false
3028for ac_c_preproc_warn_flag in '' yes
3029do
3030 # Use a header file that comes with gcc, so configuring glibc
3031 # with a fresh cross-compiler works.
3032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3033 # <limits.h> exists even on freestanding compilers.
3034 # On the NeXT, cc -E runs the code through the compiler's parser,
3035 # not just through cpp. "Syntax error" is here to catch this case.
3036 cat >conftest.$ac_ext <<_ACEOF
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
3042#ifdef __STDC__
3043# include <limits.h>
3044#else
3045# include <assert.h>
3046#endif
3047 Syntax error
3048_ACEOF
3049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } >/dev/null; then
3057 if test -s conftest.err; then
3058 ac_cpp_err=$ac_c_preproc_warn_flag
3059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3060 else
3061 ac_cpp_err=
3062 fi
3063else
3064 ac_cpp_err=yes
3065fi
3066if test -z "$ac_cpp_err"; then
3067 :
3068else
3069 echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 # Broken: fails on valid input.
3073continue
3074fi
3075rm -f conftest.err conftest.$ac_ext
3076
3077 # OK, works on sane cases. Now check whether non-existent headers
3078 # can be detected and how.
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085#include <ac_nonexistent.h>
3086_ACEOF
3087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag
3097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098 else
3099 ac_cpp_err=
3100 fi
3101else
3102 ac_cpp_err=yes
3103fi
3104if test -z "$ac_cpp_err"; then
3105 # Broken: success on invalid input.
3106continue
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 # Passes both tests.
3112ac_preproc_ok=:
3113break
3114fi
3115rm -f conftest.err conftest.$ac_ext
3116
3117done
3118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119rm -f conftest.err conftest.$ac_ext
3120if $ac_preproc_ok; then
3121 break
3122fi
3123
3124 done
3125 ac_cv_prog_CPP=$CPP
3126
3127fi
3128 CPP=$ac_cv_prog_CPP
3129else
3130 ac_cv_prog_CPP=$CPP
3131fi
3132echo "$as_me:$LINENO: result: $CPP" >&5
3133echo "${ECHO_T}$CPP" >&6
3134ac_preproc_ok=false
3135for ac_c_preproc_warn_flag in '' yes
3136do
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h. */
3149#ifdef __STDC__
3150# include <limits.h>
3151#else
3152# include <assert.h>
3153#endif
3154 Syntax error
3155_ACEOF
3156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } >/dev/null; then
3164 if test -s conftest.err; then
3165 ac_cpp_err=$ac_c_preproc_warn_flag
3166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3167 else
3168 ac_cpp_err=
3169 fi
3170else
3171 ac_cpp_err=yes
3172fi
3173if test -z "$ac_cpp_err"; then
3174 :
3175else
3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 # Broken: fails on valid input.
3180continue
3181fi
3182rm -f conftest.err conftest.$ac_ext
3183
3184 # OK, works on sane cases. Now check whether non-existent headers
3185 # can be detected and how.
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192#include <ac_nonexistent.h>
3193_ACEOF
3194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205 else
3206 ac_cpp_err=
3207 fi
3208else
3209 ac_cpp_err=yes
3210fi
3211if test -z "$ac_cpp_err"; then
3212 # Broken: success on invalid input.
3213continue
3214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
3221fi
3222rm -f conftest.err conftest.$ac_ext
3223
3224done
3225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226rm -f conftest.err conftest.$ac_ext
3227if $ac_preproc_ok; then
3228 :
3229else
3230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3231See \`config.log' for more details." >&5
3232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3233See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3235fi
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248if test -n "$ac_tool_prefix"; then
3249 for ac_prog in gcc
3250 do
3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253echo "$as_me:$LINENO: checking for $ac_word" >&5
3254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255if test "${ac_cv_prog_CC+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
3275fi
3276fi
3277CC=$ac_cv_prog_CC
3278if test -n "$CC"; then
3279 echo "$as_me:$LINENO: result: $CC" >&5
3280echo "${ECHO_T}$CC" >&6
3281else
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
3284fi
3285
3286 test -n "$CC" && break
3287 done
3288fi
3289if test -z "$CC"; then
3290 ac_ct_CC=$CC
3291 for ac_prog in gcc
3292do
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294set dummy $ac_prog; ac_word=$2
3295echo "$as_me:$LINENO: checking for $ac_word" >&5
3296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_ac_ct_CC="$ac_prog"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314done
3315done
3316
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322echo "${ECHO_T}$ac_ct_CC" >&6
3323else
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326fi
3327
3328 test -n "$ac_ct_CC" && break
3329done
3330
3331 CC=$ac_ct_CC
3332fi
3333
3334
John Criswell0c38eaf2003-09-10 15:17:25 +00003335test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336See \`config.log' for more details." >&5
3337echo "$as_me: error: no acceptable C compiler found in \$PATH
3338See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003339 { (exit 1); exit 1; }; }
3340
3341# Provide some information about the compiler.
3342echo "$as_me:$LINENO:" \
3343 "checking for C compiler version" >&5
3344ac_compiler=`set X $ac_compile; echo $2`
3345{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3360
3361echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003372
John Criswell7a73b802003-06-30 21:59:07 +00003373int
3374main ()
3375{
3376#ifndef __GNUC__
3377 choke me
3378#endif
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
3385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003386 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_compiler_gnu=yes
3407else
3408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003409sed 's/^/| /' conftest.$ac_ext >&5
3410
John Criswell7a73b802003-06-30 21:59:07 +00003411ac_compiler_gnu=no
3412fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003414ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419GCC=`test $ac_compiler_gnu = yes && echo yes`
3420ac_test_CFLAGS=${CFLAGS+set}
3421ac_save_CFLAGS=$CFLAGS
3422CFLAGS="-g"
3423echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425if test "${ac_cv_prog_cc_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003434
John Criswell7a73b802003-06-30 21:59:07 +00003435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003445 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_prog_cc_g=yes
3466else
3467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003468sed 's/^/| /' conftest.$ac_ext >&5
3469
John Criswell7a73b802003-06-30 21:59:07 +00003470ac_cv_prog_cc_g=no
3471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003473fi
3474echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476if test "$ac_test_CFLAGS" = set; then
3477 CFLAGS=$ac_save_CFLAGS
3478elif test $ac_cv_prog_cc_g = yes; then
3479 if test "$GCC" = yes; then
3480 CFLAGS="-g -O2"
3481 else
3482 CFLAGS="-g"
3483 fi
3484else
3485 if test "$GCC" = yes; then
3486 CFLAGS="-O2"
3487 else
3488 CFLAGS=
3489 fi
3490fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003491echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 ac_cv_prog_cc_stdc=no
3497ac_save_CC=$CC
3498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504#include <stdarg.h>
3505#include <stdio.h>
3506#include <sys/types.h>
3507#include <sys/stat.h>
3508/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3509struct buf { int x; };
3510FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511static char *e (p, i)
3512 char **p;
3513 int i;
3514{
3515 return p[i];
3516}
3517static char *f (char * (*g) (char **, int), char **p, ...)
3518{
3519 char *s;
3520 va_list v;
3521 va_start (v,p);
3522 s = g (p, va_arg (v,int));
3523 va_end (v);
3524 return s;
3525}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003526
3527/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3528 function prototypes and stuff, but not '\xHH' hex character constants.
3529 These don't provoke an error unfortunately, instead are silently treated
3530 as 'x'. The following induces an error, until -std1 is added to get
3531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3532 array size at least. It's necessary to write '\x00'==0 to get something
3533 that's true only with -std1. */
3534int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535
John Criswell0c38eaf2003-09-10 15:17:25 +00003536int test (int i, double x);
3537struct s1 {int (*f) (int a);};
3538struct s2 {int (*f) (double a);};
3539int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540int argc;
3541char **argv;
3542int
3543main ()
3544{
3545return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550# Don't try gcc -ansi; that turns off useful extensions and
3551# breaks some systems' header files.
3552# AIX -qlanglvl=ansi
3553# Ultrix and OSF/1 -std1
3554# HP-UX 10.20 and later -Ae
3555# HP-UX older versions -Aa -D_HPUX_SOURCE
3556# SVR4 -Xc -D__EXTENSIONS__
3557for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558do
3559 CC="$ac_save_CC $ac_arg"
3560 rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003562 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_prog_cc_stdc=$ac_arg
3583break
3584else
3585 echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003589rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003590done
3591rm -f conftest.$ac_ext conftest.$ac_objext
3592CC=$ac_save_CC
3593
3594fi
3595
3596case "x$ac_cv_prog_cc_stdc" in
3597 x|xno)
3598 echo "$as_me:$LINENO: result: none needed" >&5
3599echo "${ECHO_T}none needed" >&6 ;;
3600 *)
3601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603 CC="$CC $ac_cv_prog_cc_stdc" ;;
3604esac
3605
John Criswell7a73b802003-06-30 21:59:07 +00003606# Some people use a C++ compiler to compile C. Since we use `exit',
3607# in C++ we need to declare it. In case someone uses the same compiler
3608# for both compiling C and C++ we need to have the C++ compiler decide
3609# the declaration of exit, since it's the most demanding environment.
3610cat >conftest.$ac_ext <<_ACEOF
3611#ifndef __cplusplus
3612 choke me
3613#endif
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003617 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003638 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003639 'extern "C" void std::exit (int) throw (); using std::exit;' \
3640 'extern "C" void std::exit (int); using std::exit;' \
3641 'extern "C" void exit (int) throw ();' \
3642 'extern "C" void exit (int);' \
3643 'void exit (int);'
3644do
3645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003651$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003652#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003653int
3654main ()
3655{
3656exit (42);
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661rm -f conftest.$ac_objext
3662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003663 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 :
3684else
3685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003686sed 's/^/| /' conftest.$ac_ext >&5
3687
John Criswell7a73b802003-06-30 21:59:07 +00003688continue
3689fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003691 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003697$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003698int
3699main ()
3700{
3701exit (42);
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext
3707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003708 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003715 { ac_try='test -z "$ac_c_werror_flag"
3716 || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 break
3729else
3730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003731sed 's/^/| /' conftest.$ac_ext >&5
3732
John Criswell7a73b802003-06-30 21:59:07 +00003733fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003735done
3736rm -f conftest*
3737if test -n "$ac_declaration"; then
3738 echo '#ifdef __cplusplus' >>confdefs.h
3739 echo $ac_declaration >>confdefs.h
3740 echo '#endif' >>confdefs.h
3741fi
3742
3743else
3744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003745sed 's/^/| /' conftest.$ac_ext >&5
3746
John Criswell7a73b802003-06-30 21:59:07 +00003747fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003755ac_ext=cc
3756ac_cpp='$CXXCPP $CPPFLAGS'
3757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3760if test -n "$ac_tool_prefix"; then
3761 for ac_prog in $CCC g++
3762 do
3763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765echo "$as_me:$LINENO: checking for $ac_word" >&5
3766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003770 if test -n "$CXX"; then
3771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003775do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784done
3785done
3786
3787fi
3788fi
3789CXX=$ac_cv_prog_CXX
3790if test -n "$CXX"; then
3791 echo "$as_me:$LINENO: result: $CXX" >&5
3792echo "${ECHO_T}$CXX" >&6
3793else
3794 echo "$as_me:$LINENO: result: no" >&5
3795echo "${ECHO_T}no" >&6
3796fi
3797
3798 test -n "$CXX" && break
3799 done
3800fi
3801if test -z "$CXX"; then
3802 ac_ct_CXX=$CXX
3803 for ac_prog in $CCC g++
3804do
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806set dummy $ac_prog; ac_word=$2
3807echo "$as_me:$LINENO: checking for $ac_word" >&5
3808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812 if test -n "$ac_ct_CXX"; then
3813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CXX="$ac_prog"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826done
3827done
3828
3829fi
3830fi
3831ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3832if test -n "$ac_ct_CXX"; then
3833 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3834echo "${ECHO_T}$ac_ct_CXX" >&6
3835else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838fi
3839
3840 test -n "$ac_ct_CXX" && break
3841done
3842test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3843
3844 CXX=$ac_ct_CXX
3845fi
3846
3847
3848# Provide some information about the compiler.
3849echo "$as_me:$LINENO:" \
3850 "checking for C++ compiler version" >&5
3851ac_compiler=`set X $ac_compile; echo $2`
3852{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853 (eval $ac_compiler --version </dev/null >&5) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858 (eval $ac_compiler -v </dev/null >&5) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3862{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863 (eval $ac_compiler -V </dev/null >&5) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }
3867
3868echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3869echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3870if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
John Criswell7a73b802003-06-30 21:59:07 +00003873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003874/* confdefs.h. */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003879
3880int
3881main ()
3882{
3883#ifndef __GNUC__
3884 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003885#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003886
3887 ;
3888 return 0;
3889}
John Criswell7a73b802003-06-30 21:59:07 +00003890_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003891rm -f conftest.$ac_objext
3892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003894 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003895 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_cxx_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_compiler_gnu=yes
3914else
3915 echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918ac_compiler_gnu=no
3919fi
3920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3922
3923fi
3924echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3925echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3926GXX=`test $ac_compiler_gnu = yes && echo yes`
3927ac_test_CXXFLAGS=${CXXFLAGS+set}
3928ac_save_CXXFLAGS=$CXXFLAGS
3929CXXFLAGS="-g"
3930echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3932if test "${ac_cv_prog_cxx_g+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941
3942int
3943main ()
3944{
3945
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext
3951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_cxx_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_prog_cxx_g=yes
3973else
3974 echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977ac_cv_prog_cxx_g=no
3978fi
3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980fi
3981echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3982echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3983if test "$ac_test_CXXFLAGS" = set; then
3984 CXXFLAGS=$ac_save_CXXFLAGS
3985elif test $ac_cv_prog_cxx_g = yes; then
3986 if test "$GXX" = yes; then
3987 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003988 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003989 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003990 fi
3991else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003992 if test "$GXX" = yes; then
3993 CXXFLAGS="-O2"
3994 else
3995 CXXFLAGS=
3996 fi
John Criswell7a73b802003-06-30 21:59:07 +00003997fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003998for ac_declaration in \
3999 '' \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4004 'void exit (int);'
4005do
4006 cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012$ac_declaration
4013#include <stdlib.h>
4014int
4015main ()
4016{
4017exit (42);
4018 ;
4019 return 0;
4020}
4021_ACEOF
4022rm -f conftest.$ac_objext
4023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_cxx_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004044 :
4045else
4046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004047sed 's/^/| /' conftest.$ac_ext >&5
4048
John Criswell7a73b802003-06-30 21:59:07 +00004049continue
4050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004058$ac_declaration
4059int
4060main ()
4061{
4062exit (42);
4063 ;
4064 return 0;
4065}
John Criswell7a73b802003-06-30 21:59:07 +00004066_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004067rm -f conftest.$ac_objext
4068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004070 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004071 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_cxx_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004089 break
John Criswell7a73b802003-06-30 21:59:07 +00004090else
4091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004092sed 's/^/| /' conftest.$ac_ext >&5
4093
John Criswell7a73b802003-06-30 21:59:07 +00004094fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004096done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004097rm -f conftest*
4098if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004102fi
4103
4104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
John Criswell7a73b802003-06-30 21:59:07 +00004110echo "$as_me:$LINENO: checking " >&5
4111echo $ECHO_N "checking ... $ECHO_C" >&6
4112if test "${ac_cv_has_flex+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 for ac_prog in flex lex
4116do
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118set dummy $ac_prog; ac_word=$2
4119echo "$as_me:$LINENO: checking for $ac_word" >&5
4120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121if test "${ac_cv_prog_LEX+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 if test -n "$LEX"; then
4125 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_LEX="$ac_prog"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138done
4139done
4140
4141fi
4142fi
4143LEX=$ac_cv_prog_LEX
4144if test -n "$LEX"; then
4145 echo "$as_me:$LINENO: result: $LEX" >&5
4146echo "${ECHO_T}$LEX" >&6
4147else
4148 echo "$as_me:$LINENO: result: no" >&5
4149echo "${ECHO_T}no" >&6
4150fi
4151
4152 test -n "$LEX" && break
4153done
4154test -n "$LEX" || LEX=":"
4155
4156if test -z "$LEXLIB"
4157then
4158 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4159echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4160if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 ac_check_lib_save_LIBS=$LIBS
4164LIBS="-lfl $LIBS"
4165cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004171
4172/* Override any gcc2 internal prototype to avoid an error. */
4173#ifdef __cplusplus
4174extern "C"
4175#endif
4176/* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4178char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004179int
4180main ()
4181{
4182yywrap ();
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext conftest$ac_exeext
4188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004189 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_lib_fl_yywrap=yes
4210else
4211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004212sed 's/^/| /' conftest.$ac_ext >&5
4213
John Criswell7a73b802003-06-30 21:59:07 +00004214ac_cv_lib_fl_yywrap=no
4215fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004216rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004218LIBS=$ac_check_lib_save_LIBS
4219fi
4220echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4221echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4222if test $ac_cv_lib_fl_yywrap = yes; then
4223 LEXLIB="-lfl"
4224else
4225 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4226echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4227if test "${ac_cv_lib_l_yywrap+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230 ac_check_lib_save_LIBS=$LIBS
4231LIBS="-ll $LIBS"
4232cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004238
4239/* Override any gcc2 internal prototype to avoid an error. */
4240#ifdef __cplusplus
4241extern "C"
4242#endif
4243/* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4245char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004246int
4247main ()
4248{
4249yywrap ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext conftest$ac_exeext
4255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004256 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_lib_l_yywrap=yes
4277else
4278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004279sed 's/^/| /' conftest.$ac_ext >&5
4280
John Criswell7a73b802003-06-30 21:59:07 +00004281ac_cv_lib_l_yywrap=no
4282fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004283rm -f conftest.err conftest.$ac_objext \
4284 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004285LIBS=$ac_check_lib_save_LIBS
4286fi
4287echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4288echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4289if test $ac_cv_lib_l_yywrap = yes; then
4290 LEXLIB="-ll"
4291fi
4292
4293fi
4294
4295fi
4296
4297if test "x$LEX" != "x:"; then
4298 echo "$as_me:$LINENO: checking lex output file root" >&5
4299echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4300if test "${ac_cv_prog_lex_root+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303 # The minimal lex program is just a single line: %%. But some broken lexes
4304# (Solaris, I think it was) want two %% lines, so accommodate them.
4305cat >conftest.l <<_ACEOF
4306%%
4307%%
4308_ACEOF
4309{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4310 (eval $LEX conftest.l) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }
4314if test -f lex.yy.c; then
4315 ac_cv_prog_lex_root=lex.yy
4316elif test -f lexyy.c; then
4317 ac_cv_prog_lex_root=lexyy
4318else
4319 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4320echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4321 { (exit 1); exit 1; }; }
4322fi
4323fi
4324echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4325echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4326rm -f conftest.l
4327LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4328
4329echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4330echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4331if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 # POSIX says lex can declare yytext either as a pointer or an array; the
4335# default is implementation-dependent. Figure out which it is, since
4336# not all implementations provide the %pointer and %array declarations.
4337ac_cv_prog_lex_yytext_pointer=no
4338echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4339ac_save_LIBS=$LIBS
4340LIBS="$LIBS $LEXLIB"
4341cat >conftest.$ac_ext <<_ACEOF
4342`cat $LEX_OUTPUT_ROOT.c`
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004346 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_prog_lex_yytext_pointer=yes
4367else
4368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004369sed 's/^/| /' conftest.$ac_ext >&5
4370
John Criswell7a73b802003-06-30 21:59:07 +00004371fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004372rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004374LIBS=$ac_save_LIBS
4375rm -f "${LEX_OUTPUT_ROOT}.c"
4376
4377fi
4378echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4379echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4380if test $ac_cv_prog_lex_yytext_pointer = yes; then
4381
4382cat >>confdefs.h <<\_ACEOF
4383#define YYTEXT_POINTER 1
4384_ACEOF
4385
4386fi
4387
4388fi
4389
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4392echo "${ECHO_T}$ac_cv_has_flex" >&6
4393if test "$LEX" != "flex"; then
4394 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4395echo "$as_me: error: flex not found but required" >&2;}
4396 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004397else
4398 FLEX=flex
4399
John Criswell7a73b802003-06-30 21:59:07 +00004400fi
4401
4402echo "$as_me:$LINENO: checking " >&5
4403echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004404if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406else
4407 for ac_prog in 'bison -y' byacc
4408do
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410set dummy $ac_prog; ac_word=$2
4411echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413if test "${ac_cv_prog_YACC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 if test -n "$YACC"; then
4417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_YACC="$ac_prog"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431done
4432
4433fi
4434fi
4435YACC=$ac_cv_prog_YACC
4436if test -n "$YACC"; then
4437 echo "$as_me:$LINENO: result: $YACC" >&5
4438echo "${ECHO_T}$YACC" >&6
4439else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442fi
4443
4444 test -n "$YACC" && break
4445done
4446test -n "$YACC" || YACC="yacc"
4447
John Criswell7a73b802003-06-30 21:59:07 +00004448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004449echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004451if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4455else
Brian Gaeke12810632004-01-13 06:52:10 +00004456 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458fi
4459
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004460echo "$as_me:$LINENO: checking for GNU make" >&5
4461echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004465 llvm_cv_gnu_make_command=''
4466 for a in "$MAKE" make gmake gnumake ; do
4467 if test -z "$a" ; then continue ; fi ;
4468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4469 then
4470 llvm_cv_gnu_make_command=$a ;
4471 break;
John Criswell47fdd832003-07-14 16:52:07 +00004472 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004473 done
John Criswell7a73b802003-06-30 21:59:07 +00004474fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004475echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4478 ifGNUmake='' ;
4479 else
4480 ifGNUmake='#' ;
4481 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482echo "${ECHO_T}\"Not found\"" >&6;
4483 fi
John Criswell7a73b802003-06-30 21:59:07 +00004484
John Criswell7a73b802003-06-30 21:59:07 +00004485
4486echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4488LN_S=$as_ln_s
4489if test "$LN_S" = "ln -s"; then
4490 echo "$as_me:$LINENO: result: yes" >&5
4491echo "${ECHO_T}yes" >&6
4492else
4493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494echo "${ECHO_T}no, using $LN_S" >&6
4495fi
4496
Reid Spencer8a2d4712004-12-16 17:48:14 +00004497# Extract the first word of "cmp", so it can be a program name with args.
4498set dummy cmp; ac_word=$2
4499echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501if test "${ac_cv_path_CMP+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 case $CMP in
4505 [\\/]* | ?:[\\/]*)
4506 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4507 ;;
4508 *)
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520done
4521done
4522
4523 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4524 ;;
4525esac
4526fi
4527CMP=$ac_cv_path_CMP
4528
4529if test -n "$CMP"; then
4530 echo "$as_me:$LINENO: result: $CMP" >&5
4531echo "${ECHO_T}$CMP" >&6
4532else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535fi
4536
4537# Extract the first word of "cp", so it can be a program name with args.
4538set dummy cp; ac_word=$2
4539echo "$as_me:$LINENO: checking for $ac_word" >&5
4540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541if test "${ac_cv_path_CP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544 case $CP in
4545 [\\/]* | ?:[\\/]*)
4546 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4547 ;;
4548 *)
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560done
4561done
4562
4563 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4564 ;;
4565esac
4566fi
4567CP=$ac_cv_path_CP
4568
4569if test -n "$CP"; then
4570 echo "$as_me:$LINENO: result: $CP" >&5
4571echo "${ECHO_T}$CP" >&6
4572else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575fi
4576
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004577# Extract the first word of "date", so it can be a program name with args.
4578set dummy date; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004584 case $DATE in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004587 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004588 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004599 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004600done
4601done
John Criswell7a73b802003-06-30 21:59:07 +00004602
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004603 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004604 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004605esac
John Criswell7a73b802003-06-30 21:59:07 +00004606fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004607DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004608
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004609if test -n "$DATE"; then
4610 echo "$as_me:$LINENO: result: $DATE" >&5
4611echo "${ECHO_T}$DATE" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
John Criswell7a73b802003-06-30 21:59:07 +00004616
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004617# Extract the first word of "find", so it can be a program name with args.
4618set dummy find; ac_word=$2
4619echo "$as_me:$LINENO: checking for $ac_word" >&5
4620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004624 case $FIND in
4625 [\\/]* | ?:[\\/]*)
4626 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4627 ;;
4628 *)
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4644 ;;
4645esac
4646fi
4647FIND=$ac_cv_path_FIND
4648
4649if test -n "$FIND"; then
4650 echo "$as_me:$LINENO: result: $FIND" >&5
4651echo "${ECHO_T}$FIND" >&6
4652else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655fi
4656
4657# Extract the first word of "grep", so it can be a program name with args.
4658set dummy grep; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_path_GREP+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 case $GREP in
4665 [\\/]* | ?:[\\/]*)
4666 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4667 ;;
4668 *)
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680done
4681done
4682
4683 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4684 ;;
4685esac
4686fi
4687GREP=$ac_cv_path_GREP
4688
4689if test -n "$GREP"; then
4690 echo "$as_me:$LINENO: result: $GREP" >&5
4691echo "${ECHO_T}$GREP" >&6
4692else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695fi
4696
4697# Extract the first word of "mkdir", so it can be a program name with args.
4698set dummy mkdir; ac_word=$2
4699echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701if test "${ac_cv_path_MKDIR+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704 case $MKDIR in
4705 [\\/]* | ?:[\\/]*)
4706 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4707 ;;
4708 *)
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722
4723 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4724 ;;
4725esac
4726fi
4727MKDIR=$ac_cv_path_MKDIR
4728
4729if test -n "$MKDIR"; then
4730 echo "$as_me:$LINENO: result: $MKDIR" >&5
4731echo "${ECHO_T}$MKDIR" >&6
4732else
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735fi
4736
4737# Extract the first word of "mv", so it can be a program name with args.
4738set dummy mv; ac_word=$2
4739echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741if test "${ac_cv_path_MV+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 case $MV in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4764 ;;
4765esac
4766fi
4767MV=$ac_cv_path_MV
4768
4769if test -n "$MV"; then
4770 echo "$as_me:$LINENO: result: $MV" >&5
4771echo "${ECHO_T}$MV" >&6
4772else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777# Extract the first word of "pax", so it can be a program name with args.
4778set dummy pax; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_path_PAX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 case $PAX in
4785 [\\/]* | ?:[\\/]*)
4786 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4787 ;;
4788 *)
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802
4803 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4804 ;;
4805esac
4806fi
4807PAX=$ac_cv_path_PAX
4808
4809if test -n "$PAX"; then
4810 echo "$as_me:$LINENO: result: $PAX" >&5
4811echo "${ECHO_T}$PAX" >&6
4812else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815fi
4816
4817if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4819set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4820echo "$as_me:$LINENO: checking for $ac_word" >&5
4821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822if test "${ac_cv_prog_RANLIB+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 if test -n "$RANLIB"; then
4826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839done
4840done
4841
4842fi
4843fi
4844RANLIB=$ac_cv_prog_RANLIB
4845if test -n "$RANLIB"; then
4846 echo "$as_me:$LINENO: result: $RANLIB" >&5
4847echo "${ECHO_T}$RANLIB" >&6
4848else
4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
4851fi
4852
4853fi
4854if test -z "$ac_cv_prog_RANLIB"; then
4855 ac_ct_RANLIB=$RANLIB
4856 # Extract the first word of "ranlib", so it can be a program name with args.
4857set dummy ranlib; ac_word=$2
4858echo "$as_me:$LINENO: checking for $ac_word" >&5
4859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 if test -n "$ac_ct_RANLIB"; then
4864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_RANLIB="ranlib"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878done
4879
4880 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4881fi
4882fi
4883ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4884if test -n "$ac_ct_RANLIB"; then
4885 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4886echo "${ECHO_T}$ac_ct_RANLIB" >&6
4887else
4888 echo "$as_me:$LINENO: result: no" >&5
4889echo "${ECHO_T}no" >&6
4890fi
4891
4892 RANLIB=$ac_ct_RANLIB
4893else
4894 RANLIB="$ac_cv_prog_RANLIB"
4895fi
4896
4897# Extract the first word of "rm", so it can be a program name with args.
4898set dummy rm; ac_word=$2
4899echo "$as_me:$LINENO: checking for $ac_word" >&5
4900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901if test "${ac_cv_path_RM+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 case $RM in
4905 [\\/]* | ?:[\\/]*)
4906 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4907 ;;
4908 *)
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4924 ;;
4925esac
4926fi
4927RM=$ac_cv_path_RM
4928
4929if test -n "$RM"; then
4930 echo "$as_me:$LINENO: result: $RM" >&5
4931echo "${ECHO_T}$RM" >&6
4932else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937# Extract the first word of "sed", so it can be a program name with args.
4938set dummy sed; ac_word=$2
4939echo "$as_me:$LINENO: checking for $ac_word" >&5
4940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941if test "${ac_cv_path_SED+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 case $SED in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4947 ;;
4948 *)
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960done
4961done
4962
4963 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4964 ;;
4965esac
4966fi
4967SED=$ac_cv_path_SED
4968
4969if test -n "$SED"; then
4970 echo "$as_me:$LINENO: result: $SED" >&5
4971echo "${ECHO_T}$SED" >&6
4972else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975fi
4976
4977# Extract the first word of "tar", so it can be a program name with args.
4978set dummy tar; ac_word=$2
4979echo "$as_me:$LINENO: checking for $ac_word" >&5
4980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981if test "${ac_cv_path_TAR+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 case $TAR in
4985 [\\/]* | ?:[\\/]*)
4986 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4987 ;;
4988 *)
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5004 ;;
5005esac
5006fi
5007TAR=$ac_cv_path_TAR
5008
5009if test -n "$TAR"; then
5010 echo "$as_me:$LINENO: result: $TAR" >&5
5011echo "${ECHO_T}$TAR" >&6
5012else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017
5018# Find a good install program. We prefer a C program (faster),
5019# so one script is as good as another. But avoid the broken or
5020# incompatible versions:
5021# SysV /etc/install, /usr/sbin/install
5022# SunOS /usr/etc/install
5023# IRIX /sbin/install
5024# AIX /bin/install
5025# AmigaOS /C/install, which installs bootblocks on floppy discs
5026# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5027# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5028# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5029# OS/2's system install, which has a completely different semantic
5030# ./install, which can be erroneously created by make from ./install.sh.
5031echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5032echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5033if test -z "$INSTALL"; then
5034if test "${ac_cv_path_install+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 # Account for people who put trailing slashes in PATH elements.
5043case $as_dir/ in
5044 ./ | .// | /cC/* | \
5045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5046 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5047 /usr/ucb/* ) ;;
5048 *)
5049 # OSF1 and SCO ODT 3.0 have their own names for install.
5050 # Don't use installbsd from OSF since it installs stuff as root
5051 # by default.
5052 for ac_prog in ginstall scoinst install; do
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5055 if test $ac_prog = install &&
5056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5057 # AIX install. It has an incompatible calling convention.
5058 :
5059 elif test $ac_prog = install &&
5060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5061 # program-specific install script used by HP pwplus--don't use.
5062 :
5063 else
5064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5065 break 3
5066 fi
5067 fi
5068 done
5069 done
5070 ;;
5071esac
5072done
5073
5074
5075fi
5076 if test "${ac_cv_path_install+set}" = set; then
5077 INSTALL=$ac_cv_path_install
5078 else
5079 # As a last resort, use the slow shell script. We don't cache a
5080 # path for INSTALL within a source directory, because that will
5081 # break other packages using the cache if that directory is
5082 # removed, or if the path is relative.
5083 INSTALL=$ac_install_sh
5084 fi
5085fi
5086echo "$as_me:$LINENO: result: $INSTALL" >&5
5087echo "${ECHO_T}$INSTALL" >&6
5088
5089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5090# It thinks the first close brace ends the variable substitution.
5091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5092
5093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5094
5095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5096
5097
5098# Extract the first word of "bzip2", so it can be a program name with args.
5099set dummy bzip2; ac_word=$2
5100echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102if test "${ac_cv_path_BZIP2+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 case $BZIP2 in
5106 [\\/]* | ?:[\\/]*)
5107 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5108 ;;
5109 *)
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
5123
5124 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5125 ;;
5126esac
5127fi
5128BZIP2=$ac_cv_path_BZIP2
5129
5130if test -n "$BZIP2"; then
5131 echo "$as_me:$LINENO: result: $BZIP2" >&5
5132echo "${ECHO_T}$BZIP2" >&6
5133else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138# Extract the first word of "dot", so it can be a program name with args.
5139set dummy dot; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_path_DOT+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 case $DOT in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5148 ;;
5149 *)
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162done
5163
5164 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5165 ;;
5166esac
5167fi
5168DOT=$ac_cv_path_DOT
5169
5170if test -n "$DOT"; then
5171 echo "$as_me:$LINENO: result: $DOT" >&5
5172echo "${ECHO_T}$DOT" >&6
5173else
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176fi
5177
5178# Extract the first word of "doxygen", so it can be a program name with args.
5179set dummy doxygen; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_path_DOXYGEN+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 case $DOXYGEN in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203
5204 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5205 ;;
5206esac
5207fi
5208DOXYGEN=$ac_cv_path_DOXYGEN
5209
5210if test -n "$DOXYGEN"; then
5211 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5212echo "${ECHO_T}$DOXYGEN" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218# Extract the first word of "etags", so it can be a program name with args.
5219set dummy etags; ac_word=$2
5220echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222if test "${ac_cv_path_ETAGS+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 case $ETAGS in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5228 ;;
5229 *)
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243
5244 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5245 ;;
5246esac
5247fi
5248ETAGS=$ac_cv_path_ETAGS
5249
5250if test -n "$ETAGS"; then
5251 echo "$as_me:$LINENO: result: $ETAGS" >&5
5252echo "${ECHO_T}$ETAGS" >&6
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258# Extract the first word of "groff", so it can be a program name with args.
5259set dummy groff; ac_word=$2
5260echo "$as_me:$LINENO: checking for $ac_word" >&5
5261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262if test "${ac_cv_path_GROFF+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 case $GROFF in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5268 ;;
5269 *)
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282done
5283
5284 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5285 ;;
5286esac
5287fi
5288GROFF=$ac_cv_path_GROFF
5289
5290if test -n "$GROFF"; then
5291 echo "$as_me:$LINENO: result: $GROFF" >&5
5292echo "${ECHO_T}$GROFF" >&6
5293else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297
5298# Extract the first word of "gzip", so it can be a program name with args.
5299set dummy gzip; ac_word=$2
5300echo "$as_me:$LINENO: checking for $ac_word" >&5
5301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302if test "${ac_cv_path_GZIP+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305 case $GZIP in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5308 ;;
5309 *)
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
5323
5324 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5325 ;;
5326esac
5327fi
5328GZIP=$ac_cv_path_GZIP
5329
5330if test -n "$GZIP"; then
5331 echo "$as_me:$LINENO: result: $GZIP" >&5
5332echo "${ECHO_T}$GZIP" >&6
5333else
5334 echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336fi
5337
5338# Extract the first word of "pod2html", so it can be a program name with args.
5339set dummy pod2html; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_path_POD2HTML+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 case $POD2HTML in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5348 ;;
5349 *)
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361done
5362done
5363
5364 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5365 ;;
5366esac
5367fi
5368POD2HTML=$ac_cv_path_POD2HTML
5369
5370if test -n "$POD2HTML"; then
5371 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5372echo "${ECHO_T}$POD2HTML" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378# Extract the first word of "pod2man", so it can be a program name with args.
5379set dummy pod2man; ac_word=$2
5380echo "$as_me:$LINENO: checking for $ac_word" >&5
5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382if test "${ac_cv_path_POD2MAN+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385 case $POD2MAN in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5388 ;;
5389 *)
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5405 ;;
5406esac
5407fi
5408POD2MAN=$ac_cv_path_POD2MAN
5409
5410if test -n "$POD2MAN"; then
5411 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5412echo "${ECHO_T}$POD2MAN" >&6
5413else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416fi
5417
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005418# Extract the first word of "runtest", so it can be a program name with args.
5419set dummy runtest; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_path_RUNTEST+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 case $RUNTEST in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5428 ;;
5429 *)
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442done
5443
5444 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5445 ;;
5446esac
5447fi
5448RUNTEST=$ac_cv_path_RUNTEST
5449
5450if test -n "$RUNTEST"; then
5451 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5452echo "${ECHO_T}$RUNTEST" >&6
5453else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
Reid Spencer0fcb9412004-11-30 08:11:54 +00005458
Reid Spencer0fcb9412004-11-30 08:11:54 +00005459no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005460echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5461echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005462
5463# Check whether --with-tclinclude or --without-tclinclude was given.
5464if test "${with_tclinclude+set}" = set; then
5465 withval="$with_tclinclude"
5466 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005467else
5468 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005469fi;
5470if test "${ac_cv_path_tclsh+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473
5474if test x"${with_tclinclude}" != x ; then
5475 if test -f ${with_tclinclude}/tclsh ; then
5476 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5477 elif test -f ${with_tclinclude}/src/tclsh ; then
5478 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5479 else
5480 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5481echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5482 { (exit 1); exit 1; }; }
5483 fi
5484fi
5485
Reid Spencer0fcb9412004-11-30 08:11:54 +00005486if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005487 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005488echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005489 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 +00005490do
5491 # Extract the first word of "$ac_prog", so it can be a program name with args.
5492set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005493echo "$as_me:$LINENO: checking for $ac_word" >&5
5494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005495if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
Reid Spencercda35f82004-12-02 04:17:20 +00005498 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005499 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005500 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005501 ;;
5502 *)
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005510 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514done
5515done
5516
5517 ;;
5518esac
5519fi
Reid Spencercda35f82004-12-02 04:17:20 +00005520TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005521
Reid Spencercda35f82004-12-02 04:17:20 +00005522if test -n "$TCLSH"; then
5523 echo "$as_me:$LINENO: result: $TCLSH" >&5
5524echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005525else
5526 echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
5528fi
5529
Reid Spencercda35f82004-12-02 04:17:20 +00005530 test -n "$TCLSH" && break
5531done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005532
Reid Spencercda35f82004-12-02 04:17:20 +00005533 if test x"${TCLSH}" = x ; then
5534 ac_cv_path_tclsh='';
5535 else
5536 ac_cv_path_tclsh="${TCLSH}";
5537 fi
5538else
5539 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5540echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5541 TCLSH="${ac_cv_path_tclsh}"
5542
5543fi
5544
5545fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005546
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005547# Extract the first word of "zip", so it can be a program name with args.
5548set dummy zip; ac_word=$2
5549echo "$as_me:$LINENO: checking for $ac_word" >&5
5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551if test "${ac_cv_path_ZIP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554 case $ZIP in
5555 [\\/]* | ?:[\\/]*)
5556 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5557 ;;
5558 *)
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570done
5571done
5572
5573 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5574 ;;
5575esac
5576fi
5577ZIP=$ac_cv_path_ZIP
5578
5579if test -n "$ZIP"; then
5580 echo "$as_me:$LINENO: result: $ZIP" >&5
5581echo "${ECHO_T}$ZIP" >&6
5582else
5583 echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587
5588echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5589echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5590if test "${llvm_cv_link_use_r+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005594ac_cpp='$CPP $CPPFLAGS'
5595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005599 oldcflags="$CFLAGS"
5600 CFLAGS="$CFLAGS -Wl,-R."
5601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005607
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005608int
5609main ()
5610{
5611int main() { return 0; }
5612 ;
5613 return 0;
5614}
John Criswell47fdd832003-07-14 16:52:07 +00005615_ACEOF
5616rm -f conftest.$ac_objext conftest$ac_exeext
5617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005618 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005624 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005625 { ac_try='test -z "$ac_c_werror_flag"
5626 || test ! -s conftest.err'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005638 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005639else
John Criswell47fdd832003-07-14 16:52:07 +00005640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005641sed 's/^/| /' conftest.$ac_ext >&5
5642
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005643llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005644fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005645rm -f conftest.err conftest.$ac_objext \
5646 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005647 CFLAGS="$oldcflags"
5648 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005649ac_cpp='$CPP $CPPFLAGS'
5650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005654
John Criswell7a73b802003-06-30 21:59:07 +00005655fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005656echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5657echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5658if test "$llvm_cv_link_use_r" = yes ; then
5659
5660cat >>confdefs.h <<\_ACEOF
5661#define HAVE_LINK_R 1
5662_ACEOF
5663
John Criswell47fdd832003-07-14 16:52:07 +00005664 fi
John Criswell47fdd832003-07-14 16:52:07 +00005665
John Criswell47fdd832003-07-14 16:52:07 +00005666
John Criswell47fdd832003-07-14 16:52:07 +00005667
John Criswell7a73b802003-06-30 21:59:07 +00005668
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005669echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5670echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5671if test "${ac_cv_c_const+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680
5681int
5682main ()
5683{
5684/* FIXME: Include the comments suggested by Paul. */
5685#ifndef __cplusplus
5686 /* Ultrix mips cc rejects this. */
5687 typedef int charset[2];
5688 const charset x;
5689 /* SunOS 4.1.1 cc rejects this. */
5690 char const *const *ccp;
5691 char **p;
5692 /* NEC SVR4.0.2 mips cc rejects this. */
5693 struct point {int x, y;};
5694 static struct point const zero = {0,0};
5695 /* AIX XL C 1.02.0.0 rejects this.
5696 It does not let you subtract one const X* pointer from another in
5697 an arm of an if-expression whose if-part is not a constant
5698 expression */
5699 const char *g = "string";
5700 ccp = &g + (g ? g-g : 0);
5701 /* HPUX 7.0 cc rejects these. */
5702 ++ccp;
5703 p = (char**) ccp;
5704 ccp = (char const *const *) p;
5705 { /* SCO 3.2v4 cc rejects this. */
5706 char *t;
5707 char const *s = 0 ? (char *) 0 : (char const *) 0;
5708
5709 *t++ = 0;
5710 }
5711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5712 int x[] = {25, 17};
5713 const int *foo = &x[0];
5714 ++foo;
5715 }
5716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5717 typedef const int *iptr;
5718 iptr p = 0;
5719 ++p;
5720 }
5721 { /* AIX XL C 1.02.0.0 rejects this saying
5722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5723 struct s { int j; const int *ap[3]; };
5724 struct s *b; b->j = 5;
5725 }
5726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5727 const int foo = 10;
5728 }
5729#endif
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
5736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_c_const=yes
5758else
5759 echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762ac_cv_c_const=no
5763fi
5764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5767echo "${ECHO_T}$ac_cv_c_const" >&6
5768if test $ac_cv_c_const = no; then
5769
5770cat >>confdefs.h <<\_ACEOF
5771#define const
5772_ACEOF
5773
5774fi
5775
5776
5777echo "$as_me:$LINENO: checking for egrep" >&5
5778echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5779if test "${ac_cv_prog_egrep+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5783 then ac_cv_prog_egrep='grep -E'
5784 else ac_cv_prog_egrep='egrep'
5785 fi
5786fi
5787echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5788echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5789 EGREP=$ac_cv_prog_egrep
5790
John Criswell7a73b802003-06-30 21:59:07 +00005791
5792echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794if test "${ac_cv_header_stdc+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005803#include <stdlib.h>
5804#include <stdarg.h>
5805#include <string.h>
5806#include <float.h>
5807
John Criswell0c38eaf2003-09-10 15:17:25 +00005808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
John Criswell7a73b802003-06-30 21:59:07 +00005815_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005816rm -f conftest.$ac_objext
5817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005818 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005824 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005825 { ac_try='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005838 ac_cv_header_stdc=yes
5839else
5840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005844fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005846
5847if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005855#include <string.h>
5856
5857_ACEOF
5858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005859 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005860 :
5861else
5862 ac_cv_header_stdc=no
5863fi
5864rm -f conftest*
5865
5866fi
5867
5868if test $ac_cv_header_stdc = yes; then
5869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005871/* confdefs.h. */
5872_ACEOF
5873cat confdefs.h >>conftest.$ac_ext
5874cat >>conftest.$ac_ext <<_ACEOF
5875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005876#include <stdlib.h>
5877
5878_ACEOF
5879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005880 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005881 :
5882else
5883 ac_cv_header_stdc=no
5884fi
5885rm -f conftest*
5886
5887fi
5888
5889if test $ac_cv_header_stdc = yes; then
5890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891 if test "$cross_compiling" = yes; then
5892 :
5893else
5894 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005900#include <ctype.h>
5901#if ((' ' & 0x0FF) == 0x020)
5902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5904#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005905# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005906 (('a' <= (c) && (c) <= 'i') \
5907 || ('j' <= (c) && (c) <= 'r') \
5908 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5910#endif
5911
5912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5913int
5914main ()
5915{
5916 int i;
5917 for (i = 0; i < 256; i++)
5918 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005919 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005920 exit(2);
5921 exit (0);
5922}
5923_ACEOF
5924rm -f conftest$ac_exeext
5925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 :
5936else
5937 echo "$as_me: program exited with status $ac_status" >&5
5938echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005939sed 's/^/| /' conftest.$ac_ext >&5
5940
John Criswell7a73b802003-06-30 21:59:07 +00005941( exit $ac_status )
5942ac_cv_header_stdc=no
5943fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005945fi
5946fi
5947fi
5948echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949echo "${ECHO_T}$ac_cv_header_stdc" >&6
5950if test $ac_cv_header_stdc = yes; then
5951
5952cat >>confdefs.h <<\_ACEOF
5953#define STDC_HEADERS 1
5954_ACEOF
5955
5956fi
5957
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005958
5959
5960
5961
5962
5963ac_header_dirent=no
5964for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5966echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5967echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5968if eval "test \"\${$as_ac_Header+set}\" = set"; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971 cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h. */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h. */
5977#include <sys/types.h>
5978#include <$ac_hdr>
5979
5980int
5981main ()
5982{
5983if ((DIR *) 0)
5984return 0;
5985 ;
5986 return 0;
5987}
5988_ACEOF
5989rm -f conftest.$ac_objext
5990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 eval "$as_ac_Header=yes"
6012else
6013 echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016eval "$as_ac_Header=no"
6017fi
6018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6025_ACEOF
6026
6027ac_header_dirent=$ac_hdr; break
6028fi
6029
6030done
6031# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032if test $ac_header_dirent = dirent.h; then
6033 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035if test "${ac_cv_search_opendir+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 ac_func_search_save_LIBS=$LIBS
6039ac_cv_search_opendir=no
6040cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046
6047/* Override any gcc2 internal prototype to avoid an error. */
6048#ifdef __cplusplus
6049extern "C"
6050#endif
6051/* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6053char opendir ();
6054int
6055main ()
6056{
6057opendir ();
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext conftest$ac_exeext
6063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6064 (eval $ac_link) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag"
6072 || test ! -s conftest.err'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_search_opendir="none required"
6085else
6086 echo "$as_me: failed program was:" >&5
6087sed 's/^/| /' conftest.$ac_ext >&5
6088
6089fi
6090rm -f conftest.err conftest.$ac_objext \
6091 conftest$ac_exeext conftest.$ac_ext
6092if test "$ac_cv_search_opendir" = no; then
6093 for ac_lib in dir; do
6094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
6101
6102/* Override any gcc2 internal prototype to avoid an error. */
6103#ifdef __cplusplus
6104extern "C"
6105#endif
6106/* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108char opendir ();
6109int
6110main ()
6111{
6112opendir ();
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117rm -f conftest.$ac_objext conftest$ac_exeext
6118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_search_opendir="-l$ac_lib"
6140break
6141else
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145fi
6146rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6148 done
6149fi
6150LIBS=$ac_func_search_save_LIBS
6151fi
6152echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6153echo "${ECHO_T}$ac_cv_search_opendir" >&6
6154if test "$ac_cv_search_opendir" != no; then
6155 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6156
6157fi
6158
6159else
6160 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6161echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6162if test "${ac_cv_search_opendir+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 ac_func_search_save_LIBS=$LIBS
6166ac_cv_search_opendir=no
6167cat >conftest.$ac_ext <<_ACEOF
6168/* confdefs.h. */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h. */
6173
6174/* Override any gcc2 internal prototype to avoid an error. */
6175#ifdef __cplusplus
6176extern "C"
6177#endif
6178/* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6180char opendir ();
6181int
6182main ()
6183{
6184opendir ();
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189rm -f conftest.$ac_objext conftest$ac_exeext
6190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_search_opendir="none required"
6212else
6213 echo "$as_me: failed program was:" >&5
6214sed 's/^/| /' conftest.$ac_ext >&5
6215
6216fi
6217rm -f conftest.err conftest.$ac_objext \
6218 conftest$ac_exeext conftest.$ac_ext
6219if test "$ac_cv_search_opendir" = no; then
6220 for ac_lib in x; do
6221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6222 cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228
6229/* Override any gcc2 internal prototype to avoid an error. */
6230#ifdef __cplusplus
6231extern "C"
6232#endif
6233/* We use char because int might match the return type of a gcc2
6234 builtin and then its argument prototype would still apply. */
6235char opendir ();
6236int
6237main ()
6238{
6239opendir ();
6240 ;
6241 return 0;
6242}
6243_ACEOF
6244rm -f conftest.$ac_objext conftest$ac_exeext
6245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag"
6254 || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try='test -s conftest$ac_exeext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_search_opendir="-l$ac_lib"
6267break
6268else
6269 echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272fi
6273rm -f conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6275 done
6276fi
6277LIBS=$ac_func_search_save_LIBS
6278fi
6279echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6280echo "${ECHO_T}$ac_cv_search_opendir" >&6
6281if test "$ac_cv_search_opendir" != no; then
6282 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6283
6284fi
6285
6286fi
6287
John Criswell7a73b802003-06-30 21:59:07 +00006288# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006299 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006300do
6301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302echo "$as_me:$LINENO: checking for $ac_header" >&5
6303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6304if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006313$ac_includes_default
6314
6315#include <$ac_header>
6316_ACEOF
6317rm -f conftest.$ac_objext
6318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006319 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 eval "$as_ac_Header=yes"
6340else
6341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006342sed 's/^/| /' conftest.$ac_ext >&5
6343
John Criswell7a73b802003-06-30 21:59:07 +00006344eval "$as_ac_Header=no"
6345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006347fi
6348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6350if test `eval echo '${'$as_ac_Header'}'` = yes; then
6351 cat >>confdefs.h <<_ACEOF
6352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6353_ACEOF
6354
6355fi
6356
6357done
6358
6359
6360
6361for ac_header in dlfcn.h
6362do
6363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006364if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6367if eval "test \"\${$as_ac_Header+set}\" = set"; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006369fi
6370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006372else
Brian Gaeke0a621332004-09-08 20:38:05 +00006373 # Is the header compilable?
6374echo "$as_me:$LINENO: checking $ac_header usability" >&5
6375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6376cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006382$ac_includes_default
6383#include <$ac_header>
6384_ACEOF
6385rm -f conftest.$ac_objext
6386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006387 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006388 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006394 { ac_try='test -z "$ac_c_werror_flag"
6395 || test ! -s conftest.err'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006407 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006408else
6409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006410sed 's/^/| /' conftest.$ac_ext >&5
6411
Brian Gaeke0a621332004-09-08 20:38:05 +00006412ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006413fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6416echo "${ECHO_T}$ac_header_compiler" >&6
6417
6418# Is the header present?
6419echo "$as_me:$LINENO: checking $ac_header presence" >&5
6420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6421cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006422/* confdefs.h. */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h. */
6427#include <$ac_header>
6428_ACEOF
6429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } >/dev/null; then
6437 if test -s conftest.err; then
6438 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006440 else
6441 ac_cpp_err=
6442 fi
6443else
6444 ac_cpp_err=yes
6445fi
6446if test -z "$ac_cpp_err"; then
6447 ac_header_preproc=yes
6448else
6449 echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_header_preproc=no
6453fi
6454rm -f conftest.err conftest.$ac_ext
6455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456echo "${ECHO_T}$ac_header_preproc" >&6
6457
6458# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6460 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6465 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006466 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006467 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006480 (
6481 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006482## ----------------------------------- ##
6483## Report this to llvmbugs@cs.uiuc.edu ##
6484## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006485_ASBOX
6486 ) |
6487 sed "s/^/$as_me: WARNING: /" >&2
6488 ;;
6489esac
6490echo "$as_me:$LINENO: checking for $ac_header" >&5
6491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006495 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006496fi
6497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006499
6500fi
John Criswell7a73b802003-06-30 21:59:07 +00006501if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504_ACEOF
6505
6506fi
6507
6508done
6509
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006510# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6511if test "${enable_ltdl_install+set}" = set; then
6512 enableval="$enable_ltdl_install"
6513
6514fi;
6515
6516
6517
6518if test x"${enable_ltdl_install-no}" != xno; then
6519 INSTALL_LTDL_TRUE=
6520 INSTALL_LTDL_FALSE='#'
6521else
6522 INSTALL_LTDL_TRUE='#'
6523 INSTALL_LTDL_FALSE=
6524fi
6525
6526
6527
6528if test x"${enable_ltdl_convenience-no}" != xno; then
6529 CONVENIENCE_LTDL_TRUE=
6530 CONVENIENCE_LTDL_FALSE='#'
6531else
6532 CONVENIENCE_LTDL_TRUE='#'
6533 CONVENIENCE_LTDL_FALSE=
6534fi
6535
6536
6537echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6538echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6539library_names_spec=
6540libname_spec='lib$name'
6541soname_spec=
6542shrext_cmds=".so"
6543postinstall_cmds=
6544postuninstall_cmds=
6545finish_cmds=
6546finish_eval=
6547shlibpath_var=
6548shlibpath_overrides_runpath=unknown
6549version_type=none
6550dynamic_linker="$host_os ld.so"
6551sys_lib_dlsearch_path_spec="/lib /usr/lib"
6552if test "$GCC" = yes; then
6553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6555 # if the path contains ";" then we assume it to be the separator
6556 # otherwise default to the standard path separator (i.e. ":") - it is
6557 # assumed that no part of a normal pathname contains ";" but that should
6558 # okay in the real world where ";" in dirpaths is itself problematic.
6559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6560 else
6561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6562 fi
6563else
6564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6565fi
6566need_lib_prefix=unknown
6567hardcode_into_libs=no
6568
6569# when you set need_version to no, make sure it does not cause -set_version
6570# flags to be left without arguments
6571need_version=unknown
6572
6573case $host_os in
6574aix3*)
6575 version_type=linux
6576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6577 shlibpath_var=LIBPATH
6578
6579 # AIX 3 has no versioning support, so we append a major version to the name.
6580 soname_spec='${libname}${release}${shared_ext}$major'
6581 ;;
6582
6583aix4* | aix5*)
6584 version_type=linux
6585 need_lib_prefix=no
6586 need_version=no
6587 hardcode_into_libs=yes
6588 if test "$host_cpu" = ia64; then
6589 # AIX 5 supports IA64
6590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6591 shlibpath_var=LD_LIBRARY_PATH
6592 else
6593 # With GCC up to 2.95.x, collect2 would create an import file
6594 # for dependence libraries. The import file would start with
6595 # the line `#! .'. This would cause the generated library to
6596 # depend on `.', always an invalid library. This was fixed in
6597 # development snapshots of GCC prior to 3.0.
6598 case $host_os in
6599 aix4 | aix4.[01] | aix4.[01].*)
6600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6601 echo ' yes '
6602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6603 :
6604 else
6605 can_build_shared=no
6606 fi
6607 ;;
6608 esac
6609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6610 # soname into executable. Probably we can add versioning support to
6611 # collect2, so additional links can be useful in future.
6612 if test "$aix_use_runtimelinking" = yes; then
6613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6614 # instead of lib<name>.a to let people know that these are not
6615 # typical AIX shared libraries.
6616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6617 else
6618 # We preserve .a as extension for shared libraries through AIX4.2
6619 # and later when we are not doing run time linking.
6620 library_names_spec='${libname}${release}.a $libname.a'
6621 soname_spec='${libname}${release}${shared_ext}$major'
6622 fi
6623 shlibpath_var=LIBPATH
6624 fi
6625 ;;
6626
6627amigaos*)
6628 library_names_spec='$libname.ixlibrary $libname.a'
6629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6630 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'
6631 ;;
6632
6633beos*)
6634 library_names_spec='${libname}${shared_ext}'
6635 dynamic_linker="$host_os ld.so"
6636 shlibpath_var=LIBRARY_PATH
6637 ;;
6638
6639bsdi[45]*)
6640 version_type=linux
6641 need_version=no
6642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6643 soname_spec='${libname}${release}${shared_ext}$major'
6644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6645 shlibpath_var=LD_LIBRARY_PATH
6646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6648 # the default ld.so.conf also contains /usr/contrib/lib and
6649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6650 # libtool to hard-code these into programs
6651 ;;
6652
6653cygwin* | mingw* | pw32*)
6654 version_type=windows
6655 shrext_cmds=".dll"
6656 need_version=no
6657 need_lib_prefix=no
6658
6659 case $GCC,$host_os in
6660 yes,cygwin* | yes,mingw* | yes,pw32*)
6661 library_names_spec='$libname.dll.a'
6662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6663 postinstall_cmds='base_file=`basename \${file}`~
6664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6665 dldir=$destdir/`dirname \$dlpath`~
6666 test -d \$dldir || mkdir -p \$dldir~
6667 $install_prog $dir/$dlname \$dldir/$dlname'
6668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6669 dlpath=$dir/\$dldll~
6670 $rm \$dlpath'
6671 shlibpath_overrides_runpath=yes
6672
6673 case $host_os in
6674 cygwin*)
6675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6677 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6678 ;;
6679 mingw*)
6680 # MinGW DLLs use traditional 'lib' prefix
6681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6683 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6684 # It is most probably a Windows format PATH printed by
6685 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6686 # path with ; separators, and with drive letters. We can handle the
6687 # drive letters (cygwin fileutils understands them), so leave them,
6688 # especially as we might pass files found there to a mingw objdump,
6689 # which wouldn't understand a cygwinified path. Ahh.
6690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6691 else
6692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6693 fi
6694 ;;
6695 pw32*)
6696 # pw32 DLLs use 'pw' prefix rather than 'lib'
6697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6698 ;;
6699 esac
6700 ;;
6701
6702 *)
6703 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6704 ;;
6705 esac
6706 dynamic_linker='Win32 ld.exe'
6707 # FIXME: first we should search . and the directory the executable is in
6708 shlibpath_var=PATH
6709 ;;
6710
6711darwin* | rhapsody*)
6712 dynamic_linker="$host_os dyld"
6713 version_type=darwin
6714 need_lib_prefix=no
6715 need_version=no
6716 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6717 soname_spec='${libname}${release}${major}$shared_ext'
6718 shlibpath_overrides_runpath=yes
6719 shlibpath_var=DYLD_LIBRARY_PATH
6720 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6721 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6722 if test "$GCC" = yes; then
6723 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"`
6724 else
6725 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6726 fi
6727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6728 ;;
6729
6730dgux*)
6731 version_type=linux
6732 need_lib_prefix=no
6733 need_version=no
6734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6735 soname_spec='${libname}${release}${shared_ext}$major'
6736 shlibpath_var=LD_LIBRARY_PATH
6737 ;;
6738
6739freebsd1*)
6740 dynamic_linker=no
6741 ;;
6742
6743kfreebsd*-gnu)
6744 version_type=linux
6745 need_lib_prefix=no
6746 need_version=no
6747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6748 soname_spec='${libname}${release}${shared_ext}$major'
6749 shlibpath_var=LD_LIBRARY_PATH
6750 shlibpath_overrides_runpath=no
6751 hardcode_into_libs=yes
6752 dynamic_linker='GNU ld.so'
6753 ;;
6754
6755freebsd*)
6756 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6757 version_type=freebsd-$objformat
6758 case $version_type in
6759 freebsd-elf*)
6760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6761 need_version=no
6762 need_lib_prefix=no
6763 ;;
6764 freebsd-*)
6765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6766 need_version=yes
6767 ;;
6768 esac
6769 shlibpath_var=LD_LIBRARY_PATH
6770 case $host_os in
6771 freebsd2*)
6772 shlibpath_overrides_runpath=yes
6773 ;;
6774 freebsd3.01* | freebsdelf3.01*)
6775 shlibpath_overrides_runpath=yes
6776 hardcode_into_libs=yes
6777 ;;
6778 *) # from 3.2 on
6779 shlibpath_overrides_runpath=no
6780 hardcode_into_libs=yes
6781 ;;
6782 esac
6783 ;;
6784
6785gnu*)
6786 version_type=linux
6787 need_lib_prefix=no
6788 need_version=no
6789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6790 soname_spec='${libname}${release}${shared_ext}$major'
6791 shlibpath_var=LD_LIBRARY_PATH
6792 hardcode_into_libs=yes
6793 ;;
6794
6795hpux9* | hpux10* | hpux11*)
6796 # Give a soname corresponding to the major version so that dld.sl refuses to
6797 # link against other versions.
6798 version_type=sunos
6799 need_lib_prefix=no
6800 need_version=no
6801 case "$host_cpu" in
6802 ia64*)
6803 shrext_cmds='.so'
6804 hardcode_into_libs=yes
6805 dynamic_linker="$host_os dld.so"
6806 shlibpath_var=LD_LIBRARY_PATH
6807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6809 soname_spec='${libname}${release}${shared_ext}$major'
6810 if test "X$HPUX_IA64_MODE" = X32; then
6811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6812 else
6813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6814 fi
6815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6816 ;;
6817 hppa*64*)
6818 shrext_cmds='.sl'
6819 hardcode_into_libs=yes
6820 dynamic_linker="$host_os dld.sl"
6821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6824 soname_spec='${libname}${release}${shared_ext}$major'
6825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6827 ;;
6828 *)
6829 shrext_cmds='.sl'
6830 dynamic_linker="$host_os dld.sl"
6831 shlibpath_var=SHLIB_PATH
6832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6834 soname_spec='${libname}${release}${shared_ext}$major'
6835 ;;
6836 esac
6837 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6838 postinstall_cmds='chmod 555 $lib'
6839 ;;
6840
6841irix5* | irix6* | nonstopux*)
6842 case $host_os in
6843 nonstopux*) version_type=nonstopux ;;
6844 *)
6845 if test "$lt_cv_prog_gnu_ld" = yes; then
6846 version_type=linux
6847 else
6848 version_type=irix
6849 fi ;;
6850 esac
6851 need_lib_prefix=no
6852 need_version=no
6853 soname_spec='${libname}${release}${shared_ext}$major'
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6855 case $host_os in
6856 irix5* | nonstopux*)
6857 libsuff= shlibsuff=
6858 ;;
6859 *)
6860 case $LD in # libtool.m4 will add one of these switches to LD
6861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6862 libsuff= shlibsuff= libmagic=32-bit;;
6863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6864 libsuff=32 shlibsuff=N32 libmagic=N32;;
6865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6867 *) libsuff= shlibsuff= libmagic=never-match;;
6868 esac
6869 ;;
6870 esac
6871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6872 shlibpath_overrides_runpath=no
6873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6875 hardcode_into_libs=yes
6876 ;;
6877
6878# No shared lib support for Linux oldld, aout, or coff.
6879linux*oldld* | linux*aout* | linux*coff*)
6880 dynamic_linker=no
6881 ;;
6882
6883# This must be Linux ELF.
6884linux*)
6885 version_type=linux
6886 need_lib_prefix=no
6887 need_version=no
6888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6889 soname_spec='${libname}${release}${shared_ext}$major'
6890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6891 shlibpath_var=LD_LIBRARY_PATH
6892 shlibpath_overrides_runpath=no
6893 # This implies no fast_install, which is unacceptable.
6894 # Some rework will be needed to allow for fast_install
6895 # before this can be enabled.
6896 hardcode_into_libs=yes
6897
6898 # Append ld.so.conf contents to the search path
6899 if test -f /etc/ld.so.conf; then
6900 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6902 fi
6903
6904 # We used to test for /lib/ld.so.1 and disable shared libraries on
6905 # powerpc, because MkLinux only supported shared libraries with the
6906 # GNU dynamic linker. Since this was broken with cross compilers,
6907 # most powerpc-linux boxes support dynamic linking these days and
6908 # people can always --disable-shared, the test was removed, and we
6909 # assume the GNU/Linux dynamic linker is in use.
6910 dynamic_linker='GNU/Linux ld.so'
6911 ;;
6912
6913knetbsd*-gnu)
6914 version_type=linux
6915 need_lib_prefix=no
6916 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
6920 shlibpath_overrides_runpath=no
6921 hardcode_into_libs=yes
6922 dynamic_linker='GNU ld.so'
6923 ;;
6924
6925netbsd*)
6926 version_type=sunos
6927 need_lib_prefix=no
6928 need_version=no
6929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6932 dynamic_linker='NetBSD (a.out) ld.so'
6933 else
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 dynamic_linker='NetBSD ld.elf_so'
6937 fi
6938 shlibpath_var=LD_LIBRARY_PATH
6939 shlibpath_overrides_runpath=yes
6940 hardcode_into_libs=yes
6941 ;;
6942
6943newsos6)
6944 version_type=linux
6945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6946 shlibpath_var=LD_LIBRARY_PATH
6947 shlibpath_overrides_runpath=yes
6948 ;;
6949
6950nto-qnx*)
6951 version_type=linux
6952 need_lib_prefix=no
6953 need_version=no
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955 soname_spec='${libname}${release}${shared_ext}$major'
6956 shlibpath_var=LD_LIBRARY_PATH
6957 shlibpath_overrides_runpath=yes
6958 ;;
6959
6960openbsd*)
6961 version_type=sunos
6962 need_lib_prefix=no
6963 need_version=no
6964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6966 shlibpath_var=LD_LIBRARY_PATH
6967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6968 case $host_os in
6969 openbsd2.[89] | openbsd2.[89].*)
6970 shlibpath_overrides_runpath=no
6971 ;;
6972 *)
6973 shlibpath_overrides_runpath=yes
6974 ;;
6975 esac
6976 else
6977 shlibpath_overrides_runpath=yes
6978 fi
6979 ;;
6980
6981os2*)
6982 libname_spec='$name'
6983 shrext_cmds=".dll"
6984 need_lib_prefix=no
6985 library_names_spec='$libname${shared_ext} $libname.a'
6986 dynamic_linker='OS/2 ld.exe'
6987 shlibpath_var=LIBPATH
6988 ;;
6989
6990osf3* | osf4* | osf5*)
6991 version_type=osf
6992 need_lib_prefix=no
6993 need_version=no
6994 soname_spec='${libname}${release}${shared_ext}$major'
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996 shlibpath_var=LD_LIBRARY_PATH
6997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6999 ;;
7000
7001sco3.2v5*)
7002 version_type=osf
7003 soname_spec='${libname}${release}${shared_ext}$major'
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7005 shlibpath_var=LD_LIBRARY_PATH
7006 ;;
7007
7008solaris*)
7009 version_type=linux
7010 need_lib_prefix=no
7011 need_version=no
7012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7013 soname_spec='${libname}${release}${shared_ext}$major'
7014 shlibpath_var=LD_LIBRARY_PATH
7015 shlibpath_overrides_runpath=yes
7016 hardcode_into_libs=yes
7017 # ldd complains unless libraries are executable
7018 postinstall_cmds='chmod +x $lib'
7019 ;;
7020
7021sunos4*)
7022 version_type=sunos
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7025 shlibpath_var=LD_LIBRARY_PATH
7026 shlibpath_overrides_runpath=yes
7027 if test "$with_gnu_ld" = yes; then
7028 need_lib_prefix=no
7029 fi
7030 need_version=yes
7031 ;;
7032
7033sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7034 version_type=linux
7035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036 soname_spec='${libname}${release}${shared_ext}$major'
7037 shlibpath_var=LD_LIBRARY_PATH
7038 case $host_vendor in
7039 sni)
7040 shlibpath_overrides_runpath=no
7041 need_lib_prefix=no
7042 export_dynamic_flag_spec='${wl}-Blargedynsym'
7043 runpath_var=LD_RUN_PATH
7044 ;;
7045 siemens)
7046 need_lib_prefix=no
7047 ;;
7048 motorola)
7049 need_lib_prefix=no
7050 need_version=no
7051 shlibpath_overrides_runpath=no
7052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7053 ;;
7054 esac
7055 ;;
7056
7057sysv4*MP*)
7058 if test -d /usr/nec ;then
7059 version_type=linux
7060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7061 soname_spec='$libname${shared_ext}.$major'
7062 shlibpath_var=LD_LIBRARY_PATH
7063 fi
7064 ;;
7065
7066uts4*)
7067 version_type=linux
7068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7069 soname_spec='${libname}${release}${shared_ext}$major'
7070 shlibpath_var=LD_LIBRARY_PATH
7071 ;;
7072
7073*)
7074 dynamic_linker=no
7075 ;;
7076esac
7077echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7078echo "${ECHO_T}$dynamic_linker" >&6
7079test "$dynamic_linker" = no && can_build_shared=no
7080
7081
7082echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7083echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7084if test "${libltdl_cv_shlibext+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087
7088module=yes
7089eval libltdl_cv_shlibext=$shrext_cmds
7090
7091fi
7092echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7093echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7094if test -n "$libltdl_cv_shlibext"; then
7095
7096cat >>confdefs.h <<_ACEOF
7097#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7098_ACEOF
7099
7100fi
7101
7102
7103echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7104echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7105if test "${libltdl_cv_shlibpath_var+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 libltdl_cv_shlibpath_var="$shlibpath_var"
7109fi
7110echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7111echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7112if test -n "$libltdl_cv_shlibpath_var"; then
7113
7114cat >>confdefs.h <<_ACEOF
7115#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7116_ACEOF
7117
7118fi
7119
7120
7121echo "$as_me:$LINENO: checking for the default library search path" >&5
7122echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7123if test "${libltdl_cv_sys_search_path+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7127fi
7128echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7129echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7130if test -n "$libltdl_cv_sys_search_path"; then
7131 sys_search_path=
7132 for dir in $libltdl_cv_sys_search_path; do
7133 if test -z "$sys_search_path"; then
7134 sys_search_path="$dir"
7135 else
7136 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7137 fi
7138 done
7139
7140cat >>confdefs.h <<_ACEOF
7141#define LTDL_SYSSEARCHPATH "$sys_search_path"
7142_ACEOF
7143
7144fi
7145
7146echo "$as_me:$LINENO: checking for objdir" >&5
7147echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7148if test "${libltdl_cv_objdir+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 libltdl_cv_objdir="$objdir"
7152 if test -n "$objdir"; then
7153 :
7154 else
7155 rm -f .libs 2>/dev/null
7156 mkdir .libs 2>/dev/null
7157 if test -d .libs; then
7158 libltdl_cv_objdir=.libs
7159 else
7160 # MS-DOS does not allow filenames that begin with a dot.
7161 libltdl_cv_objdir=_libs
7162 fi
7163 rmdir .libs 2>/dev/null
7164 fi
7165
7166fi
7167echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7168echo "${ECHO_T}$libltdl_cv_objdir" >&6
7169
7170cat >>confdefs.h <<_ACEOF
7171#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7172_ACEOF
7173
7174
7175echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7176echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7177if test "${lt_cv_path_NM+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180 if test -n "$NM"; then
7181 # Let the user override the test.
7182 lt_cv_path_NM="$NM"
7183else
7184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7185 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7186 IFS="$lt_save_ifs"
7187 test -z "$ac_dir" && ac_dir=.
7188 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7189 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7190 # Check to see if the nm accepts a BSD-compat flag.
7191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7192 # nm: unknown option "B" ignored
7193 # Tru64's nm complains that /dev/null is an invalid object file
7194 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7195 */dev/null* | *'Invalid file or object type'*)
7196 lt_cv_path_NM="$tmp_nm -B"
7197 break
7198 ;;
7199 *)
7200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7201 */dev/null*)
7202 lt_cv_path_NM="$tmp_nm -p"
7203 break
7204 ;;
7205 *)
7206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7207 continue # so that we can try to find one that supports BSD flags
7208 ;;
7209 esac
7210 esac
7211 fi
7212 done
7213 IFS="$lt_save_ifs"
7214 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7215fi
7216fi
7217echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7218echo "${ECHO_T}$lt_cv_path_NM" >&6
7219NM="$lt_cv_path_NM"
7220
7221
7222
7223
7224
7225# Check for command to grab the raw symbol name followed by C symbol from nm.
7226echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7227echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7228if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231
7232# These are sane defaults that work on at least a few old systems.
7233# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7234
7235# Character class describing NM global symbol codes.
7236symcode='[BCDEGRST]'
7237
7238# Regexp to match symbols that can be accessed directly from C.
7239sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7240
7241# Transform the above into a raw symbol and a C symbol.
7242symxfrm='\1 \2\3 \3'
7243
7244# Transform an extracted symbol line into a proper C declaration
7245lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7246
7247# Transform an extracted symbol line into symbol name and symbol address
7248lt_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'"
7249
7250# Define system-specific variables.
7251case $host_os in
7252aix*)
7253 symcode='[BCDT]'
7254 ;;
7255cygwin* | mingw* | pw32*)
7256 symcode='[ABCDGISTW]'
7257 ;;
7258hpux*) # Its linker distinguishes data from code symbols
7259 if test "$host_cpu" = ia64; then
7260 symcode='[ABCDEGRST]'
7261 fi
7262 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7263 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'"
7264 ;;
7265linux*)
7266 if test "$host_cpu" = ia64; then
7267 symcode='[ABCDGIRSTW]'
7268 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7269 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'"
7270 fi
7271 ;;
7272irix* | nonstopux*)
7273 symcode='[BCDEGRST]'
7274 ;;
7275osf*)
7276 symcode='[BCDEGQRST]'
7277 ;;
7278solaris* | sysv5*)
7279 symcode='[BDRT]'
7280 ;;
7281sysv4)
7282 symcode='[DFNSTU]'
7283 ;;
7284esac
7285
7286# Handle CRLF in mingw tool chain
7287opt_cr=
7288case $build_os in
7289mingw*)
7290 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7291 ;;
7292esac
7293
7294# If we're using GNU nm, then use its standard symbol codes.
7295case `$NM -V 2>&1` in
7296*GNU* | *'with BFD'*)
7297 symcode='[ABCDGIRSTW]' ;;
7298esac
7299
7300# Try without a prefix undercore, then with it.
7301for ac_symprfx in "" "_"; do
7302
7303 # Write the raw and C identifiers.
7304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7305
7306 # Check to see that the pipe works correctly.
7307 pipe_works=no
7308
7309 rm -f conftest*
7310 cat > conftest.$ac_ext <<EOF
7311#ifdef __cplusplus
7312extern "C" {
7313#endif
7314char nm_test_var;
7315void nm_test_func(){}
7316#ifdef __cplusplus
7317}
7318#endif
7319int main(){nm_test_var='a';nm_test_func();return(0);}
7320EOF
7321
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; then
7327 # Now try to grab the symbols.
7328 nlist=conftest.nm
7329 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && test -s "$nlist"; then
7334 # Try sorting and uniquifying the output.
7335 if sort "$nlist" | uniq > "$nlist"T; then
7336 mv -f "$nlist"T "$nlist"
7337 else
7338 rm -f "$nlist"T
7339 fi
7340
7341 # Make sure that we snagged all the symbols we need.
7342 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7343 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7344 cat <<EOF > conftest.$ac_ext
7345#ifdef __cplusplus
7346extern "C" {
7347#endif
7348
7349EOF
7350 # Now generate the symbol file.
7351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7352
7353 cat <<EOF >> conftest.$ac_ext
7354#if defined (__STDC__) && __STDC__
7355# define lt_ptr_t void *
7356#else
7357# define lt_ptr_t char *
7358# define const
7359#endif
7360
7361/* The mapping between symbol names and symbols. */
7362const struct {
7363 const char *name;
7364 lt_ptr_t address;
7365}
7366lt_preloaded_symbols[] =
7367{
7368EOF
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7370 cat <<\EOF >> conftest.$ac_ext
7371 {0, (lt_ptr_t) 0}
7372};
7373
7374#ifdef __cplusplus
7375}
7376#endif
7377EOF
7378 # Now try linking the two files.
7379 mv conftest.$ac_objext conftstm.$ac_objext
7380 lt_save_LIBS="$LIBS"
7381 lt_save_CFLAGS="$CFLAGS"
7382 LIBS="conftstm.$ac_objext"
7383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7389 pipe_works=yes
7390 fi
7391 LIBS="$lt_save_LIBS"
7392 CFLAGS="$lt_save_CFLAGS"
7393 else
7394 echo "cannot find nm_test_func in $nlist" >&5
7395 fi
7396 else
7397 echo "cannot find nm_test_var in $nlist" >&5
7398 fi
7399 else
7400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7401 fi
7402 else
7403 echo "$progname: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 fi
7406 rm -f conftest* conftst*
7407
7408 # Do not use the global_symbol_pipe unless it works.
7409 if test "$pipe_works" = yes; then
7410 break
7411 else
7412 lt_cv_sys_global_symbol_pipe=
7413 fi
7414done
7415
7416fi
7417
7418if test -z "$lt_cv_sys_global_symbol_pipe"; then
7419 lt_cv_sys_global_symbol_to_cdecl=
7420fi
7421if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7422 echo "$as_me:$LINENO: result: failed" >&5
7423echo "${ECHO_T}failed" >&6
7424else
7425 echo "$as_me:$LINENO: result: ok" >&5
7426echo "${ECHO_T}ok" >&6
7427fi
7428
7429
7430echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7431echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7432if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7436 libltdl_cv_preloaded_symbols=yes
7437 else
7438 libltdl_cv_preloaded_symbols=no
7439 fi
7440
7441fi
7442echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7443echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7444if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7445
7446cat >>confdefs.h <<\_ACEOF
7447#define HAVE_PRELOADED_SYMBOLS 1
7448_ACEOF
7449
7450fi
7451
7452LIBADD_DL=
7453
7454ac_ext=c
7455ac_cpp='$CPP $CPPFLAGS'
7456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459
7460
7461echo "$as_me:$LINENO: checking for shl_load" >&5
7462echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7463if test "${ac_cv_func_shl_load+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466 cat >conftest.$ac_ext <<_ACEOF
7467/* confdefs.h. */
7468_ACEOF
7469cat confdefs.h >>conftest.$ac_ext
7470cat >>conftest.$ac_ext <<_ACEOF
7471/* end confdefs.h. */
7472/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7474#define shl_load innocuous_shl_load
7475
7476/* System header to define __stub macros and hopefully few prototypes,
7477 which can conflict with char shl_load (); below.
7478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479 <limits.h> exists even on freestanding compilers. */
7480
7481#ifdef __STDC__
7482# include <limits.h>
7483#else
7484# include <assert.h>
7485#endif
7486
7487#undef shl_load
7488
7489/* Override any gcc2 internal prototype to avoid an error. */
7490#ifdef __cplusplus
7491extern "C"
7492{
7493#endif
7494/* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7496char shl_load ();
7497/* The GNU C library defines this for functions which it implements
7498 to always fail with ENOSYS. Some functions are actually named
7499 something starting with __ and the normal name is an alias. */
7500#if defined (__stub_shl_load) || defined (__stub___shl_load)
7501choke me
7502#else
7503char (*f) () = shl_load;
7504#endif
7505#ifdef __cplusplus
7506}
7507#endif
7508
7509int
7510main ()
7511{
7512return f != shl_load;
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext conftest$ac_exeext
7518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest$ac_exeext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_cv_func_shl_load=yes
7540else
7541 echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544ac_cv_func_shl_load=no
7545fi
7546rm -f conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7548fi
7549echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7550echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7551if test $ac_cv_func_shl_load = yes; then
7552
7553cat >>confdefs.h <<\_ACEOF
7554#define HAVE_SHL_LOAD 1
7555_ACEOF
7556
7557else
7558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7559echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7560if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 ac_check_lib_save_LIBS=$LIBS
7564LIBS="-ldld $LIBS"
7565cat >conftest.$ac_ext <<_ACEOF
7566/* confdefs.h. */
7567_ACEOF
7568cat confdefs.h >>conftest.$ac_ext
7569cat >>conftest.$ac_ext <<_ACEOF
7570/* end confdefs.h. */
7571
7572/* Override any gcc2 internal prototype to avoid an error. */
7573#ifdef __cplusplus
7574extern "C"
7575#endif
7576/* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7578char shl_load ();
7579int
7580main ()
7581{
7582shl_load ();
7583 ;
7584 return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext conftest$ac_exeext
7588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589 (eval $ac_link) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -z "$ac_c_werror_flag"
7597 || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_dld_shl_load=yes
7610else
7611 echo "$as_me: failed program was:" >&5
7612sed 's/^/| /' conftest.$ac_ext >&5
7613
7614ac_cv_lib_dld_shl_load=no
7615fi
7616rm -f conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618LIBS=$ac_check_lib_save_LIBS
7619fi
7620echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7621echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7622if test $ac_cv_lib_dld_shl_load = yes; then
7623
7624cat >>confdefs.h <<\_ACEOF
7625#define HAVE_SHL_LOAD 1
7626_ACEOF
7627
7628 LIBADD_DL="$LIBADD_DL -ldld"
7629else
7630 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7631echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7632if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635 ac_check_lib_save_LIBS=$LIBS
7636LIBS="-ldl $LIBS"
7637cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
7643
7644/* Override any gcc2 internal prototype to avoid an error. */
7645#ifdef __cplusplus
7646extern "C"
7647#endif
7648/* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650char dlopen ();
7651int
7652main ()
7653{
7654dlopen ();
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext conftest$ac_exeext
7660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest$ac_exeext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_cv_lib_dl_dlopen=yes
7682else
7683 echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686ac_cv_lib_dl_dlopen=no
7687fi
7688rm -f conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690LIBS=$ac_check_lib_save_LIBS
7691fi
7692echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7693echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7694if test $ac_cv_lib_dl_dlopen = yes; then
7695
7696cat >>confdefs.h <<\_ACEOF
7697#define HAVE_LIBDL 1
7698_ACEOF
7699
7700 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7701else
7702 cat >conftest.$ac_ext <<_ACEOF
7703/* confdefs.h. */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h. */
7708#if HAVE_DLFCN_H
7709# include <dlfcn.h>
7710#endif
7711
7712int
7713main ()
7714{
7715dlopen(0, 0);
7716 ;
7717 return 0;
7718}
7719_ACEOF
7720rm -f conftest.$ac_objext conftest$ac_exeext
7721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742
7743cat >>confdefs.h <<\_ACEOF
7744#define HAVE_LIBDL 1
7745_ACEOF
7746 libltdl_cv_func_dlopen="yes"
7747else
7748 echo "$as_me: failed program was:" >&5
7749sed 's/^/| /' conftest.$ac_ext >&5
7750
7751echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7752echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7753if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756 ac_check_lib_save_LIBS=$LIBS
7757LIBS="-lsvld $LIBS"
7758cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h. */
7760_ACEOF
7761cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h. */
7764
7765/* Override any gcc2 internal prototype to avoid an error. */
7766#ifdef __cplusplus
7767extern "C"
7768#endif
7769/* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */
7771char dlopen ();
7772int
7773main ()
7774{
7775dlopen ();
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext conftest$ac_exeext
7781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_lib_svld_dlopen=yes
7803else
7804 echo "$as_me: failed program was:" >&5
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7807ac_cv_lib_svld_dlopen=no
7808fi
7809rm -f conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811LIBS=$ac_check_lib_save_LIBS
7812fi
7813echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7814echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7815if test $ac_cv_lib_svld_dlopen = yes; then
7816
7817cat >>confdefs.h <<\_ACEOF
7818#define HAVE_LIBDL 1
7819_ACEOF
7820
7821 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7822else
7823 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7824echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7825if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 ac_check_lib_save_LIBS=$LIBS
7829LIBS="-ldld $LIBS"
7830cat >conftest.$ac_ext <<_ACEOF
7831/* confdefs.h. */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h. */
7836
7837/* Override any gcc2 internal prototype to avoid an error. */
7838#ifdef __cplusplus
7839extern "C"
7840#endif
7841/* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7843char dld_link ();
7844int
7845main ()
7846{
7847dld_link ();
7848 ;
7849 return 0;
7850}
7851_ACEOF
7852rm -f conftest.$ac_objext conftest$ac_exeext
7853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag"
7862 || test ! -s conftest.err'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_lib_dld_dld_link=yes
7875else
7876 echo "$as_me: failed program was:" >&5
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879ac_cv_lib_dld_dld_link=no
7880fi
7881rm -f conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883LIBS=$ac_check_lib_save_LIBS
7884fi
7885echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7886echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7887if test $ac_cv_lib_dld_dld_link = yes; then
7888
7889cat >>confdefs.h <<\_ACEOF
7890#define HAVE_DLD 1
7891_ACEOF
7892
7893 LIBADD_DL="$LIBADD_DL -ldld"
7894else
7895 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7896echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7897if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 cat >conftest.$ac_ext <<_ACEOF
7901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
7906/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7908#define _dyld_func_lookup innocuous__dyld_func_lookup
7909
7910/* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char _dyld_func_lookup (); below.
7912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7913 <limits.h> exists even on freestanding compilers. */
7914
7915#ifdef __STDC__
7916# include <limits.h>
7917#else
7918# include <assert.h>
7919#endif
7920
7921#undef _dyld_func_lookup
7922
7923/* Override any gcc2 internal prototype to avoid an error. */
7924#ifdef __cplusplus
7925extern "C"
7926{
7927#endif
7928/* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930char _dyld_func_lookup ();
7931/* The GNU C library defines this for functions which it implements
7932 to always fail with ENOSYS. Some functions are actually named
7933 something starting with __ and the normal name is an alias. */
7934#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7935choke me
7936#else
7937char (*f) () = _dyld_func_lookup;
7938#endif
7939#ifdef __cplusplus
7940}
7941#endif
7942
7943int
7944main ()
7945{
7946return f != _dyld_func_lookup;
7947 ;
7948 return 0;
7949}
7950_ACEOF
7951rm -f conftest.$ac_objext conftest$ac_exeext
7952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953 (eval $ac_link) 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_func__dyld_func_lookup=yes
7974else
7975 echo "$as_me: failed program was:" >&5
7976sed 's/^/| /' conftest.$ac_ext >&5
7977
7978ac_cv_func__dyld_func_lookup=no
7979fi
7980rm -f conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982fi
7983echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7984echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7985if test $ac_cv_func__dyld_func_lookup = yes; then
7986
7987cat >>confdefs.h <<\_ACEOF
7988#define HAVE_DYLD 1
7989_ACEOF
7990
7991fi
7992
7993
7994fi
7995
7996
7997fi
7998
7999
8000fi
8001rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003
8004fi
8005
8006
8007fi
8008
8009
8010fi
8011
8012
8013if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8014then
8015 lt_save_LIBS="$LIBS"
8016 LIBS="$LIBS $LIBADD_DL"
8017
8018for ac_func in dlerror
8019do
8020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8021echo "$as_me:$LINENO: checking for $ac_func" >&5
8022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8023if eval "test \"\${$as_ac_var+set}\" = set"; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 cat >conftest.$ac_ext <<_ACEOF
8027/* confdefs.h. */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h. */
8032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8034#define $ac_func innocuous_$ac_func
8035
8036/* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char $ac_func (); below.
8038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039 <limits.h> exists even on freestanding compilers. */
8040
8041#ifdef __STDC__
8042# include <limits.h>
8043#else
8044# include <assert.h>
8045#endif
8046
8047#undef $ac_func
8048
8049/* Override any gcc2 internal prototype to avoid an error. */
8050#ifdef __cplusplus
8051extern "C"
8052{
8053#endif
8054/* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8056char $ac_func ();
8057/* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061choke me
8062#else
8063char (*f) () = $ac_func;
8064#endif
8065#ifdef __cplusplus
8066}
8067#endif
8068
8069int
8070main ()
8071{
8072return f != $ac_func;
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext conftest$ac_exeext
8078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 eval "$as_ac_var=yes"
8100else
8101 echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
8104eval "$as_ac_var=no"
8105fi
8106rm -f conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108fi
8109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8111if test `eval echo '${'$as_ac_var'}'` = yes; then
8112 cat >>confdefs.h <<_ACEOF
8113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8114_ACEOF
8115
8116fi
8117done
8118
8119 LIBS="$lt_save_LIBS"
8120fi
8121ac_ext=c
8122ac_cpp='$CPP $CPPFLAGS'
8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127
8128
8129echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8130echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8131if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 ac_cv_sys_symbol_underscore=no
8135 cat > conftest.$ac_ext <<EOF
8136void nm_test_func(){}
8137int main(){nm_test_func;return 0;}
8138EOF
8139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; then
8144 # Now try to grab the symbols.
8145 ac_nlist=conftest.nm
8146 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8147 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && test -s "$ac_nlist"; then
8151 # See whether the symbols have a leading underscore.
8152 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8153 ac_cv_sys_symbol_underscore=yes
8154 else
8155 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8156 :
8157 else
8158 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8159 fi
8160 fi
8161 else
8162 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8163 fi
8164 else
8165 echo "configure: failed program was:" >&5
8166 cat conftest.c >&5
8167 fi
8168 rm -rf conftest*
8169
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8172echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8173
8174
8175if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8176 if test x"$libltdl_cv_func_dlopen" = xyes ||
8177 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8178 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8179echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8180if test "${libltdl_cv_need_uscore+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 libltdl_cv_need_uscore=unknown
8184 save_LIBS="$LIBS"
8185 LIBS="$LIBS $LIBADD_DL"
8186 if test "$cross_compiling" = yes; then :
8187 libltdl_cv_need_uscore=cross
8188else
8189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8190 lt_status=$lt_dlunknown
8191 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +00008192#line 8192 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008193#include "confdefs.h"
8194
8195#if HAVE_DLFCN_H
8196#include <dlfcn.h>
8197#endif
8198
8199#include <stdio.h>
8200
8201#ifdef RTLD_GLOBAL
8202# define LT_DLGLOBAL RTLD_GLOBAL
8203#else
8204# ifdef DL_GLOBAL
8205# define LT_DLGLOBAL DL_GLOBAL
8206# else
8207# define LT_DLGLOBAL 0
8208# endif
8209#endif
8210
8211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8212 find out it does not work in some platform. */
8213#ifndef LT_DLLAZY_OR_NOW
8214# ifdef RTLD_LAZY
8215# define LT_DLLAZY_OR_NOW RTLD_LAZY
8216# else
8217# ifdef DL_LAZY
8218# define LT_DLLAZY_OR_NOW DL_LAZY
8219# else
8220# ifdef RTLD_NOW
8221# define LT_DLLAZY_OR_NOW RTLD_NOW
8222# else
8223# ifdef DL_NOW
8224# define LT_DLLAZY_OR_NOW DL_NOW
8225# else
8226# define LT_DLLAZY_OR_NOW 0
8227# endif
8228# endif
8229# endif
8230# endif
8231#endif
8232
8233#ifdef __cplusplus
8234extern "C" void exit (int);
8235#endif
8236
8237void fnord() { int i=42;}
8238int main ()
8239{
8240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8241 int status = $lt_dlunknown;
8242
8243 if (self)
8244 {
8245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8247 /* dlclose (self); */
8248 }
8249
8250 exit (status);
8251}
8252EOF
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8258 (./conftest; exit; ) 2>/dev/null
8259 lt_status=$?
8260 case x$lt_status in
8261 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8262 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8263 x$lt_unknown|x*) ;;
8264 esac
8265 else :
8266 # compilation failed
8267
8268 fi
8269fi
8270rm -fr conftest*
8271
8272 LIBS="$save_LIBS"
8273
8274fi
8275echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8276echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8277 fi
8278fi
8279
8280if test x"$libltdl_cv_need_uscore" = xyes; then
8281
8282cat >>confdefs.h <<\_ACEOF
8283#define NEED_USCORE 1
8284_ACEOF
8285
8286fi
8287
8288
8289echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8290echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8291if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293else
8294 # PORTME does your system automatically load deplibs for dlopen?
8295 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8296 # For now, we just catch OSes we know something about -- in the
8297 # future, we'll try test this programmatically.
8298 libltdl_cv_sys_dlopen_deplibs=unknown
8299 case "$host_os" in
8300 aix3*|aix4.1.*|aix4.2.*)
8301 # Unknown whether this is true for these versions of AIX, but
8302 # we want this `case' here to explicitly catch those versions.
8303 libltdl_cv_sys_dlopen_deplibs=unknown
8304 ;;
8305 aix[45]*)
8306 libltdl_cv_sys_dlopen_deplibs=yes
8307 ;;
8308 darwin*)
8309 # Assuming the user has installed a libdl from somewhere, this is true
8310 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8311 libltdl_cv_sys_dlopen_deplibs=yes
8312 ;;
8313 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8314 # GNU and its variants, using gnu ld.so (Glibc)
8315 libltdl_cv_sys_dlopen_deplibs=yes
8316 ;;
8317 hpux10*|hpux11*)
8318 libltdl_cv_sys_dlopen_deplibs=yes
8319 ;;
8320 irix[12345]*|irix6.[01]*)
8321 # Catch all versions of IRIX before 6.2, and indicate that we don't
8322 # know how it worked for any of those versions.
8323 libltdl_cv_sys_dlopen_deplibs=unknown
8324 ;;
8325 irix*)
8326 # The case above catches anything before 6.2, and it's known that
8327 # at 6.2 and later dlopen does load deplibs.
8328 libltdl_cv_sys_dlopen_deplibs=yes
8329 ;;
8330 netbsd*)
8331 libltdl_cv_sys_dlopen_deplibs=yes
8332 ;;
8333 openbsd*)
8334 libltdl_cv_sys_dlopen_deplibs=yes
8335 ;;
8336 osf[1234]*)
8337 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8338 # it did *not* use an RPATH in a shared library to find objects the
8339 # library depends on, so we explictly say `no'.
8340 libltdl_cv_sys_dlopen_deplibs=no
8341 ;;
8342 osf5.0|osf5.0a|osf5.1)
8343 # dlopen *does* load deplibs and with the right loader patch applied
8344 # it even uses RPATH in a shared library to search for shared objects
8345 # that the library depends on, but there's no easy way to know if that
8346 # patch is installed. Since this is the case, all we can really
8347 # say is unknown -- it depends on the patch being installed. If
8348 # it is, this changes to `yes'. Without it, it would be `no'.
8349 libltdl_cv_sys_dlopen_deplibs=unknown
8350 ;;
8351 osf*)
8352 # the two cases above should catch all versions of osf <= 5.1. Read
8353 # the comments above for what we know about them.
8354 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8355 # is used to find them so we can finally say `yes'.
8356 libltdl_cv_sys_dlopen_deplibs=yes
8357 ;;
8358 solaris*)
8359 libltdl_cv_sys_dlopen_deplibs=yes
8360 ;;
8361 esac
8362
8363fi
8364echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8365echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8366if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8367
8368cat >>confdefs.h <<\_ACEOF
8369#define LTDL_DLOPEN_DEPLIBS 1
8370_ACEOF
8371
8372fi
8373
8374
8375for ac_header in argz.h
8376do
8377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383fi
8384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8386else
8387 # Is the header compilable?
8388echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8390cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
8396$ac_includes_default
8397#include <$ac_header>
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler=yes
8422else
8423 echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426ac_header_compiler=no
8427fi
8428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430echo "${ECHO_T}$ac_header_compiler" >&6
8431
8432# Is the header present?
8433echo "$as_me:$LINENO: checking $ac_header presence" >&5
8434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8435cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
8441#include <$ac_header>
8442_ACEOF
8443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } >/dev/null; then
8451 if test -s conftest.err; then
8452 ac_cpp_err=$ac_c_preproc_warn_flag
8453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8454 else
8455 ac_cpp_err=
8456 fi
8457else
8458 ac_cpp_err=yes
8459fi
8460if test -z "$ac_cpp_err"; then
8461 ac_header_preproc=yes
8462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 ac_header_preproc=no
8467fi
8468rm -f conftest.err conftest.$ac_ext
8469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470echo "${ECHO_T}$ac_header_preproc" >&6
8471
8472# So? What about this header?
8473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8474 yes:no: )
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8479 ac_header_preproc=yes
8480 ;;
8481 no:yes:* )
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8494 (
8495 cat <<\_ASBOX
8496## ----------------------------------- ##
8497## Report this to llvmbugs@cs.uiuc.edu ##
8498## ----------------------------------- ##
8499_ASBOX
8500 ) |
8501 sed "s/^/$as_me: WARNING: /" >&2
8502 ;;
8503esac
8504echo "$as_me:$LINENO: checking for $ac_header" >&5
8505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 eval "$as_ac_Header=\$ac_header_preproc"
8510fi
8511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513
8514fi
8515if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516 cat >>confdefs.h <<_ACEOF
8517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8518_ACEOF
8519
8520fi
8521
8522done
8523
8524
8525echo "$as_me:$LINENO: checking for error_t" >&5
8526echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8527if test "${ac_cv_type_error_t+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529else
8530 cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536#if HAVE_ARGZ_H
8537# include <argz.h>
8538#endif
8539
8540int
8541main ()
8542{
8543if ((error_t *) 0)
8544 return 0;
8545if (sizeof (error_t))
8546 return 0;
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_type_error_t=yes
8574else
8575 echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578ac_cv_type_error_t=no
8579fi
8580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8581fi
8582echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8583echo "${ECHO_T}$ac_cv_type_error_t" >&6
8584if test $ac_cv_type_error_t = yes; then
8585
8586cat >>confdefs.h <<_ACEOF
8587#define HAVE_ERROR_T 1
8588_ACEOF
8589
8590
8591else
8592
8593cat >>confdefs.h <<\_ACEOF
8594#define error_t int
8595_ACEOF
8596
8597fi
8598
8599
8600
8601
8602
8603
8604
8605for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8606do
8607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608echo "$as_me:$LINENO: checking for $ac_func" >&5
8609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8610if eval "test \"\${$as_ac_var+set}\" = set"; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613 cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h. */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h. */
8619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8621#define $ac_func innocuous_$ac_func
8622
8623/* System header to define __stub macros and hopefully few prototypes,
8624 which can conflict with char $ac_func (); below.
8625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 <limits.h> exists even on freestanding compilers. */
8627
8628#ifdef __STDC__
8629# include <limits.h>
8630#else
8631# include <assert.h>
8632#endif
8633
8634#undef $ac_func
8635
8636/* Override any gcc2 internal prototype to avoid an error. */
8637#ifdef __cplusplus
8638extern "C"
8639{
8640#endif
8641/* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8643char $ac_func ();
8644/* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648choke me
8649#else
8650char (*f) () = $ac_func;
8651#endif
8652#ifdef __cplusplus
8653}
8654#endif
8655
8656int
8657main ()
8658{
8659return f != $ac_func;
8660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext conftest$ac_exeext
8665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 eval "$as_ac_var=yes"
8687else
8688 echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
8691eval "$as_ac_var=no"
8692fi
8693rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695fi
8696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8698if test `eval echo '${'$as_ac_var'}'` = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8701_ACEOF
8702
8703fi
8704done
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8734 stdio.h unistd.h
8735do
8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo "$as_me:$LINENO: checking for $ac_header" >&5
8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742fi
8743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745else
8746 # Is the header compilable?
8747echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749cat >conftest.$ac_ext <<_ACEOF
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
8755$ac_includes_default
8756#include <$ac_header>
8757_ACEOF
8758rm -f conftest.$ac_objext
8759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760 (eval $ac_compile) 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_objext'
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 ac_header_compiler=yes
8781else
8782 echo "$as_me: failed program was:" >&5
8783sed 's/^/| /' conftest.$ac_ext >&5
8784
8785ac_header_compiler=no
8786fi
8787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8789echo "${ECHO_T}$ac_header_compiler" >&6
8790
8791# Is the header present?
8792echo "$as_me:$LINENO: checking $ac_header presence" >&5
8793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8794cat >conftest.$ac_ext <<_ACEOF
8795/* confdefs.h. */
8796_ACEOF
8797cat confdefs.h >>conftest.$ac_ext
8798cat >>conftest.$ac_ext <<_ACEOF
8799/* end confdefs.h. */
8800#include <$ac_header>
8801_ACEOF
8802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } >/dev/null; then
8810 if test -s conftest.err; then
8811 ac_cpp_err=$ac_c_preproc_warn_flag
8812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8813 else
8814 ac_cpp_err=
8815 fi
8816else
8817 ac_cpp_err=yes
8818fi
8819if test -z "$ac_cpp_err"; then
8820 ac_header_preproc=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_header_preproc=no
8826fi
8827rm -f conftest.err conftest.$ac_ext
8828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8829echo "${ECHO_T}$ac_header_preproc" >&6
8830
8831# So? What about this header?
8832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8833 yes:no: )
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8838 ac_header_preproc=yes
8839 ;;
8840 no:yes:* )
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8853 (
8854 cat <<\_ASBOX
8855## ----------------------------------- ##
8856## Report this to llvmbugs@cs.uiuc.edu ##
8857## ----------------------------------- ##
8858_ASBOX
8859 ) |
8860 sed "s/^/$as_me: WARNING: /" >&2
8861 ;;
8862esac
8863echo "$as_me:$LINENO: checking for $ac_header" >&5
8864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8865if eval "test \"\${$as_ac_Header+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868 eval "$as_ac_Header=\$ac_header_preproc"
8869fi
8870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8872
8873fi
8874if test `eval echo '${'$as_ac_Header'}'` = yes; then
8875 cat >>confdefs.h <<_ACEOF
8876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8877_ACEOF
8878
8879fi
8880
8881done
8882
8883
8884
8885
8886
8887for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8888do
8889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8890if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891 echo "$as_me:$LINENO: checking for $ac_header" >&5
8892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895fi
8896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8898else
8899 # Is the header compilable?
8900echo "$as_me:$LINENO: checking $ac_header usability" >&5
8901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8902cat >conftest.$ac_ext <<_ACEOF
8903/* confdefs.h. */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h. */
8908$ac_includes_default
8909#include <$ac_header>
8910_ACEOF
8911rm -f conftest.$ac_objext
8912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913 (eval $ac_compile) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest.$ac_objext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_header_compiler=yes
8934else
8935 echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5
8937
8938ac_header_compiler=no
8939fi
8940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8942echo "${ECHO_T}$ac_header_compiler" >&6
8943
8944# Is the header present?
8945echo "$as_me:$LINENO: checking $ac_header presence" >&5
8946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8947cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h. */
8953#include <$ac_header>
8954_ACEOF
8955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } >/dev/null; then
8963 if test -s conftest.err; then
8964 ac_cpp_err=$ac_c_preproc_warn_flag
8965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8966 else
8967 ac_cpp_err=
8968 fi
8969else
8970 ac_cpp_err=yes
8971fi
8972if test -z "$ac_cpp_err"; then
8973 ac_header_preproc=yes
8974else
8975 echo "$as_me: failed program was:" >&5
8976sed 's/^/| /' conftest.$ac_ext >&5
8977
8978 ac_header_preproc=no
8979fi
8980rm -f conftest.err conftest.$ac_ext
8981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8982echo "${ECHO_T}$ac_header_preproc" >&6
8983
8984# So? What about this header?
8985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8986 yes:no: )
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8991 ac_header_preproc=yes
8992 ;;
8993 no:yes:* )
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9006 (
9007 cat <<\_ASBOX
9008## ----------------------------------- ##
9009## Report this to llvmbugs@cs.uiuc.edu ##
9010## ----------------------------------- ##
9011_ASBOX
9012 ) |
9013 sed "s/^/$as_me: WARNING: /" >&2
9014 ;;
9015esac
9016echo "$as_me:$LINENO: checking for $ac_header" >&5
9017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 eval "$as_ac_Header=\$ac_header_preproc"
9022fi
9023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9025
9026fi
9027if test `eval echo '${'$as_ac_Header'}'` = yes; then
9028 cat >>confdefs.h <<_ACEOF
9029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9030_ACEOF
9031
9032fi
9033
9034done
9035
9036
9037
9038for ac_header in string.h strings.h
9039do
9040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo "$as_me:$LINENO: checking for $ac_header" >&5
9043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046fi
9047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049else
9050 # Is the header compilable?
9051echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053cat >conftest.$ac_ext <<_ACEOF
9054/* confdefs.h. */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h. */
9059$ac_includes_default
9060#include <$ac_header>
9061_ACEOF
9062rm -f conftest.$ac_objext
9063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_header_compiler=yes
9085else
9086 echo "$as_me: failed program was:" >&5
9087sed 's/^/| /' conftest.$ac_ext >&5
9088
9089ac_header_compiler=no
9090fi
9091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093echo "${ECHO_T}$ac_header_compiler" >&6
9094
9095# Is the header present?
9096echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h. */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h. */
9104#include <$ac_header>
9105_ACEOF
9106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } >/dev/null; then
9114 if test -s conftest.err; then
9115 ac_cpp_err=$ac_c_preproc_warn_flag
9116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9117 else
9118 ac_cpp_err=
9119 fi
9120else
9121 ac_cpp_err=yes
9122fi
9123if test -z "$ac_cpp_err"; then
9124 ac_header_preproc=yes
9125else
9126 echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129 ac_header_preproc=no
9130fi
9131rm -f conftest.err conftest.$ac_ext
9132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133echo "${ECHO_T}$ac_header_preproc" >&6
9134
9135# So? What about this header?
9136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137 yes:no: )
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9143 ;;
9144 no:yes:* )
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9157 (
9158 cat <<\_ASBOX
9159## ----------------------------------- ##
9160## Report this to llvmbugs@cs.uiuc.edu ##
9161## ----------------------------------- ##
9162_ASBOX
9163 ) |
9164 sed "s/^/$as_me: WARNING: /" >&2
9165 ;;
9166esac
9167echo "$as_me:$LINENO: checking for $ac_header" >&5
9168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172 eval "$as_ac_Header=\$ac_header_preproc"
9173fi
9174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176
9177fi
9178if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181_ACEOF
9182 break
9183fi
9184
9185done
9186
9187
9188
9189
9190for ac_func in strchr index
9191do
9192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9193echo "$as_me:$LINENO: checking for $ac_func" >&5
9194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9195if eval "test \"\${$as_ac_var+set}\" = set"; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198 cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h. */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h. */
9204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9206#define $ac_func innocuous_$ac_func
9207
9208/* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char $ac_func (); below.
9210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211 <limits.h> exists even on freestanding compilers. */
9212
9213#ifdef __STDC__
9214# include <limits.h>
9215#else
9216# include <assert.h>
9217#endif
9218
9219#undef $ac_func
9220
9221/* Override any gcc2 internal prototype to avoid an error. */
9222#ifdef __cplusplus
9223extern "C"
9224{
9225#endif
9226/* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9228char $ac_func ();
9229/* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
9232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9233choke me
9234#else
9235char (*f) () = $ac_func;
9236#endif
9237#ifdef __cplusplus
9238}
9239#endif
9240
9241int
9242main ()
9243{
9244return f != $ac_func;
9245 ;
9246 return 0;
9247}
9248_ACEOF
9249rm -f conftest.$ac_objext conftest$ac_exeext
9250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 (eval $ac_link) 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 eval "$as_ac_var=yes"
9272else
9273 echo "$as_me: failed program was:" >&5
9274sed 's/^/| /' conftest.$ac_ext >&5
9275
9276eval "$as_ac_var=no"
9277fi
9278rm -f conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280fi
9281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9283if test `eval echo '${'$as_ac_var'}'` = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9286_ACEOF
9287 break
9288fi
9289done
9290
9291
9292
9293for ac_func in strrchr rindex
9294do
9295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296echo "$as_me:$LINENO: checking for $ac_func" >&5
9297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298if eval "test \"\${$as_ac_var+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300else
9301 cat >conftest.$ac_ext <<_ACEOF
9302/* confdefs.h. */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h. */
9307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9309#define $ac_func innocuous_$ac_func
9310
9311/* System header to define __stub macros and hopefully few prototypes,
9312 which can conflict with char $ac_func (); below.
9313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314 <limits.h> exists even on freestanding compilers. */
9315
9316#ifdef __STDC__
9317# include <limits.h>
9318#else
9319# include <assert.h>
9320#endif
9321
9322#undef $ac_func
9323
9324/* Override any gcc2 internal prototype to avoid an error. */
9325#ifdef __cplusplus
9326extern "C"
9327{
9328#endif
9329/* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331char $ac_func ();
9332/* The GNU C library defines this for functions which it implements
9333 to always fail with ENOSYS. Some functions are actually named
9334 something starting with __ and the normal name is an alias. */
9335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336choke me
9337#else
9338char (*f) () = $ac_func;
9339#endif
9340#ifdef __cplusplus
9341}
9342#endif
9343
9344int
9345main ()
9346{
9347return f != $ac_func;
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext conftest$ac_exeext
9353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 eval "$as_ac_var=yes"
9375else
9376 echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379eval "$as_ac_var=no"
9380fi
9381rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383fi
9384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9386if test `eval echo '${'$as_ac_var'}'` = yes; then
9387 cat >>confdefs.h <<_ACEOF
9388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389_ACEOF
9390 break
9391fi
9392done
9393
9394
9395
9396for ac_func in memcpy bcopy
9397do
9398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399echo "$as_me:$LINENO: checking for $ac_func" >&5
9400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9401if eval "test \"\${$as_ac_var+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
9404 cat >conftest.$ac_ext <<_ACEOF
9405/* confdefs.h. */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h. */
9410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9412#define $ac_func innocuous_$ac_func
9413
9414/* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char $ac_func (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9418
9419#ifdef __STDC__
9420# include <limits.h>
9421#else
9422# include <assert.h>
9423#endif
9424
9425#undef $ac_func
9426
9427/* Override any gcc2 internal prototype to avoid an error. */
9428#ifdef __cplusplus
9429extern "C"
9430{
9431#endif
9432/* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434char $ac_func ();
9435/* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9439choke me
9440#else
9441char (*f) () = $ac_func;
9442#endif
9443#ifdef __cplusplus
9444}
9445#endif
9446
9447int
9448main ()
9449{
9450return f != $ac_func;
9451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 eval "$as_ac_var=yes"
9478else
9479 echo "$as_me: failed program was:" >&5
9480sed 's/^/| /' conftest.$ac_ext >&5
9481
9482eval "$as_ac_var=no"
9483fi
9484rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486fi
9487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9489if test `eval echo '${'$as_ac_var'}'` = yes; then
9490 cat >>confdefs.h <<_ACEOF
9491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9492_ACEOF
9493 break
9494fi
9495done
9496
9497
9498
9499for ac_func in memmove strcmp
9500do
9501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502echo "$as_me:$LINENO: checking for $ac_func" >&5
9503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9504if eval "test \"\${$as_ac_var+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
9513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9515#define $ac_func innocuous_$ac_func
9516
9517/* System header to define __stub macros and hopefully few prototypes,
9518 which can conflict with char $ac_func (); below.
9519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520 <limits.h> exists even on freestanding compilers. */
9521
9522#ifdef __STDC__
9523# include <limits.h>
9524#else
9525# include <assert.h>
9526#endif
9527
9528#undef $ac_func
9529
9530/* Override any gcc2 internal prototype to avoid an error. */
9531#ifdef __cplusplus
9532extern "C"
9533{
9534#endif
9535/* We use char because int might match the return type of a gcc2
9536 builtin and then its argument prototype would still apply. */
9537char $ac_func ();
9538/* The GNU C library defines this for functions which it implements
9539 to always fail with ENOSYS. Some functions are actually named
9540 something starting with __ and the normal name is an alias. */
9541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542choke me
9543#else
9544char (*f) () = $ac_func;
9545#endif
9546#ifdef __cplusplus
9547}
9548#endif
9549
9550int
9551main ()
9552{
9553return f != $ac_func;
9554 ;
9555 return 0;
9556}
9557_ACEOF
9558rm -f conftest.$ac_objext conftest$ac_exeext
9559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -z "$ac_c_werror_flag"
9568 || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 eval "$as_ac_var=yes"
9581else
9582 echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
9584
9585eval "$as_ac_var=no"
9586fi
9587rm -f conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589fi
9590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9592if test `eval echo '${'$as_ac_var'}'` = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9595_ACEOF
9596
9597fi
9598done
9599
9600
9601
9602
9603for ac_func in closedir opendir readdir
9604do
9605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606echo "$as_me:$LINENO: checking for $ac_func" >&5
9607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9608if eval "test \"\${$as_ac_var+set}\" = set"; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610else
9611 cat >conftest.$ac_ext <<_ACEOF
9612/* confdefs.h. */
9613_ACEOF
9614cat confdefs.h >>conftest.$ac_ext
9615cat >>conftest.$ac_ext <<_ACEOF
9616/* end confdefs.h. */
9617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619#define $ac_func innocuous_$ac_func
9620
9621/* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char $ac_func (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9625
9626#ifdef __STDC__
9627# include <limits.h>
9628#else
9629# include <assert.h>
9630#endif
9631
9632#undef $ac_func
9633
9634/* Override any gcc2 internal prototype to avoid an error. */
9635#ifdef __cplusplus
9636extern "C"
9637{
9638#endif
9639/* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9641char $ac_func ();
9642/* The GNU C library defines this for functions which it implements
9643 to always fail with ENOSYS. Some functions are actually named
9644 something starting with __ and the normal name is an alias. */
9645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9646choke me
9647#else
9648char (*f) () = $ac_func;
9649#endif
9650#ifdef __cplusplus
9651}
9652#endif
9653
9654int
9655main ()
9656{
9657return f != $ac_func;
9658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext conftest$ac_exeext
9663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest$ac_exeext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 eval "$as_ac_var=yes"
9685else
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689eval "$as_ac_var=no"
9690fi
9691rm -f conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693fi
9694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9696if test `eval echo '${'$as_ac_var'}'` = yes; then
9697 cat >>confdefs.h <<_ACEOF
9698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9699_ACEOF
9700
9701fi
9702done
9703
9704
9705# Check whether --enable-shared or --disable-shared was given.
9706if test "${enable_shared+set}" = set; then
9707 enableval="$enable_shared"
9708 p=${PACKAGE-default}
9709 case $enableval in
9710 yes) enable_shared=yes ;;
9711 no) enable_shared=no ;;
9712 *)
9713 enable_shared=no
9714 # Look at the argument we got. We use all the common list separators.
9715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9716 for pkg in $enableval; do
9717 IFS="$lt_save_ifs"
9718 if test "X$pkg" = "X$p"; then
9719 enable_shared=yes
9720 fi
9721 done
9722 IFS="$lt_save_ifs"
9723 ;;
9724 esac
9725else
9726 enable_shared=yes
9727fi;
9728
9729# Check whether --enable-static or --disable-static was given.
9730if test "${enable_static+set}" = set; then
9731 enableval="$enable_static"
9732 p=${PACKAGE-default}
9733 case $enableval in
9734 yes) enable_static=yes ;;
9735 no) enable_static=no ;;
9736 *)
9737 enable_static=no
9738 # Look at the argument we got. We use all the common list separators.
9739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9740 for pkg in $enableval; do
9741 IFS="$lt_save_ifs"
9742 if test "X$pkg" = "X$p"; then
9743 enable_static=yes
9744 fi
9745 done
9746 IFS="$lt_save_ifs"
9747 ;;
9748 esac
9749else
9750 enable_static=yes
9751fi;
9752
9753# Check whether --enable-fast-install or --disable-fast-install was given.
9754if test "${enable_fast_install+set}" = set; then
9755 enableval="$enable_fast_install"
9756 p=${PACKAGE-default}
9757 case $enableval in
9758 yes) enable_fast_install=yes ;;
9759 no) enable_fast_install=no ;;
9760 *)
9761 enable_fast_install=no
9762 # Look at the argument we got. We use all the common list separators.
9763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9764 for pkg in $enableval; do
9765 IFS="$lt_save_ifs"
9766 if test "X$pkg" = "X$p"; then
9767 enable_fast_install=yes
9768 fi
9769 done
9770 IFS="$lt_save_ifs"
9771 ;;
9772 esac
9773else
9774 enable_fast_install=yes
9775fi;
9776
9777echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9778echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9779if test "${lt_cv_path_SED+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781else
9782 # Loop through the user's path and test for sed and gsed.
9783# Then use that list of sed's as ones to test for truncation.
9784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in $PATH
9786do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for lt_ac_prog in sed gsed; do
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9792 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9793 fi
9794 done
9795 done
9796done
9797lt_ac_max=0
9798lt_ac_count=0
9799# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9800# along with /bin/sed that truncates output.
9801for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9802 test ! -f $lt_ac_sed && break
9803 cat /dev/null > conftest.in
9804 lt_ac_count=0
9805 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9806 # Check for GNU sed and select it if it is found.
9807 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9808 lt_cv_path_SED=$lt_ac_sed
9809 break
9810 fi
9811 while true; do
9812 cat conftest.in conftest.in >conftest.tmp
9813 mv conftest.tmp conftest.in
9814 cp conftest.in conftest.nl
9815 echo >>conftest.nl
9816 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9817 cmp -s conftest.out conftest.nl || break
9818 # 10000 chars as input seems more than enough
9819 test $lt_ac_count -gt 10 && break
9820 lt_ac_count=`expr $lt_ac_count + 1`
9821 if test $lt_ac_count -gt $lt_ac_max; then
9822 lt_ac_max=$lt_ac_count
9823 lt_cv_path_SED=$lt_ac_sed
9824 fi
9825 done
9826done
9827
9828fi
9829
9830SED=$lt_cv_path_SED
9831echo "$as_me:$LINENO: result: $SED" >&5
9832echo "${ECHO_T}$SED" >&6
9833
9834
9835# Check whether --with-gnu-ld or --without-gnu-ld was given.
9836if test "${with_gnu_ld+set}" = set; then
9837 withval="$with_gnu_ld"
9838 test "$withval" = no || with_gnu_ld=yes
9839else
9840 with_gnu_ld=no
9841fi;
9842ac_prog=ld
9843if test "$GCC" = yes; then
9844 # Check if gcc -print-prog-name=ld gives a path.
9845 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9846echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9847 case $host in
9848 *-*-mingw*)
9849 # gcc leaves a trailing carriage return which upsets mingw
9850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9851 *)
9852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9853 esac
9854 case $ac_prog in
9855 # Accept absolute paths.
9856 [\\/]* | ?:[\\/]*)
9857 re_direlt='/[^/][^/]*/\.\./'
9858 # Canonicalize the pathname of ld
9859 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9860 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9861 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9862 done
9863 test -z "$LD" && LD="$ac_prog"
9864 ;;
9865 "")
9866 # If it fails, then pretend we aren't using GCC.
9867 ac_prog=ld
9868 ;;
9869 *)
9870 # If it is relative, then search for the first ld in PATH.
9871 with_gnu_ld=unknown
9872 ;;
9873 esac
9874elif test "$with_gnu_ld" = yes; then
9875 echo "$as_me:$LINENO: checking for GNU ld" >&5
9876echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9877else
9878 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9879echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9880fi
9881if test "${lt_cv_path_LD+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884 if test -z "$LD"; then
9885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9886 for ac_dir in $PATH; do
9887 IFS="$lt_save_ifs"
9888 test -z "$ac_dir" && ac_dir=.
9889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9890 lt_cv_path_LD="$ac_dir/$ac_prog"
9891 # Check to see if the program is GNU ld. I'd rather use --version,
9892 # but apparently some GNU ld's only accept -v.
9893 # Break only if it was the GNU/non-GNU ld that we prefer.
9894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9895 *GNU* | *'with BFD'*)
9896 test "$with_gnu_ld" != no && break
9897 ;;
9898 *)
9899 test "$with_gnu_ld" != yes && break
9900 ;;
9901 esac
9902 fi
9903 done
9904 IFS="$lt_save_ifs"
9905else
9906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9907fi
9908fi
9909
9910LD="$lt_cv_path_LD"
9911if test -n "$LD"; then
9912 echo "$as_me:$LINENO: result: $LD" >&5
9913echo "${ECHO_T}$LD" >&6
9914else
9915 echo "$as_me:$LINENO: result: no" >&5
9916echo "${ECHO_T}no" >&6
9917fi
9918test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9919echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9920 { (exit 1); exit 1; }; }
9921echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9922echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9923if test "${lt_cv_prog_gnu_ld+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9927case `$LD -v 2>&1 </dev/null` in
9928*GNU* | *'with BFD'*)
9929 lt_cv_prog_gnu_ld=yes
9930 ;;
9931*)
9932 lt_cv_prog_gnu_ld=no
9933 ;;
9934esac
9935fi
9936echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9937echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9938with_gnu_ld=$lt_cv_prog_gnu_ld
9939
9940
9941echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9942echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9943if test "${lt_cv_ld_reload_flag+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945else
9946 lt_cv_ld_reload_flag='-r'
9947fi
9948echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9949echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9950reload_flag=$lt_cv_ld_reload_flag
9951case $reload_flag in
9952"" | " "*) ;;
9953*) reload_flag=" $reload_flag" ;;
9954esac
9955reload_cmds='$LD$reload_flag -o $output$reload_objs'
9956case $host_os in
9957 darwin*)
9958 if test "$GCC" = yes; then
9959 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9960 else
9961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9962 fi
9963 ;;
9964esac
9965
9966echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9967echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9968if test "${lt_cv_deplibs_check_method+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 lt_cv_file_magic_cmd='$MAGIC_CMD'
9972lt_cv_file_magic_test_file=
9973lt_cv_deplibs_check_method='unknown'
9974# Need to set the preceding variable on all platforms that support
9975# interlibrary dependencies.
9976# 'none' -- dependencies not supported.
9977# `unknown' -- same as none, but documents that we really don't know.
9978# 'pass_all' -- all dependencies passed with no checks.
9979# 'test_compile' -- check by making test program.
9980# 'file_magic [[regex]]' -- check by looking for files in library path
9981# which responds to the $file_magic_cmd with a given extended regex.
9982# If you have `file' or equivalent on your system and you're not sure
9983# whether `pass_all' will *always* work, you probably want this one.
9984
9985case $host_os in
9986aix4* | aix5*)
9987 lt_cv_deplibs_check_method=pass_all
9988 ;;
9989
9990beos*)
9991 lt_cv_deplibs_check_method=pass_all
9992 ;;
9993
9994bsdi[45]*)
9995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9996 lt_cv_file_magic_cmd='/usr/bin/file -L'
9997 lt_cv_file_magic_test_file=/shlib/libc.so
9998 ;;
9999
10000cygwin*)
10001 # func_win32_libid is a shell function defined in ltmain.sh
10002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10003 lt_cv_file_magic_cmd='func_win32_libid'
10004 ;;
10005
10006mingw* | pw32*)
10007 # Base MSYS/MinGW do not provide the 'file' command needed by
10008 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10010 lt_cv_file_magic_cmd='$OBJDUMP -f'
10011 ;;
10012
10013darwin* | rhapsody*)
10014 lt_cv_deplibs_check_method=pass_all
10015 ;;
10016
10017freebsd* | kfreebsd*-gnu)
10018 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10019 case $host_cpu in
10020 i*86 )
10021 # Not sure whether the presence of OpenBSD here was a mistake.
10022 # Let's accept both of them until this is cleared up.
10023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10024 lt_cv_file_magic_cmd=/usr/bin/file
10025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10026 ;;
10027 esac
10028 else
10029 lt_cv_deplibs_check_method=pass_all
10030 fi
10031 ;;
10032
10033gnu*)
10034 lt_cv_deplibs_check_method=pass_all
10035 ;;
10036
10037hpux10.20* | hpux11*)
10038 lt_cv_file_magic_cmd=/usr/bin/file
10039 case "$host_cpu" in
10040 ia64*)
10041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10043 ;;
10044 hppa*64*)
10045 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]'
10046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10047 ;;
10048 *)
10049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10050 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10051 ;;
10052 esac
10053 ;;
10054
10055irix5* | irix6* | nonstopux*)
10056 case $LD in
10057 *-32|*"-32 ") libmagic=32-bit;;
10058 *-n32|*"-n32 ") libmagic=N32;;
10059 *-64|*"-64 ") libmagic=64-bit;;
10060 *) libmagic=never-match;;
10061 esac
10062 lt_cv_deplibs_check_method=pass_all
10063 ;;
10064
10065# This must be Linux ELF.
10066linux*)
10067 lt_cv_deplibs_check_method=pass_all
10068 ;;
10069
10070netbsd*)
10071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10073 else
10074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10075 fi
10076 ;;
10077
10078newos6*)
10079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10080 lt_cv_file_magic_cmd=/usr/bin/file
10081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10082 ;;
10083
10084nto-qnx*)
10085 lt_cv_deplibs_check_method=unknown
10086 ;;
10087
10088openbsd*)
10089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10091 else
10092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10093 fi
10094 ;;
10095
10096osf3* | osf4* | osf5*)
10097 lt_cv_deplibs_check_method=pass_all
10098 ;;
10099
10100sco3.2v5*)
10101 lt_cv_deplibs_check_method=pass_all
10102 ;;
10103
10104solaris*)
10105 lt_cv_deplibs_check_method=pass_all
10106 ;;
10107
10108sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10109 case $host_vendor in
10110 motorola)
10111 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]'
10112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10113 ;;
10114 ncr)
10115 lt_cv_deplibs_check_method=pass_all
10116 ;;
10117 sequent)
10118 lt_cv_file_magic_cmd='/bin/file'
10119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10120 ;;
10121 sni)
10122 lt_cv_file_magic_cmd='/bin/file'
10123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10124 lt_cv_file_magic_test_file=/lib/libc.so
10125 ;;
10126 siemens)
10127 lt_cv_deplibs_check_method=pass_all
10128 ;;
10129 esac
10130 ;;
10131
10132sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10133 lt_cv_deplibs_check_method=pass_all
10134 ;;
10135esac
10136
10137fi
10138echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10139echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10140file_magic_cmd=$lt_cv_file_magic_cmd
10141deplibs_check_method=$lt_cv_deplibs_check_method
10142test -z "$deplibs_check_method" && deplibs_check_method=unknown
10143
10144
10145
10146# If no C compiler was specified, use CC.
10147LTCC=${LTCC-"$CC"}
10148
10149# Allow CC to be a program name with arguments.
10150compiler=$CC
10151
10152# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10153if test "${enable_libtool_lock+set}" = set; then
10154 enableval="$enable_libtool_lock"
10155
10156fi;
10157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10158
10159# Some flags need to be propagated to the compiler or linker for good
10160# libtool support.
10161case $host in
10162ia64-*-hpux*)
10163 # Find out which ABI we are using.
10164 echo 'int i;' > conftest.$ac_ext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; then
10170 case `/usr/bin/file conftest.$ac_objext` in
10171 *ELF-32*)
10172 HPUX_IA64_MODE="32"
10173 ;;
10174 *ELF-64*)
10175 HPUX_IA64_MODE="64"
10176 ;;
10177 esac
10178 fi
10179 rm -rf conftest*
10180 ;;
10181*-*-irix6*)
10182 # Find out which ABI we are using.
Reid Spencer8a2d4712004-12-16 17:48:14 +000010183 echo '#line 10183 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; then
10189 if test "$lt_cv_prog_gnu_ld" = yes; then
10190 case `/usr/bin/file conftest.$ac_objext` in
10191 *32-bit*)
10192 LD="${LD-ld} -melf32bsmip"
10193 ;;
10194 *N32*)
10195 LD="${LD-ld} -melf32bmipn32"
10196 ;;
10197 *64-bit*)
10198 LD="${LD-ld} -melf64bmip"
10199 ;;
10200 esac
10201 else
10202 case `/usr/bin/file conftest.$ac_objext` in
10203 *32-bit*)
10204 LD="${LD-ld} -32"
10205 ;;
10206 *N32*)
10207 LD="${LD-ld} -n32"
10208 ;;
10209 *64-bit*)
10210 LD="${LD-ld} -64"
10211 ;;
10212 esac
10213 fi
10214 fi
10215 rm -rf conftest*
10216 ;;
10217
10218x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10219 # Find out which ABI we are using.
10220 echo 'int i;' > conftest.$ac_ext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; then
10226 case "`/usr/bin/file conftest.o`" in
10227 *32-bit*)
10228 case $host in
10229 x86_64-*linux*)
10230 LD="${LD-ld} -m elf_i386"
10231 ;;
10232 ppc64-*linux*|powerpc64-*linux*)
10233 LD="${LD-ld} -m elf32ppclinux"
10234 ;;
10235 s390x-*linux*)
10236 LD="${LD-ld} -m elf_s390"
10237 ;;
10238 sparc64-*linux*)
10239 LD="${LD-ld} -m elf32_sparc"
10240 ;;
10241 esac
10242 ;;
10243 *64-bit*)
10244 case $host in
10245 x86_64-*linux*)
10246 LD="${LD-ld} -m elf_x86_64"
10247 ;;
10248 ppc*-*linux*|powerpc*-*linux*)
10249 LD="${LD-ld} -m elf64ppc"
10250 ;;
10251 s390*-*linux*)
10252 LD="${LD-ld} -m elf64_s390"
10253 ;;
10254 sparc*-*linux*)
10255 LD="${LD-ld} -m elf64_sparc"
10256 ;;
10257 esac
10258 ;;
10259 esac
10260 fi
10261 rm -rf conftest*
10262 ;;
10263
10264*-*-sco3.2v5*)
10265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10266 SAVE_CFLAGS="$CFLAGS"
10267 CFLAGS="$CFLAGS -belf"
10268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10270if test "${lt_cv_cc_needs_belf+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273 ac_ext=c
10274ac_cpp='$CPP $CPPFLAGS'
10275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277ac_compiler_gnu=$ac_cv_c_compiler_gnu
10278
10279 cat >conftest.$ac_ext <<_ACEOF
10280/* confdefs.h. */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
10284/* end confdefs.h. */
10285
10286_ACEOF
10287rm -f conftest.$ac_objext conftest$ac_exeext
10288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 lt_cv_cc_needs_belf=yes
10310else
10311 echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314lt_cv_cc_needs_belf=no
10315fi
10316rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 ac_ext=c
10319ac_cpp='$CPP $CPPFLAGS'
10320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323
10324fi
10325echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10326echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10329 CFLAGS="$SAVE_CFLAGS"
10330 fi
10331 ;;
10332
10333esac
10334
10335need_locks="$enable_libtool_lock"
10336
10337
Reid Spencer2706f8c2004-09-19 23:53:36 +000010338
10339
10340if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10341 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10342 (test "X$CXX" != "Xg++"))) ; then
10343 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010344ac_cpp='$CXXCPP $CPPFLAGS'
10345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10348echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10349echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10350if test -z "$CXXCPP"; then
10351 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
John Criswell47fdd832003-07-14 16:52:07 +000010354 # Double quotes because CXXCPP needs to be expanded
10355 for CXXCPP in "$CXX -E" "/lib/cpp"
10356 do
10357 ac_preproc_ok=false
10358for ac_cxx_preproc_warn_flag in '' yes
10359do
10360 # Use a header file that comes with gcc, so configuring glibc
10361 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10363 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010364 # On the NeXT, cc -E runs the code through the compiler's parser,
10365 # not just through cpp. "Syntax error" is here to catch this case.
10366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h. */
10372#ifdef __STDC__
10373# include <limits.h>
10374#else
10375# include <assert.h>
10376#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010377 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010378_ACEOF
10379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10381 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010382 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } >/dev/null; then
10387 if test -s conftest.err; then
10388 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010389 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010390 else
John Criswell47fdd832003-07-14 16:52:07 +000010391 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010392 fi
John Criswell47fdd832003-07-14 16:52:07 +000010393else
10394 ac_cpp_err=yes
10395fi
10396if test -z "$ac_cpp_err"; then
10397 :
10398else
10399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010400sed 's/^/| /' conftest.$ac_ext >&5
10401
John Criswell47fdd832003-07-14 16:52:07 +000010402 # Broken: fails on valid input.
10403continue
10404fi
10405rm -f conftest.err conftest.$ac_ext
10406
10407 # OK, works on sane cases. Now check whether non-existent headers
10408 # can be detected and how.
10409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010410/* confdefs.h. */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010415#include <ac_nonexistent.h>
10416_ACEOF
10417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010420 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev/null; then
10425 if test -s conftest.err; then
10426 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010427 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010428 else
10429 ac_cpp_err=
10430 fi
10431else
10432 ac_cpp_err=yes
10433fi
10434if test -z "$ac_cpp_err"; then
10435 # Broken: success on invalid input.
10436continue
10437else
10438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010439sed 's/^/| /' conftest.$ac_ext >&5
10440
John Criswell47fdd832003-07-14 16:52:07 +000010441 # Passes both tests.
10442ac_preproc_ok=:
10443break
10444fi
10445rm -f conftest.err conftest.$ac_ext
10446
10447done
10448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10449rm -f conftest.err conftest.$ac_ext
10450if $ac_preproc_ok; then
10451 break
John Criswell7a73b802003-06-30 21:59:07 +000010452fi
10453
John Criswell47fdd832003-07-14 16:52:07 +000010454 done
10455 ac_cv_prog_CXXCPP=$CXXCPP
10456
10457fi
10458 CXXCPP=$ac_cv_prog_CXXCPP
10459else
10460 ac_cv_prog_CXXCPP=$CXXCPP
10461fi
10462echo "$as_me:$LINENO: result: $CXXCPP" >&5
10463echo "${ECHO_T}$CXXCPP" >&6
10464ac_preproc_ok=false
10465for ac_cxx_preproc_warn_flag in '' yes
10466do
10467 # Use a header file that comes with gcc, so configuring glibc
10468 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10470 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010471 # On the NeXT, cc -E runs the code through the compiler's parser,
10472 # not just through cpp. "Syntax error" is here to catch this case.
10473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
10479#ifdef __STDC__
10480# include <limits.h>
10481#else
10482# include <assert.h>
10483#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010484 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010485_ACEOF
10486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10488 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010489 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } >/dev/null; then
10494 if test -s conftest.err; then
10495 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010496 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010497 else
10498 ac_cpp_err=
10499 fi
10500else
10501 ac_cpp_err=yes
10502fi
10503if test -z "$ac_cpp_err"; then
10504 :
10505else
10506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010507sed 's/^/| /' conftest.$ac_ext >&5
10508
John Criswell47fdd832003-07-14 16:52:07 +000010509 # Broken: fails on valid input.
10510continue
10511fi
10512rm -f conftest.err conftest.$ac_ext
10513
10514 # OK, works on sane cases. Now check whether non-existent headers
10515 # can be detected and how.
10516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010522#include <ac_nonexistent.h>
10523_ACEOF
10524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10526 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010527 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } >/dev/null; then
10532 if test -s conftest.err; then
10533 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010534 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010535 else
10536 ac_cpp_err=
10537 fi
10538else
10539 ac_cpp_err=yes
10540fi
10541if test -z "$ac_cpp_err"; then
10542 # Broken: success on invalid input.
10543continue
10544else
10545 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010546sed 's/^/| /' conftest.$ac_ext >&5
10547
John Criswell47fdd832003-07-14 16:52:07 +000010548 # Passes both tests.
10549ac_preproc_ok=:
10550break
10551fi
10552rm -f conftest.err conftest.$ac_ext
10553
10554done
10555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10556rm -f conftest.err conftest.$ac_ext
10557if $ac_preproc_ok; then
10558 :
10559else
John Criswell0c38eaf2003-09-10 15:17:25 +000010560 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10561See \`config.log' for more details." >&5
10562echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10563See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010564 { (exit 1); exit 1; }; }
10565fi
10566
10567ac_ext=cc
10568ac_cpp='$CXXCPP $CPPFLAGS'
10569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10572
Reid Spencer2706f8c2004-09-19 23:53:36 +000010573fi
10574
John Criswell47fdd832003-07-14 16:52:07 +000010575
10576ac_ext=f
10577ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10578ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10579ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10580if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010581 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 +000010582 do
10583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10585echo "$as_me:$LINENO: checking for $ac_word" >&5
10586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10587if test "${ac_cv_prog_F77+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589else
10590 if test -n "$F77"; then
10591 ac_cv_prog_F77="$F77" # Let the user override the test.
10592else
10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594for as_dir in $PATH
10595do
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10603 fi
10604done
10605done
10606
10607fi
10608fi
10609F77=$ac_cv_prog_F77
10610if test -n "$F77"; then
10611 echo "$as_me:$LINENO: result: $F77" >&5
10612echo "${ECHO_T}$F77" >&6
10613else
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
10616fi
10617
10618 test -n "$F77" && break
10619 done
10620fi
10621if test -z "$F77"; then
10622 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010623 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 +000010624do
10625 # Extract the first word of "$ac_prog", so it can be a program name with args.
10626set dummy $ac_prog; ac_word=$2
10627echo "$as_me:$LINENO: checking for $ac_word" >&5
10628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
10632 if test -n "$ac_ct_F77"; then
10633 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10634else
10635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636for as_dir in $PATH
10637do
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642 ac_cv_prog_ac_ct_F77="$ac_prog"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10645 fi
10646done
10647done
10648
10649fi
10650fi
10651ac_ct_F77=$ac_cv_prog_ac_ct_F77
10652if test -n "$ac_ct_F77"; then
10653 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10654echo "${ECHO_T}$ac_ct_F77" >&6
10655else
10656 echo "$as_me:$LINENO: result: no" >&5
10657echo "${ECHO_T}no" >&6
10658fi
10659
10660 test -n "$ac_ct_F77" && break
10661done
10662
10663 F77=$ac_ct_F77
10664fi
10665
10666
10667# Provide some information about the compiler.
Reid Spencer8a2d4712004-12-16 17:48:14 +000010668echo "$as_me:10668:" \
John Criswell47fdd832003-07-14 16:52:07 +000010669 "checking for Fortran 77 compiler version" >&5
10670ac_compiler=`set X $ac_compile; echo $2`
10671{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10672 (eval $ac_compiler --version </dev/null >&5) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }
10676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10677 (eval $ac_compiler -v </dev/null >&5) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }
10681{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10682 (eval $ac_compiler -V </dev/null >&5) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010686rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010687
10688# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010689# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010690ac_save_ext=$ac_ext
10691ac_ext=F
10692echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10693echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10694if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 cat >conftest.$ac_ext <<_ACEOF
10698 program main
10699#ifndef __GNUC__
10700 choke me
10701#endif
10702
10703 end
10704_ACEOF
10705rm -f conftest.$ac_objext
10706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010707 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010714 { ac_try='test -z "$ac_f77_werror_flag"
10715 || test ! -s conftest.err'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 ac_compiler_gnu=yes
10728else
10729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010730sed 's/^/| /' conftest.$ac_ext >&5
10731
John Criswell47fdd832003-07-14 16:52:07 +000010732ac_compiler_gnu=no
10733fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010735ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10736
10737fi
10738echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10739echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10740ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010741ac_test_FFLAGS=${FFLAGS+set}
10742ac_save_FFLAGS=$FFLAGS
10743FFLAGS=
10744echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10745echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10746if test "${ac_cv_prog_f77_g+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 FFLAGS=-g
10750cat >conftest.$ac_ext <<_ACEOF
10751 program main
10752
10753 end
10754_ACEOF
10755rm -f conftest.$ac_objext
10756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010757 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010758 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010764 { ac_try='test -z "$ac_f77_werror_flag"
10765 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_prog_f77_g=yes
10778else
10779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010780sed 's/^/| /' conftest.$ac_ext >&5
10781
John Criswell47fdd832003-07-14 16:52:07 +000010782ac_cv_prog_f77_g=no
10783fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010785
10786fi
10787echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10788echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10789if test "$ac_test_FFLAGS" = set; then
10790 FFLAGS=$ac_save_FFLAGS
10791elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010792 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010793 FFLAGS="-g -O2"
10794 else
10795 FFLAGS="-g"
10796 fi
10797else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010798 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010799 FFLAGS="-O2"
10800 else
10801 FFLAGS=
10802 fi
10803fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010804
10805G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010806ac_ext=c
10807ac_cpp='$CPP $CPPFLAGS'
10808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10810ac_compiler_gnu=$ac_cv_c_compiler_gnu
10811
10812
10813
10814# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10815
10816# find the maximum length of command line arguments
10817echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10818echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10819if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821else
10822 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010823 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010824
10825 case $build_os in
10826 msdosdjgpp*)
10827 # On DJGPP, this test can blow up pretty badly due to problems in libc
10828 # (any single argument exceeding 2000 bytes causes a buffer overrun
10829 # during glob expansion). Even if it were fixed, the result of this
10830 # check would be larger than it should be.
10831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10832 ;;
10833
10834 gnu*)
10835 # Under GNU Hurd, this test is not required because there is
10836 # no limit to the length of command line arguments.
10837 # Libtool will interpret -1 as no limit whatsoever
10838 lt_cv_sys_max_cmd_len=-1;
10839 ;;
10840
10841 cygwin* | mingw*)
10842 # On Win9x/ME, this test blows up -- it succeeds, but takes
10843 # about 5 minutes as the teststring grows exponentially.
10844 # Worse, since 9x/ME are not pre-emptively multitasking,
10845 # you end up with a "frozen" computer, even though with patience
10846 # the test eventually succeeds (with a max line length of 256k).
10847 # Instead, let's just punt: use the minimum linelength reported by
10848 # all of the supported platforms: 8192 (on NT/2K/XP).
10849 lt_cv_sys_max_cmd_len=8192;
10850 ;;
10851
Reid Spencer2706f8c2004-09-19 23:53:36 +000010852 amigaos*)
10853 # On AmigaOS with pdksh, this test takes hours, literally.
10854 # So we just punt and use a minimum line length of 8192.
10855 lt_cv_sys_max_cmd_len=8192;
10856 ;;
10857
10858 netbsd* | freebsd* | openbsd* | darwin* )
10859 # This has been around since 386BSD, at least. Likely further.
10860 if test -x /sbin/sysctl; then
10861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10862 elif test -x /usr/sbin/sysctl; then
10863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10864 else
10865 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10866 fi
10867 # And add a safety zone
10868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10869 ;;
10870
John Criswell47fdd832003-07-14 16:52:07 +000010871 *)
10872 # If test is not a shell built-in, we'll probably end up computing a
10873 # maximum length that is only half of the actual maximum length, but
10874 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10876 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10877 = "XX$teststring") >/dev/null 2>&1 &&
10878 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010879 lt_cv_sys_max_cmd_len=$new_result &&
10880 test $i != 17 # 1/2 MB should be enough
10881 do
10882 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010883 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010884 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010885 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010886 # Add a significant safety factor because C++ compilers can tack on massive
10887 # amounts of additional arguments before passing them to the linker.
10888 # It appears as though 1/2 is a usable value.
10889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10890 ;;
10891 esac
10892
10893fi
10894
10895if test -n $lt_cv_sys_max_cmd_len ; then
10896 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10897echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10898else
10899 echo "$as_me:$LINENO: result: none" >&5
10900echo "${ECHO_T}none" >&6
10901fi
10902
10903
10904
10905
10906# Check for command to grab the raw symbol name followed by C symbol from nm.
10907echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10908echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10909if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912
10913# These are sane defaults that work on at least a few old systems.
10914# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10915
10916# Character class describing NM global symbol codes.
10917symcode='[BCDEGRST]'
10918
10919# Regexp to match symbols that can be accessed directly from C.
10920sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10921
10922# Transform the above into a raw symbol and a C symbol.
10923symxfrm='\1 \2\3 \3'
10924
10925# Transform an extracted symbol line into a proper C declaration
10926lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10927
10928# Transform an extracted symbol line into symbol name and symbol address
10929lt_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'"
10930
10931# Define system-specific variables.
10932case $host_os in
10933aix*)
10934 symcode='[BCDT]'
10935 ;;
10936cygwin* | mingw* | pw32*)
10937 symcode='[ABCDGISTW]'
10938 ;;
10939hpux*) # Its linker distinguishes data from code symbols
10940 if test "$host_cpu" = ia64; then
10941 symcode='[ABCDEGRST]'
10942 fi
10943 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10944 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'"
10945 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010946linux*)
10947 if test "$host_cpu" = ia64; then
10948 symcode='[ABCDGIRSTW]'
10949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10950 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'"
10951 fi
10952 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010953irix* | nonstopux*)
10954 symcode='[BCDEGRST]'
10955 ;;
10956osf*)
10957 symcode='[BCDEGQRST]'
10958 ;;
10959solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010960 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010961 ;;
10962sysv4)
10963 symcode='[DFNSTU]'
10964 ;;
10965esac
10966
10967# Handle CRLF in mingw tool chain
10968opt_cr=
10969case $build_os in
10970mingw*)
10971 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10972 ;;
10973esac
10974
10975# If we're using GNU nm, then use its standard symbol codes.
10976case `$NM -V 2>&1` in
10977*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010978 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010979esac
10980
10981# Try without a prefix undercore, then with it.
10982for ac_symprfx in "" "_"; do
10983
10984 # Write the raw and C identifiers.
10985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10986
10987 # Check to see that the pipe works correctly.
10988 pipe_works=no
10989
10990 rm -f conftest*
10991 cat > conftest.$ac_ext <<EOF
10992#ifdef __cplusplus
10993extern "C" {
10994#endif
10995char nm_test_var;
10996void nm_test_func(){}
10997#ifdef __cplusplus
10998}
10999#endif
11000int main(){nm_test_var='a';nm_test_func();return(0);}
11001EOF
11002
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; then
11008 # Now try to grab the symbols.
11009 nlist=conftest.nm
11010 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11011 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && test -s "$nlist"; then
11015 # Try sorting and uniquifying the output.
11016 if sort "$nlist" | uniq > "$nlist"T; then
11017 mv -f "$nlist"T "$nlist"
11018 else
11019 rm -f "$nlist"T
11020 fi
11021
11022 # Make sure that we snagged all the symbols we need.
11023 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11024 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11025 cat <<EOF > conftest.$ac_ext
11026#ifdef __cplusplus
11027extern "C" {
11028#endif
11029
11030EOF
11031 # Now generate the symbol file.
11032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11033
11034 cat <<EOF >> conftest.$ac_ext
11035#if defined (__STDC__) && __STDC__
11036# define lt_ptr_t void *
11037#else
11038# define lt_ptr_t char *
11039# define const
11040#endif
11041
11042/* The mapping between symbol names and symbols. */
11043const struct {
11044 const char *name;
11045 lt_ptr_t address;
11046}
11047lt_preloaded_symbols[] =
11048{
11049EOF
11050 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11051 cat <<\EOF >> conftest.$ac_ext
11052 {0, (lt_ptr_t) 0}
11053};
11054
11055#ifdef __cplusplus
11056}
11057#endif
11058EOF
11059 # Now try linking the two files.
11060 mv conftest.$ac_objext conftstm.$ac_objext
11061 lt_save_LIBS="$LIBS"
11062 lt_save_CFLAGS="$CFLAGS"
11063 LIBS="conftstm.$ac_objext"
11064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11070 pipe_works=yes
11071 fi
11072 LIBS="$lt_save_LIBS"
11073 CFLAGS="$lt_save_CFLAGS"
11074 else
11075 echo "cannot find nm_test_func in $nlist" >&5
11076 fi
11077 else
11078 echo "cannot find nm_test_var in $nlist" >&5
11079 fi
11080 else
11081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11082 fi
11083 else
11084 echo "$progname: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11086 fi
11087 rm -f conftest* conftst*
11088
11089 # Do not use the global_symbol_pipe unless it works.
11090 if test "$pipe_works" = yes; then
11091 break
11092 else
11093 lt_cv_sys_global_symbol_pipe=
11094 fi
11095done
11096
11097fi
11098
11099if test -z "$lt_cv_sys_global_symbol_pipe"; then
11100 lt_cv_sys_global_symbol_to_cdecl=
11101fi
11102if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11103 echo "$as_me:$LINENO: result: failed" >&5
11104echo "${ECHO_T}failed" >&6
11105else
11106 echo "$as_me:$LINENO: result: ok" >&5
11107echo "${ECHO_T}ok" >&6
11108fi
11109
11110echo "$as_me:$LINENO: checking for objdir" >&5
11111echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11112if test "${lt_cv_objdir+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 rm -f .libs 2>/dev/null
11116mkdir .libs 2>/dev/null
11117if test -d .libs; then
11118 lt_cv_objdir=.libs
11119else
11120 # MS-DOS does not allow filenames that begin with a dot.
11121 lt_cv_objdir=_libs
11122fi
11123rmdir .libs 2>/dev/null
11124fi
11125echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11126echo "${ECHO_T}$lt_cv_objdir" >&6
11127objdir=$lt_cv_objdir
11128
11129
11130
11131
11132
11133case $host_os in
11134aix3*)
11135 # AIX sometimes has problems with the GCC collect2 program. For some
11136 # reason, if we set the COLLECT_NAMES environment variable, the problems
11137 # vanish in a puff of smoke.
11138 if test "X${COLLECT_NAMES+set}" != Xset; then
11139 COLLECT_NAMES=
11140 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011141 fi
11142 ;;
11143esac
11144
John Criswell47fdd832003-07-14 16:52:07 +000011145# Sed substitution that helps us do robust quoting. It backslashifies
11146# metacharacters that are still active within double-quoted strings.
11147Xsed='sed -e s/^X//'
11148sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11149
11150# Same as above, but do not quote variable references.
11151double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11152
11153# Sed substitution to delay expansion of an escaped shell variable in a
11154# double_quote_subst'ed string.
11155delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11156
11157# Sed substitution to avoid accidental globbing in evaled expressions
11158no_glob_subst='s/\*/\\\*/g'
11159
11160# Constants:
11161rm="rm -f"
11162
11163# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011164default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011165can_build_shared=yes
11166
11167# All known linkers require a `.a' archive for static linking (except M$VC,
11168# which needs '.lib').
11169libext=a
11170ltmain="$ac_aux_dir/ltmain.sh"
11171ofile="$default_ofile"
11172with_gnu_ld="$lt_cv_prog_gnu_ld"
11173
11174if test -n "$ac_tool_prefix"; then
11175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11176set dummy ${ac_tool_prefix}ar; ac_word=$2
11177echo "$as_me:$LINENO: checking for $ac_word" >&5
11178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11179if test "${ac_cv_prog_AR+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181else
11182 if test -n "$AR"; then
11183 ac_cv_prog_AR="$AR" # Let the user override the test.
11184else
11185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186for as_dir in $PATH
11187do
11188 IFS=$as_save_IFS
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_AR="${ac_tool_prefix}ar"
11193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 break 2
11195 fi
11196done
11197done
11198
11199fi
11200fi
11201AR=$ac_cv_prog_AR
11202if test -n "$AR"; then
11203 echo "$as_me:$LINENO: result: $AR" >&5
11204echo "${ECHO_T}$AR" >&6
11205else
11206 echo "$as_me:$LINENO: result: no" >&5
11207echo "${ECHO_T}no" >&6
11208fi
11209
11210fi
11211if test -z "$ac_cv_prog_AR"; then
11212 ac_ct_AR=$AR
11213 # Extract the first word of "ar", so it can be a program name with args.
11214set dummy ar; ac_word=$2
11215echo "$as_me:$LINENO: checking for $ac_word" >&5
11216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 if test -n "$ac_ct_AR"; then
11221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_ac_ct_AR="ar"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235done
11236
11237 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11238fi
11239fi
11240ac_ct_AR=$ac_cv_prog_ac_ct_AR
11241if test -n "$ac_ct_AR"; then
11242 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11243echo "${ECHO_T}$ac_ct_AR" >&6
11244else
11245 echo "$as_me:$LINENO: result: no" >&5
11246echo "${ECHO_T}no" >&6
11247fi
11248
11249 AR=$ac_ct_AR
11250else
11251 AR="$ac_cv_prog_AR"
11252fi
11253
John Criswell7a73b802003-06-30 21:59:07 +000011254if test -n "$ac_tool_prefix"; then
11255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11256set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11257echo "$as_me:$LINENO: checking for $ac_word" >&5
11258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11259if test "${ac_cv_prog_RANLIB+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261else
11262 if test -n "$RANLIB"; then
11263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11264else
11265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266for as_dir in $PATH
11267do
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 break 2
11275 fi
11276done
11277done
11278
11279fi
11280fi
11281RANLIB=$ac_cv_prog_RANLIB
11282if test -n "$RANLIB"; then
11283 echo "$as_me:$LINENO: result: $RANLIB" >&5
11284echo "${ECHO_T}$RANLIB" >&6
11285else
11286 echo "$as_me:$LINENO: result: no" >&5
11287echo "${ECHO_T}no" >&6
11288fi
11289
11290fi
11291if test -z "$ac_cv_prog_RANLIB"; then
11292 ac_ct_RANLIB=$RANLIB
11293 # Extract the first word of "ranlib", so it can be a program name with args.
11294set dummy ranlib; ac_word=$2
11295echo "$as_me:$LINENO: checking for $ac_word" >&5
11296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 if test -n "$ac_ct_RANLIB"; then
11301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11302else
11303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $PATH
11305do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_ac_ct_RANLIB="ranlib"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11313 fi
11314done
11315done
11316
11317 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11318fi
11319fi
11320ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11321if test -n "$ac_ct_RANLIB"; then
11322 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11323echo "${ECHO_T}$ac_ct_RANLIB" >&6
11324else
11325 echo "$as_me:$LINENO: result: no" >&5
11326echo "${ECHO_T}no" >&6
11327fi
11328
11329 RANLIB=$ac_ct_RANLIB
11330else
11331 RANLIB="$ac_cv_prog_RANLIB"
11332fi
11333
11334if test -n "$ac_tool_prefix"; then
11335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11336set dummy ${ac_tool_prefix}strip; ac_word=$2
11337echo "$as_me:$LINENO: checking for $ac_word" >&5
11338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11339if test "${ac_cv_prog_STRIP+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341else
11342 if test -n "$STRIP"; then
11343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11344else
11345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $PATH
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11355 fi
11356done
11357done
11358
11359fi
11360fi
11361STRIP=$ac_cv_prog_STRIP
11362if test -n "$STRIP"; then
11363 echo "$as_me:$LINENO: result: $STRIP" >&5
11364echo "${ECHO_T}$STRIP" >&6
11365else
11366 echo "$as_me:$LINENO: result: no" >&5
11367echo "${ECHO_T}no" >&6
11368fi
11369
11370fi
11371if test -z "$ac_cv_prog_STRIP"; then
11372 ac_ct_STRIP=$STRIP
11373 # Extract the first word of "strip", so it can be a program name with args.
11374set dummy strip; ac_word=$2
11375echo "$as_me:$LINENO: checking for $ac_word" >&5
11376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11377if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380 if test -n "$ac_ct_STRIP"; then
11381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_ac_ct_STRIP="strip"
11391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395done
11396
11397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11398fi
11399fi
11400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11401if test -n "$ac_ct_STRIP"; then
11402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11403echo "${ECHO_T}$ac_ct_STRIP" >&6
11404else
11405 echo "$as_me:$LINENO: result: no" >&5
11406echo "${ECHO_T}no" >&6
11407fi
11408
11409 STRIP=$ac_ct_STRIP
11410else
11411 STRIP="$ac_cv_prog_STRIP"
11412fi
11413
11414
John Criswell7a73b802003-06-30 21:59:07 +000011415old_CC="$CC"
11416old_CFLAGS="$CFLAGS"
11417
11418# Set sane defaults for various variables
11419test -z "$AR" && AR=ar
11420test -z "$AR_FLAGS" && AR_FLAGS=cru
11421test -z "$AS" && AS=as
11422test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011423test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011424test -z "$DLLTOOL" && DLLTOOL=dlltool
11425test -z "$LD" && LD=ld
11426test -z "$LN_S" && LN_S="ln -s"
11427test -z "$MAGIC_CMD" && MAGIC_CMD=file
11428test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011429test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011430test -z "$OBJDUMP" && OBJDUMP=objdump
11431test -z "$RANLIB" && RANLIB=:
11432test -z "$STRIP" && STRIP=:
11433test -z "$ac_objext" && ac_objext=o
11434
John Criswell7a73b802003-06-30 21:59:07 +000011435# Determine commands to create old-style static archives.
11436old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11437old_postinstall_cmds='chmod 644 $oldlib'
11438old_postuninstall_cmds=
11439
11440if test -n "$RANLIB"; then
11441 case $host_os in
11442 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011443 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011444 ;;
11445 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011446 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011447 ;;
11448 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011450fi
11451
Reid Spencer2706f8c2004-09-19 23:53:36 +000011452cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11453
John Criswell47fdd832003-07-14 16:52:07 +000011454# Only perform the check for file, if the check method requires it
11455case $deplibs_check_method in
11456file_magic*)
11457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11458 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11459echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11460if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011462else
John Criswell47fdd832003-07-14 16:52:07 +000011463 case $MAGIC_CMD in
11464[\\/*] | ?:[\\/]*)
11465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11466 ;;
11467*)
11468 lt_save_MAGIC_CMD="$MAGIC_CMD"
11469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11471 for ac_dir in $ac_dummy; do
11472 IFS="$lt_save_ifs"
11473 test -z "$ac_dir" && ac_dir=.
11474 if test -f $ac_dir/${ac_tool_prefix}file; then
11475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11476 if test -n "$file_magic_test_file"; then
11477 case $deplibs_check_method in
11478 "file_magic "*)
11479 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11482 $EGREP "$file_magic_regex" > /dev/null; then
11483 :
11484 else
11485 cat <<EOF 1>&2
11486
11487*** Warning: the command libtool uses to detect shared libraries,
11488*** $file_magic_cmd, produces output that libtool cannot recognize.
11489*** The result is that libtool may fail to recognize shared libraries
11490*** as such. This will affect the creation of libtool libraries that
11491*** depend on shared libraries, but programs linked with such libtool
11492*** libraries will work regardless of this problem. Nevertheless, you
11493*** may want to report the problem to your system manager and/or to
11494*** bug-libtool@gnu.org
11495
11496EOF
11497 fi ;;
11498 esac
11499 fi
11500 break
11501 fi
11502 done
11503 IFS="$lt_save_ifs"
11504 MAGIC_CMD="$lt_save_MAGIC_CMD"
11505 ;;
11506esac
John Criswell7a73b802003-06-30 21:59:07 +000011507fi
John Criswell7a73b802003-06-30 21:59:07 +000011508
John Criswell47fdd832003-07-14 16:52:07 +000011509MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11510if test -n "$MAGIC_CMD"; then
11511 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11512echo "${ECHO_T}$MAGIC_CMD" >&6
11513else
11514 echo "$as_me:$LINENO: result: no" >&5
11515echo "${ECHO_T}no" >&6
11516fi
John Criswell7a73b802003-06-30 21:59:07 +000011517
John Criswell47fdd832003-07-14 16:52:07 +000011518if test -z "$lt_cv_path_MAGIC_CMD"; then
11519 if test -n "$ac_tool_prefix"; then
11520 echo "$as_me:$LINENO: checking for file" >&5
11521echo $ECHO_N "checking for file... $ECHO_C" >&6
11522if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
11525 case $MAGIC_CMD in
11526[\\/*] | ?:[\\/]*)
11527 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11528 ;;
11529*)
11530 lt_save_MAGIC_CMD="$MAGIC_CMD"
11531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11533 for ac_dir in $ac_dummy; do
11534 IFS="$lt_save_ifs"
11535 test -z "$ac_dir" && ac_dir=.
11536 if test -f $ac_dir/file; then
11537 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11538 if test -n "$file_magic_test_file"; then
11539 case $deplibs_check_method in
11540 "file_magic "*)
11541 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11544 $EGREP "$file_magic_regex" > /dev/null; then
11545 :
11546 else
11547 cat <<EOF 1>&2
11548
11549*** Warning: the command libtool uses to detect shared libraries,
11550*** $file_magic_cmd, produces output that libtool cannot recognize.
11551*** The result is that libtool may fail to recognize shared libraries
11552*** as such. This will affect the creation of libtool libraries that
11553*** depend on shared libraries, but programs linked with such libtool
11554*** libraries will work regardless of this problem. Nevertheless, you
11555*** may want to report the problem to your system manager and/or to
11556*** bug-libtool@gnu.org
11557
11558EOF
11559 fi ;;
11560 esac
11561 fi
11562 break
11563 fi
11564 done
11565 IFS="$lt_save_ifs"
11566 MAGIC_CMD="$lt_save_MAGIC_CMD"
11567 ;;
11568esac
11569fi
11570
11571MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11572if test -n "$MAGIC_CMD"; then
11573 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11574echo "${ECHO_T}$MAGIC_CMD" >&6
11575else
11576 echo "$as_me:$LINENO: result: no" >&5
11577echo "${ECHO_T}no" >&6
11578fi
11579
11580 else
11581 MAGIC_CMD=:
11582 fi
11583fi
11584
11585 fi
11586 ;;
11587esac
11588
Reid Spencer17795972004-11-18 09:47:37 +000011589enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011590enable_win32_dll=no
11591
11592# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11593if test "${enable_libtool_lock+set}" = set; then
11594 enableval="$enable_libtool_lock"
11595
11596fi;
11597test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11598
John Criswell7a73b802003-06-30 21:59:07 +000011599
11600# Check whether --with-pic or --without-pic was given.
11601if test "${with_pic+set}" = set; then
11602 withval="$with_pic"
11603 pic_mode="$withval"
11604else
11605 pic_mode=default
11606fi;
11607test -z "$pic_mode" && pic_mode=default
11608
John Criswell47fdd832003-07-14 16:52:07 +000011609# Use C for the default configuration in the libtool script
11610tagname=
11611lt_save_CC="$CC"
11612ac_ext=c
11613ac_cpp='$CPP $CPPFLAGS'
11614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617
11618
11619# Source file extension for C test sources.
11620ac_ext=c
11621
11622# Object file extension for compiled C test sources.
11623objext=o
11624objext=$objext
11625
11626# Code to be used in simple compile tests
11627lt_simple_compile_test_code="int some_variable = 0;\n"
11628
11629# Code to be used in simple link tests
11630lt_simple_link_test_code='int main(){return(0);}\n'
11631
11632
11633# If no C compiler was specified, use CC.
11634LTCC=${LTCC-"$CC"}
11635
11636# Allow CC to be a program name with arguments.
11637compiler=$CC
11638
11639
11640#
11641# Check for any special shared library compilation flags.
11642#
11643lt_prog_cc_shlib=
11644if test "$GCC" = no; then
11645 case $host_os in
11646 sco3.2v5*)
11647 lt_prog_cc_shlib='-belf'
11648 ;;
11649 esac
11650fi
11651if test -n "$lt_prog_cc_shlib"; then
11652 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11653echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11654 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11655 else
11656 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11657echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11658 lt_cv_prog_cc_can_build_shared=no
11659 fi
11660fi
11661
11662
11663#
11664# Check to make sure the static flag actually works.
11665#
11666echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11667echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11668if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670else
John Criswell47fdd832003-07-14 16:52:07 +000011671 lt_prog_compiler_static_works=no
11672 save_LDFLAGS="$LDFLAGS"
11673 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11674 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11676 # The compiler can only warn and ignore the option if not recognized
11677 # So say no if there are warnings
11678 if test -s conftest.err; then
11679 # Append any errors to the config.log.
11680 cat conftest.err 1>&5
11681 else
11682 lt_prog_compiler_static_works=yes
11683 fi
11684 fi
11685 $rm conftest*
11686 LDFLAGS="$save_LDFLAGS"
11687
11688fi
11689echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11690echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11691
11692if test x"$lt_prog_compiler_static_works" = xyes; then
11693 :
11694else
11695 lt_prog_compiler_static=
11696fi
11697
11698
11699
John Criswell47fdd832003-07-14 16:52:07 +000011700
11701lt_prog_compiler_no_builtin_flag=
11702
11703if test "$GCC" = yes; then
11704 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11705
Reid Spencer2706f8c2004-09-19 23:53:36 +000011706
11707echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11709if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 lt_cv_prog_compiler_rtti_exceptions=no
11713 ac_outfile=conftest.$ac_objext
11714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11715 lt_compiler_flag="-fno-rtti -fno-exceptions"
11716 # Insert the option either (1) after the last *FLAGS variable, or
11717 # (2) before a word containing "conftest.", or (3) at the end.
11718 # Note that $ac_compile itself does not contain backslashes and begins
11719 # with a dollar sign (not a hyphen), so the echo should work correctly.
11720 # The option is referenced via a variable to avoid confusing sed.
11721 lt_compile=`echo "$ac_compile" | $SED \
11722 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11724 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000011725 (eval echo "\"\$as_me:11725: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011726 (eval "$lt_compile" 2>conftest.err)
11727 ac_status=$?
11728 cat conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000011729 echo "$as_me:11729: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011730 if (exit $ac_status) && test -s "$ac_outfile"; then
11731 # The compiler can only warn and ignore the option if not recognized
11732 # So say no if there are warnings
11733 if test ! -s conftest.err; then
11734 lt_cv_prog_compiler_rtti_exceptions=yes
11735 fi
11736 fi
11737 $rm conftest*
11738
11739fi
11740echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11741echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11742
11743if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11745else
11746 :
11747fi
11748
11749fi
11750
11751lt_prog_compiler_wl=
11752lt_prog_compiler_pic=
11753lt_prog_compiler_static=
11754
11755echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11756echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011757
11758 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011759 lt_prog_compiler_wl='-Wl,'
11760 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011761
11762 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011763 aix*)
11764 # All AIX code is PIC.
11765 if test "$host_cpu" = ia64; then
11766 # AIX 5 now supports IA64 processor
11767 lt_prog_compiler_static='-Bstatic'
11768 fi
John Criswell7a73b802003-06-30 21:59:07 +000011769 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011770
John Criswell7a73b802003-06-30 21:59:07 +000011771 amigaos*)
11772 # FIXME: we need at least 68020 code to build shared libraries, but
11773 # adding the `-m68020' flag to GCC prevents building anything better,
11774 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011776 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011777
11778 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011779 # PIC is the default for these OSes.
11780 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011781
11782 mingw* | pw32* | os2*)
11783 # This hack is so that the source file can tell whether it is being
11784 # built for inclusion in a dll (and should export symbols for example).
11785 lt_prog_compiler_pic='-DDLL_EXPORT'
11786 ;;
11787
John Criswell7a73b802003-06-30 21:59:07 +000011788 darwin* | rhapsody*)
11789 # PIC is the default on this platform
11790 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011791 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011792 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011793
11794 msdosdjgpp*)
11795 # Just because we use GCC doesn't mean we suddenly get shared libraries
11796 # on systems that don't support them.
11797 lt_prog_compiler_can_build_shared=no
11798 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011799 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011800
John Criswell7a73b802003-06-30 21:59:07 +000011801 sysv4*MP*)
11802 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011803 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011804 fi
11805 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011806
11807 hpux*)
11808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11809 # not for PA HP-UX.
11810 case "$host_cpu" in
11811 hppa*64*|ia64*)
11812 # +Z the default
11813 ;;
11814 *)
11815 lt_prog_compiler_pic='-fPIC'
11816 ;;
11817 esac
11818 ;;
11819
John Criswell7a73b802003-06-30 21:59:07 +000011820 *)
John Criswell47fdd832003-07-14 16:52:07 +000011821 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011822 ;;
11823 esac
11824 else
John Criswell47fdd832003-07-14 16:52:07 +000011825 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011826 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011827 aix*)
11828 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011829 if test "$host_cpu" = ia64; then
11830 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011831 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011832 else
John Criswell47fdd832003-07-14 16:52:07 +000011833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011834 fi
11835 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011836 darwin*)
11837 # PIC is the default on this platform
11838 # Common symbols not allowed in MH_DYLIB files
11839 case "$cc_basename" in
11840 xlc*)
11841 lt_prog_compiler_pic='-qnocommon'
11842 lt_prog_compiler_wl='-Wl,'
11843 ;;
11844 esac
11845 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011846
John Criswell47fdd832003-07-14 16:52:07 +000011847 mingw* | pw32* | os2*)
11848 # This hack is so that the source file can tell whether it is being
11849 # built for inclusion in a dll (and should export symbols for example).
11850 lt_prog_compiler_pic='-DDLL_EXPORT'
11851 ;;
11852
John Criswell7a73b802003-06-30 21:59:07 +000011853 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011854 lt_prog_compiler_wl='-Wl,'
11855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856 # not for PA HP-UX.
11857 case "$host_cpu" in
11858 hppa*64*|ia64*)
11859 # +Z the default
11860 ;;
11861 *)
11862 lt_prog_compiler_pic='+Z'
11863 ;;
11864 esac
11865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11866 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011867 ;;
11868
John Criswell47fdd832003-07-14 16:52:07 +000011869 irix5* | irix6* | nonstopux*)
11870 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011871 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011872 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011873 ;;
11874
11875 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011876 lt_prog_compiler_pic='-KPIC'
11877 lt_prog_compiler_static='-Bstatic'
11878 ;;
11879
11880 linux*)
11881 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011882 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011883 lt_prog_compiler_wl='-Wl,'
11884 lt_prog_compiler_pic='-KPIC'
11885 lt_prog_compiler_static='-static'
11886 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011887 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011888 lt_prog_compiler_wl='-Wl,'
11889 # All Alpha code is PIC.
11890 lt_prog_compiler_static='-non_shared'
11891 ;;
11892 esac
John Criswell7a73b802003-06-30 21:59:07 +000011893 ;;
11894
11895 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011896 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011897 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011898 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011899 ;;
11900
11901 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011902 lt_prog_compiler_pic='-Kpic'
11903 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011904 ;;
11905
11906 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011907 lt_prog_compiler_wl='-Wl,'
11908 lt_prog_compiler_pic='-KPIC'
11909 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011910 ;;
11911
11912 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011913 lt_prog_compiler_wl='-Qoption ld '
11914 lt_prog_compiler_pic='-PIC'
11915 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011916 ;;
11917
11918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011919 lt_prog_compiler_wl='-Wl,'
11920 lt_prog_compiler_pic='-KPIC'
11921 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011922 ;;
11923
11924 sysv4*MP*)
11925 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011926 lt_prog_compiler_pic='-Kconform_pic'
11927 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011928 fi
11929 ;;
11930
John Criswell47fdd832003-07-14 16:52:07 +000011931 uts4*)
11932 lt_prog_compiler_pic='-pic'
11933 lt_prog_compiler_static='-Bstatic'
11934 ;;
11935
John Criswell7a73b802003-06-30 21:59:07 +000011936 *)
John Criswell47fdd832003-07-14 16:52:07 +000011937 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011938 ;;
11939 esac
11940 fi
11941
John Criswell47fdd832003-07-14 16:52:07 +000011942echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11943echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011944
John Criswell47fdd832003-07-14 16:52:07 +000011945#
11946# Check to make sure the PIC flag actually works.
11947#
11948if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011949
11950echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011951echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11952if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
John Criswell47fdd832003-07-14 16:52:07 +000011955 lt_prog_compiler_pic_works=no
11956 ac_outfile=conftest.$ac_objext
11957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11958 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11959 # Insert the option either (1) after the last *FLAGS variable, or
11960 # (2) before a word containing "conftest.", or (3) at the end.
11961 # Note that $ac_compile itself does not contain backslashes and begins
11962 # with a dollar sign (not a hyphen), so the echo should work correctly.
11963 # The option is referenced via a variable to avoid confusing sed.
11964 lt_compile=`echo "$ac_compile" | $SED \
11965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11967 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000011968 (eval echo "\"\$as_me:11968: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011969 (eval "$lt_compile" 2>conftest.err)
11970 ac_status=$?
11971 cat conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000011972 echo "$as_me:11972: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011973 if (exit $ac_status) && test -s "$ac_outfile"; then
11974 # The compiler can only warn and ignore the option if not recognized
11975 # So say no if there are warnings
11976 if test ! -s conftest.err; then
11977 lt_prog_compiler_pic_works=yes
11978 fi
11979 fi
11980 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011981
John Criswell47fdd832003-07-14 16:52:07 +000011982fi
11983echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11984echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011985
John Criswell47fdd832003-07-14 16:52:07 +000011986if test x"$lt_prog_compiler_pic_works" = xyes; then
11987 case $lt_prog_compiler_pic in
11988 "" | " "*) ;;
11989 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11990 esac
John Criswell7a73b802003-06-30 21:59:07 +000011991else
John Criswell47fdd832003-07-14 16:52:07 +000011992 lt_prog_compiler_pic=
11993 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011994fi
11995
John Criswell7a73b802003-06-30 21:59:07 +000011996fi
John Criswell47fdd832003-07-14 16:52:07 +000011997case "$host_os" in
11998 # For platforms which do not support PIC, -DPIC is meaningless:
11999 *djgpp*)
12000 lt_prog_compiler_pic=
12001 ;;
12002 *)
12003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12004 ;;
12005esac
John Criswell7a73b802003-06-30 21:59:07 +000012006
John Criswell7a73b802003-06-30 21:59:07 +000012007echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12008echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012009if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011else
John Criswell47fdd832003-07-14 16:52:07 +000012012 lt_cv_prog_compiler_c_o=no
12013 $rm -r conftest 2>/dev/null
12014 mkdir conftest
12015 cd conftest
12016 mkdir out
12017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012018
John Criswell47fdd832003-07-14 16:52:07 +000012019 lt_compiler_flag="-o out/conftest2.$ac_objext"
12020 # Insert the option either (1) after the last *FLAGS variable, or
12021 # (2) before a word containing "conftest.", or (3) at the end.
12022 # Note that $ac_compile itself does not contain backslashes and begins
12023 # with a dollar sign (not a hyphen), so the echo should work correctly.
12024 lt_compile=`echo "$ac_compile" | $SED \
12025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12027 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000012028 (eval echo "\"\$as_me:12028: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012029 (eval "$lt_compile" 2>out/conftest.err)
12030 ac_status=$?
12031 cat out/conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000012032 echo "$as_me:12032: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12034 then
12035 # The compiler can only warn and ignore the option if not recognized
12036 # So say no if there are warnings
12037 if test ! -s out/conftest.err; then
12038 lt_cv_prog_compiler_c_o=yes
12039 fi
12040 fi
12041 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012042 $rm conftest*
12043 # SGI C++ compiler will create directory out/ii_files/ for
12044 # template instantiation
12045 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12046 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012047 cd ..
12048 rmdir conftest
12049 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012050
12051fi
John Criswell47fdd832003-07-14 16:52:07 +000012052echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12053echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012054
John Criswell7a73b802003-06-30 21:59:07 +000012055
John Criswell7a73b802003-06-30 21:59:07 +000012056hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012057if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012058 # do not overwrite the value of need_locks provided by the user
12059 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12060echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12061 hard_links=yes
12062 $rm conftest*
12063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12064 touch conftest.a
12065 ln conftest.a conftest.b 2>&5 || hard_links=no
12066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12067 echo "$as_me:$LINENO: result: $hard_links" >&5
12068echo "${ECHO_T}$hard_links" >&6
12069 if test "$hard_links" = no; then
12070 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12071echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12072 need_locks=warn
12073 fi
12074else
12075 need_locks=no
12076fi
John Criswell7a73b802003-06-30 21:59:07 +000012077
John Criswell47fdd832003-07-14 16:52:07 +000012078echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12079echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12080
12081 runpath_var=
12082 allow_undefined_flag=
12083 enable_shared_with_static_runtimes=no
12084 archive_cmds=
12085 archive_expsym_cmds=
12086 old_archive_From_new_cmds=
12087 old_archive_from_expsyms_cmds=
12088 export_dynamic_flag_spec=
12089 whole_archive_flag_spec=
12090 thread_safe_flag_spec=
12091 hardcode_libdir_flag_spec=
12092 hardcode_libdir_flag_spec_ld=
12093 hardcode_libdir_separator=
12094 hardcode_direct=no
12095 hardcode_minus_L=no
12096 hardcode_shlibpath_var=unsupported
12097 link_all_deplibs=unknown
12098 hardcode_automatic=no
12099 module_cmds=
12100 module_expsym_cmds=
12101 always_export_symbols=no
12102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12103 # include_expsyms should be a list of space-separated symbols to be *always*
12104 # included in the symbol list
12105 include_expsyms=
12106 # exclude_expsyms can be an extended regexp of symbols to exclude
12107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12109 # as well as any symbol that contains `d'.
12110 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12112 # platforms (ab)use it in PIC code, but their linkers get confused if
12113 # the symbol is explicitly referenced. Since portable code cannot
12114 # rely on this symbol name, it's probably fine to never include it in
12115 # preloaded symbol tables.
12116 extract_expsyms_cmds=
12117
12118 case $host_os in
12119 cygwin* | mingw* | pw32*)
12120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12121 # When not using gcc, we currently assume that we are using
12122 # Microsoft Visual C++.
12123 if test "$GCC" != yes; then
12124 with_gnu_ld=no
12125 fi
12126 ;;
12127 openbsd*)
12128 with_gnu_ld=no
12129 ;;
12130 esac
12131
12132 ld_shlibs=yes
12133 if test "$with_gnu_ld" = yes; then
12134 # If archive_cmds runs LD, not CC, wlarc should be empty
12135 wlarc='${wl}'
12136
12137 # See if GNU ld supports shared libraries.
12138 case $host_os in
12139 aix3* | aix4* | aix5*)
12140 # On AIX/PPC, the GNU linker is very broken
12141 if test "$host_cpu" != ia64; then
12142 ld_shlibs=no
12143 cat <<EOF 1>&2
12144
12145*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12146*** to be unable to reliably create shared libraries on AIX.
12147*** Therefore, libtool is disabling shared libraries support. If you
12148*** really care for shared libraries, you may want to modify your PATH
12149*** so that a non-GNU linker is found, and then restart.
12150
12151EOF
12152 fi
12153 ;;
12154
12155 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012156 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 +000012157 hardcode_libdir_flag_spec='-L$libdir'
12158 hardcode_minus_L=yes
12159
12160 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12161 # that the semantics of dynamic libraries on AmigaOS, at least up
12162 # to version 4, is to share data among multiple programs linked
12163 # with the same dynamic library. Since this doesn't match the
12164 # behavior of shared libraries on other platforms, we can't use
12165 # them.
12166 ld_shlibs=no
12167 ;;
12168
12169 beos*)
12170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12171 allow_undefined_flag=unsupported
12172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12173 # support --undefined. This deserves some investigation. FIXME
12174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12175 else
12176 ld_shlibs=no
12177 fi
12178 ;;
12179
12180 cygwin* | mingw* | pw32*)
12181 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12182 # as there is no search path for DLLs.
12183 hardcode_libdir_flag_spec='-L$libdir'
12184 allow_undefined_flag=unsupported
12185 always_export_symbols=no
12186 enable_shared_with_static_runtimes=yes
12187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12188
12189 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12191 # If the export-symbols file already is a .def file (1st line
12192 # is EXPORTS), use it as is; otherwise, prepend...
12193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12194 cp $export_symbols $output_objdir/$soname.def;
12195 else
12196 echo EXPORTS > $output_objdir/$soname.def;
12197 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012198 fi~
12199 $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 +000012200 else
12201 ld_shlibs=no
12202 fi
12203 ;;
12204
12205 netbsd*)
12206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12208 wlarc=
12209 else
12210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12212 fi
12213 ;;
12214
12215 solaris* | sysv5*)
12216 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12217 ld_shlibs=no
12218 cat <<EOF 1>&2
12219
12220*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12221*** create shared libraries on Solaris systems. Therefore, libtool
12222*** is disabling shared libraries support. We urge you to upgrade GNU
12223*** binutils to release 2.9.1 or newer. Another option is to modify
12224*** your PATH or compiler configuration so that the native linker is
12225*** used, and then restart.
12226
12227EOF
12228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12231 else
12232 ld_shlibs=no
12233 fi
12234 ;;
12235
12236 sunos4*)
12237 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12238 wlarc=
12239 hardcode_direct=yes
12240 hardcode_shlibpath_var=no
12241 ;;
12242
Reid Spencer2706f8c2004-09-19 23:53:36 +000012243 linux*)
12244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12245 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 archive_cmds="$tmp_archive_cmds"
12247 supports_anon_versioning=no
12248 case `$LD -v 2>/dev/null` in
12249 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12252 *\ 2.11.*) ;; # other 2.11 versions
12253 *) supports_anon_versioning=yes ;;
12254 esac
12255 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012256 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12257cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12258$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012259 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12260 else
12261 archive_expsym_cmds="$tmp_archive_cmds"
12262 fi
12263 else
12264 ld_shlibs=no
12265 fi
12266 ;;
12267
John Criswell47fdd832003-07-14 16:52:07 +000012268 *)
12269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12272 else
12273 ld_shlibs=no
12274 fi
12275 ;;
12276 esac
12277
12278 if test "$ld_shlibs" = yes; then
12279 runpath_var=LD_RUN_PATH
12280 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12281 export_dynamic_flag_spec='${wl}--export-dynamic'
12282 # ancient GNU ld didn't support --whole-archive et. al.
12283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12284 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12285 else
12286 whole_archive_flag_spec=
12287 fi
12288 fi
12289 else
12290 # PORTME fill in a description of your system's linker (not GNU ld)
12291 case $host_os in
12292 aix3*)
12293 allow_undefined_flag=unsupported
12294 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012295 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 +000012296 # Note: this linker hardcodes the directories in LIBPATH if there
12297 # are no directories specified by -L.
12298 hardcode_minus_L=yes
12299 if test "$GCC" = yes && test -z "$link_static_flag"; then
12300 # Neither direct hardcoding nor static linking is supported with a
12301 # broken collect2.
12302 hardcode_direct=unsupported
12303 fi
12304 ;;
12305
12306 aix4* | aix5*)
12307 if test "$host_cpu" = ia64; then
12308 # On IA64, the linker does run time linking by default, so we don't
12309 # have to do anything special.
12310 aix_use_runtimelinking=no
12311 exp_sym_flag='-Bexport'
12312 no_entry_flag=""
12313 else
12314 # If we're using GNU nm, then we don't want the "-C" option.
12315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12316 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12317 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'
12318 else
12319 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'
12320 fi
12321 aix_use_runtimelinking=no
12322
12323 # Test if we are trying to use run time linking or normal
12324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12325 # need to do runtime linking.
12326 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12327 for ld_flag in $LDFLAGS; do
12328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12329 aix_use_runtimelinking=yes
12330 break
12331 fi
12332 done
12333 esac
12334
12335 exp_sym_flag='-bexport'
12336 no_entry_flag='-bnoentry'
12337 fi
12338
12339 # When large executables or shared objects are built, AIX ld can
12340 # have problems creating the table of contents. If linking a library
12341 # or program results in "error TOC overflow" add -mminimal-toc to
12342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12344
12345 archive_cmds=''
12346 hardcode_direct=yes
12347 hardcode_libdir_separator=':'
12348 link_all_deplibs=yes
12349
12350 if test "$GCC" = yes; then
12351 case $host_os in aix4.012|aix4.012.*)
12352 # We only want to do this on AIX 4.2 and lower, the check
12353 # below for broken collect2 doesn't work under 4.3+
12354 collect2name=`${CC} -print-prog-name=collect2`
12355 if test -f "$collect2name" && \
12356 strings "$collect2name" | grep resolve_lib_name >/dev/null
12357 then
12358 # We have reworked collect2
12359 hardcode_direct=yes
12360 else
12361 # We have old collect2
12362 hardcode_direct=unsupported
12363 # It fails to find uninstalled libraries when the uninstalled
12364 # path is not listed in the libpath. Setting hardcode_minus_L
12365 # to unsupported forces relinking
12366 hardcode_minus_L=yes
12367 hardcode_libdir_flag_spec='-L$libdir'
12368 hardcode_libdir_separator=
12369 fi
12370 esac
12371 shared_flag='-shared'
12372 else
12373 # not using gcc
12374 if test "$host_cpu" = ia64; then
12375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12376 # chokes on -Wl,-G. The following line is correct:
12377 shared_flag='-G'
12378 else
12379 if test "$aix_use_runtimelinking" = yes; then
12380 shared_flag='${wl}-G'
12381 else
12382 shared_flag='${wl}-bM:SRE'
12383 fi
12384 fi
12385 fi
12386
12387 # It seems that -bexpall does not export symbols beginning with
12388 # underscore (_), so it is better to generate a list of symbols to export.
12389 always_export_symbols=yes
12390 if test "$aix_use_runtimelinking" = yes; then
12391 # Warning - without using the other runtime loading flags (-brtl),
12392 # -berok will link without error, but may produce a broken library.
12393 allow_undefined_flag='-berok'
12394 # Determine the default libpath from the value encoded in an empty executable.
12395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012401
John Criswell7a73b802003-06-30 21:59:07 +000012402int
12403main ()
12404{
John Criswell47fdd832003-07-14 16:52:07 +000012405
John Criswell7a73b802003-06-30 21:59:07 +000012406 ;
12407 return 0;
12408}
12409_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012410rm -f conftest.$ac_objext conftest$ac_exeext
12411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012412 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012419 { ac_try='test -z "$ac_c_werror_flag"
12420 || test ! -s conftest.err'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012432
John Criswell47fdd832003-07-14 16:52:07 +000012433aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12434}'`
12435# Check for a 64-bit object if we didn't find anything.
12436if 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; }
12437}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012438else
12439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012440sed 's/^/| /' conftest.$ac_ext >&5
12441
John Criswell7a73b802003-06-30 21:59:07 +000012442fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012443rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012446
John Criswell47fdd832003-07-14 16:52:07 +000012447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12448 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"
12449 else
12450 if test "$host_cpu" = ia64; then
12451 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12452 allow_undefined_flag="-z nodefs"
12453 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"
12454 else
12455 # Determine the default libpath from the value encoded in an empty executable.
12456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012462
John Criswell47fdd832003-07-14 16:52:07 +000012463int
12464main ()
12465{
John Criswell7a73b802003-06-30 21:59:07 +000012466
John Criswell47fdd832003-07-14 16:52:07 +000012467 ;
12468 return 0;
12469}
12470_ACEOF
12471rm -f conftest.$ac_objext conftest$ac_exeext
12472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012473 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012493
John Criswell47fdd832003-07-14 16:52:07 +000012494aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12495}'`
12496# Check for a 64-bit object if we didn't find anything.
12497if 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; }
12498}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012499else
John Criswell47fdd832003-07-14 16:52:07 +000012500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012501sed 's/^/| /' conftest.$ac_ext >&5
12502
John Criswell47fdd832003-07-14 16:52:07 +000012503fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012504rm -f conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012507
John Criswell47fdd832003-07-14 16:52:07 +000012508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12509 # Warning - without using the other run time loading flags,
12510 # -berok will link without error, but may produce a broken library.
12511 no_undefined_flag=' ${wl}-bernotok'
12512 allow_undefined_flag=' ${wl}-berok'
12513 # -bexpall does not export symbols beginning with underscore (_)
12514 always_export_symbols=yes
12515 # Exported symbols can be pulled into shared objects from archives
12516 whole_archive_flag_spec=' '
12517 archive_cmds_need_lc=yes
12518 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012519 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 +000012520 fi
12521 fi
John Criswell7a73b802003-06-30 21:59:07 +000012522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012523
12524 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012525 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 +000012526 hardcode_libdir_flag_spec='-L$libdir'
12527 hardcode_minus_L=yes
12528 # see comment about different semantics on the GNU ld section
12529 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012530 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012531
Reid Spencer2706f8c2004-09-19 23:53:36 +000012532 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012533 export_dynamic_flag_spec=-rdynamic
12534 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012535
John Criswell47fdd832003-07-14 16:52:07 +000012536 cygwin* | mingw* | pw32*)
12537 # When not using gcc, we currently assume that we are using
12538 # Microsoft Visual C++.
12539 # hardcode_libdir_flag_spec is actually meaningless, as there is
12540 # no search path for DLLs.
12541 hardcode_libdir_flag_spec=' '
12542 allow_undefined_flag=unsupported
12543 # Tell ltmain to make .lib files, not .a files.
12544 libext=lib
12545 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012546 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012547 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012548 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012549 # The linker will automatically build a .lib file if we build a DLL.
12550 old_archive_From_new_cmds='true'
12551 # FIXME: Should let the user specify the lib program.
12552 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12553 fix_srcfile_path='`cygpath -w "$srcfile"`'
12554 enable_shared_with_static_runtimes=yes
12555 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012556
John Criswell47fdd832003-07-14 16:52:07 +000012557 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012558 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012559 rhapsody* | darwin1.[012])
12560 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12561 ;;
12562 *) # Darwin 1.3 on
12563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12564 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12565 else
12566 case ${MACOSX_DEPLOYMENT_TARGET} in
12567 10.[012])
12568 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12569 ;;
12570 10.*)
12571 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12572 ;;
12573 esac
12574 fi
12575 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012576 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012577 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012578 hardcode_direct=no
12579 hardcode_automatic=yes
12580 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012581 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012582 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012583 if test "$GCC" = yes ; then
12584 output_verbose_link_cmd='echo'
12585 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12586 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12587 # 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 +000012588 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}'
12589 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 +000012590 else
12591 case "$cc_basename" in
12592 xlc*)
12593 output_verbose_link_cmd='echo'
12594 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12595 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12596 # 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 +000012597 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}'
12598 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 +000012599 ;;
12600 *)
12601 ld_shlibs=no
12602 ;;
12603 esac
John Criswell7a73b802003-06-30 21:59:07 +000012604 fi
John Criswell47fdd832003-07-14 16:52:07 +000012605 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012606
John Criswell47fdd832003-07-14 16:52:07 +000012607 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012609 hardcode_libdir_flag_spec='-L$libdir'
12610 hardcode_shlibpath_var=no
12611 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012612
John Criswell47fdd832003-07-14 16:52:07 +000012613 freebsd1*)
12614 ld_shlibs=no
12615 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012616
John Criswell47fdd832003-07-14 16:52:07 +000012617 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12618 # support. Future versions do this automatically, but an explicit c++rt0.o
12619 # does not break anything, and helps significantly (at the cost of a little
12620 # extra space).
12621 freebsd2.2*)
12622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12623 hardcode_libdir_flag_spec='-R$libdir'
12624 hardcode_direct=yes
12625 hardcode_shlibpath_var=no
12626 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012627
John Criswell47fdd832003-07-14 16:52:07 +000012628 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12629 freebsd2*)
12630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12631 hardcode_direct=yes
12632 hardcode_minus_L=yes
12633 hardcode_shlibpath_var=no
12634 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012635
John Criswell47fdd832003-07-14 16:52:07 +000012636 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012637 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012638 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12639 hardcode_libdir_flag_spec='-R$libdir'
12640 hardcode_direct=yes
12641 hardcode_shlibpath_var=no
12642 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012643
John Criswell47fdd832003-07-14 16:52:07 +000012644 hpux9*)
12645 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012646 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 +000012647 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012648 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 +000012649 fi
12650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12651 hardcode_libdir_separator=:
12652 hardcode_direct=yes
12653
12654 # hardcode_minus_L: Not really in the search PATH,
12655 # but as the default location of the library.
12656 hardcode_minus_L=yes
12657 export_dynamic_flag_spec='${wl}-E'
12658 ;;
12659
12660 hpux10* | hpux11*)
12661 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12662 case "$host_cpu" in
12663 hppa*64*|ia64*)
12664 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12665 ;;
12666 *)
12667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12668 ;;
12669 esac
12670 else
12671 case "$host_cpu" in
12672 hppa*64*|ia64*)
12673 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12674 ;;
12675 *)
12676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12677 ;;
12678 esac
12679 fi
12680 if test "$with_gnu_ld" = no; then
12681 case "$host_cpu" in
12682 hppa*64*)
12683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12684 hardcode_libdir_flag_spec_ld='+b $libdir'
12685 hardcode_libdir_separator=:
12686 hardcode_direct=no
12687 hardcode_shlibpath_var=no
12688 ;;
12689 ia64*)
12690 hardcode_libdir_flag_spec='-L$libdir'
12691 hardcode_direct=no
12692 hardcode_shlibpath_var=no
12693
12694 # hardcode_minus_L: Not really in the search PATH,
12695 # but as the default location of the library.
12696 hardcode_minus_L=yes
12697 ;;
12698 *)
12699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12700 hardcode_libdir_separator=:
12701 hardcode_direct=yes
12702 export_dynamic_flag_spec='${wl}-E'
12703
12704 # hardcode_minus_L: Not really in the search PATH,
12705 # but as the default location of the library.
12706 hardcode_minus_L=yes
12707 ;;
12708 esac
12709 fi
12710 ;;
12711
12712 irix5* | irix6* | nonstopux*)
12713 if test "$GCC" = yes; then
12714 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'
12715 else
12716 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'
12717 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12718 fi
12719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12720 hardcode_libdir_separator=:
12721 link_all_deplibs=yes
12722 ;;
12723
12724 netbsd*)
12725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12727 else
12728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12729 fi
12730 hardcode_libdir_flag_spec='-R$libdir'
12731 hardcode_direct=yes
12732 hardcode_shlibpath_var=no
12733 ;;
12734
12735 newsos6)
12736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12737 hardcode_direct=yes
12738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12739 hardcode_libdir_separator=:
12740 hardcode_shlibpath_var=no
12741 ;;
12742
12743 openbsd*)
12744 hardcode_direct=yes
12745 hardcode_shlibpath_var=no
12746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012748 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 +000012749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12750 export_dynamic_flag_spec='${wl}-E'
12751 else
12752 case $host_os in
12753 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 hardcode_libdir_flag_spec='-R$libdir'
12756 ;;
12757 *)
12758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12760 ;;
12761 esac
12762 fi
12763 ;;
12764
12765 os2*)
12766 hardcode_libdir_flag_spec='-L$libdir'
12767 hardcode_minus_L=yes
12768 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012769 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 +000012770 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12771 ;;
12772
12773 osf3*)
12774 if test "$GCC" = yes; then
12775 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12776 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'
12777 else
12778 allow_undefined_flag=' -expect_unresolved \*'
12779 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'
12780 fi
12781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782 hardcode_libdir_separator=:
12783 ;;
12784
12785 osf4* | osf5*) # as osf3* with the addition of -msym flag
12786 if test "$GCC" = yes; then
12787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12788 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'
12789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12790 else
12791 allow_undefined_flag=' -expect_unresolved \*'
12792 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 +000012793 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12794 $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'
12795
John Criswell47fdd832003-07-14 16:52:07 +000012796 # Both c and cxx compiler support -rpath directly
12797 hardcode_libdir_flag_spec='-rpath $libdir'
12798 fi
12799 hardcode_libdir_separator=:
12800 ;;
12801
12802 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12804 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012805 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012806 runpath_var=LD_RUN_PATH
12807 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012808 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012809
John Criswell47fdd832003-07-14 16:52:07 +000012810 solaris*)
12811 no_undefined_flag=' -z text'
12812 if test "$GCC" = yes; then
12813 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012814 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12815 $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 +000012816 else
12817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12819 $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 +000012820 fi
12821 hardcode_libdir_flag_spec='-R$libdir'
12822 hardcode_shlibpath_var=no
12823 case $host_os in
12824 solaris2.[0-5] | solaris2.[0-5].*) ;;
12825 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12826 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12827 esac
12828 link_all_deplibs=yes
12829 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012830
John Criswell47fdd832003-07-14 16:52:07 +000012831 sunos4*)
12832 if test "x$host_vendor" = xsequent; then
12833 # Use $CC to link under sequent, because it throws in some extra .o
12834 # files that make .init and .fini sections work.
12835 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12836 else
12837 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12838 fi
12839 hardcode_libdir_flag_spec='-L$libdir'
12840 hardcode_direct=yes
12841 hardcode_minus_L=yes
12842 hardcode_shlibpath_var=no
12843 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012844
John Criswell47fdd832003-07-14 16:52:07 +000012845 sysv4)
12846 case $host_vendor in
12847 sni)
12848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12849 hardcode_direct=yes # is this really true???
12850 ;;
12851 siemens)
12852 ## LD is ld it makes a PLAMLIB
12853 ## CC just makes a GrossModule.
12854 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12855 reload_cmds='$CC -r -o $output$reload_objs'
12856 hardcode_direct=no
12857 ;;
12858 motorola)
12859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12861 ;;
12862 esac
12863 runpath_var='LD_RUN_PATH'
12864 hardcode_shlibpath_var=no
12865 ;;
12866
12867 sysv4.3*)
12868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869 hardcode_shlibpath_var=no
12870 export_dynamic_flag_spec='-Bexport'
12871 ;;
12872
12873 sysv4*MP*)
12874 if test -d /usr/nec; then
12875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12876 hardcode_shlibpath_var=no
12877 runpath_var=LD_RUN_PATH
12878 hardcode_runpath_var=yes
12879 ld_shlibs=yes
12880 fi
12881 ;;
12882
12883 sysv4.2uw2*)
12884 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct=yes
12886 hardcode_minus_L=no
12887 hardcode_shlibpath_var=no
12888 hardcode_runpath_var=yes
12889 runpath_var=LD_RUN_PATH
12890 ;;
12891
12892 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12893 no_undefined_flag='${wl}-z ${wl}text'
12894 if test "$GCC" = yes; then
12895 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 else
12897 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12898 fi
12899 runpath_var='LD_RUN_PATH'
12900 hardcode_shlibpath_var=no
12901 ;;
12902
12903 sysv5*)
12904 no_undefined_flag=' -z text'
12905 # $CC -shared without GNU ld will not create a library from C++
12906 # object files and a static libstdc++, better avoid it by now
12907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_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 $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 +000012910 hardcode_libdir_flag_spec=
12911 hardcode_shlibpath_var=no
12912 runpath_var='LD_RUN_PATH'
12913 ;;
12914
12915 uts4*)
12916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_libdir_flag_spec='-L$libdir'
12918 hardcode_shlibpath_var=no
12919 ;;
12920
12921 *)
12922 ld_shlibs=no
12923 ;;
12924 esac
12925 fi
12926
John Criswell7a73b802003-06-30 21:59:07 +000012927echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12928echo "${ECHO_T}$ld_shlibs" >&6
12929test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012930
John Criswell47fdd832003-07-14 16:52:07 +000012931variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932if test "$GCC" = yes; then
12933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12934fi
12935
12936#
12937# Do we need to explicitly link libc?
12938#
12939case "x$archive_cmds_need_lc" in
12940x|xyes)
12941 # Assume -lc should be added
12942 archive_cmds_need_lc=yes
12943
12944 if test "$enable_shared" = yes && test "$GCC" = yes; then
12945 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012946 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012947 # FIXME: we may have to deal with multi-command sequences.
12948 ;;
12949 '$CC '*)
12950 # Test whether the compiler implicitly links with -lc since on some
12951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12952 # to ld, don't add -lc before -lgcc.
12953 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12954echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12955 $rm conftest*
12956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12957
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } 2>conftest.err; then
12963 soname=conftest
12964 lib=conftest
12965 libobjs=conftest.$ac_objext
12966 deplibs=
12967 wl=$lt_prog_compiler_wl
12968 compiler_flags=-v
12969 linker_flags=-v
12970 verstring=
12971 output_objdir=.
12972 libname=conftest
12973 lt_save_allow_undefined_flag=$allow_undefined_flag
12974 allow_undefined_flag=
12975 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12976 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }
12980 then
12981 archive_cmds_need_lc=no
12982 else
12983 archive_cmds_need_lc=yes
12984 fi
12985 allow_undefined_flag=$lt_save_allow_undefined_flag
12986 else
12987 cat conftest.err 1>&5
12988 fi
12989 $rm conftest*
12990 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12991echo "${ECHO_T}$archive_cmds_need_lc" >&6
12992 ;;
12993 esac
12994 fi
12995 ;;
12996esac
12997
John Criswell7a73b802003-06-30 21:59:07 +000012998echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12999echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13000library_names_spec=
13001libname_spec='lib$name'
13002soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013003shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013004postinstall_cmds=
13005postuninstall_cmds=
13006finish_cmds=
13007finish_eval=
13008shlibpath_var=
13009shlibpath_overrides_runpath=unknown
13010version_type=none
13011dynamic_linker="$host_os ld.so"
13012sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013013if test "$GCC" = yes; then
13014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13015 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13016 # if the path contains ";" then we assume it to be the separator
13017 # otherwise default to the standard path separator (i.e. ":") - it is
13018 # assumed that no part of a normal pathname contains ";" but that should
13019 # okay in the real world where ";" in dirpaths is itself problematic.
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13021 else
13022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13023 fi
13024else
13025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13026fi
13027need_lib_prefix=unknown
13028hardcode_into_libs=no
13029
13030# when you set need_version to no, make sure it does not cause -set_version
13031# flags to be left without arguments
13032need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013033
13034case $host_os in
13035aix3*)
13036 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013038 shlibpath_var=LIBPATH
13039
John Criswell47fdd832003-07-14 16:52:07 +000013040 # AIX 3 has no versioning support, so we append a major version to the name.
13041 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013042 ;;
13043
13044aix4* | aix5*)
13045 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013046 need_lib_prefix=no
13047 need_version=no
13048 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013049 if test "$host_cpu" = ia64; then
13050 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013051 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013052 shlibpath_var=LD_LIBRARY_PATH
13053 else
13054 # With GCC up to 2.95.x, collect2 would create an import file
13055 # for dependence libraries. The import file would start with
13056 # the line `#! .'. This would cause the generated library to
13057 # depend on `.', always an invalid library. This was fixed in
13058 # development snapshots of GCC prior to 3.0.
13059 case $host_os in
13060 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013061 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13062 echo ' yes '
13063 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13064 :
13065 else
13066 can_build_shared=no
13067 fi
13068 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013069 esac
John Criswell47fdd832003-07-14 16:52:07 +000013070 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13071 # soname into executable. Probably we can add versioning support to
13072 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013073 if test "$aix_use_runtimelinking" = yes; then
13074 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13075 # instead of lib<name>.a to let people know that these are not
13076 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013078 else
13079 # We preserve .a as extension for shared libraries through AIX4.2
13080 # and later when we are not doing run time linking.
13081 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013082 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013083 fi
13084 shlibpath_var=LIBPATH
13085 fi
13086 ;;
13087
13088amigaos*)
13089 library_names_spec='$libname.ixlibrary $libname.a'
13090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013091 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 +000013092 ;;
13093
13094beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013095 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013096 dynamic_linker="$host_os ld.so"
13097 shlibpath_var=LIBRARY_PATH
13098 ;;
13099
Reid Spencer2706f8c2004-09-19 23:53:36 +000013100bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013101 version_type=linux
13102 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013109 # the default ld.so.conf also contains /usr/contrib/lib and
13110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13111 # libtool to hard-code these into programs
13112 ;;
13113
13114cygwin* | mingw* | pw32*)
13115 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013116 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013117 need_version=no
13118 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013119
John Criswell7a73b802003-06-30 21:59:07 +000013120 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013121 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013122 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013124 postinstall_cmds='base_file=`basename \${file}`~
13125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13126 dldir=$destdir/`dirname \$dlpath`~
13127 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013128 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13130 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013131 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013132 shlibpath_overrides_runpath=yes
13133
13134 case $host_os in
13135 cygwin*)
13136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13137 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 +000013138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013139 ;;
13140 mingw*)
13141 # MinGW DLLs use traditional 'lib' prefix
13142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13145 # It is most probably a Windows format PATH printed by
13146 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13147 # path with ; separators, and with drive letters. We can handle the
13148 # drive letters (cygwin fileutils understands them), so leave them,
13149 # especially as we might pass files found there to a mingw objdump,
13150 # which wouldn't understand a cygwinified path. Ahh.
13151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13152 else
13153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13154 fi
13155 ;;
13156 pw32*)
13157 # pw32 DLLs use 'pw' prefix rather than 'lib'
13158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13159 ;;
13160 esac
John Criswell7a73b802003-06-30 21:59:07 +000013161 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013162
John Criswell7a73b802003-06-30 21:59:07 +000013163 *)
John Criswell47fdd832003-07-14 16:52:07 +000013164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013165 ;;
13166 esac
13167 dynamic_linker='Win32 ld.exe'
13168 # FIXME: first we should search . and the directory the executable is in
13169 shlibpath_var=PATH
13170 ;;
13171
13172darwin* | rhapsody*)
13173 dynamic_linker="$host_os dyld"
13174 version_type=darwin
13175 need_lib_prefix=no
13176 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013178 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013179 shlibpath_overrides_runpath=yes
13180 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013181 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013182 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013183 if test "$GCC" = yes; then
13184 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"`
13185 else
13186 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013187 fi
13188 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13189 ;;
13190
13191dgux*)
13192 version_type=linux
13193 need_lib_prefix=no
13194 need_version=no
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013198 ;;
13199
13200freebsd1*)
13201 dynamic_linker=no
13202 ;;
13203
Reid Spencer2706f8c2004-09-19 23:53:36 +000013204kfreebsd*-gnu)
13205 version_type=linux
13206 need_lib_prefix=no
13207 need_version=no
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=no
13212 hardcode_into_libs=yes
13213 dynamic_linker='GNU ld.so'
13214 ;;
13215
John Criswell7a73b802003-06-30 21:59:07 +000013216freebsd*)
13217 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13218 version_type=freebsd-$objformat
13219 case $version_type in
13220 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013222 need_version=no
13223 need_lib_prefix=no
13224 ;;
13225 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013227 need_version=yes
13228 ;;
13229 esac
13230 shlibpath_var=LD_LIBRARY_PATH
13231 case $host_os in
13232 freebsd2*)
13233 shlibpath_overrides_runpath=yes
13234 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013235 freebsd3.01* | freebsdelf3.01*)
13236 shlibpath_overrides_runpath=yes
13237 hardcode_into_libs=yes
13238 ;;
13239 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013240 shlibpath_overrides_runpath=no
13241 hardcode_into_libs=yes
13242 ;;
13243 esac
13244 ;;
13245
13246gnu*)
13247 version_type=linux
13248 need_lib_prefix=no
13249 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013252 shlibpath_var=LD_LIBRARY_PATH
13253 hardcode_into_libs=yes
13254 ;;
13255
13256hpux9* | hpux10* | hpux11*)
13257 # Give a soname corresponding to the major version so that dld.sl refuses to
13258 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013259 version_type=sunos
13260 need_lib_prefix=no
13261 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013262 case "$host_cpu" in
13263 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013264 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013265 hardcode_into_libs=yes
13266 dynamic_linker="$host_os dld.so"
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 if test "X$HPUX_IA64_MODE" = X32; then
13272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13273 else
13274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13275 fi
13276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13277 ;;
13278 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013279 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013280 hardcode_into_libs=yes
13281 dynamic_linker="$host_os dld.sl"
13282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13288 ;;
13289 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013290 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013291 dynamic_linker="$host_os dld.sl"
13292 shlibpath_var=SHLIB_PATH
13293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 ;;
13297 esac
John Criswell7a73b802003-06-30 21:59:07 +000013298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13299 postinstall_cmds='chmod 555 $lib'
13300 ;;
13301
John Criswell47fdd832003-07-14 16:52:07 +000013302irix5* | irix6* | nonstopux*)
13303 case $host_os in
13304 nonstopux*) version_type=nonstopux ;;
13305 *)
13306 if test "$lt_cv_prog_gnu_ld" = yes; then
13307 version_type=linux
13308 else
13309 version_type=irix
13310 fi ;;
13311 esac
John Criswell7a73b802003-06-30 21:59:07 +000013312 need_lib_prefix=no
13313 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013314 soname_spec='${libname}${release}${shared_ext}$major'
13315 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 +000013316 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013317 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013318 libsuff= shlibsuff=
13319 ;;
13320 *)
13321 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13323 libsuff= shlibsuff= libmagic=32-bit;;
13324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13325 libsuff=32 shlibsuff=N32 libmagic=N32;;
13326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013328 *) libsuff= shlibsuff= libmagic=never-match;;
13329 esac
13330 ;;
13331 esac
13332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13333 shlibpath_overrides_runpath=no
13334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013336 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013337 ;;
13338
13339# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013340linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013341 dynamic_linker=no
13342 ;;
13343
13344# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013345linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013346 version_type=linux
13347 need_lib_prefix=no
13348 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=no
13354 # This implies no fast_install, which is unacceptable.
13355 # Some rework will be needed to allow for fast_install
13356 # before this can be enabled.
13357 hardcode_into_libs=yes
13358
Reid Spencer2706f8c2004-09-19 23:53:36 +000013359 # Append ld.so.conf contents to the search path
13360 if test -f /etc/ld.so.conf; then
13361 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13363 fi
13364
John Criswell7a73b802003-06-30 21:59:07 +000013365 # We used to test for /lib/ld.so.1 and disable shared libraries on
13366 # powerpc, because MkLinux only supported shared libraries with the
13367 # GNU dynamic linker. Since this was broken with cross compilers,
13368 # most powerpc-linux boxes support dynamic linking these days and
13369 # people can always --disable-shared, the test was removed, and we
13370 # assume the GNU/Linux dynamic linker is in use.
13371 dynamic_linker='GNU/Linux ld.so'
13372 ;;
13373
Reid Spencer2706f8c2004-09-19 23:53:36 +000013374knetbsd*-gnu)
13375 version_type=linux
13376 need_lib_prefix=no
13377 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13383 dynamic_linker='GNU ld.so'
13384 ;;
13385
John Criswell7a73b802003-06-30 21:59:07 +000013386netbsd*)
13387 version_type=sunos
13388 need_lib_prefix=no
13389 need_version=no
13390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13393 dynamic_linker='NetBSD (a.out) ld.so'
13394 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013396 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013397 dynamic_linker='NetBSD ld.elf_so'
13398 fi
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13401 hardcode_into_libs=yes
13402 ;;
13403
13404newsos6)
13405 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 shlibpath_overrides_runpath=yes
13409 ;;
13410
Reid Spencer2706f8c2004-09-19 23:53:36 +000013411nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013412 version_type=linux
13413 need_lib_prefix=no
13414 need_version=no
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=yes
13419 ;;
13420
13421openbsd*)
13422 version_type=sunos
13423 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013424 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13427 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013428 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 +000013429 case $host_os in
13430 openbsd2.[89] | openbsd2.[89].*)
13431 shlibpath_overrides_runpath=no
13432 ;;
13433 *)
13434 shlibpath_overrides_runpath=yes
13435 ;;
13436 esac
John Criswell7a73b802003-06-30 21:59:07 +000013437 else
13438 shlibpath_overrides_runpath=yes
13439 fi
John Criswell7a73b802003-06-30 21:59:07 +000013440 ;;
13441
13442os2*)
13443 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013444 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013445 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013446 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013447 dynamic_linker='OS/2 ld.exe'
13448 shlibpath_var=LIBPATH
13449 ;;
13450
13451osf3* | osf4* | osf5*)
13452 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013453 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013454 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013455 soname_spec='${libname}${release}${shared_ext}$major'
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013457 shlibpath_var=LD_LIBRARY_PATH
13458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13460 ;;
13461
13462sco3.2v5*)
13463 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013464 soname_spec='${libname}${release}${shared_ext}$major'
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013466 shlibpath_var=LD_LIBRARY_PATH
13467 ;;
13468
13469solaris*)
13470 version_type=linux
13471 need_lib_prefix=no
13472 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13477 hardcode_into_libs=yes
13478 # ldd complains unless libraries are executable
13479 postinstall_cmds='chmod +x $lib'
13480 ;;
13481
13482sunos4*)
13483 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 if test "$with_gnu_ld" = yes; then
13489 need_lib_prefix=no
13490 fi
13491 need_version=yes
13492 ;;
13493
13494sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13495 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013498 shlibpath_var=LD_LIBRARY_PATH
13499 case $host_vendor in
13500 sni)
13501 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013502 need_lib_prefix=no
13503 export_dynamic_flag_spec='${wl}-Blargedynsym'
13504 runpath_var=LD_RUN_PATH
13505 ;;
13506 siemens)
13507 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013508 ;;
13509 motorola)
13510 need_lib_prefix=no
13511 need_version=no
13512 shlibpath_overrides_runpath=no
13513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13514 ;;
13515 esac
13516 ;;
13517
John Criswell7a73b802003-06-30 21:59:07 +000013518sysv4*MP*)
13519 if test -d /usr/nec ;then
13520 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13522 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013523 shlibpath_var=LD_LIBRARY_PATH
13524 fi
13525 ;;
13526
John Criswell47fdd832003-07-14 16:52:07 +000013527uts4*)
13528 version_type=linux
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 ;;
13533
John Criswell7a73b802003-06-30 21:59:07 +000013534*)
13535 dynamic_linker=no
13536 ;;
13537esac
13538echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13539echo "${ECHO_T}$dynamic_linker" >&6
13540test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013541
Reid Spencer2706f8c2004-09-19 23:53:36 +000013542echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13544hardcode_action=
13545if test -n "$hardcode_libdir_flag_spec" || \
13546 test -n "$runpath_var" || \
13547 test "X$hardcode_automatic" = "Xyes" ; then
13548
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct" != no &&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13555 test "$hardcode_minus_L" != no; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action=relink
13558 else
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action=immediate
13561 fi
13562else
13563 # We cannot hardcode anything, or else we can only hardcode existing
13564 # directories.
13565 hardcode_action=unsupported
13566fi
13567echo "$as_me:$LINENO: result: $hardcode_action" >&5
13568echo "${ECHO_T}$hardcode_action" >&6
13569
13570if test "$hardcode_action" = relink; then
13571 # Fast installation is not supported
13572 enable_fast_install=no
13573elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no; then
13575 # Fast installation is not necessary
13576 enable_fast_install=needless
13577fi
13578
13579striplib=
13580old_striplib=
13581echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13582echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13583if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13585 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13586 echo "$as_me:$LINENO: result: yes" >&5
13587echo "${ECHO_T}yes" >&6
13588else
13589# FIXME - insert some real tests, host_os isn't really good enough
13590 case $host_os in
13591 darwin*)
13592 if test -n "$STRIP" ; then
13593 striplib="$STRIP -x"
13594 echo "$as_me:$LINENO: result: yes" >&5
13595echo "${ECHO_T}yes" >&6
13596 else
13597 echo "$as_me:$LINENO: result: no" >&5
13598echo "${ECHO_T}no" >&6
13599fi
13600 ;;
13601 *)
13602 echo "$as_me:$LINENO: result: no" >&5
13603echo "${ECHO_T}no" >&6
13604 ;;
13605 esac
13606fi
13607
John Criswell7a73b802003-06-30 21:59:07 +000013608if test "x$enable_dlopen" != xyes; then
13609 enable_dlopen=unknown
13610 enable_dlopen_self=unknown
13611 enable_dlopen_self_static=unknown
13612else
13613 lt_cv_dlopen=no
13614 lt_cv_dlopen_libs=
13615
13616 case $host_os in
13617 beos*)
13618 lt_cv_dlopen="load_add_on"
13619 lt_cv_dlopen_libs=
13620 lt_cv_dlopen_self=yes
13621 ;;
13622
John Criswell47fdd832003-07-14 16:52:07 +000013623 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013624 lt_cv_dlopen="LoadLibrary"
13625 lt_cv_dlopen_libs=
13626 ;;
13627
John Criswell47fdd832003-07-14 16:52:07 +000013628 cygwin*)
13629 lt_cv_dlopen="dlopen"
13630 lt_cv_dlopen_libs=
13631 ;;
13632
13633 darwin*)
13634 # if libdl is installed we need to link against it
13635 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13636echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13637if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639else
13640 ac_check_lib_save_LIBS=$LIBS
13641LIBS="-ldl $LIBS"
13642cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013643/* confdefs.h. */
13644_ACEOF
13645cat confdefs.h >>conftest.$ac_ext
13646cat >>conftest.$ac_ext <<_ACEOF
13647/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013648
13649/* Override any gcc2 internal prototype to avoid an error. */
13650#ifdef __cplusplus
13651extern "C"
13652#endif
13653/* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13655char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013656int
13657main ()
13658{
13659dlopen ();
13660 ;
13661 return 0;
13662}
13663_ACEOF
13664rm -f conftest.$ac_objext conftest$ac_exeext
13665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013666 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_lib_dl_dlopen=yes
13687else
13688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013689sed 's/^/| /' conftest.$ac_ext >&5
13690
John Criswell47fdd832003-07-14 16:52:07 +000013691ac_cv_lib_dl_dlopen=no
13692fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013693rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013695LIBS=$ac_check_lib_save_LIBS
13696fi
13697echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13698echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13699if test $ac_cv_lib_dl_dlopen = yes; then
13700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13701else
13702
13703 lt_cv_dlopen="dyld"
13704 lt_cv_dlopen_libs=
13705 lt_cv_dlopen_self=yes
13706
13707fi
13708
13709 ;;
13710
John Criswell7a73b802003-06-30 21:59:07 +000013711 *)
13712 echo "$as_me:$LINENO: checking for shl_load" >&5
13713echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13714if test "${ac_cv_func_shl_load+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716else
13717 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013723/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13725#define shl_load innocuous_shl_load
13726
John Criswell7a73b802003-06-30 21:59:07 +000013727/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013728 which can conflict with char shl_load (); below.
13729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13730 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013731
John Criswell0c38eaf2003-09-10 15:17:25 +000013732#ifdef __STDC__
13733# include <limits.h>
13734#else
13735# include <assert.h>
13736#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013737
13738#undef shl_load
13739
John Criswell7a73b802003-06-30 21:59:07 +000013740/* Override any gcc2 internal prototype to avoid an error. */
13741#ifdef __cplusplus
13742extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013743{
John Criswell7a73b802003-06-30 21:59:07 +000013744#endif
13745/* We use char because int might match the return type of a gcc2
13746 builtin and then its argument prototype would still apply. */
13747char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013748/* The GNU C library defines this for functions which it implements
13749 to always fail with ENOSYS. Some functions are actually named
13750 something starting with __ and the normal name is an alias. */
13751#if defined (__stub_shl_load) || defined (__stub___shl_load)
13752choke me
13753#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013754char (*f) () = shl_load;
13755#endif
13756#ifdef __cplusplus
13757}
John Criswell7a73b802003-06-30 21:59:07 +000013758#endif
13759
John Criswell0c38eaf2003-09-10 15:17:25 +000013760int
13761main ()
13762{
13763return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013764 ;
13765 return 0;
13766}
13767_ACEOF
13768rm -f conftest.$ac_objext conftest$ac_exeext
13769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013770 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013771 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777 { ac_try='test -z "$ac_c_werror_flag"
13778 || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_func_shl_load=yes
13791else
13792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013793sed 's/^/| /' conftest.$ac_ext >&5
13794
John Criswell7a73b802003-06-30 21:59:07 +000013795ac_cv_func_shl_load=no
13796fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013797rm -f conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013799fi
13800echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13801echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13802if test $ac_cv_func_shl_load = yes; then
13803 lt_cv_dlopen="shl_load"
13804else
13805 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13806echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13807if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 ac_check_lib_save_LIBS=$LIBS
13811LIBS="-ldld $LIBS"
13812cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013813/* confdefs.h. */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
13817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013818
13819/* Override any gcc2 internal prototype to avoid an error. */
13820#ifdef __cplusplus
13821extern "C"
13822#endif
13823/* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13825char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013826int
13827main ()
13828{
13829shl_load ();
13830 ;
13831 return 0;
13832}
13833_ACEOF
13834rm -f conftest.$ac_objext conftest$ac_exeext
13835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013836 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013837 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_lib_dld_shl_load=yes
13857else
13858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013859sed 's/^/| /' conftest.$ac_ext >&5
13860
John Criswell7a73b802003-06-30 21:59:07 +000013861ac_cv_lib_dld_shl_load=no
13862fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013863rm -f conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013865LIBS=$ac_check_lib_save_LIBS
13866fi
13867echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13868echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13869if test $ac_cv_lib_dld_shl_load = yes; then
13870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13871else
13872 echo "$as_me:$LINENO: checking for dlopen" >&5
13873echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13874if test "${ac_cv_func_dlopen+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013883/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13885#define dlopen innocuous_dlopen
13886
John Criswell7a73b802003-06-30 21:59:07 +000013887/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013888 which can conflict with char dlopen (); below.
13889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891
John Criswell0c38eaf2003-09-10 15:17:25 +000013892#ifdef __STDC__
13893# include <limits.h>
13894#else
13895# include <assert.h>
13896#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013897
13898#undef dlopen
13899
John Criswell7a73b802003-06-30 21:59:07 +000013900/* Override any gcc2 internal prototype to avoid an error. */
13901#ifdef __cplusplus
13902extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013903{
John Criswell7a73b802003-06-30 21:59:07 +000013904#endif
13905/* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13907char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013908/* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911#if defined (__stub_dlopen) || defined (__stub___dlopen)
13912choke me
13913#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013914char (*f) () = dlopen;
13915#endif
13916#ifdef __cplusplus
13917}
John Criswell7a73b802003-06-30 21:59:07 +000013918#endif
13919
John Criswell0c38eaf2003-09-10 15:17:25 +000013920int
13921main ()
13922{
13923return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013924 ;
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_func_dlopen=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_func_dlopen=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 +000013959fi
13960echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13961echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13962if test $ac_cv_func_dlopen = yes; then
13963 lt_cv_dlopen="dlopen"
13964else
13965 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13966echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13967if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969else
13970 ac_check_lib_save_LIBS=$LIBS
13971LIBS="-ldl $LIBS"
13972cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013973/* confdefs.h. */
13974_ACEOF
13975cat confdefs.h >>conftest.$ac_ext
13976cat >>conftest.$ac_ext <<_ACEOF
13977/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013978
13979/* Override any gcc2 internal prototype to avoid an error. */
13980#ifdef __cplusplus
13981extern "C"
13982#endif
13983/* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13985char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013986int
13987main ()
13988{
13989dlopen ();
13990 ;
13991 return 0;
13992}
13993_ACEOF
13994rm -f conftest.$ac_objext conftest$ac_exeext
13995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013996 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013997 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_lib_dl_dlopen=yes
14017else
14018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014019sed 's/^/| /' conftest.$ac_ext >&5
14020
John Criswell7a73b802003-06-30 21:59:07 +000014021ac_cv_lib_dl_dlopen=no
14022fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014023rm -f conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014025LIBS=$ac_check_lib_save_LIBS
14026fi
14027echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14028echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14029if test $ac_cv_lib_dl_dlopen = yes; then
14030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14031else
14032 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14033echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14034if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036else
14037 ac_check_lib_save_LIBS=$LIBS
14038LIBS="-lsvld $LIBS"
14039cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014040/* confdefs.h. */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014045
14046/* Override any gcc2 internal prototype to avoid an error. */
14047#ifdef __cplusplus
14048extern "C"
14049#endif
14050/* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14052char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014053int
14054main ()
14055{
14056dlopen ();
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext conftest$ac_exeext
14062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014063 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_lib_svld_dlopen=yes
14084else
14085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014086sed 's/^/| /' conftest.$ac_ext >&5
14087
John Criswell7a73b802003-06-30 21:59:07 +000014088ac_cv_lib_svld_dlopen=no
14089fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014090rm -f conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014092LIBS=$ac_check_lib_save_LIBS
14093fi
14094echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14095echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14096if test $ac_cv_lib_svld_dlopen = yes; then
14097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14098else
14099 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14100echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14101if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103else
14104 ac_check_lib_save_LIBS=$LIBS
14105LIBS="-ldld $LIBS"
14106cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014107/* confdefs.h. */
14108_ACEOF
14109cat confdefs.h >>conftest.$ac_ext
14110cat >>conftest.$ac_ext <<_ACEOF
14111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014112
14113/* Override any gcc2 internal prototype to avoid an error. */
14114#ifdef __cplusplus
14115extern "C"
14116#endif
14117/* We use char because int might match the return type of a gcc2
14118 builtin and then its argument prototype would still apply. */
14119char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014120int
14121main ()
14122{
14123dld_link ();
14124 ;
14125 return 0;
14126}
14127_ACEOF
14128rm -f conftest.$ac_objext conftest$ac_exeext
14129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014130 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014137 { ac_try='test -z "$ac_c_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_lib_dld_dld_link=yes
14151else
14152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014153sed 's/^/| /' conftest.$ac_ext >&5
14154
John Criswell7a73b802003-06-30 21:59:07 +000014155ac_cv_lib_dld_dld_link=no
14156fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014157rm -f conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014159LIBS=$ac_check_lib_save_LIBS
14160fi
14161echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14162echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14163if test $ac_cv_lib_dld_dld_link = yes; then
14164 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14165fi
14166
14167
14168fi
14169
14170
14171fi
14172
14173
14174fi
14175
14176
14177fi
14178
14179
14180fi
14181
14182 ;;
14183 esac
14184
14185 if test "x$lt_cv_dlopen" != xno; then
14186 enable_dlopen=yes
14187 else
14188 enable_dlopen=no
14189 fi
14190
14191 case $lt_cv_dlopen in
14192 dlopen)
14193 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014195
14196 save_LDFLAGS="$LDFLAGS"
14197 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14198
14199 save_LIBS="$LIBS"
14200 LIBS="$lt_cv_dlopen_libs $LIBS"
14201
14202 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14203echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14204if test "${lt_cv_dlopen_self+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206else
14207 if test "$cross_compiling" = yes; then :
14208 lt_cv_dlopen_self=cross
14209else
John Criswell47fdd832003-07-14 16:52:07 +000014210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014211 lt_status=$lt_dlunknown
14212 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +000014213#line 14213 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014214#include "confdefs.h"
14215
14216#if HAVE_DLFCN_H
14217#include <dlfcn.h>
14218#endif
14219
14220#include <stdio.h>
14221
14222#ifdef RTLD_GLOBAL
14223# define LT_DLGLOBAL RTLD_GLOBAL
14224#else
14225# ifdef DL_GLOBAL
14226# define LT_DLGLOBAL DL_GLOBAL
14227# else
14228# define LT_DLGLOBAL 0
14229# endif
14230#endif
14231
14232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14233 find out it does not work in some platform. */
14234#ifndef LT_DLLAZY_OR_NOW
14235# ifdef RTLD_LAZY
14236# define LT_DLLAZY_OR_NOW RTLD_LAZY
14237# else
14238# ifdef DL_LAZY
14239# define LT_DLLAZY_OR_NOW DL_LAZY
14240# else
14241# ifdef RTLD_NOW
14242# define LT_DLLAZY_OR_NOW RTLD_NOW
14243# else
14244# ifdef DL_NOW
14245# define LT_DLLAZY_OR_NOW DL_NOW
14246# else
14247# define LT_DLLAZY_OR_NOW 0
14248# endif
14249# endif
14250# endif
14251# endif
14252#endif
14253
14254#ifdef __cplusplus
14255extern "C" void exit (int);
14256#endif
14257
14258void fnord() { int i=42;}
14259int main ()
14260{
14261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14262 int status = $lt_dlunknown;
14263
14264 if (self)
14265 {
14266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14268 /* dlclose (self); */
14269 }
14270
14271 exit (status);
14272}
14273EOF
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14279 (./conftest; exit; ) 2>/dev/null
14280 lt_status=$?
14281 case x$lt_status in
14282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14284 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14285 esac
14286 else :
14287 # compilation failed
14288 lt_cv_dlopen_self=no
14289 fi
14290fi
14291rm -fr conftest*
14292
14293
14294fi
14295echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14296echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14297
14298 if test "x$lt_cv_dlopen_self" = xyes; then
14299 LDFLAGS="$LDFLAGS $link_static_flag"
14300 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14301echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14302if test "${lt_cv_dlopen_self_static+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305 if test "$cross_compiling" = yes; then :
14306 lt_cv_dlopen_self_static=cross
14307else
John Criswell47fdd832003-07-14 16:52:07 +000014308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014309 lt_status=$lt_dlunknown
14310 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +000014311#line 14311 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014312#include "confdefs.h"
14313
14314#if HAVE_DLFCN_H
14315#include <dlfcn.h>
14316#endif
14317
14318#include <stdio.h>
14319
14320#ifdef RTLD_GLOBAL
14321# define LT_DLGLOBAL RTLD_GLOBAL
14322#else
14323# ifdef DL_GLOBAL
14324# define LT_DLGLOBAL DL_GLOBAL
14325# else
14326# define LT_DLGLOBAL 0
14327# endif
14328#endif
14329
14330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14331 find out it does not work in some platform. */
14332#ifndef LT_DLLAZY_OR_NOW
14333# ifdef RTLD_LAZY
14334# define LT_DLLAZY_OR_NOW RTLD_LAZY
14335# else
14336# ifdef DL_LAZY
14337# define LT_DLLAZY_OR_NOW DL_LAZY
14338# else
14339# ifdef RTLD_NOW
14340# define LT_DLLAZY_OR_NOW RTLD_NOW
14341# else
14342# ifdef DL_NOW
14343# define LT_DLLAZY_OR_NOW DL_NOW
14344# else
14345# define LT_DLLAZY_OR_NOW 0
14346# endif
14347# endif
14348# endif
14349# endif
14350#endif
14351
14352#ifdef __cplusplus
14353extern "C" void exit (int);
14354#endif
14355
14356void fnord() { int i=42;}
14357int main ()
14358{
14359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360 int status = $lt_dlunknown;
14361
14362 if (self)
14363 {
14364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14366 /* dlclose (self); */
14367 }
14368
14369 exit (status);
14370}
14371EOF
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14377 (./conftest; exit; ) 2>/dev/null
14378 lt_status=$?
14379 case x$lt_status in
14380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14383 esac
14384 else :
14385 # compilation failed
14386 lt_cv_dlopen_self_static=no
14387 fi
14388fi
14389rm -fr conftest*
14390
14391
14392fi
14393echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14394echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14395 fi
14396
14397 CPPFLAGS="$save_CPPFLAGS"
14398 LDFLAGS="$save_LDFLAGS"
14399 LIBS="$save_LIBS"
14400 ;;
14401 esac
14402
14403 case $lt_cv_dlopen_self in
14404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405 *) enable_dlopen_self=unknown ;;
14406 esac
14407
14408 case $lt_cv_dlopen_self_static in
14409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410 *) enable_dlopen_self_static=unknown ;;
14411 esac
14412fi
14413
14414
John Criswell47fdd832003-07-14 16:52:07 +000014415# Report which librarie types wil actually be built
14416echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14417echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14418echo "$as_me:$LINENO: result: $can_build_shared" >&5
14419echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014420
John Criswell47fdd832003-07-14 16:52:07 +000014421echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14422echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14423test "$can_build_shared" = "no" && enable_shared=no
14424
14425# On AIX, shared libraries and static libraries use the same namespace, and
14426# are all built from PIC.
14427case "$host_os" in
14428aix3*)
14429 test "$enable_shared" = yes && enable_static=no
14430 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014432 postinstall_cmds='$RANLIB $lib'
14433 fi
14434 ;;
14435
Reid Spencer2706f8c2004-09-19 23:53:36 +000014436aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14438 test "$enable_shared" = yes && enable_static=no
14439 fi
John Criswell7a73b802003-06-30 21:59:07 +000014440 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014441esac
14442echo "$as_me:$LINENO: result: $enable_shared" >&5
14443echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014444
John Criswell47fdd832003-07-14 16:52:07 +000014445echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14446echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14447# Make sure either enable_shared or enable_static is yes.
14448test "$enable_shared" = yes || enable_static=yes
14449echo "$as_me:$LINENO: result: $enable_static" >&5
14450echo "${ECHO_T}$enable_static" >&6
14451
14452# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014453# libtool distribution, otherwise you forgot to ship ltmain.sh
14454# with your package, and you will get complaints that there are
14455# no rules to generate ltmain.sh.
14456if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014457 # See if we are running on zsh, and set the options which allow our commands through
14458 # without removal of \ escapes.
14459 if test -n "${ZSH_VERSION+set}" ; then
14460 setopt NO_GLOB_SUBST
14461 fi
John Criswell7a73b802003-06-30 21:59:07 +000014462 # Now quote all the things that may contain metacharacters while being
14463 # careful not to overquote the AC_SUBSTed values. We take copies of the
14464 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14466 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14469 deplibs_check_method reload_flag reload_cmds need_locks \
14470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14471 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014473 old_postinstall_cmds old_postuninstall_cmds \
14474 compiler \
14475 CC \
14476 LD \
14477 lt_prog_compiler_wl \
14478 lt_prog_compiler_pic \
14479 lt_prog_compiler_static \
14480 lt_prog_compiler_no_builtin_flag \
14481 export_dynamic_flag_spec \
14482 thread_safe_flag_spec \
14483 whole_archive_flag_spec \
14484 enable_shared_with_static_runtimes \
14485 old_archive_cmds \
14486 old_archive_from_new_cmds \
14487 predep_objects \
14488 postdep_objects \
14489 predeps \
14490 postdeps \
14491 compiler_lib_search_path \
14492 archive_cmds \
14493 archive_expsym_cmds \
14494 postinstall_cmds \
14495 postuninstall_cmds \
14496 old_archive_from_expsyms_cmds \
14497 allow_undefined_flag \
14498 no_undefined_flag \
14499 export_symbols_cmds \
14500 hardcode_libdir_flag_spec \
14501 hardcode_libdir_flag_spec_ld \
14502 hardcode_libdir_separator \
14503 hardcode_automatic \
14504 module_cmds \
14505 module_expsym_cmds \
14506 lt_cv_prog_compiler_c_o \
14507 exclude_expsyms \
14508 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014509
14510 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014511 old_archive_cmds | \
14512 old_archive_from_new_cmds | \
14513 archive_cmds | \
14514 archive_expsym_cmds | \
14515 module_cmds | \
14516 module_expsym_cmds | \
14517 old_archive_from_expsyms_cmds | \
14518 export_symbols_cmds | \
14519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014520 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014521 old_postinstall_cmds | old_postuninstall_cmds | \
14522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014523 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014524 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 +000014525 ;;
14526 *)
14527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14528 ;;
14529 esac
14530 done
14531
John Criswell47fdd832003-07-14 16:52:07 +000014532 case $lt_echo in
14533 *'\$0 --fallback-echo"')
14534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14535 ;;
14536 esac
14537
14538cfgfile="${ofile}T"
14539 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14540 $rm -f "$cfgfile"
14541 { echo "$as_me:$LINENO: creating $ofile" >&5
14542echo "$as_me: creating $ofile" >&6;}
14543
14544 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014545#! $SHELL
14546
John Criswell47fdd832003-07-14 16:52:07 +000014547# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014548# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14549# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14550#
John Criswell47fdd832003-07-14 16:52:07 +000014551# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14552# Free Software Foundation, Inc.
14553#
14554# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014555# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14556#
14557# This program is free software; you can redistribute it and/or modify
14558# it under the terms of the GNU General Public License as published by
14559# the Free Software Foundation; either version 2 of the License, or
14560# (at your option) any later version.
14561#
14562# This program is distributed in the hope that it will be useful, but
14563# WITHOUT ANY WARRANTY; without even the implied warranty of
14564# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14565# General Public License for more details.
14566#
14567# You should have received a copy of the GNU General Public License
14568# along with this program; if not, write to the Free Software
14569# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14570#
14571# As a special exception to the GNU General Public License, if you
14572# distribute this file as part of a program that contains a
14573# configuration script generated by Autoconf, you may include it under
14574# the same distribution terms that you use for the rest of that program.
14575
John Criswell47fdd832003-07-14 16:52:07 +000014576# A sed program that does not truncate output.
14577SED=$lt_SED
14578
John Criswell7a73b802003-06-30 21:59:07 +000014579# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014580Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014581
14582# The HP-UX ksh and POSIX shell print the target directory to stdout
14583# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014585
John Criswell47fdd832003-07-14 16:52:07 +000014586# The names of the tagged configurations supported by this script.
14587available_tags=
14588
John Criswell7a73b802003-06-30 21:59:07 +000014589# ### BEGIN LIBTOOL CONFIG
14590
14591# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14592
14593# Shell to use when invoking shell scripts.
14594SHELL=$lt_SHELL
14595
14596# Whether or not to build shared libraries.
14597build_libtool_libs=$enable_shared
14598
14599# Whether or not to build static libraries.
14600build_old_libs=$enable_static
14601
14602# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014603build_libtool_need_lc=$archive_cmds_need_lc
14604
14605# Whether or not to disallow shared libs when runtime libs are static
14606allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014607
14608# Whether or not to optimize for fast installation.
14609fast_install=$enable_fast_install
14610
14611# The host system.
14612host_alias=$host_alias
14613host=$host
14614
14615# An echo program that does not interpret backslashes.
14616echo=$lt_echo
14617
14618# The archiver.
14619AR=$lt_AR
14620AR_FLAGS=$lt_AR_FLAGS
14621
John Criswell47fdd832003-07-14 16:52:07 +000014622# A C compiler.
14623LTCC=$lt_LTCC
14624
14625# A language-specific compiler.
14626CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014627
14628# Is the compiler the GNU C compiler?
14629with_gcc=$GCC
14630
John Criswell47fdd832003-07-14 16:52:07 +000014631# An ERE matcher.
14632EGREP=$lt_EGREP
14633
John Criswell7a73b802003-06-30 21:59:07 +000014634# The linker used to build libraries.
14635LD=$lt_LD
14636
14637# Whether we need hard or soft links.
14638LN_S=$lt_LN_S
14639
14640# A BSD-compatible nm program.
14641NM=$lt_NM
14642
14643# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014644STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014645
14646# Used to examine libraries when file_magic_cmd begins "file"
14647MAGIC_CMD=$MAGIC_CMD
14648
14649# Used on cygwin: DLL creation program.
14650DLLTOOL="$DLLTOOL"
14651
14652# Used on cygwin: object dumper.
14653OBJDUMP="$OBJDUMP"
14654
14655# Used on cygwin: assembler.
14656AS="$AS"
14657
14658# The name of the directory that contains temporary libtool files.
14659objdir=$objdir
14660
14661# How to create reloadable object files.
14662reload_flag=$lt_reload_flag
14663reload_cmds=$lt_reload_cmds
14664
14665# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014666wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014667
14668# Object file suffix (normally "o").
14669objext="$ac_objext"
14670
14671# Old archive suffix (normally "a").
14672libext="$libext"
14673
John Criswell47fdd832003-07-14 16:52:07 +000014674# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014675shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014676
John Criswell7a73b802003-06-30 21:59:07 +000014677# Executable file suffix (normally "").
14678exeext="$exeext"
14679
14680# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014681pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014682pic_mode=$pic_mode
14683
John Criswell47fdd832003-07-14 16:52:07 +000014684# What is the maximum length of a command?
14685max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014686
John Criswell47fdd832003-07-14 16:52:07 +000014687# Does compiler simultaneously support -c and -o options?
14688compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014689
14690# Must we lock files when doing compilation ?
14691need_locks=$lt_need_locks
14692
14693# Do we need the lib prefix for modules?
14694need_lib_prefix=$need_lib_prefix
14695
14696# Do we need a version for libraries?
14697need_version=$need_version
14698
14699# Whether dlopen is supported.
14700dlopen_support=$enable_dlopen
14701
14702# Whether dlopen of programs is supported.
14703dlopen_self=$enable_dlopen_self
14704
14705# Whether dlopen of statically linked programs is supported.
14706dlopen_self_static=$enable_dlopen_self_static
14707
14708# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014709link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014710
14711# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014713
14714# Compiler flag to allow reflexive dlopens.
14715export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14716
14717# Compiler flag to generate shared objects directly from archives.
14718whole_archive_flag_spec=$lt_whole_archive_flag_spec
14719
14720# Compiler flag to generate thread-safe objects.
14721thread_safe_flag_spec=$lt_thread_safe_flag_spec
14722
14723# Library versioning type.
14724version_type=$version_type
14725
14726# Format of library name prefix.
14727libname_spec=$lt_libname_spec
14728
14729# List of archive names. First name is the real one, the rest are links.
14730# The last name is the one that the linker finds with -lNAME.
14731library_names_spec=$lt_library_names_spec
14732
14733# The coded name of the library, if different from the real name.
14734soname_spec=$lt_soname_spec
14735
14736# Commands used to build and install an old-style archive.
14737RANLIB=$lt_RANLIB
14738old_archive_cmds=$lt_old_archive_cmds
14739old_postinstall_cmds=$lt_old_postinstall_cmds
14740old_postuninstall_cmds=$lt_old_postuninstall_cmds
14741
14742# Create an old-style archive from a shared archive.
14743old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14744
14745# Create a temporary old-style archive to link instead of a shared archive.
14746old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14747
14748# Commands used to build and install a shared archive.
14749archive_cmds=$lt_archive_cmds
14750archive_expsym_cmds=$lt_archive_expsym_cmds
14751postinstall_cmds=$lt_postinstall_cmds
14752postuninstall_cmds=$lt_postuninstall_cmds
14753
John Criswell47fdd832003-07-14 16:52:07 +000014754# Commands used to build a loadable module (assumed same as above if empty)
14755module_cmds=$lt_module_cmds
14756module_expsym_cmds=$lt_module_expsym_cmds
14757
John Criswell7a73b802003-06-30 21:59:07 +000014758# Commands to strip libraries.
14759old_striplib=$lt_old_striplib
14760striplib=$lt_striplib
14761
John Criswell47fdd832003-07-14 16:52:07 +000014762# Dependencies to place before the objects being linked to create a
14763# shared library.
14764predep_objects=$lt_predep_objects
14765
14766# Dependencies to place after the objects being linked to create a
14767# shared library.
14768postdep_objects=$lt_postdep_objects
14769
14770# Dependencies to place before the objects being linked to create a
14771# shared library.
14772predeps=$lt_predeps
14773
14774# Dependencies to place after the objects being linked to create a
14775# shared library.
14776postdeps=$lt_postdeps
14777
14778# The library search path used internally by the compiler when linking
14779# a shared library.
14780compiler_lib_search_path=$lt_compiler_lib_search_path
14781
John Criswell7a73b802003-06-30 21:59:07 +000014782# Method to check whether dependent libraries are shared objects.
14783deplibs_check_method=$lt_deplibs_check_method
14784
14785# Command to use when deplibs_check_method == file_magic.
14786file_magic_cmd=$lt_file_magic_cmd
14787
14788# Flag that allows shared libraries with undefined symbols to be built.
14789allow_undefined_flag=$lt_allow_undefined_flag
14790
14791# Flag that forces no undefined symbols.
14792no_undefined_flag=$lt_no_undefined_flag
14793
14794# Commands used to finish a libtool library installation in a directory.
14795finish_cmds=$lt_finish_cmds
14796
14797# Same as above, but a single script fragment to be evaled but not shown.
14798finish_eval=$lt_finish_eval
14799
14800# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014801global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014802
14803# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014804global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014805
14806# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014807global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014808
14809# This is the shared library runtime path variable.
14810runpath_var=$runpath_var
14811
14812# This is the shared library path variable.
14813shlibpath_var=$shlibpath_var
14814
14815# Is shlibpath searched before the hard-coded library search path?
14816shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14817
14818# How to hardcode a shared library path into an executable.
14819hardcode_action=$hardcode_action
14820
14821# Whether we should hardcode library paths into libraries.
14822hardcode_into_libs=$hardcode_into_libs
14823
14824# Flag to hardcode \$libdir into a binary during linking.
14825# This must work even if \$libdir does not exist.
14826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14827
John Criswell47fdd832003-07-14 16:52:07 +000014828# If ld is used when linking, flag to hardcode \$libdir into
14829# a binary during linking. This must work even if \$libdir does
14830# not exist.
14831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14832
John Criswell7a73b802003-06-30 21:59:07 +000014833# Whether we need a single -rpath flag with a separated argument.
14834hardcode_libdir_separator=$lt_hardcode_libdir_separator
14835
John Criswell47fdd832003-07-14 16:52:07 +000014836# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014837# resulting binary.
14838hardcode_direct=$hardcode_direct
14839
14840# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14841# resulting binary.
14842hardcode_minus_L=$hardcode_minus_L
14843
14844# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14845# the resulting binary.
14846hardcode_shlibpath_var=$hardcode_shlibpath_var
14847
John Criswell47fdd832003-07-14 16:52:07 +000014848# Set to yes if building a shared library automatically hardcodes DIR into the library
14849# and all subsequent libraries and executables linked against it.
14850hardcode_automatic=$hardcode_automatic
14851
John Criswell7a73b802003-06-30 21:59:07 +000014852# Variables whose values should be saved in libtool wrapper scripts and
14853# restored at relink time.
14854variables_saved_for_relink="$variables_saved_for_relink"
14855
14856# Whether libtool must link a program against all its dependency libraries.
14857link_all_deplibs=$link_all_deplibs
14858
14859# Compile-time system search path for libraries
14860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14861
14862# Run-time system search path for libraries
14863sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14864
14865# Fix the shell variable \$srcfile for the compiler.
14866fix_srcfile_path="$fix_srcfile_path"
14867
14868# Set to yes if exported symbols are required.
14869always_export_symbols=$always_export_symbols
14870
14871# The commands to list exported symbols.
14872export_symbols_cmds=$lt_export_symbols_cmds
14873
14874# The commands to extract the exported symbol list from a shared archive.
14875extract_expsyms_cmds=$lt_extract_expsyms_cmds
14876
14877# Symbols that should not be listed in the preloaded symbols.
14878exclude_expsyms=$lt_exclude_expsyms
14879
14880# Symbols that must always be exported.
14881include_expsyms=$lt_include_expsyms
14882
14883# ### END LIBTOOL CONFIG
14884
14885__EOF__
14886
John Criswell47fdd832003-07-14 16:52:07 +000014887
John Criswell7a73b802003-06-30 21:59:07 +000014888 case $host_os in
14889 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014890 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014891
14892# AIX sometimes has problems with the GCC collect2 program. For some
14893# reason, if we set the COLLECT_NAMES environment variable, the problems
14894# vanish in a puff of smoke.
14895if test "X${COLLECT_NAMES+set}" != Xset; then
14896 COLLECT_NAMES=
14897 export COLLECT_NAMES
14898fi
14899EOF
14900 ;;
14901 esac
14902
John Criswell7a73b802003-06-30 21:59:07 +000014903 # We use sed instead of cat because bash on DJGPP gets confused if
14904 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14905 # text mode, it properly converts lines to CR/LF. This bash problem
14906 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014907 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014908
John Criswell47fdd832003-07-14 16:52:07 +000014909 mv -f "$cfgfile" "$ofile" || \
14910 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014911 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014912
14913else
14914 # If there is no Makefile yet, we rely on a make rule to execute
14915 # `config.status --recheck' to rerun these tests and create the
14916 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14918 if test -f "$ltmain_in"; then
14919 test -f Makefile && make "$ltmain"
14920 fi
John Criswell7a73b802003-06-30 21:59:07 +000014921fi
John Criswell7a73b802003-06-30 21:59:07 +000014922
14923
John Criswell47fdd832003-07-14 16:52:07 +000014924ac_ext=c
14925ac_cpp='$CPP $CPPFLAGS'
14926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928ac_compiler_gnu=$ac_cv_c_compiler_gnu
14929
14930CC="$lt_save_CC"
14931
14932
14933# Check whether --with-tags or --without-tags was given.
14934if test "${with_tags+set}" = set; then
14935 withval="$with_tags"
14936 tagnames="$withval"
14937fi;
14938
14939if test -f "$ltmain" && test -n "$tagnames"; then
14940 if test ! -f "${ofile}"; then
14941 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14942echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14943 fi
14944
14945 if test -z "$LTCC"; then
14946 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14947 if test -z "$LTCC"; then
14948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14949echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14950 else
14951 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14952echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14953 fi
14954 fi
14955
14956 # Extract list of available tagged configurations in $ofile.
14957 # Note that this assumes the entire list is on one line.
14958 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14959
14960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14961 for tagname in $tagnames; do
14962 IFS="$lt_save_ifs"
14963 # Check whether tagname contains only valid characters
14964 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14965 "") ;;
14966 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14967echo "$as_me: error: invalid tag name: $tagname" >&2;}
14968 { (exit 1); exit 1; }; }
14969 ;;
14970 esac
14971
14972 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14973 then
14974 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14975echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14976 { (exit 1); exit 1; }; }
14977 fi
14978
14979 # Update the list of available tags.
14980 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014981 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014982
14983 case $tagname in
14984 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014985 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14986 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14987 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014988 ac_ext=cc
14989ac_cpp='$CXXCPP $CPPFLAGS'
14990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14993
14994
14995
14996
14997archive_cmds_need_lc_CXX=no
14998allow_undefined_flag_CXX=
14999always_export_symbols_CXX=no
15000archive_expsym_cmds_CXX=
15001export_dynamic_flag_spec_CXX=
15002hardcode_direct_CXX=no
15003hardcode_libdir_flag_spec_CXX=
15004hardcode_libdir_flag_spec_ld_CXX=
15005hardcode_libdir_separator_CXX=
15006hardcode_minus_L_CXX=no
15007hardcode_automatic_CXX=no
15008module_cmds_CXX=
15009module_expsym_cmds_CXX=
15010link_all_deplibs_CXX=unknown
15011old_archive_cmds_CXX=$old_archive_cmds
15012no_undefined_flag_CXX=
15013whole_archive_flag_spec_CXX=
15014enable_shared_with_static_runtimes_CXX=no
15015
15016# Dependencies to place before and after the object being linked:
15017predep_objects_CXX=
15018postdep_objects_CXX=
15019predeps_CXX=
15020postdeps_CXX=
15021compiler_lib_search_path_CXX=
15022
15023# Source file extension for C++ test sources.
15024ac_ext=cc
15025
15026# Object file extension for compiled C++ test sources.
15027objext=o
15028objext_CXX=$objext
15029
15030# Code to be used in simple compile tests
15031lt_simple_compile_test_code="int some_variable = 0;\n"
15032
15033# Code to be used in simple link tests
15034lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15035
15036# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15037
15038# If no C compiler was specified, use CC.
15039LTCC=${LTCC-"$CC"}
15040
15041# Allow CC to be a program name with arguments.
15042compiler=$CC
15043
15044
15045# Allow CC to be a program name with arguments.
15046lt_save_CC=$CC
15047lt_save_LD=$LD
15048lt_save_GCC=$GCC
15049GCC=$GXX
15050lt_save_with_gnu_ld=$with_gnu_ld
15051lt_save_path_LD=$lt_cv_path_LD
15052if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15053 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15054else
15055 unset lt_cv_prog_gnu_ld
15056fi
15057if test -n "${lt_cv_path_LDCXX+set}"; then
15058 lt_cv_path_LD=$lt_cv_path_LDCXX
15059else
15060 unset lt_cv_path_LD
15061fi
15062test -z "${LDCXX+set}" || LD=$LDCXX
15063CC=${CXX-"c++"}
15064compiler=$CC
15065compiler_CXX=$CC
15066cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15067
15068# We don't want -fno-exception wen compiling C++ code, so set the
15069# no_builtin_flag separately
15070if test "$GXX" = yes; then
15071 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15072else
15073 lt_prog_compiler_no_builtin_flag_CXX=
15074fi
15075
15076if test "$GXX" = yes; then
15077 # Set up default GNU C++ configuration
15078
15079
15080# Check whether --with-gnu-ld or --without-gnu-ld was given.
15081if test "${with_gnu_ld+set}" = set; then
15082 withval="$with_gnu_ld"
15083 test "$withval" = no || with_gnu_ld=yes
15084else
15085 with_gnu_ld=no
15086fi;
15087ac_prog=ld
15088if test "$GCC" = yes; then
15089 # Check if gcc -print-prog-name=ld gives a path.
15090 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15091echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15092 case $host in
15093 *-*-mingw*)
15094 # gcc leaves a trailing carriage return which upsets mingw
15095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15096 *)
15097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15098 esac
15099 case $ac_prog in
15100 # Accept absolute paths.
15101 [\\/]* | ?:[\\/]*)
15102 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015103 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015104 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15106 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15107 done
15108 test -z "$LD" && LD="$ac_prog"
15109 ;;
15110 "")
15111 # If it fails, then pretend we aren't using GCC.
15112 ac_prog=ld
15113 ;;
15114 *)
15115 # If it is relative, then search for the first ld in PATH.
15116 with_gnu_ld=unknown
15117 ;;
15118 esac
15119elif test "$with_gnu_ld" = yes; then
15120 echo "$as_me:$LINENO: checking for GNU ld" >&5
15121echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15122else
15123 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15124echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15125fi
15126if test "${lt_cv_path_LD+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128else
15129 if test -z "$LD"; then
15130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15131 for ac_dir in $PATH; do
15132 IFS="$lt_save_ifs"
15133 test -z "$ac_dir" && ac_dir=.
15134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15135 lt_cv_path_LD="$ac_dir/$ac_prog"
15136 # Check to see if the program is GNU ld. I'd rather use --version,
15137 # but apparently some GNU ld's only accept -v.
15138 # Break only if it was the GNU/non-GNU ld that we prefer.
15139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15140 *GNU* | *'with BFD'*)
15141 test "$with_gnu_ld" != no && break
15142 ;;
15143 *)
15144 test "$with_gnu_ld" != yes && break
15145 ;;
15146 esac
15147 fi
15148 done
15149 IFS="$lt_save_ifs"
15150else
15151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15152fi
15153fi
15154
15155LD="$lt_cv_path_LD"
15156if test -n "$LD"; then
15157 echo "$as_me:$LINENO: result: $LD" >&5
15158echo "${ECHO_T}$LD" >&6
15159else
15160 echo "$as_me:$LINENO: result: no" >&5
15161echo "${ECHO_T}no" >&6
15162fi
15163test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15164echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15165 { (exit 1); exit 1; }; }
15166echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15167echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15168if test "${lt_cv_prog_gnu_ld+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170else
15171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015172case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015173*GNU* | *'with BFD'*)
15174 lt_cv_prog_gnu_ld=yes
15175 ;;
15176*)
15177 lt_cv_prog_gnu_ld=no
15178 ;;
15179esac
15180fi
15181echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15182echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15183with_gnu_ld=$lt_cv_prog_gnu_ld
15184
15185
15186
15187 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15188 # archiving commands below assume that GNU ld is being used.
15189 if test "$with_gnu_ld" = yes; then
15190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191 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'
15192
15193 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15194 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15195
15196 # If archive_cmds runs LD, not CC, wlarc should be empty
15197 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15198 # investigate it a little bit more. (MM)
15199 wlarc='${wl}'
15200
15201 # ancient GNU ld didn't support --whole-archive et. al.
15202 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15203 grep 'no-whole-archive' > /dev/null; then
15204 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15205 else
15206 whole_archive_flag_spec_CXX=
15207 fi
15208 else
15209 with_gnu_ld=no
15210 wlarc=
15211
15212 # A generic and very simple default shared library creation
15213 # command for GNU C++ for the case where it uses the native
15214 # linker, instead of GNU ld. If possible, this setting should
15215 # overridden to take advantage of the native linker features on
15216 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015217 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015218 fi
15219
15220 # Commands to make compiler produce verbose output that lists
15221 # what "hidden" libraries, object files and flags are used when
15222 # linking a shared library.
15223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15224
15225else
15226 GXX=no
15227 with_gnu_ld=no
15228 wlarc=
15229fi
15230
15231# PORTME: fill in a description of your system's C++ link characteristics
15232echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15233echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15234ld_shlibs_CXX=yes
15235case $host_os in
15236 aix3*)
15237 # FIXME: insert proper C++ library support
15238 ld_shlibs_CXX=no
15239 ;;
15240 aix4* | aix5*)
15241 if test "$host_cpu" = ia64; then
15242 # On IA64, the linker does run time linking by default, so we don't
15243 # have to do anything special.
15244 aix_use_runtimelinking=no
15245 exp_sym_flag='-Bexport'
15246 no_entry_flag=""
15247 else
15248 aix_use_runtimelinking=no
15249
15250 # Test if we are trying to use run time linking or normal
15251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15252 # need to do runtime linking.
15253 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15254 for ld_flag in $LDFLAGS; do
15255 case $ld_flag in
15256 *-brtl*)
15257 aix_use_runtimelinking=yes
15258 break
15259 ;;
15260 esac
15261 done
15262 esac
15263
15264 exp_sym_flag='-bexport'
15265 no_entry_flag='-bnoentry'
15266 fi
15267
15268 # When large executables or shared objects are built, AIX ld can
15269 # have problems creating the table of contents. If linking a library
15270 # or program results in "error TOC overflow" add -mminimal-toc to
15271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15273
15274 archive_cmds_CXX=''
15275 hardcode_direct_CXX=yes
15276 hardcode_libdir_separator_CXX=':'
15277 link_all_deplibs_CXX=yes
15278
15279 if test "$GXX" = yes; then
15280 case $host_os in aix4.012|aix4.012.*)
15281 # We only want to do this on AIX 4.2 and lower, the check
15282 # below for broken collect2 doesn't work under 4.3+
15283 collect2name=`${CC} -print-prog-name=collect2`
15284 if test -f "$collect2name" && \
15285 strings "$collect2name" | grep resolve_lib_name >/dev/null
15286 then
15287 # We have reworked collect2
15288 hardcode_direct_CXX=yes
15289 else
15290 # We have old collect2
15291 hardcode_direct_CXX=unsupported
15292 # It fails to find uninstalled libraries when the uninstalled
15293 # path is not listed in the libpath. Setting hardcode_minus_L
15294 # to unsupported forces relinking
15295 hardcode_minus_L_CXX=yes
15296 hardcode_libdir_flag_spec_CXX='-L$libdir'
15297 hardcode_libdir_separator_CXX=
15298 fi
15299 esac
15300 shared_flag='-shared'
15301 else
15302 # not using gcc
15303 if test "$host_cpu" = ia64; then
15304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15305 # chokes on -Wl,-G. The following line is correct:
15306 shared_flag='-G'
15307 else
15308 if test "$aix_use_runtimelinking" = yes; then
15309 shared_flag='${wl}-G'
15310 else
15311 shared_flag='${wl}-bM:SRE'
15312 fi
15313 fi
15314 fi
15315
15316 # It seems that -bexpall does not export symbols beginning with
15317 # underscore (_), so it is better to generate a list of symbols to export.
15318 always_export_symbols_CXX=yes
15319 if test "$aix_use_runtimelinking" = yes; then
15320 # Warning - without using the other runtime loading flags (-brtl),
15321 # -berok will link without error, but may produce a broken library.
15322 allow_undefined_flag_CXX='-berok'
15323 # Determine the default libpath from the value encoded in an empty executable.
15324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015330
John Criswell47fdd832003-07-14 16:52:07 +000015331int
15332main ()
15333{
15334
15335 ;
15336 return 0;
15337}
15338_ACEOF
15339rm -f conftest.$ac_objext conftest$ac_exeext
15340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015341 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015348 { ac_try='test -z "$ac_cxx_werror_flag"
15349 || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361
15362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15363}'`
15364# Check for a 64-bit object if we didn't find anything.
15365if 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; }
15366}'`; fi
15367else
15368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015369sed 's/^/| /' conftest.$ac_ext >&5
15370
John Criswell47fdd832003-07-14 16:52:07 +000015371fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015372rm -f conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15375
15376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15377
15378 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"
15379 else
15380 if test "$host_cpu" = ia64; then
15381 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15382 allow_undefined_flag_CXX="-z nodefs"
15383 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"
15384 else
15385 # Determine the default libpath from the value encoded in an empty executable.
15386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015387/* confdefs.h. */
15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015392
John Criswell47fdd832003-07-14 16:52:07 +000015393int
15394main ()
15395{
15396
15397 ;
15398 return 0;
15399}
15400_ACEOF
15401rm -f conftest.$ac_objext conftest$ac_exeext
15402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015403 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015404 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015410 { ac_try='test -z "$ac_cxx_werror_flag"
15411 || test ! -s conftest.err'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; } &&
15417 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423
15424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15425}'`
15426# Check for a 64-bit object if we didn't find anything.
15427if 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; }
15428}'`; fi
15429else
15430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015431sed 's/^/| /' conftest.$ac_ext >&5
15432
John Criswell47fdd832003-07-14 16:52:07 +000015433fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015434rm -f conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015436if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15437
15438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15439 # Warning - without using the other run time loading flags,
15440 # -berok will link without error, but may produce a broken library.
15441 no_undefined_flag_CXX=' ${wl}-bernotok'
15442 allow_undefined_flag_CXX=' ${wl}-berok'
15443 # -bexpall does not export symbols beginning with underscore (_)
15444 always_export_symbols_CXX=yes
15445 # Exported symbols can be pulled into shared objects from archives
15446 whole_archive_flag_spec_CXX=' '
15447 archive_cmds_need_lc_CXX=yes
15448 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015449 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 +000015450 fi
15451 fi
15452 ;;
15453 chorus*)
15454 case $cc_basename in
15455 *)
15456 # FIXME: insert proper C++ library support
15457 ld_shlibs_CXX=no
15458 ;;
15459 esac
15460 ;;
15461
Reid Spencer2706f8c2004-09-19 23:53:36 +000015462
John Criswell47fdd832003-07-14 16:52:07 +000015463 cygwin* | mingw* | pw32*)
15464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15465 # as there is no search path for DLLs.
15466 hardcode_libdir_flag_spec_CXX='-L$libdir'
15467 allow_undefined_flag_CXX=unsupported
15468 always_export_symbols_CXX=no
15469 enable_shared_with_static_runtimes_CXX=yes
15470
15471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15472 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'
15473 # If the export-symbols file already is a .def file (1st line
15474 # is EXPORTS), use it as is; otherwise, prepend...
15475 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476 cp $export_symbols $output_objdir/$soname.def;
15477 else
15478 echo EXPORTS > $output_objdir/$soname.def;
15479 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015480 fi~
15481 $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 +000015482 else
15483 ld_shlibs_CXX=no
15484 fi
15485 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015486 darwin* | rhapsody*)
15487 case "$host_os" in
15488 rhapsody* | darwin1.[012])
15489 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15490 ;;
15491 *) # Darwin 1.3 on
15492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15494 else
15495 case ${MACOSX_DEPLOYMENT_TARGET} in
15496 10.[012])
15497 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15498 ;;
15499 10.*)
15500 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15501 ;;
15502 esac
15503 fi
15504 ;;
15505 esac
15506 archive_cmds_need_lc_CXX=no
15507 hardcode_direct_CXX=no
15508 hardcode_automatic_CXX=yes
15509 hardcode_shlibpath_var_CXX=unsupported
15510 whole_archive_flag_spec_CXX=''
15511 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015512
Reid Spencer2706f8c2004-09-19 23:53:36 +000015513 if test "$GXX" = yes ; then
15514 lt_int_apple_cc_single_mod=no
15515 output_verbose_link_cmd='echo'
15516 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15517 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015518 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015519 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015520 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 +000015521 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015522 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 +000015523 fi
15524 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15526 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015527 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 +000015528 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015529 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 +000015530 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015531 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 +000015532 else
15533 case "$cc_basename" in
15534 xlc*)
15535 output_verbose_link_cmd='echo'
15536 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'
15537 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15538 # 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 +000015539 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}'
15540 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 +000015541 ;;
15542 *)
15543 ld_shlibs_CXX=no
15544 ;;
15545 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015546 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015547 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015548
15549 dgux*)
15550 case $cc_basename in
15551 ec++)
15552 # FIXME: insert proper C++ library support
15553 ld_shlibs_CXX=no
15554 ;;
15555 ghcx)
15556 # Green Hills C++ Compiler
15557 # FIXME: insert proper C++ library support
15558 ld_shlibs_CXX=no
15559 ;;
15560 *)
15561 # FIXME: insert proper C++ library support
15562 ld_shlibs_CXX=no
15563 ;;
15564 esac
15565 ;;
15566 freebsd12*)
15567 # C++ shared libraries reported to be fairly broken before switch to ELF
15568 ld_shlibs_CXX=no
15569 ;;
15570 freebsd-elf*)
15571 archive_cmds_need_lc_CXX=no
15572 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015573 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15575 # conventions
15576 ld_shlibs_CXX=yes
15577 ;;
15578 gnu*)
15579 ;;
15580 hpux9*)
15581 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15582 hardcode_libdir_separator_CXX=:
15583 export_dynamic_flag_spec_CXX='${wl}-E'
15584 hardcode_direct_CXX=yes
15585 hardcode_minus_L_CXX=yes # Not in the search PATH,
15586 # but as the default
15587 # location of the library.
15588
15589 case $cc_basename in
15590 CC)
15591 # FIXME: insert proper C++ library support
15592 ld_shlibs_CXX=no
15593 ;;
15594 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015595 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 +000015596 # Commands to make compiler produce verbose output that lists
15597 # what "hidden" libraries, object files and flags are used when
15598 # linking a shared library.
15599 #
15600 # There doesn't appear to be a way to prevent this compiler from
15601 # explicitly linking system object files so we need to strip them
15602 # from the output so that they don't get included in the library
15603 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015604 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 +000015605 ;;
15606 *)
15607 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015608 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 +000015609 else
15610 # FIXME: insert proper C++ library support
15611 ld_shlibs_CXX=no
15612 fi
15613 ;;
15614 esac
15615 ;;
15616 hpux10*|hpux11*)
15617 if test $with_gnu_ld = no; then
15618 case "$host_cpu" in
15619 hppa*64*)
15620 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15622 hardcode_libdir_separator_CXX=:
15623 ;;
15624 ia64*)
15625 hardcode_libdir_flag_spec_CXX='-L$libdir'
15626 ;;
15627 *)
15628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15629 hardcode_libdir_separator_CXX=:
15630 export_dynamic_flag_spec_CXX='${wl}-E'
15631 ;;
15632 esac
15633 fi
15634 case "$host_cpu" in
15635 hppa*64*)
15636 hardcode_direct_CXX=no
15637 hardcode_shlibpath_var_CXX=no
15638 ;;
15639 ia64*)
15640 hardcode_direct_CXX=no
15641 hardcode_shlibpath_var_CXX=no
15642 hardcode_minus_L_CXX=yes # Not in the search PATH,
15643 # but as the default
15644 # location of the library.
15645 ;;
15646 *)
15647 hardcode_direct_CXX=yes
15648 hardcode_minus_L_CXX=yes # Not in the search PATH,
15649 # but as the default
15650 # location of the library.
15651 ;;
15652 esac
15653
15654 case $cc_basename in
15655 CC)
15656 # FIXME: insert proper C++ library support
15657 ld_shlibs_CXX=no
15658 ;;
15659 aCC)
15660 case "$host_cpu" in
15661 hppa*64*|ia64*)
15662 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15663 ;;
15664 *)
15665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15666 ;;
15667 esac
15668 # Commands to make compiler produce verbose output that lists
15669 # what "hidden" libraries, object files and flags are used when
15670 # linking a shared library.
15671 #
15672 # There doesn't appear to be a way to prevent this compiler from
15673 # explicitly linking system object files so we need to strip them
15674 # from the output so that they don't get included in the library
15675 # dependencies.
15676 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'
15677 ;;
15678 *)
15679 if test "$GXX" = yes; then
15680 if test $with_gnu_ld = no; then
15681 case "$host_cpu" in
15682 ia64*|hppa*64*)
15683 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15684 ;;
15685 *)
15686 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'
15687 ;;
15688 esac
15689 fi
15690 else
15691 # FIXME: insert proper C++ library support
15692 ld_shlibs_CXX=no
15693 fi
15694 ;;
15695 esac
15696 ;;
15697 irix5* | irix6*)
15698 case $cc_basename in
15699 CC)
15700 # SGI C++
15701 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'
15702
15703 # Archives containing C++ object files must be created using
15704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15705 # necessary to make sure instantiated templates are included
15706 # in the archive.
15707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15708 ;;
15709 *)
15710 if test "$GXX" = yes; then
15711 if test "$with_gnu_ld" = no; then
15712 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'
15713 else
15714 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'
15715 fi
15716 fi
15717 link_all_deplibs_CXX=yes
15718 ;;
15719 esac
15720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator_CXX=:
15722 ;;
15723 linux*)
15724 case $cc_basename in
15725 KCC)
15726 # Kuck and Associates, Inc. (KAI) C++ Compiler
15727
15728 # KCC will only create a shared library if the output file
15729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15730 # to its proper name (with version) after linking.
15731 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'
15732 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'
15733 # Commands to make compiler produce verbose output that lists
15734 # what "hidden" libraries, object files and flags are used when
15735 # linking a shared library.
15736 #
15737 # There doesn't appear to be a way to prevent this compiler from
15738 # explicitly linking system object files so we need to strip them
15739 # from the output so that they don't get included in the library
15740 # dependencies.
15741 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'
15742
15743 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15745
15746 # Archives containing C++ object files must be created using
15747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15749 ;;
15750 icpc)
15751 # Intel C++
15752 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015753 # version 8.0 and above of icpc choke on multiply defined symbols
15754 # if we add $predep_objects and $postdep_objects, however 7.1 and
15755 # earlier do not add the objects themselves.
15756 case `$CC -V 2>&1` in
15757 *"Version 7."*)
15758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 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'
15760 ;;
15761 *) # Version 8.0 or newer
15762 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15763 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15764 ;;
15765 esac
John Criswell47fdd832003-07-14 16:52:07 +000015766 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15769 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15770 ;;
15771 cxx)
15772 # Compaq C++
15773 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774 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'
15775
15776 runpath_var=LD_RUN_PATH
15777 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15778 hardcode_libdir_separator_CXX=:
15779
15780 # Commands to make compiler produce verbose output that lists
15781 # what "hidden" libraries, object files and flags are used when
15782 # linking a shared library.
15783 #
15784 # There doesn't appear to be a way to prevent this compiler from
15785 # explicitly linking system object files so we need to strip them
15786 # from the output so that they don't get included in the library
15787 # dependencies.
15788 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'
15789 ;;
15790 esac
15791 ;;
15792 lynxos*)
15793 # FIXME: insert proper C++ library support
15794 ld_shlibs_CXX=no
15795 ;;
15796 m88k*)
15797 # FIXME: insert proper C++ library support
15798 ld_shlibs_CXX=no
15799 ;;
15800 mvs*)
15801 case $cc_basename in
15802 cxx)
15803 # FIXME: insert proper C++ library support
15804 ld_shlibs_CXX=no
15805 ;;
15806 *)
15807 # FIXME: insert proper C++ library support
15808 ld_shlibs_CXX=no
15809 ;;
15810 esac
15811 ;;
15812 netbsd*)
15813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15814 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15815 wlarc=
15816 hardcode_libdir_flag_spec_CXX='-R$libdir'
15817 hardcode_direct_CXX=yes
15818 hardcode_shlibpath_var_CXX=no
15819 fi
15820 # Workaround some broken pre-1.5 toolchains
15821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15822 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015823 openbsd2*)
15824 # C++ shared libraries are fairly broken
15825 ld_shlibs_CXX=no
15826 ;;
15827 openbsd*)
15828 hardcode_direct_CXX=yes
15829 hardcode_shlibpath_var_CXX=no
15830 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15833 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15834 export_dynamic_flag_spec_CXX='${wl}-E'
15835 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15836 fi
15837 output_verbose_link_cmd='echo'
15838 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015839 osf3*)
15840 case $cc_basename in
15841 KCC)
15842 # Kuck and Associates, Inc. (KAI) C++ Compiler
15843
15844 # KCC will only create a shared library if the output file
15845 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15846 # to its proper name (with version) after linking.
15847 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'
15848
15849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15850 hardcode_libdir_separator_CXX=:
15851
15852 # Archives containing C++ object files must be created using
15853 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15854 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15855
15856 ;;
15857 RCC)
15858 # Rational C++ 2.4.1
15859 # FIXME: insert proper C++ library support
15860 ld_shlibs_CXX=no
15861 ;;
15862 cxx)
15863 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15864 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'
15865
15866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15867 hardcode_libdir_separator_CXX=:
15868
15869 # Commands to make compiler produce verbose output that lists
15870 # what "hidden" libraries, object files and flags are used when
15871 # linking a shared library.
15872 #
15873 # There doesn't appear to be a way to prevent this compiler from
15874 # explicitly linking system object files so we need to strip them
15875 # from the output so that they don't get included in the library
15876 # dependencies.
15877 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'
15878 ;;
15879 *)
15880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15882 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'
15883
15884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15885 hardcode_libdir_separator_CXX=:
15886
15887 # Commands to make compiler produce verbose output that lists
15888 # what "hidden" libraries, object files and flags are used when
15889 # linking a shared library.
15890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15891
15892 else
15893 # FIXME: insert proper C++ library support
15894 ld_shlibs_CXX=no
15895 fi
15896 ;;
15897 esac
15898 ;;
15899 osf4* | osf5*)
15900 case $cc_basename in
15901 KCC)
15902 # Kuck and Associates, Inc. (KAI) C++ Compiler
15903
15904 # KCC will only create a shared library if the output file
15905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15906 # to its proper name (with version) after linking.
15907 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'
15908
15909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15910 hardcode_libdir_separator_CXX=:
15911
15912 # Archives containing C++ object files must be created using
15913 # the KAI C++ compiler.
15914 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15915 ;;
15916 RCC)
15917 # Rational C++ 2.4.1
15918 # FIXME: insert proper C++ library support
15919 ld_shlibs_CXX=no
15920 ;;
15921 cxx)
15922 allow_undefined_flag_CXX=' -expect_unresolved \*'
15923 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 +000015924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15925 echo "-hidden">> $lib.exp~
15926 $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~
15927 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015928
15929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15930 hardcode_libdir_separator_CXX=:
15931
15932 # Commands to make compiler produce verbose output that lists
15933 # what "hidden" libraries, object files and flags are used when
15934 # linking a shared library.
15935 #
15936 # There doesn't appear to be a way to prevent this compiler from
15937 # explicitly linking system object files so we need to strip them
15938 # from the output so that they don't get included in the library
15939 # dependencies.
15940 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'
15941 ;;
15942 *)
15943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15945 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'
15946
15947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15948 hardcode_libdir_separator_CXX=:
15949
15950 # Commands to make compiler produce verbose output that lists
15951 # what "hidden" libraries, object files and flags are used when
15952 # linking a shared library.
15953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15954
15955 else
15956 # FIXME: insert proper C++ library support
15957 ld_shlibs_CXX=no
15958 fi
15959 ;;
15960 esac
15961 ;;
15962 psos*)
15963 # FIXME: insert proper C++ library support
15964 ld_shlibs_CXX=no
15965 ;;
15966 sco*)
15967 archive_cmds_need_lc_CXX=no
15968 case $cc_basename in
15969 CC)
15970 # FIXME: insert proper C++ library support
15971 ld_shlibs_CXX=no
15972 ;;
15973 *)
15974 # FIXME: insert proper C++ library support
15975 ld_shlibs_CXX=no
15976 ;;
15977 esac
15978 ;;
15979 sunos4*)
15980 case $cc_basename in
15981 CC)
15982 # Sun C++ 4.x
15983 # FIXME: insert proper C++ library support
15984 ld_shlibs_CXX=no
15985 ;;
15986 lcc)
15987 # Lucid
15988 # FIXME: insert proper C++ library support
15989 ld_shlibs_CXX=no
15990 ;;
15991 *)
15992 # FIXME: insert proper C++ library support
15993 ld_shlibs_CXX=no
15994 ;;
15995 esac
15996 ;;
15997 solaris*)
15998 case $cc_basename in
15999 CC)
16000 # Sun C++ 4.2, 5.x and Centerline C++
16001 no_undefined_flag_CXX=' -zdefs'
16002 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 +000016003 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16004 $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 +000016005
16006 hardcode_libdir_flag_spec_CXX='-R$libdir'
16007 hardcode_shlibpath_var_CXX=no
16008 case $host_os in
16009 solaris2.0-5 | solaris2.0-5.*) ;;
16010 *)
16011 # The C++ compiler is used as linker so we must use $wl
16012 # flag to pass the commands to the underlying system
16013 # linker.
16014 # Supported since Solaris 2.6 (maybe 2.5.1?)
16015 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16016 ;;
16017 esac
16018 link_all_deplibs_CXX=yes
16019
16020 # Commands to make compiler produce verbose output that lists
16021 # what "hidden" libraries, object files and flags are used when
16022 # linking a shared library.
16023 #
16024 # There doesn't appear to be a way to prevent this compiler from
16025 # explicitly linking system object files so we need to strip them
16026 # from the output so that they don't get included in the library
16027 # dependencies.
16028 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'
16029
16030 # Archives containing C++ object files must be created using
16031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16032 # necessary to make sure instantiated templates are included
16033 # in the archive.
16034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16035 ;;
16036 gcx)
16037 # Green Hills C++ Compiler
16038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16039
16040 # The C++ compiler must be used to create the archive.
16041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16042 ;;
16043 *)
16044 # GNU C++ compiler with Solaris linker
16045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16046 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16047 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016048 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 +000016049 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16051
John Criswell47fdd832003-07-14 16:52:07 +000016052 # Commands to make compiler produce verbose output that lists
16053 # what "hidden" libraries, object files and flags are used when
16054 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016055 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016056 else
16057 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16058 # platform.
16059 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 +000016060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061 $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 +000016062
16063 # Commands to make compiler produce verbose output that lists
16064 # what "hidden" libraries, object files and flags are used when
16065 # linking a shared library.
16066 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16067 fi
16068
16069 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16070 fi
16071 ;;
16072 esac
16073 ;;
16074 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16075 archive_cmds_need_lc_CXX=no
16076 ;;
16077 tandem*)
16078 case $cc_basename in
16079 NCC)
16080 # NonStop-UX NCC 3.20
16081 # FIXME: insert proper C++ library support
16082 ld_shlibs_CXX=no
16083 ;;
16084 *)
16085 # FIXME: insert proper C++ library support
16086 ld_shlibs_CXX=no
16087 ;;
16088 esac
16089 ;;
16090 vxworks*)
16091 # FIXME: insert proper C++ library support
16092 ld_shlibs_CXX=no
16093 ;;
16094 *)
16095 # FIXME: insert proper C++ library support
16096 ld_shlibs_CXX=no
16097 ;;
16098esac
16099echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16100echo "${ECHO_T}$ld_shlibs_CXX" >&6
16101test "$ld_shlibs_CXX" = no && can_build_shared=no
16102
16103GCC_CXX="$GXX"
16104LD_CXX="$LD"
16105
John Criswell47fdd832003-07-14 16:52:07 +000016106
16107cat > conftest.$ac_ext <<EOF
16108class Foo
16109{
16110public:
16111 Foo (void) { a = 0; }
16112private:
16113 int a;
16114};
16115EOF
16116
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; then
16122 # Parse the compiler output and extract the necessary
16123 # objects, libraries and library flags.
16124
16125 # Sentinel used to keep track of whether or not we are before
16126 # the conftest object file.
16127 pre_test_object_deps_done=no
16128
16129 # The `*' in the case matches for architectures that use `case' in
16130 # $output_verbose_cmd can trigger glob expansion during the loop
16131 # eval without this substitution.
16132 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16133
16134 for p in `eval $output_verbose_link_cmd`; do
16135 case $p in
16136
16137 -L* | -R* | -l*)
16138 # Some compilers place space between "-{L,R}" and the path.
16139 # Remove the space.
16140 if test $p = "-L" \
16141 || test $p = "-R"; then
16142 prev=$p
16143 continue
16144 else
16145 prev=
16146 fi
16147
16148 if test "$pre_test_object_deps_done" = no; then
16149 case $p in
16150 -L* | -R*)
16151 # Internal compiler library paths should come after those
16152 # provided the user. The postdeps already come after the
16153 # user supplied libs so there is no need to process them.
16154 if test -z "$compiler_lib_search_path_CXX"; then
16155 compiler_lib_search_path_CXX="${prev}${p}"
16156 else
16157 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16158 fi
16159 ;;
16160 # The "-l" case would never come before the object being
16161 # linked, so don't bother handling this case.
16162 esac
16163 else
16164 if test -z "$postdeps_CXX"; then
16165 postdeps_CXX="${prev}${p}"
16166 else
16167 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16168 fi
16169 fi
16170 ;;
16171
16172 *.$objext)
16173 # This assumes that the test object file only shows up
16174 # once in the compiler output.
16175 if test "$p" = "conftest.$objext"; then
16176 pre_test_object_deps_done=yes
16177 continue
16178 fi
16179
16180 if test "$pre_test_object_deps_done" = no; then
16181 if test -z "$predep_objects_CXX"; then
16182 predep_objects_CXX="$p"
16183 else
16184 predep_objects_CXX="$predep_objects_CXX $p"
16185 fi
16186 else
16187 if test -z "$postdep_objects_CXX"; then
16188 postdep_objects_CXX="$p"
16189 else
16190 postdep_objects_CXX="$postdep_objects_CXX $p"
16191 fi
16192 fi
16193 ;;
16194
16195 *) ;; # Ignore the rest.
16196
16197 esac
16198 done
16199
16200 # Clean up.
16201 rm -f a.out a.exe
16202else
16203 echo "libtool.m4: error: problem compiling CXX test program"
16204fi
16205
16206$rm -f confest.$objext
16207
16208case " $postdeps_CXX " in
16209*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16210esac
16211
16212lt_prog_compiler_wl_CXX=
16213lt_prog_compiler_pic_CXX=
16214lt_prog_compiler_static_CXX=
16215
16216echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16217echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16218
16219 # C++ specific cases for pic, static, wl, etc.
16220 if test "$GXX" = yes; then
16221 lt_prog_compiler_wl_CXX='-Wl,'
16222 lt_prog_compiler_static_CXX='-static'
16223
16224 case $host_os in
16225 aix*)
16226 # All AIX code is PIC.
16227 if test "$host_cpu" = ia64; then
16228 # AIX 5 now supports IA64 processor
16229 lt_prog_compiler_static_CXX='-Bstatic'
16230 fi
16231 ;;
16232 amigaos*)
16233 # FIXME: we need at least 68020 code to build shared libraries, but
16234 # adding the `-m68020' flag to GCC prevents building anything better,
16235 # like `-m68040'.
16236 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16237 ;;
16238 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16239 # PIC is the default for these OSes.
16240 ;;
16241 mingw* | os2* | pw32*)
16242 # This hack is so that the source file can tell whether it is being
16243 # built for inclusion in a dll (and should export symbols for example).
16244 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16245 ;;
16246 darwin* | rhapsody*)
16247 # PIC is the default on this platform
16248 # Common symbols not allowed in MH_DYLIB files
16249 lt_prog_compiler_pic_CXX='-fno-common'
16250 ;;
16251 *djgpp*)
16252 # DJGPP does not support shared libraries at all
16253 lt_prog_compiler_pic_CXX=
16254 ;;
16255 sysv4*MP*)
16256 if test -d /usr/nec; then
16257 lt_prog_compiler_pic_CXX=-Kconform_pic
16258 fi
16259 ;;
16260 hpux*)
16261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16262 # not for PA HP-UX.
16263 case "$host_cpu" in
16264 hppa*64*|ia64*)
16265 ;;
16266 *)
16267 lt_prog_compiler_pic_CXX='-fPIC'
16268 ;;
16269 esac
16270 ;;
16271 *)
16272 lt_prog_compiler_pic_CXX='-fPIC'
16273 ;;
16274 esac
16275 else
16276 case $host_os in
16277 aix4* | aix5*)
16278 # All AIX code is PIC.
16279 if test "$host_cpu" = ia64; then
16280 # AIX 5 now supports IA64 processor
16281 lt_prog_compiler_static_CXX='-Bstatic'
16282 else
16283 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16284 fi
16285 ;;
16286 chorus*)
16287 case $cc_basename in
16288 cxch68)
16289 # Green Hills C++ Compiler
16290 # _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"
16291 ;;
16292 esac
16293 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016294 darwin*)
16295 # PIC is the default on this platform
16296 # Common symbols not allowed in MH_DYLIB files
16297 case "$cc_basename" in
16298 xlc*)
16299 lt_prog_compiler_pic_CXX='-qnocommon'
16300 lt_prog_compiler_wl_CXX='-Wl,'
16301 ;;
16302 esac
16303 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016304 dgux*)
16305 case $cc_basename in
16306 ec++)
16307 lt_prog_compiler_pic_CXX='-KPIC'
16308 ;;
16309 ghcx)
16310 # Green Hills C++ Compiler
16311 lt_prog_compiler_pic_CXX='-pic'
16312 ;;
16313 *)
16314 ;;
16315 esac
16316 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016317 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016318 # FreeBSD uses GNU C++
16319 ;;
16320 hpux9* | hpux10* | hpux11*)
16321 case $cc_basename in
16322 CC)
16323 lt_prog_compiler_wl_CXX='-Wl,'
16324 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16325 if test "$host_cpu" != ia64; then
16326 lt_prog_compiler_pic_CXX='+Z'
16327 fi
16328 ;;
16329 aCC)
16330 lt_prog_compiler_wl_CXX='-Wl,'
16331 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16332 case "$host_cpu" in
16333 hppa*64*|ia64*)
16334 # +Z the default
16335 ;;
16336 *)
16337 lt_prog_compiler_pic_CXX='+Z'
16338 ;;
16339 esac
16340 ;;
16341 *)
16342 ;;
16343 esac
16344 ;;
16345 irix5* | irix6* | nonstopux*)
16346 case $cc_basename in
16347 CC)
16348 lt_prog_compiler_wl_CXX='-Wl,'
16349 lt_prog_compiler_static_CXX='-non_shared'
16350 # CC pic flag -KPIC is the default.
16351 ;;
16352 *)
16353 ;;
16354 esac
16355 ;;
16356 linux*)
16357 case $cc_basename in
16358 KCC)
16359 # KAI C++ Compiler
16360 lt_prog_compiler_wl_CXX='--backend -Wl,'
16361 lt_prog_compiler_pic_CXX='-fPIC'
16362 ;;
16363 icpc)
16364 # Intel C++
16365 lt_prog_compiler_wl_CXX='-Wl,'
16366 lt_prog_compiler_pic_CXX='-KPIC'
16367 lt_prog_compiler_static_CXX='-static'
16368 ;;
16369 cxx)
16370 # Compaq C++
16371 # Make sure the PIC flag is empty. It appears that all Alpha
16372 # Linux and Compaq Tru64 Unix objects are PIC.
16373 lt_prog_compiler_pic_CXX=
16374 lt_prog_compiler_static_CXX='-non_shared'
16375 ;;
16376 *)
16377 ;;
16378 esac
16379 ;;
16380 lynxos*)
16381 ;;
16382 m88k*)
16383 ;;
16384 mvs*)
16385 case $cc_basename in
16386 cxx)
16387 lt_prog_compiler_pic_CXX='-W c,exportall'
16388 ;;
16389 *)
16390 ;;
16391 esac
16392 ;;
16393 netbsd*)
16394 ;;
16395 osf3* | osf4* | osf5*)
16396 case $cc_basename in
16397 KCC)
16398 lt_prog_compiler_wl_CXX='--backend -Wl,'
16399 ;;
16400 RCC)
16401 # Rational C++ 2.4.1
16402 lt_prog_compiler_pic_CXX='-pic'
16403 ;;
16404 cxx)
16405 # Digital/Compaq C++
16406 lt_prog_compiler_wl_CXX='-Wl,'
16407 # Make sure the PIC flag is empty. It appears that all Alpha
16408 # Linux and Compaq Tru64 Unix objects are PIC.
16409 lt_prog_compiler_pic_CXX=
16410 lt_prog_compiler_static_CXX='-non_shared'
16411 ;;
16412 *)
16413 ;;
16414 esac
16415 ;;
16416 psos*)
16417 ;;
16418 sco*)
16419 case $cc_basename in
16420 CC)
16421 lt_prog_compiler_pic_CXX='-fPIC'
16422 ;;
16423 *)
16424 ;;
16425 esac
16426 ;;
16427 solaris*)
16428 case $cc_basename in
16429 CC)
16430 # Sun C++ 4.2, 5.x and Centerline C++
16431 lt_prog_compiler_pic_CXX='-KPIC'
16432 lt_prog_compiler_static_CXX='-Bstatic'
16433 lt_prog_compiler_wl_CXX='-Qoption ld '
16434 ;;
16435 gcx)
16436 # Green Hills C++ Compiler
16437 lt_prog_compiler_pic_CXX='-PIC'
16438 ;;
16439 *)
16440 ;;
16441 esac
16442 ;;
16443 sunos4*)
16444 case $cc_basename in
16445 CC)
16446 # Sun C++ 4.x
16447 lt_prog_compiler_pic_CXX='-pic'
16448 lt_prog_compiler_static_CXX='-Bstatic'
16449 ;;
16450 lcc)
16451 # Lucid
16452 lt_prog_compiler_pic_CXX='-pic'
16453 ;;
16454 *)
16455 ;;
16456 esac
16457 ;;
16458 tandem*)
16459 case $cc_basename in
16460 NCC)
16461 # NonStop-UX NCC 3.20
16462 lt_prog_compiler_pic_CXX='-KPIC'
16463 ;;
16464 *)
16465 ;;
16466 esac
16467 ;;
16468 unixware*)
16469 ;;
16470 vxworks*)
16471 ;;
16472 *)
16473 lt_prog_compiler_can_build_shared_CXX=no
16474 ;;
16475 esac
16476 fi
16477
16478echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16479echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16480
16481#
16482# Check to make sure the PIC flag actually works.
16483#
16484if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016485
16486echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016487echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16488if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16490else
16491 lt_prog_compiler_pic_works_CXX=no
16492 ac_outfile=conftest.$ac_objext
16493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16494 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16495 # Insert the option either (1) after the last *FLAGS variable, or
16496 # (2) before a word containing "conftest.", or (3) at the end.
16497 # Note that $ac_compile itself does not contain backslashes and begins
16498 # with a dollar sign (not a hyphen), so the echo should work correctly.
16499 # The option is referenced via a variable to avoid confusing sed.
16500 lt_compile=`echo "$ac_compile" | $SED \
16501 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16503 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000016504 (eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016505 (eval "$lt_compile" 2>conftest.err)
16506 ac_status=$?
16507 cat conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000016508 echo "$as_me:16508: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016509 if (exit $ac_status) && test -s "$ac_outfile"; then
16510 # The compiler can only warn and ignore the option if not recognized
16511 # So say no if there are warnings
16512 if test ! -s conftest.err; then
16513 lt_prog_compiler_pic_works_CXX=yes
16514 fi
16515 fi
16516 $rm conftest*
16517
16518fi
16519echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16520echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16521
16522if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16523 case $lt_prog_compiler_pic_CXX in
16524 "" | " "*) ;;
16525 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16526 esac
16527else
16528 lt_prog_compiler_pic_CXX=
16529 lt_prog_compiler_can_build_shared_CXX=no
16530fi
16531
16532fi
16533case "$host_os" in
16534 # For platforms which do not support PIC, -DPIC is meaningless:
16535 *djgpp*)
16536 lt_prog_compiler_pic_CXX=
16537 ;;
16538 *)
16539 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16540 ;;
16541esac
16542
16543echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16544echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16545if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547else
16548 lt_cv_prog_compiler_c_o_CXX=no
16549 $rm -r conftest 2>/dev/null
16550 mkdir conftest
16551 cd conftest
16552 mkdir out
16553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554
John Criswell47fdd832003-07-14 16:52:07 +000016555 lt_compiler_flag="-o out/conftest2.$ac_objext"
16556 # Insert the option either (1) after the last *FLAGS variable, or
16557 # (2) before a word containing "conftest.", or (3) at the end.
16558 # Note that $ac_compile itself does not contain backslashes and begins
16559 # with a dollar sign (not a hyphen), so the echo should work correctly.
16560 lt_compile=`echo "$ac_compile" | $SED \
16561 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16563 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000016564 (eval echo "\"\$as_me:16564: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016565 (eval "$lt_compile" 2>out/conftest.err)
16566 ac_status=$?
16567 cat out/conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000016568 echo "$as_me:16568: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16570 then
16571 # The compiler can only warn and ignore the option if not recognized
16572 # So say no if there are warnings
16573 if test ! -s out/conftest.err; then
16574 lt_cv_prog_compiler_c_o_CXX=yes
16575 fi
16576 fi
16577 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016578 $rm conftest*
16579 # SGI C++ compiler will create directory out/ii_files/ for
16580 # template instantiation
16581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16582 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016583 cd ..
16584 rmdir conftest
16585 $rm conftest*
16586
16587fi
16588echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16589echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16590
16591
16592hard_links="nottested"
16593if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16594 # do not overwrite the value of need_locks provided by the user
16595 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16596echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16597 hard_links=yes
16598 $rm conftest*
16599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16600 touch conftest.a
16601 ln conftest.a conftest.b 2>&5 || hard_links=no
16602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16603 echo "$as_me:$LINENO: result: $hard_links" >&5
16604echo "${ECHO_T}$hard_links" >&6
16605 if test "$hard_links" = no; then
16606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16607echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16608 need_locks=warn
16609 fi
16610else
16611 need_locks=no
16612fi
16613
16614echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16615echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16616
16617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16618 case $host_os in
16619 aix4* | aix5*)
16620 # If we're using GNU nm, then we don't want the "-C" option.
16621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16622 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16623 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'
16624 else
16625 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'
16626 fi
16627 ;;
16628 pw32*)
16629 export_symbols_cmds_CXX="$ltdll_cmds"
16630 ;;
16631 cygwin* | mingw*)
16632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16633 ;;
16634 *)
16635 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16636 ;;
16637 esac
16638
16639echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16640echo "${ECHO_T}$ld_shlibs_CXX" >&6
16641test "$ld_shlibs_CXX" = no && can_build_shared=no
16642
16643variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16644if test "$GCC" = yes; then
16645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16646fi
16647
16648#
16649# Do we need to explicitly link libc?
16650#
16651case "x$archive_cmds_need_lc_CXX" in
16652x|xyes)
16653 # Assume -lc should be added
16654 archive_cmds_need_lc_CXX=yes
16655
16656 if test "$enable_shared" = yes && test "$GCC" = yes; then
16657 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016658 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016659 # FIXME: we may have to deal with multi-command sequences.
16660 ;;
16661 '$CC '*)
16662 # Test whether the compiler implicitly links with -lc since on some
16663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16664 # to ld, don't add -lc before -lgcc.
16665 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16666echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16667 $rm conftest*
16668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16669
16670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16671 (eval $ac_compile) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } 2>conftest.err; then
16675 soname=conftest
16676 lib=conftest
16677 libobjs=conftest.$ac_objext
16678 deplibs=
16679 wl=$lt_prog_compiler_wl_CXX
16680 compiler_flags=-v
16681 linker_flags=-v
16682 verstring=
16683 output_objdir=.
16684 libname=conftest
16685 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16686 allow_undefined_flag_CXX=
16687 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16688 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }
16692 then
16693 archive_cmds_need_lc_CXX=no
16694 else
16695 archive_cmds_need_lc_CXX=yes
16696 fi
16697 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16698 else
16699 cat conftest.err 1>&5
16700 fi
16701 $rm conftest*
16702 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16703echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16704 ;;
16705 esac
16706 fi
16707 ;;
16708esac
16709
John Criswell47fdd832003-07-14 16:52:07 +000016710echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16711echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16712library_names_spec=
16713libname_spec='lib$name'
16714soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016715shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016716postinstall_cmds=
16717postuninstall_cmds=
16718finish_cmds=
16719finish_eval=
16720shlibpath_var=
16721shlibpath_overrides_runpath=unknown
16722version_type=none
16723dynamic_linker="$host_os ld.so"
16724sys_lib_dlsearch_path_spec="/lib /usr/lib"
16725if test "$GCC" = yes; then
16726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16727 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16728 # if the path contains ";" then we assume it to be the separator
16729 # otherwise default to the standard path separator (i.e. ":") - it is
16730 # assumed that no part of a normal pathname contains ";" but that should
16731 # okay in the real world where ";" in dirpaths is itself problematic.
16732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16733 else
16734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16735 fi
16736else
16737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16738fi
16739need_lib_prefix=unknown
16740hardcode_into_libs=no
16741
16742# when you set need_version to no, make sure it does not cause -set_version
16743# flags to be left without arguments
16744need_version=unknown
16745
16746case $host_os in
16747aix3*)
16748 version_type=linux
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16750 shlibpath_var=LIBPATH
16751
16752 # AIX 3 has no versioning support, so we append a major version to the name.
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 ;;
16755
16756aix4* | aix5*)
16757 version_type=linux
16758 need_lib_prefix=no
16759 need_version=no
16760 hardcode_into_libs=yes
16761 if test "$host_cpu" = ia64; then
16762 # AIX 5 supports IA64
16763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 else
16766 # With GCC up to 2.95.x, collect2 would create an import file
16767 # for dependence libraries. The import file would start with
16768 # the line `#! .'. This would cause the generated library to
16769 # depend on `.', always an invalid library. This was fixed in
16770 # development snapshots of GCC prior to 3.0.
16771 case $host_os in
16772 aix4 | aix4.[01] | aix4.[01].*)
16773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16774 echo ' yes '
16775 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16776 :
16777 else
16778 can_build_shared=no
16779 fi
16780 ;;
16781 esac
16782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16783 # soname into executable. Probably we can add versioning support to
16784 # collect2, so additional links can be useful in future.
16785 if test "$aix_use_runtimelinking" = yes; then
16786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16787 # instead of lib<name>.a to let people know that these are not
16788 # typical AIX shared libraries.
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 else
16791 # We preserve .a as extension for shared libraries through AIX4.2
16792 # and later when we are not doing run time linking.
16793 library_names_spec='${libname}${release}.a $libname.a'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16795 fi
16796 shlibpath_var=LIBPATH
16797 fi
16798 ;;
16799
16800amigaos*)
16801 library_names_spec='$libname.ixlibrary $libname.a'
16802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016803 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 +000016804 ;;
16805
16806beos*)
16807 library_names_spec='${libname}${shared_ext}'
16808 dynamic_linker="$host_os ld.so"
16809 shlibpath_var=LIBRARY_PATH
16810 ;;
16811
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016813 version_type=linux
16814 need_version=no
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16818 shlibpath_var=LD_LIBRARY_PATH
16819 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16820 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16821 # the default ld.so.conf also contains /usr/contrib/lib and
16822 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16823 # libtool to hard-code these into programs
16824 ;;
16825
16826cygwin* | mingw* | pw32*)
16827 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016829 need_version=no
16830 need_lib_prefix=no
16831
16832 case $GCC,$host_os in
16833 yes,cygwin* | yes,mingw* | yes,pw32*)
16834 library_names_spec='$libname.dll.a'
16835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016836 postinstall_cmds='base_file=`basename \${file}`~
16837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16838 dldir=$destdir/`dirname \$dlpath`~
16839 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016840 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16842 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016843 $rm \$dlpath'
16844 shlibpath_overrides_runpath=yes
16845
16846 case $host_os in
16847 cygwin*)
16848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16849 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 +000016850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016851 ;;
16852 mingw*)
16853 # MinGW DLLs use traditional 'lib' prefix
16854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16857 # It is most probably a Windows format PATH printed by
16858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16859 # path with ; separators, and with drive letters. We can handle the
16860 # drive letters (cygwin fileutils understands them), so leave them,
16861 # especially as we might pass files found there to a mingw objdump,
16862 # which wouldn't understand a cygwinified path. Ahh.
16863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16864 else
16865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16866 fi
16867 ;;
16868 pw32*)
16869 # pw32 DLLs use 'pw' prefix rather than 'lib'
16870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16871 ;;
16872 esac
16873 ;;
16874
16875 *)
16876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16877 ;;
16878 esac
16879 dynamic_linker='Win32 ld.exe'
16880 # FIXME: first we should search . and the directory the executable is in
16881 shlibpath_var=PATH
16882 ;;
16883
16884darwin* | rhapsody*)
16885 dynamic_linker="$host_os dyld"
16886 version_type=darwin
16887 need_lib_prefix=no
16888 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016890 soname_spec='${libname}${release}${major}$shared_ext'
16891 shlibpath_overrides_runpath=yes
16892 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895 if test "$GCC" = yes; then
16896 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"`
16897 else
16898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016899 fi
16900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16901 ;;
16902
16903dgux*)
16904 version_type=linux
16905 need_lib_prefix=no
16906 need_version=no
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 shlibpath_var=LD_LIBRARY_PATH
16910 ;;
16911
16912freebsd1*)
16913 dynamic_linker=no
16914 ;;
16915
Reid Spencer2706f8c2004-09-19 23:53:36 +000016916kfreebsd*-gnu)
16917 version_type=linux
16918 need_lib_prefix=no
16919 need_version=no
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=no
16924 hardcode_into_libs=yes
16925 dynamic_linker='GNU ld.so'
16926 ;;
16927
John Criswell47fdd832003-07-14 16:52:07 +000016928freebsd*)
16929 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16930 version_type=freebsd-$objformat
16931 case $version_type in
16932 freebsd-elf*)
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16934 need_version=no
16935 need_lib_prefix=no
16936 ;;
16937 freebsd-*)
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16939 need_version=yes
16940 ;;
16941 esac
16942 shlibpath_var=LD_LIBRARY_PATH
16943 case $host_os in
16944 freebsd2*)
16945 shlibpath_overrides_runpath=yes
16946 ;;
16947 freebsd3.01* | freebsdelf3.01*)
16948 shlibpath_overrides_runpath=yes
16949 hardcode_into_libs=yes
16950 ;;
16951 *) # from 3.2 on
16952 shlibpath_overrides_runpath=no
16953 hardcode_into_libs=yes
16954 ;;
16955 esac
16956 ;;
16957
16958gnu*)
16959 version_type=linux
16960 need_lib_prefix=no
16961 need_version=no
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 hardcode_into_libs=yes
16966 ;;
16967
16968hpux9* | hpux10* | hpux11*)
16969 # Give a soname corresponding to the major version so that dld.sl refuses to
16970 # link against other versions.
16971 version_type=sunos
16972 need_lib_prefix=no
16973 need_version=no
16974 case "$host_cpu" in
16975 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016976 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016977 hardcode_into_libs=yes
16978 dynamic_linker="$host_os dld.so"
16979 shlibpath_var=LD_LIBRARY_PATH
16980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 if test "X$HPUX_IA64_MODE" = X32; then
16984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16985 else
16986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16987 fi
16988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16989 ;;
16990 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016991 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016992 hardcode_into_libs=yes
16993 dynamic_linker="$host_os dld.sl"
16994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17000 ;;
17001 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017002 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017003 dynamic_linker="$host_os dld.sl"
17004 shlibpath_var=SHLIB_PATH
17005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 ;;
17009 esac
17010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17011 postinstall_cmds='chmod 555 $lib'
17012 ;;
17013
17014irix5* | irix6* | nonstopux*)
17015 case $host_os in
17016 nonstopux*) version_type=nonstopux ;;
17017 *)
17018 if test "$lt_cv_prog_gnu_ld" = yes; then
17019 version_type=linux
17020 else
17021 version_type=irix
17022 fi ;;
17023 esac
17024 need_lib_prefix=no
17025 need_version=no
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17028 case $host_os in
17029 irix5* | nonstopux*)
17030 libsuff= shlibsuff=
17031 ;;
17032 *)
17033 case $LD in # libtool.m4 will add one of these switches to LD
17034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17035 libsuff= shlibsuff= libmagic=32-bit;;
17036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17037 libsuff=32 shlibsuff=N32 libmagic=N32;;
17038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17040 *) libsuff= shlibsuff= libmagic=never-match;;
17041 esac
17042 ;;
17043 esac
17044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17045 shlibpath_overrides_runpath=no
17046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17048 hardcode_into_libs=yes
17049 ;;
17050
17051# No shared lib support for Linux oldld, aout, or coff.
17052linux*oldld* | linux*aout* | linux*coff*)
17053 dynamic_linker=no
17054 ;;
17055
17056# This must be Linux ELF.
17057linux*)
17058 version_type=linux
17059 need_lib_prefix=no
17060 need_version=no
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=no
17066 # This implies no fast_install, which is unacceptable.
17067 # Some rework will be needed to allow for fast_install
17068 # before this can be enabled.
17069 hardcode_into_libs=yes
17070
Reid Spencer2706f8c2004-09-19 23:53:36 +000017071 # Append ld.so.conf contents to the search path
17072 if test -f /etc/ld.so.conf; then
17073 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17075 fi
17076
John Criswell47fdd832003-07-14 16:52:07 +000017077 # We used to test for /lib/ld.so.1 and disable shared libraries on
17078 # powerpc, because MkLinux only supported shared libraries with the
17079 # GNU dynamic linker. Since this was broken with cross compilers,
17080 # most powerpc-linux boxes support dynamic linking these days and
17081 # people can always --disable-shared, the test was removed, and we
17082 # assume the GNU/Linux dynamic linker is in use.
17083 dynamic_linker='GNU/Linux ld.so'
17084 ;;
17085
Reid Spencer2706f8c2004-09-19 23:53:36 +000017086knetbsd*-gnu)
17087 version_type=linux
17088 need_lib_prefix=no
17089 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17093 shlibpath_overrides_runpath=no
17094 hardcode_into_libs=yes
17095 dynamic_linker='GNU ld.so'
17096 ;;
17097
John Criswell47fdd832003-07-14 16:52:07 +000017098netbsd*)
17099 version_type=sunos
17100 need_lib_prefix=no
17101 need_version=no
17102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17105 dynamic_linker='NetBSD (a.out) ld.so'
17106 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017108 soname_spec='${libname}${release}${shared_ext}$major'
17109 dynamic_linker='NetBSD ld.elf_so'
17110 fi
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=yes
17113 hardcode_into_libs=yes
17114 ;;
17115
17116newsos6)
17117 version_type=linux
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 ;;
17122
Reid Spencer2706f8c2004-09-19 23:53:36 +000017123nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017124 version_type=linux
17125 need_lib_prefix=no
17126 need_version=no
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes
17131 ;;
17132
17133openbsd*)
17134 version_type=sunos
17135 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017136 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17141 case $host_os in
17142 openbsd2.[89] | openbsd2.[89].*)
17143 shlibpath_overrides_runpath=no
17144 ;;
17145 *)
17146 shlibpath_overrides_runpath=yes
17147 ;;
17148 esac
17149 else
17150 shlibpath_overrides_runpath=yes
17151 fi
17152 ;;
17153
17154os2*)
17155 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017156 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017157 need_lib_prefix=no
17158 library_names_spec='$libname${shared_ext} $libname.a'
17159 dynamic_linker='OS/2 ld.exe'
17160 shlibpath_var=LIBPATH
17161 ;;
17162
17163osf3* | osf4* | osf5*)
17164 version_type=osf
17165 need_lib_prefix=no
17166 need_version=no
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17172 ;;
17173
17174sco3.2v5*)
17175 version_type=osf
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 ;;
17180
17181solaris*)
17182 version_type=linux
17183 need_lib_prefix=no
17184 need_version=no
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=yes
17189 hardcode_into_libs=yes
17190 # ldd complains unless libraries are executable
17191 postinstall_cmds='chmod +x $lib'
17192 ;;
17193
17194sunos4*)
17195 version_type=sunos
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17200 if test "$with_gnu_ld" = yes; then
17201 need_lib_prefix=no
17202 fi
17203 need_version=yes
17204 ;;
17205
17206sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17207 version_type=linux
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 case $host_vendor in
17212 sni)
17213 shlibpath_overrides_runpath=no
17214 need_lib_prefix=no
17215 export_dynamic_flag_spec='${wl}-Blargedynsym'
17216 runpath_var=LD_RUN_PATH
17217 ;;
17218 siemens)
17219 need_lib_prefix=no
17220 ;;
17221 motorola)
17222 need_lib_prefix=no
17223 need_version=no
17224 shlibpath_overrides_runpath=no
17225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17226 ;;
17227 esac
17228 ;;
17229
17230sysv4*MP*)
17231 if test -d /usr/nec ;then
17232 version_type=linux
17233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17234 soname_spec='$libname${shared_ext}.$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 fi
17237 ;;
17238
17239uts4*)
17240 version_type=linux
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 ;;
17245
17246*)
17247 dynamic_linker=no
17248 ;;
17249esac
17250echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17251echo "${ECHO_T}$dynamic_linker" >&6
17252test "$dynamic_linker" = no && can_build_shared=no
17253
Reid Spencer2706f8c2004-09-19 23:53:36 +000017254echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17256hardcode_action_CXX=
17257if test -n "$hardcode_libdir_flag_spec_CXX" || \
17258 test -n "$runpath_var_CXX" || \
17259 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17260
17261 # We can hardcode non-existant directories.
17262 if test "$hardcode_direct_CXX" != no &&
17263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17264 # have to relink, otherwise we might link with an installed library
17265 # when we should be linking with a yet-to-be-installed one
17266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17267 test "$hardcode_minus_L_CXX" != no; then
17268 # Linking always hardcodes the temporary library directory.
17269 hardcode_action_CXX=relink
17270 else
17271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17272 hardcode_action_CXX=immediate
17273 fi
17274else
17275 # We cannot hardcode anything, or else we can only hardcode existing
17276 # directories.
17277 hardcode_action_CXX=unsupported
17278fi
17279echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17280echo "${ECHO_T}$hardcode_action_CXX" >&6
17281
17282if test "$hardcode_action_CXX" = relink; then
17283 # Fast installation is not supported
17284 enable_fast_install=no
17285elif test "$shlibpath_overrides_runpath" = yes ||
17286 test "$enable_shared" = no; then
17287 # Fast installation is not necessary
17288 enable_fast_install=needless
17289fi
17290
17291striplib=
17292old_striplib=
17293echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17294echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17295if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17298 echo "$as_me:$LINENO: result: yes" >&5
17299echo "${ECHO_T}yes" >&6
17300else
17301# FIXME - insert some real tests, host_os isn't really good enough
17302 case $host_os in
17303 darwin*)
17304 if test -n "$STRIP" ; then
17305 striplib="$STRIP -x"
17306 echo "$as_me:$LINENO: result: yes" >&5
17307echo "${ECHO_T}yes" >&6
17308 else
17309 echo "$as_me:$LINENO: result: no" >&5
17310echo "${ECHO_T}no" >&6
17311fi
17312 ;;
17313 *)
17314 echo "$as_me:$LINENO: result: no" >&5
17315echo "${ECHO_T}no" >&6
17316 ;;
17317 esac
17318fi
17319
John Criswell47fdd832003-07-14 16:52:07 +000017320if test "x$enable_dlopen" != xyes; then
17321 enable_dlopen=unknown
17322 enable_dlopen_self=unknown
17323 enable_dlopen_self_static=unknown
17324else
17325 lt_cv_dlopen=no
17326 lt_cv_dlopen_libs=
17327
17328 case $host_os in
17329 beos*)
17330 lt_cv_dlopen="load_add_on"
17331 lt_cv_dlopen_libs=
17332 lt_cv_dlopen_self=yes
17333 ;;
17334
17335 mingw* | pw32*)
17336 lt_cv_dlopen="LoadLibrary"
17337 lt_cv_dlopen_libs=
17338 ;;
17339
17340 cygwin*)
17341 lt_cv_dlopen="dlopen"
17342 lt_cv_dlopen_libs=
17343 ;;
17344
17345 darwin*)
17346 # if libdl is installed we need to link against it
17347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351else
17352 ac_check_lib_save_LIBS=$LIBS
17353LIBS="-ldl $LIBS"
17354cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017355/* confdefs.h. */
17356_ACEOF
17357cat confdefs.h >>conftest.$ac_ext
17358cat >>conftest.$ac_ext <<_ACEOF
17359/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017360
17361/* Override any gcc2 internal prototype to avoid an error. */
17362#ifdef __cplusplus
17363extern "C"
17364#endif
17365/* We use char because int might match the return type of a gcc2
17366 builtin and then its argument prototype would still apply. */
17367char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017368int
17369main ()
17370{
17371dlopen ();
17372 ;
17373 return 0;
17374}
17375_ACEOF
17376rm -f conftest.$ac_objext conftest$ac_exeext
17377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017378 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017385 { ac_try='test -z "$ac_cxx_werror_flag"
17386 || test ! -s conftest.err'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17398 ac_cv_lib_dl_dlopen=yes
17399else
17400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017401sed 's/^/| /' conftest.$ac_ext >&5
17402
John Criswell47fdd832003-07-14 16:52:07 +000017403ac_cv_lib_dl_dlopen=no
17404fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017405rm -f conftest.err conftest.$ac_objext \
17406 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017407LIBS=$ac_check_lib_save_LIBS
17408fi
17409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17411if test $ac_cv_lib_dl_dlopen = yes; then
17412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17413else
17414
17415 lt_cv_dlopen="dyld"
17416 lt_cv_dlopen_libs=
17417 lt_cv_dlopen_self=yes
17418
17419fi
17420
17421 ;;
17422
17423 *)
17424 echo "$as_me:$LINENO: checking for shl_load" >&5
17425echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17426if test "${ac_cv_func_shl_load+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017430/* confdefs.h. */
17431_ACEOF
17432cat confdefs.h >>conftest.$ac_ext
17433cat >>conftest.$ac_ext <<_ACEOF
17434/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017435/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437#define shl_load innocuous_shl_load
17438
John Criswell47fdd832003-07-14 16:52:07 +000017439/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017440 which can conflict with char shl_load (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017443
John Criswell0c38eaf2003-09-10 15:17:25 +000017444#ifdef __STDC__
17445# include <limits.h>
17446#else
17447# include <assert.h>
17448#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017449
17450#undef shl_load
17451
John Criswell47fdd832003-07-14 16:52:07 +000017452/* Override any gcc2 internal prototype to avoid an error. */
17453#ifdef __cplusplus
17454extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017455{
John Criswell47fdd832003-07-14 16:52:07 +000017456#endif
17457/* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17459char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017460/* The GNU C library defines this for functions which it implements
17461 to always fail with ENOSYS. Some functions are actually named
17462 something starting with __ and the normal name is an alias. */
17463#if defined (__stub_shl_load) || defined (__stub___shl_load)
17464choke me
17465#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017466char (*f) () = shl_load;
17467#endif
17468#ifdef __cplusplus
17469}
John Criswell47fdd832003-07-14 16:52:07 +000017470#endif
17471
John Criswell0c38eaf2003-09-10 15:17:25 +000017472int
17473main ()
17474{
17475return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext conftest$ac_exeext
17481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017482 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489 { ac_try='test -z "$ac_cxx_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_func_shl_load=yes
17503else
17504 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017505sed 's/^/| /' conftest.$ac_ext >&5
17506
John Criswell47fdd832003-07-14 16:52:07 +000017507ac_cv_func_shl_load=no
17508fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017509rm -f conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017511fi
17512echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17513echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17514if test $ac_cv_func_shl_load = yes; then
17515 lt_cv_dlopen="shl_load"
17516else
17517 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17518echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17519if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521else
17522 ac_check_lib_save_LIBS=$LIBS
17523LIBS="-ldld $LIBS"
17524cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017530
17531/* Override any gcc2 internal prototype to avoid an error. */
17532#ifdef __cplusplus
17533extern "C"
17534#endif
17535/* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17537char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017538int
17539main ()
17540{
17541shl_load ();
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext conftest$ac_exeext
17547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017549 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017555 { ac_try='test -z "$ac_cxx_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 ac_cv_lib_dld_shl_load=yes
17569else
17570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017571sed 's/^/| /' conftest.$ac_ext >&5
17572
John Criswell47fdd832003-07-14 16:52:07 +000017573ac_cv_lib_dld_shl_load=no
17574fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017575rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017577LIBS=$ac_check_lib_save_LIBS
17578fi
17579echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17580echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17581if test $ac_cv_lib_dld_shl_load = yes; then
17582 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17583else
17584 echo "$as_me:$LINENO: checking for dlopen" >&5
17585echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17586if test "${ac_cv_func_dlopen+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17588else
17589 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017590/* confdefs.h. */
17591_ACEOF
17592cat confdefs.h >>conftest.$ac_ext
17593cat >>conftest.$ac_ext <<_ACEOF
17594/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017595/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17597#define dlopen innocuous_dlopen
17598
John Criswell47fdd832003-07-14 16:52:07 +000017599/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017600 which can conflict with char dlopen (); below.
17601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17602 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017603
John Criswell0c38eaf2003-09-10 15:17:25 +000017604#ifdef __STDC__
17605# include <limits.h>
17606#else
17607# include <assert.h>
17608#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017609
17610#undef dlopen
17611
John Criswell47fdd832003-07-14 16:52:07 +000017612/* Override any gcc2 internal prototype to avoid an error. */
17613#ifdef __cplusplus
17614extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017615{
John Criswell47fdd832003-07-14 16:52:07 +000017616#endif
17617/* We use char because int might match the return type of a gcc2
17618 builtin and then its argument prototype would still apply. */
17619char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017620/* The GNU C library defines this for functions which it implements
17621 to always fail with ENOSYS. Some functions are actually named
17622 something starting with __ and the normal name is an alias. */
17623#if defined (__stub_dlopen) || defined (__stub___dlopen)
17624choke me
17625#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017626char (*f) () = dlopen;
17627#endif
17628#ifdef __cplusplus
17629}
John Criswell47fdd832003-07-14 16:52:07 +000017630#endif
17631
John Criswell0c38eaf2003-09-10 15:17:25 +000017632int
17633main ()
17634{
17635return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017636 ;
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_func_dlopen=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_func_dlopen=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 +000017671fi
17672echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17673echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17674if test $ac_cv_func_dlopen = yes; then
17675 lt_cv_dlopen="dlopen"
17676else
17677 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17678echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17679if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 ac_check_lib_save_LIBS=$LIBS
17683LIBS="-ldl $LIBS"
17684cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017685/* confdefs.h. */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017690
17691/* Override any gcc2 internal prototype to avoid an error. */
17692#ifdef __cplusplus
17693extern "C"
17694#endif
17695/* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017698int
17699main ()
17700{
17701dlopen ();
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext conftest$ac_exeext
17707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017708 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017715 { ac_try='test -z "$ac_cxx_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_lib_dl_dlopen=yes
17729else
17730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017731sed 's/^/| /' conftest.$ac_ext >&5
17732
John Criswell47fdd832003-07-14 16:52:07 +000017733ac_cv_lib_dl_dlopen=no
17734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017735rm -f conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017737LIBS=$ac_check_lib_save_LIBS
17738fi
17739echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17740echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17741if test $ac_cv_lib_dl_dlopen = yes; then
17742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17743else
17744 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17745echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17746if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17748else
17749 ac_check_lib_save_LIBS=$LIBS
17750LIBS="-lsvld $LIBS"
17751cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017752/* confdefs.h. */
17753_ACEOF
17754cat confdefs.h >>conftest.$ac_ext
17755cat >>conftest.$ac_ext <<_ACEOF
17756/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017757
17758/* Override any gcc2 internal prototype to avoid an error. */
17759#ifdef __cplusplus
17760extern "C"
17761#endif
17762/* We use char because int might match the return type of a gcc2
17763 builtin and then its argument prototype would still apply. */
17764char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017765int
17766main ()
17767{
17768dlopen ();
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext conftest$ac_exeext
17774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017776 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017782 { ac_try='test -z "$ac_cxx_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_lib_svld_dlopen=yes
17796else
17797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017798sed 's/^/| /' conftest.$ac_ext >&5
17799
John Criswell47fdd832003-07-14 16:52:07 +000017800ac_cv_lib_svld_dlopen=no
17801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017802rm -f conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017804LIBS=$ac_check_lib_save_LIBS
17805fi
17806echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17807echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17808if test $ac_cv_lib_svld_dlopen = yes; then
17809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17810else
17811 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17812echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17813if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 ac_check_lib_save_LIBS=$LIBS
17817LIBS="-ldld $LIBS"
17818cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017824
17825/* Override any gcc2 internal prototype to avoid an error. */
17826#ifdef __cplusplus
17827extern "C"
17828#endif
17829/* We use char because int might match the return type of a gcc2
17830 builtin and then its argument prototype would still apply. */
17831char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017832int
17833main ()
17834{
17835dld_link ();
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext conftest$ac_exeext
17841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017842 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017849 { ac_try='test -z "$ac_cxx_werror_flag"
17850 || test ! -s conftest.err'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_cv_lib_dld_dld_link=yes
17863else
17864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017865sed 's/^/| /' conftest.$ac_ext >&5
17866
John Criswell47fdd832003-07-14 16:52:07 +000017867ac_cv_lib_dld_dld_link=no
17868fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017869rm -f conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017871LIBS=$ac_check_lib_save_LIBS
17872fi
17873echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17874echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17875if test $ac_cv_lib_dld_dld_link = yes; then
17876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17877fi
17878
17879
17880fi
17881
17882
17883fi
17884
17885
17886fi
17887
17888
17889fi
17890
17891
17892fi
17893
17894 ;;
17895 esac
17896
17897 if test "x$lt_cv_dlopen" != xno; then
17898 enable_dlopen=yes
17899 else
17900 enable_dlopen=no
17901 fi
17902
17903 case $lt_cv_dlopen in
17904 dlopen)
17905 save_CPPFLAGS="$CPPFLAGS"
17906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17907
17908 save_LDFLAGS="$LDFLAGS"
17909 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910
17911 save_LIBS="$LIBS"
17912 LIBS="$lt_cv_dlopen_libs $LIBS"
17913
17914 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17915echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17916if test "${lt_cv_dlopen_self+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17918else
17919 if test "$cross_compiling" = yes; then :
17920 lt_cv_dlopen_self=cross
17921else
17922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17923 lt_status=$lt_dlunknown
17924 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +000017925#line 17925 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017926#include "confdefs.h"
17927
17928#if HAVE_DLFCN_H
17929#include <dlfcn.h>
17930#endif
17931
17932#include <stdio.h>
17933
17934#ifdef RTLD_GLOBAL
17935# define LT_DLGLOBAL RTLD_GLOBAL
17936#else
17937# ifdef DL_GLOBAL
17938# define LT_DLGLOBAL DL_GLOBAL
17939# else
17940# define LT_DLGLOBAL 0
17941# endif
17942#endif
17943
17944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17945 find out it does not work in some platform. */
17946#ifndef LT_DLLAZY_OR_NOW
17947# ifdef RTLD_LAZY
17948# define LT_DLLAZY_OR_NOW RTLD_LAZY
17949# else
17950# ifdef DL_LAZY
17951# define LT_DLLAZY_OR_NOW DL_LAZY
17952# else
17953# ifdef RTLD_NOW
17954# define LT_DLLAZY_OR_NOW RTLD_NOW
17955# else
17956# ifdef DL_NOW
17957# define LT_DLLAZY_OR_NOW DL_NOW
17958# else
17959# define LT_DLLAZY_OR_NOW 0
17960# endif
17961# endif
17962# endif
17963# endif
17964#endif
17965
17966#ifdef __cplusplus
17967extern "C" void exit (int);
17968#endif
17969
17970void fnord() { int i=42;}
17971int main ()
17972{
17973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17974 int status = $lt_dlunknown;
17975
17976 if (self)
17977 {
17978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17980 /* dlclose (self); */
17981 }
17982
17983 exit (status);
17984}
17985EOF
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17991 (./conftest; exit; ) 2>/dev/null
17992 lt_status=$?
17993 case x$lt_status in
17994 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17995 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17996 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17997 esac
17998 else :
17999 # compilation failed
18000 lt_cv_dlopen_self=no
18001 fi
18002fi
18003rm -fr conftest*
18004
18005
18006fi
18007echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18008echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18009
18010 if test "x$lt_cv_dlopen_self" = xyes; then
18011 LDFLAGS="$LDFLAGS $link_static_flag"
18012 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18013echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18014if test "${lt_cv_dlopen_self_static+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18016else
18017 if test "$cross_compiling" = yes; then :
18018 lt_cv_dlopen_self_static=cross
18019else
18020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021 lt_status=$lt_dlunknown
18022 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +000018023#line 18023 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018024#include "confdefs.h"
18025
18026#if HAVE_DLFCN_H
18027#include <dlfcn.h>
18028#endif
18029
18030#include <stdio.h>
18031
18032#ifdef RTLD_GLOBAL
18033# define LT_DLGLOBAL RTLD_GLOBAL
18034#else
18035# ifdef DL_GLOBAL
18036# define LT_DLGLOBAL DL_GLOBAL
18037# else
18038# define LT_DLGLOBAL 0
18039# endif
18040#endif
18041
18042/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043 find out it does not work in some platform. */
18044#ifndef LT_DLLAZY_OR_NOW
18045# ifdef RTLD_LAZY
18046# define LT_DLLAZY_OR_NOW RTLD_LAZY
18047# else
18048# ifdef DL_LAZY
18049# define LT_DLLAZY_OR_NOW DL_LAZY
18050# else
18051# ifdef RTLD_NOW
18052# define LT_DLLAZY_OR_NOW RTLD_NOW
18053# else
18054# ifdef DL_NOW
18055# define LT_DLLAZY_OR_NOW DL_NOW
18056# else
18057# define LT_DLLAZY_OR_NOW 0
18058# endif
18059# endif
18060# endif
18061# endif
18062#endif
18063
18064#ifdef __cplusplus
18065extern "C" void exit (int);
18066#endif
18067
18068void fnord() { int i=42;}
18069int main ()
18070{
18071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072 int status = $lt_dlunknown;
18073
18074 if (self)
18075 {
18076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18077 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078 /* dlclose (self); */
18079 }
18080
18081 exit (status);
18082}
18083EOF
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085 (eval $ac_link) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089 (./conftest; exit; ) 2>/dev/null
18090 lt_status=$?
18091 case x$lt_status in
18092 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18093 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18094 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18095 esac
18096 else :
18097 # compilation failed
18098 lt_cv_dlopen_self_static=no
18099 fi
18100fi
18101rm -fr conftest*
18102
18103
18104fi
18105echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18106echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18107 fi
18108
18109 CPPFLAGS="$save_CPPFLAGS"
18110 LDFLAGS="$save_LDFLAGS"
18111 LIBS="$save_LIBS"
18112 ;;
18113 esac
18114
18115 case $lt_cv_dlopen_self in
18116 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18117 *) enable_dlopen_self=unknown ;;
18118 esac
18119
18120 case $lt_cv_dlopen_self_static in
18121 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18122 *) enable_dlopen_self_static=unknown ;;
18123 esac
18124fi
18125
18126
18127# The else clause should only fire when bootstrapping the
18128# libtool distribution, otherwise you forgot to ship ltmain.sh
18129# with your package, and you will get complaints that there are
18130# no rules to generate ltmain.sh.
18131if test -f "$ltmain"; then
18132 # See if we are running on zsh, and set the options which allow our commands through
18133 # without removal of \ escapes.
18134 if test -n "${ZSH_VERSION+set}" ; then
18135 setopt NO_GLOB_SUBST
18136 fi
18137 # Now quote all the things that may contain metacharacters while being
18138 # careful not to overquote the AC_SUBSTed values. We take copies of the
18139 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018140 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18141 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018142 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18143 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18144 deplibs_check_method reload_flag reload_cmds need_locks \
18145 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18146 lt_cv_sys_global_symbol_to_c_name_address \
18147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18148 old_postinstall_cmds old_postuninstall_cmds \
18149 compiler_CXX \
18150 CC_CXX \
18151 LD_CXX \
18152 lt_prog_compiler_wl_CXX \
18153 lt_prog_compiler_pic_CXX \
18154 lt_prog_compiler_static_CXX \
18155 lt_prog_compiler_no_builtin_flag_CXX \
18156 export_dynamic_flag_spec_CXX \
18157 thread_safe_flag_spec_CXX \
18158 whole_archive_flag_spec_CXX \
18159 enable_shared_with_static_runtimes_CXX \
18160 old_archive_cmds_CXX \
18161 old_archive_from_new_cmds_CXX \
18162 predep_objects_CXX \
18163 postdep_objects_CXX \
18164 predeps_CXX \
18165 postdeps_CXX \
18166 compiler_lib_search_path_CXX \
18167 archive_cmds_CXX \
18168 archive_expsym_cmds_CXX \
18169 postinstall_cmds_CXX \
18170 postuninstall_cmds_CXX \
18171 old_archive_from_expsyms_cmds_CXX \
18172 allow_undefined_flag_CXX \
18173 no_undefined_flag_CXX \
18174 export_symbols_cmds_CXX \
18175 hardcode_libdir_flag_spec_CXX \
18176 hardcode_libdir_flag_spec_ld_CXX \
18177 hardcode_libdir_separator_CXX \
18178 hardcode_automatic_CXX \
18179 module_cmds_CXX \
18180 module_expsym_cmds_CXX \
18181 lt_cv_prog_compiler_c_o_CXX \
18182 exclude_expsyms_CXX \
18183 include_expsyms_CXX; do
18184
18185 case $var in
18186 old_archive_cmds_CXX | \
18187 old_archive_from_new_cmds_CXX | \
18188 archive_cmds_CXX | \
18189 archive_expsym_cmds_CXX | \
18190 module_cmds_CXX | \
18191 module_expsym_cmds_CXX | \
18192 old_archive_from_expsyms_cmds_CXX | \
18193 export_symbols_cmds_CXX | \
18194 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18195 postinstall_cmds | postuninstall_cmds | \
18196 old_postinstall_cmds | old_postuninstall_cmds | \
18197 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18198 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018199 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 +000018200 ;;
18201 *)
18202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18203 ;;
18204 esac
18205 done
18206
18207 case $lt_echo in
18208 *'\$0 --fallback-echo"')
18209 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18210 ;;
18211 esac
18212
18213cfgfile="$ofile"
18214
18215 cat <<__EOF__ >> "$cfgfile"
18216# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18217
18218# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18219
18220# Shell to use when invoking shell scripts.
18221SHELL=$lt_SHELL
18222
18223# Whether or not to build shared libraries.
18224build_libtool_libs=$enable_shared
18225
18226# Whether or not to build static libraries.
18227build_old_libs=$enable_static
18228
18229# Whether or not to add -lc for building shared libraries.
18230build_libtool_need_lc=$archive_cmds_need_lc_CXX
18231
18232# Whether or not to disallow shared libs when runtime libs are static
18233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18234
18235# Whether or not to optimize for fast installation.
18236fast_install=$enable_fast_install
18237
18238# The host system.
18239host_alias=$host_alias
18240host=$host
18241
18242# An echo program that does not interpret backslashes.
18243echo=$lt_echo
18244
18245# The archiver.
18246AR=$lt_AR
18247AR_FLAGS=$lt_AR_FLAGS
18248
18249# A C compiler.
18250LTCC=$lt_LTCC
18251
18252# A language-specific compiler.
18253CC=$lt_compiler_CXX
18254
18255# Is the compiler the GNU C compiler?
18256with_gcc=$GCC_CXX
18257
18258# An ERE matcher.
18259EGREP=$lt_EGREP
18260
18261# The linker used to build libraries.
18262LD=$lt_LD_CXX
18263
18264# Whether we need hard or soft links.
18265LN_S=$lt_LN_S
18266
18267# A BSD-compatible nm program.
18268NM=$lt_NM
18269
18270# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018271STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018272
18273# Used to examine libraries when file_magic_cmd begins "file"
18274MAGIC_CMD=$MAGIC_CMD
18275
18276# Used on cygwin: DLL creation program.
18277DLLTOOL="$DLLTOOL"
18278
18279# Used on cygwin: object dumper.
18280OBJDUMP="$OBJDUMP"
18281
18282# Used on cygwin: assembler.
18283AS="$AS"
18284
18285# The name of the directory that contains temporary libtool files.
18286objdir=$objdir
18287
18288# How to create reloadable object files.
18289reload_flag=$lt_reload_flag
18290reload_cmds=$lt_reload_cmds
18291
18292# How to pass a linker flag through the compiler.
18293wl=$lt_lt_prog_compiler_wl_CXX
18294
18295# Object file suffix (normally "o").
18296objext="$ac_objext"
18297
18298# Old archive suffix (normally "a").
18299libext="$libext"
18300
18301# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018302shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018303
18304# Executable file suffix (normally "").
18305exeext="$exeext"
18306
18307# Additional compiler flags for building library objects.
18308pic_flag=$lt_lt_prog_compiler_pic_CXX
18309pic_mode=$pic_mode
18310
18311# What is the maximum length of a command?
18312max_cmd_len=$lt_cv_sys_max_cmd_len
18313
18314# Does compiler simultaneously support -c and -o options?
18315compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18316
18317# Must we lock files when doing compilation ?
18318need_locks=$lt_need_locks
18319
18320# Do we need the lib prefix for modules?
18321need_lib_prefix=$need_lib_prefix
18322
18323# Do we need a version for libraries?
18324need_version=$need_version
18325
18326# Whether dlopen is supported.
18327dlopen_support=$enable_dlopen
18328
18329# Whether dlopen of programs is supported.
18330dlopen_self=$enable_dlopen_self
18331
18332# Whether dlopen of statically linked programs is supported.
18333dlopen_self_static=$enable_dlopen_self_static
18334
18335# Compiler flag to prevent dynamic linking.
18336link_static_flag=$lt_lt_prog_compiler_static_CXX
18337
18338# Compiler flag to turn off builtin functions.
18339no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18340
18341# Compiler flag to allow reflexive dlopens.
18342export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18343
18344# Compiler flag to generate shared objects directly from archives.
18345whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18346
18347# Compiler flag to generate thread-safe objects.
18348thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18349
18350# Library versioning type.
18351version_type=$version_type
18352
18353# Format of library name prefix.
18354libname_spec=$lt_libname_spec
18355
18356# List of archive names. First name is the real one, the rest are links.
18357# The last name is the one that the linker finds with -lNAME.
18358library_names_spec=$lt_library_names_spec
18359
18360# The coded name of the library, if different from the real name.
18361soname_spec=$lt_soname_spec
18362
18363# Commands used to build and install an old-style archive.
18364RANLIB=$lt_RANLIB
18365old_archive_cmds=$lt_old_archive_cmds_CXX
18366old_postinstall_cmds=$lt_old_postinstall_cmds
18367old_postuninstall_cmds=$lt_old_postuninstall_cmds
18368
18369# Create an old-style archive from a shared archive.
18370old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18371
18372# Create a temporary old-style archive to link instead of a shared archive.
18373old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18374
18375# Commands used to build and install a shared archive.
18376archive_cmds=$lt_archive_cmds_CXX
18377archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18378postinstall_cmds=$lt_postinstall_cmds
18379postuninstall_cmds=$lt_postuninstall_cmds
18380
18381# Commands used to build a loadable module (assumed same as above if empty)
18382module_cmds=$lt_module_cmds_CXX
18383module_expsym_cmds=$lt_module_expsym_cmds_CXX
18384
18385# Commands to strip libraries.
18386old_striplib=$lt_old_striplib
18387striplib=$lt_striplib
18388
18389# Dependencies to place before the objects being linked to create a
18390# shared library.
18391predep_objects=$lt_predep_objects_CXX
18392
18393# Dependencies to place after the objects being linked to create a
18394# shared library.
18395postdep_objects=$lt_postdep_objects_CXX
18396
18397# Dependencies to place before the objects being linked to create a
18398# shared library.
18399predeps=$lt_predeps_CXX
18400
18401# Dependencies to place after the objects being linked to create a
18402# shared library.
18403postdeps=$lt_postdeps_CXX
18404
18405# The library search path used internally by the compiler when linking
18406# a shared library.
18407compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18408
18409# Method to check whether dependent libraries are shared objects.
18410deplibs_check_method=$lt_deplibs_check_method
18411
18412# Command to use when deplibs_check_method == file_magic.
18413file_magic_cmd=$lt_file_magic_cmd
18414
18415# Flag that allows shared libraries with undefined symbols to be built.
18416allow_undefined_flag=$lt_allow_undefined_flag_CXX
18417
18418# Flag that forces no undefined symbols.
18419no_undefined_flag=$lt_no_undefined_flag_CXX
18420
18421# Commands used to finish a libtool library installation in a directory.
18422finish_cmds=$lt_finish_cmds
18423
18424# Same as above, but a single script fragment to be evaled but not shown.
18425finish_eval=$lt_finish_eval
18426
18427# Take the output of nm and produce a listing of raw symbols and C names.
18428global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18429
18430# Transform the output of nm in a proper C declaration
18431global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18432
18433# Transform the output of nm in a C name address pair
18434global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18435
18436# This is the shared library runtime path variable.
18437runpath_var=$runpath_var
18438
18439# This is the shared library path variable.
18440shlibpath_var=$shlibpath_var
18441
18442# Is shlibpath searched before the hard-coded library search path?
18443shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18444
18445# How to hardcode a shared library path into an executable.
18446hardcode_action=$hardcode_action_CXX
18447
18448# Whether we should hardcode library paths into libraries.
18449hardcode_into_libs=$hardcode_into_libs
18450
18451# Flag to hardcode \$libdir into a binary during linking.
18452# This must work even if \$libdir does not exist.
18453hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18454
18455# If ld is used when linking, flag to hardcode \$libdir into
18456# a binary during linking. This must work even if \$libdir does
18457# not exist.
18458hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18459
18460# Whether we need a single -rpath flag with a separated argument.
18461hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18462
18463# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18464# resulting binary.
18465hardcode_direct=$hardcode_direct_CXX
18466
18467# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18468# resulting binary.
18469hardcode_minus_L=$hardcode_minus_L_CXX
18470
18471# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18472# the resulting binary.
18473hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18474
18475# Set to yes if building a shared library automatically hardcodes DIR into the library
18476# and all subsequent libraries and executables linked against it.
18477hardcode_automatic=$hardcode_automatic_CXX
18478
18479# Variables whose values should be saved in libtool wrapper scripts and
18480# restored at relink time.
18481variables_saved_for_relink="$variables_saved_for_relink"
18482
18483# Whether libtool must link a program against all its dependency libraries.
18484link_all_deplibs=$link_all_deplibs_CXX
18485
18486# Compile-time system search path for libraries
18487sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18488
18489# Run-time system search path for libraries
18490sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18491
18492# Fix the shell variable \$srcfile for the compiler.
18493fix_srcfile_path="$fix_srcfile_path_CXX"
18494
18495# Set to yes if exported symbols are required.
18496always_export_symbols=$always_export_symbols_CXX
18497
18498# The commands to list exported symbols.
18499export_symbols_cmds=$lt_export_symbols_cmds_CXX
18500
18501# The commands to extract the exported symbol list from a shared archive.
18502extract_expsyms_cmds=$lt_extract_expsyms_cmds
18503
18504# Symbols that should not be listed in the preloaded symbols.
18505exclude_expsyms=$lt_exclude_expsyms_CXX
18506
18507# Symbols that must always be exported.
18508include_expsyms=$lt_include_expsyms_CXX
18509
18510# ### END LIBTOOL TAG CONFIG: $tagname
18511
18512__EOF__
18513
18514
18515else
18516 # If there is no Makefile yet, we rely on a make rule to execute
18517 # `config.status --recheck' to rerun these tests and create the
18518 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018519 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18520 if test -f "$ltmain_in"; then
18521 test -f Makefile && make "$ltmain"
18522 fi
John Criswell47fdd832003-07-14 16:52:07 +000018523fi
18524
18525
18526ac_ext=c
18527ac_cpp='$CPP $CPPFLAGS'
18528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530ac_compiler_gnu=$ac_cv_c_compiler_gnu
18531
18532CC=$lt_save_CC
18533LDCXX=$LD
18534LD=$lt_save_LD
18535GCC=$lt_save_GCC
18536with_gnu_ldcxx=$with_gnu_ld
18537with_gnu_ld=$lt_save_with_gnu_ld
18538lt_cv_path_LDCXX=$lt_cv_path_LD
18539lt_cv_path_LD=$lt_save_path_LD
18540lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18541lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18542
18543 else
18544 tagname=""
18545 fi
18546 ;;
18547
18548 F77)
18549 if test -n "$F77" && test "X$F77" != "Xno"; then
18550
18551ac_ext=f
18552ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18553ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18555
18556
18557archive_cmds_need_lc_F77=no
18558allow_undefined_flag_F77=
18559always_export_symbols_F77=no
18560archive_expsym_cmds_F77=
18561export_dynamic_flag_spec_F77=
18562hardcode_direct_F77=no
18563hardcode_libdir_flag_spec_F77=
18564hardcode_libdir_flag_spec_ld_F77=
18565hardcode_libdir_separator_F77=
18566hardcode_minus_L_F77=no
18567hardcode_automatic_F77=no
18568module_cmds_F77=
18569module_expsym_cmds_F77=
18570link_all_deplibs_F77=unknown
18571old_archive_cmds_F77=$old_archive_cmds
18572no_undefined_flag_F77=
18573whole_archive_flag_spec_F77=
18574enable_shared_with_static_runtimes_F77=no
18575
18576# Source file extension for f77 test sources.
18577ac_ext=f
18578
18579# Object file extension for compiled f77 test sources.
18580objext=o
18581objext_F77=$objext
18582
18583# Code to be used in simple compile tests
18584lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18585
18586# Code to be used in simple link tests
18587lt_simple_link_test_code=" program t\n end\n"
18588
18589# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18590
18591# If no C compiler was specified, use CC.
18592LTCC=${LTCC-"$CC"}
18593
18594# Allow CC to be a program name with arguments.
18595compiler=$CC
18596
18597
18598# Allow CC to be a program name with arguments.
18599lt_save_CC="$CC"
18600CC=${F77-"f77"}
18601compiler=$CC
18602compiler_F77=$CC
18603cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18604
18605echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18606echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18607echo "$as_me:$LINENO: result: $can_build_shared" >&5
18608echo "${ECHO_T}$can_build_shared" >&6
18609
18610echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18611echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18612test "$can_build_shared" = "no" && enable_shared=no
18613
18614# On AIX, shared libraries and static libraries use the same namespace, and
18615# are all built from PIC.
18616case "$host_os" in
18617aix3*)
18618 test "$enable_shared" = yes && enable_static=no
18619 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018620 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018621 postinstall_cmds='$RANLIB $lib'
18622 fi
18623 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018624aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018625 test "$enable_shared" = yes && enable_static=no
18626 ;;
18627esac
18628echo "$as_me:$LINENO: result: $enable_shared" >&5
18629echo "${ECHO_T}$enable_shared" >&6
18630
18631echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18632echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18633# Make sure either enable_shared or enable_static is yes.
18634test "$enable_shared" = yes || enable_static=yes
18635echo "$as_me:$LINENO: result: $enable_static" >&5
18636echo "${ECHO_T}$enable_static" >&6
18637
18638test "$ld_shlibs_F77" = no && can_build_shared=no
18639
18640GCC_F77="$G77"
18641LD_F77="$LD"
18642
18643lt_prog_compiler_wl_F77=
18644lt_prog_compiler_pic_F77=
18645lt_prog_compiler_static_F77=
18646
18647echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18648echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18649
18650 if test "$GCC" = yes; then
18651 lt_prog_compiler_wl_F77='-Wl,'
18652 lt_prog_compiler_static_F77='-static'
18653
18654 case $host_os in
18655 aix*)
18656 # All AIX code is PIC.
18657 if test "$host_cpu" = ia64; then
18658 # AIX 5 now supports IA64 processor
18659 lt_prog_compiler_static_F77='-Bstatic'
18660 fi
18661 ;;
18662
18663 amigaos*)
18664 # FIXME: we need at least 68020 code to build shared libraries, but
18665 # adding the `-m68020' flag to GCC prevents building anything better,
18666 # like `-m68040'.
18667 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18668 ;;
18669
18670 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18671 # PIC is the default for these OSes.
18672 ;;
18673
18674 mingw* | pw32* | os2*)
18675 # This hack is so that the source file can tell whether it is being
18676 # built for inclusion in a dll (and should export symbols for example).
18677 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18678 ;;
18679
18680 darwin* | rhapsody*)
18681 # PIC is the default on this platform
18682 # Common symbols not allowed in MH_DYLIB files
18683 lt_prog_compiler_pic_F77='-fno-common'
18684 ;;
18685
18686 msdosdjgpp*)
18687 # Just because we use GCC doesn't mean we suddenly get shared libraries
18688 # on systems that don't support them.
18689 lt_prog_compiler_can_build_shared_F77=no
18690 enable_shared=no
18691 ;;
18692
18693 sysv4*MP*)
18694 if test -d /usr/nec; then
18695 lt_prog_compiler_pic_F77=-Kconform_pic
18696 fi
18697 ;;
18698
18699 hpux*)
18700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18701 # not for PA HP-UX.
18702 case "$host_cpu" in
18703 hppa*64*|ia64*)
18704 # +Z the default
18705 ;;
18706 *)
18707 lt_prog_compiler_pic_F77='-fPIC'
18708 ;;
18709 esac
18710 ;;
18711
18712 *)
18713 lt_prog_compiler_pic_F77='-fPIC'
18714 ;;
18715 esac
18716 else
18717 # PORTME Check for flag to pass linker flags through the system compiler.
18718 case $host_os in
18719 aix*)
18720 lt_prog_compiler_wl_F77='-Wl,'
18721 if test "$host_cpu" = ia64; then
18722 # AIX 5 now supports IA64 processor
18723 lt_prog_compiler_static_F77='-Bstatic'
18724 else
18725 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18726 fi
18727 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018728 darwin*)
18729 # PIC is the default on this platform
18730 # Common symbols not allowed in MH_DYLIB files
18731 case "$cc_basename" in
18732 xlc*)
18733 lt_prog_compiler_pic_F77='-qnocommon'
18734 lt_prog_compiler_wl_F77='-Wl,'
18735 ;;
18736 esac
18737 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018738
18739 mingw* | pw32* | os2*)
18740 # This hack is so that the source file can tell whether it is being
18741 # built for inclusion in a dll (and should export symbols for example).
18742 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18743 ;;
18744
18745 hpux9* | hpux10* | hpux11*)
18746 lt_prog_compiler_wl_F77='-Wl,'
18747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18748 # not for PA HP-UX.
18749 case "$host_cpu" in
18750 hppa*64*|ia64*)
18751 # +Z the default
18752 ;;
18753 *)
18754 lt_prog_compiler_pic_F77='+Z'
18755 ;;
18756 esac
18757 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18758 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18759 ;;
18760
18761 irix5* | irix6* | nonstopux*)
18762 lt_prog_compiler_wl_F77='-Wl,'
18763 # PIC (with -KPIC) is the default.
18764 lt_prog_compiler_static_F77='-non_shared'
18765 ;;
18766
18767 newsos6)
18768 lt_prog_compiler_pic_F77='-KPIC'
18769 lt_prog_compiler_static_F77='-Bstatic'
18770 ;;
18771
18772 linux*)
18773 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018774 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018775 lt_prog_compiler_wl_F77='-Wl,'
18776 lt_prog_compiler_pic_F77='-KPIC'
18777 lt_prog_compiler_static_F77='-static'
18778 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018779 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018780 lt_prog_compiler_wl_F77='-Wl,'
18781 # All Alpha code is PIC.
18782 lt_prog_compiler_static_F77='-non_shared'
18783 ;;
18784 esac
18785 ;;
18786
18787 osf3* | osf4* | osf5*)
18788 lt_prog_compiler_wl_F77='-Wl,'
18789 # All OSF/1 code is PIC.
18790 lt_prog_compiler_static_F77='-non_shared'
18791 ;;
18792
18793 sco3.2v5*)
18794 lt_prog_compiler_pic_F77='-Kpic'
18795 lt_prog_compiler_static_F77='-dn'
18796 ;;
18797
18798 solaris*)
18799 lt_prog_compiler_wl_F77='-Wl,'
18800 lt_prog_compiler_pic_F77='-KPIC'
18801 lt_prog_compiler_static_F77='-Bstatic'
18802 ;;
18803
18804 sunos4*)
18805 lt_prog_compiler_wl_F77='-Qoption ld '
18806 lt_prog_compiler_pic_F77='-PIC'
18807 lt_prog_compiler_static_F77='-Bstatic'
18808 ;;
18809
18810 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18811 lt_prog_compiler_wl_F77='-Wl,'
18812 lt_prog_compiler_pic_F77='-KPIC'
18813 lt_prog_compiler_static_F77='-Bstatic'
18814 ;;
18815
18816 sysv4*MP*)
18817 if test -d /usr/nec ;then
18818 lt_prog_compiler_pic_F77='-Kconform_pic'
18819 lt_prog_compiler_static_F77='-Bstatic'
18820 fi
18821 ;;
18822
18823 uts4*)
18824 lt_prog_compiler_pic_F77='-pic'
18825 lt_prog_compiler_static_F77='-Bstatic'
18826 ;;
18827
18828 *)
18829 lt_prog_compiler_can_build_shared_F77=no
18830 ;;
18831 esac
18832 fi
18833
18834echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18835echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18836
18837#
18838# Check to make sure the PIC flag actually works.
18839#
18840if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018841
18842echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018843echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18844if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 lt_prog_compiler_pic_works_F77=no
18848 ac_outfile=conftest.$ac_objext
18849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18850 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18851 # Insert the option either (1) after the last *FLAGS variable, or
18852 # (2) before a word containing "conftest.", or (3) at the end.
18853 # Note that $ac_compile itself does not contain backslashes and begins
18854 # with a dollar sign (not a hyphen), so the echo should work correctly.
18855 # The option is referenced via a variable to avoid confusing sed.
18856 lt_compile=`echo "$ac_compile" | $SED \
18857 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18859 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000018860 (eval echo "\"\$as_me:18860: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018861 (eval "$lt_compile" 2>conftest.err)
18862 ac_status=$?
18863 cat conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000018864 echo "$as_me:18864: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018865 if (exit $ac_status) && test -s "$ac_outfile"; then
18866 # The compiler can only warn and ignore the option if not recognized
18867 # So say no if there are warnings
18868 if test ! -s conftest.err; then
18869 lt_prog_compiler_pic_works_F77=yes
18870 fi
18871 fi
18872 $rm conftest*
18873
18874fi
18875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18876echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18877
18878if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18879 case $lt_prog_compiler_pic_F77 in
18880 "" | " "*) ;;
18881 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18882 esac
18883else
18884 lt_prog_compiler_pic_F77=
18885 lt_prog_compiler_can_build_shared_F77=no
18886fi
18887
18888fi
18889case "$host_os" in
18890 # For platforms which do not support PIC, -DPIC is meaningless:
18891 *djgpp*)
18892 lt_prog_compiler_pic_F77=
18893 ;;
18894 *)
18895 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18896 ;;
18897esac
18898
18899echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18900echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18901if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904 lt_cv_prog_compiler_c_o_F77=no
18905 $rm -r conftest 2>/dev/null
18906 mkdir conftest
18907 cd conftest
18908 mkdir out
18909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18910
John Criswell47fdd832003-07-14 16:52:07 +000018911 lt_compiler_flag="-o out/conftest2.$ac_objext"
18912 # Insert the option either (1) after the last *FLAGS variable, or
18913 # (2) before a word containing "conftest.", or (3) at the end.
18914 # Note that $ac_compile itself does not contain backslashes and begins
18915 # with a dollar sign (not a hyphen), so the echo should work correctly.
18916 lt_compile=`echo "$ac_compile" | $SED \
18917 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18919 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000018920 (eval echo "\"\$as_me:18920: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018921 (eval "$lt_compile" 2>out/conftest.err)
18922 ac_status=$?
18923 cat out/conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000018924 echo "$as_me:18924: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18926 then
18927 # The compiler can only warn and ignore the option if not recognized
18928 # So say no if there are warnings
18929 if test ! -s out/conftest.err; then
18930 lt_cv_prog_compiler_c_o_F77=yes
18931 fi
18932 fi
18933 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018934 $rm conftest*
18935 # SGI C++ compiler will create directory out/ii_files/ for
18936 # template instantiation
18937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18938 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018939 cd ..
18940 rmdir conftest
18941 $rm conftest*
18942
18943fi
18944echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18945echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18946
18947
18948hard_links="nottested"
18949if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18950 # do not overwrite the value of need_locks provided by the user
18951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18952echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18953 hard_links=yes
18954 $rm conftest*
18955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18956 touch conftest.a
18957 ln conftest.a conftest.b 2>&5 || hard_links=no
18958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18959 echo "$as_me:$LINENO: result: $hard_links" >&5
18960echo "${ECHO_T}$hard_links" >&6
18961 if test "$hard_links" = no; then
18962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18963echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18964 need_locks=warn
18965 fi
18966else
18967 need_locks=no
18968fi
18969
18970echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18972
18973 runpath_var=
18974 allow_undefined_flag_F77=
18975 enable_shared_with_static_runtimes_F77=no
18976 archive_cmds_F77=
18977 archive_expsym_cmds_F77=
18978 old_archive_From_new_cmds_F77=
18979 old_archive_from_expsyms_cmds_F77=
18980 export_dynamic_flag_spec_F77=
18981 whole_archive_flag_spec_F77=
18982 thread_safe_flag_spec_F77=
18983 hardcode_libdir_flag_spec_F77=
18984 hardcode_libdir_flag_spec_ld_F77=
18985 hardcode_libdir_separator_F77=
18986 hardcode_direct_F77=no
18987 hardcode_minus_L_F77=no
18988 hardcode_shlibpath_var_F77=unsupported
18989 link_all_deplibs_F77=unknown
18990 hardcode_automatic_F77=no
18991 module_cmds_F77=
18992 module_expsym_cmds_F77=
18993 always_export_symbols_F77=no
18994 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18995 # include_expsyms should be a list of space-separated symbols to be *always*
18996 # included in the symbol list
18997 include_expsyms_F77=
18998 # exclude_expsyms can be an extended regexp of symbols to exclude
18999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19001 # as well as any symbol that contains `d'.
19002 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19004 # platforms (ab)use it in PIC code, but their linkers get confused if
19005 # the symbol is explicitly referenced. Since portable code cannot
19006 # rely on this symbol name, it's probably fine to never include it in
19007 # preloaded symbol tables.
19008 extract_expsyms_cmds=
19009
19010 case $host_os in
19011 cygwin* | mingw* | pw32*)
19012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19013 # When not using gcc, we currently assume that we are using
19014 # Microsoft Visual C++.
19015 if test "$GCC" != yes; then
19016 with_gnu_ld=no
19017 fi
19018 ;;
19019 openbsd*)
19020 with_gnu_ld=no
19021 ;;
19022 esac
19023
19024 ld_shlibs_F77=yes
19025 if test "$with_gnu_ld" = yes; then
19026 # If archive_cmds runs LD, not CC, wlarc should be empty
19027 wlarc='${wl}'
19028
19029 # See if GNU ld supports shared libraries.
19030 case $host_os in
19031 aix3* | aix4* | aix5*)
19032 # On AIX/PPC, the GNU linker is very broken
19033 if test "$host_cpu" != ia64; then
19034 ld_shlibs_F77=no
19035 cat <<EOF 1>&2
19036
19037*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19038*** to be unable to reliably create shared libraries on AIX.
19039*** Therefore, libtool is disabling shared libraries support. If you
19040*** really care for shared libraries, you may want to modify your PATH
19041*** so that a non-GNU linker is found, and then restart.
19042
19043EOF
19044 fi
19045 ;;
19046
19047 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019048 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 +000019049 hardcode_libdir_flag_spec_F77='-L$libdir'
19050 hardcode_minus_L_F77=yes
19051
19052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19053 # that the semantics of dynamic libraries on AmigaOS, at least up
19054 # to version 4, is to share data among multiple programs linked
19055 # with the same dynamic library. Since this doesn't match the
19056 # behavior of shared libraries on other platforms, we can't use
19057 # them.
19058 ld_shlibs_F77=no
19059 ;;
19060
19061 beos*)
19062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19063 allow_undefined_flag_F77=unsupported
19064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19065 # support --undefined. This deserves some investigation. FIXME
19066 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19067 else
19068 ld_shlibs_F77=no
19069 fi
19070 ;;
19071
19072 cygwin* | mingw* | pw32*)
19073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19074 # as there is no search path for DLLs.
19075 hardcode_libdir_flag_spec_F77='-L$libdir'
19076 allow_undefined_flag_F77=unsupported
19077 always_export_symbols_F77=no
19078 enable_shared_with_static_runtimes_F77=yes
19079 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19080
19081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19083 # If the export-symbols file already is a .def file (1st line
19084 # is EXPORTS), use it as is; otherwise, prepend...
19085 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19086 cp $export_symbols $output_objdir/$soname.def;
19087 else
19088 echo EXPORTS > $output_objdir/$soname.def;
19089 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019090 fi~
19091 $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 +000019092 else
19093 ld_shlibs=no
19094 fi
19095 ;;
19096
19097 netbsd*)
19098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19100 wlarc=
19101 else
19102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19104 fi
19105 ;;
19106
19107 solaris* | sysv5*)
19108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19109 ld_shlibs_F77=no
19110 cat <<EOF 1>&2
19111
19112*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19113*** create shared libraries on Solaris systems. Therefore, libtool
19114*** is disabling shared libraries support. We urge you to upgrade GNU
19115*** binutils to release 2.9.1 or newer. Another option is to modify
19116*** your PATH or compiler configuration so that the native linker is
19117*** used, and then restart.
19118
19119EOF
19120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19123 else
19124 ld_shlibs_F77=no
19125 fi
19126 ;;
19127
19128 sunos4*)
19129 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19130 wlarc=
19131 hardcode_direct_F77=yes
19132 hardcode_shlibpath_var_F77=no
19133 ;;
19134
Reid Spencer2706f8c2004-09-19 23:53:36 +000019135 linux*)
19136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19137 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 archive_cmds_F77="$tmp_archive_cmds"
19139 supports_anon_versioning=no
19140 case `$LD -v 2>/dev/null` in
19141 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19144 *\ 2.11.*) ;; # other 2.11 versions
19145 *) supports_anon_versioning=yes ;;
19146 esac
19147 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019148 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19149cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19150$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019151 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19152 else
19153 archive_expsym_cmds_F77="$tmp_archive_cmds"
19154 fi
19155 else
19156 ld_shlibs_F77=no
19157 fi
19158 ;;
19159
John Criswell47fdd832003-07-14 16:52:07 +000019160 *)
19161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19162 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19163 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19164 else
19165 ld_shlibs_F77=no
19166 fi
19167 ;;
19168 esac
19169
19170 if test "$ld_shlibs_F77" = yes; then
19171 runpath_var=LD_RUN_PATH
19172 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19173 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19174 # ancient GNU ld didn't support --whole-archive et. al.
19175 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19176 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19177 else
19178 whole_archive_flag_spec_F77=
19179 fi
19180 fi
19181 else
19182 # PORTME fill in a description of your system's linker (not GNU ld)
19183 case $host_os in
19184 aix3*)
19185 allow_undefined_flag_F77=unsupported
19186 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019187 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 +000019188 # Note: this linker hardcodes the directories in LIBPATH if there
19189 # are no directories specified by -L.
19190 hardcode_minus_L_F77=yes
19191 if test "$GCC" = yes && test -z "$link_static_flag"; then
19192 # Neither direct hardcoding nor static linking is supported with a
19193 # broken collect2.
19194 hardcode_direct_F77=unsupported
19195 fi
19196 ;;
19197
19198 aix4* | aix5*)
19199 if test "$host_cpu" = ia64; then
19200 # On IA64, the linker does run time linking by default, so we don't
19201 # have to do anything special.
19202 aix_use_runtimelinking=no
19203 exp_sym_flag='-Bexport'
19204 no_entry_flag=""
19205 else
19206 # If we're using GNU nm, then we don't want the "-C" option.
19207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19209 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'
19210 else
19211 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'
19212 fi
19213 aix_use_runtimelinking=no
19214
19215 # Test if we are trying to use run time linking or normal
19216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19217 # need to do runtime linking.
19218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19219 for ld_flag in $LDFLAGS; do
19220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19221 aix_use_runtimelinking=yes
19222 break
19223 fi
19224 done
19225 esac
19226
19227 exp_sym_flag='-bexport'
19228 no_entry_flag='-bnoentry'
19229 fi
19230
19231 # When large executables or shared objects are built, AIX ld can
19232 # have problems creating the table of contents. If linking a library
19233 # or program results in "error TOC overflow" add -mminimal-toc to
19234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19236
19237 archive_cmds_F77=''
19238 hardcode_direct_F77=yes
19239 hardcode_libdir_separator_F77=':'
19240 link_all_deplibs_F77=yes
19241
19242 if test "$GCC" = yes; then
19243 case $host_os in aix4.012|aix4.012.*)
19244 # We only want to do this on AIX 4.2 and lower, the check
19245 # below for broken collect2 doesn't work under 4.3+
19246 collect2name=`${CC} -print-prog-name=collect2`
19247 if test -f "$collect2name" && \
19248 strings "$collect2name" | grep resolve_lib_name >/dev/null
19249 then
19250 # We have reworked collect2
19251 hardcode_direct_F77=yes
19252 else
19253 # We have old collect2
19254 hardcode_direct_F77=unsupported
19255 # It fails to find uninstalled libraries when the uninstalled
19256 # path is not listed in the libpath. Setting hardcode_minus_L
19257 # to unsupported forces relinking
19258 hardcode_minus_L_F77=yes
19259 hardcode_libdir_flag_spec_F77='-L$libdir'
19260 hardcode_libdir_separator_F77=
19261 fi
19262 esac
19263 shared_flag='-shared'
19264 else
19265 # not using gcc
19266 if test "$host_cpu" = ia64; then
19267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19268 # chokes on -Wl,-G. The following line is correct:
19269 shared_flag='-G'
19270 else
19271 if test "$aix_use_runtimelinking" = yes; then
19272 shared_flag='${wl}-G'
19273 else
19274 shared_flag='${wl}-bM:SRE'
19275 fi
19276 fi
19277 fi
19278
19279 # It seems that -bexpall does not export symbols beginning with
19280 # underscore (_), so it is better to generate a list of symbols to export.
19281 always_export_symbols_F77=yes
19282 if test "$aix_use_runtimelinking" = yes; then
19283 # Warning - without using the other runtime loading flags (-brtl),
19284 # -berok will link without error, but may produce a broken library.
19285 allow_undefined_flag_F77='-berok'
19286 # Determine the default libpath from the value encoded in an empty executable.
19287 cat >conftest.$ac_ext <<_ACEOF
19288 program main
19289
19290 end
19291_ACEOF
19292rm -f conftest.$ac_objext conftest$ac_exeext
19293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019294 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019295 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019296 grep -v '^ *+' conftest.er1 >conftest.err
19297 rm -f conftest.er1
19298 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019301 { ac_try='test -z "$ac_f77_werror_flag"
19302 || test ! -s conftest.err'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314
19315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19316}'`
19317# Check for a 64-bit object if we didn't find anything.
19318if 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; }
19319}'`; fi
19320else
19321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019322sed 's/^/| /' conftest.$ac_ext >&5
19323
John Criswell47fdd832003-07-14 16:52:07 +000019324fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019325rm -f conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19328
19329 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19330 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"
19331 else
19332 if test "$host_cpu" = ia64; then
19333 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19334 allow_undefined_flag_F77="-z nodefs"
19335 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"
19336 else
19337 # Determine the default libpath from the value encoded in an empty executable.
19338 cat >conftest.$ac_ext <<_ACEOF
19339 program main
19340
19341 end
19342_ACEOF
19343rm -f conftest.$ac_objext conftest$ac_exeext
19344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019345 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019352 { ac_try='test -z "$ac_f77_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365
19366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19367}'`
19368# Check for a 64-bit object if we didn't find anything.
19369if 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; }
19370}'`; fi
19371else
19372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019373sed 's/^/| /' conftest.$ac_ext >&5
19374
John Criswell47fdd832003-07-14 16:52:07 +000019375fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019376rm -f conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19379
19380 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19381 # Warning - without using the other run time loading flags,
19382 # -berok will link without error, but may produce a broken library.
19383 no_undefined_flag_F77=' ${wl}-bernotok'
19384 allow_undefined_flag_F77=' ${wl}-berok'
19385 # -bexpall does not export symbols beginning with underscore (_)
19386 always_export_symbols_F77=yes
19387 # Exported symbols can be pulled into shared objects from archives
19388 whole_archive_flag_spec_F77=' '
19389 archive_cmds_need_lc_F77=yes
19390 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019391 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 +000019392 fi
19393 fi
19394 ;;
19395
19396 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019397 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 +000019398 hardcode_libdir_flag_spec_F77='-L$libdir'
19399 hardcode_minus_L_F77=yes
19400 # see comment about different semantics on the GNU ld section
19401 ld_shlibs_F77=no
19402 ;;
19403
Reid Spencer2706f8c2004-09-19 23:53:36 +000019404 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019405 export_dynamic_flag_spec_F77=-rdynamic
19406 ;;
19407
19408 cygwin* | mingw* | pw32*)
19409 # When not using gcc, we currently assume that we are using
19410 # Microsoft Visual C++.
19411 # hardcode_libdir_flag_spec is actually meaningless, as there is
19412 # no search path for DLLs.
19413 hardcode_libdir_flag_spec_F77=' '
19414 allow_undefined_flag_F77=unsupported
19415 # Tell ltmain to make .lib files, not .a files.
19416 libext=lib
19417 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019418 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019419 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019420 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 +000019421 # The linker will automatically build a .lib file if we build a DLL.
19422 old_archive_From_new_cmds_F77='true'
19423 # FIXME: Should let the user specify the lib program.
19424 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19425 fix_srcfile_path='`cygpath -w "$srcfile"`'
19426 enable_shared_with_static_runtimes_F77=yes
19427 ;;
19428
19429 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019430 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019431 rhapsody* | darwin1.[012])
19432 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19433 ;;
19434 *) # Darwin 1.3 on
19435 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19436 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19437 else
19438 case ${MACOSX_DEPLOYMENT_TARGET} in
19439 10.[012])
19440 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19441 ;;
19442 10.*)
19443 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19444 ;;
19445 esac
19446 fi
19447 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019448 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019449 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019450 hardcode_direct_F77=no
19451 hardcode_automatic_F77=yes
19452 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019453 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019454 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019455 if test "$GCC" = yes ; then
19456 output_verbose_link_cmd='echo'
19457 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19458 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19459 # 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 +000019460 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}'
19461 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 +000019462 else
19463 case "$cc_basename" in
19464 xlc*)
19465 output_verbose_link_cmd='echo'
19466 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19467 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19468 # 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 +000019469 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}'
19470 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 +000019471 ;;
19472 *)
19473 ld_shlibs_F77=no
19474 ;;
19475 esac
John Criswell47fdd832003-07-14 16:52:07 +000019476 fi
19477 ;;
19478
19479 dgux*)
19480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481 hardcode_libdir_flag_spec_F77='-L$libdir'
19482 hardcode_shlibpath_var_F77=no
19483 ;;
19484
19485 freebsd1*)
19486 ld_shlibs_F77=no
19487 ;;
19488
19489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19490 # support. Future versions do this automatically, but an explicit c++rt0.o
19491 # does not break anything, and helps significantly (at the cost of a little
19492 # extra space).
19493 freebsd2.2*)
19494 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19495 hardcode_libdir_flag_spec_F77='-R$libdir'
19496 hardcode_direct_F77=yes
19497 hardcode_shlibpath_var_F77=no
19498 ;;
19499
19500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19501 freebsd2*)
19502 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19503 hardcode_direct_F77=yes
19504 hardcode_minus_L_F77=yes
19505 hardcode_shlibpath_var_F77=no
19506 ;;
19507
19508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019509 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019510 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19511 hardcode_libdir_flag_spec_F77='-R$libdir'
19512 hardcode_direct_F77=yes
19513 hardcode_shlibpath_var_F77=no
19514 ;;
19515
19516 hpux9*)
19517 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019518 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 +000019519 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019520 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 +000019521 fi
19522 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19523 hardcode_libdir_separator_F77=:
19524 hardcode_direct_F77=yes
19525
19526 # hardcode_minus_L: Not really in the search PATH,
19527 # but as the default location of the library.
19528 hardcode_minus_L_F77=yes
19529 export_dynamic_flag_spec_F77='${wl}-E'
19530 ;;
19531
19532 hpux10* | hpux11*)
19533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19534 case "$host_cpu" in
19535 hppa*64*|ia64*)
19536 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 ;;
19538 *)
19539 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19540 ;;
19541 esac
19542 else
19543 case "$host_cpu" in
19544 hppa*64*|ia64*)
19545 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19546 ;;
19547 *)
19548 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19549 ;;
19550 esac
19551 fi
19552 if test "$with_gnu_ld" = no; then
19553 case "$host_cpu" in
19554 hppa*64*)
19555 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19556 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19557 hardcode_libdir_separator_F77=:
19558 hardcode_direct_F77=no
19559 hardcode_shlibpath_var_F77=no
19560 ;;
19561 ia64*)
19562 hardcode_libdir_flag_spec_F77='-L$libdir'
19563 hardcode_direct_F77=no
19564 hardcode_shlibpath_var_F77=no
19565
19566 # hardcode_minus_L: Not really in the search PATH,
19567 # but as the default location of the library.
19568 hardcode_minus_L_F77=yes
19569 ;;
19570 *)
19571 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19572 hardcode_libdir_separator_F77=:
19573 hardcode_direct_F77=yes
19574 export_dynamic_flag_spec_F77='${wl}-E'
19575
19576 # hardcode_minus_L: Not really in the search PATH,
19577 # but as the default location of the library.
19578 hardcode_minus_L_F77=yes
19579 ;;
19580 esac
19581 fi
19582 ;;
19583
19584 irix5* | irix6* | nonstopux*)
19585 if test "$GCC" = yes; then
19586 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'
19587 else
19588 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'
19589 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19590 fi
19591 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19592 hardcode_libdir_separator_F77=:
19593 link_all_deplibs_F77=yes
19594 ;;
19595
19596 netbsd*)
19597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19598 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19599 else
19600 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19601 fi
19602 hardcode_libdir_flag_spec_F77='-R$libdir'
19603 hardcode_direct_F77=yes
19604 hardcode_shlibpath_var_F77=no
19605 ;;
19606
19607 newsos6)
19608 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19609 hardcode_direct_F77=yes
19610 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19611 hardcode_libdir_separator_F77=:
19612 hardcode_shlibpath_var_F77=no
19613 ;;
19614
19615 openbsd*)
19616 hardcode_direct_F77=yes
19617 hardcode_shlibpath_var_F77=no
19618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19619 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019620 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 +000019621 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19622 export_dynamic_flag_spec_F77='${wl}-E'
19623 else
19624 case $host_os in
19625 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19627 hardcode_libdir_flag_spec_F77='-R$libdir'
19628 ;;
19629 *)
19630 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19631 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19632 ;;
19633 esac
19634 fi
19635 ;;
19636
19637 os2*)
19638 hardcode_libdir_flag_spec_F77='-L$libdir'
19639 hardcode_minus_L_F77=yes
19640 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019641 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 +000019642 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19643 ;;
19644
19645 osf3*)
19646 if test "$GCC" = yes; then
19647 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19648 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'
19649 else
19650 allow_undefined_flag_F77=' -expect_unresolved \*'
19651 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'
19652 fi
19653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19654 hardcode_libdir_separator_F77=:
19655 ;;
19656
19657 osf4* | osf5*) # as osf3* with the addition of -msym flag
19658 if test "$GCC" = yes; then
19659 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19660 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'
19661 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19662 else
19663 allow_undefined_flag_F77=' -expect_unresolved \*'
19664 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 +000019665 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~
19666 $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'
19667
John Criswell47fdd832003-07-14 16:52:07 +000019668 # Both c and cxx compiler support -rpath directly
19669 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19670 fi
19671 hardcode_libdir_separator_F77=:
19672 ;;
19673
19674 sco3.2v5*)
19675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19676 hardcode_shlibpath_var_F77=no
19677 export_dynamic_flag_spec_F77='${wl}-Bexport'
19678 runpath_var=LD_RUN_PATH
19679 hardcode_runpath_var=yes
19680 ;;
19681
19682 solaris*)
19683 no_undefined_flag_F77=' -z text'
19684 if test "$GCC" = yes; then
19685 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019686 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19687 $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 +000019688 else
19689 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019690 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19691 $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 +000019692 fi
19693 hardcode_libdir_flag_spec_F77='-R$libdir'
19694 hardcode_shlibpath_var_F77=no
19695 case $host_os in
19696 solaris2.[0-5] | solaris2.[0-5].*) ;;
19697 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19698 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19699 esac
19700 link_all_deplibs_F77=yes
19701 ;;
19702
19703 sunos4*)
19704 if test "x$host_vendor" = xsequent; then
19705 # Use $CC to link under sequent, because it throws in some extra .o
19706 # files that make .init and .fini sections work.
19707 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19708 else
19709 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19710 fi
19711 hardcode_libdir_flag_spec_F77='-L$libdir'
19712 hardcode_direct_F77=yes
19713 hardcode_minus_L_F77=yes
19714 hardcode_shlibpath_var_F77=no
19715 ;;
19716
19717 sysv4)
19718 case $host_vendor in
19719 sni)
19720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19721 hardcode_direct_F77=yes # is this really true???
19722 ;;
19723 siemens)
19724 ## LD is ld it makes a PLAMLIB
19725 ## CC just makes a GrossModule.
19726 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19727 reload_cmds_F77='$CC -r -o $output$reload_objs'
19728 hardcode_direct_F77=no
19729 ;;
19730 motorola)
19731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19732 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19733 ;;
19734 esac
19735 runpath_var='LD_RUN_PATH'
19736 hardcode_shlibpath_var_F77=no
19737 ;;
19738
19739 sysv4.3*)
19740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19741 hardcode_shlibpath_var_F77=no
19742 export_dynamic_flag_spec_F77='-Bexport'
19743 ;;
19744
19745 sysv4*MP*)
19746 if test -d /usr/nec; then
19747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19748 hardcode_shlibpath_var_F77=no
19749 runpath_var=LD_RUN_PATH
19750 hardcode_runpath_var=yes
19751 ld_shlibs_F77=yes
19752 fi
19753 ;;
19754
19755 sysv4.2uw2*)
19756 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_direct_F77=yes
19758 hardcode_minus_L_F77=no
19759 hardcode_shlibpath_var_F77=no
19760 hardcode_runpath_var=yes
19761 runpath_var=LD_RUN_PATH
19762 ;;
19763
19764 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19765 no_undefined_flag_F77='${wl}-z ${wl}text'
19766 if test "$GCC" = yes; then
19767 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 else
19769 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 fi
19771 runpath_var='LD_RUN_PATH'
19772 hardcode_shlibpath_var_F77=no
19773 ;;
19774
19775 sysv5*)
19776 no_undefined_flag_F77=' -z text'
19777 # $CC -shared without GNU ld will not create a library from C++
19778 # object files and a static libstdc++, better avoid it by now
19779 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_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 $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 +000019782 hardcode_libdir_flag_spec_F77=
19783 hardcode_shlibpath_var_F77=no
19784 runpath_var='LD_RUN_PATH'
19785 ;;
19786
19787 uts4*)
19788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789 hardcode_libdir_flag_spec_F77='-L$libdir'
19790 hardcode_shlibpath_var_F77=no
19791 ;;
19792
19793 *)
19794 ld_shlibs_F77=no
19795 ;;
19796 esac
19797 fi
19798
19799echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19800echo "${ECHO_T}$ld_shlibs_F77" >&6
19801test "$ld_shlibs_F77" = no && can_build_shared=no
19802
19803variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19804if test "$GCC" = yes; then
19805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19806fi
19807
19808#
19809# Do we need to explicitly link libc?
19810#
19811case "x$archive_cmds_need_lc_F77" in
19812x|xyes)
19813 # Assume -lc should be added
19814 archive_cmds_need_lc_F77=yes
19815
19816 if test "$enable_shared" = yes && test "$GCC" = yes; then
19817 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019818 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019819 # FIXME: we may have to deal with multi-command sequences.
19820 ;;
19821 '$CC '*)
19822 # Test whether the compiler implicitly links with -lc since on some
19823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19824 # to ld, don't add -lc before -lgcc.
19825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19826echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19827 $rm conftest*
19828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19829
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } 2>conftest.err; then
19835 soname=conftest
19836 lib=conftest
19837 libobjs=conftest.$ac_objext
19838 deplibs=
19839 wl=$lt_prog_compiler_wl_F77
19840 compiler_flags=-v
19841 linker_flags=-v
19842 verstring=
19843 output_objdir=.
19844 libname=conftest
19845 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19846 allow_undefined_flag_F77=
19847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19848 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }
19852 then
19853 archive_cmds_need_lc_F77=no
19854 else
19855 archive_cmds_need_lc_F77=yes
19856 fi
19857 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19858 else
19859 cat conftest.err 1>&5
19860 fi
19861 $rm conftest*
19862 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19863echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19864 ;;
19865 esac
19866 fi
19867 ;;
19868esac
19869
John Criswell47fdd832003-07-14 16:52:07 +000019870echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19871echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19872library_names_spec=
19873libname_spec='lib$name'
19874soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019875shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019876postinstall_cmds=
19877postuninstall_cmds=
19878finish_cmds=
19879finish_eval=
19880shlibpath_var=
19881shlibpath_overrides_runpath=unknown
19882version_type=none
19883dynamic_linker="$host_os ld.so"
19884sys_lib_dlsearch_path_spec="/lib /usr/lib"
19885if test "$GCC" = yes; then
19886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19887 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19888 # if the path contains ";" then we assume it to be the separator
19889 # otherwise default to the standard path separator (i.e. ":") - it is
19890 # assumed that no part of a normal pathname contains ";" but that should
19891 # okay in the real world where ";" in dirpaths is itself problematic.
19892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19893 else
19894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19895 fi
19896else
19897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19898fi
19899need_lib_prefix=unknown
19900hardcode_into_libs=no
19901
19902# when you set need_version to no, make sure it does not cause -set_version
19903# flags to be left without arguments
19904need_version=unknown
19905
19906case $host_os in
19907aix3*)
19908 version_type=linux
19909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19910 shlibpath_var=LIBPATH
19911
19912 # AIX 3 has no versioning support, so we append a major version to the name.
19913 soname_spec='${libname}${release}${shared_ext}$major'
19914 ;;
19915
19916aix4* | aix5*)
19917 version_type=linux
19918 need_lib_prefix=no
19919 need_version=no
19920 hardcode_into_libs=yes
19921 if test "$host_cpu" = ia64; then
19922 # AIX 5 supports IA64
19923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19924 shlibpath_var=LD_LIBRARY_PATH
19925 else
19926 # With GCC up to 2.95.x, collect2 would create an import file
19927 # for dependence libraries. The import file would start with
19928 # the line `#! .'. This would cause the generated library to
19929 # depend on `.', always an invalid library. This was fixed in
19930 # development snapshots of GCC prior to 3.0.
19931 case $host_os in
19932 aix4 | aix4.[01] | aix4.[01].*)
19933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19934 echo ' yes '
19935 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19936 :
19937 else
19938 can_build_shared=no
19939 fi
19940 ;;
19941 esac
19942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19943 # soname into executable. Probably we can add versioning support to
19944 # collect2, so additional links can be useful in future.
19945 if test "$aix_use_runtimelinking" = yes; then
19946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19947 # instead of lib<name>.a to let people know that these are not
19948 # typical AIX shared libraries.
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950 else
19951 # We preserve .a as extension for shared libraries through AIX4.2
19952 # and later when we are not doing run time linking.
19953 library_names_spec='${libname}${release}.a $libname.a'
19954 soname_spec='${libname}${release}${shared_ext}$major'
19955 fi
19956 shlibpath_var=LIBPATH
19957 fi
19958 ;;
19959
19960amigaos*)
19961 library_names_spec='$libname.ixlibrary $libname.a'
19962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019963 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 +000019964 ;;
19965
19966beos*)
19967 library_names_spec='${libname}${shared_ext}'
19968 dynamic_linker="$host_os ld.so"
19969 shlibpath_var=LIBRARY_PATH
19970 ;;
19971
Reid Spencer2706f8c2004-09-19 23:53:36 +000019972bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019973 version_type=linux
19974 need_version=no
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19978 shlibpath_var=LD_LIBRARY_PATH
19979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19981 # the default ld.so.conf also contains /usr/contrib/lib and
19982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19983 # libtool to hard-code these into programs
19984 ;;
19985
19986cygwin* | mingw* | pw32*)
19987 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019988 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019989 need_version=no
19990 need_lib_prefix=no
19991
19992 case $GCC,$host_os in
19993 yes,cygwin* | yes,mingw* | yes,pw32*)
19994 library_names_spec='$libname.dll.a'
19995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019996 postinstall_cmds='base_file=`basename \${file}`~
19997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19998 dldir=$destdir/`dirname \$dlpath`~
19999 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020000 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20002 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020003 $rm \$dlpath'
20004 shlibpath_overrides_runpath=yes
20005
20006 case $host_os in
20007 cygwin*)
20008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20009 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 +000020010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020011 ;;
20012 mingw*)
20013 # MinGW DLLs use traditional 'lib' prefix
20014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20017 # It is most probably a Windows format PATH printed by
20018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20019 # path with ; separators, and with drive letters. We can handle the
20020 # drive letters (cygwin fileutils understands them), so leave them,
20021 # especially as we might pass files found there to a mingw objdump,
20022 # which wouldn't understand a cygwinified path. Ahh.
20023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20024 else
20025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20026 fi
20027 ;;
20028 pw32*)
20029 # pw32 DLLs use 'pw' prefix rather than 'lib'
20030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20031 ;;
20032 esac
20033 ;;
20034
20035 *)
20036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20037 ;;
20038 esac
20039 dynamic_linker='Win32 ld.exe'
20040 # FIXME: first we should search . and the directory the executable is in
20041 shlibpath_var=PATH
20042 ;;
20043
20044darwin* | rhapsody*)
20045 dynamic_linker="$host_os dyld"
20046 version_type=darwin
20047 need_lib_prefix=no
20048 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020050 soname_spec='${libname}${release}${major}$shared_ext'
20051 shlibpath_overrides_runpath=yes
20052 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020053 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020055 if test "$GCC" = yes; then
20056 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"`
20057 else
20058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020059 fi
20060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20061 ;;
20062
20063dgux*)
20064 version_type=linux
20065 need_lib_prefix=no
20066 need_version=no
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 shlibpath_var=LD_LIBRARY_PATH
20070 ;;
20071
20072freebsd1*)
20073 dynamic_linker=no
20074 ;;
20075
Reid Spencer2706f8c2004-09-19 23:53:36 +000020076kfreebsd*-gnu)
20077 version_type=linux
20078 need_lib_prefix=no
20079 need_version=no
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 shlibpath_var=LD_LIBRARY_PATH
20083 shlibpath_overrides_runpath=no
20084 hardcode_into_libs=yes
20085 dynamic_linker='GNU ld.so'
20086 ;;
20087
John Criswell47fdd832003-07-14 16:52:07 +000020088freebsd*)
20089 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20090 version_type=freebsd-$objformat
20091 case $version_type in
20092 freebsd-elf*)
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20094 need_version=no
20095 need_lib_prefix=no
20096 ;;
20097 freebsd-*)
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20099 need_version=yes
20100 ;;
20101 esac
20102 shlibpath_var=LD_LIBRARY_PATH
20103 case $host_os in
20104 freebsd2*)
20105 shlibpath_overrides_runpath=yes
20106 ;;
20107 freebsd3.01* | freebsdelf3.01*)
20108 shlibpath_overrides_runpath=yes
20109 hardcode_into_libs=yes
20110 ;;
20111 *) # from 3.2 on
20112 shlibpath_overrides_runpath=no
20113 hardcode_into_libs=yes
20114 ;;
20115 esac
20116 ;;
20117
20118gnu*)
20119 version_type=linux
20120 need_lib_prefix=no
20121 need_version=no
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 shlibpath_var=LD_LIBRARY_PATH
20125 hardcode_into_libs=yes
20126 ;;
20127
20128hpux9* | hpux10* | hpux11*)
20129 # Give a soname corresponding to the major version so that dld.sl refuses to
20130 # link against other versions.
20131 version_type=sunos
20132 need_lib_prefix=no
20133 need_version=no
20134 case "$host_cpu" in
20135 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020137 hardcode_into_libs=yes
20138 dynamic_linker="$host_os dld.so"
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 if test "X$HPUX_IA64_MODE" = X32; then
20144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20145 else
20146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20147 fi
20148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20149 ;;
20150 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020152 hardcode_into_libs=yes
20153 dynamic_linker="$host_os dld.sl"
20154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160 ;;
20161 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020162 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020163 dynamic_linker="$host_os dld.sl"
20164 shlibpath_var=SHLIB_PATH
20165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 soname_spec='${libname}${release}${shared_ext}$major'
20168 ;;
20169 esac
20170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171 postinstall_cmds='chmod 555 $lib'
20172 ;;
20173
20174irix5* | irix6* | nonstopux*)
20175 case $host_os in
20176 nonstopux*) version_type=nonstopux ;;
20177 *)
20178 if test "$lt_cv_prog_gnu_ld" = yes; then
20179 version_type=linux
20180 else
20181 version_type=irix
20182 fi ;;
20183 esac
20184 need_lib_prefix=no
20185 need_version=no
20186 soname_spec='${libname}${release}${shared_ext}$major'
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20188 case $host_os in
20189 irix5* | nonstopux*)
20190 libsuff= shlibsuff=
20191 ;;
20192 *)
20193 case $LD in # libtool.m4 will add one of these switches to LD
20194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20195 libsuff= shlibsuff= libmagic=32-bit;;
20196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20197 libsuff=32 shlibsuff=N32 libmagic=N32;;
20198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20200 *) libsuff= shlibsuff= libmagic=never-match;;
20201 esac
20202 ;;
20203 esac
20204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20205 shlibpath_overrides_runpath=no
20206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20208 hardcode_into_libs=yes
20209 ;;
20210
20211# No shared lib support for Linux oldld, aout, or coff.
20212linux*oldld* | linux*aout* | linux*coff*)
20213 dynamic_linker=no
20214 ;;
20215
20216# This must be Linux ELF.
20217linux*)
20218 version_type=linux
20219 need_lib_prefix=no
20220 need_version=no
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20224 shlibpath_var=LD_LIBRARY_PATH
20225 shlibpath_overrides_runpath=no
20226 # This implies no fast_install, which is unacceptable.
20227 # Some rework will be needed to allow for fast_install
20228 # before this can be enabled.
20229 hardcode_into_libs=yes
20230
Reid Spencer2706f8c2004-09-19 23:53:36 +000020231 # Append ld.so.conf contents to the search path
20232 if test -f /etc/ld.so.conf; then
20233 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20235 fi
20236
John Criswell47fdd832003-07-14 16:52:07 +000020237 # We used to test for /lib/ld.so.1 and disable shared libraries on
20238 # powerpc, because MkLinux only supported shared libraries with the
20239 # GNU dynamic linker. Since this was broken with cross compilers,
20240 # most powerpc-linux boxes support dynamic linking these days and
20241 # people can always --disable-shared, the test was removed, and we
20242 # assume the GNU/Linux dynamic linker is in use.
20243 dynamic_linker='GNU/Linux ld.so'
20244 ;;
20245
Reid Spencer2706f8c2004-09-19 23:53:36 +000020246knetbsd*-gnu)
20247 version_type=linux
20248 need_lib_prefix=no
20249 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=no
20254 hardcode_into_libs=yes
20255 dynamic_linker='GNU ld.so'
20256 ;;
20257
John Criswell47fdd832003-07-14 16:52:07 +000020258netbsd*)
20259 version_type=sunos
20260 need_lib_prefix=no
20261 need_version=no
20262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20265 dynamic_linker='NetBSD (a.out) ld.so'
20266 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020268 soname_spec='${libname}${release}${shared_ext}$major'
20269 dynamic_linker='NetBSD ld.elf_so'
20270 fi
20271 shlibpath_var=LD_LIBRARY_PATH
20272 shlibpath_overrides_runpath=yes
20273 hardcode_into_libs=yes
20274 ;;
20275
20276newsos6)
20277 version_type=linux
20278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20281 ;;
20282
Reid Spencer2706f8c2004-09-19 23:53:36 +000020283nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020284 version_type=linux
20285 need_lib_prefix=no
20286 need_version=no
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 shlibpath_overrides_runpath=yes
20291 ;;
20292
20293openbsd*)
20294 version_type=sunos
20295 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020296 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20301 case $host_os in
20302 openbsd2.[89] | openbsd2.[89].*)
20303 shlibpath_overrides_runpath=no
20304 ;;
20305 *)
20306 shlibpath_overrides_runpath=yes
20307 ;;
20308 esac
20309 else
20310 shlibpath_overrides_runpath=yes
20311 fi
20312 ;;
20313
20314os2*)
20315 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020316 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020317 need_lib_prefix=no
20318 library_names_spec='$libname${shared_ext} $libname.a'
20319 dynamic_linker='OS/2 ld.exe'
20320 shlibpath_var=LIBPATH
20321 ;;
20322
20323osf3* | osf4* | osf5*)
20324 version_type=osf
20325 need_lib_prefix=no
20326 need_version=no
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20332 ;;
20333
20334sco3.2v5*)
20335 version_type=osf
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 shlibpath_var=LD_LIBRARY_PATH
20339 ;;
20340
20341solaris*)
20342 version_type=linux
20343 need_lib_prefix=no
20344 need_version=no
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 shlibpath_overrides_runpath=yes
20349 hardcode_into_libs=yes
20350 # ldd complains unless libraries are executable
20351 postinstall_cmds='chmod +x $lib'
20352 ;;
20353
20354sunos4*)
20355 version_type=sunos
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=yes
20360 if test "$with_gnu_ld" = yes; then
20361 need_lib_prefix=no
20362 fi
20363 need_version=yes
20364 ;;
20365
20366sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20367 version_type=linux
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 soname_spec='${libname}${release}${shared_ext}$major'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 case $host_vendor in
20372 sni)
20373 shlibpath_overrides_runpath=no
20374 need_lib_prefix=no
20375 export_dynamic_flag_spec='${wl}-Blargedynsym'
20376 runpath_var=LD_RUN_PATH
20377 ;;
20378 siemens)
20379 need_lib_prefix=no
20380 ;;
20381 motorola)
20382 need_lib_prefix=no
20383 need_version=no
20384 shlibpath_overrides_runpath=no
20385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20386 ;;
20387 esac
20388 ;;
20389
20390sysv4*MP*)
20391 if test -d /usr/nec ;then
20392 version_type=linux
20393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20394 soname_spec='$libname${shared_ext}.$major'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 fi
20397 ;;
20398
20399uts4*)
20400 version_type=linux
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 shlibpath_var=LD_LIBRARY_PATH
20404 ;;
20405
20406*)
20407 dynamic_linker=no
20408 ;;
20409esac
20410echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20411echo "${ECHO_T}$dynamic_linker" >&6
20412test "$dynamic_linker" = no && can_build_shared=no
20413
Reid Spencer2706f8c2004-09-19 23:53:36 +000020414echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20415echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20416hardcode_action_F77=
20417if test -n "$hardcode_libdir_flag_spec_F77" || \
20418 test -n "$runpath_var_F77" || \
20419 test "X$hardcode_automatic_F77" = "Xyes" ; then
20420
20421 # We can hardcode non-existant directories.
20422 if test "$hardcode_direct_F77" != no &&
20423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20424 # have to relink, otherwise we might link with an installed library
20425 # when we should be linking with a yet-to-be-installed one
20426 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20427 test "$hardcode_minus_L_F77" != no; then
20428 # Linking always hardcodes the temporary library directory.
20429 hardcode_action_F77=relink
20430 else
20431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20432 hardcode_action_F77=immediate
20433 fi
20434else
20435 # We cannot hardcode anything, or else we can only hardcode existing
20436 # directories.
20437 hardcode_action_F77=unsupported
20438fi
20439echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20440echo "${ECHO_T}$hardcode_action_F77" >&6
20441
20442if test "$hardcode_action_F77" = relink; then
20443 # Fast installation is not supported
20444 enable_fast_install=no
20445elif test "$shlibpath_overrides_runpath" = yes ||
20446 test "$enable_shared" = no; then
20447 # Fast installation is not necessary
20448 enable_fast_install=needless
20449fi
20450
20451striplib=
20452old_striplib=
20453echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20454echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20455if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20457 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20458 echo "$as_me:$LINENO: result: yes" >&5
20459echo "${ECHO_T}yes" >&6
20460else
20461# FIXME - insert some real tests, host_os isn't really good enough
20462 case $host_os in
20463 darwin*)
20464 if test -n "$STRIP" ; then
20465 striplib="$STRIP -x"
20466 echo "$as_me:$LINENO: result: yes" >&5
20467echo "${ECHO_T}yes" >&6
20468 else
20469 echo "$as_me:$LINENO: result: no" >&5
20470echo "${ECHO_T}no" >&6
20471fi
20472 ;;
20473 *)
20474 echo "$as_me:$LINENO: result: no" >&5
20475echo "${ECHO_T}no" >&6
20476 ;;
20477 esac
20478fi
20479
20480
John Criswell47fdd832003-07-14 16:52:07 +000020481
20482# The else clause should only fire when bootstrapping the
20483# libtool distribution, otherwise you forgot to ship ltmain.sh
20484# with your package, and you will get complaints that there are
20485# no rules to generate ltmain.sh.
20486if test -f "$ltmain"; then
20487 # See if we are running on zsh, and set the options which allow our commands through
20488 # without removal of \ escapes.
20489 if test -n "${ZSH_VERSION+set}" ; then
20490 setopt NO_GLOB_SUBST
20491 fi
20492 # Now quote all the things that may contain metacharacters while being
20493 # careful not to overquote the AC_SUBSTed values. We take copies of the
20494 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20496 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20499 deplibs_check_method reload_flag reload_cmds need_locks \
20500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20501 lt_cv_sys_global_symbol_to_c_name_address \
20502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20503 old_postinstall_cmds old_postuninstall_cmds \
20504 compiler_F77 \
20505 CC_F77 \
20506 LD_F77 \
20507 lt_prog_compiler_wl_F77 \
20508 lt_prog_compiler_pic_F77 \
20509 lt_prog_compiler_static_F77 \
20510 lt_prog_compiler_no_builtin_flag_F77 \
20511 export_dynamic_flag_spec_F77 \
20512 thread_safe_flag_spec_F77 \
20513 whole_archive_flag_spec_F77 \
20514 enable_shared_with_static_runtimes_F77 \
20515 old_archive_cmds_F77 \
20516 old_archive_from_new_cmds_F77 \
20517 predep_objects_F77 \
20518 postdep_objects_F77 \
20519 predeps_F77 \
20520 postdeps_F77 \
20521 compiler_lib_search_path_F77 \
20522 archive_cmds_F77 \
20523 archive_expsym_cmds_F77 \
20524 postinstall_cmds_F77 \
20525 postuninstall_cmds_F77 \
20526 old_archive_from_expsyms_cmds_F77 \
20527 allow_undefined_flag_F77 \
20528 no_undefined_flag_F77 \
20529 export_symbols_cmds_F77 \
20530 hardcode_libdir_flag_spec_F77 \
20531 hardcode_libdir_flag_spec_ld_F77 \
20532 hardcode_libdir_separator_F77 \
20533 hardcode_automatic_F77 \
20534 module_cmds_F77 \
20535 module_expsym_cmds_F77 \
20536 lt_cv_prog_compiler_c_o_F77 \
20537 exclude_expsyms_F77 \
20538 include_expsyms_F77; do
20539
20540 case $var in
20541 old_archive_cmds_F77 | \
20542 old_archive_from_new_cmds_F77 | \
20543 archive_cmds_F77 | \
20544 archive_expsym_cmds_F77 | \
20545 module_cmds_F77 | \
20546 module_expsym_cmds_F77 | \
20547 old_archive_from_expsyms_cmds_F77 | \
20548 export_symbols_cmds_F77 | \
20549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20550 postinstall_cmds | postuninstall_cmds | \
20551 old_postinstall_cmds | old_postuninstall_cmds | \
20552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20553 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020554 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 +000020555 ;;
20556 *)
20557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20558 ;;
20559 esac
20560 done
20561
20562 case $lt_echo in
20563 *'\$0 --fallback-echo"')
20564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20565 ;;
20566 esac
20567
20568cfgfile="$ofile"
20569
20570 cat <<__EOF__ >> "$cfgfile"
20571# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20572
20573# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20574
20575# Shell to use when invoking shell scripts.
20576SHELL=$lt_SHELL
20577
20578# Whether or not to build shared libraries.
20579build_libtool_libs=$enable_shared
20580
20581# Whether or not to build static libraries.
20582build_old_libs=$enable_static
20583
20584# Whether or not to add -lc for building shared libraries.
20585build_libtool_need_lc=$archive_cmds_need_lc_F77
20586
20587# Whether or not to disallow shared libs when runtime libs are static
20588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20589
20590# Whether or not to optimize for fast installation.
20591fast_install=$enable_fast_install
20592
20593# The host system.
20594host_alias=$host_alias
20595host=$host
20596
20597# An echo program that does not interpret backslashes.
20598echo=$lt_echo
20599
20600# The archiver.
20601AR=$lt_AR
20602AR_FLAGS=$lt_AR_FLAGS
20603
20604# A C compiler.
20605LTCC=$lt_LTCC
20606
20607# A language-specific compiler.
20608CC=$lt_compiler_F77
20609
20610# Is the compiler the GNU C compiler?
20611with_gcc=$GCC_F77
20612
20613# An ERE matcher.
20614EGREP=$lt_EGREP
20615
20616# The linker used to build libraries.
20617LD=$lt_LD_F77
20618
20619# Whether we need hard or soft links.
20620LN_S=$lt_LN_S
20621
20622# A BSD-compatible nm program.
20623NM=$lt_NM
20624
20625# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020626STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020627
20628# Used to examine libraries when file_magic_cmd begins "file"
20629MAGIC_CMD=$MAGIC_CMD
20630
20631# Used on cygwin: DLL creation program.
20632DLLTOOL="$DLLTOOL"
20633
20634# Used on cygwin: object dumper.
20635OBJDUMP="$OBJDUMP"
20636
20637# Used on cygwin: assembler.
20638AS="$AS"
20639
20640# The name of the directory that contains temporary libtool files.
20641objdir=$objdir
20642
20643# How to create reloadable object files.
20644reload_flag=$lt_reload_flag
20645reload_cmds=$lt_reload_cmds
20646
20647# How to pass a linker flag through the compiler.
20648wl=$lt_lt_prog_compiler_wl_F77
20649
20650# Object file suffix (normally "o").
20651objext="$ac_objext"
20652
20653# Old archive suffix (normally "a").
20654libext="$libext"
20655
20656# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020657shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020658
20659# Executable file suffix (normally "").
20660exeext="$exeext"
20661
20662# Additional compiler flags for building library objects.
20663pic_flag=$lt_lt_prog_compiler_pic_F77
20664pic_mode=$pic_mode
20665
20666# What is the maximum length of a command?
20667max_cmd_len=$lt_cv_sys_max_cmd_len
20668
20669# Does compiler simultaneously support -c and -o options?
20670compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20671
20672# Must we lock files when doing compilation ?
20673need_locks=$lt_need_locks
20674
20675# Do we need the lib prefix for modules?
20676need_lib_prefix=$need_lib_prefix
20677
20678# Do we need a version for libraries?
20679need_version=$need_version
20680
20681# Whether dlopen is supported.
20682dlopen_support=$enable_dlopen
20683
20684# Whether dlopen of programs is supported.
20685dlopen_self=$enable_dlopen_self
20686
20687# Whether dlopen of statically linked programs is supported.
20688dlopen_self_static=$enable_dlopen_self_static
20689
20690# Compiler flag to prevent dynamic linking.
20691link_static_flag=$lt_lt_prog_compiler_static_F77
20692
20693# Compiler flag to turn off builtin functions.
20694no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20695
20696# Compiler flag to allow reflexive dlopens.
20697export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20698
20699# Compiler flag to generate shared objects directly from archives.
20700whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20701
20702# Compiler flag to generate thread-safe objects.
20703thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20704
20705# Library versioning type.
20706version_type=$version_type
20707
20708# Format of library name prefix.
20709libname_spec=$lt_libname_spec
20710
20711# List of archive names. First name is the real one, the rest are links.
20712# The last name is the one that the linker finds with -lNAME.
20713library_names_spec=$lt_library_names_spec
20714
20715# The coded name of the library, if different from the real name.
20716soname_spec=$lt_soname_spec
20717
20718# Commands used to build and install an old-style archive.
20719RANLIB=$lt_RANLIB
20720old_archive_cmds=$lt_old_archive_cmds_F77
20721old_postinstall_cmds=$lt_old_postinstall_cmds
20722old_postuninstall_cmds=$lt_old_postuninstall_cmds
20723
20724# Create an old-style archive from a shared archive.
20725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20726
20727# Create a temporary old-style archive to link instead of a shared archive.
20728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20729
20730# Commands used to build and install a shared archive.
20731archive_cmds=$lt_archive_cmds_F77
20732archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20733postinstall_cmds=$lt_postinstall_cmds
20734postuninstall_cmds=$lt_postuninstall_cmds
20735
20736# Commands used to build a loadable module (assumed same as above if empty)
20737module_cmds=$lt_module_cmds_F77
20738module_expsym_cmds=$lt_module_expsym_cmds_F77
20739
20740# Commands to strip libraries.
20741old_striplib=$lt_old_striplib
20742striplib=$lt_striplib
20743
20744# Dependencies to place before the objects being linked to create a
20745# shared library.
20746predep_objects=$lt_predep_objects_F77
20747
20748# Dependencies to place after the objects being linked to create a
20749# shared library.
20750postdep_objects=$lt_postdep_objects_F77
20751
20752# Dependencies to place before the objects being linked to create a
20753# shared library.
20754predeps=$lt_predeps_F77
20755
20756# Dependencies to place after the objects being linked to create a
20757# shared library.
20758postdeps=$lt_postdeps_F77
20759
20760# The library search path used internally by the compiler when linking
20761# a shared library.
20762compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20763
20764# Method to check whether dependent libraries are shared objects.
20765deplibs_check_method=$lt_deplibs_check_method
20766
20767# Command to use when deplibs_check_method == file_magic.
20768file_magic_cmd=$lt_file_magic_cmd
20769
20770# Flag that allows shared libraries with undefined symbols to be built.
20771allow_undefined_flag=$lt_allow_undefined_flag_F77
20772
20773# Flag that forces no undefined symbols.
20774no_undefined_flag=$lt_no_undefined_flag_F77
20775
20776# Commands used to finish a libtool library installation in a directory.
20777finish_cmds=$lt_finish_cmds
20778
20779# Same as above, but a single script fragment to be evaled but not shown.
20780finish_eval=$lt_finish_eval
20781
20782# Take the output of nm and produce a listing of raw symbols and C names.
20783global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20784
20785# Transform the output of nm in a proper C declaration
20786global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20787
20788# Transform the output of nm in a C name address pair
20789global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20790
20791# This is the shared library runtime path variable.
20792runpath_var=$runpath_var
20793
20794# This is the shared library path variable.
20795shlibpath_var=$shlibpath_var
20796
20797# Is shlibpath searched before the hard-coded library search path?
20798shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20799
20800# How to hardcode a shared library path into an executable.
20801hardcode_action=$hardcode_action_F77
20802
20803# Whether we should hardcode library paths into libraries.
20804hardcode_into_libs=$hardcode_into_libs
20805
20806# Flag to hardcode \$libdir into a binary during linking.
20807# This must work even if \$libdir does not exist.
20808hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20809
20810# If ld is used when linking, flag to hardcode \$libdir into
20811# a binary during linking. This must work even if \$libdir does
20812# not exist.
20813hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20814
20815# Whether we need a single -rpath flag with a separated argument.
20816hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20817
20818# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20819# resulting binary.
20820hardcode_direct=$hardcode_direct_F77
20821
20822# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20823# resulting binary.
20824hardcode_minus_L=$hardcode_minus_L_F77
20825
20826# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20827# the resulting binary.
20828hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20829
20830# Set to yes if building a shared library automatically hardcodes DIR into the library
20831# and all subsequent libraries and executables linked against it.
20832hardcode_automatic=$hardcode_automatic_F77
20833
20834# Variables whose values should be saved in libtool wrapper scripts and
20835# restored at relink time.
20836variables_saved_for_relink="$variables_saved_for_relink"
20837
20838# Whether libtool must link a program against all its dependency libraries.
20839link_all_deplibs=$link_all_deplibs_F77
20840
20841# Compile-time system search path for libraries
20842sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20843
20844# Run-time system search path for libraries
20845sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20846
20847# Fix the shell variable \$srcfile for the compiler.
20848fix_srcfile_path="$fix_srcfile_path_F77"
20849
20850# Set to yes if exported symbols are required.
20851always_export_symbols=$always_export_symbols_F77
20852
20853# The commands to list exported symbols.
20854export_symbols_cmds=$lt_export_symbols_cmds_F77
20855
20856# The commands to extract the exported symbol list from a shared archive.
20857extract_expsyms_cmds=$lt_extract_expsyms_cmds
20858
20859# Symbols that should not be listed in the preloaded symbols.
20860exclude_expsyms=$lt_exclude_expsyms_F77
20861
20862# Symbols that must always be exported.
20863include_expsyms=$lt_include_expsyms_F77
20864
20865# ### END LIBTOOL TAG CONFIG: $tagname
20866
20867__EOF__
20868
20869
20870else
20871 # If there is no Makefile yet, we rely on a make rule to execute
20872 # `config.status --recheck' to rerun these tests and create the
20873 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020874 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20875 if test -f "$ltmain_in"; then
20876 test -f Makefile && make "$ltmain"
20877 fi
John Criswell47fdd832003-07-14 16:52:07 +000020878fi
20879
20880
20881ac_ext=c
20882ac_cpp='$CPP $CPPFLAGS'
20883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887CC="$lt_save_CC"
20888
20889 else
20890 tagname=""
20891 fi
20892 ;;
20893
20894 GCJ)
20895 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020896 ac_ext=c
20897ac_cpp='$CPP $CPPFLAGS'
20898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020901
20902
20903# Source file extension for Java test sources.
20904ac_ext=java
20905
20906# Object file extension for compiled Java test sources.
20907objext=o
20908objext_GCJ=$objext
20909
20910# Code to be used in simple compile tests
20911lt_simple_compile_test_code="class foo {}\n"
20912
20913# Code to be used in simple link tests
20914lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20915
20916# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20917
20918# If no C compiler was specified, use CC.
20919LTCC=${LTCC-"$CC"}
20920
20921# Allow CC to be a program name with arguments.
20922compiler=$CC
20923
20924
20925# Allow CC to be a program name with arguments.
20926lt_save_CC="$CC"
20927CC=${GCJ-"gcj"}
20928compiler=$CC
20929compiler_GCJ=$CC
20930
20931# GCJ did not exist at the time GCC didn't implicitly link libc in.
20932archive_cmds_need_lc_GCJ=no
20933
John Criswell47fdd832003-07-14 16:52:07 +000020934
20935lt_prog_compiler_no_builtin_flag_GCJ=
20936
20937if test "$GCC" = yes; then
20938 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20939
Reid Spencer2706f8c2004-09-19 23:53:36 +000020940
20941echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020942echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20943if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20945else
20946 lt_cv_prog_compiler_rtti_exceptions=no
20947 ac_outfile=conftest.$ac_objext
20948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20949 lt_compiler_flag="-fno-rtti -fno-exceptions"
20950 # Insert the option either (1) after the last *FLAGS variable, or
20951 # (2) before a word containing "conftest.", or (3) at the end.
20952 # Note that $ac_compile itself does not contain backslashes and begins
20953 # with a dollar sign (not a hyphen), so the echo should work correctly.
20954 # The option is referenced via a variable to avoid confusing sed.
20955 lt_compile=`echo "$ac_compile" | $SED \
20956 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20958 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000020959 (eval echo "\"\$as_me:20959: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020960 (eval "$lt_compile" 2>conftest.err)
20961 ac_status=$?
20962 cat conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000020963 echo "$as_me:20963: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020964 if (exit $ac_status) && test -s "$ac_outfile"; then
20965 # The compiler can only warn and ignore the option if not recognized
20966 # So say no if there are warnings
20967 if test ! -s conftest.err; then
20968 lt_cv_prog_compiler_rtti_exceptions=yes
20969 fi
20970 fi
20971 $rm conftest*
20972
20973fi
20974echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20975echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20976
20977if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20978 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20979else
20980 :
20981fi
20982
20983fi
20984
20985lt_prog_compiler_wl_GCJ=
20986lt_prog_compiler_pic_GCJ=
20987lt_prog_compiler_static_GCJ=
20988
20989echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20990echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20991
20992 if test "$GCC" = yes; then
20993 lt_prog_compiler_wl_GCJ='-Wl,'
20994 lt_prog_compiler_static_GCJ='-static'
20995
20996 case $host_os in
20997 aix*)
20998 # All AIX code is PIC.
20999 if test "$host_cpu" = ia64; then
21000 # AIX 5 now supports IA64 processor
21001 lt_prog_compiler_static_GCJ='-Bstatic'
21002 fi
21003 ;;
21004
21005 amigaos*)
21006 # FIXME: we need at least 68020 code to build shared libraries, but
21007 # adding the `-m68020' flag to GCC prevents building anything better,
21008 # like `-m68040'.
21009 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21010 ;;
21011
21012 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21013 # PIC is the default for these OSes.
21014 ;;
21015
21016 mingw* | pw32* | os2*)
21017 # This hack is so that the source file can tell whether it is being
21018 # built for inclusion in a dll (and should export symbols for example).
21019 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21020 ;;
21021
21022 darwin* | rhapsody*)
21023 # PIC is the default on this platform
21024 # Common symbols not allowed in MH_DYLIB files
21025 lt_prog_compiler_pic_GCJ='-fno-common'
21026 ;;
21027
21028 msdosdjgpp*)
21029 # Just because we use GCC doesn't mean we suddenly get shared libraries
21030 # on systems that don't support them.
21031 lt_prog_compiler_can_build_shared_GCJ=no
21032 enable_shared=no
21033 ;;
21034
21035 sysv4*MP*)
21036 if test -d /usr/nec; then
21037 lt_prog_compiler_pic_GCJ=-Kconform_pic
21038 fi
21039 ;;
21040
21041 hpux*)
21042 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21043 # not for PA HP-UX.
21044 case "$host_cpu" in
21045 hppa*64*|ia64*)
21046 # +Z the default
21047 ;;
21048 *)
21049 lt_prog_compiler_pic_GCJ='-fPIC'
21050 ;;
21051 esac
21052 ;;
21053
21054 *)
21055 lt_prog_compiler_pic_GCJ='-fPIC'
21056 ;;
21057 esac
21058 else
21059 # PORTME Check for flag to pass linker flags through the system compiler.
21060 case $host_os in
21061 aix*)
21062 lt_prog_compiler_wl_GCJ='-Wl,'
21063 if test "$host_cpu" = ia64; then
21064 # AIX 5 now supports IA64 processor
21065 lt_prog_compiler_static_GCJ='-Bstatic'
21066 else
21067 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21068 fi
21069 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021070 darwin*)
21071 # PIC is the default on this platform
21072 # Common symbols not allowed in MH_DYLIB files
21073 case "$cc_basename" in
21074 xlc*)
21075 lt_prog_compiler_pic_GCJ='-qnocommon'
21076 lt_prog_compiler_wl_GCJ='-Wl,'
21077 ;;
21078 esac
21079 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021080
21081 mingw* | pw32* | os2*)
21082 # This hack is so that the source file can tell whether it is being
21083 # built for inclusion in a dll (and should export symbols for example).
21084 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21085 ;;
21086
21087 hpux9* | hpux10* | hpux11*)
21088 lt_prog_compiler_wl_GCJ='-Wl,'
21089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21090 # not for PA HP-UX.
21091 case "$host_cpu" in
21092 hppa*64*|ia64*)
21093 # +Z the default
21094 ;;
21095 *)
21096 lt_prog_compiler_pic_GCJ='+Z'
21097 ;;
21098 esac
21099 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21100 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21101 ;;
21102
21103 irix5* | irix6* | nonstopux*)
21104 lt_prog_compiler_wl_GCJ='-Wl,'
21105 # PIC (with -KPIC) is the default.
21106 lt_prog_compiler_static_GCJ='-non_shared'
21107 ;;
21108
21109 newsos6)
21110 lt_prog_compiler_pic_GCJ='-KPIC'
21111 lt_prog_compiler_static_GCJ='-Bstatic'
21112 ;;
21113
21114 linux*)
21115 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021116 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021117 lt_prog_compiler_wl_GCJ='-Wl,'
21118 lt_prog_compiler_pic_GCJ='-KPIC'
21119 lt_prog_compiler_static_GCJ='-static'
21120 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021121 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021122 lt_prog_compiler_wl_GCJ='-Wl,'
21123 # All Alpha code is PIC.
21124 lt_prog_compiler_static_GCJ='-non_shared'
21125 ;;
21126 esac
21127 ;;
21128
21129 osf3* | osf4* | osf5*)
21130 lt_prog_compiler_wl_GCJ='-Wl,'
21131 # All OSF/1 code is PIC.
21132 lt_prog_compiler_static_GCJ='-non_shared'
21133 ;;
21134
21135 sco3.2v5*)
21136 lt_prog_compiler_pic_GCJ='-Kpic'
21137 lt_prog_compiler_static_GCJ='-dn'
21138 ;;
21139
21140 solaris*)
21141 lt_prog_compiler_wl_GCJ='-Wl,'
21142 lt_prog_compiler_pic_GCJ='-KPIC'
21143 lt_prog_compiler_static_GCJ='-Bstatic'
21144 ;;
21145
21146 sunos4*)
21147 lt_prog_compiler_wl_GCJ='-Qoption ld '
21148 lt_prog_compiler_pic_GCJ='-PIC'
21149 lt_prog_compiler_static_GCJ='-Bstatic'
21150 ;;
21151
21152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21153 lt_prog_compiler_wl_GCJ='-Wl,'
21154 lt_prog_compiler_pic_GCJ='-KPIC'
21155 lt_prog_compiler_static_GCJ='-Bstatic'
21156 ;;
21157
21158 sysv4*MP*)
21159 if test -d /usr/nec ;then
21160 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21161 lt_prog_compiler_static_GCJ='-Bstatic'
21162 fi
21163 ;;
21164
21165 uts4*)
21166 lt_prog_compiler_pic_GCJ='-pic'
21167 lt_prog_compiler_static_GCJ='-Bstatic'
21168 ;;
21169
21170 *)
21171 lt_prog_compiler_can_build_shared_GCJ=no
21172 ;;
21173 esac
21174 fi
21175
21176echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21177echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21178
21179#
21180# Check to make sure the PIC flag actually works.
21181#
21182if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021183
21184echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021185echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21186if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21188else
21189 lt_prog_compiler_pic_works_GCJ=no
21190 ac_outfile=conftest.$ac_objext
21191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21192 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21193 # Insert the option either (1) after the last *FLAGS variable, or
21194 # (2) before a word containing "conftest.", or (3) at the end.
21195 # Note that $ac_compile itself does not contain backslashes and begins
21196 # with a dollar sign (not a hyphen), so the echo should work correctly.
21197 # The option is referenced via a variable to avoid confusing sed.
21198 lt_compile=`echo "$ac_compile" | $SED \
21199 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21201 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000021202 (eval echo "\"\$as_me:21202: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021203 (eval "$lt_compile" 2>conftest.err)
21204 ac_status=$?
21205 cat conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000021206 echo "$as_me:21206: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021207 if (exit $ac_status) && test -s "$ac_outfile"; then
21208 # The compiler can only warn and ignore the option if not recognized
21209 # So say no if there are warnings
21210 if test ! -s conftest.err; then
21211 lt_prog_compiler_pic_works_GCJ=yes
21212 fi
21213 fi
21214 $rm conftest*
21215
21216fi
21217echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21218echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21219
21220if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21221 case $lt_prog_compiler_pic_GCJ in
21222 "" | " "*) ;;
21223 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21224 esac
21225else
21226 lt_prog_compiler_pic_GCJ=
21227 lt_prog_compiler_can_build_shared_GCJ=no
21228fi
21229
21230fi
21231case "$host_os" in
21232 # For platforms which do not support PIC, -DPIC is meaningless:
21233 *djgpp*)
21234 lt_prog_compiler_pic_GCJ=
21235 ;;
21236 *)
21237 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21238 ;;
21239esac
21240
21241echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21242echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21243if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21245else
21246 lt_cv_prog_compiler_c_o_GCJ=no
21247 $rm -r conftest 2>/dev/null
21248 mkdir conftest
21249 cd conftest
21250 mkdir out
21251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21252
John Criswell47fdd832003-07-14 16:52:07 +000021253 lt_compiler_flag="-o out/conftest2.$ac_objext"
21254 # Insert the option either (1) after the last *FLAGS variable, or
21255 # (2) before a word containing "conftest.", or (3) at the end.
21256 # Note that $ac_compile itself does not contain backslashes and begins
21257 # with a dollar sign (not a hyphen), so the echo should work correctly.
21258 lt_compile=`echo "$ac_compile" | $SED \
21259 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21261 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8a2d4712004-12-16 17:48:14 +000021262 (eval echo "\"\$as_me:21262: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021263 (eval "$lt_compile" 2>out/conftest.err)
21264 ac_status=$?
21265 cat out/conftest.err >&5
Reid Spencer8a2d4712004-12-16 17:48:14 +000021266 echo "$as_me:21266: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21268 then
21269 # The compiler can only warn and ignore the option if not recognized
21270 # So say no if there are warnings
21271 if test ! -s out/conftest.err; then
21272 lt_cv_prog_compiler_c_o_GCJ=yes
21273 fi
21274 fi
21275 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021276 $rm conftest*
21277 # SGI C++ compiler will create directory out/ii_files/ for
21278 # template instantiation
21279 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21280 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021281 cd ..
21282 rmdir conftest
21283 $rm conftest*
21284
21285fi
21286echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21287echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21288
21289
21290hard_links="nottested"
21291if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21292 # do not overwrite the value of need_locks provided by the user
21293 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21294echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21295 hard_links=yes
21296 $rm conftest*
21297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21298 touch conftest.a
21299 ln conftest.a conftest.b 2>&5 || hard_links=no
21300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21301 echo "$as_me:$LINENO: result: $hard_links" >&5
21302echo "${ECHO_T}$hard_links" >&6
21303 if test "$hard_links" = no; then
21304 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21305echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21306 need_locks=warn
21307 fi
21308else
21309 need_locks=no
21310fi
21311
21312echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21313echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21314
21315 runpath_var=
21316 allow_undefined_flag_GCJ=
21317 enable_shared_with_static_runtimes_GCJ=no
21318 archive_cmds_GCJ=
21319 archive_expsym_cmds_GCJ=
21320 old_archive_From_new_cmds_GCJ=
21321 old_archive_from_expsyms_cmds_GCJ=
21322 export_dynamic_flag_spec_GCJ=
21323 whole_archive_flag_spec_GCJ=
21324 thread_safe_flag_spec_GCJ=
21325 hardcode_libdir_flag_spec_GCJ=
21326 hardcode_libdir_flag_spec_ld_GCJ=
21327 hardcode_libdir_separator_GCJ=
21328 hardcode_direct_GCJ=no
21329 hardcode_minus_L_GCJ=no
21330 hardcode_shlibpath_var_GCJ=unsupported
21331 link_all_deplibs_GCJ=unknown
21332 hardcode_automatic_GCJ=no
21333 module_cmds_GCJ=
21334 module_expsym_cmds_GCJ=
21335 always_export_symbols_GCJ=no
21336 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21337 # include_expsyms should be a list of space-separated symbols to be *always*
21338 # included in the symbol list
21339 include_expsyms_GCJ=
21340 # exclude_expsyms can be an extended regexp of symbols to exclude
21341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21343 # as well as any symbol that contains `d'.
21344 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21346 # platforms (ab)use it in PIC code, but their linkers get confused if
21347 # the symbol is explicitly referenced. Since portable code cannot
21348 # rely on this symbol name, it's probably fine to never include it in
21349 # preloaded symbol tables.
21350 extract_expsyms_cmds=
21351
21352 case $host_os in
21353 cygwin* | mingw* | pw32*)
21354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21355 # When not using gcc, we currently assume that we are using
21356 # Microsoft Visual C++.
21357 if test "$GCC" != yes; then
21358 with_gnu_ld=no
21359 fi
21360 ;;
21361 openbsd*)
21362 with_gnu_ld=no
21363 ;;
21364 esac
21365
21366 ld_shlibs_GCJ=yes
21367 if test "$with_gnu_ld" = yes; then
21368 # If archive_cmds runs LD, not CC, wlarc should be empty
21369 wlarc='${wl}'
21370
21371 # See if GNU ld supports shared libraries.
21372 case $host_os in
21373 aix3* | aix4* | aix5*)
21374 # On AIX/PPC, the GNU linker is very broken
21375 if test "$host_cpu" != ia64; then
21376 ld_shlibs_GCJ=no
21377 cat <<EOF 1>&2
21378
21379*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21380*** to be unable to reliably create shared libraries on AIX.
21381*** Therefore, libtool is disabling shared libraries support. If you
21382*** really care for shared libraries, you may want to modify your PATH
21383*** so that a non-GNU linker is found, and then restart.
21384
21385EOF
21386 fi
21387 ;;
21388
21389 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021390 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 +000021391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21392 hardcode_minus_L_GCJ=yes
21393
21394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21395 # that the semantics of dynamic libraries on AmigaOS, at least up
21396 # to version 4, is to share data among multiple programs linked
21397 # with the same dynamic library. Since this doesn't match the
21398 # behavior of shared libraries on other platforms, we can't use
21399 # them.
21400 ld_shlibs_GCJ=no
21401 ;;
21402
21403 beos*)
21404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21405 allow_undefined_flag_GCJ=unsupported
21406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21407 # support --undefined. This deserves some investigation. FIXME
21408 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21409 else
21410 ld_shlibs_GCJ=no
21411 fi
21412 ;;
21413
21414 cygwin* | mingw* | pw32*)
21415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21416 # as there is no search path for DLLs.
21417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21418 allow_undefined_flag_GCJ=unsupported
21419 always_export_symbols_GCJ=no
21420 enable_shared_with_static_runtimes_GCJ=yes
21421 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21422
21423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21425 # If the export-symbols file already is a .def file (1st line
21426 # is EXPORTS), use it as is; otherwise, prepend...
21427 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21428 cp $export_symbols $output_objdir/$soname.def;
21429 else
21430 echo EXPORTS > $output_objdir/$soname.def;
21431 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021432 fi~
21433 $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 +000021434 else
21435 ld_shlibs=no
21436 fi
21437 ;;
21438
21439 netbsd*)
21440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21441 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21442 wlarc=
21443 else
21444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21446 fi
21447 ;;
21448
21449 solaris* | sysv5*)
21450 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21451 ld_shlibs_GCJ=no
21452 cat <<EOF 1>&2
21453
21454*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21455*** create shared libraries on Solaris systems. Therefore, libtool
21456*** is disabling shared libraries support. We urge you to upgrade GNU
21457*** binutils to release 2.9.1 or newer. Another option is to modify
21458*** your PATH or compiler configuration so that the native linker is
21459*** used, and then restart.
21460
21461EOF
21462 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21463 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21464 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21465 else
21466 ld_shlibs_GCJ=no
21467 fi
21468 ;;
21469
21470 sunos4*)
21471 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21472 wlarc=
21473 hardcode_direct_GCJ=yes
21474 hardcode_shlibpath_var_GCJ=no
21475 ;;
21476
Reid Spencer2706f8c2004-09-19 23:53:36 +000021477 linux*)
21478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21479 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21480 archive_cmds_GCJ="$tmp_archive_cmds"
21481 supports_anon_versioning=no
21482 case `$LD -v 2>/dev/null` in
21483 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21486 *\ 2.11.*) ;; # other 2.11 versions
21487 *) supports_anon_versioning=yes ;;
21488 esac
21489 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021490 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21491cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21492$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021493 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21494 else
21495 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21496 fi
21497 else
21498 ld_shlibs_GCJ=no
21499 fi
21500 ;;
21501
John Criswell47fdd832003-07-14 16:52:07 +000021502 *)
21503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21506 else
21507 ld_shlibs_GCJ=no
21508 fi
21509 ;;
21510 esac
21511
21512 if test "$ld_shlibs_GCJ" = yes; then
21513 runpath_var=LD_RUN_PATH
21514 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21515 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21516 # ancient GNU ld didn't support --whole-archive et. al.
21517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21518 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21519 else
21520 whole_archive_flag_spec_GCJ=
21521 fi
21522 fi
21523 else
21524 # PORTME fill in a description of your system's linker (not GNU ld)
21525 case $host_os in
21526 aix3*)
21527 allow_undefined_flag_GCJ=unsupported
21528 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021529 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 +000021530 # Note: this linker hardcodes the directories in LIBPATH if there
21531 # are no directories specified by -L.
21532 hardcode_minus_L_GCJ=yes
21533 if test "$GCC" = yes && test -z "$link_static_flag"; then
21534 # Neither direct hardcoding nor static linking is supported with a
21535 # broken collect2.
21536 hardcode_direct_GCJ=unsupported
21537 fi
21538 ;;
21539
21540 aix4* | aix5*)
21541 if test "$host_cpu" = ia64; then
21542 # On IA64, the linker does run time linking by default, so we don't
21543 # have to do anything special.
21544 aix_use_runtimelinking=no
21545 exp_sym_flag='-Bexport'
21546 no_entry_flag=""
21547 else
21548 # If we're using GNU nm, then we don't want the "-C" option.
21549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21550 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21551 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'
21552 else
21553 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'
21554 fi
21555 aix_use_runtimelinking=no
21556
21557 # Test if we are trying to use run time linking or normal
21558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21559 # need to do runtime linking.
21560 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21561 for ld_flag in $LDFLAGS; do
21562 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21563 aix_use_runtimelinking=yes
21564 break
21565 fi
21566 done
21567 esac
21568
21569 exp_sym_flag='-bexport'
21570 no_entry_flag='-bnoentry'
21571 fi
21572
21573 # When large executables or shared objects are built, AIX ld can
21574 # have problems creating the table of contents. If linking a library
21575 # or program results in "error TOC overflow" add -mminimal-toc to
21576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21578
21579 archive_cmds_GCJ=''
21580 hardcode_direct_GCJ=yes
21581 hardcode_libdir_separator_GCJ=':'
21582 link_all_deplibs_GCJ=yes
21583
21584 if test "$GCC" = yes; then
21585 case $host_os in aix4.012|aix4.012.*)
21586 # We only want to do this on AIX 4.2 and lower, the check
21587 # below for broken collect2 doesn't work under 4.3+
21588 collect2name=`${CC} -print-prog-name=collect2`
21589 if test -f "$collect2name" && \
21590 strings "$collect2name" | grep resolve_lib_name >/dev/null
21591 then
21592 # We have reworked collect2
21593 hardcode_direct_GCJ=yes
21594 else
21595 # We have old collect2
21596 hardcode_direct_GCJ=unsupported
21597 # It fails to find uninstalled libraries when the uninstalled
21598 # path is not listed in the libpath. Setting hardcode_minus_L
21599 # to unsupported forces relinking
21600 hardcode_minus_L_GCJ=yes
21601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21602 hardcode_libdir_separator_GCJ=
21603 fi
21604 esac
21605 shared_flag='-shared'
21606 else
21607 # not using gcc
21608 if test "$host_cpu" = ia64; then
21609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21610 # chokes on -Wl,-G. The following line is correct:
21611 shared_flag='-G'
21612 else
21613 if test "$aix_use_runtimelinking" = yes; then
21614 shared_flag='${wl}-G'
21615 else
21616 shared_flag='${wl}-bM:SRE'
21617 fi
21618 fi
21619 fi
21620
21621 # It seems that -bexpall does not export symbols beginning with
21622 # underscore (_), so it is better to generate a list of symbols to export.
21623 always_export_symbols_GCJ=yes
21624 if test "$aix_use_runtimelinking" = yes; then
21625 # Warning - without using the other runtime loading flags (-brtl),
21626 # -berok will link without error, but may produce a broken library.
21627 allow_undefined_flag_GCJ='-berok'
21628 # Determine the default libpath from the value encoded in an empty executable.
21629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021630/* confdefs.h. */
21631_ACEOF
21632cat confdefs.h >>conftest.$ac_ext
21633cat >>conftest.$ac_ext <<_ACEOF
21634/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021635
John Criswell47fdd832003-07-14 16:52:07 +000021636int
21637main ()
21638{
21639
21640 ;
21641 return 0;
21642}
21643_ACEOF
21644rm -f conftest.$ac_objext conftest$ac_exeext
21645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021646 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666
21667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21668}'`
21669# Check for a 64-bit object if we didn't find anything.
21670if 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; }
21671}'`; fi
21672else
21673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021674sed 's/^/| /' conftest.$ac_ext >&5
21675
John Criswell47fdd832003-07-14 16:52:07 +000021676fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021677rm -f conftest.err conftest.$ac_objext \
21678 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21680
21681 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21682 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"
21683 else
21684 if test "$host_cpu" = ia64; then
21685 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21686 allow_undefined_flag_GCJ="-z nodefs"
21687 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"
21688 else
21689 # Determine the default libpath from the value encoded in an empty executable.
21690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021696
John Criswell47fdd832003-07-14 16:52:07 +000021697int
21698main ()
21699{
21700
21701 ;
21702 return 0;
21703}
21704_ACEOF
21705rm -f conftest.$ac_objext conftest$ac_exeext
21706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021707 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021714 { ac_try='test -z "$ac_c_werror_flag"
21715 || test ! -s conftest.err'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; } &&
21721 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727
21728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21729}'`
21730# Check for a 64-bit object if we didn't find anything.
21731if 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; }
21732}'`; fi
21733else
21734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021735sed 's/^/| /' conftest.$ac_ext >&5
21736
John Criswell47fdd832003-07-14 16:52:07 +000021737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738rm -f conftest.err conftest.$ac_objext \
21739 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21741
21742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21743 # Warning - without using the other run time loading flags,
21744 # -berok will link without error, but may produce a broken library.
21745 no_undefined_flag_GCJ=' ${wl}-bernotok'
21746 allow_undefined_flag_GCJ=' ${wl}-berok'
21747 # -bexpall does not export symbols beginning with underscore (_)
21748 always_export_symbols_GCJ=yes
21749 # Exported symbols can be pulled into shared objects from archives
21750 whole_archive_flag_spec_GCJ=' '
21751 archive_cmds_need_lc_GCJ=yes
21752 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021753 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 +000021754 fi
21755 fi
21756 ;;
21757
21758 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021759 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 +000021760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21761 hardcode_minus_L_GCJ=yes
21762 # see comment about different semantics on the GNU ld section
21763 ld_shlibs_GCJ=no
21764 ;;
21765
Reid Spencer2706f8c2004-09-19 23:53:36 +000021766 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021767 export_dynamic_flag_spec_GCJ=-rdynamic
21768 ;;
21769
21770 cygwin* | mingw* | pw32*)
21771 # When not using gcc, we currently assume that we are using
21772 # Microsoft Visual C++.
21773 # hardcode_libdir_flag_spec is actually meaningless, as there is
21774 # no search path for DLLs.
21775 hardcode_libdir_flag_spec_GCJ=' '
21776 allow_undefined_flag_GCJ=unsupported
21777 # Tell ltmain to make .lib files, not .a files.
21778 libext=lib
21779 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021780 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021781 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021782 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 +000021783 # The linker will automatically build a .lib file if we build a DLL.
21784 old_archive_From_new_cmds_GCJ='true'
21785 # FIXME: Should let the user specify the lib program.
21786 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21787 fix_srcfile_path='`cygpath -w "$srcfile"`'
21788 enable_shared_with_static_runtimes_GCJ=yes
21789 ;;
21790
21791 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021792 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021793 rhapsody* | darwin1.[012])
21794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21795 ;;
21796 *) # Darwin 1.3 on
21797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21798 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21799 else
21800 case ${MACOSX_DEPLOYMENT_TARGET} in
21801 10.[012])
21802 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21803 ;;
21804 10.*)
21805 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21806 ;;
21807 esac
21808 fi
21809 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021810 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021811 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021812 hardcode_direct_GCJ=no
21813 hardcode_automatic_GCJ=yes
21814 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021815 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021816 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021817 if test "$GCC" = yes ; then
21818 output_verbose_link_cmd='echo'
21819 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21821 # 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 +000021822 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}'
21823 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 +000021824 else
21825 case "$cc_basename" in
21826 xlc*)
21827 output_verbose_link_cmd='echo'
21828 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21830 # 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 +000021831 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}'
21832 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 +000021833 ;;
21834 *)
21835 ld_shlibs_GCJ=no
21836 ;;
21837 esac
John Criswell47fdd832003-07-14 16:52:07 +000021838 fi
21839 ;;
21840
21841 dgux*)
21842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21844 hardcode_shlibpath_var_GCJ=no
21845 ;;
21846
21847 freebsd1*)
21848 ld_shlibs_GCJ=no
21849 ;;
21850
21851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21852 # support. Future versions do this automatically, but an explicit c++rt0.o
21853 # does not break anything, and helps significantly (at the cost of a little
21854 # extra space).
21855 freebsd2.2*)
21856 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21857 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21858 hardcode_direct_GCJ=yes
21859 hardcode_shlibpath_var_GCJ=no
21860 ;;
21861
21862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21863 freebsd2*)
21864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21865 hardcode_direct_GCJ=yes
21866 hardcode_minus_L_GCJ=yes
21867 hardcode_shlibpath_var_GCJ=no
21868 ;;
21869
21870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021871 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021872 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21873 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21874 hardcode_direct_GCJ=yes
21875 hardcode_shlibpath_var_GCJ=no
21876 ;;
21877
21878 hpux9*)
21879 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021880 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 +000021881 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021882 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 +000021883 fi
21884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21885 hardcode_libdir_separator_GCJ=:
21886 hardcode_direct_GCJ=yes
21887
21888 # hardcode_minus_L: Not really in the search PATH,
21889 # but as the default location of the library.
21890 hardcode_minus_L_GCJ=yes
21891 export_dynamic_flag_spec_GCJ='${wl}-E'
21892 ;;
21893
21894 hpux10* | hpux11*)
21895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21896 case "$host_cpu" in
21897 hppa*64*|ia64*)
21898 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21899 ;;
21900 *)
21901 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21902 ;;
21903 esac
21904 else
21905 case "$host_cpu" in
21906 hppa*64*|ia64*)
21907 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21908 ;;
21909 *)
21910 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21911 ;;
21912 esac
21913 fi
21914 if test "$with_gnu_ld" = no; then
21915 case "$host_cpu" in
21916 hppa*64*)
21917 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21918 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21919 hardcode_libdir_separator_GCJ=:
21920 hardcode_direct_GCJ=no
21921 hardcode_shlibpath_var_GCJ=no
21922 ;;
21923 ia64*)
21924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21925 hardcode_direct_GCJ=no
21926 hardcode_shlibpath_var_GCJ=no
21927
21928 # hardcode_minus_L: Not really in the search PATH,
21929 # but as the default location of the library.
21930 hardcode_minus_L_GCJ=yes
21931 ;;
21932 *)
21933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21934 hardcode_libdir_separator_GCJ=:
21935 hardcode_direct_GCJ=yes
21936 export_dynamic_flag_spec_GCJ='${wl}-E'
21937
21938 # hardcode_minus_L: Not really in the search PATH,
21939 # but as the default location of the library.
21940 hardcode_minus_L_GCJ=yes
21941 ;;
21942 esac
21943 fi
21944 ;;
21945
21946 irix5* | irix6* | nonstopux*)
21947 if test "$GCC" = yes; then
21948 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'
21949 else
21950 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'
21951 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21952 fi
21953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21954 hardcode_libdir_separator_GCJ=:
21955 link_all_deplibs_GCJ=yes
21956 ;;
21957
21958 netbsd*)
21959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21961 else
21962 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21963 fi
21964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21965 hardcode_direct_GCJ=yes
21966 hardcode_shlibpath_var_GCJ=no
21967 ;;
21968
21969 newsos6)
21970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21971 hardcode_direct_GCJ=yes
21972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21973 hardcode_libdir_separator_GCJ=:
21974 hardcode_shlibpath_var_GCJ=no
21975 ;;
21976
21977 openbsd*)
21978 hardcode_direct_GCJ=yes
21979 hardcode_shlibpath_var_GCJ=no
21980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21981 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021982 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 +000021983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21984 export_dynamic_flag_spec_GCJ='${wl}-E'
21985 else
21986 case $host_os in
21987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21989 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21990 ;;
21991 *)
21992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21994 ;;
21995 esac
21996 fi
21997 ;;
21998
21999 os2*)
22000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22001 hardcode_minus_L_GCJ=yes
22002 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022003 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 +000022004 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22005 ;;
22006
22007 osf3*)
22008 if test "$GCC" = yes; then
22009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22010 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'
22011 else
22012 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22013 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'
22014 fi
22015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22016 hardcode_libdir_separator_GCJ=:
22017 ;;
22018
22019 osf4* | osf5*) # as osf3* with the addition of -msym flag
22020 if test "$GCC" = yes; then
22021 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22022 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'
22023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22024 else
22025 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22026 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 +000022027 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~
22028 $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'
22029
John Criswell47fdd832003-07-14 16:52:07 +000022030 # Both c and cxx compiler support -rpath directly
22031 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22032 fi
22033 hardcode_libdir_separator_GCJ=:
22034 ;;
22035
22036 sco3.2v5*)
22037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22038 hardcode_shlibpath_var_GCJ=no
22039 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22040 runpath_var=LD_RUN_PATH
22041 hardcode_runpath_var=yes
22042 ;;
22043
22044 solaris*)
22045 no_undefined_flag_GCJ=' -z text'
22046 if test "$GCC" = yes; then
22047 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022048 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22049 $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 +000022050 else
22051 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022052 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22053 $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 +000022054 fi
22055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22056 hardcode_shlibpath_var_GCJ=no
22057 case $host_os in
22058 solaris2.[0-5] | solaris2.[0-5].*) ;;
22059 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22060 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22061 esac
22062 link_all_deplibs_GCJ=yes
22063 ;;
22064
22065 sunos4*)
22066 if test "x$host_vendor" = xsequent; then
22067 # Use $CC to link under sequent, because it throws in some extra .o
22068 # files that make .init and .fini sections work.
22069 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22070 else
22071 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22072 fi
22073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22074 hardcode_direct_GCJ=yes
22075 hardcode_minus_L_GCJ=yes
22076 hardcode_shlibpath_var_GCJ=no
22077 ;;
22078
22079 sysv4)
22080 case $host_vendor in
22081 sni)
22082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22083 hardcode_direct_GCJ=yes # is this really true???
22084 ;;
22085 siemens)
22086 ## LD is ld it makes a PLAMLIB
22087 ## CC just makes a GrossModule.
22088 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22089 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22090 hardcode_direct_GCJ=no
22091 ;;
22092 motorola)
22093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22094 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22095 ;;
22096 esac
22097 runpath_var='LD_RUN_PATH'
22098 hardcode_shlibpath_var_GCJ=no
22099 ;;
22100
22101 sysv4.3*)
22102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22103 hardcode_shlibpath_var_GCJ=no
22104 export_dynamic_flag_spec_GCJ='-Bexport'
22105 ;;
22106
22107 sysv4*MP*)
22108 if test -d /usr/nec; then
22109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22110 hardcode_shlibpath_var_GCJ=no
22111 runpath_var=LD_RUN_PATH
22112 hardcode_runpath_var=yes
22113 ld_shlibs_GCJ=yes
22114 fi
22115 ;;
22116
22117 sysv4.2uw2*)
22118 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_direct_GCJ=yes
22120 hardcode_minus_L_GCJ=no
22121 hardcode_shlibpath_var_GCJ=no
22122 hardcode_runpath_var=yes
22123 runpath_var=LD_RUN_PATH
22124 ;;
22125
22126 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22127 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22128 if test "$GCC" = yes; then
22129 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22130 else
22131 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22132 fi
22133 runpath_var='LD_RUN_PATH'
22134 hardcode_shlibpath_var_GCJ=no
22135 ;;
22136
22137 sysv5*)
22138 no_undefined_flag_GCJ=' -z text'
22139 # $CC -shared without GNU ld will not create a library from C++
22140 # object files and a static libstdc++, better avoid it by now
22141 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_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 $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 +000022144 hardcode_libdir_flag_spec_GCJ=
22145 hardcode_shlibpath_var_GCJ=no
22146 runpath_var='LD_RUN_PATH'
22147 ;;
22148
22149 uts4*)
22150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22152 hardcode_shlibpath_var_GCJ=no
22153 ;;
22154
22155 *)
22156 ld_shlibs_GCJ=no
22157 ;;
22158 esac
22159 fi
22160
22161echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22162echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22163test "$ld_shlibs_GCJ" = no && can_build_shared=no
22164
22165variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22166if test "$GCC" = yes; then
22167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22168fi
22169
22170#
22171# Do we need to explicitly link libc?
22172#
22173case "x$archive_cmds_need_lc_GCJ" in
22174x|xyes)
22175 # Assume -lc should be added
22176 archive_cmds_need_lc_GCJ=yes
22177
22178 if test "$enable_shared" = yes && test "$GCC" = yes; then
22179 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022180 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022181 # FIXME: we may have to deal with multi-command sequences.
22182 ;;
22183 '$CC '*)
22184 # Test whether the compiler implicitly links with -lc since on some
22185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22186 # to ld, don't add -lc before -lgcc.
22187 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22188echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22189 $rm conftest*
22190 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22191
22192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193 (eval $ac_compile) 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } 2>conftest.err; then
22197 soname=conftest
22198 lib=conftest
22199 libobjs=conftest.$ac_objext
22200 deplibs=
22201 wl=$lt_prog_compiler_wl_GCJ
22202 compiler_flags=-v
22203 linker_flags=-v
22204 verstring=
22205 output_objdir=.
22206 libname=conftest
22207 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22208 allow_undefined_flag_GCJ=
22209 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22210 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }
22214 then
22215 archive_cmds_need_lc_GCJ=no
22216 else
22217 archive_cmds_need_lc_GCJ=yes
22218 fi
22219 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22220 else
22221 cat conftest.err 1>&5
22222 fi
22223 $rm conftest*
22224 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22225echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22226 ;;
22227 esac
22228 fi
22229 ;;
22230esac
22231
John Criswell47fdd832003-07-14 16:52:07 +000022232echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22233echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22234library_names_spec=
22235libname_spec='lib$name'
22236soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022237shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022238postinstall_cmds=
22239postuninstall_cmds=
22240finish_cmds=
22241finish_eval=
22242shlibpath_var=
22243shlibpath_overrides_runpath=unknown
22244version_type=none
22245dynamic_linker="$host_os ld.so"
22246sys_lib_dlsearch_path_spec="/lib /usr/lib"
22247if test "$GCC" = yes; then
22248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22249 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22250 # if the path contains ";" then we assume it to be the separator
22251 # otherwise default to the standard path separator (i.e. ":") - it is
22252 # assumed that no part of a normal pathname contains ";" but that should
22253 # okay in the real world where ";" in dirpaths is itself problematic.
22254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22255 else
22256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22257 fi
22258else
22259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22260fi
22261need_lib_prefix=unknown
22262hardcode_into_libs=no
22263
22264# when you set need_version to no, make sure it does not cause -set_version
22265# flags to be left without arguments
22266need_version=unknown
22267
22268case $host_os in
22269aix3*)
22270 version_type=linux
22271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22272 shlibpath_var=LIBPATH
22273
22274 # AIX 3 has no versioning support, so we append a major version to the name.
22275 soname_spec='${libname}${release}${shared_ext}$major'
22276 ;;
22277
22278aix4* | aix5*)
22279 version_type=linux
22280 need_lib_prefix=no
22281 need_version=no
22282 hardcode_into_libs=yes
22283 if test "$host_cpu" = ia64; then
22284 # AIX 5 supports IA64
22285 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22286 shlibpath_var=LD_LIBRARY_PATH
22287 else
22288 # With GCC up to 2.95.x, collect2 would create an import file
22289 # for dependence libraries. The import file would start with
22290 # the line `#! .'. This would cause the generated library to
22291 # depend on `.', always an invalid library. This was fixed in
22292 # development snapshots of GCC prior to 3.0.
22293 case $host_os in
22294 aix4 | aix4.[01] | aix4.[01].*)
22295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22296 echo ' yes '
22297 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22298 :
22299 else
22300 can_build_shared=no
22301 fi
22302 ;;
22303 esac
22304 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22305 # soname into executable. Probably we can add versioning support to
22306 # collect2, so additional links can be useful in future.
22307 if test "$aix_use_runtimelinking" = yes; then
22308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22309 # instead of lib<name>.a to let people know that these are not
22310 # typical AIX shared libraries.
22311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22312 else
22313 # We preserve .a as extension for shared libraries through AIX4.2
22314 # and later when we are not doing run time linking.
22315 library_names_spec='${libname}${release}.a $libname.a'
22316 soname_spec='${libname}${release}${shared_ext}$major'
22317 fi
22318 shlibpath_var=LIBPATH
22319 fi
22320 ;;
22321
22322amigaos*)
22323 library_names_spec='$libname.ixlibrary $libname.a'
22324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022325 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 +000022326 ;;
22327
22328beos*)
22329 library_names_spec='${libname}${shared_ext}'
22330 dynamic_linker="$host_os ld.so"
22331 shlibpath_var=LIBRARY_PATH
22332 ;;
22333
Reid Spencer2706f8c2004-09-19 23:53:36 +000022334bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022335 version_type=linux
22336 need_version=no
22337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22338 soname_spec='${libname}${release}${shared_ext}$major'
22339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22340 shlibpath_var=LD_LIBRARY_PATH
22341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22343 # the default ld.so.conf also contains /usr/contrib/lib and
22344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22345 # libtool to hard-code these into programs
22346 ;;
22347
22348cygwin* | mingw* | pw32*)
22349 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022350 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022351 need_version=no
22352 need_lib_prefix=no
22353
22354 case $GCC,$host_os in
22355 yes,cygwin* | yes,mingw* | yes,pw32*)
22356 library_names_spec='$libname.dll.a'
22357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022358 postinstall_cmds='base_file=`basename \${file}`~
22359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22360 dldir=$destdir/`dirname \$dlpath`~
22361 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022362 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22364 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022365 $rm \$dlpath'
22366 shlibpath_overrides_runpath=yes
22367
22368 case $host_os in
22369 cygwin*)
22370 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22371 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 +000022372 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022373 ;;
22374 mingw*)
22375 # MinGW DLLs use traditional 'lib' prefix
22376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22378 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22379 # It is most probably a Windows format PATH printed by
22380 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22381 # path with ; separators, and with drive letters. We can handle the
22382 # drive letters (cygwin fileutils understands them), so leave them,
22383 # especially as we might pass files found there to a mingw objdump,
22384 # which wouldn't understand a cygwinified path. Ahh.
22385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22386 else
22387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22388 fi
22389 ;;
22390 pw32*)
22391 # pw32 DLLs use 'pw' prefix rather than 'lib'
22392 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22393 ;;
22394 esac
22395 ;;
22396
22397 *)
22398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22399 ;;
22400 esac
22401 dynamic_linker='Win32 ld.exe'
22402 # FIXME: first we should search . and the directory the executable is in
22403 shlibpath_var=PATH
22404 ;;
22405
22406darwin* | rhapsody*)
22407 dynamic_linker="$host_os dyld"
22408 version_type=darwin
22409 need_lib_prefix=no
22410 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022411 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022412 soname_spec='${libname}${release}${major}$shared_ext'
22413 shlibpath_overrides_runpath=yes
22414 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022415 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022416 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022417 if test "$GCC" = yes; then
22418 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"`
22419 else
22420 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022421 fi
22422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22423 ;;
22424
22425dgux*)
22426 version_type=linux
22427 need_lib_prefix=no
22428 need_version=no
22429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 shlibpath_var=LD_LIBRARY_PATH
22432 ;;
22433
22434freebsd1*)
22435 dynamic_linker=no
22436 ;;
22437
Reid Spencer2706f8c2004-09-19 23:53:36 +000022438kfreebsd*-gnu)
22439 version_type=linux
22440 need_lib_prefix=no
22441 need_version=no
22442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22443 soname_spec='${libname}${release}${shared_ext}$major'
22444 shlibpath_var=LD_LIBRARY_PATH
22445 shlibpath_overrides_runpath=no
22446 hardcode_into_libs=yes
22447 dynamic_linker='GNU ld.so'
22448 ;;
22449
John Criswell47fdd832003-07-14 16:52:07 +000022450freebsd*)
22451 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22452 version_type=freebsd-$objformat
22453 case $version_type in
22454 freebsd-elf*)
22455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22456 need_version=no
22457 need_lib_prefix=no
22458 ;;
22459 freebsd-*)
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22461 need_version=yes
22462 ;;
22463 esac
22464 shlibpath_var=LD_LIBRARY_PATH
22465 case $host_os in
22466 freebsd2*)
22467 shlibpath_overrides_runpath=yes
22468 ;;
22469 freebsd3.01* | freebsdelf3.01*)
22470 shlibpath_overrides_runpath=yes
22471 hardcode_into_libs=yes
22472 ;;
22473 *) # from 3.2 on
22474 shlibpath_overrides_runpath=no
22475 hardcode_into_libs=yes
22476 ;;
22477 esac
22478 ;;
22479
22480gnu*)
22481 version_type=linux
22482 need_lib_prefix=no
22483 need_version=no
22484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22485 soname_spec='${libname}${release}${shared_ext}$major'
22486 shlibpath_var=LD_LIBRARY_PATH
22487 hardcode_into_libs=yes
22488 ;;
22489
22490hpux9* | hpux10* | hpux11*)
22491 # Give a soname corresponding to the major version so that dld.sl refuses to
22492 # link against other versions.
22493 version_type=sunos
22494 need_lib_prefix=no
22495 need_version=no
22496 case "$host_cpu" in
22497 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022498 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022499 hardcode_into_libs=yes
22500 dynamic_linker="$host_os dld.so"
22501 shlibpath_var=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504 soname_spec='${libname}${release}${shared_ext}$major'
22505 if test "X$HPUX_IA64_MODE" = X32; then
22506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22507 else
22508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22509 fi
22510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22511 ;;
22512 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022513 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022514 hardcode_into_libs=yes
22515 dynamic_linker="$host_os dld.sl"
22516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22519 soname_spec='${libname}${release}${shared_ext}$major'
22520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22522 ;;
22523 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022524 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022525 dynamic_linker="$host_os dld.sl"
22526 shlibpath_var=SHLIB_PATH
22527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22529 soname_spec='${libname}${release}${shared_ext}$major'
22530 ;;
22531 esac
22532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22533 postinstall_cmds='chmod 555 $lib'
22534 ;;
22535
22536irix5* | irix6* | nonstopux*)
22537 case $host_os in
22538 nonstopux*) version_type=nonstopux ;;
22539 *)
22540 if test "$lt_cv_prog_gnu_ld" = yes; then
22541 version_type=linux
22542 else
22543 version_type=irix
22544 fi ;;
22545 esac
22546 need_lib_prefix=no
22547 need_version=no
22548 soname_spec='${libname}${release}${shared_ext}$major'
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22550 case $host_os in
22551 irix5* | nonstopux*)
22552 libsuff= shlibsuff=
22553 ;;
22554 *)
22555 case $LD in # libtool.m4 will add one of these switches to LD
22556 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22557 libsuff= shlibsuff= libmagic=32-bit;;
22558 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22559 libsuff=32 shlibsuff=N32 libmagic=N32;;
22560 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22561 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22562 *) libsuff= shlibsuff= libmagic=never-match;;
22563 esac
22564 ;;
22565 esac
22566 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22567 shlibpath_overrides_runpath=no
22568 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22569 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22570 hardcode_into_libs=yes
22571 ;;
22572
22573# No shared lib support for Linux oldld, aout, or coff.
22574linux*oldld* | linux*aout* | linux*coff*)
22575 dynamic_linker=no
22576 ;;
22577
22578# This must be Linux ELF.
22579linux*)
22580 version_type=linux
22581 need_lib_prefix=no
22582 need_version=no
22583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22584 soname_spec='${libname}${release}${shared_ext}$major'
22585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22586 shlibpath_var=LD_LIBRARY_PATH
22587 shlibpath_overrides_runpath=no
22588 # This implies no fast_install, which is unacceptable.
22589 # Some rework will be needed to allow for fast_install
22590 # before this can be enabled.
22591 hardcode_into_libs=yes
22592
Reid Spencer2706f8c2004-09-19 23:53:36 +000022593 # Append ld.so.conf contents to the search path
22594 if test -f /etc/ld.so.conf; then
22595 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22597 fi
22598
John Criswell47fdd832003-07-14 16:52:07 +000022599 # We used to test for /lib/ld.so.1 and disable shared libraries on
22600 # powerpc, because MkLinux only supported shared libraries with the
22601 # GNU dynamic linker. Since this was broken with cross compilers,
22602 # most powerpc-linux boxes support dynamic linking these days and
22603 # people can always --disable-shared, the test was removed, and we
22604 # assume the GNU/Linux dynamic linker is in use.
22605 dynamic_linker='GNU/Linux ld.so'
22606 ;;
22607
Reid Spencer2706f8c2004-09-19 23:53:36 +000022608knetbsd*-gnu)
22609 version_type=linux
22610 need_lib_prefix=no
22611 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
22615 shlibpath_overrides_runpath=no
22616 hardcode_into_libs=yes
22617 dynamic_linker='GNU ld.so'
22618 ;;
22619
John Criswell47fdd832003-07-14 16:52:07 +000022620netbsd*)
22621 version_type=sunos
22622 need_lib_prefix=no
22623 need_version=no
22624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22627 dynamic_linker='NetBSD (a.out) ld.so'
22628 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022630 soname_spec='${libname}${release}${shared_ext}$major'
22631 dynamic_linker='NetBSD ld.elf_so'
22632 fi
22633 shlibpath_var=LD_LIBRARY_PATH
22634 shlibpath_overrides_runpath=yes
22635 hardcode_into_libs=yes
22636 ;;
22637
22638newsos6)
22639 version_type=linux
22640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22641 shlibpath_var=LD_LIBRARY_PATH
22642 shlibpath_overrides_runpath=yes
22643 ;;
22644
Reid Spencer2706f8c2004-09-19 23:53:36 +000022645nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022646 version_type=linux
22647 need_lib_prefix=no
22648 need_version=no
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650 soname_spec='${libname}${release}${shared_ext}$major'
22651 shlibpath_var=LD_LIBRARY_PATH
22652 shlibpath_overrides_runpath=yes
22653 ;;
22654
22655openbsd*)
22656 version_type=sunos
22657 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022658 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22661 shlibpath_var=LD_LIBRARY_PATH
22662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22663 case $host_os in
22664 openbsd2.[89] | openbsd2.[89].*)
22665 shlibpath_overrides_runpath=no
22666 ;;
22667 *)
22668 shlibpath_overrides_runpath=yes
22669 ;;
22670 esac
22671 else
22672 shlibpath_overrides_runpath=yes
22673 fi
22674 ;;
22675
22676os2*)
22677 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022678 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022679 need_lib_prefix=no
22680 library_names_spec='$libname${shared_ext} $libname.a'
22681 dynamic_linker='OS/2 ld.exe'
22682 shlibpath_var=LIBPATH
22683 ;;
22684
22685osf3* | osf4* | osf5*)
22686 version_type=osf
22687 need_lib_prefix=no
22688 need_version=no
22689 soname_spec='${libname}${release}${shared_ext}$major'
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691 shlibpath_var=LD_LIBRARY_PATH
22692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22694 ;;
22695
22696sco3.2v5*)
22697 version_type=osf
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700 shlibpath_var=LD_LIBRARY_PATH
22701 ;;
22702
22703solaris*)
22704 version_type=linux
22705 need_lib_prefix=no
22706 need_version=no
22707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22708 soname_spec='${libname}${release}${shared_ext}$major'
22709 shlibpath_var=LD_LIBRARY_PATH
22710 shlibpath_overrides_runpath=yes
22711 hardcode_into_libs=yes
22712 # ldd complains unless libraries are executable
22713 postinstall_cmds='chmod +x $lib'
22714 ;;
22715
22716sunos4*)
22717 version_type=sunos
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=yes
22722 if test "$with_gnu_ld" = yes; then
22723 need_lib_prefix=no
22724 fi
22725 need_version=yes
22726 ;;
22727
22728sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22729 version_type=linux
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 soname_spec='${libname}${release}${shared_ext}$major'
22732 shlibpath_var=LD_LIBRARY_PATH
22733 case $host_vendor in
22734 sni)
22735 shlibpath_overrides_runpath=no
22736 need_lib_prefix=no
22737 export_dynamic_flag_spec='${wl}-Blargedynsym'
22738 runpath_var=LD_RUN_PATH
22739 ;;
22740 siemens)
22741 need_lib_prefix=no
22742 ;;
22743 motorola)
22744 need_lib_prefix=no
22745 need_version=no
22746 shlibpath_overrides_runpath=no
22747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22748 ;;
22749 esac
22750 ;;
22751
22752sysv4*MP*)
22753 if test -d /usr/nec ;then
22754 version_type=linux
22755 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22756 soname_spec='$libname${shared_ext}.$major'
22757 shlibpath_var=LD_LIBRARY_PATH
22758 fi
22759 ;;
22760
22761uts4*)
22762 version_type=linux
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 ;;
22767
22768*)
22769 dynamic_linker=no
22770 ;;
22771esac
22772echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22773echo "${ECHO_T}$dynamic_linker" >&6
22774test "$dynamic_linker" = no && can_build_shared=no
22775
Reid Spencer2706f8c2004-09-19 23:53:36 +000022776echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22777echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22778hardcode_action_GCJ=
22779if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22780 test -n "$runpath_var_GCJ" || \
22781 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22782
22783 # We can hardcode non-existant directories.
22784 if test "$hardcode_direct_GCJ" != no &&
22785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22786 # have to relink, otherwise we might link with an installed library
22787 # when we should be linking with a yet-to-be-installed one
22788 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22789 test "$hardcode_minus_L_GCJ" != no; then
22790 # Linking always hardcodes the temporary library directory.
22791 hardcode_action_GCJ=relink
22792 else
22793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22794 hardcode_action_GCJ=immediate
22795 fi
22796else
22797 # We cannot hardcode anything, or else we can only hardcode existing
22798 # directories.
22799 hardcode_action_GCJ=unsupported
22800fi
22801echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22802echo "${ECHO_T}$hardcode_action_GCJ" >&6
22803
22804if test "$hardcode_action_GCJ" = relink; then
22805 # Fast installation is not supported
22806 enable_fast_install=no
22807elif test "$shlibpath_overrides_runpath" = yes ||
22808 test "$enable_shared" = no; then
22809 # Fast installation is not necessary
22810 enable_fast_install=needless
22811fi
22812
22813striplib=
22814old_striplib=
22815echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22816echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22817if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22818 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22819 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22820 echo "$as_me:$LINENO: result: yes" >&5
22821echo "${ECHO_T}yes" >&6
22822else
22823# FIXME - insert some real tests, host_os isn't really good enough
22824 case $host_os in
22825 darwin*)
22826 if test -n "$STRIP" ; then
22827 striplib="$STRIP -x"
22828 echo "$as_me:$LINENO: result: yes" >&5
22829echo "${ECHO_T}yes" >&6
22830 else
22831 echo "$as_me:$LINENO: result: no" >&5
22832echo "${ECHO_T}no" >&6
22833fi
22834 ;;
22835 *)
22836 echo "$as_me:$LINENO: result: no" >&5
22837echo "${ECHO_T}no" >&6
22838 ;;
22839 esac
22840fi
22841
John Criswell47fdd832003-07-14 16:52:07 +000022842if test "x$enable_dlopen" != xyes; then
22843 enable_dlopen=unknown
22844 enable_dlopen_self=unknown
22845 enable_dlopen_self_static=unknown
22846else
22847 lt_cv_dlopen=no
22848 lt_cv_dlopen_libs=
22849
22850 case $host_os in
22851 beos*)
22852 lt_cv_dlopen="load_add_on"
22853 lt_cv_dlopen_libs=
22854 lt_cv_dlopen_self=yes
22855 ;;
22856
22857 mingw* | pw32*)
22858 lt_cv_dlopen="LoadLibrary"
22859 lt_cv_dlopen_libs=
22860 ;;
22861
22862 cygwin*)
22863 lt_cv_dlopen="dlopen"
22864 lt_cv_dlopen_libs=
22865 ;;
22866
22867 darwin*)
22868 # if libdl is installed we need to link against it
22869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22871if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873else
22874 ac_check_lib_save_LIBS=$LIBS
22875LIBS="-ldl $LIBS"
22876cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022877/* confdefs.h. */
22878_ACEOF
22879cat confdefs.h >>conftest.$ac_ext
22880cat >>conftest.$ac_ext <<_ACEOF
22881/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022882
22883/* Override any gcc2 internal prototype to avoid an error. */
22884#ifdef __cplusplus
22885extern "C"
22886#endif
22887/* We use char because int might match the return type of a gcc2
22888 builtin and then its argument prototype would still apply. */
22889char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022890int
22891main ()
22892{
22893dlopen ();
22894 ;
22895 return 0;
22896}
22897_ACEOF
22898rm -f conftest.$ac_objext conftest$ac_exeext
22899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022900 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022901 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022902 grep -v '^ *+' conftest.er1 >conftest.err
22903 rm -f conftest.er1
22904 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022907 { ac_try='test -z "$ac_c_werror_flag"
22908 || test ! -s conftest.err'
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } &&
22914 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 ac_cv_lib_dl_dlopen=yes
22921else
22922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022923sed 's/^/| /' conftest.$ac_ext >&5
22924
John Criswell47fdd832003-07-14 16:52:07 +000022925ac_cv_lib_dl_dlopen=no
22926fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022927rm -f conftest.err conftest.$ac_objext \
22928 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022929LIBS=$ac_check_lib_save_LIBS
22930fi
22931echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22932echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22933if test $ac_cv_lib_dl_dlopen = yes; then
22934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22935else
22936
22937 lt_cv_dlopen="dyld"
22938 lt_cv_dlopen_libs=
22939 lt_cv_dlopen_self=yes
22940
22941fi
22942
22943 ;;
22944
22945 *)
22946 echo "$as_me:$LINENO: checking for shl_load" >&5
22947echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22948if test "${ac_cv_func_shl_load+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950else
22951 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022952/* confdefs.h. */
22953_ACEOF
22954cat confdefs.h >>conftest.$ac_ext
22955cat >>conftest.$ac_ext <<_ACEOF
22956/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022957/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22959#define shl_load innocuous_shl_load
22960
John Criswell47fdd832003-07-14 16:52:07 +000022961/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022962 which can conflict with char shl_load (); below.
22963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22964 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022965
John Criswell0c38eaf2003-09-10 15:17:25 +000022966#ifdef __STDC__
22967# include <limits.h>
22968#else
22969# include <assert.h>
22970#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022971
22972#undef shl_load
22973
John Criswell47fdd832003-07-14 16:52:07 +000022974/* Override any gcc2 internal prototype to avoid an error. */
22975#ifdef __cplusplus
22976extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022977{
John Criswell47fdd832003-07-14 16:52:07 +000022978#endif
22979/* We use char because int might match the return type of a gcc2
22980 builtin and then its argument prototype would still apply. */
22981char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022982/* The GNU C library defines this for functions which it implements
22983 to always fail with ENOSYS. Some functions are actually named
22984 something starting with __ and the normal name is an alias. */
22985#if defined (__stub_shl_load) || defined (__stub___shl_load)
22986choke me
22987#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022988char (*f) () = shl_load;
22989#endif
22990#ifdef __cplusplus
22991}
John Criswell47fdd832003-07-14 16:52:07 +000022992#endif
22993
John Criswell0c38eaf2003-09-10 15:17:25 +000022994int
22995main ()
22996{
22997return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022998 ;
22999 return 0;
23000}
23001_ACEOF
23002rm -f conftest.$ac_objext conftest$ac_exeext
23003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023004 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023011 { ac_try='test -z "$ac_c_werror_flag"
23012 || test ! -s conftest.err'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; } &&
23018 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; }; then
23024 ac_cv_func_shl_load=yes
23025else
23026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023027sed 's/^/| /' conftest.$ac_ext >&5
23028
John Criswell47fdd832003-07-14 16:52:07 +000023029ac_cv_func_shl_load=no
23030fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023031rm -f conftest.err conftest.$ac_objext \
23032 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023033fi
23034echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23035echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23036if test $ac_cv_func_shl_load = yes; then
23037 lt_cv_dlopen="shl_load"
23038else
23039 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23040echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23041if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23043else
23044 ac_check_lib_save_LIBS=$LIBS
23045LIBS="-ldld $LIBS"
23046cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023047/* confdefs.h. */
23048_ACEOF
23049cat confdefs.h >>conftest.$ac_ext
23050cat >>conftest.$ac_ext <<_ACEOF
23051/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023052
23053/* Override any gcc2 internal prototype to avoid an error. */
23054#ifdef __cplusplus
23055extern "C"
23056#endif
23057/* We use char because int might match the return type of a gcc2
23058 builtin and then its argument prototype would still apply. */
23059char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023060int
23061main ()
23062{
23063shl_load ();
23064 ;
23065 return 0;
23066}
23067_ACEOF
23068rm -f conftest.$ac_objext conftest$ac_exeext
23069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023070 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023077 { ac_try='test -z "$ac_c_werror_flag"
23078 || test ! -s conftest.err'
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 ac_cv_lib_dld_shl_load=yes
23091else
23092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023093sed 's/^/| /' conftest.$ac_ext >&5
23094
John Criswell47fdd832003-07-14 16:52:07 +000023095ac_cv_lib_dld_shl_load=no
23096fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023097rm -f conftest.err conftest.$ac_objext \
23098 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023099LIBS=$ac_check_lib_save_LIBS
23100fi
23101echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23102echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23103if test $ac_cv_lib_dld_shl_load = yes; then
23104 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23105else
23106 echo "$as_me:$LINENO: checking for dlopen" >&5
23107echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23108if test "${ac_cv_func_dlopen+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110else
23111 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023112/* confdefs.h. */
23113_ACEOF
23114cat confdefs.h >>conftest.$ac_ext
23115cat >>conftest.$ac_ext <<_ACEOF
23116/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023117/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23119#define dlopen innocuous_dlopen
23120
John Criswell47fdd832003-07-14 16:52:07 +000023121/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023122 which can conflict with char dlopen (); below.
23123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23124 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023125
John Criswell0c38eaf2003-09-10 15:17:25 +000023126#ifdef __STDC__
23127# include <limits.h>
23128#else
23129# include <assert.h>
23130#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023131
23132#undef dlopen
23133
John Criswell47fdd832003-07-14 16:52:07 +000023134/* Override any gcc2 internal prototype to avoid an error. */
23135#ifdef __cplusplus
23136extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023137{
John Criswell47fdd832003-07-14 16:52:07 +000023138#endif
23139/* We use char because int might match the return type of a gcc2
23140 builtin and then its argument prototype would still apply. */
23141char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023142/* The GNU C library defines this for functions which it implements
23143 to always fail with ENOSYS. Some functions are actually named
23144 something starting with __ and the normal name is an alias. */
23145#if defined (__stub_dlopen) || defined (__stub___dlopen)
23146choke me
23147#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023148char (*f) () = dlopen;
23149#endif
23150#ifdef __cplusplus
23151}
John Criswell47fdd832003-07-14 16:52:07 +000023152#endif
23153
John Criswell0c38eaf2003-09-10 15:17:25 +000023154int
23155main ()
23156{
23157return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023158 ;
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_func_dlopen=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_func_dlopen=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 +000023193fi
23194echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23195echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23196if test $ac_cv_func_dlopen = yes; then
23197 lt_cv_dlopen="dlopen"
23198else
23199 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23200echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23201if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23203else
23204 ac_check_lib_save_LIBS=$LIBS
23205LIBS="-ldl $LIBS"
23206cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023212
23213/* Override any gcc2 internal prototype to avoid an error. */
23214#ifdef __cplusplus
23215extern "C"
23216#endif
23217/* We use char because int might match the return type of a gcc2
23218 builtin and then its argument prototype would still apply. */
23219char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023220int
23221main ()
23222{
23223dlopen ();
23224 ;
23225 return 0;
23226}
23227_ACEOF
23228rm -f conftest.$ac_objext conftest$ac_exeext
23229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023230 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023231 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023237 { ac_try='test -z "$ac_c_werror_flag"
23238 || test ! -s conftest.err'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; } &&
23244 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23247 ac_status=$?
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; }; then
23250 ac_cv_lib_dl_dlopen=yes
23251else
23252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023253sed 's/^/| /' conftest.$ac_ext >&5
23254
John Criswell47fdd832003-07-14 16:52:07 +000023255ac_cv_lib_dl_dlopen=no
23256fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023257rm -f conftest.err conftest.$ac_objext \
23258 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023259LIBS=$ac_check_lib_save_LIBS
23260fi
23261echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23262echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23263if test $ac_cv_lib_dl_dlopen = yes; then
23264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23265else
23266 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23267echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23268if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23270else
23271 ac_check_lib_save_LIBS=$LIBS
23272LIBS="-lsvld $LIBS"
23273cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023274/* confdefs.h. */
23275_ACEOF
23276cat confdefs.h >>conftest.$ac_ext
23277cat >>conftest.$ac_ext <<_ACEOF
23278/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023279
23280/* Override any gcc2 internal prototype to avoid an error. */
23281#ifdef __cplusplus
23282extern "C"
23283#endif
23284/* We use char because int might match the return type of a gcc2
23285 builtin and then its argument prototype would still apply. */
23286char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023287int
23288main ()
23289{
23290dlopen ();
23291 ;
23292 return 0;
23293}
23294_ACEOF
23295rm -f conftest.$ac_objext conftest$ac_exeext
23296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023297 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023304 { ac_try='test -z "$ac_c_werror_flag"
23305 || test ! -s conftest.err'
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; } &&
23311 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 ac_cv_lib_svld_dlopen=yes
23318else
23319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023320sed 's/^/| /' conftest.$ac_ext >&5
23321
John Criswell47fdd832003-07-14 16:52:07 +000023322ac_cv_lib_svld_dlopen=no
23323fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023324rm -f conftest.err conftest.$ac_objext \
23325 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023326LIBS=$ac_check_lib_save_LIBS
23327fi
23328echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23329echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23330if test $ac_cv_lib_svld_dlopen = yes; then
23331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23332else
23333 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23334echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23335if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23336 echo $ECHO_N "(cached) $ECHO_C" >&6
23337else
23338 ac_check_lib_save_LIBS=$LIBS
23339LIBS="-ldld $LIBS"
23340cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023341/* confdefs.h. */
23342_ACEOF
23343cat confdefs.h >>conftest.$ac_ext
23344cat >>conftest.$ac_ext <<_ACEOF
23345/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023346
23347/* Override any gcc2 internal prototype to avoid an error. */
23348#ifdef __cplusplus
23349extern "C"
23350#endif
23351/* We use char because int might match the return type of a gcc2
23352 builtin and then its argument prototype would still apply. */
23353char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023354int
23355main ()
23356{
23357dld_link ();
23358 ;
23359 return 0;
23360}
23361_ACEOF
23362rm -f conftest.$ac_objext conftest$ac_exeext
23363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023364 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023366 grep -v '^ *+' conftest.er1 >conftest.err
23367 rm -f conftest.er1
23368 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023371 { ac_try='test -z "$ac_c_werror_flag"
23372 || test ! -s conftest.err'
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; } &&
23378 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ac_cv_lib_dld_dld_link=yes
23385else
23386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023387sed 's/^/| /' conftest.$ac_ext >&5
23388
John Criswell47fdd832003-07-14 16:52:07 +000023389ac_cv_lib_dld_dld_link=no
23390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023391rm -f conftest.err conftest.$ac_objext \
23392 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023393LIBS=$ac_check_lib_save_LIBS
23394fi
23395echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23396echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23397if test $ac_cv_lib_dld_dld_link = yes; then
23398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23399fi
23400
23401
23402fi
23403
23404
23405fi
23406
23407
23408fi
23409
23410
23411fi
23412
23413
23414fi
23415
23416 ;;
23417 esac
23418
23419 if test "x$lt_cv_dlopen" != xno; then
23420 enable_dlopen=yes
23421 else
23422 enable_dlopen=no
23423 fi
23424
23425 case $lt_cv_dlopen in
23426 dlopen)
23427 save_CPPFLAGS="$CPPFLAGS"
23428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23429
23430 save_LDFLAGS="$LDFLAGS"
23431 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23432
23433 save_LIBS="$LIBS"
23434 LIBS="$lt_cv_dlopen_libs $LIBS"
23435
23436 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23437echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23438if test "${lt_cv_dlopen_self+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23440else
23441 if test "$cross_compiling" = yes; then :
23442 lt_cv_dlopen_self=cross
23443else
23444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23445 lt_status=$lt_dlunknown
23446 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +000023447#line 23447 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023448#include "confdefs.h"
23449
23450#if HAVE_DLFCN_H
23451#include <dlfcn.h>
23452#endif
23453
23454#include <stdio.h>
23455
23456#ifdef RTLD_GLOBAL
23457# define LT_DLGLOBAL RTLD_GLOBAL
23458#else
23459# ifdef DL_GLOBAL
23460# define LT_DLGLOBAL DL_GLOBAL
23461# else
23462# define LT_DLGLOBAL 0
23463# endif
23464#endif
23465
23466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23467 find out it does not work in some platform. */
23468#ifndef LT_DLLAZY_OR_NOW
23469# ifdef RTLD_LAZY
23470# define LT_DLLAZY_OR_NOW RTLD_LAZY
23471# else
23472# ifdef DL_LAZY
23473# define LT_DLLAZY_OR_NOW DL_LAZY
23474# else
23475# ifdef RTLD_NOW
23476# define LT_DLLAZY_OR_NOW RTLD_NOW
23477# else
23478# ifdef DL_NOW
23479# define LT_DLLAZY_OR_NOW DL_NOW
23480# else
23481# define LT_DLLAZY_OR_NOW 0
23482# endif
23483# endif
23484# endif
23485# endif
23486#endif
23487
23488#ifdef __cplusplus
23489extern "C" void exit (int);
23490#endif
23491
23492void fnord() { int i=42;}
23493int main ()
23494{
23495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23496 int status = $lt_dlunknown;
23497
23498 if (self)
23499 {
23500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23501 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23502 /* dlclose (self); */
23503 }
23504
23505 exit (status);
23506}
23507EOF
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509 (eval $ac_link) 2>&5
23510 ac_status=$?
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23513 (./conftest; exit; ) 2>/dev/null
23514 lt_status=$?
23515 case x$lt_status in
23516 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23517 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23518 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23519 esac
23520 else :
23521 # compilation failed
23522 lt_cv_dlopen_self=no
23523 fi
23524fi
23525rm -fr conftest*
23526
23527
23528fi
23529echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23530echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23531
23532 if test "x$lt_cv_dlopen_self" = xyes; then
23533 LDFLAGS="$LDFLAGS $link_static_flag"
23534 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23535echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23536if test "${lt_cv_dlopen_self_static+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23538else
23539 if test "$cross_compiling" = yes; then :
23540 lt_cv_dlopen_self_static=cross
23541else
23542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23543 lt_status=$lt_dlunknown
23544 cat > conftest.$ac_ext <<EOF
Reid Spencer8a2d4712004-12-16 17:48:14 +000023545#line 23545 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023546#include "confdefs.h"
23547
23548#if HAVE_DLFCN_H
23549#include <dlfcn.h>
23550#endif
23551
23552#include <stdio.h>
23553
23554#ifdef RTLD_GLOBAL
23555# define LT_DLGLOBAL RTLD_GLOBAL
23556#else
23557# ifdef DL_GLOBAL
23558# define LT_DLGLOBAL DL_GLOBAL
23559# else
23560# define LT_DLGLOBAL 0
23561# endif
23562#endif
23563
23564/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23565 find out it does not work in some platform. */
23566#ifndef LT_DLLAZY_OR_NOW
23567# ifdef RTLD_LAZY
23568# define LT_DLLAZY_OR_NOW RTLD_LAZY
23569# else
23570# ifdef DL_LAZY
23571# define LT_DLLAZY_OR_NOW DL_LAZY
23572# else
23573# ifdef RTLD_NOW
23574# define LT_DLLAZY_OR_NOW RTLD_NOW
23575# else
23576# ifdef DL_NOW
23577# define LT_DLLAZY_OR_NOW DL_NOW
23578# else
23579# define LT_DLLAZY_OR_NOW 0
23580# endif
23581# endif
23582# endif
23583# endif
23584#endif
23585
23586#ifdef __cplusplus
23587extern "C" void exit (int);
23588#endif
23589
23590void fnord() { int i=42;}
23591int main ()
23592{
23593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23594 int status = $lt_dlunknown;
23595
23596 if (self)
23597 {
23598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23599 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23600 /* dlclose (self); */
23601 }
23602
23603 exit (status);
23604}
23605EOF
23606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>&5
23608 ac_status=$?
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23611 (./conftest; exit; ) 2>/dev/null
23612 lt_status=$?
23613 case x$lt_status in
23614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23616 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23617 esac
23618 else :
23619 # compilation failed
23620 lt_cv_dlopen_self_static=no
23621 fi
23622fi
23623rm -fr conftest*
23624
23625
23626fi
23627echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23628echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23629 fi
23630
23631 CPPFLAGS="$save_CPPFLAGS"
23632 LDFLAGS="$save_LDFLAGS"
23633 LIBS="$save_LIBS"
23634 ;;
23635 esac
23636
23637 case $lt_cv_dlopen_self in
23638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23639 *) enable_dlopen_self=unknown ;;
23640 esac
23641
23642 case $lt_cv_dlopen_self_static in
23643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23644 *) enable_dlopen_self_static=unknown ;;
23645 esac
23646fi
23647
23648
23649# The else clause should only fire when bootstrapping the
23650# libtool distribution, otherwise you forgot to ship ltmain.sh
23651# with your package, and you will get complaints that there are
23652# no rules to generate ltmain.sh.
23653if test -f "$ltmain"; then
23654 # See if we are running on zsh, and set the options which allow our commands through
23655 # without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}" ; then
23657 setopt NO_GLOB_SUBST
23658 fi
23659 # Now quote all the things that may contain metacharacters while being
23660 # careful not to overquote the AC_SUBSTed values. We take copies of the
23661 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23663 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666 deplibs_check_method reload_flag reload_cmds need_locks \
23667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668 lt_cv_sys_global_symbol_to_c_name_address \
23669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670 old_postinstall_cmds old_postuninstall_cmds \
23671 compiler_GCJ \
23672 CC_GCJ \
23673 LD_GCJ \
23674 lt_prog_compiler_wl_GCJ \
23675 lt_prog_compiler_pic_GCJ \
23676 lt_prog_compiler_static_GCJ \
23677 lt_prog_compiler_no_builtin_flag_GCJ \
23678 export_dynamic_flag_spec_GCJ \
23679 thread_safe_flag_spec_GCJ \
23680 whole_archive_flag_spec_GCJ \
23681 enable_shared_with_static_runtimes_GCJ \
23682 old_archive_cmds_GCJ \
23683 old_archive_from_new_cmds_GCJ \
23684 predep_objects_GCJ \
23685 postdep_objects_GCJ \
23686 predeps_GCJ \
23687 postdeps_GCJ \
23688 compiler_lib_search_path_GCJ \
23689 archive_cmds_GCJ \
23690 archive_expsym_cmds_GCJ \
23691 postinstall_cmds_GCJ \
23692 postuninstall_cmds_GCJ \
23693 old_archive_from_expsyms_cmds_GCJ \
23694 allow_undefined_flag_GCJ \
23695 no_undefined_flag_GCJ \
23696 export_symbols_cmds_GCJ \
23697 hardcode_libdir_flag_spec_GCJ \
23698 hardcode_libdir_flag_spec_ld_GCJ \
23699 hardcode_libdir_separator_GCJ \
23700 hardcode_automatic_GCJ \
23701 module_cmds_GCJ \
23702 module_expsym_cmds_GCJ \
23703 lt_cv_prog_compiler_c_o_GCJ \
23704 exclude_expsyms_GCJ \
23705 include_expsyms_GCJ; do
23706
23707 case $var in
23708 old_archive_cmds_GCJ | \
23709 old_archive_from_new_cmds_GCJ | \
23710 archive_cmds_GCJ | \
23711 archive_expsym_cmds_GCJ | \
23712 module_cmds_GCJ | \
23713 module_expsym_cmds_GCJ | \
23714 old_archive_from_expsyms_cmds_GCJ | \
23715 export_symbols_cmds_GCJ | \
23716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717 postinstall_cmds | postuninstall_cmds | \
23718 old_postinstall_cmds | old_postuninstall_cmds | \
23719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023721 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 +000023722 ;;
23723 *)
23724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23725 ;;
23726 esac
23727 done
23728
23729 case $lt_echo in
23730 *'\$0 --fallback-echo"')
23731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23732 ;;
23733 esac
23734
23735cfgfile="$ofile"
23736
23737 cat <<__EOF__ >> "$cfgfile"
23738# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23739
23740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23741
23742# Shell to use when invoking shell scripts.
23743SHELL=$lt_SHELL
23744
23745# Whether or not to build shared libraries.
23746build_libtool_libs=$enable_shared
23747
23748# Whether or not to build static libraries.
23749build_old_libs=$enable_static
23750
23751# Whether or not to add -lc for building shared libraries.
23752build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23753
23754# Whether or not to disallow shared libs when runtime libs are static
23755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23756
23757# Whether or not to optimize for fast installation.
23758fast_install=$enable_fast_install
23759
23760# The host system.
23761host_alias=$host_alias
23762host=$host
23763
23764# An echo program that does not interpret backslashes.
23765echo=$lt_echo
23766
23767# The archiver.
23768AR=$lt_AR
23769AR_FLAGS=$lt_AR_FLAGS
23770
23771# A C compiler.
23772LTCC=$lt_LTCC
23773
23774# A language-specific compiler.
23775CC=$lt_compiler_GCJ
23776
23777# Is the compiler the GNU C compiler?
23778with_gcc=$GCC_GCJ
23779
23780# An ERE matcher.
23781EGREP=$lt_EGREP
23782
23783# The linker used to build libraries.
23784LD=$lt_LD_GCJ
23785
23786# Whether we need hard or soft links.
23787LN_S=$lt_LN_S
23788
23789# A BSD-compatible nm program.
23790NM=$lt_NM
23791
23792# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023793STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023794
23795# Used to examine libraries when file_magic_cmd begins "file"
23796MAGIC_CMD=$MAGIC_CMD
23797
23798# Used on cygwin: DLL creation program.
23799DLLTOOL="$DLLTOOL"
23800
23801# Used on cygwin: object dumper.
23802OBJDUMP="$OBJDUMP"
23803
23804# Used on cygwin: assembler.
23805AS="$AS"
23806
23807# The name of the directory that contains temporary libtool files.
23808objdir=$objdir
23809
23810# How to create reloadable object files.
23811reload_flag=$lt_reload_flag
23812reload_cmds=$lt_reload_cmds
23813
23814# How to pass a linker flag through the compiler.
23815wl=$lt_lt_prog_compiler_wl_GCJ
23816
23817# Object file suffix (normally "o").
23818objext="$ac_objext"
23819
23820# Old archive suffix (normally "a").
23821libext="$libext"
23822
23823# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023824shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023825
23826# Executable file suffix (normally "").
23827exeext="$exeext"
23828
23829# Additional compiler flags for building library objects.
23830pic_flag=$lt_lt_prog_compiler_pic_GCJ
23831pic_mode=$pic_mode
23832
23833# What is the maximum length of a command?
23834max_cmd_len=$lt_cv_sys_max_cmd_len
23835
23836# Does compiler simultaneously support -c and -o options?
23837compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23838
23839# Must we lock files when doing compilation ?
23840need_locks=$lt_need_locks
23841
23842# Do we need the lib prefix for modules?
23843need_lib_prefix=$need_lib_prefix
23844
23845# Do we need a version for libraries?
23846need_version=$need_version
23847
23848# Whether dlopen is supported.
23849dlopen_support=$enable_dlopen
23850
23851# Whether dlopen of programs is supported.
23852dlopen_self=$enable_dlopen_self
23853
23854# Whether dlopen of statically linked programs is supported.
23855dlopen_self_static=$enable_dlopen_self_static
23856
23857# Compiler flag to prevent dynamic linking.
23858link_static_flag=$lt_lt_prog_compiler_static_GCJ
23859
23860# Compiler flag to turn off builtin functions.
23861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23862
23863# Compiler flag to allow reflexive dlopens.
23864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23865
23866# Compiler flag to generate shared objects directly from archives.
23867whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23868
23869# Compiler flag to generate thread-safe objects.
23870thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23871
23872# Library versioning type.
23873version_type=$version_type
23874
23875# Format of library name prefix.
23876libname_spec=$lt_libname_spec
23877
23878# List of archive names. First name is the real one, the rest are links.
23879# The last name is the one that the linker finds with -lNAME.
23880library_names_spec=$lt_library_names_spec
23881
23882# The coded name of the library, if different from the real name.
23883soname_spec=$lt_soname_spec
23884
23885# Commands used to build and install an old-style archive.
23886RANLIB=$lt_RANLIB
23887old_archive_cmds=$lt_old_archive_cmds_GCJ
23888old_postinstall_cmds=$lt_old_postinstall_cmds
23889old_postuninstall_cmds=$lt_old_postuninstall_cmds
23890
23891# Create an old-style archive from a shared archive.
23892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23893
23894# Create a temporary old-style archive to link instead of a shared archive.
23895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23896
23897# Commands used to build and install a shared archive.
23898archive_cmds=$lt_archive_cmds_GCJ
23899archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23900postinstall_cmds=$lt_postinstall_cmds
23901postuninstall_cmds=$lt_postuninstall_cmds
23902
23903# Commands used to build a loadable module (assumed same as above if empty)
23904module_cmds=$lt_module_cmds_GCJ
23905module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23906
23907# Commands to strip libraries.
23908old_striplib=$lt_old_striplib
23909striplib=$lt_striplib
23910
23911# Dependencies to place before the objects being linked to create a
23912# shared library.
23913predep_objects=$lt_predep_objects_GCJ
23914
23915# Dependencies to place after the objects being linked to create a
23916# shared library.
23917postdep_objects=$lt_postdep_objects_GCJ
23918
23919# Dependencies to place before the objects being linked to create a
23920# shared library.
23921predeps=$lt_predeps_GCJ
23922
23923# Dependencies to place after the objects being linked to create a
23924# shared library.
23925postdeps=$lt_postdeps_GCJ
23926
23927# The library search path used internally by the compiler when linking
23928# a shared library.
23929compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23930
23931# Method to check whether dependent libraries are shared objects.
23932deplibs_check_method=$lt_deplibs_check_method
23933
23934# Command to use when deplibs_check_method == file_magic.
23935file_magic_cmd=$lt_file_magic_cmd
23936
23937# Flag that allows shared libraries with undefined symbols to be built.
23938allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23939
23940# Flag that forces no undefined symbols.
23941no_undefined_flag=$lt_no_undefined_flag_GCJ
23942
23943# Commands used to finish a libtool library installation in a directory.
23944finish_cmds=$lt_finish_cmds
23945
23946# Same as above, but a single script fragment to be evaled but not shown.
23947finish_eval=$lt_finish_eval
23948
23949# Take the output of nm and produce a listing of raw symbols and C names.
23950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23951
23952# Transform the output of nm in a proper C declaration
23953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23954
23955# Transform the output of nm in a C name address pair
23956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23957
23958# This is the shared library runtime path variable.
23959runpath_var=$runpath_var
23960
23961# This is the shared library path variable.
23962shlibpath_var=$shlibpath_var
23963
23964# Is shlibpath searched before the hard-coded library search path?
23965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23966
23967# How to hardcode a shared library path into an executable.
23968hardcode_action=$hardcode_action_GCJ
23969
23970# Whether we should hardcode library paths into libraries.
23971hardcode_into_libs=$hardcode_into_libs
23972
23973# Flag to hardcode \$libdir into a binary during linking.
23974# This must work even if \$libdir does not exist.
23975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23976
23977# If ld is used when linking, flag to hardcode \$libdir into
23978# a binary during linking. This must work even if \$libdir does
23979# not exist.
23980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23981
23982# Whether we need a single -rpath flag with a separated argument.
23983hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23984
23985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23986# resulting binary.
23987hardcode_direct=$hardcode_direct_GCJ
23988
23989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23990# resulting binary.
23991hardcode_minus_L=$hardcode_minus_L_GCJ
23992
23993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23994# the resulting binary.
23995hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23996
23997# Set to yes if building a shared library automatically hardcodes DIR into the library
23998# and all subsequent libraries and executables linked against it.
23999hardcode_automatic=$hardcode_automatic_GCJ
24000
24001# Variables whose values should be saved in libtool wrapper scripts and
24002# restored at relink time.
24003variables_saved_for_relink="$variables_saved_for_relink"
24004
24005# Whether libtool must link a program against all its dependency libraries.
24006link_all_deplibs=$link_all_deplibs_GCJ
24007
24008# Compile-time system search path for libraries
24009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24010
24011# Run-time system search path for libraries
24012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24013
24014# Fix the shell variable \$srcfile for the compiler.
24015fix_srcfile_path="$fix_srcfile_path_GCJ"
24016
24017# Set to yes if exported symbols are required.
24018always_export_symbols=$always_export_symbols_GCJ
24019
24020# The commands to list exported symbols.
24021export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24022
24023# The commands to extract the exported symbol list from a shared archive.
24024extract_expsyms_cmds=$lt_extract_expsyms_cmds
24025
24026# Symbols that should not be listed in the preloaded symbols.
24027exclude_expsyms=$lt_exclude_expsyms_GCJ
24028
24029# Symbols that must always be exported.
24030include_expsyms=$lt_include_expsyms_GCJ
24031
24032# ### END LIBTOOL TAG CONFIG: $tagname
24033
24034__EOF__
24035
24036
24037else
24038 # If there is no Makefile yet, we rely on a make rule to execute
24039 # `config.status --recheck' to rerun these tests and create the
24040 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24042 if test -f "$ltmain_in"; then
24043 test -f Makefile && make "$ltmain"
24044 fi
John Criswell47fdd832003-07-14 16:52:07 +000024045fi
24046
24047
24048ac_ext=c
24049ac_cpp='$CPP $CPPFLAGS'
24050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24052ac_compiler_gnu=$ac_cv_c_compiler_gnu
24053
24054CC="$lt_save_CC"
24055
24056 else
24057 tagname=""
24058 fi
24059 ;;
24060
24061 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024062 ac_ext=c
24063ac_cpp='$CPP $CPPFLAGS'
24064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24066ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024067
24068
24069# Source file extension for RC test sources.
24070ac_ext=rc
24071
24072# Object file extension for compiled RC test sources.
24073objext=o
24074objext_RC=$objext
24075
24076# Code to be used in simple compile tests
24077lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24078
24079# Code to be used in simple link tests
24080lt_simple_link_test_code="$lt_simple_compile_test_code"
24081
24082# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24083
24084# If no C compiler was specified, use CC.
24085LTCC=${LTCC-"$CC"}
24086
24087# Allow CC to be a program name with arguments.
24088compiler=$CC
24089
24090
24091# Allow CC to be a program name with arguments.
24092lt_save_CC="$CC"
24093CC=${RC-"windres"}
24094compiler=$CC
24095compiler_RC=$CC
24096lt_cv_prog_compiler_c_o_RC=yes
24097
24098# The else clause should only fire when bootstrapping the
24099# libtool distribution, otherwise you forgot to ship ltmain.sh
24100# with your package, and you will get complaints that there are
24101# no rules to generate ltmain.sh.
24102if test -f "$ltmain"; then
24103 # See if we are running on zsh, and set the options which allow our commands through
24104 # without removal of \ escapes.
24105 if test -n "${ZSH_VERSION+set}" ; then
24106 setopt NO_GLOB_SUBST
24107 fi
24108 # Now quote all the things that may contain metacharacters while being
24109 # careful not to overquote the AC_SUBSTed values. We take copies of the
24110 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024111 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24112 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024113 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24114 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24115 deplibs_check_method reload_flag reload_cmds need_locks \
24116 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24117 lt_cv_sys_global_symbol_to_c_name_address \
24118 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24119 old_postinstall_cmds old_postuninstall_cmds \
24120 compiler_RC \
24121 CC_RC \
24122 LD_RC \
24123 lt_prog_compiler_wl_RC \
24124 lt_prog_compiler_pic_RC \
24125 lt_prog_compiler_static_RC \
24126 lt_prog_compiler_no_builtin_flag_RC \
24127 export_dynamic_flag_spec_RC \
24128 thread_safe_flag_spec_RC \
24129 whole_archive_flag_spec_RC \
24130 enable_shared_with_static_runtimes_RC \
24131 old_archive_cmds_RC \
24132 old_archive_from_new_cmds_RC \
24133 predep_objects_RC \
24134 postdep_objects_RC \
24135 predeps_RC \
24136 postdeps_RC \
24137 compiler_lib_search_path_RC \
24138 archive_cmds_RC \
24139 archive_expsym_cmds_RC \
24140 postinstall_cmds_RC \
24141 postuninstall_cmds_RC \
24142 old_archive_from_expsyms_cmds_RC \
24143 allow_undefined_flag_RC \
24144 no_undefined_flag_RC \
24145 export_symbols_cmds_RC \
24146 hardcode_libdir_flag_spec_RC \
24147 hardcode_libdir_flag_spec_ld_RC \
24148 hardcode_libdir_separator_RC \
24149 hardcode_automatic_RC \
24150 module_cmds_RC \
24151 module_expsym_cmds_RC \
24152 lt_cv_prog_compiler_c_o_RC \
24153 exclude_expsyms_RC \
24154 include_expsyms_RC; do
24155
24156 case $var in
24157 old_archive_cmds_RC | \
24158 old_archive_from_new_cmds_RC | \
24159 archive_cmds_RC | \
24160 archive_expsym_cmds_RC | \
24161 module_cmds_RC | \
24162 module_expsym_cmds_RC | \
24163 old_archive_from_expsyms_cmds_RC | \
24164 export_symbols_cmds_RC | \
24165 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24166 postinstall_cmds | postuninstall_cmds | \
24167 old_postinstall_cmds | old_postuninstall_cmds | \
24168 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24169 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024170 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 +000024171 ;;
24172 *)
24173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24174 ;;
24175 esac
24176 done
24177
24178 case $lt_echo in
24179 *'\$0 --fallback-echo"')
24180 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24181 ;;
24182 esac
24183
24184cfgfile="$ofile"
24185
24186 cat <<__EOF__ >> "$cfgfile"
24187# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24188
24189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24190
24191# Shell to use when invoking shell scripts.
24192SHELL=$lt_SHELL
24193
24194# Whether or not to build shared libraries.
24195build_libtool_libs=$enable_shared
24196
24197# Whether or not to build static libraries.
24198build_old_libs=$enable_static
24199
24200# Whether or not to add -lc for building shared libraries.
24201build_libtool_need_lc=$archive_cmds_need_lc_RC
24202
24203# Whether or not to disallow shared libs when runtime libs are static
24204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24205
24206# Whether or not to optimize for fast installation.
24207fast_install=$enable_fast_install
24208
24209# The host system.
24210host_alias=$host_alias
24211host=$host
24212
24213# An echo program that does not interpret backslashes.
24214echo=$lt_echo
24215
24216# The archiver.
24217AR=$lt_AR
24218AR_FLAGS=$lt_AR_FLAGS
24219
24220# A C compiler.
24221LTCC=$lt_LTCC
24222
24223# A language-specific compiler.
24224CC=$lt_compiler_RC
24225
24226# Is the compiler the GNU C compiler?
24227with_gcc=$GCC_RC
24228
24229# An ERE matcher.
24230EGREP=$lt_EGREP
24231
24232# The linker used to build libraries.
24233LD=$lt_LD_RC
24234
24235# Whether we need hard or soft links.
24236LN_S=$lt_LN_S
24237
24238# A BSD-compatible nm program.
24239NM=$lt_NM
24240
24241# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024242STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024243
24244# Used to examine libraries when file_magic_cmd begins "file"
24245MAGIC_CMD=$MAGIC_CMD
24246
24247# Used on cygwin: DLL creation program.
24248DLLTOOL="$DLLTOOL"
24249
24250# Used on cygwin: object dumper.
24251OBJDUMP="$OBJDUMP"
24252
24253# Used on cygwin: assembler.
24254AS="$AS"
24255
24256# The name of the directory that contains temporary libtool files.
24257objdir=$objdir
24258
24259# How to create reloadable object files.
24260reload_flag=$lt_reload_flag
24261reload_cmds=$lt_reload_cmds
24262
24263# How to pass a linker flag through the compiler.
24264wl=$lt_lt_prog_compiler_wl_RC
24265
24266# Object file suffix (normally "o").
24267objext="$ac_objext"
24268
24269# Old archive suffix (normally "a").
24270libext="$libext"
24271
24272# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024273shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024274
24275# Executable file suffix (normally "").
24276exeext="$exeext"
24277
24278# Additional compiler flags for building library objects.
24279pic_flag=$lt_lt_prog_compiler_pic_RC
24280pic_mode=$pic_mode
24281
24282# What is the maximum length of a command?
24283max_cmd_len=$lt_cv_sys_max_cmd_len
24284
24285# Does compiler simultaneously support -c and -o options?
24286compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24287
24288# Must we lock files when doing compilation ?
24289need_locks=$lt_need_locks
24290
24291# Do we need the lib prefix for modules?
24292need_lib_prefix=$need_lib_prefix
24293
24294# Do we need a version for libraries?
24295need_version=$need_version
24296
24297# Whether dlopen is supported.
24298dlopen_support=$enable_dlopen
24299
24300# Whether dlopen of programs is supported.
24301dlopen_self=$enable_dlopen_self
24302
24303# Whether dlopen of statically linked programs is supported.
24304dlopen_self_static=$enable_dlopen_self_static
24305
24306# Compiler flag to prevent dynamic linking.
24307link_static_flag=$lt_lt_prog_compiler_static_RC
24308
24309# Compiler flag to turn off builtin functions.
24310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24311
24312# Compiler flag to allow reflexive dlopens.
24313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24314
24315# Compiler flag to generate shared objects directly from archives.
24316whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24317
24318# Compiler flag to generate thread-safe objects.
24319thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24320
24321# Library versioning type.
24322version_type=$version_type
24323
24324# Format of library name prefix.
24325libname_spec=$lt_libname_spec
24326
24327# List of archive names. First name is the real one, the rest are links.
24328# The last name is the one that the linker finds with -lNAME.
24329library_names_spec=$lt_library_names_spec
24330
24331# The coded name of the library, if different from the real name.
24332soname_spec=$lt_soname_spec
24333
24334# Commands used to build and install an old-style archive.
24335RANLIB=$lt_RANLIB
24336old_archive_cmds=$lt_old_archive_cmds_RC
24337old_postinstall_cmds=$lt_old_postinstall_cmds
24338old_postuninstall_cmds=$lt_old_postuninstall_cmds
24339
24340# Create an old-style archive from a shared archive.
24341old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24342
24343# Create a temporary old-style archive to link instead of a shared archive.
24344old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24345
24346# Commands used to build and install a shared archive.
24347archive_cmds=$lt_archive_cmds_RC
24348archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24349postinstall_cmds=$lt_postinstall_cmds
24350postuninstall_cmds=$lt_postuninstall_cmds
24351
24352# Commands used to build a loadable module (assumed same as above if empty)
24353module_cmds=$lt_module_cmds_RC
24354module_expsym_cmds=$lt_module_expsym_cmds_RC
24355
24356# Commands to strip libraries.
24357old_striplib=$lt_old_striplib
24358striplib=$lt_striplib
24359
24360# Dependencies to place before the objects being linked to create a
24361# shared library.
24362predep_objects=$lt_predep_objects_RC
24363
24364# Dependencies to place after the objects being linked to create a
24365# shared library.
24366postdep_objects=$lt_postdep_objects_RC
24367
24368# Dependencies to place before the objects being linked to create a
24369# shared library.
24370predeps=$lt_predeps_RC
24371
24372# Dependencies to place after the objects being linked to create a
24373# shared library.
24374postdeps=$lt_postdeps_RC
24375
24376# The library search path used internally by the compiler when linking
24377# a shared library.
24378compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24379
24380# Method to check whether dependent libraries are shared objects.
24381deplibs_check_method=$lt_deplibs_check_method
24382
24383# Command to use when deplibs_check_method == file_magic.
24384file_magic_cmd=$lt_file_magic_cmd
24385
24386# Flag that allows shared libraries with undefined symbols to be built.
24387allow_undefined_flag=$lt_allow_undefined_flag_RC
24388
24389# Flag that forces no undefined symbols.
24390no_undefined_flag=$lt_no_undefined_flag_RC
24391
24392# Commands used to finish a libtool library installation in a directory.
24393finish_cmds=$lt_finish_cmds
24394
24395# Same as above, but a single script fragment to be evaled but not shown.
24396finish_eval=$lt_finish_eval
24397
24398# Take the output of nm and produce a listing of raw symbols and C names.
24399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24400
24401# Transform the output of nm in a proper C declaration
24402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24403
24404# Transform the output of nm in a C name address pair
24405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24406
24407# This is the shared library runtime path variable.
24408runpath_var=$runpath_var
24409
24410# This is the shared library path variable.
24411shlibpath_var=$shlibpath_var
24412
24413# Is shlibpath searched before the hard-coded library search path?
24414shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24415
24416# How to hardcode a shared library path into an executable.
24417hardcode_action=$hardcode_action_RC
24418
24419# Whether we should hardcode library paths into libraries.
24420hardcode_into_libs=$hardcode_into_libs
24421
24422# Flag to hardcode \$libdir into a binary during linking.
24423# This must work even if \$libdir does not exist.
24424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24425
24426# If ld is used when linking, flag to hardcode \$libdir into
24427# a binary during linking. This must work even if \$libdir does
24428# not exist.
24429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24430
24431# Whether we need a single -rpath flag with a separated argument.
24432hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24433
24434# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24435# resulting binary.
24436hardcode_direct=$hardcode_direct_RC
24437
24438# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24439# resulting binary.
24440hardcode_minus_L=$hardcode_minus_L_RC
24441
24442# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24443# the resulting binary.
24444hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24445
24446# Set to yes if building a shared library automatically hardcodes DIR into the library
24447# and all subsequent libraries and executables linked against it.
24448hardcode_automatic=$hardcode_automatic_RC
24449
24450# Variables whose values should be saved in libtool wrapper scripts and
24451# restored at relink time.
24452variables_saved_for_relink="$variables_saved_for_relink"
24453
24454# Whether libtool must link a program against all its dependency libraries.
24455link_all_deplibs=$link_all_deplibs_RC
24456
24457# Compile-time system search path for libraries
24458sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24459
24460# Run-time system search path for libraries
24461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24462
24463# Fix the shell variable \$srcfile for the compiler.
24464fix_srcfile_path="$fix_srcfile_path_RC"
24465
24466# Set to yes if exported symbols are required.
24467always_export_symbols=$always_export_symbols_RC
24468
24469# The commands to list exported symbols.
24470export_symbols_cmds=$lt_export_symbols_cmds_RC
24471
24472# The commands to extract the exported symbol list from a shared archive.
24473extract_expsyms_cmds=$lt_extract_expsyms_cmds
24474
24475# Symbols that should not be listed in the preloaded symbols.
24476exclude_expsyms=$lt_exclude_expsyms_RC
24477
24478# Symbols that must always be exported.
24479include_expsyms=$lt_include_expsyms_RC
24480
24481# ### END LIBTOOL TAG CONFIG: $tagname
24482
24483__EOF__
24484
24485
24486else
24487 # If there is no Makefile yet, we rely on a make rule to execute
24488 # `config.status --recheck' to rerun these tests and create the
24489 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24491 if test -f "$ltmain_in"; then
24492 test -f Makefile && make "$ltmain"
24493 fi
John Criswell47fdd832003-07-14 16:52:07 +000024494fi
24495
24496
24497ac_ext=c
24498ac_cpp='$CPP $CPPFLAGS'
24499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24501ac_compiler_gnu=$ac_cv_c_compiler_gnu
24502
24503CC="$lt_save_CC"
24504
24505 ;;
24506
24507 *)
24508 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24509echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24510 { (exit 1); exit 1; }; }
24511 ;;
24512 esac
24513
24514 # Append the new tag name to the list of available tags.
24515 if test -n "$tagname" ; then
24516 available_tags="$available_tags $tagname"
24517 fi
24518 fi
24519 done
24520 IFS="$lt_save_ifs"
24521
24522 # Now substitute the updated list of available tags.
24523 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24524 mv "${ofile}T" "$ofile"
24525 chmod +x "$ofile"
24526 else
24527 rm -f "${ofile}T"
24528 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24529echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24530 { (exit 1); exit 1; }; }
24531 fi
24532fi
John Criswell7a73b802003-06-30 21:59:07 +000024533
24534
24535
24536# This can be used to rebuild libtool when needed
24537LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24538
24539# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024540LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024541
24542# Prevent multiple expansion
24543
24544
24545
John Criswell47fdd832003-07-14 16:52:07 +000024546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024563
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024564etags_version=`$ETAGS --version 2>&1`
24565case "$etags_version" in
24566 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24567 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24568 *) ETAGSFLAGS="" ;;
24569esac
24570ETAGSFLAGS=$ETAGSFLAGS
24571
24572
24573echo "$as_me:$LINENO: checking tool compatibility" >&5
24574echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24575
Reid Spencer86901802004-12-08 23:07:27 +000024576ICC=no
24577IXX=no
24578case $CC in
24579 icc*|icpc*)
24580 ICC=yes
24581 IXX=yes
24582 ;;
24583 *)
24584 ;;
24585esac
24586
24587if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024588then
Reid Spencer86901802004-12-08 23:07:27 +000024589 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24590echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024591 { (exit 1); exit 1; }; }
24592fi
24593
Reid Spencer86901802004-12-08 23:07:27 +000024594if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024595then
Reid Spencer86901802004-12-08 23:07:27 +000024596 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24597echo "$as_me: error: g++|icc required but not found" >&2;}
24598 { (exit 1); exit 1; }; }
24599fi
24600
24601if test "$GCC" = "yes"
24602then
24603 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24604 if test "$gccmajor" -lt "3"
24605 then
24606 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024607echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24608 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024609 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024610fi
24611
24612if test -z "$llvm_cv_gnu_make_command"
24613then
24614 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24615echo "$as_me: error: GNU Make required but not found" >&2;}
24616 { (exit 1); exit 1; }; }
24617fi
24618
24619echo "$as_me:$LINENO: result: ok" >&5
24620echo "${ECHO_T}ok" >&6
24621
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024622
John Criswell7a73b802003-06-30 21:59:07 +000024623
John Criswell7a73b802003-06-30 21:59:07 +000024624echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24625echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24626if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24628else
24629 ac_check_lib_save_LIBS=$LIBS
24630LIBS="-lelf $LIBS"
24631cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024632/* confdefs.h. */
24633_ACEOF
24634cat confdefs.h >>conftest.$ac_ext
24635cat >>conftest.$ac_ext <<_ACEOF
24636/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024637
24638/* Override any gcc2 internal prototype to avoid an error. */
24639#ifdef __cplusplus
24640extern "C"
24641#endif
24642/* We use char because int might match the return type of a gcc2
24643 builtin and then its argument prototype would still apply. */
24644char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024645int
24646main ()
24647{
24648elf_begin ();
24649 ;
24650 return 0;
24651}
24652_ACEOF
24653rm -f conftest.$ac_objext conftest$ac_exeext
24654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024655 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024657 grep -v '^ *+' conftest.er1 >conftest.err
24658 rm -f conftest.er1
24659 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 ac_cv_lib_elf_elf_begin=yes
24676else
24677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024678sed 's/^/| /' conftest.$ac_ext >&5
24679
John Criswell7a73b802003-06-30 21:59:07 +000024680ac_cv_lib_elf_elf_begin=no
24681fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024682rm -f conftest.err conftest.$ac_objext \
24683 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024684LIBS=$ac_check_lib_save_LIBS
24685fi
24686echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24687echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24688if test $ac_cv_lib_elf_elf_begin = yes; then
24689 cat >>confdefs.h <<_ACEOF
24690#define HAVE_LIBELF 1
24691_ACEOF
24692
24693 LIBS="-lelf $LIBS"
24694
24695fi
24696
24697
Reid Spencer17795972004-11-18 09:47:37 +000024698echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24699echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24700if test "${ac_cv_search_lt_dlopen+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24702else
24703 ac_func_search_save_LIBS=$LIBS
24704ac_cv_search_lt_dlopen=no
24705cat >conftest.$ac_ext <<_ACEOF
24706/* confdefs.h. */
24707_ACEOF
24708cat confdefs.h >>conftest.$ac_ext
24709cat >>conftest.$ac_ext <<_ACEOF
24710/* end confdefs.h. */
24711
24712/* Override any gcc2 internal prototype to avoid an error. */
24713#ifdef __cplusplus
24714extern "C"
24715#endif
24716/* We use char because int might match the return type of a gcc2
24717 builtin and then its argument prototype would still apply. */
24718char lt_dlopen ();
24719int
24720main ()
24721{
24722lt_dlopen ();
24723 ;
24724 return 0;
24725}
24726_ACEOF
24727rm -f conftest.$ac_objext conftest$ac_exeext
24728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24729 (eval $ac_link) 2>conftest.er1
24730 ac_status=$?
24731 grep -v '^ *+' conftest.er1 >conftest.err
24732 rm -f conftest.er1
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } &&
24736 { ac_try='test -z "$ac_c_werror_flag"
24737 || test ! -s conftest.err'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; } &&
24743 { ac_try='test -s conftest$ac_exeext'
24744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745 (eval $ac_try) 2>&5
24746 ac_status=$?
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; }; then
24749 ac_cv_search_lt_dlopen="none required"
24750else
24751 echo "$as_me: failed program was:" >&5
24752sed 's/^/| /' conftest.$ac_ext >&5
24753
24754fi
24755rm -f conftest.err conftest.$ac_objext \
24756 conftest$ac_exeext conftest.$ac_ext
24757if test "$ac_cv_search_lt_dlopen" = no; then
24758 for ac_lib in ltdl; do
24759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24760 cat >conftest.$ac_ext <<_ACEOF
24761/* confdefs.h. */
24762_ACEOF
24763cat confdefs.h >>conftest.$ac_ext
24764cat >>conftest.$ac_ext <<_ACEOF
24765/* end confdefs.h. */
24766
24767/* Override any gcc2 internal prototype to avoid an error. */
24768#ifdef __cplusplus
24769extern "C"
24770#endif
24771/* We use char because int might match the return type of a gcc2
24772 builtin and then its argument prototype would still apply. */
24773char lt_dlopen ();
24774int
24775main ()
24776{
24777lt_dlopen ();
24778 ;
24779 return 0;
24780}
24781_ACEOF
24782rm -f conftest.$ac_objext conftest$ac_exeext
24783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784 (eval $ac_link) 2>conftest.er1
24785 ac_status=$?
24786 grep -v '^ *+' conftest.er1 >conftest.err
24787 rm -f conftest.er1
24788 cat conftest.err >&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } &&
24791 { ac_try='test -z "$ac_c_werror_flag"
24792 || test ! -s conftest.err'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; } &&
24798 { ac_try='test -s conftest$ac_exeext'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; }; then
24804 ac_cv_search_lt_dlopen="-l$ac_lib"
24805break
24806else
24807 echo "$as_me: failed program was:" >&5
24808sed 's/^/| /' conftest.$ac_ext >&5
24809
24810fi
24811rm -f conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24813 done
24814fi
24815LIBS=$ac_func_search_save_LIBS
24816fi
24817echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24818echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24819if test "$ac_cv_search_lt_dlopen" != no; then
24820 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24821
24822cat >>confdefs.h <<\_ACEOF
24823#define HAVE_LT_DLOPEN 1
24824_ACEOF
24825
24826else
24827 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24828 not be available" >&5
24829echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24830 not be available" >&2;}
24831fi
24832
24833
John Criswell7a73b802003-06-30 21:59:07 +000024834echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24835echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24836if test "${ac_cv_search_dlopen+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24838else
24839 ac_func_search_save_LIBS=$LIBS
24840ac_cv_search_dlopen=no
24841cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024842/* confdefs.h. */
24843_ACEOF
24844cat confdefs.h >>conftest.$ac_ext
24845cat >>conftest.$ac_ext <<_ACEOF
24846/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024847
24848/* Override any gcc2 internal prototype to avoid an error. */
24849#ifdef __cplusplus
24850extern "C"
24851#endif
24852/* We use char because int might match the return type of a gcc2
24853 builtin and then its argument prototype would still apply. */
24854char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024855int
24856main ()
24857{
24858dlopen ();
24859 ;
24860 return 0;
24861}
24862_ACEOF
24863rm -f conftest.$ac_objext conftest$ac_exeext
24864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024865 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024867 grep -v '^ *+' conftest.er1 >conftest.err
24868 rm -f conftest.er1
24869 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_cv_search_dlopen="none required"
24886else
24887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024888sed 's/^/| /' conftest.$ac_ext >&5
24889
John Criswell7a73b802003-06-30 21:59:07 +000024890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024891rm -f conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024893if test "$ac_cv_search_dlopen" = no; then
24894 for ac_lib in dl; do
24895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024902
24903/* Override any gcc2 internal prototype to avoid an error. */
24904#ifdef __cplusplus
24905extern "C"
24906#endif
24907/* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24909char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024910int
24911main ()
24912{
24913dlopen ();
24914 ;
24915 return 0;
24916}
24917_ACEOF
24918rm -f conftest.$ac_objext conftest$ac_exeext
24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024921 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_search_dlopen="-l$ac_lib"
24941break
24942else
24943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024944sed 's/^/| /' conftest.$ac_ext >&5
24945
John Criswell7a73b802003-06-30 21:59:07 +000024946fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024947rm -f conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024949 done
24950fi
24951LIBS=$ac_func_search_save_LIBS
24952fi
24953echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24954echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24955if test "$ac_cv_search_dlopen" != no; then
24956 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000024957
24958cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000024959#define HAVE_DLOPEN 1
24960_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024961
24962else
Brian Gaekec45be042003-10-07 06:01:34 +000024963 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24964echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024965fi
24966
24967
24968echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24969echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24970if test "${ac_cv_search_mallinfo+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972else
24973 ac_func_search_save_LIBS=$LIBS
24974ac_cv_search_mallinfo=no
24975cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024976/* confdefs.h. */
24977_ACEOF
24978cat confdefs.h >>conftest.$ac_ext
24979cat >>conftest.$ac_ext <<_ACEOF
24980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024981
24982/* Override any gcc2 internal prototype to avoid an error. */
24983#ifdef __cplusplus
24984extern "C"
24985#endif
24986/* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24988char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024989int
24990main ()
24991{
24992mallinfo ();
24993 ;
24994 return 0;
24995}
24996_ACEOF
24997rm -f conftest.$ac_objext conftest$ac_exeext
24998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024999 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025000 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025006 { ac_try='test -z "$ac_c_werror_flag"
25007 || test ! -s conftest.err'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; } &&
25013 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25015 (eval $ac_try) 2>&5
25016 ac_status=$?
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25019 ac_cv_search_mallinfo="none required"
25020else
25021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025022sed 's/^/| /' conftest.$ac_ext >&5
25023
John Criswell7a73b802003-06-30 21:59:07 +000025024fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025025rm -f conftest.err conftest.$ac_objext \
25026 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025027if test "$ac_cv_search_mallinfo" = no; then
25028 for ac_lib in malloc; do
25029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025031/* confdefs.h. */
25032_ACEOF
25033cat confdefs.h >>conftest.$ac_ext
25034cat >>conftest.$ac_ext <<_ACEOF
25035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025036
25037/* Override any gcc2 internal prototype to avoid an error. */
25038#ifdef __cplusplus
25039extern "C"
25040#endif
25041/* We use char because int might match the return type of a gcc2
25042 builtin and then its argument prototype would still apply. */
25043char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025044int
25045main ()
25046{
25047mallinfo ();
25048 ;
25049 return 0;
25050}
25051_ACEOF
25052rm -f conftest.$ac_objext conftest$ac_exeext
25053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025054 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025056 grep -v '^ *+' conftest.er1 >conftest.err
25057 rm -f conftest.er1
25058 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025061 { ac_try='test -z "$ac_c_werror_flag"
25062 || test ! -s conftest.err'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; } &&
25068 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25071 ac_status=$?
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; }; then
25074 ac_cv_search_mallinfo="-l$ac_lib"
25075break
25076else
25077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025078sed 's/^/| /' conftest.$ac_ext >&5
25079
John Criswell7a73b802003-06-30 21:59:07 +000025080fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025081rm -f conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025083 done
25084fi
25085LIBS=$ac_func_search_save_LIBS
25086fi
25087echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25088echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25089if test "$ac_cv_search_mallinfo" != no; then
25090 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025091
25092cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025093#define HAVE_MALLINFO 1
25094_ACEOF
25095
25096fi
25097
25098
Brian Gaeke5f268f72003-12-05 19:29:01 +000025099echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25100echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25101if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25102 echo $ECHO_N "(cached) $ECHO_C" >&6
25103else
25104 ac_func_search_save_LIBS=$LIBS
25105ac_cv_search_pthread_mutex_lock=no
25106cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025107/* confdefs.h. */
25108_ACEOF
25109cat confdefs.h >>conftest.$ac_ext
25110cat >>conftest.$ac_ext <<_ACEOF
25111/* end confdefs.h. */
25112
25113/* Override any gcc2 internal prototype to avoid an error. */
25114#ifdef __cplusplus
25115extern "C"
25116#endif
25117/* We use char because int might match the return type of a gcc2
25118 builtin and then its argument prototype would still apply. */
25119char pthread_mutex_lock ();
25120int
25121main ()
25122{
25123pthread_mutex_lock ();
25124 ;
25125 return 0;
25126}
25127_ACEOF
25128rm -f conftest.$ac_objext conftest$ac_exeext
25129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025130 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025137 { ac_try='test -z "$ac_c_werror_flag"
25138 || test ! -s conftest.err'
25139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25141 ac_status=$?
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; } &&
25144 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
25150 ac_cv_search_pthread_mutex_lock="none required"
25151else
25152 echo "$as_me: failed program was:" >&5
25153sed 's/^/| /' conftest.$ac_ext >&5
25154
25155fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025156rm -f conftest.err conftest.$ac_objext \
25157 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025158if test "$ac_cv_search_pthread_mutex_lock" = no; then
25159 for ac_lib in pthread; do
25160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25161 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025162/* confdefs.h. */
25163_ACEOF
25164cat confdefs.h >>conftest.$ac_ext
25165cat >>conftest.$ac_ext <<_ACEOF
25166/* end confdefs.h. */
25167
25168/* Override any gcc2 internal prototype to avoid an error. */
25169#ifdef __cplusplus
25170extern "C"
25171#endif
25172/* We use char because int might match the return type of a gcc2
25173 builtin and then its argument prototype would still apply. */
25174char pthread_mutex_lock ();
25175int
25176main ()
25177{
25178pthread_mutex_lock ();
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183rm -f conftest.$ac_objext conftest$ac_exeext
25184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025185 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025186 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025187 grep -v '^ *+' conftest.er1 >conftest.err
25188 rm -f conftest.er1
25189 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25206break
25207else
25208 echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025212rm -f conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025214 done
25215fi
25216LIBS=$ac_func_search_save_LIBS
25217fi
25218echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25219echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25220if test "$ac_cv_search_pthread_mutex_lock" != no; then
25221 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025222
John Criswell40468462004-09-24 21:19:06 +000025223cat >>confdefs.h <<\_ACEOF
25224#define HAVE_PTHREAD_MUTEX_LOCK 1
25225_ACEOF
25226
25227fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025228
Brian Gaekec9a410c2004-02-23 21:30:37 +000025229
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025230
John Criswell7a73b802003-06-30 21:59:07 +000025231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25233if test "${ac_cv_header_stdc+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25235else
25236 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025237/* confdefs.h. */
25238_ACEOF
25239cat confdefs.h >>conftest.$ac_ext
25240cat >>conftest.$ac_ext <<_ACEOF
25241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025242#include <stdlib.h>
25243#include <stdarg.h>
25244#include <string.h>
25245#include <float.h>
25246
John Criswell0c38eaf2003-09-10 15:17:25 +000025247int
25248main ()
25249{
25250
25251 ;
25252 return 0;
25253}
John Criswell7a73b802003-06-30 21:59:07 +000025254_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025255rm -f conftest.$ac_objext
25256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025257 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025259 grep -v '^ *+' conftest.er1 >conftest.err
25260 rm -f conftest.er1
25261 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025263 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025277 ac_cv_header_stdc=yes
25278else
25279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025280sed 's/^/| /' conftest.$ac_ext >&5
25281
25282ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025283fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025285
25286if test $ac_cv_header_stdc = yes; then
25287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25288 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025289/* confdefs.h. */
25290_ACEOF
25291cat confdefs.h >>conftest.$ac_ext
25292cat >>conftest.$ac_ext <<_ACEOF
25293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025294#include <string.h>
25295
25296_ACEOF
25297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025298 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025299 :
25300else
25301 ac_cv_header_stdc=no
25302fi
25303rm -f conftest*
25304
25305fi
25306
25307if test $ac_cv_header_stdc = yes; then
25308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025310/* confdefs.h. */
25311_ACEOF
25312cat confdefs.h >>conftest.$ac_ext
25313cat >>conftest.$ac_ext <<_ACEOF
25314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025315#include <stdlib.h>
25316
25317_ACEOF
25318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025319 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025320 :
25321else
25322 ac_cv_header_stdc=no
25323fi
25324rm -f conftest*
25325
25326fi
25327
25328if test $ac_cv_header_stdc = yes; then
25329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25330 if test "$cross_compiling" = yes; then
25331 :
25332else
25333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025334/* confdefs.h. */
25335_ACEOF
25336cat confdefs.h >>conftest.$ac_ext
25337cat >>conftest.$ac_ext <<_ACEOF
25338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025339#include <ctype.h>
25340#if ((' ' & 0x0FF) == 0x020)
25341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25343#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025344# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025345 (('a' <= (c) && (c) <= 'i') \
25346 || ('j' <= (c) && (c) <= 'r') \
25347 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25349#endif
25350
25351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25352int
25353main ()
25354{
25355 int i;
25356 for (i = 0; i < 256; i++)
25357 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025358 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025359 exit(2);
25360 exit (0);
25361}
25362_ACEOF
25363rm -f conftest$ac_exeext
25364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25365 (eval $ac_link) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25371 ac_status=$?
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; }; then
25374 :
25375else
25376 echo "$as_me: program exited with status $ac_status" >&5
25377echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025378sed 's/^/| /' conftest.$ac_ext >&5
25379
John Criswell7a73b802003-06-30 21:59:07 +000025380( exit $ac_status )
25381ac_cv_header_stdc=no
25382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025384fi
25385fi
25386fi
25387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25388echo "${ECHO_T}$ac_cv_header_stdc" >&6
25389if test $ac_cv_header_stdc = yes; then
25390
25391cat >>confdefs.h <<\_ACEOF
25392#define STDC_HEADERS 1
25393_ACEOF
25394
25395fi
25396
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025397
John Criswell7a73b802003-06-30 21:59:07 +000025398echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25399echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25400if test "${ac_cv_header_sys_wait_h+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402else
25403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025404/* confdefs.h. */
25405_ACEOF
25406cat confdefs.h >>conftest.$ac_ext
25407cat >>conftest.$ac_ext <<_ACEOF
25408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025409#include <sys/types.h>
25410#include <sys/wait.h>
25411#ifndef WEXITSTATUS
25412# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25413#endif
25414#ifndef WIFEXITED
25415# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25416#endif
25417
John Criswell7a73b802003-06-30 21:59:07 +000025418int
25419main ()
25420{
25421 int s;
25422 wait (&s);
25423 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25424 ;
25425 return 0;
25426}
25427_ACEOF
25428rm -f conftest.$ac_objext
25429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025430 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025437 { ac_try='test -z "$ac_c_werror_flag"
25438 || test ! -s conftest.err'
25439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440 (eval $ac_try) 2>&5
25441 ac_status=$?
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; } &&
25444 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446 (eval $ac_try) 2>&5
25447 ac_status=$?
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); }; }; then
25450 ac_cv_header_sys_wait_h=yes
25451else
25452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025453sed 's/^/| /' conftest.$ac_ext >&5
25454
John Criswell7a73b802003-06-30 21:59:07 +000025455ac_cv_header_sys_wait_h=no
25456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025458fi
25459echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25460echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25461if test $ac_cv_header_sys_wait_h = yes; then
25462
25463cat >>confdefs.h <<\_ACEOF
25464#define HAVE_SYS_WAIT_H 1
25465_ACEOF
25466
25467fi
25468
25469
25470
25471
25472
25473
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025474for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000025475do
25476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25477if eval "test \"\${$as_ac_Header+set}\" = set"; then
25478 echo "$as_me:$LINENO: checking for $ac_header" >&5
25479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25480if eval "test \"\${$as_ac_Header+set}\" = set"; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25482fi
25483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25485else
25486 # Is the header compilable?
25487echo "$as_me:$LINENO: checking $ac_header usability" >&5
25488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25489cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025490/* confdefs.h. */
25491_ACEOF
25492cat confdefs.h >>conftest.$ac_ext
25493cat >>conftest.$ac_ext <<_ACEOF
25494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025495$ac_includes_default
25496#include <$ac_header>
25497_ACEOF
25498rm -f conftest.$ac_objext
25499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025500 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025501 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502 grep -v '^ *+' conftest.er1 >conftest.err
25503 rm -f conftest.er1
25504 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025507 { ac_try='test -z "$ac_c_werror_flag"
25508 || test ! -s conftest.err'
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } &&
25514 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516 (eval $ac_try) 2>&5
25517 ac_status=$?
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); }; }; then
25520 ac_header_compiler=yes
25521else
25522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025523sed 's/^/| /' conftest.$ac_ext >&5
25524
John Criswell7a73b802003-06-30 21:59:07 +000025525ac_header_compiler=no
25526fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25529echo "${ECHO_T}$ac_header_compiler" >&6
25530
25531# Is the header present?
25532echo "$as_me:$LINENO: checking $ac_header presence" >&5
25533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25534cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025535/* confdefs.h. */
25536_ACEOF
25537cat confdefs.h >>conftest.$ac_ext
25538cat >>conftest.$ac_ext <<_ACEOF
25539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025540#include <$ac_header>
25541_ACEOF
25542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25544 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025545 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025546 rm -f conftest.er1
25547 cat conftest.err >&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } >/dev/null; then
25550 if test -s conftest.err; then
25551 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025553 else
25554 ac_cpp_err=
25555 fi
25556else
25557 ac_cpp_err=yes
25558fi
25559if test -z "$ac_cpp_err"; then
25560 ac_header_preproc=yes
25561else
25562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025563sed 's/^/| /' conftest.$ac_ext >&5
25564
John Criswell7a73b802003-06-30 21:59:07 +000025565 ac_header_preproc=no
25566fi
25567rm -f conftest.err conftest.$ac_ext
25568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25569echo "${ECHO_T}$ac_header_preproc" >&6
25570
25571# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25573 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25578 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025579 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025580 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25588echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025593 (
25594 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025595## ----------------------------------- ##
25596## Report this to llvmbugs@cs.uiuc.edu ##
25597## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025598_ASBOX
25599 ) |
25600 sed "s/^/$as_me: WARNING: /" >&2
25601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025602esac
25603echo "$as_me:$LINENO: checking for $ac_header" >&5
25604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25605if eval "test \"\${$as_ac_Header+set}\" = set"; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25607else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025608 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025609fi
25610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25612
25613fi
25614if test `eval echo '${'$as_ac_Header'}'` = yes; then
25615 cat >>confdefs.h <<_ACEOF
25616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25617_ACEOF
25618
25619fi
25620
25621done
25622
25623
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025624
25625
25626
25627
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025628for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025629do
25630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25631if eval "test \"\${$as_ac_Header+set}\" = set"; then
25632 echo "$as_me:$LINENO: checking for $ac_header" >&5
25633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25634if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025635 echo $ECHO_N "(cached) $ECHO_C" >&6
25636fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025639else
25640 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025641echo "$as_me:$LINENO: checking $ac_header usability" >&5
25642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025643cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025644/* confdefs.h. */
25645_ACEOF
25646cat confdefs.h >>conftest.$ac_ext
25647cat >>conftest.$ac_ext <<_ACEOF
25648/* end confdefs.h. */
25649$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025650#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025651_ACEOF
25652rm -f conftest.$ac_objext
25653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025654 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025656 grep -v '^ *+' conftest.er1 >conftest.err
25657 rm -f conftest.er1
25658 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025661 { ac_try='test -z "$ac_c_werror_flag"
25662 || test ! -s conftest.err'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25665 ac_status=$?
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; } &&
25668 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_header_compiler=yes
25675else
25676 echo "$as_me: failed program was:" >&5
25677sed 's/^/| /' conftest.$ac_ext >&5
25678
25679ac_header_compiler=no
25680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25683echo "${ECHO_T}$ac_header_compiler" >&6
25684
25685# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025686echo "$as_me:$LINENO: checking $ac_header presence" >&5
25687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025688cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025689/* confdefs.h. */
25690_ACEOF
25691cat confdefs.h >>conftest.$ac_ext
25692cat >>conftest.$ac_ext <<_ACEOF
25693/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025694#include <$ac_header>
25695_ACEOF
25696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25698 ac_status=$?
25699 grep -v '^ *+' conftest.er1 >conftest.err
25700 rm -f conftest.er1
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } >/dev/null; then
25704 if test -s conftest.err; then
25705 ac_cpp_err=$ac_c_preproc_warn_flag
25706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25707 else
25708 ac_cpp_err=
25709 fi
25710else
25711 ac_cpp_err=yes
25712fi
25713if test -z "$ac_cpp_err"; then
25714 ac_header_preproc=yes
25715else
25716 echo "$as_me: failed program was:" >&5
25717sed 's/^/| /' conftest.$ac_ext >&5
25718
25719 ac_header_preproc=no
25720fi
25721rm -f conftest.err conftest.$ac_ext
25722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25723echo "${ECHO_T}$ac_header_preproc" >&6
25724
25725# So? What about this header?
25726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25727 yes:no: )
25728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25732 ac_header_preproc=yes
25733 ;;
25734 no:yes:* )
25735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25747 (
25748 cat <<\_ASBOX
25749## ----------------------------------- ##
25750## Report this to llvmbugs@cs.uiuc.edu ##
25751## ----------------------------------- ##
25752_ASBOX
25753 ) |
25754 sed "s/^/$as_me: WARNING: /" >&2
25755 ;;
25756esac
25757echo "$as_me:$LINENO: checking for $ac_header" >&5
25758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25759if eval "test \"\${$as_ac_Header+set}\" = set"; then
25760 echo $ECHO_N "(cached) $ECHO_C" >&6
25761else
25762 eval "$as_ac_Header=\$ac_header_preproc"
25763fi
25764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25766
25767fi
25768if test `eval echo '${'$as_ac_Header'}'` = yes; then
25769 cat >>confdefs.h <<_ACEOF
25770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25771_ACEOF
25772
25773fi
25774
25775done
25776
25777
25778
25779
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025780for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025781do
25782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25783if eval "test \"\${$as_ac_Header+set}\" = set"; then
25784 echo "$as_me:$LINENO: checking for $ac_header" >&5
25785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25786if eval "test \"\${$as_ac_Header+set}\" = set"; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25788fi
25789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25791else
25792 # Is the header compilable?
25793echo "$as_me:$LINENO: checking $ac_header usability" >&5
25794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25795cat >conftest.$ac_ext <<_ACEOF
25796/* confdefs.h. */
25797_ACEOF
25798cat confdefs.h >>conftest.$ac_ext
25799cat >>conftest.$ac_ext <<_ACEOF
25800/* end confdefs.h. */
25801$ac_includes_default
25802#include <$ac_header>
25803_ACEOF
25804rm -f conftest.$ac_objext
25805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25806 (eval $ac_compile) 2>conftest.er1
25807 ac_status=$?
25808 grep -v '^ *+' conftest.er1 >conftest.err
25809 rm -f conftest.er1
25810 cat conftest.err >&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } &&
25813 { ac_try='test -z "$ac_c_werror_flag"
25814 || test ! -s conftest.err'
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25817 ac_status=$?
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; } &&
25820 { ac_try='test -s conftest.$ac_objext'
25821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822 (eval $ac_try) 2>&5
25823 ac_status=$?
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); }; }; then
25826 ac_header_compiler=yes
25827else
25828 echo "$as_me: failed program was:" >&5
25829sed 's/^/| /' conftest.$ac_ext >&5
25830
25831ac_header_compiler=no
25832fi
25833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25835echo "${ECHO_T}$ac_header_compiler" >&6
25836
25837# Is the header present?
25838echo "$as_me:$LINENO: checking $ac_header presence" >&5
25839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25840cat >conftest.$ac_ext <<_ACEOF
25841/* confdefs.h. */
25842_ACEOF
25843cat confdefs.h >>conftest.$ac_ext
25844cat >>conftest.$ac_ext <<_ACEOF
25845/* end confdefs.h. */
25846#include <$ac_header>
25847_ACEOF
25848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25850 ac_status=$?
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } >/dev/null; then
25856 if test -s conftest.err; then
25857 ac_cpp_err=$ac_c_preproc_warn_flag
25858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25859 else
25860 ac_cpp_err=
25861 fi
25862else
25863 ac_cpp_err=yes
25864fi
25865if test -z "$ac_cpp_err"; then
25866 ac_header_preproc=yes
25867else
25868 echo "$as_me: failed program was:" >&5
25869sed 's/^/| /' conftest.$ac_ext >&5
25870
25871 ac_header_preproc=no
25872fi
25873rm -f conftest.err conftest.$ac_ext
25874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25875echo "${ECHO_T}$ac_header_preproc" >&6
25876
25877# So? What about this header?
25878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25879 yes:no: )
25880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25884 ac_header_preproc=yes
25885 ;;
25886 no:yes:* )
25887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25899 (
25900 cat <<\_ASBOX
25901## ----------------------------------- ##
25902## Report this to llvmbugs@cs.uiuc.edu ##
25903## ----------------------------------- ##
25904_ASBOX
25905 ) |
25906 sed "s/^/$as_me: WARNING: /" >&2
25907 ;;
25908esac
25909echo "$as_me:$LINENO: checking for $ac_header" >&5
25910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25911if eval "test \"\${$as_ac_Header+set}\" = set"; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25913else
25914 eval "$as_ac_Header=\$ac_header_preproc"
25915fi
25916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25918
25919fi
25920if test `eval echo '${'$as_ac_Header'}'` = yes; then
25921 cat >>confdefs.h <<_ACEOF
25922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25923_ACEOF
25924
25925fi
25926
25927done
25928
25929echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25930echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25931if test "${ac_cv_header_time+set}" = set; then
25932 echo $ECHO_N "(cached) $ECHO_C" >&6
25933else
25934 cat >conftest.$ac_ext <<_ACEOF
25935/* confdefs.h. */
25936_ACEOF
25937cat confdefs.h >>conftest.$ac_ext
25938cat >>conftest.$ac_ext <<_ACEOF
25939/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025940#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025941#include <sys/time.h>
25942#include <time.h>
25943
25944int
25945main ()
25946{
25947if ((struct tm *) 0)
25948return 0;
25949 ;
25950 return 0;
25951}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025952_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025953rm -f conftest.$ac_objext
25954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025956 ac_status=$?
25957 grep -v '^ *+' conftest.er1 >conftest.err
25958 rm -f conftest.er1
25959 cat conftest.err >&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025961 (exit $ac_status); } &&
25962 { ac_try='test -z "$ac_c_werror_flag"
25963 || test ! -s conftest.err'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest.$ac_objext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025976else
25977 echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025980ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025981fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25983fi
25984echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25985echo "${ECHO_T}$ac_cv_header_time" >&6
25986if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025987
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025988cat >>confdefs.h <<\_ACEOF
25989#define TIME_WITH_SYS_TIME 1
25990_ACEOF
25991
25992fi
25993
25994echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25995echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25996if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025997 echo $ECHO_N "(cached) $ECHO_C" >&6
25998else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025999 ac_ext=c
26000ac_cpp='$CPP $CPPFLAGS'
26001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26003ac_compiler_gnu=$ac_cv_c_compiler_gnu
26004
26005 cat >conftest.$ac_ext <<_ACEOF
26006/* confdefs.h. */
26007_ACEOF
26008cat confdefs.h >>conftest.$ac_ext
26009cat >>conftest.$ac_ext <<_ACEOF
26010/* end confdefs.h. */
26011#include <sys/mman.h>
26012#include <unistd.h>
26013#include <fcntl.h>
26014int
26015main ()
26016{
26017mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26018 ;
26019 return 0;
26020}
26021_ACEOF
26022rm -f conftest.$ac_objext
26023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024 (eval $ac_compile) 2>conftest.er1
26025 ac_status=$?
26026 grep -v '^ *+' conftest.er1 >conftest.err
26027 rm -f conftest.er1
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } &&
26031 { ac_try='test -z "$ac_c_werror_flag"
26032 || test ! -s conftest.err'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26035 ac_status=$?
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; } &&
26038 { ac_try='test -s conftest.$ac_objext'
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26041 ac_status=$?
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_cv_header_mmap_anon=yes
26045else
26046 echo "$as_me: failed program was:" >&5
26047sed 's/^/| /' conftest.$ac_ext >&5
26048
26049ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26052 ac_ext=c
26053ac_cpp='$CPP $CPPFLAGS'
26054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056ac_compiler_gnu=$ac_cv_c_compiler_gnu
26057
26058
26059fi
26060echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26061echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26062if test "$ac_cv_header_mmap_anon" = yes; then
26063
26064cat >>confdefs.h <<\_ACEOF
26065#define HAVE_MMAP_ANONYMOUS
26066_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026067
26068fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026069
26070
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026071
26072
26073for ac_header in inttypes.h stdint.h
26074do
26075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26076if eval "test \"\${$as_ac_Header+set}\" = set"; then
26077 echo "$as_me:$LINENO: checking for $ac_header" >&5
26078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26079if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026080 echo $ECHO_N "(cached) $ECHO_C" >&6
26081fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026084else
26085 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026086echo "$as_me:$LINENO: checking $ac_header usability" >&5
26087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026088cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026089/* confdefs.h. */
26090_ACEOF
26091cat confdefs.h >>conftest.$ac_ext
26092cat >>conftest.$ac_ext <<_ACEOF
26093/* end confdefs.h. */
26094$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026095#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026096_ACEOF
26097rm -f conftest.$ac_objext
26098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026099 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026101 grep -v '^ *+' conftest.er1 >conftest.err
26102 rm -f conftest.er1
26103 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026106 { ac_try='test -z "$ac_c_werror_flag"
26107 || test ! -s conftest.err'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26110 ac_status=$?
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; } &&
26113 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 ac_header_compiler=yes
26120else
26121 echo "$as_me: failed program was:" >&5
26122sed 's/^/| /' conftest.$ac_ext >&5
26123
26124ac_header_compiler=no
26125fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26128echo "${ECHO_T}$ac_header_compiler" >&6
26129
26130# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026131echo "$as_me:$LINENO: checking $ac_header presence" >&5
26132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026133cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026134/* confdefs.h. */
26135_ACEOF
26136cat confdefs.h >>conftest.$ac_ext
26137cat >>conftest.$ac_ext <<_ACEOF
26138/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026139#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026140_ACEOF
26141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26143 ac_status=$?
26144 grep -v '^ *+' conftest.er1 >conftest.err
26145 rm -f conftest.er1
26146 cat conftest.err >&5
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); } >/dev/null; then
26149 if test -s conftest.err; then
26150 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026152 else
26153 ac_cpp_err=
26154 fi
26155else
26156 ac_cpp_err=yes
26157fi
26158if test -z "$ac_cpp_err"; then
26159 ac_header_preproc=yes
26160else
26161 echo "$as_me: failed program was:" >&5
26162sed 's/^/| /' conftest.$ac_ext >&5
26163
26164 ac_header_preproc=no
26165fi
26166rm -f conftest.err conftest.$ac_ext
26167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26168echo "${ECHO_T}$ac_header_preproc" >&6
26169
26170# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26172 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026177 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026178 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026179 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026192 (
26193 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026194## ----------------------------------- ##
26195## Report this to llvmbugs@cs.uiuc.edu ##
26196## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026197_ASBOX
26198 ) |
26199 sed "s/^/$as_me: WARNING: /" >&2
26200 ;;
26201esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026202echo "$as_me:$LINENO: checking for $ac_header" >&5
26203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26204if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026205 echo $ECHO_N "(cached) $ECHO_C" >&6
26206else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026207 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026208fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026211
26212fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026213if test `eval echo '${'$as_ac_Header'}'` = yes; then
26214 cat >>confdefs.h <<_ACEOF
26215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026216_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026217
26218fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026219
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026220done
26221
John Criswell7ed43ad2004-07-19 16:12:29 +000026222
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026223
John Criswell7a73b802003-06-30 21:59:07 +000026224echo "$as_me:$LINENO: checking for pid_t" >&5
26225echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26226if test "${ac_cv_type_pid_t+set}" = set; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26228else
26229 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026230/* confdefs.h. */
26231_ACEOF
26232cat confdefs.h >>conftest.$ac_ext
26233cat >>conftest.$ac_ext <<_ACEOF
26234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026235$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026236int
26237main ()
26238{
26239if ((pid_t *) 0)
26240 return 0;
26241if (sizeof (pid_t))
26242 return 0;
26243 ;
26244 return 0;
26245}
26246_ACEOF
26247rm -f conftest.$ac_objext
26248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026249 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026250 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026251 grep -v '^ *+' conftest.er1 >conftest.err
26252 rm -f conftest.er1
26253 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026256 { ac_try='test -z "$ac_c_werror_flag"
26257 || test ! -s conftest.err'
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; } &&
26263 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26265 (eval $ac_try) 2>&5
26266 ac_status=$?
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); }; }; then
26269 ac_cv_type_pid_t=yes
26270else
26271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026272sed 's/^/| /' conftest.$ac_ext >&5
26273
John Criswell7a73b802003-06-30 21:59:07 +000026274ac_cv_type_pid_t=no
26275fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026277fi
26278echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26279echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26280if test $ac_cv_type_pid_t = yes; then
26281 :
26282else
26283
26284cat >>confdefs.h <<_ACEOF
26285#define pid_t int
26286_ACEOF
26287
26288fi
26289
26290echo "$as_me:$LINENO: checking for size_t" >&5
26291echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26292if test "${ac_cv_type_size_t+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294else
26295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026296/* confdefs.h. */
26297_ACEOF
26298cat confdefs.h >>conftest.$ac_ext
26299cat >>conftest.$ac_ext <<_ACEOF
26300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026301$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026302int
26303main ()
26304{
26305if ((size_t *) 0)
26306 return 0;
26307if (sizeof (size_t))
26308 return 0;
26309 ;
26310 return 0;
26311}
26312_ACEOF
26313rm -f conftest.$ac_objext
26314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026315 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026317 grep -v '^ *+' conftest.er1 >conftest.err
26318 rm -f conftest.er1
26319 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026322 { ac_try='test -z "$ac_c_werror_flag"
26323 || test ! -s conftest.err'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ac_cv_type_size_t=yes
26336else
26337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026338sed 's/^/| /' conftest.$ac_ext >&5
26339
John Criswell7a73b802003-06-30 21:59:07 +000026340ac_cv_type_size_t=no
26341fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026343fi
26344echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26345echo "${ECHO_T}$ac_cv_type_size_t" >&6
26346if test $ac_cv_type_size_t = yes; then
26347 :
26348else
26349
26350cat >>confdefs.h <<_ACEOF
26351#define size_t unsigned
26352_ACEOF
26353
26354fi
26355
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026356echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26357echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26358if test "${ac_cv_type_signal+set}" = set; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26360else
26361 cat >conftest.$ac_ext <<_ACEOF
26362/* confdefs.h. */
26363_ACEOF
26364cat confdefs.h >>conftest.$ac_ext
26365cat >>conftest.$ac_ext <<_ACEOF
26366/* end confdefs.h. */
26367#include <sys/types.h>
26368#include <signal.h>
26369#ifdef signal
26370# undef signal
26371#endif
26372#ifdef __cplusplus
26373extern "C" void (*signal (int, void (*)(int)))(int);
26374#else
26375void (*signal ()) ();
26376#endif
26377
26378int
26379main ()
26380{
26381int i;
26382 ;
26383 return 0;
26384}
26385_ACEOF
26386rm -f conftest.$ac_objext
26387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26388 (eval $ac_compile) 2>conftest.er1
26389 ac_status=$?
26390 grep -v '^ *+' conftest.er1 >conftest.err
26391 rm -f conftest.er1
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -z "$ac_c_werror_flag"
26396 || test ! -s conftest.err'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26399 ac_status=$?
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; } &&
26402 { ac_try='test -s conftest.$ac_objext'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26405 ac_status=$?
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; }; then
26408 ac_cv_type_signal=void
26409else
26410 echo "$as_me: failed program was:" >&5
26411sed 's/^/| /' conftest.$ac_ext >&5
26412
26413ac_cv_type_signal=int
26414fi
26415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26416fi
26417echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26418echo "${ECHO_T}$ac_cv_type_signal" >&6
26419
26420cat >>confdefs.h <<_ACEOF
26421#define RETSIGTYPE $ac_cv_type_signal
26422_ACEOF
26423
26424
26425echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26426echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26427if test "${ac_cv_struct_tm+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26429else
26430 cat >conftest.$ac_ext <<_ACEOF
26431/* confdefs.h. */
26432_ACEOF
26433cat confdefs.h >>conftest.$ac_ext
26434cat >>conftest.$ac_ext <<_ACEOF
26435/* end confdefs.h. */
26436#include <sys/types.h>
26437#include <time.h>
26438
26439int
26440main ()
26441{
26442struct tm *tp; tp->tm_sec;
26443 ;
26444 return 0;
26445}
26446_ACEOF
26447rm -f conftest.$ac_objext
26448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26449 (eval $ac_compile) 2>conftest.er1
26450 ac_status=$?
26451 grep -v '^ *+' conftest.er1 >conftest.err
26452 rm -f conftest.er1
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } &&
26456 { ac_try='test -z "$ac_c_werror_flag"
26457 || test ! -s conftest.err'
26458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459 (eval $ac_try) 2>&5
26460 ac_status=$?
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); }; } &&
26463 { ac_try='test -s conftest.$ac_objext'
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26466 ac_status=$?
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; }; then
26469 ac_cv_struct_tm=time.h
26470else
26471 echo "$as_me: failed program was:" >&5
26472sed 's/^/| /' conftest.$ac_ext >&5
26473
26474ac_cv_struct_tm=sys/time.h
26475fi
26476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26477fi
26478echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26479echo "${ECHO_T}$ac_cv_struct_tm" >&6
26480if test $ac_cv_struct_tm = sys/time.h; then
26481
26482cat >>confdefs.h <<\_ACEOF
26483#define TM_IN_SYS_TIME 1
26484_ACEOF
26485
26486fi
26487
John Criswell7a73b802003-06-30 21:59:07 +000026488echo "$as_me:$LINENO: checking for int64_t" >&5
26489echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26490if test "${ac_cv_type_int64_t+set}" = set; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26492else
26493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026494/* confdefs.h. */
26495_ACEOF
26496cat confdefs.h >>conftest.$ac_ext
26497cat >>conftest.$ac_ext <<_ACEOF
26498/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026499$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026500int
26501main ()
26502{
26503if ((int64_t *) 0)
26504 return 0;
26505if (sizeof (int64_t))
26506 return 0;
26507 ;
26508 return 0;
26509}
26510_ACEOF
26511rm -f conftest.$ac_objext
26512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026513 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026515 grep -v '^ *+' conftest.er1 >conftest.err
26516 rm -f conftest.er1
26517 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026520 { ac_try='test -z "$ac_c_werror_flag"
26521 || test ! -s conftest.err'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; } &&
26527 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26530 ac_status=$?
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; }; then
26533 ac_cv_type_int64_t=yes
26534else
26535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026536sed 's/^/| /' conftest.$ac_ext >&5
26537
John Criswell7a73b802003-06-30 21:59:07 +000026538ac_cv_type_int64_t=no
26539fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026541fi
26542echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26543echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26544if test $ac_cv_type_int64_t = yes; then
26545
26546cat >>confdefs.h <<_ACEOF
26547#define HAVE_INT64_T 1
26548_ACEOF
26549
26550
26551else
26552 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26553echo "$as_me: error: Type int64_t required but not found" >&2;}
26554 { (exit 1); exit 1; }; }
26555fi
26556
26557echo "$as_me:$LINENO: checking for uint64_t" >&5
26558echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26559if test "${ac_cv_type_uint64_t+set}" = set; then
26560 echo $ECHO_N "(cached) $ECHO_C" >&6
26561else
26562 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026563/* confdefs.h. */
26564_ACEOF
26565cat confdefs.h >>conftest.$ac_ext
26566cat >>conftest.$ac_ext <<_ACEOF
26567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026568$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026569int
26570main ()
26571{
26572if ((uint64_t *) 0)
26573 return 0;
26574if (sizeof (uint64_t))
26575 return 0;
26576 ;
26577 return 0;
26578}
26579_ACEOF
26580rm -f conftest.$ac_objext
26581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026582 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026584 grep -v '^ *+' conftest.er1 >conftest.err
26585 rm -f conftest.er1
26586 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026589 { ac_try='test -z "$ac_c_werror_flag"
26590 || test ! -s conftest.err'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; } &&
26596 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598 (eval $ac_try) 2>&5
26599 ac_status=$?
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; }; then
26602 ac_cv_type_uint64_t=yes
26603else
26604 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026605sed 's/^/| /' conftest.$ac_ext >&5
26606
John Criswell7a73b802003-06-30 21:59:07 +000026607ac_cv_type_uint64_t=no
26608fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026610fi
26611echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26612echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26613if test $ac_cv_type_uint64_t = yes; then
26614
26615cat >>confdefs.h <<_ACEOF
26616#define HAVE_UINT64_T 1
26617_ACEOF
26618
26619
26620else
Misha Brukmanceca9042004-09-02 23:02:30 +000026621 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026622echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26623if test "${ac_cv_type_u_int64_t+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026627/* confdefs.h. */
26628_ACEOF
26629cat confdefs.h >>conftest.$ac_ext
26630cat >>conftest.$ac_ext <<_ACEOF
26631/* end confdefs.h. */
26632$ac_includes_default
26633int
26634main ()
26635{
26636if ((u_int64_t *) 0)
26637 return 0;
26638if (sizeof (u_int64_t))
26639 return 0;
26640 ;
26641 return 0;
26642}
26643_ACEOF
26644rm -f conftest.$ac_objext
26645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026646 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026648 grep -v '^ *+' conftest.er1 >conftest.err
26649 rm -f conftest.er1
26650 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026653 { ac_try='test -z "$ac_c_werror_flag"
26654 || test ! -s conftest.err'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 ac_cv_type_u_int64_t=yes
26667else
26668 echo "$as_me: failed program was:" >&5
26669sed 's/^/| /' conftest.$ac_ext >&5
26670
26671ac_cv_type_u_int64_t=no
26672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026674fi
26675echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26676echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26677if test $ac_cv_type_u_int64_t = yes; then
26678
26679cat >>confdefs.h <<_ACEOF
26680#define HAVE_U_INT64_T 1
26681_ACEOF
26682
26683
Misha Brukmanceca9042004-09-02 23:02:30 +000026684else
26685 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26686echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26687 { (exit 1); exit 1; }; }
26688fi
26689
John Criswell679ff312004-09-02 18:44:44 +000026690fi
26691
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026692
26693
26694
26695
26696
26697
26698
26699
Reid Spencerf9960f72004-12-15 01:41:56 +000026700
Reid Spencerf9960f72004-12-15 01:41:56 +000026701for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026702do
26703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26704echo "$as_me:$LINENO: checking for $ac_func" >&5
26705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26706if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026707 echo $ECHO_N "(cached) $ECHO_C" >&6
26708else
26709 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026710/* confdefs.h. */
26711_ACEOF
26712cat confdefs.h >>conftest.$ac_ext
26713cat >>conftest.$ac_ext <<_ACEOF
26714/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26717#define $ac_func innocuous_$ac_func
26718
26719/* System header to define __stub macros and hopefully few prototypes,
26720 which can conflict with char $ac_func (); below.
26721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26722 <limits.h> exists even on freestanding compilers. */
26723
26724#ifdef __STDC__
26725# include <limits.h>
26726#else
26727# include <assert.h>
26728#endif
26729
26730#undef $ac_func
26731
26732/* Override any gcc2 internal prototype to avoid an error. */
26733#ifdef __cplusplus
26734extern "C"
26735{
26736#endif
26737/* We use char because int might match the return type of a gcc2
26738 builtin and then its argument prototype would still apply. */
26739char $ac_func ();
26740/* The GNU C library defines this for functions which it implements
26741 to always fail with ENOSYS. Some functions are actually named
26742 something starting with __ and the normal name is an alias. */
26743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26744choke me
26745#else
26746char (*f) () = $ac_func;
26747#endif
26748#ifdef __cplusplus
26749}
26750#endif
John Criswell7a73b802003-06-30 21:59:07 +000026751
John Criswell7a73b802003-06-30 21:59:07 +000026752int
26753main ()
26754{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026755return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026756 ;
26757 return 0;
26758}
26759_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026760rm -f conftest.$ac_objext conftest$ac_exeext
26761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26762 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026764 grep -v '^ *+' conftest.er1 >conftest.err
26765 rm -f conftest.er1
26766 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026769 { ac_try='test -z "$ac_c_werror_flag"
26770 || test ! -s conftest.err'
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026776 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026782 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026783else
26784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026785sed 's/^/| /' conftest.$ac_ext >&5
26786
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026787eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026788fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026789rm -f conftest.err conftest.$ac_objext \
26790 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026791fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26794if test `eval echo '${'$as_ac_var'}'` = yes; then
26795 cat >>confdefs.h <<_ACEOF
26796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026797_ACEOF
26798
26799fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026800done
John Criswell7a73b802003-06-30 21:59:07 +000026801
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026802
26803
26804
Reid Spencer6af3d262004-12-15 04:01:48 +000026805
26806
26807for ac_func in mkdtemp realpath strdup strtoq strtoll
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026808do
26809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26810echo "$as_me:$LINENO: checking for $ac_func" >&5
26811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26812if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026813 echo $ECHO_N "(cached) $ECHO_C" >&6
26814else
26815 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026816/* confdefs.h. */
26817_ACEOF
26818cat confdefs.h >>conftest.$ac_ext
26819cat >>conftest.$ac_ext <<_ACEOF
26820/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26823#define $ac_func innocuous_$ac_func
26824
26825/* System header to define __stub macros and hopefully few prototypes,
26826 which can conflict with char $ac_func (); below.
26827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26828 <limits.h> exists even on freestanding compilers. */
26829
26830#ifdef __STDC__
26831# include <limits.h>
26832#else
26833# include <assert.h>
26834#endif
26835
26836#undef $ac_func
26837
26838/* Override any gcc2 internal prototype to avoid an error. */
26839#ifdef __cplusplus
26840extern "C"
26841{
26842#endif
26843/* We use char because int might match the return type of a gcc2
26844 builtin and then its argument prototype would still apply. */
26845char $ac_func ();
26846/* The GNU C library defines this for functions which it implements
26847 to always fail with ENOSYS. Some functions are actually named
26848 something starting with __ and the normal name is an alias. */
26849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26850choke me
26851#else
26852char (*f) () = $ac_func;
26853#endif
26854#ifdef __cplusplus
26855}
26856#endif
John Criswell7a73b802003-06-30 21:59:07 +000026857
John Criswell7a73b802003-06-30 21:59:07 +000026858int
26859main ()
26860{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026861return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026862 ;
26863 return 0;
26864}
26865_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026866rm -f conftest.$ac_objext conftest$ac_exeext
26867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26868 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026870 grep -v '^ *+' conftest.er1 >conftest.err
26871 rm -f conftest.er1
26872 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026875 { ac_try='test -z "$ac_c_werror_flag"
26876 || test ! -s conftest.err'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026882 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026888 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026889else
26890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026891sed 's/^/| /' conftest.$ac_ext >&5
26892
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026893eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026894fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026895rm -f conftest.err conftest.$ac_objext \
26896 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026897fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26900if test `eval echo '${'$as_ac_var'}'` = yes; then
26901 cat >>confdefs.h <<_ACEOF
26902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026903_ACEOF
26904
26905fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026906done
John Criswell7a73b802003-06-30 21:59:07 +000026907
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026908echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26909echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000026910if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026911 echo $ECHO_N "(cached) $ECHO_C" >&6
26912else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026913 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026914ac_cpp='$CPP $CPPFLAGS'
26915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26917ac_compiler_gnu=$ac_cv_c_compiler_gnu
26918
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026919 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026920 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026921else
26922 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026923
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026924 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000026925_ACEOF
26926cat confdefs.h >>conftest.$ac_ext
26927cat >>conftest.$ac_ext <<_ACEOF
26928/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000026929
John Criswella0137d32003-10-13 16:22:01 +000026930#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000026931#include <stdlib.h>
26932
John Criswella0137d32003-10-13 16:22:01 +000026933int
26934main ()
26935{
26936
Reid Spencer2706f8c2004-09-19 23:53:36 +000026937volatile double A, B;
26938char Buffer[100];
26939A = 1;
26940A /= 10.0;
26941sprintf(Buffer, "%a", A);
26942B = atof(Buffer);
26943if (A != B)
26944 return (1);
26945if (A != 0x1.999999999999ap-4)
26946 return (1);
26947return (0);
John Criswella0137d32003-10-13 16:22:01 +000026948 ;
26949 return 0;
26950}
26951_ACEOF
26952rm -f conftest$ac_exeext
26953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26954 (eval $ac_link) 2>&5
26955 ac_status=$?
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026963 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000026964else
26965 echo "$as_me: program exited with status $ac_status" >&5
26966echo "$as_me: failed program was:" >&5
26967sed 's/^/| /' conftest.$ac_ext >&5
26968
26969( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000026970llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026971fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000026973fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026974 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026975ac_cpp='$CPP $CPPFLAGS'
26976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26978ac_compiler_gnu=$ac_cv_c_compiler_gnu
26979
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026980fi
Reid Spencer3be58f92004-11-27 22:01:43 +000026981echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26982echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26983 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000026984
26985cat >>confdefs.h <<\_ACEOF
26986#define HAVE_PRINTF_A 1
26987_ACEOF
26988
Reid Spencer2706f8c2004-09-19 23:53:36 +000026989 fi
John Criswella0137d32003-10-13 16:22:01 +000026990
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026991# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26992# for constant arguments. Useless!
26993echo "$as_me:$LINENO: checking for working alloca.h" >&5
26994echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26995if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000026996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997else
John Criswell0021c312004-02-13 21:57:29 +000026998 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000026999/* confdefs.h. */
27000_ACEOF
27001cat confdefs.h >>conftest.$ac_ext
27002cat >>conftest.$ac_ext <<_ACEOF
27003/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027004#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027005int
27006main ()
27007{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027008char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027009 ;
27010 return 0;
27011}
27012_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027013rm -f conftest.$ac_objext conftest$ac_exeext
27014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27015 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027022 { ac_try='test -z "$ac_c_werror_flag"
27023 || test ! -s conftest.err'
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027029 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027035 ac_cv_working_alloca_h=yes
27036else
27037 echo "$as_me: failed program was:" >&5
27038sed 's/^/| /' conftest.$ac_ext >&5
27039
27040ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027041fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027042rm -f conftest.err conftest.$ac_objext \
27043 conftest$ac_exeext conftest.$ac_ext
27044fi
27045echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27046echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27047if test $ac_cv_working_alloca_h = yes; then
27048
27049cat >>confdefs.h <<\_ACEOF
27050#define HAVE_ALLOCA_H 1
27051_ACEOF
27052
27053fi
27054
27055echo "$as_me:$LINENO: checking for alloca" >&5
27056echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27057if test "${ac_cv_func_alloca_works+set}" = set; then
27058 echo $ECHO_N "(cached) $ECHO_C" >&6
27059else
27060 cat >conftest.$ac_ext <<_ACEOF
27061/* confdefs.h. */
27062_ACEOF
27063cat confdefs.h >>conftest.$ac_ext
27064cat >>conftest.$ac_ext <<_ACEOF
27065/* end confdefs.h. */
27066#ifdef __GNUC__
27067# define alloca __builtin_alloca
27068#else
27069# ifdef _MSC_VER
27070# include <malloc.h>
27071# define alloca _alloca
27072# else
27073# if HAVE_ALLOCA_H
27074# include <alloca.h>
27075# else
27076# ifdef _AIX
27077 #pragma alloca
27078# else
27079# ifndef alloca /* predefined by HP cc +Olibcalls */
27080char *alloca ();
27081# endif
27082# endif
27083# endif
27084# endif
27085#endif
27086
27087int
27088main ()
27089{
27090char *p = (char *) alloca (1);
27091 ;
27092 return 0;
27093}
27094_ACEOF
27095rm -f conftest.$ac_objext conftest$ac_exeext
27096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27097 (eval $ac_link) 2>conftest.er1
27098 ac_status=$?
27099 grep -v '^ *+' conftest.er1 >conftest.err
27100 rm -f conftest.er1
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag"
27105 || test ! -s conftest.err'
27106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107 (eval $ac_try) 2>&5
27108 ac_status=$?
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); }; } &&
27111 { ac_try='test -s conftest$ac_exeext'
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27114 ac_status=$?
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; }; then
27117 ac_cv_func_alloca_works=yes
27118else
27119 echo "$as_me: failed program was:" >&5
27120sed 's/^/| /' conftest.$ac_ext >&5
27121
27122ac_cv_func_alloca_works=no
27123fi
27124rm -f conftest.err conftest.$ac_objext \
27125 conftest$ac_exeext conftest.$ac_ext
27126fi
27127echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27128echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27129
27130if test $ac_cv_func_alloca_works = yes; then
27131
27132cat >>confdefs.h <<\_ACEOF
27133#define HAVE_ALLOCA 1
27134_ACEOF
27135
27136else
27137 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27138# that cause trouble. Some versions do not even contain alloca or
27139# contain a buggy version. If you still want to use their alloca,
27140# use ar to extract alloca.o from them instead of compiling alloca.c.
27141
27142ALLOCA=alloca.$ac_objext
27143
27144cat >>confdefs.h <<\_ACEOF
27145#define C_ALLOCA 1
27146_ACEOF
27147
27148
27149echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27150echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27151if test "${ac_cv_os_cray+set}" = set; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
27154 cat >conftest.$ac_ext <<_ACEOF
27155/* confdefs.h. */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h. */
27160#if defined(CRAY) && ! defined(CRAY2)
27161webecray
27162#else
27163wenotbecray
27164#endif
27165
27166_ACEOF
27167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27168 $EGREP "webecray" >/dev/null 2>&1; then
27169 ac_cv_os_cray=yes
27170else
27171 ac_cv_os_cray=no
27172fi
27173rm -f conftest*
27174
27175fi
27176echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27177echo "${ECHO_T}$ac_cv_os_cray" >&6
27178if test $ac_cv_os_cray = yes; then
27179 for ac_func in _getb67 GETB67 getb67; do
27180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27181echo "$as_me:$LINENO: checking for $ac_func" >&5
27182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27183if eval "test \"\${$as_ac_var+set}\" = set"; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 cat >conftest.$ac_ext <<_ACEOF
27187/* confdefs.h. */
27188_ACEOF
27189cat confdefs.h >>conftest.$ac_ext
27190cat >>conftest.$ac_ext <<_ACEOF
27191/* end confdefs.h. */
27192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27194#define $ac_func innocuous_$ac_func
27195
27196/* System header to define __stub macros and hopefully few prototypes,
27197 which can conflict with char $ac_func (); below.
27198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27199 <limits.h> exists even on freestanding compilers. */
27200
27201#ifdef __STDC__
27202# include <limits.h>
27203#else
27204# include <assert.h>
27205#endif
27206
27207#undef $ac_func
27208
27209/* Override any gcc2 internal prototype to avoid an error. */
27210#ifdef __cplusplus
27211extern "C"
27212{
27213#endif
27214/* We use char because int might match the return type of a gcc2
27215 builtin and then its argument prototype would still apply. */
27216char $ac_func ();
27217/* The GNU C library defines this for functions which it implements
27218 to always fail with ENOSYS. Some functions are actually named
27219 something starting with __ and the normal name is an alias. */
27220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27221choke me
27222#else
27223char (*f) () = $ac_func;
27224#endif
27225#ifdef __cplusplus
27226}
27227#endif
27228
27229int
27230main ()
27231{
27232return f != $ac_func;
27233 ;
27234 return 0;
27235}
27236_ACEOF
27237rm -f conftest.$ac_objext conftest$ac_exeext
27238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27239 (eval $ac_link) 2>conftest.er1
27240 ac_status=$?
27241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } &&
27246 { ac_try='test -z "$ac_c_werror_flag"
27247 || test ! -s conftest.err'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest$ac_exeext'
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27259 eval "$as_ac_var=yes"
27260else
27261 echo "$as_me: failed program was:" >&5
27262sed 's/^/| /' conftest.$ac_ext >&5
27263
27264eval "$as_ac_var=no"
27265fi
27266rm -f conftest.err conftest.$ac_objext \
27267 conftest$ac_exeext conftest.$ac_ext
27268fi
27269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27271if test `eval echo '${'$as_ac_var'}'` = yes; then
27272
27273cat >>confdefs.h <<_ACEOF
27274#define CRAY_STACKSEG_END $ac_func
27275_ACEOF
27276
27277 break
27278fi
27279
27280 done
27281fi
27282
27283echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27284echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27285if test "${ac_cv_c_stack_direction+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27287else
27288 if test "$cross_compiling" = yes; then
27289 ac_cv_c_stack_direction=0
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. */
27297int
27298find_stack_direction ()
27299{
27300 static char *addr = 0;
27301 auto char dummy;
27302 if (addr == 0)
27303 {
27304 addr = &dummy;
27305 return find_stack_direction ();
27306 }
John Criswell0021c312004-02-13 21:57:29 +000027307 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027308 return (&dummy > addr) ? 1 : -1;
27309}
John Criswell0021c312004-02-13 21:57:29 +000027310
John Criswell0021c312004-02-13 21:57:29 +000027311int
27312main ()
27313{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027314 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027315}
27316_ACEOF
27317rm -f conftest$ac_exeext
27318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27319 (eval $ac_link) 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027328 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027329else
27330 echo "$as_me: program exited with status $ac_status" >&5
27331echo "$as_me: failed program was:" >&5
27332sed 's/^/| /' conftest.$ac_ext >&5
27333
27334( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027335ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027338fi
27339fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027340echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27341echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27342
27343cat >>confdefs.h <<_ACEOF
27344#define STACK_DIRECTION $ac_cv_c_stack_direction
27345_ACEOF
27346
27347
John Criswell0021c312004-02-13 21:57:29 +000027348fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027349
27350
27351echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27352echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27353if test "${ac_cv_func_rand48+set}" = set; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355else
27356 ac_ext=cc
27357ac_cpp='$CXXCPP $CPPFLAGS'
27358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27361
27362 cat >conftest.$ac_ext <<_ACEOF
27363/* confdefs.h. */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h. */
27368#include <stdlib.h>
27369int
27370main ()
27371{
27372srand48(0);lrand48();drand48();
27373 ;
27374 return 0;
27375}
27376_ACEOF
27377rm -f conftest.$ac_objext
27378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27379 (eval $ac_compile) 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
27386 { ac_try='test -z "$ac_cxx_werror_flag"
27387 || test ! -s conftest.err'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; } &&
27393 { ac_try='test -s conftest.$ac_objext'
27394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395 (eval $ac_try) 2>&5
27396 ac_status=$?
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
27399 ac_cv_func_rand48=yes
27400else
27401 echo "$as_me: failed program was:" >&5
27402sed 's/^/| /' conftest.$ac_ext >&5
27403
27404ac_cv_func_rand48=no
27405fi
27406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27407 ac_ext=c
27408ac_cpp='$CPP $CPPFLAGS'
27409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27411ac_compiler_gnu=$ac_cv_c_compiler_gnu
27412
27413fi
27414echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27415echo "${ECHO_T}$ac_cv_func_rand48" >&6
27416
27417if test "$ac_cv_func_rand48" = "yes" ; then
27418
27419cat >>confdefs.h <<\_ACEOF
27420#define HAVE_RAND48 1
27421_ACEOF
27422
27423fi
John Criswell0021c312004-02-13 21:57:29 +000027424
27425
John Criswell7a73b802003-06-30 21:59:07 +000027426echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27427echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27428if test "${ac_cv_cxx_namespaces+set}" = set; then
27429 echo $ECHO_N "(cached) $ECHO_C" >&6
27430else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027431 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027432ac_cpp='$CXXCPP $CPPFLAGS'
27433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27436
27437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027438/* confdefs.h. */
27439_ACEOF
27440cat confdefs.h >>conftest.$ac_ext
27441cat >>conftest.$ac_ext <<_ACEOF
27442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027443namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027444int
27445main ()
27446{
27447using namespace Outer::Inner; return i;
27448 ;
27449 return 0;
27450}
27451_ACEOF
27452rm -f conftest.$ac_objext
27453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027454 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027461 { ac_try='test -z "$ac_cxx_werror_flag"
27462 || test ! -s conftest.err'
27463 { (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); }; } &&
27468 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27470 (eval $ac_try) 2>&5
27471 ac_status=$?
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); }; }; then
27474 ac_cv_cxx_namespaces=yes
27475else
27476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027477sed 's/^/| /' conftest.$ac_ext >&5
27478
John Criswell7a73b802003-06-30 21:59:07 +000027479ac_cv_cxx_namespaces=no
27480fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027482 ac_ext=c
27483ac_cpp='$CPP $CPPFLAGS'
27484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27486ac_compiler_gnu=$ac_cv_c_compiler_gnu
27487
27488
27489fi
27490echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27491echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27492if test "$ac_cv_cxx_namespaces" = yes; then
27493
27494cat >>confdefs.h <<\_ACEOF
27495#define HAVE_NAMESPACES
27496_ACEOF
27497
27498fi
27499
Brian Gaeke90583492003-11-10 03:06:28 +000027500echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27501echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27502if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027503 echo $ECHO_N "(cached) $ECHO_C" >&6
27504else
27505
John Criswell7a73b802003-06-30 21:59:07 +000027506 ac_ext=cc
27507ac_cpp='$CXXCPP $CPPFLAGS'
27508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27511
27512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027513/* confdefs.h. */
27514_ACEOF
27515cat confdefs.h >>conftest.$ac_ext
27516cat >>conftest.$ac_ext <<_ACEOF
27517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027518#include <ext/hash_map>
27519#ifdef HAVE_NAMESPACES
27520using namespace std;
27521#endif
John Criswell7a73b802003-06-30 21:59:07 +000027522int
27523main ()
27524{
Brian Gaeke90583492003-11-10 03:06:28 +000027525hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027526 ;
27527 return 0;
27528}
27529_ACEOF
27530rm -f conftest.$ac_objext
27531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027532 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027533 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027534 grep -v '^ *+' conftest.er1 >conftest.err
27535 rm -f conftest.er1
27536 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027539 { ac_try='test -z "$ac_cxx_werror_flag"
27540 || test ! -s conftest.err'
27541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; } &&
27546 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027552 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027553else
27554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027555sed 's/^/| /' conftest.$ac_ext >&5
27556
Brian Gaeke90583492003-11-10 03:06:28 +000027557ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027558fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027560 ac_ext=c
27561ac_cpp='$CPP $CPPFLAGS'
27562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27564ac_compiler_gnu=$ac_cv_c_compiler_gnu
27565
John Criswell7a73b802003-06-30 21:59:07 +000027566fi
Brian Gaeke90583492003-11-10 03:06:28 +000027567echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27568echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027569 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27570 then
John Criswell9f011862004-09-24 18:28:00 +000027571
27572cat >>confdefs.h <<\_ACEOF
27573#define HAVE_STD_EXT_HASH_MAP 1
27574_ACEOF
27575
27576 else
27577
27578cat >>confdefs.h <<\_ACEOF
27579#define HAVE_STD_EXT_HASH_MAP 0
27580_ACEOF
27581
Brian Gaeke90583492003-11-10 03:06:28 +000027582 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027583
Brian Gaeke90583492003-11-10 03:06:28 +000027584 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27585echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27586if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27588else
27589
Brian Gaeke90583492003-11-10 03:06:28 +000027590 ac_ext=cc
27591ac_cpp='$CXXCPP $CPPFLAGS'
27592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27595
27596 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
27602#include <ext/hash_map>
27603#ifdef HAVE_NAMESPACES
27604using namespace __gnu_cxx;
27605#endif
27606int
27607main ()
27608{
27609hash_map<int,int> t;
27610 ;
27611 return 0;
27612}
27613_ACEOF
27614rm -f conftest.$ac_objext
27615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027616 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027618 grep -v '^ *+' conftest.er1 >conftest.err
27619 rm -f conftest.er1
27620 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027623 { ac_try='test -z "$ac_cxx_werror_flag"
27624 || test ! -s conftest.err'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; } &&
27630 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; }; then
27636 ac_cv_cxx_have_gnu_ext_hash_map=yes
27637else
27638 echo "$as_me: failed program was:" >&5
27639sed 's/^/| /' conftest.$ac_ext >&5
27640
27641ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027642fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027644 ac_ext=c
27645ac_cpp='$CPP $CPPFLAGS'
27646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27648ac_compiler_gnu=$ac_cv_c_compiler_gnu
27649
27650fi
27651echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27652echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027653 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27654 then
John Criswell9f011862004-09-24 18:28:00 +000027655
27656cat >>confdefs.h <<\_ACEOF
27657#define HAVE_GNU_EXT_HASH_MAP 1
27658_ACEOF
27659
27660 else
27661
27662cat >>confdefs.h <<\_ACEOF
27663#define HAVE_GNU_EXT_HASH_MAP 0
27664_ACEOF
27665
Brian Gaeke90583492003-11-10 03:06:28 +000027666 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027667
Brian Gaeke90583492003-11-10 03:06:28 +000027668 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27669echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27670if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27672else
John Criswell7a73b802003-06-30 21:59:07 +000027673
Brian Gaeke90583492003-11-10 03:06:28 +000027674 ac_ext=cc
27675ac_cpp='$CXXCPP $CPPFLAGS'
27676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27679
27680 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027681/* confdefs.h. */
27682_ACEOF
27683cat confdefs.h >>conftest.$ac_ext
27684cat >>conftest.$ac_ext <<_ACEOF
27685/* end confdefs.h. */
27686#include <hash_map>
27687int
27688main ()
27689{
27690hash_map<int,int> t;
27691 ;
27692 return 0;
27693}
27694_ACEOF
27695rm -f conftest.$ac_objext
27696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027697 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027699 grep -v '^ *+' conftest.er1 >conftest.err
27700 rm -f conftest.er1
27701 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027704 { ac_try='test -z "$ac_cxx_werror_flag"
27705 || test ! -s conftest.err'
27706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707 (eval $ac_try) 2>&5
27708 ac_status=$?
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); }; } &&
27711 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27713 (eval $ac_try) 2>&5
27714 ac_status=$?
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; }; then
27717 ac_cv_cxx_have_global_hash_map=yes
27718else
27719 echo "$as_me: failed program was:" >&5
27720sed 's/^/| /' conftest.$ac_ext >&5
27721
27722ac_cv_cxx_have_global_hash_map=no
27723fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027725 ac_ext=c
27726ac_cpp='$CPP $CPPFLAGS'
27727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27729ac_compiler_gnu=$ac_cv_c_compiler_gnu
27730
27731fi
27732echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27733echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027734 if test "$ac_cv_cxx_have_global_hash_map" = yes
27735 then
John Criswell9f011862004-09-24 18:28:00 +000027736
27737cat >>confdefs.h <<\_ACEOF
27738#define HAVE_GLOBAL_HASH_MAP 1
27739_ACEOF
27740
27741 else
27742
27743cat >>confdefs.h <<\_ACEOF
27744#define HAVE_GLOBAL_HASH_MAP 0
27745_ACEOF
27746
Brian Gaeke90583492003-11-10 03:06:28 +000027747 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027748
Brian Gaeke90583492003-11-10 03:06:28 +000027749echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27750echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27751if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027752 echo $ECHO_N "(cached) $ECHO_C" >&6
27753else
27754
John Criswell7a73b802003-06-30 21:59:07 +000027755 ac_ext=cc
27756ac_cpp='$CXXCPP $CPPFLAGS'
27757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27760
27761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027762/* confdefs.h. */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027767#include <ext/hash_set>
27768#ifdef HAVE_NAMESPACES
27769using namespace std;
27770#endif
John Criswell7a73b802003-06-30 21:59:07 +000027771int
27772main ()
27773{
Brian Gaeke90583492003-11-10 03:06:28 +000027774hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027775 ;
27776 return 0;
27777}
27778_ACEOF
27779rm -f conftest.$ac_objext
27780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027781 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027783 grep -v '^ *+' conftest.er1 >conftest.err
27784 rm -f conftest.er1
27785 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027788 { ac_try='test -z "$ac_cxx_werror_flag"
27789 || test ! -s conftest.err'
27790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791 (eval $ac_try) 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; } &&
27795 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027801 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027802else
27803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027804sed 's/^/| /' conftest.$ac_ext >&5
27805
Brian Gaeke90583492003-11-10 03:06:28 +000027806ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027807fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027809 ac_ext=c
27810ac_cpp='$CPP $CPPFLAGS'
27811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27813ac_compiler_gnu=$ac_cv_c_compiler_gnu
27814
27815fi
27816echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27817echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027818 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27819 then
John Criswell9f011862004-09-24 18:28:00 +000027820
27821cat >>confdefs.h <<\_ACEOF
27822#define HAVE_STD_EXT_HASH_SET 1
27823_ACEOF
27824
27825 else
27826
27827cat >>confdefs.h <<\_ACEOF
27828#define HAVE_STD_EXT_HASH_SET 0
27829_ACEOF
27830
Brian Gaeke90583492003-11-10 03:06:28 +000027831 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027832
Brian Gaeke90583492003-11-10 03:06:28 +000027833 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27834echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27835if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27837else
27838
Brian Gaeke90583492003-11-10 03:06:28 +000027839 ac_ext=cc
27840ac_cpp='$CXXCPP $CPPFLAGS'
27841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27844
John Criswell7a73b802003-06-30 21:59:07 +000027845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027846/* confdefs.h. */
27847_ACEOF
27848cat confdefs.h >>conftest.$ac_ext
27849cat >>conftest.$ac_ext <<_ACEOF
27850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027851#include <ext/hash_set>
27852#ifdef HAVE_NAMESPACES
27853using namespace __gnu_cxx;
27854#endif
John Criswell7a73b802003-06-30 21:59:07 +000027855int
27856main ()
27857{
Brian Gaeke90583492003-11-10 03:06:28 +000027858hash_set<int> t;
27859 ;
27860 return 0;
27861}
27862_ACEOF
27863rm -f conftest.$ac_objext
27864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027865 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027872 { ac_try='test -z "$ac_cxx_werror_flag"
27873 || test ! -s conftest.err'
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; } &&
27879 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
27885 ac_cv_cxx_have_gnu_ext_hash_set=yes
27886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890ac_cv_cxx_have_gnu_ext_hash_set=no
27891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027893 ac_ext=c
27894ac_cpp='$CPP $CPPFLAGS'
27895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27897ac_compiler_gnu=$ac_cv_c_compiler_gnu
27898
27899fi
27900echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27901echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027902 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27903 then
John Criswell9f011862004-09-24 18:28:00 +000027904
27905cat >>confdefs.h <<\_ACEOF
27906#define HAVE_GNU_EXT_HASH_SET 1
27907_ACEOF
27908
27909 else
27910
27911cat >>confdefs.h <<\_ACEOF
27912#define HAVE_GNU_EXT_HASH_SET 0
27913_ACEOF
27914
Brian Gaeke90583492003-11-10 03:06:28 +000027915 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027916
Brian Gaeke90583492003-11-10 03:06:28 +000027917 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27918echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27919if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27921else
27922
Brian Gaeke90583492003-11-10 03:06:28 +000027923 ac_ext=cc
27924ac_cpp='$CXXCPP $CPPFLAGS'
27925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27928
27929 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027930/* confdefs.h. */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h. */
27935#include <hash_set>
27936int
27937main ()
27938{
John Criswell7a73b802003-06-30 21:59:07 +000027939hash_set<int> t; return 0;
27940 ;
27941 return 0;
27942}
27943_ACEOF
27944rm -f conftest.$ac_objext
27945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027946 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027947 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027948 grep -v '^ *+' conftest.er1 >conftest.err
27949 rm -f conftest.er1
27950 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027953 { ac_try='test -z "$ac_cxx_werror_flag"
27954 || test ! -s conftest.err'
27955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; } &&
27960 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27962 (eval $ac_try) 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027966 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027967else
27968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027969sed 's/^/| /' conftest.$ac_ext >&5
27970
Brian Gaeke90583492003-11-10 03:06:28 +000027971ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027972fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027974 ac_ext=c
27975ac_cpp='$CPP $CPPFLAGS'
27976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27978ac_compiler_gnu=$ac_cv_c_compiler_gnu
27979
John Criswell7a73b802003-06-30 21:59:07 +000027980fi
Brian Gaeke90583492003-11-10 03:06:28 +000027981echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27982echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027983 if test "$ac_cv_cxx_have_global_hash_set" = yes
27984 then
John Criswell9f011862004-09-24 18:28:00 +000027985
27986cat >>confdefs.h <<\_ACEOF
27987#define HAVE_GLOBAL_HASH_SET 1
27988_ACEOF
27989
27990 else
27991
27992cat >>confdefs.h <<\_ACEOF
27993#define HAVE_GLOBAL_HASH_SET 0
27994_ACEOF
27995
Brian Gaeke90583492003-11-10 03:06:28 +000027996 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027997
John Criswell7a73b802003-06-30 21:59:07 +000027998echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27999echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28000if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28002else
28003
John Criswell7a73b802003-06-30 21:59:07 +000028004 ac_ext=cc
28005ac_cpp='$CXXCPP $CPPFLAGS'
28006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28009
28010 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028011/* confdefs.h. */
28012_ACEOF
28013cat confdefs.h >>conftest.$ac_ext
28014cat >>conftest.$ac_ext <<_ACEOF
28015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028016#include <iterator>
28017#ifdef HAVE_NAMESPACES
28018using namespace std;
28019#endif
John Criswell7a73b802003-06-30 21:59:07 +000028020int
28021main ()
28022{
28023iterator<int,int,int> t; return 0;
28024 ;
28025 return 0;
28026}
28027_ACEOF
28028rm -f conftest.$ac_objext
28029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028030 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028031 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028032 grep -v '^ *+' conftest.er1 >conftest.err
28033 rm -f conftest.er1
28034 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028037 { ac_try='test -z "$ac_cxx_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_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028045 { (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 ac_cv_cxx_have_std_iterator=yes
28051else
28052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028053sed 's/^/| /' conftest.$ac_ext >&5
28054
John Criswell7a73b802003-06-30 21:59:07 +000028055ac_cv_cxx_have_std_iterator=no
28056fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028058 ac_ext=c
28059ac_cpp='$CPP $CPPFLAGS'
28060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28062ac_compiler_gnu=$ac_cv_c_compiler_gnu
28063
28064
28065fi
28066echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28067echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028068if test "$ac_cv_cxx_have_std_iterator" = yes
28069then
John Criswell40468462004-09-24 21:19:06 +000028070
28071cat >>confdefs.h <<\_ACEOF
28072#define HAVE_STD_ITERATOR 1
28073_ACEOF
28074
28075else
28076
28077cat >>confdefs.h <<\_ACEOF
28078#define HAVE_STD_ITERATOR 0
28079_ACEOF
28080
John Criswell7a73b802003-06-30 21:59:07 +000028081fi
28082
28083echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28084echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28085if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28087else
28088
John Criswell7a73b802003-06-30 21:59:07 +000028089 ac_ext=cc
28090ac_cpp='$CXXCPP $CPPFLAGS'
28091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28094
28095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028101#include <iterator>
28102#ifdef HAVE_NAMESPACES
28103using namespace std;
28104#endif
John Criswell7a73b802003-06-30 21:59:07 +000028105int
28106main ()
28107{
John Criswellc78022e2003-07-29 19:11:58 +000028108bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028109 ;
28110 return 0;
28111}
28112_ACEOF
28113rm -f conftest.$ac_objext
28114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028115 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028117 grep -v '^ *+' conftest.er1 >conftest.err
28118 rm -f conftest.er1
28119 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028122 { ac_try='test -z "$ac_cxx_werror_flag"
28123 || test ! -s conftest.err'
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); }; } &&
28129 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131 (eval $ac_try) 2>&5
28132 ac_status=$?
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; }; then
28135 ac_cv_cxx_have_bi_iterator=yes
28136else
28137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028138sed 's/^/| /' conftest.$ac_ext >&5
28139
John Criswell7a73b802003-06-30 21:59:07 +000028140ac_cv_cxx_have_bi_iterator=no
28141fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028143 ac_ext=c
28144ac_cpp='$CPP $CPPFLAGS'
28145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28147ac_compiler_gnu=$ac_cv_c_compiler_gnu
28148
28149
28150fi
28151echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28152echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028153if test "$ac_cv_cxx_have_bi_iterator" = yes
28154then
John Criswell40468462004-09-24 21:19:06 +000028155
28156cat >>confdefs.h <<\_ACEOF
28157#define HAVE_BI_ITERATOR 1
28158_ACEOF
28159
28160else
28161
28162cat >>confdefs.h <<\_ACEOF
28163#define HAVE_BI_ITERATOR 0
28164_ACEOF
28165
John Criswell7a73b802003-06-30 21:59:07 +000028166fi
28167
28168echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28169echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28170if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28172else
28173
John Criswell7a73b802003-06-30 21:59:07 +000028174 ac_ext=cc
28175ac_cpp='$CXXCPP $CPPFLAGS'
28176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28179
28180 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028181/* confdefs.h. */
28182_ACEOF
28183cat confdefs.h >>conftest.$ac_ext
28184cat >>conftest.$ac_ext <<_ACEOF
28185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028186#include <iterator>
28187#ifdef HAVE_NAMESPACES
28188using namespace std;
28189#endif
John Criswell7a73b802003-06-30 21:59:07 +000028190int
28191main ()
28192{
John Criswellc78022e2003-07-29 19:11:58 +000028193forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028194 ;
28195 return 0;
28196}
28197_ACEOF
28198rm -f conftest.$ac_objext
28199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028200 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028202 grep -v '^ *+' conftest.er1 >conftest.err
28203 rm -f conftest.er1
28204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028207 { ac_try='test -z "$ac_cxx_werror_flag"
28208 || test ! -s conftest.err'
28209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210 (eval $ac_try) 2>&5
28211 ac_status=$?
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; } &&
28214 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28217 ac_status=$?
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; }; then
28220 ac_cv_cxx_have_fwd_iterator=yes
28221else
28222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028223sed 's/^/| /' conftest.$ac_ext >&5
28224
John Criswell7a73b802003-06-30 21:59:07 +000028225ac_cv_cxx_have_fwd_iterator=no
28226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028228 ac_ext=c
28229ac_cpp='$CPP $CPPFLAGS'
28230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232ac_compiler_gnu=$ac_cv_c_compiler_gnu
28233
28234
28235fi
28236echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28237echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028238if test "$ac_cv_cxx_have_fwd_iterator" = yes
28239then
John Criswell40468462004-09-24 21:19:06 +000028240
28241cat >>confdefs.h <<\_ACEOF
28242#define HAVE_FWD_ITERATOR 1
28243_ACEOF
28244
28245else
28246
28247cat >>confdefs.h <<\_ACEOF
28248#define HAVE_FWD_ITERATOR 0
28249_ACEOF
28250
John Criswell7a73b802003-06-30 21:59:07 +000028251fi
28252
28253
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028254echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28255echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28256if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28257 echo $ECHO_N "(cached) $ECHO_C" >&6
28258else
28259 ac_ext=cc
28260ac_cpp='$CXXCPP $CPPFLAGS'
28261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28264
Reid Spencerabec8f92004-10-27 23:03:44 +000028265 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028266/* confdefs.h. */
28267_ACEOF
28268cat confdefs.h >>conftest.$ac_ext
28269cat >>conftest.$ac_ext <<_ACEOF
28270/* end confdefs.h. */
28271#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028272int
28273main ()
28274{
28275float f; isnan(f);
28276 ;
28277 return 0;
28278}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028279_ACEOF
28280rm -f conftest.$ac_objext
28281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028282 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028283 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028284 grep -v '^ *+' conftest.er1 >conftest.err
28285 rm -f conftest.er1
28286 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028289 { ac_try='test -z "$ac_cxx_werror_flag"
28290 || test ! -s conftest.err'
28291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292 (eval $ac_try) 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; } &&
28296 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; }; then
28302 ac_cv_func_isnan_in_math_h=yes
28303else
28304 echo "$as_me: failed program was:" >&5
28305sed 's/^/| /' conftest.$ac_ext >&5
28306
28307ac_cv_func_isnan_in_math_h=no
28308fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028310 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028311ac_cpp='$CPP $CPPFLAGS'
28312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28314ac_compiler_gnu=$ac_cv_c_compiler_gnu
28315
28316fi
28317echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28318echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028319
28320
28321if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028322
28323cat >>confdefs.h <<\_ACEOF
28324#define HAVE_ISNAN_IN_MATH_H 1
28325_ACEOF
28326
Reid Spencerabec8f92004-10-27 23:03:44 +000028327fi
28328
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028329echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28330echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28331if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28332 echo $ECHO_N "(cached) $ECHO_C" >&6
28333else
28334 ac_ext=cc
28335ac_cpp='$CXXCPP $CPPFLAGS'
28336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28339
Reid Spencerabec8f92004-10-27 23:03:44 +000028340 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
28346#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028347int
28348main ()
28349{
28350float f; isnan(f);
28351 ;
28352 return 0;
28353}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028354_ACEOF
28355rm -f conftest.$ac_objext
28356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028357 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028359 grep -v '^ *+' conftest.er1 >conftest.err
28360 rm -f conftest.er1
28361 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028364 { ac_try='test -z "$ac_cxx_werror_flag"
28365 || test ! -s conftest.err'
28366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367 (eval $ac_try) 2>&5
28368 ac_status=$?
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; } &&
28371 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
28377 ac_cv_func_isnan_in_cmath=yes
28378else
28379 echo "$as_me: failed program was:" >&5
28380sed 's/^/| /' conftest.$ac_ext >&5
28381
28382ac_cv_func_isnan_in_cmath=no
28383fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028385 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028386ac_cpp='$CPP $CPPFLAGS'
28387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28389ac_compiler_gnu=$ac_cv_c_compiler_gnu
28390
28391fi
28392echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28393echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028394
28395if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028396
28397cat >>confdefs.h <<\_ACEOF
28398#define HAVE_ISNAN_IN_CMATH 1
28399_ACEOF
28400
Reid Spencerabec8f92004-10-27 23:03:44 +000028401fi
28402
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028403echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28404echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28405if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407else
28408 ac_ext=cc
28409ac_cpp='$CXXCPP $CPPFLAGS'
28410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413
Reid Spencerabec8f92004-10-27 23:03:44 +000028414 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028415/* confdefs.h. */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h. */
28420#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028421int
28422main ()
28423{
28424float f; std::isnan(f);
28425 ;
28426 return 0;
28427}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028428_ACEOF
28429rm -f conftest.$ac_objext
28430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028431 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028433 grep -v '^ *+' conftest.er1 >conftest.err
28434 rm -f conftest.er1
28435 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028438 { ac_try='test -z "$ac_cxx_werror_flag"
28439 || test ! -s conftest.err'
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28442 ac_status=$?
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 ac_cv_func_std_isnan_in_cmath=yes
28452else
28453 echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456ac_cv_func_std_isnan_in_cmath=no
28457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028459 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028460ac_cpp='$CPP $CPPFLAGS'
28461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463ac_compiler_gnu=$ac_cv_c_compiler_gnu
28464
28465fi
28466echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28467echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028468
28469if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028470
28471cat >>confdefs.h <<\_ACEOF
28472#define HAVE_STD_ISNAN_IN_CMATH 1
28473_ACEOF
28474
Reid Spencerabec8f92004-10-27 23:03:44 +000028475fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028476
28477
Brian Gaeke52a551d2004-07-21 03:14:12 +000028478echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28479echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28480if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28481 echo $ECHO_N "(cached) $ECHO_C" >&6
28482else
28483 ac_ext=cc
28484ac_cpp='$CXXCPP $CPPFLAGS'
28485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28488
Reid Spencerabec8f92004-10-27 23:03:44 +000028489 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
28495#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028496int
28497main ()
28498{
28499float f; isinf(f);
28500 ;
28501 return 0;
28502}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028503_ACEOF
28504rm -f conftest.$ac_objext
28505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028506 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028508 grep -v '^ *+' conftest.er1 >conftest.err
28509 rm -f conftest.er1
28510 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028513 { ac_try='test -z "$ac_cxx_werror_flag"
28514 || test ! -s conftest.err'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; } &&
28520 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28522 (eval $ac_try) 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; }; then
28526 ac_cv_func_isinf_in_math_h=yes
28527else
28528 echo "$as_me: failed program was:" >&5
28529sed 's/^/| /' conftest.$ac_ext >&5
28530
28531ac_cv_func_isinf_in_math_h=no
28532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028534 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028535ac_cpp='$CPP $CPPFLAGS'
28536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28538ac_compiler_gnu=$ac_cv_c_compiler_gnu
28539
28540fi
28541echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28542echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028543
28544if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028545
28546cat >>confdefs.h <<\_ACEOF
28547#define HAVE_ISINF_IN_MATH_H 1
28548_ACEOF
28549
Reid Spencerabec8f92004-10-27 23:03:44 +000028550fi
28551
Brian Gaeke52a551d2004-07-21 03:14:12 +000028552echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28553echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28554if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28556else
28557 ac_ext=cc
28558ac_cpp='$CXXCPP $CPPFLAGS'
28559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28562
Reid Spencerabec8f92004-10-27 23:03:44 +000028563 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028564/* confdefs.h. */
28565_ACEOF
28566cat confdefs.h >>conftest.$ac_ext
28567cat >>conftest.$ac_ext <<_ACEOF
28568/* end confdefs.h. */
28569#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028570int
28571main ()
28572{
28573float f; isinf(f);
28574 ;
28575 return 0;
28576}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028577_ACEOF
28578rm -f conftest.$ac_objext
28579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028580 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028582 grep -v '^ *+' conftest.er1 >conftest.err
28583 rm -f conftest.er1
28584 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028587 { ac_try='test -z "$ac_cxx_werror_flag"
28588 || test ! -s conftest.err'
28589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590 (eval $ac_try) 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; } &&
28594 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; }; then
28600 ac_cv_func_isinf_in_cmath=yes
28601else
28602 echo "$as_me: failed program was:" >&5
28603sed 's/^/| /' conftest.$ac_ext >&5
28604
28605ac_cv_func_isinf_in_cmath=no
28606fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028608 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028609ac_cpp='$CPP $CPPFLAGS'
28610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28612ac_compiler_gnu=$ac_cv_c_compiler_gnu
28613
28614fi
28615echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28616echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028617
28618if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028619
28620cat >>confdefs.h <<\_ACEOF
28621#define HAVE_ISINF_IN_CMATH 1
28622_ACEOF
28623
Reid Spencerabec8f92004-10-27 23:03:44 +000028624fi
28625
Brian Gaeke52a551d2004-07-21 03:14:12 +000028626echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28627echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28628if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28629 echo $ECHO_N "(cached) $ECHO_C" >&6
28630else
28631 ac_ext=cc
28632ac_cpp='$CXXCPP $CPPFLAGS'
28633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28636
Reid Spencerabec8f92004-10-27 23:03:44 +000028637 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028638/* confdefs.h. */
28639_ACEOF
28640cat confdefs.h >>conftest.$ac_ext
28641cat >>conftest.$ac_ext <<_ACEOF
28642/* end confdefs.h. */
28643#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028644int
28645main ()
28646{
28647float f; std::isinf(f)}
28648 ;
28649 return 0;
28650}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028651_ACEOF
28652rm -f conftest.$ac_objext
28653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028654 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028656 grep -v '^ *+' conftest.er1 >conftest.err
28657 rm -f conftest.er1
28658 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028661 { ac_try='test -z "$ac_cxx_werror_flag"
28662 || test ! -s conftest.err'
28663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; } &&
28668 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 ac_cv_func_std_isinf_in_cmath=yes
28675else
28676 echo "$as_me: failed program was:" >&5
28677sed 's/^/| /' conftest.$ac_ext >&5
28678
28679ac_cv_func_std_isinf_in_cmath=no
28680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028682 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028683ac_cpp='$CPP $CPPFLAGS'
28684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28686ac_compiler_gnu=$ac_cv_c_compiler_gnu
28687
28688fi
28689echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28690echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028691
28692if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028693
28694cat >>confdefs.h <<\_ACEOF
28695#define HAVE_STD_ISINF_IN_CMATH 1
28696_ACEOF
28697
Reid Spencerabec8f92004-10-27 23:03:44 +000028698fi
28699
Brian Gaeked59a6472004-07-21 03:33:58 +000028700echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28701echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28702if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704else
28705 ac_ext=cc
28706ac_cpp='$CXXCPP $CPPFLAGS'
28707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28710
Reid Spencerabec8f92004-10-27 23:03:44 +000028711 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028712/* confdefs.h. */
28713_ACEOF
28714cat confdefs.h >>conftest.$ac_ext
28715cat >>conftest.$ac_ext <<_ACEOF
28716/* end confdefs.h. */
28717#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028718int
28719main ()
28720{
28721float f; finite(f);
28722 ;
28723 return 0;
28724}
Brian Gaeked59a6472004-07-21 03:33:58 +000028725_ACEOF
28726rm -f conftest.$ac_objext
28727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028728 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028735 { ac_try='test -z "$ac_cxx_werror_flag"
28736 || test ! -s conftest.err'
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_cv_func_finite_in_ieeefp_h=yes
28749else
28750 echo "$as_me: failed program was:" >&5
28751sed 's/^/| /' conftest.$ac_ext >&5
28752
28753ac_cv_func_finite_in_ieeefp_h=no
28754fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028756 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028757ac_cpp='$CPP $CPPFLAGS'
28758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28760ac_compiler_gnu=$ac_cv_c_compiler_gnu
28761
28762fi
28763echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28764echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028765
Brian Gaeke6802b552004-10-28 05:06:45 +000028766if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028767
28768cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028769#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028770_ACEOF
28771
Reid Spencerabec8f92004-10-27 23:03:44 +000028772fi
28773
28774
28775
John Criswell7a73b802003-06-30 21:59:07 +000028776
28777
28778for ac_header in stdlib.h unistd.h
28779do
28780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28781if eval "test \"\${$as_ac_Header+set}\" = set"; then
28782 echo "$as_me:$LINENO: checking for $ac_header" >&5
28783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28784if eval "test \"\${$as_ac_Header+set}\" = set"; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28786fi
28787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28789else
28790 # Is the header compilable?
28791echo "$as_me:$LINENO: checking $ac_header usability" >&5
28792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28793cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028794/* confdefs.h. */
28795_ACEOF
28796cat confdefs.h >>conftest.$ac_ext
28797cat >>conftest.$ac_ext <<_ACEOF
28798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028799$ac_includes_default
28800#include <$ac_header>
28801_ACEOF
28802rm -f conftest.$ac_objext
28803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028804 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028805 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028806 grep -v '^ *+' conftest.er1 >conftest.err
28807 rm -f conftest.er1
28808 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028811 { ac_try='test -z "$ac_c_werror_flag"
28812 || test ! -s conftest.err'
28813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28814 (eval $ac_try) 2>&5
28815 ac_status=$?
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); }; } &&
28818 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820 (eval $ac_try) 2>&5
28821 ac_status=$?
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); }; }; then
28824 ac_header_compiler=yes
28825else
28826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028827sed 's/^/| /' conftest.$ac_ext >&5
28828
John Criswell7a73b802003-06-30 21:59:07 +000028829ac_header_compiler=no
28830fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28833echo "${ECHO_T}$ac_header_compiler" >&6
28834
28835# Is the header present?
28836echo "$as_me:$LINENO: checking $ac_header presence" >&5
28837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28838cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028839/* confdefs.h. */
28840_ACEOF
28841cat confdefs.h >>conftest.$ac_ext
28842cat >>conftest.$ac_ext <<_ACEOF
28843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028844#include <$ac_header>
28845_ACEOF
28846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28848 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000028849 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000028850 rm -f conftest.er1
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } >/dev/null; then
28854 if test -s conftest.err; then
28855 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000028857 else
28858 ac_cpp_err=
28859 fi
28860else
28861 ac_cpp_err=yes
28862fi
28863if test -z "$ac_cpp_err"; then
28864 ac_header_preproc=yes
28865else
28866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028867sed 's/^/| /' conftest.$ac_ext >&5
28868
John Criswell7a73b802003-06-30 21:59:07 +000028869 ac_header_preproc=no
28870fi
28871rm -f conftest.err conftest.$ac_ext
28872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28873echo "${ECHO_T}$ac_header_preproc" >&6
28874
28875# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28877 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000028878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28882 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028883 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028884 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000028885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028897 (
28898 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028899## ----------------------------------- ##
28900## Report this to llvmbugs@cs.uiuc.edu ##
28901## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000028902_ASBOX
28903 ) |
28904 sed "s/^/$as_me: WARNING: /" >&2
28905 ;;
John Criswell7a73b802003-06-30 21:59:07 +000028906esac
28907echo "$as_me:$LINENO: checking for $ac_header" >&5
28908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28909if eval "test \"\${$as_ac_Header+set}\" = set"; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28911else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028912 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000028913fi
28914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28916
28917fi
28918if test `eval echo '${'$as_ac_Header'}'` = yes; then
28919 cat >>confdefs.h <<_ACEOF
28920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28921_ACEOF
28922
28923fi
28924
28925done
28926
28927
28928for ac_func in getpagesize
28929do
28930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28931echo "$as_me:$LINENO: checking for $ac_func" >&5
28932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28933if eval "test \"\${$as_ac_var+set}\" = set"; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28935else
28936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028937/* confdefs.h. */
28938_ACEOF
28939cat confdefs.h >>conftest.$ac_ext
28940cat >>conftest.$ac_ext <<_ACEOF
28941/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28944#define $ac_func innocuous_$ac_func
28945
John Criswell7a73b802003-06-30 21:59:07 +000028946/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000028947 which can conflict with char $ac_func (); below.
28948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28949 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028950
John Criswell0c38eaf2003-09-10 15:17:25 +000028951#ifdef __STDC__
28952# include <limits.h>
28953#else
28954# include <assert.h>
28955#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000028956
28957#undef $ac_func
28958
John Criswell7a73b802003-06-30 21:59:07 +000028959/* Override any gcc2 internal prototype to avoid an error. */
28960#ifdef __cplusplus
28961extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000028962{
John Criswell7a73b802003-06-30 21:59:07 +000028963#endif
28964/* We use char because int might match the return type of a gcc2
28965 builtin and then its argument prototype would still apply. */
28966char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028967/* The GNU C library defines this for functions which it implements
28968 to always fail with ENOSYS. Some functions are actually named
28969 something starting with __ and the normal name is an alias. */
28970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28971choke me
28972#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028973char (*f) () = $ac_func;
28974#endif
28975#ifdef __cplusplus
28976}
John Criswell7a73b802003-06-30 21:59:07 +000028977#endif
28978
John Criswell0c38eaf2003-09-10 15:17:25 +000028979int
28980main ()
28981{
28982return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028983 ;
28984 return 0;
28985}
28986_ACEOF
28987rm -f conftest.$ac_objext conftest$ac_exeext
28988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028989 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028990 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028991 grep -v '^ *+' conftest.er1 >conftest.err
28992 rm -f conftest.er1
28993 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028996 { ac_try='test -z "$ac_c_werror_flag"
28997 || test ! -s conftest.err'
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
29003 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
29009 eval "$as_ac_var=yes"
29010else
29011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029012sed 's/^/| /' conftest.$ac_ext >&5
29013
John Criswell7a73b802003-06-30 21:59:07 +000029014eval "$as_ac_var=no"
29015fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029016rm -f conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029018fi
29019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29021if test `eval echo '${'$as_ac_var'}'` = yes; then
29022 cat >>confdefs.h <<_ACEOF
29023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29024_ACEOF
29025
29026fi
29027done
29028
29029echo "$as_me:$LINENO: checking for working mmap" >&5
29030echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29031if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033else
29034 if test "$cross_compiling" = yes; then
29035 ac_cv_func_mmap_fixed_mapped=no
29036else
29037 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029038/* confdefs.h. */
29039_ACEOF
29040cat confdefs.h >>conftest.$ac_ext
29041cat >>conftest.$ac_ext <<_ACEOF
29042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029043$ac_includes_default
29044/* malloc might have been renamed as rpl_malloc. */
29045#undef malloc
29046
29047/* Thanks to Mike Haertel and Jim Avera for this test.
29048 Here is a matrix of mmap possibilities:
29049 mmap private not fixed
29050 mmap private fixed at somewhere currently unmapped
29051 mmap private fixed at somewhere already mapped
29052 mmap shared not fixed
29053 mmap shared fixed at somewhere currently unmapped
29054 mmap shared fixed at somewhere already mapped
29055 For private mappings, we should verify that changes cannot be read()
29056 back from the file, nor mmap's back from the file at a different
29057 address. (There have been systems where private was not correctly
29058 implemented like the infamous i386 svr4.0, and systems where the
29059 VM page cache was not coherent with the file system buffer cache
29060 like early versions of FreeBSD and possibly contemporary NetBSD.)
29061 For shared mappings, we should conversely verify that changes get
29062 propagated back to all the places they're supposed to be.
29063
29064 Grep wants private fixed already mapped.
29065 The main things grep needs to know about mmap are:
29066 * does it exist and is it safe to write into the mmap'd area
29067 * how to use it (BSD variants) */
29068
29069#include <fcntl.h>
29070#include <sys/mman.h>
29071
29072#if !STDC_HEADERS && !HAVE_STDLIB_H
29073char *malloc ();
29074#endif
29075
29076/* This mess was copied from the GNU getpagesize.h. */
29077#if !HAVE_GETPAGESIZE
29078/* Assume that all systems that can run configure have sys/param.h. */
29079# if !HAVE_SYS_PARAM_H
29080# define HAVE_SYS_PARAM_H 1
29081# endif
29082
29083# ifdef _SC_PAGESIZE
29084# define getpagesize() sysconf(_SC_PAGESIZE)
29085# else /* no _SC_PAGESIZE */
29086# if HAVE_SYS_PARAM_H
29087# include <sys/param.h>
29088# ifdef EXEC_PAGESIZE
29089# define getpagesize() EXEC_PAGESIZE
29090# else /* no EXEC_PAGESIZE */
29091# ifdef NBPG
29092# define getpagesize() NBPG * CLSIZE
29093# ifndef CLSIZE
29094# define CLSIZE 1
29095# endif /* no CLSIZE */
29096# else /* no NBPG */
29097# ifdef NBPC
29098# define getpagesize() NBPC
29099# else /* no NBPC */
29100# ifdef PAGESIZE
29101# define getpagesize() PAGESIZE
29102# endif /* PAGESIZE */
29103# endif /* no NBPC */
29104# endif /* no NBPG */
29105# endif /* no EXEC_PAGESIZE */
29106# else /* no HAVE_SYS_PARAM_H */
29107# define getpagesize() 8192 /* punt totally */
29108# endif /* no HAVE_SYS_PARAM_H */
29109# endif /* no _SC_PAGESIZE */
29110
29111#endif /* no HAVE_GETPAGESIZE */
29112
29113int
29114main ()
29115{
29116 char *data, *data2, *data3;
29117 int i, pagesize;
29118 int fd;
29119
29120 pagesize = getpagesize ();
29121
29122 /* First, make a file with some known garbage in it. */
29123 data = (char *) malloc (pagesize);
29124 if (!data)
29125 exit (1);
29126 for (i = 0; i < pagesize; ++i)
29127 *(data + i) = rand ();
29128 umask (0);
29129 fd = creat ("conftest.mmap", 0600);
29130 if (fd < 0)
29131 exit (1);
29132 if (write (fd, data, pagesize) != pagesize)
29133 exit (1);
29134 close (fd);
29135
29136 /* Next, try to mmap the file at a fixed address which already has
29137 something else allocated at it. If we can, also make sure that
29138 we see the same garbage. */
29139 fd = open ("conftest.mmap", O_RDWR);
29140 if (fd < 0)
29141 exit (1);
29142 data2 = (char *) malloc (2 * pagesize);
29143 if (!data2)
29144 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029145 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029146 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029147 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029148 exit (1);
29149 for (i = 0; i < pagesize; ++i)
29150 if (*(data + i) != *(data2 + i))
29151 exit (1);
29152
29153 /* Finally, make sure that changes to the mapped area do not
29154 percolate back to the file as seen by read(). (This is a bug on
29155 some variants of i386 svr4.0.) */
29156 for (i = 0; i < pagesize; ++i)
29157 *(data2 + i) = *(data2 + i) + 1;
29158 data3 = (char *) malloc (pagesize);
29159 if (!data3)
29160 exit (1);
29161 if (read (fd, data3, pagesize) != pagesize)
29162 exit (1);
29163 for (i = 0; i < pagesize; ++i)
29164 if (*(data + i) != *(data3 + i))
29165 exit (1);
29166 close (fd);
29167 exit (0);
29168}
29169_ACEOF
29170rm -f conftest$ac_exeext
29171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29172 (eval $ac_link) 2>&5
29173 ac_status=$?
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29177 (eval $ac_try) 2>&5
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; }; then
29181 ac_cv_func_mmap_fixed_mapped=yes
29182else
29183 echo "$as_me: program exited with status $ac_status" >&5
29184echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029185sed 's/^/| /' conftest.$ac_ext >&5
29186
John Criswell7a73b802003-06-30 21:59:07 +000029187( exit $ac_status )
29188ac_cv_func_mmap_fixed_mapped=no
29189fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029190rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029191fi
29192fi
29193echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29194echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29195if test $ac_cv_func_mmap_fixed_mapped = yes; then
29196
29197cat >>confdefs.h <<\_ACEOF
29198#define HAVE_MMAP 1
29199_ACEOF
29200
29201fi
29202rm -f conftest.mmap
29203
29204echo "$as_me:$LINENO: checking for mmap of files" >&5
29205echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29206if test "${ac_cv_func_mmap_file+set}" = set; then
29207 echo $ECHO_N "(cached) $ECHO_C" >&6
29208else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029209 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029210ac_cpp='$CPP $CPPFLAGS'
29211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29213ac_compiler_gnu=$ac_cv_c_compiler_gnu
29214
29215 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029216 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029217else
29218 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029219
Reid Spencer777ce172004-09-20 04:09:56 +000029220 /* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
29225
John Criswell7a73b802003-06-30 21:59:07 +000029226#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029227#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029228#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029229
29230int
29231main ()
29232{
John Criswell7a73b802003-06-30 21:59:07 +000029233
29234 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029235 fd = creat ("foo",0777);
29236 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29237 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029238 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029239 ;
29240 return 0;
29241}
John Criswell7a73b802003-06-30 21:59:07 +000029242_ACEOF
29243rm -f conftest$ac_exeext
29244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29245 (eval $ac_link) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29251 ac_status=$?
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; }; then
29254 ac_cv_func_mmap_file=yes
29255else
29256 echo "$as_me: program exited with status $ac_status" >&5
29257echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029258sed 's/^/| /' conftest.$ac_ext >&5
29259
John Criswell7a73b802003-06-30 21:59:07 +000029260( exit $ac_status )
29261ac_cv_func_mmap_file=no
29262fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029263rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029264fi
29265 ac_ext=c
29266ac_cpp='$CPP $CPPFLAGS'
29267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29269ac_compiler_gnu=$ac_cv_c_compiler_gnu
29270
29271
29272fi
29273echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29274echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29275if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029276
29277cat >>confdefs.h <<\_ACEOF
29278#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029279_ACEOF
29280
29281 MMAP_FILE=yes
29282
29283fi
29284
John Criswell7a73b802003-06-30 21:59:07 +000029285echo "$as_me:$LINENO: checking for mprotect" >&5
29286echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29287if test "${ac_cv_func_mprotect+set}" = set; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29289else
29290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029291/* confdefs.h. */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029296/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29298#define mprotect innocuous_mprotect
29299
John Criswell7a73b802003-06-30 21:59:07 +000029300/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029301 which can conflict with char mprotect (); below.
29302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29303 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029304
John Criswell0c38eaf2003-09-10 15:17:25 +000029305#ifdef __STDC__
29306# include <limits.h>
29307#else
29308# include <assert.h>
29309#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029310
29311#undef mprotect
29312
John Criswell7a73b802003-06-30 21:59:07 +000029313/* Override any gcc2 internal prototype to avoid an error. */
29314#ifdef __cplusplus
29315extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029316{
John Criswell7a73b802003-06-30 21:59:07 +000029317#endif
29318/* We use char because int might match the return type of a gcc2
29319 builtin and then its argument prototype would still apply. */
29320char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029321/* The GNU C library defines this for functions which it implements
29322 to always fail with ENOSYS. Some functions are actually named
29323 something starting with __ and the normal name is an alias. */
29324#if defined (__stub_mprotect) || defined (__stub___mprotect)
29325choke me
29326#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029327char (*f) () = mprotect;
29328#endif
29329#ifdef __cplusplus
29330}
John Criswell7a73b802003-06-30 21:59:07 +000029331#endif
29332
John Criswell0c38eaf2003-09-10 15:17:25 +000029333int
29334main ()
29335{
29336return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029337 ;
29338 return 0;
29339}
29340_ACEOF
29341rm -f conftest.$ac_objext conftest$ac_exeext
29342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029343 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029345 grep -v '^ *+' conftest.er1 >conftest.err
29346 rm -f conftest.er1
29347 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029350 { ac_try='test -z "$ac_c_werror_flag"
29351 || test ! -s conftest.err'
29352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353 (eval $ac_try) 2>&5
29354 ac_status=$?
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); }; } &&
29357 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29360 ac_status=$?
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; }; then
29363 ac_cv_func_mprotect=yes
29364else
29365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029366sed 's/^/| /' conftest.$ac_ext >&5
29367
John Criswell7a73b802003-06-30 21:59:07 +000029368ac_cv_func_mprotect=no
29369fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029370rm -f conftest.err conftest.$ac_objext \
29371 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029372fi
29373echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29374echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29375if test $ac_cv_func_mprotect = yes; then
29376 :
29377else
29378 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29379echo "$as_me: error: Function mprotect() required but not found" >&2;}
29380 { (exit 1); exit 1; }; }
29381fi
29382
29383
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029384if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029385then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029386 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29387echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029388fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029389if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029390then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029391 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29392echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029393fi
John Criswell7a73b802003-06-30 21:59:07 +000029394
29395
Brian Gaekef3b24102003-11-16 18:38:14 +000029396echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29397echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029398if test "${llvm_cv_llvmgcc+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29400else
29401 llvm_cv_llvmgcc='llvmgcc_not_found'
29402if test -d "$LLVMGCCDIR" ; then
29403 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29404 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29405 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029406fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029407fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029408echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29409echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29410
Brian Gaekef3b24102003-11-16 18:38:14 +000029411echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29412echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029413if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29415else
29416 llvm_cv_llvmgcc_sanity="no"
29417if test -x "$llvm_cv_llvmgcc" ; then
29418 cp /dev/null conftest.c
29419 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29420 if test $? -eq 0 ; then
29421 llvm_cv_llvmgcc_sanity="yes"
29422 fi
29423 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029424fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029425fi
29426echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29427echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29428
29429if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29430 LLVMGCC="$llvm_cv_llvmgcc"
29431
29432 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29433 LLVMCC1=$llvmcc1path
29434
29435 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29436 LLVMCC1PLUS=$llvmcc1pluspath
29437
Brian Gaekef3b24102003-11-16 18:38:14 +000029438fi
29439
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029440SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029441
29442
Reid Spencere9de0912004-08-20 09:03:57 +000029443# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029444# information into substitutions that will end up in Makefile.config.in
29445# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029446eval LLVM_PREFIX="${prefix}";
29447eval LLVM_BINDIR="${prefix}/bin";
29448eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029449eval LLVM_DATADIR="${prefix}/share/llvm";
29450eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29451eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029452eval LLVM_INCLUDEDIR="${prefix}/include";
29453eval LLVM_INFODIR="${prefix}/info";
29454eval LLVM_MANDIR="${prefix}/man";
29455LLVM_CONFIGTIME=`date`
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029467# Place the various directores into the config.h file as #defines so that we
29468# can know about the installation paths within LLVM.
29469
Reid Spencere9de0912004-08-20 09:03:57 +000029470cat >>confdefs.h <<_ACEOF
29471#define LLVM_PREFIX "$LLVM_PREFIX"
29472_ACEOF
29473
29474
29475cat >>confdefs.h <<_ACEOF
29476#define LLVM_BINDIR "$LLVM_BINDIR"
29477_ACEOF
29478
29479
29480cat >>confdefs.h <<_ACEOF
29481#define LLVM_LIBDIR "$LLVM_LIBDIR"
29482_ACEOF
29483
29484
29485cat >>confdefs.h <<_ACEOF
29486#define LLVM_DATADIR "$LLVM_DATADIR"
29487_ACEOF
29488
29489
29490cat >>confdefs.h <<_ACEOF
29491#define LLVM_DATADIR "$LLVM_DOCSDIR"
29492_ACEOF
29493
29494
29495cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029496#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029497_ACEOF
29498
29499
29500cat >>confdefs.h <<_ACEOF
29501#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29502_ACEOF
29503
29504
29505cat >>confdefs.h <<_ACEOF
29506#define LLVM_INFODIR "$LLVM_INFODIR"
29507_ACEOF
29508
29509
29510cat >>confdefs.h <<_ACEOF
29511#define LLVM_MANDIR "$LLVM_MANDIR"
29512_ACEOF
29513
29514
29515cat >>confdefs.h <<_ACEOF
29516#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29517_ACEOF
29518
29519
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029520
29521 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29522
29523
29524 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29525
29526 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29527
29528 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29529
29530 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29531
29532 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29533
29534
29535 ac_config_files="$ac_config_files Makefile.config"
29536
29537
29538 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29539
29540
Reid Spencer1f319422004-11-29 04:56:35 +000029541 ac_config_files="$ac_config_files docs/doxygen.cfg"
29542
29543
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029544 ac_config_commands="$ac_config_commands Makefile"
29545
29546
29547 ac_config_commands="$ac_config_commands Makefile.common"
29548
29549
29550 ac_config_commands="$ac_config_commands examples/Makefile"
29551
29552
29553 ac_config_commands="$ac_config_commands lib/Makefile"
29554
29555
29556 ac_config_commands="$ac_config_commands runtime/Makefile"
29557
29558
29559 ac_config_commands="$ac_config_commands test/Makefile"
29560
29561
29562 ac_config_commands="$ac_config_commands test/Makefile.tests"
29563
29564
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029565 ac_config_commands="$ac_config_commands tools/Makefile"
29566
29567
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029568 ac_config_commands="$ac_config_commands utils/Makefile"
29569
29570
29571 ac_config_commands="$ac_config_commands projects/Makefile"
29572
29573
29574
John Criswell7a73b802003-06-30 21:59:07 +000029575cat >confcache <<\_ACEOF
29576# This file is a shell script that caches the results of configure
29577# tests run on this system so they can be shared between configure
29578# scripts and configure runs, see configure's option --config-cache.
29579# It is not useful on other systems. If it contains results you don't
29580# want to keep, you may remove or edit it.
29581#
29582# config.status only pays attention to the cache file if you give it
29583# the --recheck option to rerun configure.
29584#
John Criswell0c38eaf2003-09-10 15:17:25 +000029585# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029586# loading this file, other *unset* `ac_cv_foo' will be assigned the
29587# following values.
29588
29589_ACEOF
29590
29591# The following way of writing the cache mishandles newlines in values,
29592# but we know of no workaround that is simple, portable, and efficient.
29593# So, don't put newlines in cache variables' values.
29594# Ultrix sh set writes to stderr and can't be redirected directly,
29595# and sets the high bit in the cache file unless we assign to the vars.
29596{
29597 (set) 2>&1 |
29598 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29599 *ac_space=\ *)
29600 # `set' does not quote correctly, so add quotes (double-quote
29601 # substitution turns \\\\ into \\, and sed turns \\ into \).
29602 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029603 "s/'/'\\\\''/g;
29604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029605 ;;
29606 *)
29607 # `set' quotes correctly as required by POSIX, so do not add quotes.
29608 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029609 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029610 ;;
29611 esac;
29612} |
29613 sed '
29614 t clear
29615 : clear
29616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29617 t end
29618 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29619 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029620if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029621 if test -w $cache_file; then
29622 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29623 cat confcache >$cache_file
29624 else
29625 echo "not updating unwritable cache $cache_file"
29626 fi
29627fi
29628rm -f confcache
29629
29630test "x$prefix" = xNONE && prefix=$ac_default_prefix
29631# Let make expand exec_prefix.
29632test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29633
29634# VPATH may cause trouble with some makes, so we remove $(srcdir),
29635# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29636# trailing colons and then remove the whole line if VPATH becomes empty
29637# (actually we leave an empty line to preserve line numbers).
29638if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029639 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029640s/:*\$(srcdir):*/:/;
29641s/:*\${srcdir}:*/:/;
29642s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029643s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029644s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029645s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029646}'
29647fi
29648
29649DEFS=-DHAVE_CONFIG_H
29650
John Criswell0c38eaf2003-09-10 15:17:25 +000029651ac_libobjs=
29652ac_ltlibobjs=
29653for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29654 # 1. Remove the extension, and $U if already installed.
29655 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029656 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029657 # 2. Add them.
29658 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29659 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29660done
29661LIBOBJS=$ac_libobjs
29662
29663LTLIBOBJS=$ac_ltlibobjs
29664
29665
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029666if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29667 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29668Usually this means the macro was only invoked conditionally." >&5
29669echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29670Usually this means the macro was only invoked conditionally." >&2;}
29671 { (exit 1); exit 1; }; }
29672fi
29673if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29674 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29675Usually this means the macro was only invoked conditionally." >&5
29676echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29677Usually this means the macro was only invoked conditionally." >&2;}
29678 { (exit 1); exit 1; }; }
29679fi
John Criswell7a73b802003-06-30 21:59:07 +000029680
29681: ${CONFIG_STATUS=./config.status}
29682ac_clean_files_save=$ac_clean_files
29683ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29684{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29685echo "$as_me: creating $CONFIG_STATUS" >&6;}
29686cat >$CONFIG_STATUS <<_ACEOF
29687#! $SHELL
29688# Generated by $as_me.
29689# Run this file to recreate the current configuration.
29690# Compiler output produced by configure, useful for debugging
29691# configure, is in config.log if it exists.
29692
29693debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029694ac_cs_recheck=false
29695ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029696SHELL=\${CONFIG_SHELL-$SHELL}
29697_ACEOF
29698
29699cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029700## --------------------- ##
29701## M4sh Initialization. ##
29702## --------------------- ##
29703
29704# Be Bourne compatible
29705if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29706 emulate sh
29707 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029708 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29709 # is contrary to our usage. Disable this feature.
29710 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029711elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29712 set -o posix
29713fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029714DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029715
John Criswell7a73b802003-06-30 21:59:07 +000029716# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029717if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029718 as_unset=unset
29719else
29720 as_unset=false
29721fi
29722
John Criswell0c38eaf2003-09-10 15:17:25 +000029723
29724# Work around bugs in pre-3.0 UWIN ksh.
29725$as_unset ENV MAIL MAILPATH
29726PS1='$ '
29727PS2='> '
29728PS4='+ '
29729
29730# NLS nuisances.
29731for as_var in \
29732 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29733 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29734 LC_TELEPHONE LC_TIME
29735do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029736 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029737 eval $as_var=C; export $as_var
29738 else
29739 $as_unset $as_var
29740 fi
29741done
29742
29743# Required to use basename.
29744if expr a : '\(a\)' >/dev/null 2>&1; then
29745 as_expr=expr
29746else
29747 as_expr=false
29748fi
29749
29750if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29751 as_basename=basename
29752else
29753 as_basename=false
29754fi
John Criswell7a73b802003-06-30 21:59:07 +000029755
29756
29757# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029758as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029759$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29760 X"$0" : 'X\(//\)$' \| \
29761 X"$0" : 'X\(/\)$' \| \
29762 . : '\(.\)' 2>/dev/null ||
29763echo X/"$0" |
29764 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29765 /^X\/\(\/\/\)$/{ s//\1/; q; }
29766 /^X\/\(\/\).*/{ s//\1/; q; }
29767 s/.*/./; q'`
29768
John Criswell0c38eaf2003-09-10 15:17:25 +000029769
John Criswell7a73b802003-06-30 21:59:07 +000029770# PATH needs CR, and LINENO needs CR and PATH.
29771# Avoid depending upon Character Ranges.
29772as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29773as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29774as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29775as_cr_digits='0123456789'
29776as_cr_alnum=$as_cr_Letters$as_cr_digits
29777
29778# The user is always right.
29779if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029780 echo "#! /bin/sh" >conf$$.sh
29781 echo "exit 0" >>conf$$.sh
29782 chmod +x conf$$.sh
29783 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029784 PATH_SEPARATOR=';'
29785 else
29786 PATH_SEPARATOR=:
29787 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029788 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029789fi
29790
29791
29792 as_lineno_1=$LINENO
29793 as_lineno_2=$LINENO
29794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29795 test "x$as_lineno_1" != "x$as_lineno_2" &&
29796 test "x$as_lineno_3" = "x$as_lineno_2" || {
29797 # Find who we are. Look in the path if we contain no path at all
29798 # relative or not.
29799 case $0 in
29800 *[\\/]* ) as_myself=$0 ;;
29801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29802for as_dir in $PATH
29803do
29804 IFS=$as_save_IFS
29805 test -z "$as_dir" && as_dir=.
29806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29807done
29808
29809 ;;
29810 esac
29811 # We did not find ourselves, most probably we were run as `sh COMMAND'
29812 # in which case we are not to be found in the path.
29813 if test "x$as_myself" = x; then
29814 as_myself=$0
29815 fi
29816 if test ! -f "$as_myself"; then
29817 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29818echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29819 { (exit 1); exit 1; }; }
29820 fi
29821 case $CONFIG_SHELL in
29822 '')
29823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29824for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29825do
29826 IFS=$as_save_IFS
29827 test -z "$as_dir" && as_dir=.
29828 for as_base in sh bash ksh sh5; do
29829 case $as_dir in
29830 /*)
29831 if ("$as_dir/$as_base" -c '
29832 as_lineno_1=$LINENO
29833 as_lineno_2=$LINENO
29834 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29835 test "x$as_lineno_1" != "x$as_lineno_2" &&
29836 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029837 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29838 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029839 CONFIG_SHELL=$as_dir/$as_base
29840 export CONFIG_SHELL
29841 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29842 fi;;
29843 esac
29844 done
29845done
29846;;
29847 esac
29848
29849 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29850 # uniformly replaced by the line number. The first 'sed' inserts a
29851 # line-number line before each line; the second 'sed' does the real
29852 # work. The second script uses 'N' to pair each line-number line
29853 # with the numbered line, and appends trailing '-' during
29854 # substitution so that $LINENO is not a special case at line end.
29855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29856 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29857 sed '=' <$as_myself |
29858 sed '
29859 N
29860 s,$,-,
29861 : loop
29862 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29863 t loop
29864 s,-$,,
29865 s,^['$as_cr_digits']*\n,,
29866 ' >$as_me.lineno &&
29867 chmod +x $as_me.lineno ||
29868 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29869echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29870 { (exit 1); exit 1; }; }
29871
29872 # Don't try to exec as it changes $[0], causing all sort of problems
29873 # (the dirname of $[0] is not the place where we might find the
29874 # original and so on. Autoconf is especially sensible to this).
29875 . ./$as_me.lineno
29876 # Exit status is that of the last command.
29877 exit
29878}
29879
29880
29881case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29882 *c*,-n*) ECHO_N= ECHO_C='
29883' ECHO_T=' ' ;;
29884 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29885 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29886esac
29887
29888if expr a : '\(a\)' >/dev/null 2>&1; then
29889 as_expr=expr
29890else
29891 as_expr=false
29892fi
29893
29894rm -f conf$$ conf$$.exe conf$$.file
29895echo >conf$$.file
29896if ln -s conf$$.file conf$$ 2>/dev/null; then
29897 # We could just check for DJGPP; but this test a) works b) is more generic
29898 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29899 if test -f conf$$.exe; then
29900 # Don't use ln at all; we don't have any links
29901 as_ln_s='cp -p'
29902 else
29903 as_ln_s='ln -s'
29904 fi
29905elif ln conf$$.file conf$$ 2>/dev/null; then
29906 as_ln_s=ln
29907else
29908 as_ln_s='cp -p'
29909fi
29910rm -f conf$$ conf$$.exe conf$$.file
29911
John Criswell0c38eaf2003-09-10 15:17:25 +000029912if mkdir -p . 2>/dev/null; then
29913 as_mkdir_p=:
29914else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029915 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000029916 as_mkdir_p=false
29917fi
29918
John Criswell7a73b802003-06-30 21:59:07 +000029919as_executable_p="test -f"
29920
29921# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029922as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029923
29924# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029925as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029926
29927
29928# IFS
29929# We need space, tab and new line, in precisely that order.
29930as_nl='
29931'
29932IFS=" $as_nl"
29933
29934# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000029935$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000029936
29937exec 6>&1
29938
29939# Open the log real soon, to keep \$[0] and so on meaningful, and to
29940# report actual input values of CONFIG_FILES etc. instead of their
29941# values after options handling. Logging --version etc. is OK.
29942exec 5>>config.log
29943{
29944 echo
29945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29946## Running $as_me. ##
29947_ASBOX
29948} >&5
29949cat >&5 <<_CSEOF
29950
Reid Spencerabec8f92004-10-27 23:03:44 +000029951This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000029952generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000029953
29954 CONFIG_FILES = $CONFIG_FILES
29955 CONFIG_HEADERS = $CONFIG_HEADERS
29956 CONFIG_LINKS = $CONFIG_LINKS
29957 CONFIG_COMMANDS = $CONFIG_COMMANDS
29958 $ $0 $@
29959
29960_CSEOF
29961echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29962echo >&5
29963_ACEOF
29964
29965# Files that config.status was made for.
29966if test -n "$ac_config_files"; then
29967 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29968fi
29969
29970if test -n "$ac_config_headers"; then
29971 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29972fi
29973
29974if test -n "$ac_config_links"; then
29975 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29976fi
29977
29978if test -n "$ac_config_commands"; then
29979 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29980fi
29981
29982cat >>$CONFIG_STATUS <<\_ACEOF
29983
29984ac_cs_usage="\
29985\`$as_me' instantiates files from templates according to the
29986current configuration.
29987
29988Usage: $0 [OPTIONS] [FILE]...
29989
29990 -h, --help print this help, then exit
29991 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000029992 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000029993 -d, --debug don't remove temporary files
29994 --recheck update $as_me by reconfiguring in the same conditions
29995 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029996 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000029997 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029998 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000029999
30000Configuration files:
30001$config_files
30002
30003Configuration headers:
30004$config_headers
30005
Reid Spencerde8c47f2004-08-29 19:35:28 +000030006Configuration links:
30007$config_links
30008
John Criswellc764fbc2003-09-06 15:17:13 +000030009Configuration commands:
30010$config_commands
30011
John Criswell7a73b802003-06-30 21:59:07 +000030012Report bugs to <bug-autoconf@gnu.org>."
30013_ACEOF
30014
30015cat >>$CONFIG_STATUS <<_ACEOF
30016ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030017llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030018configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030019 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30020
Reid Spencer2706f8c2004-09-19 23:53:36 +000030021Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030022This config.status script is free software; the Free Software Foundation
30023gives unlimited permission to copy, distribute and modify it."
30024srcdir=$srcdir
30025INSTALL="$INSTALL"
30026_ACEOF
30027
30028cat >>$CONFIG_STATUS <<\_ACEOF
30029# If no file are specified by the user, then we need to provide default
30030# value. By we need to know if files were specified by the user.
30031ac_need_defaults=:
30032while test $# != 0
30033do
30034 case $1 in
30035 --*=*)
30036 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30037 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030038 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030039 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030040 -*)
30041 ac_option=$1
30042 ac_optarg=$2
30043 ac_shift=shift
30044 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030045 *) # This is not an option, so the user has probably given explicit
30046 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030047 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030048 ac_need_defaults=false;;
30049 esac
30050
John Criswell0c38eaf2003-09-10 15:17:25 +000030051 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030052 # Handling of the options.
30053_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030054cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30056 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030057 --version | --vers* | -V )
30058 echo "$ac_cs_version"; exit 0 ;;
30059 --he | --h)
30060 # Conflict between --help and --header
30061 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30062Try \`$0 --help' for more information." >&5
30063echo "$as_me: error: ambiguous option: $1
30064Try \`$0 --help' for more information." >&2;}
30065 { (exit 1); exit 1; }; };;
30066 --help | --hel | -h )
30067 echo "$ac_cs_usage"; exit 0 ;;
30068 --debug | --d* | -d )
30069 debug=: ;;
30070 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030071 $ac_shift
30072 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030073 ac_need_defaults=false;;
30074 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030075 $ac_shift
30076 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030077 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30080 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030081
30082 # This is an error.
30083 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30084Try \`$0 --help' for more information." >&5
30085echo "$as_me: error: unrecognized option: $1
30086Try \`$0 --help' for more information." >&2;}
30087 { (exit 1); exit 1; }; } ;;
30088
30089 *) ac_config_targets="$ac_config_targets $1" ;;
30090
30091 esac
30092 shift
30093done
30094
John Criswell0c38eaf2003-09-10 15:17:25 +000030095ac_configure_extra_args=
30096
30097if $ac_cs_silent; then
30098 exec 6>/dev/null
30099 ac_configure_extra_args="$ac_configure_extra_args --silent"
30100fi
30101
30102_ACEOF
30103cat >>$CONFIG_STATUS <<_ACEOF
30104if \$ac_cs_recheck; then
30105 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30106 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30107fi
30108
John Criswell7a73b802003-06-30 21:59:07 +000030109_ACEOF
30110
John Criswellc764fbc2003-09-06 15:17:13 +000030111cat >>$CONFIG_STATUS <<_ACEOF
30112#
30113# INIT-COMMANDS section.
30114#
John Criswell7a73b802003-06-30 21:59:07 +000030115
John Criswellc764fbc2003-09-06 15:17:13 +000030116${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30117${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030118${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030119${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030120${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030121${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30122${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030123${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030124${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030125${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030126
30127_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030128
30129
30130
30131cat >>$CONFIG_STATUS <<\_ACEOF
30132for ac_config_target in $ac_config_targets
30133do
30134 case "$ac_config_target" in
30135 # Handling of arguments.
30136 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030137 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30138 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30139 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30140 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030141 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030142 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030143 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30144 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030145 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030146 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030147 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030148 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30149 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030150 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030151 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030152 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030153 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030154 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030155 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30156 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030157 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30158 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030159 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30160echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30161 { (exit 1); exit 1; }; };;
30162 esac
30163done
30164
30165# If the user did not use the arguments to specify the items to instantiate,
30166# then the envvar interface is used. Set only those that are not.
30167# We use the long form for the default assignment because of an extremely
30168# bizarre bug on SunOS 4.1.3.
30169if $ac_need_defaults; then
30170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030172 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030174fi
30175
John Criswell0c38eaf2003-09-10 15:17:25 +000030176# Have a temporary directory for convenience. Make it in the build tree
30177# simply because there is no reason to put it here, and in addition,
30178# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030179# Create a temporary directory, and hook for its removal unless debugging.
30180$debug ||
30181{
30182 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30183 trap '{ (exit 1); exit 1; }' 1 2 13 15
30184}
30185
30186# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030187
John Criswell7a73b802003-06-30 21:59:07 +000030188{
John Criswell0c38eaf2003-09-10 15:17:25 +000030189 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030190 test -n "$tmp" && test -d "$tmp"
30191} ||
30192{
John Criswell0c38eaf2003-09-10 15:17:25 +000030193 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030194 (umask 077 && mkdir $tmp)
30195} ||
30196{
John Criswell0c38eaf2003-09-10 15:17:25 +000030197 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030198 { (exit 1); exit 1; }
30199}
30200
30201_ACEOF
30202
30203cat >>$CONFIG_STATUS <<_ACEOF
30204
30205#
30206# CONFIG_FILES section.
30207#
30208
30209# No need to generate the scripts if there are no CONFIG_FILES.
30210# This happens for instance when ./config.status config.h
30211if test -n "\$CONFIG_FILES"; then
30212 # Protect against being on the right side of a sed subst in config.status.
30213 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30214 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30215s,@SHELL@,$SHELL,;t t
30216s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30217s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30218s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30219s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30220s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30221s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30222s,@exec_prefix@,$exec_prefix,;t t
30223s,@prefix@,$prefix,;t t
30224s,@program_transform_name@,$program_transform_name,;t t
30225s,@bindir@,$bindir,;t t
30226s,@sbindir@,$sbindir,;t t
30227s,@libexecdir@,$libexecdir,;t t
30228s,@datadir@,$datadir,;t t
30229s,@sysconfdir@,$sysconfdir,;t t
30230s,@sharedstatedir@,$sharedstatedir,;t t
30231s,@localstatedir@,$localstatedir,;t t
30232s,@libdir@,$libdir,;t t
30233s,@includedir@,$includedir,;t t
30234s,@oldincludedir@,$oldincludedir,;t t
30235s,@infodir@,$infodir,;t t
30236s,@mandir@,$mandir,;t t
30237s,@build_alias@,$build_alias,;t t
30238s,@host_alias@,$host_alias,;t t
30239s,@target_alias@,$target_alias,;t t
30240s,@DEFS@,$DEFS,;t t
30241s,@ECHO_C@,$ECHO_C,;t t
30242s,@ECHO_N@,$ECHO_N,;t t
30243s,@ECHO_T@,$ECHO_T,;t t
30244s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030245s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030246s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030247s,@build@,$build,;t t
30248s,@build_cpu@,$build_cpu,;t t
30249s,@build_vendor@,$build_vendor,;t t
30250s,@build_os@,$build_os,;t t
30251s,@host@,$host,;t t
30252s,@host_cpu@,$host_cpu,;t t
30253s,@host_vendor@,$host_vendor,;t t
30254s,@host_os@,$host_os,;t t
30255s,@target@,$target,;t t
30256s,@target_cpu@,$target_cpu,;t t
30257s,@target_vendor@,$target_vendor,;t t
30258s,@target_os@,$target_os,;t t
30259s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030260s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030261s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030262s,@CC@,$CC,;t t
30263s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030264s,@LDFLAGS@,$LDFLAGS,;t t
30265s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030266s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030267s,@EXEEXT@,$EXEEXT,;t t
30268s,@OBJEXT@,$OBJEXT,;t t
30269s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30270s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030271s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030272s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030273s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030274s,@CXX@,$CXX,;t t
30275s,@CXXFLAGS@,$CXXFLAGS,;t t
30276s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030277s,@LEX@,$LEX,;t t
30278s,@LEXLIB@,$LEXLIB,;t t
30279s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030280s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030281s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030282s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030283s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030284s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030285s,@CMP@,$CMP,;t t
30286s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030287s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030288s,@FIND@,$FIND,;t t
30289s,@GREP@,$GREP,;t t
30290s,@MKDIR@,$MKDIR,;t t
30291s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030292s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030293s,@RANLIB@,$RANLIB,;t t
30294s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030295s,@RM@,$RM,;t t
30296s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030297s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030298s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30299s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30300s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030301s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030302s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030303s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030304s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030305s,@GROFF@,$GROFF,;t t
30306s,@GZIP@,$GZIP,;t t
30307s,@POD2HTML@,$POD2HTML,;t t
30308s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030309s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030310s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030311s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030312s,@EGREP@,$EGREP,;t t
30313s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30314s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30315s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30316s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30317s,@LIBADD_DL@,$LIBADD_DL,;t t
30318s,@ECHO@,$ECHO,;t t
30319s,@AR@,$AR,;t t
30320s,@ac_ct_AR@,$ac_ct_AR,;t t
30321s,@STRIP@,$STRIP,;t t
30322s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30323s,@CXXCPP@,$CXXCPP,;t t
30324s,@F77@,$F77,;t t
30325s,@FFLAGS@,$FFLAGS,;t t
30326s,@ac_ct_F77@,$ac_ct_F77,;t t
30327s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030328s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030329s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030330s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030331s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030332s,@LLVMCC1@,$LLVMCC1,;t t
30333s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030334s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030335s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30336s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30337s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30338s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30339s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30340s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30341s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30342s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30343s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30344s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030345s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030346s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030347CEOF
30348
30349_ACEOF
30350
30351 cat >>$CONFIG_STATUS <<\_ACEOF
30352 # Split the substitutions into bite-sized pieces for seds with
30353 # small command number limits, like on Digital OSF/1 and HP-UX.
30354 ac_max_sed_lines=48
30355 ac_sed_frag=1 # Number of current file.
30356 ac_beg=1 # First line for current file.
30357 ac_end=$ac_max_sed_lines # Line after last line for current file.
30358 ac_more_lines=:
30359 ac_sed_cmds=
30360 while $ac_more_lines; do
30361 if test $ac_beg -gt 1; then
30362 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30363 else
30364 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30365 fi
30366 if test ! -s $tmp/subs.frag; then
30367 ac_more_lines=false
30368 else
30369 # The purpose of the label and of the branching condition is to
30370 # speed up the sed processing (if there are no `@' at all, there
30371 # is no need to browse any of the substitutions).
30372 # These are the two extra sed commands mentioned above.
30373 (echo ':t
30374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30375 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030376 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030377 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030378 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030379 fi
30380 ac_sed_frag=`expr $ac_sed_frag + 1`
30381 ac_beg=$ac_end
30382 ac_end=`expr $ac_end + $ac_max_sed_lines`
30383 fi
30384 done
30385 if test -z "$ac_sed_cmds"; then
30386 ac_sed_cmds=cat
30387 fi
30388fi # test -n "$CONFIG_FILES"
30389
30390_ACEOF
30391cat >>$CONFIG_STATUS <<\_ACEOF
30392for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30394 case $ac_file in
30395 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030396 cat >$tmp/stdin
30397 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030399 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030401 * ) ac_file_in=$ac_file.in ;;
30402 esac
30403
30404 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30405 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30406$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030407 X"$ac_file" : 'X\(//\)[^/]' \| \
30408 X"$ac_file" : 'X\(//\)$' \| \
30409 X"$ac_file" : 'X\(/\)' \| \
30410 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030411echo X"$ac_file" |
30412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30414 /^X\(\/\/\)$/{ s//\1/; q; }
30415 /^X\(\/\).*/{ s//\1/; q; }
30416 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030417 { if $as_mkdir_p; then
30418 mkdir -p "$ac_dir"
30419 else
30420 as_dir="$ac_dir"
30421 as_dirs=
30422 while test ! -d "$as_dir"; do
30423 as_dirs="$as_dir $as_dirs"
30424 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030426 X"$as_dir" : 'X\(//\)[^/]' \| \
30427 X"$as_dir" : 'X\(//\)$' \| \
30428 X"$as_dir" : 'X\(/\)' \| \
30429 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030430echo X"$as_dir" |
30431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30433 /^X\(\/\/\)$/{ s//\1/; q; }
30434 /^X\(\/\).*/{ s//\1/; q; }
30435 s/.*/./; q'`
30436 done
30437 test ! -n "$as_dirs" || mkdir $as_dirs
30438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30439echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30440 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030441
30442 ac_builddir=.
30443
30444if test "$ac_dir" != .; then
30445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30446 # A "../" for each directory in $ac_dir_suffix.
30447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30448else
30449 ac_dir_suffix= ac_top_builddir=
30450fi
30451
30452case $srcdir in
30453 .) # No --srcdir option. We are building in place.
30454 ac_srcdir=.
30455 if test -z "$ac_top_builddir"; then
30456 ac_top_srcdir=.
30457 else
30458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30459 fi ;;
30460 [\\/]* | ?:[\\/]* ) # Absolute path.
30461 ac_srcdir=$srcdir$ac_dir_suffix;
30462 ac_top_srcdir=$srcdir ;;
30463 *) # Relative path.
30464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30465 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30466esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030467
30468# Do not use `cd foo && pwd` to compute absolute paths, because
30469# the directories may not exist.
30470case `pwd` in
30471.) ac_abs_builddir="$ac_dir";;
30472*)
30473 case "$ac_dir" in
30474 .) ac_abs_builddir=`pwd`;;
30475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30476 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30477 esac;;
30478esac
30479case $ac_abs_builddir in
30480.) ac_abs_top_builddir=${ac_top_builddir}.;;
30481*)
30482 case ${ac_top_builddir}. in
30483 .) ac_abs_top_builddir=$ac_abs_builddir;;
30484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30486 esac;;
30487esac
30488case $ac_abs_builddir in
30489.) ac_abs_srcdir=$ac_srcdir;;
30490*)
30491 case $ac_srcdir in
30492 .) ac_abs_srcdir=$ac_abs_builddir;;
30493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30495 esac;;
30496esac
30497case $ac_abs_builddir in
30498.) ac_abs_top_srcdir=$ac_top_srcdir;;
30499*)
30500 case $ac_top_srcdir in
30501 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30504 esac;;
30505esac
John Criswell7a73b802003-06-30 21:59:07 +000030506
30507
30508 case $INSTALL in
30509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30511 esac
30512
30513 if test x"$ac_file" != x-; then
30514 { echo "$as_me:$LINENO: creating $ac_file" >&5
30515echo "$as_me: creating $ac_file" >&6;}
30516 rm -f "$ac_file"
30517 fi
30518 # Let's still pretend it is `configure' which instantiates (i.e., don't
30519 # use $as_me), people would be surprised to read:
30520 # /* config.h. Generated by config.status. */
30521 if test x"$ac_file" = x-; then
30522 configure_input=
30523 else
30524 configure_input="$ac_file. "
30525 fi
30526 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030527 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030528
30529 # First look for the input files in the build tree, otherwise in the
30530 # src tree.
30531 ac_file_inputs=`IFS=:
30532 for f in $ac_file_in; do
30533 case $f in
30534 -) echo $tmp/stdin ;;
30535 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030536 # Absolute (can't be DOS-style, as IFS=:)
30537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030538echo "$as_me: error: cannot find input file: $f" >&2;}
30539 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030540 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030541 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030542 if test -f "$f"; then
30543 # Build tree
30544 echo "$f"
30545 elif test -f "$srcdir/$f"; then
30546 # Source tree
30547 echo "$srcdir/$f"
30548 else
30549 # /dev/null tree
30550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030551echo "$as_me: error: cannot find input file: $f" >&2;}
30552 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030553 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030554 esac
30555 done` || { (exit 1); exit 1; }
30556_ACEOF
30557cat >>$CONFIG_STATUS <<_ACEOF
30558 sed "$ac_vpsub
30559$extrasub
30560_ACEOF
30561cat >>$CONFIG_STATUS <<\_ACEOF
30562:t
30563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30564s,@configure_input@,$configure_input,;t t
30565s,@srcdir@,$ac_srcdir,;t t
30566s,@abs_srcdir@,$ac_abs_srcdir,;t t
30567s,@top_srcdir@,$ac_top_srcdir,;t t
30568s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30569s,@builddir@,$ac_builddir,;t t
30570s,@abs_builddir@,$ac_abs_builddir,;t t
30571s,@top_builddir@,$ac_top_builddir,;t t
30572s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30573s,@INSTALL@,$ac_INSTALL,;t t
30574" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30575 rm -f $tmp/stdin
30576 if test x"$ac_file" != x-; then
30577 mv $tmp/out $ac_file
30578 else
30579 cat $tmp/out
30580 rm -f $tmp/out
30581 fi
30582
30583done
30584_ACEOF
30585cat >>$CONFIG_STATUS <<\_ACEOF
30586
30587#
30588# CONFIG_HEADER section.
30589#
30590
30591# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30592# NAME is the cpp macro being defined and VALUE is the value it is being given.
30593#
30594# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030595ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30596ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030597ac_dC=' '
30598ac_dD=',;t'
30599# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030600ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030601ac_uB='$,\1#\2define\3'
30602ac_uC=' '
30603ac_uD=',;t'
30604
30605for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30607 case $ac_file in
30608 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030609 cat >$tmp/stdin
30610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030614 * ) ac_file_in=$ac_file.in ;;
30615 esac
30616
30617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30618echo "$as_me: creating $ac_file" >&6;}
30619
30620 # First look for the input files in the build tree, otherwise in the
30621 # src tree.
30622 ac_file_inputs=`IFS=:
30623 for f in $ac_file_in; do
30624 case $f in
30625 -) echo $tmp/stdin ;;
30626 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030627 # Absolute (can't be DOS-style, as IFS=:)
30628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030629echo "$as_me: error: cannot find input file: $f" >&2;}
30630 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030631 # Do quote $f, to prevent DOS paths from being IFS'd.
30632 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030633 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030634 if test -f "$f"; then
30635 # Build tree
30636 echo "$f"
30637 elif test -f "$srcdir/$f"; then
30638 # Source tree
30639 echo "$srcdir/$f"
30640 else
30641 # /dev/null tree
30642 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030643echo "$as_me: error: cannot find input file: $f" >&2;}
30644 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030645 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030646 esac
30647 done` || { (exit 1); exit 1; }
30648 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030649 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030650
30651_ACEOF
30652
30653# Transform confdefs.h into two sed scripts, `conftest.defines' and
30654# `conftest.undefs', that substitutes the proper values into
30655# config.h.in to produce config.h. The first handles `#define'
30656# templates, and the second `#undef' templates.
30657# And first: Protect against being on the right side of a sed subst in
30658# config.status. Protect against being in an unquoted here document
30659# in config.status.
30660rm -f conftest.defines conftest.undefs
30661# Using a here document instead of a string reduces the quoting nightmare.
30662# Putting comments in sed scripts is not portable.
30663#
30664# `end' is used to avoid that the second main sed command (meant for
30665# 0-ary CPP macros) applies to n-ary macro definitions.
30666# See the Autoconf documentation for `clear'.
30667cat >confdef2sed.sed <<\_ACEOF
30668s/[\\&,]/\\&/g
30669s,[\\$`],\\&,g
30670t clear
30671: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030672s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030673t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030674s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030675: end
30676_ACEOF
30677# If some macros were called several times there might be several times
30678# the same #defines, which is useless. Nevertheless, we may not want to
30679# sort them, since we want the *last* AC-DEFINE to be honored.
30680uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30681sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30682rm -f confdef2sed.sed
30683
30684# This sed command replaces #undef with comments. This is necessary, for
30685# example, in the case of _POSIX_SOURCE, which is predefined and required
30686# on some systems where configure will not decide to define it.
30687cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030688s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030689_ACEOF
30690
30691# Break up conftest.defines because some shells have a limit on the size
30692# of here documents, and old seds have small limits too (100 cmds).
30693echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030694echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030695echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30696echo ' :' >>$CONFIG_STATUS
30697rm -f conftest.tail
30698while grep . conftest.defines >/dev/null
30699do
30700 # Write a limited-size here document to $tmp/defines.sed.
30701 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30702 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030703 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030704 # Work around the forget-to-reset-the-flag bug.
30705 echo 't clr' >>$CONFIG_STATUS
30706 echo ': clr' >>$CONFIG_STATUS
30707 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30708 echo 'CEOF
30709 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30710 rm -f $tmp/in
30711 mv $tmp/out $tmp/in
30712' >>$CONFIG_STATUS
30713 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30714 rm -f conftest.defines
30715 mv conftest.tail conftest.defines
30716done
30717rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030718echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030719echo >>$CONFIG_STATUS
30720
30721# Break up conftest.undefs because some shells have a limit on the size
30722# of here documents, and old seds have small limits too (100 cmds).
30723echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30724rm -f conftest.tail
30725while grep . conftest.undefs >/dev/null
30726do
30727 # Write a limited-size here document to $tmp/undefs.sed.
30728 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30729 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030730 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030731 # Work around the forget-to-reset-the-flag bug.
30732 echo 't clr' >>$CONFIG_STATUS
30733 echo ': clr' >>$CONFIG_STATUS
30734 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30735 echo 'CEOF
30736 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30737 rm -f $tmp/in
30738 mv $tmp/out $tmp/in
30739' >>$CONFIG_STATUS
30740 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30741 rm -f conftest.undefs
30742 mv conftest.tail conftest.undefs
30743done
30744rm -f conftest.undefs
30745
30746cat >>$CONFIG_STATUS <<\_ACEOF
30747 # Let's still pretend it is `configure' which instantiates (i.e., don't
30748 # use $as_me), people would be surprised to read:
30749 # /* config.h. Generated by config.status. */
30750 if test x"$ac_file" = x-; then
30751 echo "/* Generated by configure. */" >$tmp/config.h
30752 else
30753 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30754 fi
30755 cat $tmp/in >>$tmp/config.h
30756 rm -f $tmp/in
30757 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030758 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030759 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30760echo "$as_me: $ac_file is unchanged" >&6;}
30761 else
30762 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30763$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030764 X"$ac_file" : 'X\(//\)[^/]' \| \
30765 X"$ac_file" : 'X\(//\)$' \| \
30766 X"$ac_file" : 'X\(/\)' \| \
30767 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030768echo X"$ac_file" |
30769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30771 /^X\(\/\/\)$/{ s//\1/; q; }
30772 /^X\(\/\).*/{ s//\1/; q; }
30773 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030774 { if $as_mkdir_p; then
30775 mkdir -p "$ac_dir"
30776 else
30777 as_dir="$ac_dir"
30778 as_dirs=
30779 while test ! -d "$as_dir"; do
30780 as_dirs="$as_dir $as_dirs"
30781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030783 X"$as_dir" : 'X\(//\)[^/]' \| \
30784 X"$as_dir" : 'X\(//\)$' \| \
30785 X"$as_dir" : 'X\(/\)' \| \
30786 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030787echo X"$as_dir" |
30788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30790 /^X\(\/\/\)$/{ s//\1/; q; }
30791 /^X\(\/\).*/{ s//\1/; q; }
30792 s/.*/./; q'`
30793 done
30794 test ! -n "$as_dirs" || mkdir $as_dirs
30795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30796echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30797 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030798
30799 rm -f $ac_file
30800 mv $tmp/config.h $ac_file
30801 fi
30802 else
30803 cat $tmp/config.h
30804 rm -f $tmp/config.h
30805 fi
30806done
30807_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030808cat >>$CONFIG_STATUS <<\_ACEOF
30809
30810#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030811# CONFIG_LINKS section.
30812#
30813
30814for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30815 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30816 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30817
30818 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30819echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30820
30821 if test ! -r $srcdir/$ac_source; then
30822 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30823echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30824 { (exit 1); exit 1; }; }
30825 fi
30826 rm -f $ac_dest
30827
30828 # Make relative symlinks.
30829 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30830$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030831 X"$ac_dest" : 'X\(//\)[^/]' \| \
30832 X"$ac_dest" : 'X\(//\)$' \| \
30833 X"$ac_dest" : 'X\(/\)' \| \
30834 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030835echo X"$ac_dest" |
30836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30838 /^X\(\/\/\)$/{ s//\1/; q; }
30839 /^X\(\/\).*/{ s//\1/; q; }
30840 s/.*/./; q'`
30841 { if $as_mkdir_p; then
30842 mkdir -p "$ac_dest_dir"
30843 else
30844 as_dir="$ac_dest_dir"
30845 as_dirs=
30846 while test ! -d "$as_dir"; do
30847 as_dirs="$as_dir $as_dirs"
30848 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30849$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030850 X"$as_dir" : 'X\(//\)[^/]' \| \
30851 X"$as_dir" : 'X\(//\)$' \| \
30852 X"$as_dir" : 'X\(/\)' \| \
30853 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030854echo X"$as_dir" |
30855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30857 /^X\(\/\/\)$/{ s//\1/; q; }
30858 /^X\(\/\).*/{ s//\1/; q; }
30859 s/.*/./; q'`
30860 done
30861 test ! -n "$as_dirs" || mkdir $as_dirs
30862 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30863echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30864 { (exit 1); exit 1; }; }; }
30865
30866 ac_builddir=.
30867
30868if test "$ac_dest_dir" != .; then
30869 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30870 # A "../" for each directory in $ac_dir_suffix.
30871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30872else
30873 ac_dir_suffix= ac_top_builddir=
30874fi
30875
30876case $srcdir in
30877 .) # No --srcdir option. We are building in place.
30878 ac_srcdir=.
30879 if test -z "$ac_top_builddir"; then
30880 ac_top_srcdir=.
30881 else
30882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30883 fi ;;
30884 [\\/]* | ?:[\\/]* ) # Absolute path.
30885 ac_srcdir=$srcdir$ac_dir_suffix;
30886 ac_top_srcdir=$srcdir ;;
30887 *) # Relative path.
30888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30890esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030891
30892# Do not use `cd foo && pwd` to compute absolute paths, because
30893# the directories may not exist.
30894case `pwd` in
30895.) ac_abs_builddir="$ac_dest_dir";;
30896*)
30897 case "$ac_dest_dir" in
30898 .) ac_abs_builddir=`pwd`;;
30899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30900 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30901 esac;;
30902esac
30903case $ac_abs_builddir in
30904.) ac_abs_top_builddir=${ac_top_builddir}.;;
30905*)
30906 case ${ac_top_builddir}. in
30907 .) ac_abs_top_builddir=$ac_abs_builddir;;
30908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30910 esac;;
30911esac
30912case $ac_abs_builddir in
30913.) ac_abs_srcdir=$ac_srcdir;;
30914*)
30915 case $ac_srcdir in
30916 .) ac_abs_srcdir=$ac_abs_builddir;;
30917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30919 esac;;
30920esac
30921case $ac_abs_builddir in
30922.) ac_abs_top_srcdir=$ac_top_srcdir;;
30923*)
30924 case $ac_top_srcdir in
30925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30928 esac;;
30929esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000030930
30931
30932 case $srcdir in
30933 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30934 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30935 esac
30936
30937 # Try a symlink, then a hard link, then a copy.
30938 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30939 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30940 cp -p $srcdir/$ac_source $ac_dest ||
30941 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30942echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30943 { (exit 1); exit 1; }; }
30944done
30945_ACEOF
30946cat >>$CONFIG_STATUS <<\_ACEOF
30947
30948#
John Criswellc764fbc2003-09-06 15:17:13 +000030949# CONFIG_COMMANDS section.
30950#
30951for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30952 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30953 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30954 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30955$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030956 X"$ac_dest" : 'X\(//\)[^/]' \| \
30957 X"$ac_dest" : 'X\(//\)$' \| \
30958 X"$ac_dest" : 'X\(/\)' \| \
30959 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000030960echo X"$ac_dest" |
30961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30963 /^X\(\/\/\)$/{ s//\1/; q; }
30964 /^X\(\/\).*/{ s//\1/; q; }
30965 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030966 { if $as_mkdir_p; then
30967 mkdir -p "$ac_dir"
30968 else
30969 as_dir="$ac_dir"
30970 as_dirs=
30971 while test ! -d "$as_dir"; do
30972 as_dirs="$as_dir $as_dirs"
30973 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30974$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30975 X"$as_dir" : 'X\(//\)[^/]' \| \
30976 X"$as_dir" : 'X\(//\)$' \| \
30977 X"$as_dir" : 'X\(/\)' \| \
30978 . : '\(.\)' 2>/dev/null ||
30979echo X"$as_dir" |
30980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30982 /^X\(\/\/\)$/{ s//\1/; q; }
30983 /^X\(\/\).*/{ s//\1/; q; }
30984 s/.*/./; q'`
30985 done
30986 test ! -n "$as_dirs" || mkdir $as_dirs
30987 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30988echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30989 { (exit 1); exit 1; }; }; }
30990
John Criswellc764fbc2003-09-06 15:17:13 +000030991 ac_builddir=.
30992
30993if test "$ac_dir" != .; then
30994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30995 # A "../" for each directory in $ac_dir_suffix.
30996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30997else
30998 ac_dir_suffix= ac_top_builddir=
30999fi
31000
31001case $srcdir in
31002 .) # No --srcdir option. We are building in place.
31003 ac_srcdir=.
31004 if test -z "$ac_top_builddir"; then
31005 ac_top_srcdir=.
31006 else
31007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31008 fi ;;
31009 [\\/]* | ?:[\\/]* ) # Absolute path.
31010 ac_srcdir=$srcdir$ac_dir_suffix;
31011 ac_top_srcdir=$srcdir ;;
31012 *) # Relative path.
31013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31015esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031016
31017# Do not use `cd foo && pwd` to compute absolute paths, because
31018# the directories may not exist.
31019case `pwd` in
31020.) ac_abs_builddir="$ac_dir";;
31021*)
31022 case "$ac_dir" in
31023 .) ac_abs_builddir=`pwd`;;
31024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31026 esac;;
31027esac
31028case $ac_abs_builddir in
31029.) ac_abs_top_builddir=${ac_top_builddir}.;;
31030*)
31031 case ${ac_top_builddir}. in
31032 .) ac_abs_top_builddir=$ac_abs_builddir;;
31033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31035 esac;;
31036esac
31037case $ac_abs_builddir in
31038.) ac_abs_srcdir=$ac_srcdir;;
31039*)
31040 case $ac_srcdir in
31041 .) ac_abs_srcdir=$ac_abs_builddir;;
31042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31044 esac;;
31045esac
31046case $ac_abs_builddir in
31047.) ac_abs_top_srcdir=$ac_top_srcdir;;
31048*)
31049 case $ac_top_srcdir in
31050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31053 esac;;
31054esac
John Criswellc764fbc2003-09-06 15:17:13 +000031055
31056
31057 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31058echo "$as_me: executing $ac_dest commands" >&6;}
31059 case $ac_dest in
31060 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31061 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031062 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031063 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031064 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031065 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31066 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031067 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031068 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031069 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031070 esac
31071done
31072_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031073
31074cat >>$CONFIG_STATUS <<\_ACEOF
31075
31076{ (exit 0); exit 0; }
31077_ACEOF
31078chmod +x $CONFIG_STATUS
31079ac_clean_files=$ac_clean_files_save
31080
31081
31082# configure is writing to config.log, and then calls config.status.
31083# config.status does its own redirection, appending to config.log.
31084# Unfortunately, on DOS this fails, as config.log is still kept open
31085# by configure, so config.status won't be able to write to it; its
31086# output is simply discarded. So we exec the FD to /dev/null,
31087# effectively closing config.log, so it can be properly (re)opened and
31088# appended to by config.status. When coming back to configure, we
31089# need to make the FD available again.
31090if test "$no_create" != yes; then
31091 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031092 ac_config_status_args=
31093 test "$silent" = yes &&
31094 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031095 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031096 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031097 exec 5>>config.log
31098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31099 # would make configure fail if this is the last instruction.
31100 $ac_cs_success || { (exit 1); exit 1; }
31101fi
31102
John Criswell12399a12003-09-30 15:55:44 +000031103#
31104# CONFIG_SUBDIRS section.
31105#
31106if test "$no_recursion" != yes; then
31107
31108 # Remove --cache-file and --srcdir arguments so they do not pile up.
31109 ac_sub_configure_args=
31110 ac_prev=
31111 for ac_arg in $ac_configure_args; do
31112 if test -n "$ac_prev"; then
31113 ac_prev=
31114 continue
31115 fi
31116 case $ac_arg in
31117 -cache-file | --cache-file | --cache-fil | --cache-fi \
31118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31119 ac_prev=cache_file ;;
31120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31122 | --c=*)
31123 ;;
31124 --config-cache | -C)
31125 ;;
31126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31127 ac_prev=srcdir ;;
31128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31129 ;;
31130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31131 ac_prev=prefix ;;
31132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31133 ;;
31134 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31135 esac
31136 done
31137
31138 # Always prepend --prefix to ensure using the same prefix
31139 # in subdir configurations.
31140 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31141
31142 ac_popdir=`pwd`
31143 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31144
31145 # Do not complain, so a configure script can configure whichever
31146 # parts of a large source tree are present.
31147 test -d $srcdir/$ac_dir || continue
31148
31149 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31150echo "$as_me: configuring in $ac_dir" >&6;}
31151 { if $as_mkdir_p; then
31152 mkdir -p "$ac_dir"
31153 else
31154 as_dir="$ac_dir"
31155 as_dirs=
31156 while test ! -d "$as_dir"; do
31157 as_dirs="$as_dir $as_dirs"
31158 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031160 X"$as_dir" : 'X\(//\)[^/]' \| \
31161 X"$as_dir" : 'X\(//\)$' \| \
31162 X"$as_dir" : 'X\(/\)' \| \
31163 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031164echo X"$as_dir" |
31165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31167 /^X\(\/\/\)$/{ s//\1/; q; }
31168 /^X\(\/\).*/{ s//\1/; q; }
31169 s/.*/./; q'`
31170 done
31171 test ! -n "$as_dirs" || mkdir $as_dirs
31172 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31173echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31174 { (exit 1); exit 1; }; }; }
31175
31176 ac_builddir=.
31177
31178if test "$ac_dir" != .; then
31179 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31180 # A "../" for each directory in $ac_dir_suffix.
31181 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31182else
31183 ac_dir_suffix= ac_top_builddir=
31184fi
31185
31186case $srcdir in
31187 .) # No --srcdir option. We are building in place.
31188 ac_srcdir=.
31189 if test -z "$ac_top_builddir"; then
31190 ac_top_srcdir=.
31191 else
31192 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31193 fi ;;
31194 [\\/]* | ?:[\\/]* ) # Absolute path.
31195 ac_srcdir=$srcdir$ac_dir_suffix;
31196 ac_top_srcdir=$srcdir ;;
31197 *) # Relative path.
31198 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31199 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31200esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031201
31202# Do not use `cd foo && pwd` to compute absolute paths, because
31203# the directories may not exist.
31204case `pwd` in
31205.) ac_abs_builddir="$ac_dir";;
31206*)
31207 case "$ac_dir" in
31208 .) ac_abs_builddir=`pwd`;;
31209 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31210 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31211 esac;;
31212esac
31213case $ac_abs_builddir in
31214.) ac_abs_top_builddir=${ac_top_builddir}.;;
31215*)
31216 case ${ac_top_builddir}. in
31217 .) ac_abs_top_builddir=$ac_abs_builddir;;
31218 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31219 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31220 esac;;
31221esac
31222case $ac_abs_builddir in
31223.) ac_abs_srcdir=$ac_srcdir;;
31224*)
31225 case $ac_srcdir in
31226 .) ac_abs_srcdir=$ac_abs_builddir;;
31227 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31228 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31229 esac;;
31230esac
31231case $ac_abs_builddir in
31232.) ac_abs_top_srcdir=$ac_top_srcdir;;
31233*)
31234 case $ac_top_srcdir in
31235 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31236 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31237 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31238 esac;;
31239esac
John Criswell12399a12003-09-30 15:55:44 +000031240
31241
31242 cd $ac_dir
31243
31244 # Check for guested configure; otherwise get Cygnus style configure.
31245 if test -f $ac_srcdir/configure.gnu; then
31246 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31247 elif test -f $ac_srcdir/configure; then
31248 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31249 elif test -f $ac_srcdir/configure.in; then
31250 ac_sub_configure=$ac_configure
31251 else
31252 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31253echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31254 ac_sub_configure=
31255 fi
31256
31257 # The recursion is here.
31258 if test -n "$ac_sub_configure"; then
31259 # Make the cache file name correct relative to the subdirectory.
31260 case $cache_file in
31261 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31262 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031263 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031264 esac
31265
31266 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31267echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31268 # The eval makes quoting arguments work.
31269 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031270 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31271 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031272echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31273 { (exit 1); exit 1; }; }
31274 fi
31275
31276 cd $ac_popdir
31277 done
31278fi
31279
Brian Gaekef3b24102003-11-16 18:38:14 +000031280
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031281if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31282 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031283echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031284 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031285echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031286 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031287echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031288 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031289echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031290 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031291echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031293echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31294fi