blob: df7bc19a20037e47b46685d1fb2adca70a12f8e6 [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 Spencerbbf7a8a2004-12-31 22:54:28 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN 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 LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid 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 Spencer59473af2004-12-25 07:31:29 +00001052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1053 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001054 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1057 both]
1058 --with-tags[=TAGS]
1059 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001060
1061Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001062 CC C compiler command
1063 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001068 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075Use these variables to override the choices made by `configure' or to help
1076it to find libraries and programs with nonstandard names/locations.
1077
1078Report bugs to <llvmbugs@cs.uiuc.edu>.
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094 ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001112
1113# Do not use `cd foo && pwd` to compute absolute paths, because
1114# the directories may not exist.
1115case `pwd` in
1116.) ac_abs_builddir="$ac_dir";;
1117*)
1118 case "$ac_dir" in
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126*)
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_srcdir=$ac_srcdir;;
1135*)
1136 case $ac_srcdir in
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144*)
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 esac;;
1150esac
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 cd $ac_dir
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1155 echo
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1158 echo
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001161 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001162 echo
1163 $ac_configure --help
1164 else
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 fi
1167 cd $ac_popdir
1168 done
1169fi
1170
1171test -n "$ac_init_help" && exit 0
1172if $ac_init_version; then
1173 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001174llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001175generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001176
Reid Spencer2706f8c2004-09-19 23:53:36 +00001177Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001178This configure script is free software; the Free Software Foundation
1179gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001180
1181$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001182_ACEOF
1183 exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
Reid Spencerabec8f92004-10-27 23:03:44 +00001190It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001191generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001192
1193 $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
1211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224 IFS=$as_save_IFS
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001243# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001244# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001245# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001246ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001247ac_configure_args0=
1248ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001249ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001250ac_must_keep_next=false
1251for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001252do
John Criswell0c38eaf2003-09-10 15:17:25 +00001253 for ac_arg
1254 do
1255 case $ac_arg in
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 continue ;;
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 esac
1263 case $ac_pass in
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 2)
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001268 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001269 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001270 case $ac_arg in
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 esac
1278 ;;
1279 -* ) ac_must_keep_next=true ;;
1280 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001281 fi
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1284 ac_sep=" "
1285 ;;
1286 esac
1287 done
John Criswell7a73b802003-06-30 21:59:07 +00001288done
John Criswell0c38eaf2003-09-10 15:17:25 +00001289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$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 +00001291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log. We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1299 {
1300 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001301
John Criswell7a73b802003-06-30 21:59:07 +00001302 cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307 echo
1308 # The following way of writing the cache mishandles newlines in values,
1309{
1310 (set) 2>&1 |
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 *ac_space=\ *)
1313 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001316 ;;
1317 *)
1318 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001320 ;;
1321 esac;
1322}
1323 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001324
1325 cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_vars
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337
1338 if test -n "$ac_subst_files"; then
1339 cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_files
1346 do
1347 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001348 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001349 done | sort
1350 echo
1351 fi
1352
John Criswell7a73b802003-06-30 21:59:07 +00001353 if test -s confdefs.h; then
1354 cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001360 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001361 echo
1362 fi
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1366 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001367 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 exit $exit_status
1370 ' 0
1371for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 else
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1422 . "$ac_site_file"
1423 fi
1424done
1425
1426if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432 case $cache_file in
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1435 esac
1436 fi
1437else
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440 >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1453 set,)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,set)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,);;
1462 *)
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001469echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1484 fi
1485done
1486if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001527LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
John Criswell7a73b802003-06-30 21:59:07 +00001535ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001536for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1549 fi
1550done
1551if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001554 { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
John Criswell392aaa32003-07-22 19:18:09 +00001560
Reid Spencer2706f8c2004-09-19 23:53:36 +00001561if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001564echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 fi
John Criswell93e1c722003-09-15 17:04:06 +00001567fi
1568
John Criswell33a911a2003-11-25 20:36:46 +00001569for i in `ls ${srcdir}/projects`
1570do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001571 if test -d ${srcdir}/projects/${i} ; then
1572 case ${i} in
1573 "CVS") ;;
1574 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001575
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576subdirs="$subdirs projects/sample"
1577 ;;
1578 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001579
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580subdirs="$subdirs projects/Stacker"
1581 ;;
1582 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001583
Reid Spencer4d68ba22004-09-07 16:35:45 +00001584subdirs="$subdirs projects/llvm-test"
1585 ;;
1586 "llvm-reopt")
1587
1588subdirs="$subdirs projects/llvm-reopt"
1589;;
1590 "llvm-gcc")
1591
1592subdirs="$subdirs projects/llvm-gcc"
1593 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001594 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595
Reid Spencer641f7ef2004-09-20 22:14:56 +00001596subdirs="$subdirs projects/Java"
1597 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001598 "llvm-tv")
1599
1600subdirs="$subdirs projects/llvm-tv"
1601 ;;
1602 "llvm-fefw")
1603
1604subdirs="$subdirs projects/llvm-fefw"
1605 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 "poolalloc")
1607
1608subdirs="$subdirs projects/poolalloc"
1609 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001610 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001613 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001614 esac
John Criswell33a911a2003-11-25 20:36:46 +00001615 fi
1616done
John Criswell559a6c12003-09-30 16:31:48 +00001617
John Criswell7a73b802003-06-30 21:59:07 +00001618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651echo "$as_me:$LINENO: checking host system type" >&5
1652echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 ac_cv_host_alias=$host_alias
1657test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1663
1664fi
1665echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666echo "${ECHO_T}$ac_cv_host" >&6
1667host=$ac_cv_host
1668host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673echo "$as_me:$LINENO: checking target system type" >&5
1674echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 ac_cv_target_alias=$target_alias
1679test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688echo "${ECHO_T}$ac_cv_target" >&6
1689target=$ac_cv_target
1690target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695# The aliases save the names the user supplied, while $host etc.
1696# will get canonicalized.
1697test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1699 NONENONEs,x,x, &&
1700 program_prefix=${target_alias}-
1701
Reid Spencer7b3e8512004-12-24 06:29:05 +00001702echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001708 *-*-aix*)
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-cygwin*)
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-darwin*)
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1717 *-*-freebsd*)
1718 llvm_cv_os_type="FreeBSD"
1719 llvm_cv_platform_type="Unix" ;;
1720 *-*-interix*)
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1723 *-*-linux*)
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1726 *-*-solaris*)
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1729 *-*-win32*)
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1732 *-*-mingw*)
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1735 *)
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001738esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001739fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001742
Reid Spencer7b3e8512004-12-24 06:29:05 +00001743if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001746 { (exit 1); exit 1; }; }
1747fi
1748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750
1751
Reid Spencer7b3e8512004-12-24 06:29:05 +00001752case $llvm_cv_platform_type in
1753 Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001759 LLVM_ON_UNIX=1
1760
1761 LLVM_ON_WIN32=0
1762
Reid Spencer7b3e8512004-12-24 06:29:05 +00001763 ;;
1764 Win32)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_WIN32 1
1768_ACEOF
1769
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001770 LLVM_ON_UNIX=0
1771
1772 LLVM_ON_WIN32=1
1773
Reid Spencer7b3e8512004-12-24 06:29:05 +00001774 ;;
1775esac
1776
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001777case $target in
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1779
1780 ;;
1781esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001782
1783echo "$as_me:$LINENO: checking target architecture" >&5
1784echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001785if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001789 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1793 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001794esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001795fi
1796echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1797echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001798
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001799if test "$llvm_cv_target_arch" = "Unknown" ; then
1800 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1801echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1802fi
John Criswell76595452003-07-01 22:07:39 +00001803
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001804ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001805
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001806
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001807ac_ext=c
1808ac_cpp='$CPP $CPPFLAGS'
1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1811ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001812if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1814set dummy ${ac_tool_prefix}gcc; ac_word=$2
1815echo "$as_me:$LINENO: checking for $ac_word" >&5
1816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817if test "${ac_cv_prog_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC="$CC" # Let the user override the test.
1822else
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 break 2
1833 fi
1834done
1835done
1836
1837fi
1838fi
1839CC=$ac_cv_prog_CC
1840if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842echo "${ECHO_T}$CC" >&6
1843else
1844 echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6
1846fi
1847
1848fi
1849if test -z "$ac_cv_prog_CC"; then
1850 ac_ct_CC=$CC
1851 # Extract the first word of "gcc", so it can be a program name with args.
1852set dummy gcc; ac_word=$2
1853echo "$as_me:$LINENO: checking for $ac_word" >&5
1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857else
1858 if test -n "$ac_ct_CC"; then
1859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1860else
1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862for as_dir in $PATH
1863do
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_ac_ct_CC="gcc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 break 2
1871 fi
1872done
1873done
1874
1875fi
1876fi
1877ac_ct_CC=$ac_cv_prog_ac_ct_CC
1878if test -n "$ac_ct_CC"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1880echo "${ECHO_T}$ac_ct_CC" >&6
1881else
1882 echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
1884fi
1885
1886 CC=$ac_ct_CC
1887else
1888 CC="$ac_cv_prog_CC"
1889fi
1890
1891if test -z "$CC"; then
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1894set dummy ${ac_tool_prefix}cc; ac_word=$2
1895echo "$as_me:$LINENO: checking for $ac_word" >&5
1896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902else
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC="${ac_tool_prefix}cc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914done
1915done
1916
1917fi
1918fi
1919CC=$ac_cv_prog_CC
1920if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922echo "${ECHO_T}$CC" >&6
1923else
1924 echo "$as_me:$LINENO: result: no" >&5
1925echo "${ECHO_T}no" >&6
1926fi
1927
1928fi
1929if test -z "$ac_cv_prog_CC"; then
1930 ac_ct_CC=$CC
1931 # Extract the first word of "cc", so it can be a program name with args.
1932set dummy cc; ac_word=$2
1933echo "$as_me:$LINENO: checking for $ac_word" >&5
1934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940else
1941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942for as_dir in $PATH
1943do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952done
1953done
1954
1955fi
1956fi
1957ac_ct_CC=$ac_cv_prog_ac_ct_CC
1958if test -n "$ac_ct_CC"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960echo "${ECHO_T}$ac_ct_CC" >&6
1961else
1962 echo "$as_me:$LINENO: result: no" >&5
1963echo "${ECHO_T}no" >&6
1964fi
1965
1966 CC=$ac_ct_CC
1967else
1968 CC="$ac_cv_prog_CC"
1969fi
1970
1971fi
1972if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974set dummy cc; ac_word=$2
1975echo "$as_me:$LINENO: checking for $ac_word" >&5
1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1982else
1983 ac_prog_rejected=no
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992 ac_prog_rejected=yes
1993 continue
1994 fi
1995 ac_cv_prog_CC="cc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1998 fi
1999done
2000done
2001
2002if test $ac_prog_rejected = yes; then
2003 # We found a bogon in the path, so make sure we never use it.
2004 set dummy $ac_cv_prog_CC
2005 shift
2006 if test $# != 0; then
2007 # We chose a different compiler from the bogus one.
2008 # However, it has the same basename, so the bogon will be chosen
2009 # first if we set CC to just the basename; use the full file name.
2010 shift
2011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2012 fi
2013fi
2014fi
2015fi
2016CC=$ac_cv_prog_CC
2017if test -n "$CC"; then
2018 echo "$as_me:$LINENO: result: $CC" >&5
2019echo "${ECHO_T}$CC" >&6
2020else
2021 echo "$as_me:$LINENO: result: no" >&5
2022echo "${ECHO_T}no" >&6
2023fi
2024
2025fi
2026if test -z "$CC"; then
2027 if test -n "$ac_tool_prefix"; then
2028 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002029 do
2030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002034if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
2053
2054fi
2055fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002060else
2061 echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002066 done
2067fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068if test -z "$CC"; then
2069 ac_ct_CC=$CC
2070 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002071do
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073set dummy $ac_prog; ac_word=$2
2074echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093done
2094done
2095
2096fi
2097fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002098ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099if test -n "$ac_ct_CC"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002102else
2103 echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002107 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002108done
John Criswell7a73b802003-06-30 21:59:07 +00002109
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002110 CC=$ac_ct_CC
2111fi
2112
John Criswell7a73b802003-06-30 21:59:07 +00002113fi
2114
2115
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002116test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2117See \`config.log' for more details." >&5
2118echo "$as_me: error: no acceptable C compiler found in \$PATH
2119See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2121
John Criswell7a73b802003-06-30 21:59:07 +00002122# Provide some information about the compiler.
2123echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002124 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002125ac_compiler=`set X $ac_compile; echo $2`
2126{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2127 (eval $ac_compiler --version </dev/null >&5) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2132 (eval $ac_compiler -v </dev/null >&5) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2137 (eval $ac_compiler -V </dev/null >&5) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141
2142cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002143/* confdefs.h. */
2144_ACEOF
2145cat confdefs.h >>conftest.$ac_ext
2146cat >>conftest.$ac_ext <<_ACEOF
2147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002148
John Criswell7a73b802003-06-30 21:59:07 +00002149int
2150main ()
2151{
2152
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002158ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002159# Try to create an executable without -o first, disregard a.out.
2160# It will help us diagnose broken compilers, and finding out an intuition
2161# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2163echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002164ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2166 (eval $ac_link_default) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Find the output, starting from the most likely. This scheme is
2171# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2172# resort.
2173
2174# Be careful to initialize this variable, since it used to be cached.
2175# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002177# b.out is created by i960 compilers.
2178for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2179do
2180 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002181 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 # This is the source file.
2186 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # FIXME: I believe we export ac_cv_exeext for Libtool,
2194 # but it would be cool to find out if it's true. Does anybody
2195 # maintain Libtool? --akim.
2196 export ac_cv_exeext
2197 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002198 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002199 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002200 esac
2201done
2202else
2203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002204sed 's/^/| /' conftest.$ac_ext >&5
2205
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002206{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002207See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002208echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002209See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 77); exit 77; }; }
2211fi
2212
2213ac_exeext=$ac_cv_exeext
2214echo "$as_me:$LINENO: result: $ac_file" >&5
2215echo "${ECHO_T}$ac_file" >&6
2216
2217# Check the compiler produces executables we can run. If not, either
2218# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002219echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002221# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222# If not cross compiling, check that we can run a simple program.
2223if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 cross_compiling=no
2231 else
2232 if test "$cross_compiling" = maybe; then
2233 cross_compiling=yes
2234 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002236If you meant to cross compile, use \`--host'.
2237See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002238echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002241 { (exit 1); exit 1; }; }
2242 fi
2243 fi
2244fi
2245echo "$as_me:$LINENO: result: yes" >&5
2246echo "${ECHO_T}yes" >&6
2247
John Criswell0c38eaf2003-09-10 15:17:25 +00002248rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002249ac_clean_files=$ac_clean_files_save
2250# Check the compiler produces executables we can run. If not, either
2251# the compiler is broken, or we cross compile.
2252echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2254echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255echo "${ECHO_T}$cross_compiling" >&6
2256
2257echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266# work properly (i.e., refer to `conftest.exe'), while it won't with
2267# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002268for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002270 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002273 export ac_cv_exeext
2274 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 * ) break;;
2276 esac
2277done
2278else
John Criswell0c38eaf2003-09-10 15:17:25 +00002279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002283 { (exit 1); exit 1; }; }
2284fi
2285
2286rm -f conftest$ac_cv_exeext
2287echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288echo "${ECHO_T}$ac_cv_exeext" >&6
2289
2290rm -f conftest.$ac_ext
2291EXEEXT=$ac_cv_exeext
2292ac_exeext=$EXEEXT
2293echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2295if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002304
John Criswell7a73b802003-06-30 21:59:07 +00002305int
2306main ()
2307{
2308
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.o conftest.obj
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2320 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 break;;
2324 esac
2325done
2326else
2327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002334 { (exit 1); exit 1; }; }
2335fi
2336
2337rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338fi
2339echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340echo "${ECHO_T}$ac_cv_objext" >&6
2341OBJEXT=$ac_cv_objext
2342ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002343echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2345if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002354
John Criswell7a73b802003-06-30 21:59:07 +00002355int
2356main ()
2357{
2358#ifndef __GNUC__
2359 choke me
2360#endif
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
2366rm -f conftest.$ac_objext
2367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002370 grep -v '^ *+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_compiler_gnu=yes
2389else
2390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002391sed 's/^/| /' conftest.$ac_ext >&5
2392
John Criswell7a73b802003-06-30 21:59:07 +00002393ac_compiler_gnu=no
2394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002397
2398fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2400echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2401GCC=`test $ac_compiler_gnu = yes && echo yes`
2402ac_test_CFLAGS=${CFLAGS+set}
2403ac_save_CFLAGS=$CFLAGS
2404CFLAGS="-g"
2405echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2406echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2407if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002411/* confdefs.h. */
2412_ACEOF
2413cat confdefs.h >>conftest.$ac_ext
2414cat >>conftest.$ac_ext <<_ACEOF
2415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002416
John Criswell7a73b802003-06-30 21:59:07 +00002417int
2418main ()
2419{
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425rm -f conftest.$ac_objext
2426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002427 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002428 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002448else
2449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002450sed 's/^/| /' conftest.$ac_ext >&5
2451
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002453fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002455fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2457echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2458if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS=$ac_save_CFLAGS
2460elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2462 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002463 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002465 fi
2466else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467 if test "$GCC" = yes; then
2468 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002469 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002471 fi
2472fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2474echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2475if test "${ac_cv_prog_cc_stdc+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 ac_cv_prog_cc_stdc=no
2479ac_save_CC=$CC
2480cat >conftest.$ac_ext <<_ACEOF
2481/* confdefs.h. */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h. */
2486#include <stdarg.h>
2487#include <stdio.h>
2488#include <sys/types.h>
2489#include <sys/stat.h>
2490/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2491struct buf { int x; };
2492FILE * (*rcsopen) (struct buf *, struct stat *, int);
2493static char *e (p, i)
2494 char **p;
2495 int i;
2496{
2497 return p[i];
2498}
2499static char *f (char * (*g) (char **, int), char **p, ...)
2500{
2501 char *s;
2502 va_list v;
2503 va_start (v,p);
2504 s = g (p, va_arg (v,int));
2505 va_end (v);
2506 return s;
2507}
2508
2509/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2510 function prototypes and stuff, but not '\xHH' hex character constants.
2511 These don't provoke an error unfortunately, instead are silently treated
2512 as 'x'. The following induces an error, until -std1 is added to get
2513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2514 array size at least. It's necessary to write '\x00'==0 to get something
2515 that's true only with -std1. */
2516int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2517
2518int test (int i, double x);
2519struct s1 {int (*f) (int a);};
2520struct s2 {int (*f) (double a);};
2521int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2522int argc;
2523char **argv;
2524int
2525main ()
2526{
2527return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532# Don't try gcc -ansi; that turns off useful extensions and
2533# breaks some systems' header files.
2534# AIX -qlanglvl=ansi
2535# Ultrix and OSF/1 -std1
2536# HP-UX 10.20 and later -Ae
2537# HP-UX older versions -Aa -D_HPUX_SOURCE
2538# SVR4 -Xc -D__EXTENSIONS__
2539for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2540do
2541 CC="$ac_save_CC $ac_arg"
2542 rm -f conftest.$ac_objext
2543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc=$ac_arg
2565break
2566else
2567 echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570fi
2571rm -f conftest.err conftest.$ac_objext
2572done
2573rm -f conftest.$ac_ext conftest.$ac_objext
2574CC=$ac_save_CC
2575
2576fi
2577
2578case "x$ac_cv_prog_cc_stdc" in
2579 x|xno)
2580 echo "$as_me:$LINENO: result: none needed" >&5
2581echo "${ECHO_T}none needed" >&6 ;;
2582 *)
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2584echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2585 CC="$CC $ac_cv_prog_cc_stdc" ;;
2586esac
2587
2588# Some people use a C++ compiler to compile C. Since we use `exit',
2589# in C++ we need to declare it. In case someone uses the same compiler
2590# for both compiling C and C++ we need to have the C++ compiler decide
2591# the declaration of exit, since it's the most demanding environment.
2592cat >conftest.$ac_ext <<_ACEOF
2593#ifndef __cplusplus
2594 choke me
2595#endif
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002620 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002621 'extern "C" void std::exit (int) throw (); using std::exit;' \
2622 'extern "C" void std::exit (int); using std::exit;' \
2623 'extern "C" void exit (int) throw ();' \
2624 'extern "C" void exit (int);' \
2625 'void exit (int);'
2626do
2627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002633$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002634#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002635int
2636main ()
2637{
2638exit (42);
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643rm -f conftest.$ac_objext
2644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002645 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 :
2666else
2667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
John Criswell7a73b802003-06-30 21:59:07 +00002670continue
2671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002679$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002680int
2681main ()
2682{
2683exit (42);
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002690 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 break
2711else
2712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002713sed 's/^/| /' conftest.$ac_ext >&5
2714
John Criswell7a73b802003-06-30 21:59:07 +00002715fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002717done
2718rm -f conftest*
2719if test -n "$ac_declaration"; then
2720 echo '#ifdef __cplusplus' >>confdefs.h
2721 echo $ac_declaration >>confdefs.h
2722 echo '#endif' >>confdefs.h
2723fi
2724
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725else
2726 echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737
2738echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2739echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2740if test "${ac_cv_c_bigendian+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743 # See if sys/param.h defines the BYTE_ORDER macro.
2744cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
2750#include <sys/types.h>
2751#include <sys/param.h>
2752
2753int
2754main ()
2755{
2756#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2757 bogus endian macros
2758#endif
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_c_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 # It does; now see whether it defined to BIG_ENDIAN or not.
2787cat >conftest.$ac_ext <<_ACEOF
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793#include <sys/types.h>
2794#include <sys/param.h>
2795
2796int
2797main ()
2798{
2799#if BYTE_ORDER != BIG_ENDIAN
2800 not big endian
2801#endif
2802
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807rm -f conftest.$ac_objext
2808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>conftest.er1
2810 ac_status=$?
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } &&
2816 { ac_try='test -z "$ac_c_werror_flag"
2817 || test ! -s conftest.err'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; } &&
2823 { ac_try='test -s conftest.$ac_objext'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 ac_cv_c_bigendian=yes
2830else
2831 echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834ac_cv_c_bigendian=no
2835fi
2836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837else
2838 echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841# It does not; compile a test program.
2842if test "$cross_compiling" = yes; then
2843 # try to guess the endianness by grepping values into an object file
2844 ac_cv_c_bigendian=unknown
2845 cat >conftest.$ac_ext <<_ACEOF
2846/* confdefs.h. */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h. */
2851short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2852short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2853void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2854short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2855short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2856void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2857int
2858main ()
2859{
2860 _ascii (); _ebcdic ();
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext
2866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867 (eval $ac_compile) 2>conftest.er1
2868 ac_status=$?
2869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -z "$ac_c_werror_flag"
2875 || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2888 ac_cv_c_bigendian=yes
2889fi
2890if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2891 if test "$ac_cv_c_bigendian" = unknown; then
2892 ac_cv_c_bigendian=no
2893 else
2894 # finding both strings is unlikely to happen, but who knows?
2895 ac_cv_c_bigendian=unknown
2896 fi
2897fi
2898else
2899 echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904else
2905 cat >conftest.$ac_ext <<_ACEOF
2906/* confdefs.h. */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h. */
2911int
2912main ()
2913{
2914 /* Are we little or big endian? From Harbison&Steele. */
2915 union
2916 {
2917 long l;
2918 char c[sizeof (long)];
2919 } u;
2920 u.l = 1;
2921 exit (u.c[sizeof (long) - 1] == 1);
2922}
2923_ACEOF
2924rm -f conftest$ac_exeext
2925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 ac_cv_c_bigendian=no
2936else
2937 echo "$as_me: program exited with status $ac_status" >&5
2938echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941( exit $ac_status )
2942ac_cv_c_bigendian=yes
2943fi
2944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2945fi
2946fi
2947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948fi
2949echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2950echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2951case $ac_cv_c_bigendian in
2952 yes)
2953 ENDIAN=big
2954 ;;
2955 no)
2956 ENDIAN=little
2957 ;;
2958 *)
2959 { { echo "$as_me:$LINENO: error: unknown endianness
2960presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2961echo "$as_me: error: unknown endianness
2962presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2963 { (exit 1); exit 1; }; } ;;
2964esac
2965
2966
2967
2968# Check whether --enable-optimized or --disable-optimized was given.
2969if test "${enable_optimized+set}" = set; then
2970 enableval="$enable_optimized"
2971
2972else
2973 enableval=no
2974fi;
2975if test ${enableval} = "no" ; then
2976 ENABLE_OPTIMIZED=
2977
2978else
2979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2980
2981fi
2982
2983# Check whether --enable-jit or --disable-jit was given.
2984if test "${enable_jit+set}" = set; then
2985 enableval="$enable_jit"
2986
2987else
2988 enableval=default
2989fi;
2990if test ${enableval} = "no"
2991then
2992 JIT=
2993
2994else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002995 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002996 x86) JIT=TARGET_HAS_JIT=1
2997 ;;
2998 Sparc) JIT=TARGET_HAS_JIT=1
2999 ;;
3000 PowerPC) JIT=TARGET_HAS_JIT=1
3001 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003002 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003003 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003004 *) JIT=
3005 ;;
3006 esac
3007fi
3008
Reid Spencer1f319422004-11-29 04:56:35 +00003009# Check whether --enable-doxygen or --disable-doxygen was given.
3010if test "${enable_doxygen+set}" = set; then
3011 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003012
Reid Spencer1f319422004-11-29 04:56:35 +00003013else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003014 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003015fi;
3016case "$enableval" in
3017 yes) ENABLE_DOXYGEN=1
3018 ;;
3019 no) ENABLE_DOXYGEN=0
3020 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003021 default) ENABLE_DOXYGEN=0
3022 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025 { (exit 1); exit 1; }; } ;;
3026esac
3027
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003028
Reid Spencer59473af2004-12-25 07:31:29 +00003029# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3030if test "${with_llvmgccdir+set}" = set; then
3031 withval="$with_llvmgccdir"
3032
3033else
3034 withval=default
3035fi;
3036case "$withval" in
3037 default) WITH_LLVMGCCDIR=default ;;
3038 /*) WITH_LLVMGCCDIR=$withval ;;
3039 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3040echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3041 { (exit 1); exit 1; }; } ;;
3042esac
3043
3044
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3051echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3052# On Suns, sometimes $CPP names a directory.
3053if test -n "$CPP" && test -d "$CPP"; then
3054 CPP=
3055fi
3056if test -z "$CPP"; then
3057 if test "${ac_cv_prog_CPP+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
3060 # Double quotes because CPP needs to be expanded
3061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3062 do
3063 ac_preproc_ok=false
3064for ac_c_preproc_warn_flag in '' yes
3065do
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078#ifdef __STDC__
3079# include <limits.h>
3080#else
3081# include <assert.h>
3082#endif
3083 Syntax error
3084_ACEOF
3085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 else
3097 ac_cpp_err=
3098 fi
3099else
3100 ac_cpp_err=yes
3101fi
3102if test -z "$ac_cpp_err"; then
3103 :
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 # Broken: fails on valid input.
3109continue
3110fi
3111rm -f conftest.err conftest.$ac_ext
3112
3113 # OK, works on sane cases. Now check whether non-existent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
3121#include <ac_nonexistent.h>
3122_ACEOF
3123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } >/dev/null; then
3131 if test -s conftest.err; then
3132 ac_cpp_err=$ac_c_preproc_warn_flag
3133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3134 else
3135 ac_cpp_err=
3136 fi
3137else
3138 ac_cpp_err=yes
3139fi
3140if test -z "$ac_cpp_err"; then
3141 # Broken: success on invalid input.
3142continue
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 # Passes both tests.
3148ac_preproc_ok=:
3149break
3150fi
3151rm -f conftest.err conftest.$ac_ext
3152
3153done
3154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155rm -f conftest.err conftest.$ac_ext
3156if $ac_preproc_ok; then
3157 break
3158fi
3159
3160 done
3161 ac_cv_prog_CPP=$CPP
3162
3163fi
3164 CPP=$ac_cv_prog_CPP
3165else
3166 ac_cv_prog_CPP=$CPP
3167fi
3168echo "$as_me:$LINENO: result: $CPP" >&5
3169echo "${ECHO_T}$CPP" >&6
3170ac_preproc_ok=false
3171for ac_c_preproc_warn_flag in '' yes
3172do
3173 # Use a header file that comes with gcc, so configuring glibc
3174 # with a fresh cross-compiler works.
3175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176 # <limits.h> exists even on freestanding compilers.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h. */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h. */
3185#ifdef __STDC__
3186# include <limits.h>
3187#else
3188# include <assert.h>
3189#endif
3190 Syntax error
3191_ACEOF
3192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null; then
3200 if test -s conftest.err; then
3201 ac_cpp_err=$ac_c_preproc_warn_flag
3202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3203 else
3204 ac_cpp_err=
3205 fi
3206else
3207 ac_cpp_err=yes
3208fi
3209if test -z "$ac_cpp_err"; then
3210 :
3211else
3212 echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 # Broken: fails on valid input.
3216continue
3217fi
3218rm -f conftest.err conftest.$ac_ext
3219
3220 # OK, works on sane cases. Now check whether non-existent headers
3221 # can be detected and how.
3222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <ac_nonexistent.h>
3229_ACEOF
3230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } >/dev/null; then
3238 if test -s conftest.err; then
3239 ac_cpp_err=$ac_c_preproc_warn_flag
3240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3241 else
3242 ac_cpp_err=
3243 fi
3244else
3245 ac_cpp_err=yes
3246fi
3247if test -z "$ac_cpp_err"; then
3248 # Broken: success on invalid input.
3249continue
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 # Passes both tests.
3255ac_preproc_ok=:
3256break
3257fi
3258rm -f conftest.err conftest.$ac_ext
3259
3260done
3261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3262rm -f conftest.err conftest.$ac_ext
3263if $ac_preproc_ok; then
3264 :
3265else
3266 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3267See \`config.log' for more details." >&5
3268echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3269See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3271fi
3272
John Criswell7a73b802003-06-30 21:59:07 +00003273ac_ext=c
3274ac_cpp='$CPP $CPPFLAGS'
3275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278
3279ac_ext=c
3280ac_cpp='$CPP $CPPFLAGS'
3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284if test -n "$ac_tool_prefix"; then
3285 for ac_prog in gcc
3286 do
3287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3289echo "$as_me:$LINENO: checking for $ac_word" >&5
3290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291if test "${ac_cv_prog_CC+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308done
3309done
3310
3311fi
3312fi
3313CC=$ac_cv_prog_CC
3314if test -n "$CC"; then
3315 echo "$as_me:$LINENO: result: $CC" >&5
3316echo "${ECHO_T}$CC" >&6
3317else
3318 echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
3320fi
3321
3322 test -n "$CC" && break
3323 done
3324fi
3325if test -z "$CC"; then
3326 ac_ct_CC=$CC
3327 for ac_prog in gcc
3328do
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330set dummy $ac_prog; ac_word=$2
3331echo "$as_me:$LINENO: checking for $ac_word" >&5
3332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350done
3351done
3352
3353fi
3354fi
3355ac_ct_CC=$ac_cv_prog_ac_ct_CC
3356if test -n "$ac_ct_CC"; then
3357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3358echo "${ECHO_T}$ac_ct_CC" >&6
3359else
3360 echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362fi
3363
3364 test -n "$ac_ct_CC" && break
3365done
3366
3367 CC=$ac_ct_CC
3368fi
3369
3370
John Criswell0c38eaf2003-09-10 15:17:25 +00003371test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3372See \`config.log' for more details." >&5
3373echo "$as_me: error: no acceptable C compiler found in \$PATH
3374See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003375 { (exit 1); exit 1; }; }
3376
3377# Provide some information about the compiler.
3378echo "$as_me:$LINENO:" \
3379 "checking for C compiler version" >&5
3380ac_compiler=`set X $ac_compile; echo $2`
3381{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3382 (eval $ac_compiler --version </dev/null >&5) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }
3386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3387 (eval $ac_compiler -v </dev/null >&5) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }
3391{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3392 (eval $ac_compiler -V </dev/null >&5) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }
3396
3397echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3399if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003408
John Criswell7a73b802003-06-30 21:59:07 +00003409int
3410main ()
3411{
3412#ifndef __GNUC__
3413 choke me
3414#endif
3415
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
3421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003422 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_compiler_gnu=yes
3443else
3444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003445sed 's/^/| /' conftest.$ac_ext >&5
3446
John Criswell7a73b802003-06-30 21:59:07 +00003447ac_compiler_gnu=no
3448fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003450ac_cv_c_compiler_gnu=$ac_compiler_gnu
3451
3452fi
3453echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3454echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3455GCC=`test $ac_compiler_gnu = yes && echo yes`
3456ac_test_CFLAGS=${CFLAGS+set}
3457ac_save_CFLAGS=$CFLAGS
3458CFLAGS="-g"
3459echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3460echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3461if test "${ac_cv_prog_cc_g+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003470
John Criswell7a73b802003-06-30 21:59:07 +00003471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479rm -f conftest.$ac_objext
3480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003481 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_prog_cc_g=yes
3502else
3503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003504sed 's/^/| /' conftest.$ac_ext >&5
3505
John Criswell7a73b802003-06-30 21:59:07 +00003506ac_cv_prog_cc_g=no
3507fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003509fi
3510echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3511echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3512if test "$ac_test_CFLAGS" = set; then
3513 CFLAGS=$ac_save_CFLAGS
3514elif test $ac_cv_prog_cc_g = yes; then
3515 if test "$GCC" = yes; then
3516 CFLAGS="-g -O2"
3517 else
3518 CFLAGS="-g"
3519 fi
3520else
3521 if test "$GCC" = yes; then
3522 CFLAGS="-O2"
3523 else
3524 CFLAGS=
3525 fi
3526fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003527echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3528echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3529if test "${ac_cv_prog_cc_stdc+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532 ac_cv_prog_cc_stdc=no
3533ac_save_CC=$CC
3534cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#include <stdarg.h>
3541#include <stdio.h>
3542#include <sys/types.h>
3543#include <sys/stat.h>
3544/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3545struct buf { int x; };
3546FILE * (*rcsopen) (struct buf *, struct stat *, int);
3547static char *e (p, i)
3548 char **p;
3549 int i;
3550{
3551 return p[i];
3552}
3553static char *f (char * (*g) (char **, int), char **p, ...)
3554{
3555 char *s;
3556 va_list v;
3557 va_start (v,p);
3558 s = g (p, va_arg (v,int));
3559 va_end (v);
3560 return s;
3561}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003562
3563/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3564 function prototypes and stuff, but not '\xHH' hex character constants.
3565 These don't provoke an error unfortunately, instead are silently treated
3566 as 'x'. The following induces an error, until -std1 is added to get
3567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3568 array size at least. It's necessary to write '\x00'==0 to get something
3569 that's true only with -std1. */
3570int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3571
John Criswell0c38eaf2003-09-10 15:17:25 +00003572int test (int i, double x);
3573struct s1 {int (*f) (int a);};
3574struct s2 {int (*f) (double a);};
3575int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576int argc;
3577char **argv;
3578int
3579main ()
3580{
3581return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586# Don't try gcc -ansi; that turns off useful extensions and
3587# breaks some systems' header files.
3588# AIX -qlanglvl=ansi
3589# Ultrix and OSF/1 -std1
3590# HP-UX 10.20 and later -Ae
3591# HP-UX older versions -Aa -D_HPUX_SOURCE
3592# SVR4 -Xc -D__EXTENSIONS__
3593for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594do
3595 CC="$ac_save_CC $ac_arg"
3596 rm -f conftest.$ac_objext
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003598 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_prog_cc_stdc=$ac_arg
3619break
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003625rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003626done
3627rm -f conftest.$ac_ext conftest.$ac_objext
3628CC=$ac_save_CC
3629
3630fi
3631
3632case "x$ac_cv_prog_cc_stdc" in
3633 x|xno)
3634 echo "$as_me:$LINENO: result: none needed" >&5
3635echo "${ECHO_T}none needed" >&6 ;;
3636 *)
3637 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3638echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3639 CC="$CC $ac_cv_prog_cc_stdc" ;;
3640esac
3641
John Criswell7a73b802003-06-30 21:59:07 +00003642# Some people use a C++ compiler to compile C. Since we use `exit',
3643# in C++ we need to declare it. In case someone uses the same compiler
3644# for both compiling C and C++ we need to have the C++ compiler decide
3645# the declaration of exit, since it's the most demanding environment.
3646cat >conftest.$ac_ext <<_ACEOF
3647#ifndef __cplusplus
3648 choke me
3649#endif
3650_ACEOF
3651rm -f conftest.$ac_objext
3652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003653 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003660 { ac_try='test -z "$ac_c_werror_flag"
3661 || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003674 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003675 'extern "C" void std::exit (int) throw (); using std::exit;' \
3676 'extern "C" void std::exit (int); using std::exit;' \
3677 'extern "C" void exit (int) throw ();' \
3678 'extern "C" void exit (int);' \
3679 'void exit (int);'
3680do
3681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003687$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003688#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003689int
3690main ()
3691{
3692exit (42);
3693 ;
3694 return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext
3698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003699 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003701 grep -v '^ *+' conftest.er1 >conftest.err
3702 rm -f conftest.er1
3703 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003706 { ac_try='test -z "$ac_c_werror_flag"
3707 || test ! -s conftest.err'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 :
3720else
3721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003722sed 's/^/| /' conftest.$ac_ext >&5
3723
John Criswell7a73b802003-06-30 21:59:07 +00003724continue
3725fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003727 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003733$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003734int
3735main ()
3736{
3737exit (42);
3738 ;
3739 return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext
3743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003744 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003751 { ac_try='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 break
3765else
3766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003767sed 's/^/| /' conftest.$ac_ext >&5
3768
John Criswell7a73b802003-06-30 21:59:07 +00003769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003771done
3772rm -f conftest*
3773if test -n "$ac_declaration"; then
3774 echo '#ifdef __cplusplus' >>confdefs.h
3775 echo $ac_declaration >>confdefs.h
3776 echo '#endif' >>confdefs.h
3777fi
3778
3779else
3780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003781sed 's/^/| /' conftest.$ac_ext >&5
3782
John Criswell7a73b802003-06-30 21:59:07 +00003783fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003785ac_ext=c
3786ac_cpp='$CPP $CPPFLAGS'
3787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003791ac_ext=cc
3792ac_cpp='$CXXCPP $CPPFLAGS'
3793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3796if test -n "$ac_tool_prefix"; then
3797 for ac_prog in $CCC g++
3798 do
3799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801echo "$as_me:$LINENO: checking for $ac_word" >&5
3802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003806 if test -n "$CXX"; then
3807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003811do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820done
3821done
3822
3823fi
3824fi
3825CXX=$ac_cv_prog_CXX
3826if test -n "$CXX"; then
3827 echo "$as_me:$LINENO: result: $CXX" >&5
3828echo "${ECHO_T}$CXX" >&6
3829else
3830 echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6
3832fi
3833
3834 test -n "$CXX" && break
3835 done
3836fi
3837if test -z "$CXX"; then
3838 ac_ct_CXX=$CXX
3839 for ac_prog in $CCC g++
3840do
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842set dummy $ac_prog; ac_word=$2
3843echo "$as_me:$LINENO: checking for $ac_word" >&5
3844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847else
3848 if test -n "$ac_ct_CXX"; then
3849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_CXX="$ac_prog"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863done
3864
3865fi
3866fi
3867ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3868if test -n "$ac_ct_CXX"; then
3869 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3870echo "${ECHO_T}$ac_ct_CXX" >&6
3871else
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
3874fi
3875
3876 test -n "$ac_ct_CXX" && break
3877done
3878test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3879
3880 CXX=$ac_ct_CXX
3881fi
3882
3883
3884# Provide some information about the compiler.
3885echo "$as_me:$LINENO:" \
3886 "checking for C++ compiler version" >&5
3887ac_compiler=`set X $ac_compile; echo $2`
3888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3889 (eval $ac_compiler --version </dev/null >&5) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }
3893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3894 (eval $ac_compiler -v </dev/null >&5) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3899 (eval $ac_compiler -V </dev/null >&5) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }
3903
3904echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3905echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3906if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
John Criswell7a73b802003-06-30 21:59:07 +00003909 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003910/* confdefs.h. */
3911_ACEOF
3912cat confdefs.h >>conftest.$ac_ext
3913cat >>conftest.$ac_ext <<_ACEOF
3914/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003915
3916int
3917main ()
3918{
3919#ifndef __GNUC__
3920 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003921#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003922
3923 ;
3924 return 0;
3925}
John Criswell7a73b802003-06-30 21:59:07 +00003926_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003927rm -f conftest.$ac_objext
3928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003930 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003931 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_cxx_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_compiler_gnu=yes
3950else
3951 echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954ac_compiler_gnu=no
3955fi
3956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3957ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3958
3959fi
3960echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3961echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3962GXX=`test $ac_compiler_gnu = yes && echo yes`
3963ac_test_CXXFLAGS=${CXXFLAGS+set}
3964ac_save_CXXFLAGS=$CXXFLAGS
3965CXXFLAGS="-g"
3966echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3967echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3968if test "${ac_cv_prog_cxx_g+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
3977
3978int
3979main ()
3980{
3981
3982 ;
3983 return 0;
3984}
3985_ACEOF
3986rm -f conftest.$ac_objext
3987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_cxx_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_prog_cxx_g=yes
4009else
4010 echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013ac_cv_prog_cxx_g=no
4014fi
4015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4016fi
4017echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4018echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4019if test "$ac_test_CXXFLAGS" = set; then
4020 CXXFLAGS=$ac_save_CXXFLAGS
4021elif test $ac_cv_prog_cxx_g = yes; then
4022 if test "$GXX" = yes; then
4023 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004024 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004025 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004026 fi
4027else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004028 if test "$GXX" = yes; then
4029 CXXFLAGS="-O2"
4030 else
4031 CXXFLAGS=
4032 fi
John Criswell7a73b802003-06-30 21:59:07 +00004033fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004034for ac_declaration in \
4035 '' \
4036 'extern "C" void std::exit (int) throw (); using std::exit;' \
4037 'extern "C" void std::exit (int); using std::exit;' \
4038 'extern "C" void exit (int) throw ();' \
4039 'extern "C" void exit (int);' \
4040 'void exit (int);'
4041do
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048$ac_declaration
4049#include <stdlib.h>
4050int
4051main ()
4052{
4053exit (42);
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_cxx_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004080 :
4081else
4082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004083sed 's/^/| /' conftest.$ac_ext >&5
4084
John Criswell7a73b802003-06-30 21:59:07 +00004085continue
4086fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004088 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004094$ac_declaration
4095int
4096main ()
4097{
4098exit (42);
4099 ;
4100 return 0;
4101}
John Criswell7a73b802003-06-30 21:59:07 +00004102_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004103rm -f conftest.$ac_objext
4104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004106 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004107 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_cxx_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004125 break
John Criswell7a73b802003-06-30 21:59:07 +00004126else
4127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004128sed 's/^/| /' conftest.$ac_ext >&5
4129
John Criswell7a73b802003-06-30 21:59:07 +00004130fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004132done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004133rm -f conftest*
4134if test -n "$ac_declaration"; then
4135 echo '#ifdef __cplusplus' >>confdefs.h
4136 echo $ac_declaration >>confdefs.h
4137 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004138fi
4139
4140ac_ext=c
4141ac_cpp='$CPP $CPPFLAGS'
4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
John Criswell7a73b802003-06-30 21:59:07 +00004146echo "$as_me:$LINENO: checking " >&5
4147echo $ECHO_N "checking ... $ECHO_C" >&6
4148if test "${ac_cv_has_flex+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150else
4151 for ac_prog in flex lex
4152do
4153 # Extract the first word of "$ac_prog", so it can be a program name with args.
4154set dummy $ac_prog; ac_word=$2
4155echo "$as_me:$LINENO: checking for $ac_word" >&5
4156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157if test "${ac_cv_prog_LEX+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else
4160 if test -n "$LEX"; then
4161 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4162else
4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_LEX="$ac_prog"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174done
4175done
4176
4177fi
4178fi
4179LEX=$ac_cv_prog_LEX
4180if test -n "$LEX"; then
4181 echo "$as_me:$LINENO: result: $LEX" >&5
4182echo "${ECHO_T}$LEX" >&6
4183else
4184 echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6
4186fi
4187
4188 test -n "$LEX" && break
4189done
4190test -n "$LEX" || LEX=":"
4191
4192if test -z "$LEXLIB"
4193then
4194 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4195echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4196if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199 ac_check_lib_save_LIBS=$LIBS
4200LIBS="-lfl $LIBS"
4201cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004207
4208/* Override any gcc2 internal prototype to avoid an error. */
4209#ifdef __cplusplus
4210extern "C"
4211#endif
4212/* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4214char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004215int
4216main ()
4217{
4218yywrap ();
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext conftest$ac_exeext
4224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004225 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004226 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004232 { ac_try='test -z "$ac_c_werror_flag"
4233 || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_lib_fl_yywrap=yes
4246else
4247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004248sed 's/^/| /' conftest.$ac_ext >&5
4249
John Criswell7a73b802003-06-30 21:59:07 +00004250ac_cv_lib_fl_yywrap=no
4251fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004252rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004254LIBS=$ac_check_lib_save_LIBS
4255fi
4256echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4257echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4258if test $ac_cv_lib_fl_yywrap = yes; then
4259 LEXLIB="-lfl"
4260else
4261 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4262echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4263if test "${ac_cv_lib_l_yywrap+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266 ac_check_lib_save_LIBS=$LIBS
4267LIBS="-ll $LIBS"
4268cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004269/* confdefs.h. */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004274
4275/* Override any gcc2 internal prototype to avoid an error. */
4276#ifdef __cplusplus
4277extern "C"
4278#endif
4279/* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4281char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004282int
4283main ()
4284{
4285yywrap ();
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest.$ac_objext conftest$ac_exeext
4291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004292 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_lib_l_yywrap=yes
4313else
4314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004315sed 's/^/| /' conftest.$ac_ext >&5
4316
John Criswell7a73b802003-06-30 21:59:07 +00004317ac_cv_lib_l_yywrap=no
4318fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004319rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004321LIBS=$ac_check_lib_save_LIBS
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4324echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4325if test $ac_cv_lib_l_yywrap = yes; then
4326 LEXLIB="-ll"
4327fi
4328
4329fi
4330
4331fi
4332
4333if test "x$LEX" != "x:"; then
4334 echo "$as_me:$LINENO: checking lex output file root" >&5
4335echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4336if test "${ac_cv_prog_lex_root+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 # The minimal lex program is just a single line: %%. But some broken lexes
4340# (Solaris, I think it was) want two %% lines, so accommodate them.
4341cat >conftest.l <<_ACEOF
4342%%
4343%%
4344_ACEOF
4345{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4346 (eval $LEX conftest.l) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }
4350if test -f lex.yy.c; then
4351 ac_cv_prog_lex_root=lex.yy
4352elif test -f lexyy.c; then
4353 ac_cv_prog_lex_root=lexyy
4354else
4355 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4356echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4357 { (exit 1); exit 1; }; }
4358fi
4359fi
4360echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4361echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4362rm -f conftest.l
4363LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4364
4365echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4366echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4367if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 # POSIX says lex can declare yytext either as a pointer or an array; the
4371# default is implementation-dependent. Figure out which it is, since
4372# not all implementations provide the %pointer and %array declarations.
4373ac_cv_prog_lex_yytext_pointer=no
4374echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4375ac_save_LIBS=$LIBS
4376LIBS="$LIBS $LEXLIB"
4377cat >conftest.$ac_ext <<_ACEOF
4378`cat $LEX_OUTPUT_ROOT.c`
4379_ACEOF
4380rm -f conftest.$ac_objext conftest$ac_exeext
4381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004382 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004383 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004389 { ac_try='test -z "$ac_c_werror_flag"
4390 || test ! -s conftest.err'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_prog_lex_yytext_pointer=yes
4403else
4404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004405sed 's/^/| /' conftest.$ac_ext >&5
4406
John Criswell7a73b802003-06-30 21:59:07 +00004407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004408rm -f conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004410LIBS=$ac_save_LIBS
4411rm -f "${LEX_OUTPUT_ROOT}.c"
4412
4413fi
4414echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4415echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4416if test $ac_cv_prog_lex_yytext_pointer = yes; then
4417
4418cat >>confdefs.h <<\_ACEOF
4419#define YYTEXT_POINTER 1
4420_ACEOF
4421
4422fi
4423
4424fi
4425
4426fi
4427echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4428echo "${ECHO_T}$ac_cv_has_flex" >&6
4429if test "$LEX" != "flex"; then
4430 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4431echo "$as_me: error: flex not found but required" >&2;}
4432 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004433else
4434 FLEX=flex
4435
John Criswell7a73b802003-06-30 21:59:07 +00004436fi
4437
4438echo "$as_me:$LINENO: checking " >&5
4439echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004440if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 for ac_prog in 'bison -y' byacc
4444do
4445 # Extract the first word of "$ac_prog", so it can be a program name with args.
4446set dummy $ac_prog; ac_word=$2
4447echo "$as_me:$LINENO: checking for $ac_word" >&5
4448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449if test "${ac_cv_prog_YACC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452 if test -n "$YACC"; then
4453 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4454else
4455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_prog_YACC="$ac_prog"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466done
4467done
4468
4469fi
4470fi
4471YACC=$ac_cv_prog_YACC
4472if test -n "$YACC"; then
4473 echo "$as_me:$LINENO: result: $YACC" >&5
4474echo "${ECHO_T}$YACC" >&6
4475else
4476 echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6
4478fi
4479
4480 test -n "$YACC" && break
4481done
4482test -n "$YACC" || YACC="yacc"
4483
John Criswell7a73b802003-06-30 21:59:07 +00004484fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004485echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4486echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004487if test "$YACC" != "bison -y"; then
4488 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4489echo "$as_me: error: bison not found but required" >&2;}
4490 { (exit 1); exit 1; }; }
4491else
Brian Gaeke12810632004-01-13 06:52:10 +00004492 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004493
4494fi
4495
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004496echo "$as_me:$LINENO: checking for GNU make" >&5
4497echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4498if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004501 llvm_cv_gnu_make_command=''
4502 for a in "$MAKE" make gmake gnumake ; do
4503 if test -z "$a" ; then continue ; fi ;
4504 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4505 then
4506 llvm_cv_gnu_make_command=$a ;
4507 break;
John Criswell47fdd832003-07-14 16:52:07 +00004508 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004509 done
John Criswell7a73b802003-06-30 21:59:07 +00004510fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004511echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4512echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4513 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4514 ifGNUmake='' ;
4515 else
4516 ifGNUmake='#' ;
4517 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4518echo "${ECHO_T}\"Not found\"" >&6;
4519 fi
John Criswell7a73b802003-06-30 21:59:07 +00004520
John Criswell7a73b802003-06-30 21:59:07 +00004521
4522echo "$as_me:$LINENO: checking whether ln -s works" >&5
4523echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4524LN_S=$as_ln_s
4525if test "$LN_S" = "ln -s"; then
4526 echo "$as_me:$LINENO: result: yes" >&5
4527echo "${ECHO_T}yes" >&6
4528else
4529 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4530echo "${ECHO_T}no, using $LN_S" >&6
4531fi
4532
Reid Spencer8a2d4712004-12-16 17:48:14 +00004533# Extract the first word of "cmp", so it can be a program name with args.
4534set dummy cmp; ac_word=$2
4535echo "$as_me:$LINENO: checking for $ac_word" >&5
4536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537if test "${ac_cv_path_CMP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 case $CMP in
4541 [\\/]* | ?:[\\/]*)
4542 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4543 ;;
4544 *)
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556done
4557done
4558
4559 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4560 ;;
4561esac
4562fi
4563CMP=$ac_cv_path_CMP
4564
4565if test -n "$CMP"; then
4566 echo "$as_me:$LINENO: result: $CMP" >&5
4567echo "${ECHO_T}$CMP" >&6
4568else
4569 echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573# Extract the first word of "cp", so it can be a program name with args.
4574set dummy cp; ac_word=$2
4575echo "$as_me:$LINENO: checking for $ac_word" >&5
4576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4577if test "${ac_cv_path_CP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 case $CP in
4581 [\\/]* | ?:[\\/]*)
4582 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4583 ;;
4584 *)
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596done
4597done
4598
4599 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4600 ;;
4601esac
4602fi
4603CP=$ac_cv_path_CP
4604
4605if test -n "$CP"; then
4606 echo "$as_me:$LINENO: result: $CP" >&5
4607echo "${ECHO_T}$CP" >&6
4608else
4609 echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6
4611fi
4612
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004613# Extract the first word of "date", so it can be a program name with args.
4614set dummy date; ac_word=$2
4615echo "$as_me:$LINENO: checking for $ac_word" >&5
4616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004620 case $DATE in
4621 [\\/]* | ?:[\\/]*)
4622 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004623 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004624 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004635 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004636done
4637done
John Criswell7a73b802003-06-30 21:59:07 +00004638
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004639 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004640 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004641esac
John Criswell7a73b802003-06-30 21:59:07 +00004642fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004643DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004644
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004645if test -n "$DATE"; then
4646 echo "$as_me:$LINENO: result: $DATE" >&5
4647echo "${ECHO_T}$DATE" >&6
4648else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651fi
John Criswell7a73b802003-06-30 21:59:07 +00004652
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004653# Extract the first word of "find", so it can be a program name with args.
4654set dummy find; ac_word=$2
4655echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004660 case $FIND in
4661 [\\/]* | ?:[\\/]*)
4662 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4663 ;;
4664 *)
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677done
4678
4679 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4680 ;;
4681esac
4682fi
4683FIND=$ac_cv_path_FIND
4684
4685if test -n "$FIND"; then
4686 echo "$as_me:$LINENO: result: $FIND" >&5
4687echo "${ECHO_T}$FIND" >&6
4688else
4689 echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6
4691fi
4692
4693# Extract the first word of "grep", so it can be a program name with args.
4694set dummy grep; ac_word=$2
4695echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4697if test "${ac_cv_path_GREP+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700 case $GREP in
4701 [\\/]* | ?:[\\/]*)
4702 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4703 ;;
4704 *)
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716done
4717done
4718
4719 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4720 ;;
4721esac
4722fi
4723GREP=$ac_cv_path_GREP
4724
4725if test -n "$GREP"; then
4726 echo "$as_me:$LINENO: result: $GREP" >&5
4727echo "${ECHO_T}$GREP" >&6
4728else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731fi
4732
4733# Extract the first word of "mkdir", so it can be a program name with args.
4734set dummy mkdir; ac_word=$2
4735echo "$as_me:$LINENO: checking for $ac_word" >&5
4736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737if test "${ac_cv_path_MKDIR+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740 case $MKDIR in
4741 [\\/]* | ?:[\\/]*)
4742 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4743 ;;
4744 *)
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756done
4757done
4758
4759 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4760 ;;
4761esac
4762fi
4763MKDIR=$ac_cv_path_MKDIR
4764
4765if test -n "$MKDIR"; then
4766 echo "$as_me:$LINENO: result: $MKDIR" >&5
4767echo "${ECHO_T}$MKDIR" >&6
4768else
4769 echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771fi
4772
4773# Extract the first word of "mv", so it can be a program name with args.
4774set dummy mv; ac_word=$2
4775echo "$as_me:$LINENO: checking for $ac_word" >&5
4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777if test "${ac_cv_path_MV+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 case $MV in
4781 [\\/]* | ?:[\\/]*)
4782 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4783 ;;
4784 *)
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796done
4797done
4798
4799 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4800 ;;
4801esac
4802fi
4803MV=$ac_cv_path_MV
4804
4805if test -n "$MV"; then
4806 echo "$as_me:$LINENO: result: $MV" >&5
4807echo "${ECHO_T}$MV" >&6
4808else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811fi
4812
4813# Extract the first word of "pax", so it can be a program name with args.
4814set dummy pax; ac_word=$2
4815echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817if test "${ac_cv_path_PAX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820 case $PAX in
4821 [\\/]* | ?:[\\/]*)
4822 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4823 ;;
4824 *)
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837done
4838
4839 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4840 ;;
4841esac
4842fi
4843PAX=$ac_cv_path_PAX
4844
4845if test -n "$PAX"; then
4846 echo "$as_me:$LINENO: result: $PAX" >&5
4847echo "${ECHO_T}$PAX" >&6
4848else
4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
4851fi
4852
4853if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4856echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858if test "${ac_cv_prog_RANLIB+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 if test -n "$RANLIB"; then
4862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876done
4877
4878fi
4879fi
4880RANLIB=$ac_cv_prog_RANLIB
4881if test -n "$RANLIB"; then
4882 echo "$as_me:$LINENO: result: $RANLIB" >&5
4883echo "${ECHO_T}$RANLIB" >&6
4884else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887fi
4888
4889fi
4890if test -z "$ac_cv_prog_RANLIB"; then
4891 ac_ct_RANLIB=$RANLIB
4892 # Extract the first word of "ranlib", so it can be a program name with args.
4893set dummy ranlib; ac_word=$2
4894echo "$as_me:$LINENO: checking for $ac_word" >&5
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899 if test -n "$ac_ct_RANLIB"; then
4900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_RANLIB="ranlib"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913done
4914done
4915
4916 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4917fi
4918fi
4919ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4920if test -n "$ac_ct_RANLIB"; then
4921 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4922echo "${ECHO_T}$ac_ct_RANLIB" >&6
4923else
4924 echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6
4926fi
4927
4928 RANLIB=$ac_ct_RANLIB
4929else
4930 RANLIB="$ac_cv_prog_RANLIB"
4931fi
4932
4933# Extract the first word of "rm", so it can be a program name with args.
4934set dummy rm; ac_word=$2
4935echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937if test "${ac_cv_path_RM+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 case $RM in
4941 [\\/]* | ?:[\\/]*)
4942 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4943 ;;
4944 *)
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956done
4957done
4958
4959 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4960 ;;
4961esac
4962fi
4963RM=$ac_cv_path_RM
4964
4965if test -n "$RM"; then
4966 echo "$as_me:$LINENO: result: $RM" >&5
4967echo "${ECHO_T}$RM" >&6
4968else
4969 echo "$as_me:$LINENO: result: no" >&5
4970echo "${ECHO_T}no" >&6
4971fi
4972
4973# Extract the first word of "sed", so it can be a program name with args.
4974set dummy sed; ac_word=$2
4975echo "$as_me:$LINENO: checking for $ac_word" >&5
4976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4977if test "${ac_cv_path_SED+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980 case $SED in
4981 [\\/]* | ?:[\\/]*)
4982 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4983 ;;
4984 *)
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997done
4998
4999 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5000 ;;
5001esac
5002fi
5003SED=$ac_cv_path_SED
5004
5005if test -n "$SED"; then
5006 echo "$as_me:$LINENO: result: $SED" >&5
5007echo "${ECHO_T}$SED" >&6
5008else
5009 echo "$as_me:$LINENO: result: no" >&5
5010echo "${ECHO_T}no" >&6
5011fi
5012
5013# Extract the first word of "tar", so it can be a program name with args.
5014set dummy tar; ac_word=$2
5015echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017if test "${ac_cv_path_TAR+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 case $TAR in
5021 [\\/]* | ?:[\\/]*)
5022 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5023 ;;
5024 *)
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH
5027do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036done
5037done
5038
5039 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5040 ;;
5041esac
5042fi
5043TAR=$ac_cv_path_TAR
5044
5045if test -n "$TAR"; then
5046 echo "$as_me:$LINENO: result: $TAR" >&5
5047echo "${ECHO_T}$TAR" >&6
5048else
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
5051fi
5052
5053
5054# Find a good install program. We prefer a C program (faster),
5055# so one script is as good as another. But avoid the broken or
5056# incompatible versions:
5057# SysV /etc/install, /usr/sbin/install
5058# SunOS /usr/etc/install
5059# IRIX /sbin/install
5060# AIX /bin/install
5061# AmigaOS /C/install, which installs bootblocks on floppy discs
5062# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5063# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5064# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5065# OS/2's system install, which has a completely different semantic
5066# ./install, which can be erroneously created by make from ./install.sh.
5067echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5068echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5069if test -z "$INSTALL"; then
5070if test "${ac_cv_path_install+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 # Account for people who put trailing slashes in PATH elements.
5079case $as_dir/ in
5080 ./ | .// | /cC/* | \
5081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5082 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5083 /usr/ucb/* ) ;;
5084 *)
5085 # OSF1 and SCO ODT 3.0 have their own names for install.
5086 # Don't use installbsd from OSF since it installs stuff as root
5087 # by default.
5088 for ac_prog in ginstall scoinst install; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5091 if test $ac_prog = install &&
5092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5093 # AIX install. It has an incompatible calling convention.
5094 :
5095 elif test $ac_prog = install &&
5096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097 # program-specific install script used by HP pwplus--don't use.
5098 :
5099 else
5100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5101 break 3
5102 fi
5103 fi
5104 done
5105 done
5106 ;;
5107esac
5108done
5109
5110
5111fi
5112 if test "${ac_cv_path_install+set}" = set; then
5113 INSTALL=$ac_cv_path_install
5114 else
5115 # As a last resort, use the slow shell script. We don't cache a
5116 # path for INSTALL within a source directory, because that will
5117 # break other packages using the cache if that directory is
5118 # removed, or if the path is relative.
5119 INSTALL=$ac_install_sh
5120 fi
5121fi
5122echo "$as_me:$LINENO: result: $INSTALL" >&5
5123echo "${ECHO_T}$INSTALL" >&6
5124
5125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5126# It thinks the first close brace ends the variable substitution.
5127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5128
5129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5130
5131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5132
5133
5134# Extract the first word of "bzip2", so it can be a program name with args.
5135set dummy bzip2; ac_word=$2
5136echo "$as_me:$LINENO: checking for $ac_word" >&5
5137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138if test "${ac_cv_path_BZIP2+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141 case $BZIP2 in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5144 ;;
5145 *)
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157done
5158done
5159
5160 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5161 ;;
5162esac
5163fi
5164BZIP2=$ac_cv_path_BZIP2
5165
5166if test -n "$BZIP2"; then
5167 echo "$as_me:$LINENO: result: $BZIP2" >&5
5168echo "${ECHO_T}$BZIP2" >&6
5169else
5170 echo "$as_me:$LINENO: result: no" >&5
5171echo "${ECHO_T}no" >&6
5172fi
5173
5174# Extract the first word of "dot", so it can be a program name with args.
5175set dummy dot; ac_word=$2
5176echo "$as_me:$LINENO: checking for $ac_word" >&5
5177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5178if test "${ac_cv_path_DOT+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 case $DOT in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5184 ;;
5185 *)
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197done
5198done
5199
5200 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5201 ;;
5202esac
5203fi
5204DOT=$ac_cv_path_DOT
5205
5206if test -n "$DOT"; then
5207 echo "$as_me:$LINENO: result: $DOT" >&5
5208echo "${ECHO_T}$DOT" >&6
5209else
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214# Extract the first word of "doxygen", so it can be a program name with args.
5215set dummy doxygen; ac_word=$2
5216echo "$as_me:$LINENO: checking for $ac_word" >&5
5217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218if test "${ac_cv_path_DOXYGEN+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220else
5221 case $DOXYGEN in
5222 [\\/]* | ?:[\\/]*)
5223 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5224 ;;
5225 *)
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237done
5238done
5239
5240 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5241 ;;
5242esac
5243fi
5244DOXYGEN=$ac_cv_path_DOXYGEN
5245
5246if test -n "$DOXYGEN"; then
5247 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5248echo "${ECHO_T}$DOXYGEN" >&6
5249else
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
5252fi
5253
5254# Extract the first word of "etags", so it can be a program name with args.
5255set dummy etags; ac_word=$2
5256echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258if test "${ac_cv_path_ETAGS+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 case $ETAGS in
5262 [\\/]* | ?:[\\/]*)
5263 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5264 ;;
5265 *)
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277done
5278done
5279
5280 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5281 ;;
5282esac
5283fi
5284ETAGS=$ac_cv_path_ETAGS
5285
5286if test -n "$ETAGS"; then
5287 echo "$as_me:$LINENO: result: $ETAGS" >&5
5288echo "${ECHO_T}$ETAGS" >&6
5289else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292fi
5293
5294# Extract the first word of "groff", so it can be a program name with args.
5295set dummy groff; ac_word=$2
5296echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298if test "${ac_cv_path_GROFF+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 case $GROFF in
5302 [\\/]* | ?:[\\/]*)
5303 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5304 ;;
5305 *)
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318done
5319
5320 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5321 ;;
5322esac
5323fi
5324GROFF=$ac_cv_path_GROFF
5325
5326if test -n "$GROFF"; then
5327 echo "$as_me:$LINENO: result: $GROFF" >&5
5328echo "${ECHO_T}$GROFF" >&6
5329else
5330 echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
5332fi
5333
5334# Extract the first word of "gzip", so it can be a program name with args.
5335set dummy gzip; ac_word=$2
5336echo "$as_me:$LINENO: checking for $ac_word" >&5
5337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5338if test "${ac_cv_path_GZIP+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341 case $GZIP in
5342 [\\/]* | ?:[\\/]*)
5343 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5344 ;;
5345 *)
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357done
5358done
5359
5360 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5361 ;;
5362esac
5363fi
5364GZIP=$ac_cv_path_GZIP
5365
5366if test -n "$GZIP"; then
5367 echo "$as_me:$LINENO: result: $GZIP" >&5
5368echo "${ECHO_T}$GZIP" >&6
5369else
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372fi
5373
5374# Extract the first word of "pod2html", so it can be a program name with args.
5375set dummy pod2html; ac_word=$2
5376echo "$as_me:$LINENO: checking for $ac_word" >&5
5377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378if test "${ac_cv_path_POD2HTML+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381 case $POD2HTML in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5384 ;;
5385 *)
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399
5400 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5401 ;;
5402esac
5403fi
5404POD2HTML=$ac_cv_path_POD2HTML
5405
5406if test -n "$POD2HTML"; then
5407 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5408echo "${ECHO_T}$POD2HTML" >&6
5409else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412fi
5413
5414# Extract the first word of "pod2man", so it can be a program name with args.
5415set dummy pod2man; ac_word=$2
5416echo "$as_me:$LINENO: checking for $ac_word" >&5
5417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418if test "${ac_cv_path_POD2MAN+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 case $POD2MAN in
5422 [\\/]* | ?:[\\/]*)
5423 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5424 ;;
5425 *)
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437done
5438done
5439
5440 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5441 ;;
5442esac
5443fi
5444POD2MAN=$ac_cv_path_POD2MAN
5445
5446if test -n "$POD2MAN"; then
5447 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5448echo "${ECHO_T}$POD2MAN" >&6
5449else
5450 echo "$as_me:$LINENO: result: no" >&5
5451echo "${ECHO_T}no" >&6
5452fi
5453
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005454# Extract the first word of "runtest", so it can be a program name with args.
5455set dummy runtest; ac_word=$2
5456echo "$as_me:$LINENO: checking for $ac_word" >&5
5457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458if test "${ac_cv_path_RUNTEST+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461 case $RUNTEST in
5462 [\\/]* | ?:[\\/]*)
5463 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5464 ;;
5465 *)
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478done
5479
5480 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5481 ;;
5482esac
5483fi
5484RUNTEST=$ac_cv_path_RUNTEST
5485
5486if test -n "$RUNTEST"; then
5487 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5488echo "${ECHO_T}$RUNTEST" >&6
5489else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492fi
5493
Reid Spencer0fcb9412004-11-30 08:11:54 +00005494
Reid Spencer0fcb9412004-11-30 08:11:54 +00005495no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005496echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5497echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005498
5499# Check whether --with-tclinclude or --without-tclinclude was given.
5500if test "${with_tclinclude+set}" = set; then
5501 withval="$with_tclinclude"
5502 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005503else
5504 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005505fi;
5506if test "${ac_cv_path_tclsh+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509
5510if test x"${with_tclinclude}" != x ; then
5511 if test -f ${with_tclinclude}/tclsh ; then
5512 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5513 elif test -f ${with_tclinclude}/src/tclsh ; then
5514 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5515 else
5516 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5517echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5518 { (exit 1); exit 1; }; }
5519 fi
5520fi
5521
Reid Spencer0fcb9412004-11-30 08:11:54 +00005522if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005523 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005524echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005525 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 +00005526do
5527 # Extract the first word of "$ac_prog", so it can be a program name with args.
5528set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005529echo "$as_me:$LINENO: checking for $ac_word" >&5
5530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005531if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
Reid Spencercda35f82004-12-02 04:17:20 +00005534 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005535 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005536 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005537 ;;
5538 *)
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH
5541do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005546 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550done
5551done
5552
5553 ;;
5554esac
5555fi
Reid Spencercda35f82004-12-02 04:17:20 +00005556TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005557
Reid Spencercda35f82004-12-02 04:17:20 +00005558if test -n "$TCLSH"; then
5559 echo "$as_me:$LINENO: result: $TCLSH" >&5
5560echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005561else
5562 echo "$as_me:$LINENO: result: no" >&5
5563echo "${ECHO_T}no" >&6
5564fi
5565
Reid Spencercda35f82004-12-02 04:17:20 +00005566 test -n "$TCLSH" && break
5567done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005568
Reid Spencercda35f82004-12-02 04:17:20 +00005569 if test x"${TCLSH}" = x ; then
5570 ac_cv_path_tclsh='';
5571 else
5572 ac_cv_path_tclsh="${TCLSH}";
5573 fi
5574else
5575 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5576echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5577 TCLSH="${ac_cv_path_tclsh}"
5578
5579fi
5580
5581fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005582
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005583# Extract the first word of "zip", so it can be a program name with args.
5584set dummy zip; ac_word=$2
5585echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587if test "${ac_cv_path_ZIP+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 case $ZIP in
5591 [\\/]* | ?:[\\/]*)
5592 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5593 ;;
5594 *)
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5605 fi
5606done
5607done
5608
5609 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5610 ;;
5611esac
5612fi
5613ZIP=$ac_cv_path_ZIP
5614
5615if test -n "$ZIP"; then
5616 echo "$as_me:$LINENO: result: $ZIP" >&5
5617echo "${ECHO_T}$ZIP" >&6
5618else
5619 echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6
5621fi
5622
5623
5624echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5625echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5626if test "${llvm_cv_link_use_r+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005630ac_cpp='$CPP $CPPFLAGS'
5631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005635 oldcflags="$CFLAGS"
5636 CFLAGS="$CFLAGS -Wl,-R."
5637 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005638/* confdefs.h. */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005643
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005644int
5645main ()
5646{
5647int main() { return 0; }
5648 ;
5649 return 0;
5650}
John Criswell47fdd832003-07-14 16:52:07 +00005651_ACEOF
5652rm -f conftest.$ac_objext conftest$ac_exeext
5653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005654 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005674 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005675else
John Criswell47fdd832003-07-14 16:52:07 +00005676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005677sed 's/^/| /' conftest.$ac_ext >&5
5678
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005679llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005681rm -f conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005683 CFLAGS="$oldcflags"
5684 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005685ac_cpp='$CPP $CPPFLAGS'
5686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005690
John Criswell7a73b802003-06-30 21:59:07 +00005691fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005692echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5693echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5694if test "$llvm_cv_link_use_r" = yes ; then
5695
5696cat >>confdefs.h <<\_ACEOF
5697#define HAVE_LINK_R 1
5698_ACEOF
5699
John Criswell47fdd832003-07-14 16:52:07 +00005700 fi
John Criswell47fdd832003-07-14 16:52:07 +00005701
John Criswell47fdd832003-07-14 16:52:07 +00005702
John Criswell47fdd832003-07-14 16:52:07 +00005703
John Criswell7a73b802003-06-30 21:59:07 +00005704
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005705echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5706echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5707if test "${ac_cv_c_const+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710 cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h. */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h. */
5716
5717int
5718main ()
5719{
5720/* FIXME: Include the comments suggested by Paul. */
5721#ifndef __cplusplus
5722 /* Ultrix mips cc rejects this. */
5723 typedef int charset[2];
5724 const charset x;
5725 /* SunOS 4.1.1 cc rejects this. */
5726 char const *const *ccp;
5727 char **p;
5728 /* NEC SVR4.0.2 mips cc rejects this. */
5729 struct point {int x, y;};
5730 static struct point const zero = {0,0};
5731 /* AIX XL C 1.02.0.0 rejects this.
5732 It does not let you subtract one const X* pointer from another in
5733 an arm of an if-expression whose if-part is not a constant
5734 expression */
5735 const char *g = "string";
5736 ccp = &g + (g ? g-g : 0);
5737 /* HPUX 7.0 cc rejects these. */
5738 ++ccp;
5739 p = (char**) ccp;
5740 ccp = (char const *const *) p;
5741 { /* SCO 3.2v4 cc rejects this. */
5742 char *t;
5743 char const *s = 0 ? (char *) 0 : (char const *) 0;
5744
5745 *t++ = 0;
5746 }
5747 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5748 int x[] = {25, 17};
5749 const int *foo = &x[0];
5750 ++foo;
5751 }
5752 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5753 typedef const int *iptr;
5754 iptr p = 0;
5755 ++p;
5756 }
5757 { /* AIX XL C 1.02.0.0 rejects this saying
5758 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5759 struct s { int j; const int *ap[3]; };
5760 struct s *b; b->j = 5;
5761 }
5762 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5763 const int foo = 10;
5764 }
5765#endif
5766
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771rm -f conftest.$ac_objext
5772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_c_const=yes
5794else
5795 echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798ac_cv_c_const=no
5799fi
5800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801fi
5802echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5803echo "${ECHO_T}$ac_cv_c_const" >&6
5804if test $ac_cv_c_const = no; then
5805
5806cat >>confdefs.h <<\_ACEOF
5807#define const
5808_ACEOF
5809
5810fi
5811
5812
5813echo "$as_me:$LINENO: checking for egrep" >&5
5814echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5815if test "${ac_cv_prog_egrep+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5819 then ac_cv_prog_egrep='grep -E'
5820 else ac_cv_prog_egrep='egrep'
5821 fi
5822fi
5823echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5824echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5825 EGREP=$ac_cv_prog_egrep
5826
John Criswell7a73b802003-06-30 21:59:07 +00005827
5828echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5830if test "${ac_cv_header_stdc+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005839#include <stdlib.h>
5840#include <stdarg.h>
5841#include <string.h>
5842#include <float.h>
5843
John Criswell0c38eaf2003-09-10 15:17:25 +00005844int
5845main ()
5846{
5847
5848 ;
5849 return 0;
5850}
John Criswell7a73b802003-06-30 21:59:07 +00005851_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005852rm -f conftest.$ac_objext
5853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005854 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005855 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005860 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005874 ac_cv_header_stdc=yes
5875else
5876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005880fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005882
5883if test $ac_cv_header_stdc = yes; then
5884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5885 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005891#include <string.h>
5892
5893_ACEOF
5894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005895 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005896 :
5897else
5898 ac_cv_header_stdc=no
5899fi
5900rm -f conftest*
5901
5902fi
5903
5904if test $ac_cv_header_stdc = yes; then
5905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5906 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005912#include <stdlib.h>
5913
5914_ACEOF
5915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005916 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005917 :
5918else
5919 ac_cv_header_stdc=no
5920fi
5921rm -f conftest*
5922
5923fi
5924
5925if test $ac_cv_header_stdc = yes; then
5926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5927 if test "$cross_compiling" = yes; then
5928 :
5929else
5930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005936#include <ctype.h>
5937#if ((' ' & 0x0FF) == 0x020)
5938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5940#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005941# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005942 (('a' <= (c) && (c) <= 'i') \
5943 || ('j' <= (c) && (c) <= 'r') \
5944 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5946#endif
5947
5948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5949int
5950main ()
5951{
5952 int i;
5953 for (i = 0; i < 256; i++)
5954 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005955 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005956 exit(2);
5957 exit (0);
5958}
5959_ACEOF
5960rm -f conftest$ac_exeext
5961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 (eval $ac_try) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 :
5972else
5973 echo "$as_me: program exited with status $ac_status" >&5
5974echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005975sed 's/^/| /' conftest.$ac_ext >&5
5976
John Criswell7a73b802003-06-30 21:59:07 +00005977( exit $ac_status )
5978ac_cv_header_stdc=no
5979fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005981fi
5982fi
5983fi
5984echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5985echo "${ECHO_T}$ac_cv_header_stdc" >&6
5986if test $ac_cv_header_stdc = yes; then
5987
5988cat >>confdefs.h <<\_ACEOF
5989#define STDC_HEADERS 1
5990_ACEOF
5991
5992fi
5993
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005994
5995
5996
5997
5998
5999ac_header_dirent=no
6000for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6001 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6002echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6003echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6004if eval "test \"\${$as_ac_Header+set}\" = set"; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h. */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h. */
6013#include <sys/types.h>
6014#include <$ac_hdr>
6015
6016int
6017main ()
6018{
6019if ((DIR *) 0)
6020return 0;
6021 ;
6022 return 0;
6023}
6024_ACEOF
6025rm -f conftest.$ac_objext
6026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -z "$ac_c_werror_flag"
6035 || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 eval "$as_ac_Header=yes"
6048else
6049 echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052eval "$as_ac_Header=no"
6053fi
6054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
6056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6058if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6061_ACEOF
6062
6063ac_header_dirent=$ac_hdr; break
6064fi
6065
6066done
6067# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6068if test $ac_header_dirent = dirent.h; then
6069 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6070echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6071if test "${ac_cv_search_opendir+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074 ac_func_search_save_LIBS=$LIBS
6075ac_cv_search_opendir=no
6076cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082
6083/* Override any gcc2 internal prototype to avoid an error. */
6084#ifdef __cplusplus
6085extern "C"
6086#endif
6087/* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6089char opendir ();
6090int
6091main ()
6092{
6093opendir ();
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext conftest$ac_exeext
6099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_search_opendir="none required"
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125fi
6126rm -f conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128if test "$ac_cv_search_opendir" = no; then
6129 for ac_lib in dir; do
6130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6131 cat >conftest.$ac_ext <<_ACEOF
6132/* confdefs.h. */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h. */
6137
6138/* Override any gcc2 internal prototype to avoid an error. */
6139#ifdef __cplusplus
6140extern "C"
6141#endif
6142/* We use char because int might match the return type of a gcc2
6143 builtin and then its argument prototype would still apply. */
6144char opendir ();
6145int
6146main ()
6147{
6148opendir ();
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext conftest$ac_exeext
6154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest$ac_exeext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_search_opendir="-l$ac_lib"
6176break
6177else
6178 echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181fi
6182rm -f conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 done
6185fi
6186LIBS=$ac_func_search_save_LIBS
6187fi
6188echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6189echo "${ECHO_T}$ac_cv_search_opendir" >&6
6190if test "$ac_cv_search_opendir" != no; then
6191 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6192
6193fi
6194
6195else
6196 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6197echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6198if test "${ac_cv_search_opendir+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 ac_func_search_save_LIBS=$LIBS
6202ac_cv_search_opendir=no
6203cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
6209
6210/* Override any gcc2 internal prototype to avoid an error. */
6211#ifdef __cplusplus
6212extern "C"
6213#endif
6214/* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6216char opendir ();
6217int
6218main ()
6219{
6220opendir ();
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext conftest$ac_exeext
6226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227 (eval $ac_link) 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag"
6235 || test ! -s conftest.err'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; } &&
6241 { ac_try='test -s conftest$ac_exeext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_search_opendir="none required"
6248else
6249 echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252fi
6253rm -f conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255if test "$ac_cv_search_opendir" = no; then
6256 for ac_lib in x; do
6257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h. */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h. */
6264
6265/* Override any gcc2 internal prototype to avoid an error. */
6266#ifdef __cplusplus
6267extern "C"
6268#endif
6269/* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271char opendir ();
6272int
6273main ()
6274{
6275opendir ();
6276 ;
6277 return 0;
6278}
6279_ACEOF
6280rm -f conftest.$ac_objext conftest$ac_exeext
6281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_search_opendir="-l$ac_lib"
6303break
6304else
6305 echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308fi
6309rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 done
6312fi
6313LIBS=$ac_func_search_save_LIBS
6314fi
6315echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6316echo "${ECHO_T}$ac_cv_search_opendir" >&6
6317if test "$ac_cv_search_opendir" != no; then
6318 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6319
6320fi
6321
6322fi
6323
John Criswell7a73b802003-06-30 21:59:07 +00006324# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006335 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006336do
6337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6338echo "$as_me:$LINENO: checking for $ac_header" >&5
6339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006349$ac_includes_default
6350
6351#include <$ac_header>
6352_ACEOF
6353rm -f conftest.$ac_objext
6354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006355 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 eval "$as_ac_Header=yes"
6376else
6377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006378sed 's/^/| /' conftest.$ac_ext >&5
6379
John Criswell7a73b802003-06-30 21:59:07 +00006380eval "$as_ac_Header=no"
6381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006383fi
6384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h <<_ACEOF
6388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389_ACEOF
6390
6391fi
6392
6393done
6394
6395
6396
6397for ac_header in dlfcn.h
6398do
6399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006400if eval "test \"\${$as_ac_Header+set}\" = set"; then
6401 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006405fi
6406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006408else
Brian Gaeke0a621332004-09-08 20:38:05 +00006409 # Is the header compilable?
6410echo "$as_me:$LINENO: checking $ac_header usability" >&5
6411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6412cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006413/* confdefs.h. */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006418$ac_includes_default
6419#include <$ac_header>
6420_ACEOF
6421rm -f conftest.$ac_objext
6422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006423 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006430 { ac_try='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006443 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006444else
6445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006446sed 's/^/| /' conftest.$ac_ext >&5
6447
Brian Gaeke0a621332004-09-08 20:38:05 +00006448ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6452echo "${ECHO_T}$ac_header_compiler" >&6
6453
6454# Is the header present?
6455echo "$as_me:$LINENO: checking $ac_header presence" >&5
6456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6457cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h. */
6463#include <$ac_header>
6464_ACEOF
6465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } >/dev/null; then
6473 if test -s conftest.err; then
6474 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006476 else
6477 ac_cpp_err=
6478 fi
6479else
6480 ac_cpp_err=yes
6481fi
6482if test -z "$ac_cpp_err"; then
6483 ac_header_preproc=yes
6484else
6485 echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ac_header_preproc=no
6489fi
6490rm -f conftest.err conftest.$ac_ext
6491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6492echo "${ECHO_T}$ac_header_preproc" >&6
6493
6494# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6496 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6501 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006502 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006503 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006516 (
6517 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006518## ----------------------------------- ##
6519## Report this to llvmbugs@cs.uiuc.edu ##
6520## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006521_ASBOX
6522 ) |
6523 sed "s/^/$as_me: WARNING: /" >&2
6524 ;;
6525esac
6526echo "$as_me:$LINENO: checking for $ac_header" >&5
6527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6528if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006531 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006532fi
6533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006535
6536fi
John Criswell7a73b802003-06-30 21:59:07 +00006537if test `eval echo '${'$as_ac_Header'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6540_ACEOF
6541
6542fi
6543
6544done
6545
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006546# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6547if test "${enable_ltdl_install+set}" = set; then
6548 enableval="$enable_ltdl_install"
6549
6550fi;
6551
6552
6553
6554if test x"${enable_ltdl_install-no}" != xno; then
6555 INSTALL_LTDL_TRUE=
6556 INSTALL_LTDL_FALSE='#'
6557else
6558 INSTALL_LTDL_TRUE='#'
6559 INSTALL_LTDL_FALSE=
6560fi
6561
6562
6563
6564if test x"${enable_ltdl_convenience-no}" != xno; then
6565 CONVENIENCE_LTDL_TRUE=
6566 CONVENIENCE_LTDL_FALSE='#'
6567else
6568 CONVENIENCE_LTDL_TRUE='#'
6569 CONVENIENCE_LTDL_FALSE=
6570fi
6571
6572
6573echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6574echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6575library_names_spec=
6576libname_spec='lib$name'
6577soname_spec=
6578shrext_cmds=".so"
6579postinstall_cmds=
6580postuninstall_cmds=
6581finish_cmds=
6582finish_eval=
6583shlibpath_var=
6584shlibpath_overrides_runpath=unknown
6585version_type=none
6586dynamic_linker="$host_os ld.so"
6587sys_lib_dlsearch_path_spec="/lib /usr/lib"
6588if test "$GCC" = yes; then
6589 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6590 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6591 # if the path contains ";" then we assume it to be the separator
6592 # otherwise default to the standard path separator (i.e. ":") - it is
6593 # assumed that no part of a normal pathname contains ";" but that should
6594 # okay in the real world where ";" in dirpaths is itself problematic.
6595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6596 else
6597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6598 fi
6599else
6600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6601fi
6602need_lib_prefix=unknown
6603hardcode_into_libs=no
6604
6605# when you set need_version to no, make sure it does not cause -set_version
6606# flags to be left without arguments
6607need_version=unknown
6608
6609case $host_os in
6610aix3*)
6611 version_type=linux
6612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6613 shlibpath_var=LIBPATH
6614
6615 # AIX 3 has no versioning support, so we append a major version to the name.
6616 soname_spec='${libname}${release}${shared_ext}$major'
6617 ;;
6618
6619aix4* | aix5*)
6620 version_type=linux
6621 need_lib_prefix=no
6622 need_version=no
6623 hardcode_into_libs=yes
6624 if test "$host_cpu" = ia64; then
6625 # AIX 5 supports IA64
6626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6627 shlibpath_var=LD_LIBRARY_PATH
6628 else
6629 # With GCC up to 2.95.x, collect2 would create an import file
6630 # for dependence libraries. The import file would start with
6631 # the line `#! .'. This would cause the generated library to
6632 # depend on `.', always an invalid library. This was fixed in
6633 # development snapshots of GCC prior to 3.0.
6634 case $host_os in
6635 aix4 | aix4.[01] | aix4.[01].*)
6636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6637 echo ' yes '
6638 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6639 :
6640 else
6641 can_build_shared=no
6642 fi
6643 ;;
6644 esac
6645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6646 # soname into executable. Probably we can add versioning support to
6647 # collect2, so additional links can be useful in future.
6648 if test "$aix_use_runtimelinking" = yes; then
6649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6650 # instead of lib<name>.a to let people know that these are not
6651 # typical AIX shared libraries.
6652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6653 else
6654 # We preserve .a as extension for shared libraries through AIX4.2
6655 # and later when we are not doing run time linking.
6656 library_names_spec='${libname}${release}.a $libname.a'
6657 soname_spec='${libname}${release}${shared_ext}$major'
6658 fi
6659 shlibpath_var=LIBPATH
6660 fi
6661 ;;
6662
6663amigaos*)
6664 library_names_spec='$libname.ixlibrary $libname.a'
6665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6666 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'
6667 ;;
6668
6669beos*)
6670 library_names_spec='${libname}${shared_ext}'
6671 dynamic_linker="$host_os ld.so"
6672 shlibpath_var=LIBRARY_PATH
6673 ;;
6674
6675bsdi[45]*)
6676 version_type=linux
6677 need_version=no
6678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6679 soname_spec='${libname}${release}${shared_ext}$major'
6680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6681 shlibpath_var=LD_LIBRARY_PATH
6682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6684 # the default ld.so.conf also contains /usr/contrib/lib and
6685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6686 # libtool to hard-code these into programs
6687 ;;
6688
6689cygwin* | mingw* | pw32*)
6690 version_type=windows
6691 shrext_cmds=".dll"
6692 need_version=no
6693 need_lib_prefix=no
6694
6695 case $GCC,$host_os in
6696 yes,cygwin* | yes,mingw* | yes,pw32*)
6697 library_names_spec='$libname.dll.a'
6698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6699 postinstall_cmds='base_file=`basename \${file}`~
6700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6701 dldir=$destdir/`dirname \$dlpath`~
6702 test -d \$dldir || mkdir -p \$dldir~
6703 $install_prog $dir/$dlname \$dldir/$dlname'
6704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6705 dlpath=$dir/\$dldll~
6706 $rm \$dlpath'
6707 shlibpath_overrides_runpath=yes
6708
6709 case $host_os in
6710 cygwin*)
6711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6714 ;;
6715 mingw*)
6716 # MinGW DLLs use traditional 'lib' prefix
6717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6720 # It is most probably a Windows format PATH printed by
6721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6722 # path with ; separators, and with drive letters. We can handle the
6723 # drive letters (cygwin fileutils understands them), so leave them,
6724 # especially as we might pass files found there to a mingw objdump,
6725 # which wouldn't understand a cygwinified path. Ahh.
6726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6727 else
6728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6729 fi
6730 ;;
6731 pw32*)
6732 # pw32 DLLs use 'pw' prefix rather than 'lib'
6733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6734 ;;
6735 esac
6736 ;;
6737
6738 *)
6739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6740 ;;
6741 esac
6742 dynamic_linker='Win32 ld.exe'
6743 # FIXME: first we should search . and the directory the executable is in
6744 shlibpath_var=PATH
6745 ;;
6746
6747darwin* | rhapsody*)
6748 dynamic_linker="$host_os dyld"
6749 version_type=darwin
6750 need_lib_prefix=no
6751 need_version=no
6752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6753 soname_spec='${libname}${release}${major}$shared_ext'
6754 shlibpath_overrides_runpath=yes
6755 shlibpath_var=DYLD_LIBRARY_PATH
6756 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6757 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6758 if test "$GCC" = yes; then
6759 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"`
6760 else
6761 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6762 fi
6763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6764 ;;
6765
6766dgux*)
6767 version_type=linux
6768 need_lib_prefix=no
6769 need_version=no
6770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6771 soname_spec='${libname}${release}${shared_ext}$major'
6772 shlibpath_var=LD_LIBRARY_PATH
6773 ;;
6774
6775freebsd1*)
6776 dynamic_linker=no
6777 ;;
6778
6779kfreebsd*-gnu)
6780 version_type=linux
6781 need_lib_prefix=no
6782 need_version=no
6783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6784 soname_spec='${libname}${release}${shared_ext}$major'
6785 shlibpath_var=LD_LIBRARY_PATH
6786 shlibpath_overrides_runpath=no
6787 hardcode_into_libs=yes
6788 dynamic_linker='GNU ld.so'
6789 ;;
6790
6791freebsd*)
6792 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6793 version_type=freebsd-$objformat
6794 case $version_type in
6795 freebsd-elf*)
6796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6797 need_version=no
6798 need_lib_prefix=no
6799 ;;
6800 freebsd-*)
6801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6802 need_version=yes
6803 ;;
6804 esac
6805 shlibpath_var=LD_LIBRARY_PATH
6806 case $host_os in
6807 freebsd2*)
6808 shlibpath_overrides_runpath=yes
6809 ;;
6810 freebsd3.01* | freebsdelf3.01*)
6811 shlibpath_overrides_runpath=yes
6812 hardcode_into_libs=yes
6813 ;;
6814 *) # from 3.2 on
6815 shlibpath_overrides_runpath=no
6816 hardcode_into_libs=yes
6817 ;;
6818 esac
6819 ;;
6820
6821gnu*)
6822 version_type=linux
6823 need_lib_prefix=no
6824 need_version=no
6825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6826 soname_spec='${libname}${release}${shared_ext}$major'
6827 shlibpath_var=LD_LIBRARY_PATH
6828 hardcode_into_libs=yes
6829 ;;
6830
6831hpux9* | hpux10* | hpux11*)
6832 # Give a soname corresponding to the major version so that dld.sl refuses to
6833 # link against other versions.
6834 version_type=sunos
6835 need_lib_prefix=no
6836 need_version=no
6837 case "$host_cpu" in
6838 ia64*)
6839 shrext_cmds='.so'
6840 hardcode_into_libs=yes
6841 dynamic_linker="$host_os dld.so"
6842 shlibpath_var=LD_LIBRARY_PATH
6843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6845 soname_spec='${libname}${release}${shared_ext}$major'
6846 if test "X$HPUX_IA64_MODE" = X32; then
6847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6848 else
6849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6850 fi
6851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6852 ;;
6853 hppa*64*)
6854 shrext_cmds='.sl'
6855 hardcode_into_libs=yes
6856 dynamic_linker="$host_os dld.sl"
6857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6860 soname_spec='${libname}${release}${shared_ext}$major'
6861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6863 ;;
6864 *)
6865 shrext_cmds='.sl'
6866 dynamic_linker="$host_os dld.sl"
6867 shlibpath_var=SHLIB_PATH
6868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6870 soname_spec='${libname}${release}${shared_ext}$major'
6871 ;;
6872 esac
6873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6874 postinstall_cmds='chmod 555 $lib'
6875 ;;
6876
6877irix5* | irix6* | nonstopux*)
6878 case $host_os in
6879 nonstopux*) version_type=nonstopux ;;
6880 *)
6881 if test "$lt_cv_prog_gnu_ld" = yes; then
6882 version_type=linux
6883 else
6884 version_type=irix
6885 fi ;;
6886 esac
6887 need_lib_prefix=no
6888 need_version=no
6889 soname_spec='${libname}${release}${shared_ext}$major'
6890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6891 case $host_os in
6892 irix5* | nonstopux*)
6893 libsuff= shlibsuff=
6894 ;;
6895 *)
6896 case $LD in # libtool.m4 will add one of these switches to LD
6897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6898 libsuff= shlibsuff= libmagic=32-bit;;
6899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6900 libsuff=32 shlibsuff=N32 libmagic=N32;;
6901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6903 *) libsuff= shlibsuff= libmagic=never-match;;
6904 esac
6905 ;;
6906 esac
6907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6908 shlibpath_overrides_runpath=no
6909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6911 hardcode_into_libs=yes
6912 ;;
6913
6914# No shared lib support for Linux oldld, aout, or coff.
6915linux*oldld* | linux*aout* | linux*coff*)
6916 dynamic_linker=no
6917 ;;
6918
6919# This must be Linux ELF.
6920linux*)
6921 version_type=linux
6922 need_lib_prefix=no
6923 need_version=no
6924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6925 soname_spec='${libname}${release}${shared_ext}$major'
6926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6927 shlibpath_var=LD_LIBRARY_PATH
6928 shlibpath_overrides_runpath=no
6929 # This implies no fast_install, which is unacceptable.
6930 # Some rework will be needed to allow for fast_install
6931 # before this can be enabled.
6932 hardcode_into_libs=yes
6933
6934 # Append ld.so.conf contents to the search path
6935 if test -f /etc/ld.so.conf; then
6936 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6938 fi
6939
6940 # We used to test for /lib/ld.so.1 and disable shared libraries on
6941 # powerpc, because MkLinux only supported shared libraries with the
6942 # GNU dynamic linker. Since this was broken with cross compilers,
6943 # most powerpc-linux boxes support dynamic linking these days and
6944 # people can always --disable-shared, the test was removed, and we
6945 # assume the GNU/Linux dynamic linker is in use.
6946 dynamic_linker='GNU/Linux ld.so'
6947 ;;
6948
6949knetbsd*-gnu)
6950 version_type=linux
6951 need_lib_prefix=no
6952 need_version=no
6953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6954 soname_spec='${libname}${release}${shared_ext}$major'
6955 shlibpath_var=LD_LIBRARY_PATH
6956 shlibpath_overrides_runpath=no
6957 hardcode_into_libs=yes
6958 dynamic_linker='GNU ld.so'
6959 ;;
6960
6961netbsd*)
6962 version_type=sunos
6963 need_lib_prefix=no
6964 need_version=no
6965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6968 dynamic_linker='NetBSD (a.out) ld.so'
6969 else
6970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6971 soname_spec='${libname}${release}${shared_ext}$major'
6972 dynamic_linker='NetBSD ld.elf_so'
6973 fi
6974 shlibpath_var=LD_LIBRARY_PATH
6975 shlibpath_overrides_runpath=yes
6976 hardcode_into_libs=yes
6977 ;;
6978
6979newsos6)
6980 version_type=linux
6981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6982 shlibpath_var=LD_LIBRARY_PATH
6983 shlibpath_overrides_runpath=yes
6984 ;;
6985
6986nto-qnx*)
6987 version_type=linux
6988 need_lib_prefix=no
6989 need_version=no
6990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6991 soname_spec='${libname}${release}${shared_ext}$major'
6992 shlibpath_var=LD_LIBRARY_PATH
6993 shlibpath_overrides_runpath=yes
6994 ;;
6995
6996openbsd*)
6997 version_type=sunos
6998 need_lib_prefix=no
6999 need_version=no
7000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7002 shlibpath_var=LD_LIBRARY_PATH
7003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7004 case $host_os in
7005 openbsd2.[89] | openbsd2.[89].*)
7006 shlibpath_overrides_runpath=no
7007 ;;
7008 *)
7009 shlibpath_overrides_runpath=yes
7010 ;;
7011 esac
7012 else
7013 shlibpath_overrides_runpath=yes
7014 fi
7015 ;;
7016
7017os2*)
7018 libname_spec='$name'
7019 shrext_cmds=".dll"
7020 need_lib_prefix=no
7021 library_names_spec='$libname${shared_ext} $libname.a'
7022 dynamic_linker='OS/2 ld.exe'
7023 shlibpath_var=LIBPATH
7024 ;;
7025
7026osf3* | osf4* | osf5*)
7027 version_type=osf
7028 need_lib_prefix=no
7029 need_version=no
7030 soname_spec='${libname}${release}${shared_ext}$major'
7031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7032 shlibpath_var=LD_LIBRARY_PATH
7033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7035 ;;
7036
7037sco3.2v5*)
7038 version_type=osf
7039 soname_spec='${libname}${release}${shared_ext}$major'
7040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7041 shlibpath_var=LD_LIBRARY_PATH
7042 ;;
7043
7044solaris*)
7045 version_type=linux
7046 need_lib_prefix=no
7047 need_version=no
7048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049 soname_spec='${libname}${release}${shared_ext}$major'
7050 shlibpath_var=LD_LIBRARY_PATH
7051 shlibpath_overrides_runpath=yes
7052 hardcode_into_libs=yes
7053 # ldd complains unless libraries are executable
7054 postinstall_cmds='chmod +x $lib'
7055 ;;
7056
7057sunos4*)
7058 version_type=sunos
7059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7061 shlibpath_var=LD_LIBRARY_PATH
7062 shlibpath_overrides_runpath=yes
7063 if test "$with_gnu_ld" = yes; then
7064 need_lib_prefix=no
7065 fi
7066 need_version=yes
7067 ;;
7068
7069sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7070 version_type=linux
7071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7072 soname_spec='${libname}${release}${shared_ext}$major'
7073 shlibpath_var=LD_LIBRARY_PATH
7074 case $host_vendor in
7075 sni)
7076 shlibpath_overrides_runpath=no
7077 need_lib_prefix=no
7078 export_dynamic_flag_spec='${wl}-Blargedynsym'
7079 runpath_var=LD_RUN_PATH
7080 ;;
7081 siemens)
7082 need_lib_prefix=no
7083 ;;
7084 motorola)
7085 need_lib_prefix=no
7086 need_version=no
7087 shlibpath_overrides_runpath=no
7088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7089 ;;
7090 esac
7091 ;;
7092
7093sysv4*MP*)
7094 if test -d /usr/nec ;then
7095 version_type=linux
7096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7097 soname_spec='$libname${shared_ext}.$major'
7098 shlibpath_var=LD_LIBRARY_PATH
7099 fi
7100 ;;
7101
7102uts4*)
7103 version_type=linux
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7107 ;;
7108
7109*)
7110 dynamic_linker=no
7111 ;;
7112esac
7113echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7114echo "${ECHO_T}$dynamic_linker" >&6
7115test "$dynamic_linker" = no && can_build_shared=no
7116
7117
7118echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7119echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7120if test "${libltdl_cv_shlibext+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123
7124module=yes
7125eval libltdl_cv_shlibext=$shrext_cmds
7126
7127fi
7128echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7129echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7130if test -n "$libltdl_cv_shlibext"; then
7131
7132cat >>confdefs.h <<_ACEOF
7133#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7134_ACEOF
7135
7136fi
7137
7138
7139echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7140echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7141if test "${libltdl_cv_shlibpath_var+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 libltdl_cv_shlibpath_var="$shlibpath_var"
7145fi
7146echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7147echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7148if test -n "$libltdl_cv_shlibpath_var"; then
7149
7150cat >>confdefs.h <<_ACEOF
7151#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7152_ACEOF
7153
7154fi
7155
7156
7157echo "$as_me:$LINENO: checking for the default library search path" >&5
7158echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7159if test "${libltdl_cv_sys_search_path+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7163fi
7164echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7165echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7166if test -n "$libltdl_cv_sys_search_path"; then
7167 sys_search_path=
7168 for dir in $libltdl_cv_sys_search_path; do
7169 if test -z "$sys_search_path"; then
7170 sys_search_path="$dir"
7171 else
7172 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7173 fi
7174 done
7175
7176cat >>confdefs.h <<_ACEOF
7177#define LTDL_SYSSEARCHPATH "$sys_search_path"
7178_ACEOF
7179
7180fi
7181
7182echo "$as_me:$LINENO: checking for objdir" >&5
7183echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7184if test "${libltdl_cv_objdir+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187 libltdl_cv_objdir="$objdir"
7188 if test -n "$objdir"; then
7189 :
7190 else
7191 rm -f .libs 2>/dev/null
7192 mkdir .libs 2>/dev/null
7193 if test -d .libs; then
7194 libltdl_cv_objdir=.libs
7195 else
7196 # MS-DOS does not allow filenames that begin with a dot.
7197 libltdl_cv_objdir=_libs
7198 fi
7199 rmdir .libs 2>/dev/null
7200 fi
7201
7202fi
7203echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7204echo "${ECHO_T}$libltdl_cv_objdir" >&6
7205
7206cat >>confdefs.h <<_ACEOF
7207#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7208_ACEOF
7209
7210
7211echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7212echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7213if test "${lt_cv_path_NM+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 if test -n "$NM"; then
7217 # Let the user override the test.
7218 lt_cv_path_NM="$NM"
7219else
7220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7221 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7222 IFS="$lt_save_ifs"
7223 test -z "$ac_dir" && ac_dir=.
7224 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7225 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7226 # Check to see if the nm accepts a BSD-compat flag.
7227 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7228 # nm: unknown option "B" ignored
7229 # Tru64's nm complains that /dev/null is an invalid object file
7230 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7231 */dev/null* | *'Invalid file or object type'*)
7232 lt_cv_path_NM="$tmp_nm -B"
7233 break
7234 ;;
7235 *)
7236 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7237 */dev/null*)
7238 lt_cv_path_NM="$tmp_nm -p"
7239 break
7240 ;;
7241 *)
7242 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7243 continue # so that we can try to find one that supports BSD flags
7244 ;;
7245 esac
7246 esac
7247 fi
7248 done
7249 IFS="$lt_save_ifs"
7250 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7251fi
7252fi
7253echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7254echo "${ECHO_T}$lt_cv_path_NM" >&6
7255NM="$lt_cv_path_NM"
7256
7257
7258
7259
7260
7261# Check for command to grab the raw symbol name followed by C symbol from nm.
7262echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7263echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7264if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267
7268# These are sane defaults that work on at least a few old systems.
7269# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7270
7271# Character class describing NM global symbol codes.
7272symcode='[BCDEGRST]'
7273
7274# Regexp to match symbols that can be accessed directly from C.
7275sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7276
7277# Transform the above into a raw symbol and a C symbol.
7278symxfrm='\1 \2\3 \3'
7279
7280# Transform an extracted symbol line into a proper C declaration
7281lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7282
7283# Transform an extracted symbol line into symbol name and symbol address
7284lt_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'"
7285
7286# Define system-specific variables.
7287case $host_os in
7288aix*)
7289 symcode='[BCDT]'
7290 ;;
7291cygwin* | mingw* | pw32*)
7292 symcode='[ABCDGISTW]'
7293 ;;
7294hpux*) # Its linker distinguishes data from code symbols
7295 if test "$host_cpu" = ia64; then
7296 symcode='[ABCDEGRST]'
7297 fi
7298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7299 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'"
7300 ;;
7301linux*)
7302 if test "$host_cpu" = ia64; then
7303 symcode='[ABCDGIRSTW]'
7304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7305 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'"
7306 fi
7307 ;;
7308irix* | nonstopux*)
7309 symcode='[BCDEGRST]'
7310 ;;
7311osf*)
7312 symcode='[BCDEGQRST]'
7313 ;;
7314solaris* | sysv5*)
7315 symcode='[BDRT]'
7316 ;;
7317sysv4)
7318 symcode='[DFNSTU]'
7319 ;;
7320esac
7321
7322# Handle CRLF in mingw tool chain
7323opt_cr=
7324case $build_os in
7325mingw*)
7326 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7327 ;;
7328esac
7329
7330# If we're using GNU nm, then use its standard symbol codes.
7331case `$NM -V 2>&1` in
7332*GNU* | *'with BFD'*)
7333 symcode='[ABCDGIRSTW]' ;;
7334esac
7335
7336# Try without a prefix undercore, then with it.
7337for ac_symprfx in "" "_"; do
7338
7339 # Write the raw and C identifiers.
7340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7341
7342 # Check to see that the pipe works correctly.
7343 pipe_works=no
7344
7345 rm -f conftest*
7346 cat > conftest.$ac_ext <<EOF
7347#ifdef __cplusplus
7348extern "C" {
7349#endif
7350char nm_test_var;
7351void nm_test_func(){}
7352#ifdef __cplusplus
7353}
7354#endif
7355int main(){nm_test_var='a';nm_test_func();return(0);}
7356EOF
7357
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; then
7363 # Now try to grab the symbols.
7364 nlist=conftest.nm
7365 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7366 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && test -s "$nlist"; then
7370 # Try sorting and uniquifying the output.
7371 if sort "$nlist" | uniq > "$nlist"T; then
7372 mv -f "$nlist"T "$nlist"
7373 else
7374 rm -f "$nlist"T
7375 fi
7376
7377 # Make sure that we snagged all the symbols we need.
7378 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7379 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7380 cat <<EOF > conftest.$ac_ext
7381#ifdef __cplusplus
7382extern "C" {
7383#endif
7384
7385EOF
7386 # Now generate the symbol file.
7387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7388
7389 cat <<EOF >> conftest.$ac_ext
7390#if defined (__STDC__) && __STDC__
7391# define lt_ptr_t void *
7392#else
7393# define lt_ptr_t char *
7394# define const
7395#endif
7396
7397/* The mapping between symbol names and symbols. */
7398const struct {
7399 const char *name;
7400 lt_ptr_t address;
7401}
7402lt_preloaded_symbols[] =
7403{
7404EOF
7405 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7406 cat <<\EOF >> conftest.$ac_ext
7407 {0, (lt_ptr_t) 0}
7408};
7409
7410#ifdef __cplusplus
7411}
7412#endif
7413EOF
7414 # Now try linking the two files.
7415 mv conftest.$ac_objext conftstm.$ac_objext
7416 lt_save_LIBS="$LIBS"
7417 lt_save_CFLAGS="$CFLAGS"
7418 LIBS="conftstm.$ac_objext"
7419 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7425 pipe_works=yes
7426 fi
7427 LIBS="$lt_save_LIBS"
7428 CFLAGS="$lt_save_CFLAGS"
7429 else
7430 echo "cannot find nm_test_func in $nlist" >&5
7431 fi
7432 else
7433 echo "cannot find nm_test_var in $nlist" >&5
7434 fi
7435 else
7436 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7437 fi
7438 else
7439 echo "$progname: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 fi
7442 rm -f conftest* conftst*
7443
7444 # Do not use the global_symbol_pipe unless it works.
7445 if test "$pipe_works" = yes; then
7446 break
7447 else
7448 lt_cv_sys_global_symbol_pipe=
7449 fi
7450done
7451
7452fi
7453
7454if test -z "$lt_cv_sys_global_symbol_pipe"; then
7455 lt_cv_sys_global_symbol_to_cdecl=
7456fi
7457if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7458 echo "$as_me:$LINENO: result: failed" >&5
7459echo "${ECHO_T}failed" >&6
7460else
7461 echo "$as_me:$LINENO: result: ok" >&5
7462echo "${ECHO_T}ok" >&6
7463fi
7464
7465
7466echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7467echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7468if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7472 libltdl_cv_preloaded_symbols=yes
7473 else
7474 libltdl_cv_preloaded_symbols=no
7475 fi
7476
7477fi
7478echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7479echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7480if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7481
7482cat >>confdefs.h <<\_ACEOF
7483#define HAVE_PRELOADED_SYMBOLS 1
7484_ACEOF
7485
7486fi
7487
7488LIBADD_DL=
7489
7490ac_ext=c
7491ac_cpp='$CPP $CPPFLAGS'
7492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494ac_compiler_gnu=$ac_cv_c_compiler_gnu
7495
7496
7497echo "$as_me:$LINENO: checking for shl_load" >&5
7498echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7499if test "${ac_cv_func_shl_load+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h. */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h. */
7508/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7510#define shl_load innocuous_shl_load
7511
7512/* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char shl_load (); below.
7514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515 <limits.h> exists even on freestanding compilers. */
7516
7517#ifdef __STDC__
7518# include <limits.h>
7519#else
7520# include <assert.h>
7521#endif
7522
7523#undef shl_load
7524
7525/* Override any gcc2 internal prototype to avoid an error. */
7526#ifdef __cplusplus
7527extern "C"
7528{
7529#endif
7530/* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7532char shl_load ();
7533/* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536#if defined (__stub_shl_load) || defined (__stub___shl_load)
7537choke me
7538#else
7539char (*f) () = shl_load;
7540#endif
7541#ifdef __cplusplus
7542}
7543#endif
7544
7545int
7546main ()
7547{
7548return f != shl_load;
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_func_shl_load=yes
7576else
7577 echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580ac_cv_func_shl_load=no
7581fi
7582rm -f conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584fi
7585echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7586echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7587if test $ac_cv_func_shl_load = yes; then
7588
7589cat >>confdefs.h <<\_ACEOF
7590#define HAVE_SHL_LOAD 1
7591_ACEOF
7592
7593else
7594 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7595echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7596if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 ac_check_lib_save_LIBS=$LIBS
7600LIBS="-ldld $LIBS"
7601cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607
7608/* Override any gcc2 internal prototype to avoid an error. */
7609#ifdef __cplusplus
7610extern "C"
7611#endif
7612/* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7614char shl_load ();
7615int
7616main ()
7617{
7618shl_load ();
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623rm -f conftest.$ac_objext conftest$ac_exeext
7624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>conftest.er1
7626 ac_status=$?
7627 grep -v '^ *+' conftest.er1 >conftest.err
7628 rm -f conftest.er1
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag"
7633 || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_lib_dld_shl_load=yes
7646else
7647 echo "$as_me: failed program was:" >&5
7648sed 's/^/| /' conftest.$ac_ext >&5
7649
7650ac_cv_lib_dld_shl_load=no
7651fi
7652rm -f conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7654LIBS=$ac_check_lib_save_LIBS
7655fi
7656echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7657echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7658if test $ac_cv_lib_dld_shl_load = yes; then
7659
7660cat >>confdefs.h <<\_ACEOF
7661#define HAVE_SHL_LOAD 1
7662_ACEOF
7663
7664 LIBADD_DL="$LIBADD_DL -ldld"
7665else
7666 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7667echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7668if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 ac_check_lib_save_LIBS=$LIBS
7672LIBS="-ldl $LIBS"
7673cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
7679
7680/* Override any gcc2 internal prototype to avoid an error. */
7681#ifdef __cplusplus
7682extern "C"
7683#endif
7684/* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */
7686char dlopen ();
7687int
7688main ()
7689{
7690dlopen ();
7691 ;
7692 return 0;
7693}
7694_ACEOF
7695rm -f conftest.$ac_objext conftest$ac_exeext
7696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_lib_dl_dlopen=yes
7718else
7719 echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722ac_cv_lib_dl_dlopen=no
7723fi
7724rm -f conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726LIBS=$ac_check_lib_save_LIBS
7727fi
7728echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7730if test $ac_cv_lib_dl_dlopen = yes; then
7731
7732cat >>confdefs.h <<\_ACEOF
7733#define HAVE_LIBDL 1
7734_ACEOF
7735
7736 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7737else
7738 cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744#if HAVE_DLFCN_H
7745# include <dlfcn.h>
7746#endif
7747
7748int
7749main ()
7750{
7751dlopen(0, 0);
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext conftest$ac_exeext
7757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778
7779cat >>confdefs.h <<\_ACEOF
7780#define HAVE_LIBDL 1
7781_ACEOF
7782 libltdl_cv_func_dlopen="yes"
7783else
7784 echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7788echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7789if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 ac_check_lib_save_LIBS=$LIBS
7793LIBS="-lsvld $LIBS"
7794cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800
7801/* Override any gcc2 internal prototype to avoid an error. */
7802#ifdef __cplusplus
7803extern "C"
7804#endif
7805/* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807char dlopen ();
7808int
7809main ()
7810{
7811dlopen ();
7812 ;
7813 return 0;
7814}
7815_ACEOF
7816rm -f conftest.$ac_objext conftest$ac_exeext
7817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_svld_dlopen=yes
7839else
7840 echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843ac_cv_lib_svld_dlopen=no
7844fi
7845rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847LIBS=$ac_check_lib_save_LIBS
7848fi
7849echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7850echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7851if test $ac_cv_lib_svld_dlopen = yes; then
7852
7853cat >>confdefs.h <<\_ACEOF
7854#define HAVE_LIBDL 1
7855_ACEOF
7856
7857 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7858else
7859 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7860echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7861if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863else
7864 ac_check_lib_save_LIBS=$LIBS
7865LIBS="-ldld $LIBS"
7866cat >conftest.$ac_ext <<_ACEOF
7867/* confdefs.h. */
7868_ACEOF
7869cat confdefs.h >>conftest.$ac_ext
7870cat >>conftest.$ac_ext <<_ACEOF
7871/* end confdefs.h. */
7872
7873/* Override any gcc2 internal prototype to avoid an error. */
7874#ifdef __cplusplus
7875extern "C"
7876#endif
7877/* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879char dld_link ();
7880int
7881main ()
7882{
7883dld_link ();
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888rm -f conftest.$ac_objext conftest$ac_exeext
7889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>conftest.er1
7891 ac_status=$?
7892 grep -v '^ *+' conftest.er1 >conftest.err
7893 rm -f conftest.er1
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -z "$ac_c_werror_flag"
7898 || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try='test -s conftest$ac_exeext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_lib_dld_dld_link=yes
7911else
7912 echo "$as_me: failed program was:" >&5
7913sed 's/^/| /' conftest.$ac_ext >&5
7914
7915ac_cv_lib_dld_dld_link=no
7916fi
7917rm -f conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919LIBS=$ac_check_lib_save_LIBS
7920fi
7921echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7922echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7923if test $ac_cv_lib_dld_dld_link = yes; then
7924
7925cat >>confdefs.h <<\_ACEOF
7926#define HAVE_DLD 1
7927_ACEOF
7928
7929 LIBADD_DL="$LIBADD_DL -ldld"
7930else
7931 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7932echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7933if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7935else
7936 cat >conftest.$ac_ext <<_ACEOF
7937/* confdefs.h. */
7938_ACEOF
7939cat confdefs.h >>conftest.$ac_ext
7940cat >>conftest.$ac_ext <<_ACEOF
7941/* end confdefs.h. */
7942/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7944#define _dyld_func_lookup innocuous__dyld_func_lookup
7945
7946/* System header to define __stub macros and hopefully few prototypes,
7947 which can conflict with char _dyld_func_lookup (); below.
7948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7949 <limits.h> exists even on freestanding compilers. */
7950
7951#ifdef __STDC__
7952# include <limits.h>
7953#else
7954# include <assert.h>
7955#endif
7956
7957#undef _dyld_func_lookup
7958
7959/* Override any gcc2 internal prototype to avoid an error. */
7960#ifdef __cplusplus
7961extern "C"
7962{
7963#endif
7964/* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966char _dyld_func_lookup ();
7967/* The GNU C library defines this for functions which it implements
7968 to always fail with ENOSYS. Some functions are actually named
7969 something starting with __ and the normal name is an alias. */
7970#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7971choke me
7972#else
7973char (*f) () = _dyld_func_lookup;
7974#endif
7975#ifdef __cplusplus
7976}
7977#endif
7978
7979int
7980main ()
7981{
7982return f != _dyld_func_lookup;
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext conftest$ac_exeext
7988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try='test -s conftest$ac_exeext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009 ac_cv_func__dyld_func_lookup=yes
8010else
8011 echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
8014ac_cv_func__dyld_func_lookup=no
8015fi
8016rm -f conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018fi
8019echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8020echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8021if test $ac_cv_func__dyld_func_lookup = yes; then
8022
8023cat >>confdefs.h <<\_ACEOF
8024#define HAVE_DYLD 1
8025_ACEOF
8026
8027fi
8028
8029
8030fi
8031
8032
8033fi
8034
8035
8036fi
8037rm -f conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8039
8040fi
8041
8042
8043fi
8044
8045
8046fi
8047
8048
8049if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8050then
8051 lt_save_LIBS="$LIBS"
8052 LIBS="$LIBS $LIBADD_DL"
8053
8054for ac_func in dlerror
8055do
8056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8057echo "$as_me:$LINENO: checking for $ac_func" >&5
8058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8059if eval "test \"\${$as_ac_var+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
8068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8070#define $ac_func innocuous_$ac_func
8071
8072/* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char $ac_func (); below.
8074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8075 <limits.h> exists even on freestanding compilers. */
8076
8077#ifdef __STDC__
8078# include <limits.h>
8079#else
8080# include <assert.h>
8081#endif
8082
8083#undef $ac_func
8084
8085/* Override any gcc2 internal prototype to avoid an error. */
8086#ifdef __cplusplus
8087extern "C"
8088{
8089#endif
8090/* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092char $ac_func ();
8093/* The GNU C library defines this for functions which it implements
8094 to always fail with ENOSYS. Some functions are actually named
8095 something starting with __ and the normal name is an alias. */
8096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8097choke me
8098#else
8099char (*f) () = $ac_func;
8100#endif
8101#ifdef __cplusplus
8102}
8103#endif
8104
8105int
8106main ()
8107{
8108return f != $ac_func;
8109 ;
8110 return 0;
8111}
8112_ACEOF
8113rm -f conftest.$ac_objext conftest$ac_exeext
8114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 eval "$as_ac_var=yes"
8136else
8137 echo "$as_me: failed program was:" >&5
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
8140eval "$as_ac_var=no"
8141fi
8142rm -f conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144fi
8145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8147if test `eval echo '${'$as_ac_var'}'` = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8150_ACEOF
8151
8152fi
8153done
8154
8155 LIBS="$lt_save_LIBS"
8156fi
8157ac_ext=c
8158ac_cpp='$CPP $CPPFLAGS'
8159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162
8163
8164
8165echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8166echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8167if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 ac_cv_sys_symbol_underscore=no
8171 cat > conftest.$ac_ext <<EOF
8172void nm_test_func(){}
8173int main(){nm_test_func;return 0;}
8174EOF
8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; then
8180 # Now try to grab the symbols.
8181 ac_nlist=conftest.nm
8182 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8183 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && test -s "$ac_nlist"; then
8187 # See whether the symbols have a leading underscore.
8188 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8189 ac_cv_sys_symbol_underscore=yes
8190 else
8191 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8192 :
8193 else
8194 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8195 fi
8196 fi
8197 else
8198 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8199 fi
8200 else
8201 echo "configure: failed program was:" >&5
8202 cat conftest.c >&5
8203 fi
8204 rm -rf conftest*
8205
8206fi
8207echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8208echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8209
8210
8211if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8212 if test x"$libltdl_cv_func_dlopen" = xyes ||
8213 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8214 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8215echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8216if test "${libltdl_cv_need_uscore+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219 libltdl_cv_need_uscore=unknown
8220 save_LIBS="$LIBS"
8221 LIBS="$LIBS $LIBADD_DL"
8222 if test "$cross_compiling" = yes; then :
8223 libltdl_cv_need_uscore=cross
8224else
8225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8226 lt_status=$lt_dlunknown
8227 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00008228#line 8228 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008229#include "confdefs.h"
8230
8231#if HAVE_DLFCN_H
8232#include <dlfcn.h>
8233#endif
8234
8235#include <stdio.h>
8236
8237#ifdef RTLD_GLOBAL
8238# define LT_DLGLOBAL RTLD_GLOBAL
8239#else
8240# ifdef DL_GLOBAL
8241# define LT_DLGLOBAL DL_GLOBAL
8242# else
8243# define LT_DLGLOBAL 0
8244# endif
8245#endif
8246
8247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8248 find out it does not work in some platform. */
8249#ifndef LT_DLLAZY_OR_NOW
8250# ifdef RTLD_LAZY
8251# define LT_DLLAZY_OR_NOW RTLD_LAZY
8252# else
8253# ifdef DL_LAZY
8254# define LT_DLLAZY_OR_NOW DL_LAZY
8255# else
8256# ifdef RTLD_NOW
8257# define LT_DLLAZY_OR_NOW RTLD_NOW
8258# else
8259# ifdef DL_NOW
8260# define LT_DLLAZY_OR_NOW DL_NOW
8261# else
8262# define LT_DLLAZY_OR_NOW 0
8263# endif
8264# endif
8265# endif
8266# endif
8267#endif
8268
8269#ifdef __cplusplus
8270extern "C" void exit (int);
8271#endif
8272
8273void fnord() { int i=42;}
8274int main ()
8275{
8276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8277 int status = $lt_dlunknown;
8278
8279 if (self)
8280 {
8281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8283 /* dlclose (self); */
8284 }
8285
8286 exit (status);
8287}
8288EOF
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290 (eval $ac_link) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8294 (./conftest; exit; ) 2>/dev/null
8295 lt_status=$?
8296 case x$lt_status in
8297 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8298 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8299 x$lt_unknown|x*) ;;
8300 esac
8301 else :
8302 # compilation failed
8303
8304 fi
8305fi
8306rm -fr conftest*
8307
8308 LIBS="$save_LIBS"
8309
8310fi
8311echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8312echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8313 fi
8314fi
8315
8316if test x"$libltdl_cv_need_uscore" = xyes; then
8317
8318cat >>confdefs.h <<\_ACEOF
8319#define NEED_USCORE 1
8320_ACEOF
8321
8322fi
8323
8324
8325echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8326echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8327if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330 # PORTME does your system automatically load deplibs for dlopen?
8331 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8332 # For now, we just catch OSes we know something about -- in the
8333 # future, we'll try test this programmatically.
8334 libltdl_cv_sys_dlopen_deplibs=unknown
8335 case "$host_os" in
8336 aix3*|aix4.1.*|aix4.2.*)
8337 # Unknown whether this is true for these versions of AIX, but
8338 # we want this `case' here to explicitly catch those versions.
8339 libltdl_cv_sys_dlopen_deplibs=unknown
8340 ;;
8341 aix[45]*)
8342 libltdl_cv_sys_dlopen_deplibs=yes
8343 ;;
8344 darwin*)
8345 # Assuming the user has installed a libdl from somewhere, this is true
8346 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8347 libltdl_cv_sys_dlopen_deplibs=yes
8348 ;;
8349 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8350 # GNU and its variants, using gnu ld.so (Glibc)
8351 libltdl_cv_sys_dlopen_deplibs=yes
8352 ;;
8353 hpux10*|hpux11*)
8354 libltdl_cv_sys_dlopen_deplibs=yes
8355 ;;
8356 irix[12345]*|irix6.[01]*)
8357 # Catch all versions of IRIX before 6.2, and indicate that we don't
8358 # know how it worked for any of those versions.
8359 libltdl_cv_sys_dlopen_deplibs=unknown
8360 ;;
8361 irix*)
8362 # The case above catches anything before 6.2, and it's known that
8363 # at 6.2 and later dlopen does load deplibs.
8364 libltdl_cv_sys_dlopen_deplibs=yes
8365 ;;
8366 netbsd*)
8367 libltdl_cv_sys_dlopen_deplibs=yes
8368 ;;
8369 openbsd*)
8370 libltdl_cv_sys_dlopen_deplibs=yes
8371 ;;
8372 osf[1234]*)
8373 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8374 # it did *not* use an RPATH in a shared library to find objects the
8375 # library depends on, so we explictly say `no'.
8376 libltdl_cv_sys_dlopen_deplibs=no
8377 ;;
8378 osf5.0|osf5.0a|osf5.1)
8379 # dlopen *does* load deplibs and with the right loader patch applied
8380 # it even uses RPATH in a shared library to search for shared objects
8381 # that the library depends on, but there's no easy way to know if that
8382 # patch is installed. Since this is the case, all we can really
8383 # say is unknown -- it depends on the patch being installed. If
8384 # it is, this changes to `yes'. Without it, it would be `no'.
8385 libltdl_cv_sys_dlopen_deplibs=unknown
8386 ;;
8387 osf*)
8388 # the two cases above should catch all versions of osf <= 5.1. Read
8389 # the comments above for what we know about them.
8390 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8391 # is used to find them so we can finally say `yes'.
8392 libltdl_cv_sys_dlopen_deplibs=yes
8393 ;;
8394 solaris*)
8395 libltdl_cv_sys_dlopen_deplibs=yes
8396 ;;
8397 esac
8398
8399fi
8400echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8401echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8402if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8403
8404cat >>confdefs.h <<\_ACEOF
8405#define LTDL_DLOPEN_DEPLIBS 1
8406_ACEOF
8407
8408fi
8409
8410
8411for ac_header in argz.h
8412do
8413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415 echo "$as_me:$LINENO: checking for $ac_header" >&5
8416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8417if eval "test \"\${$as_ac_Header+set}\" = set"; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419fi
8420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8422else
8423 # Is the header compilable?
8424echo "$as_me:$LINENO: checking $ac_header usability" >&5
8425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8426cat >conftest.$ac_ext <<_ACEOF
8427/* confdefs.h. */
8428_ACEOF
8429cat confdefs.h >>conftest.$ac_ext
8430cat >>conftest.$ac_ext <<_ACEOF
8431/* end confdefs.h. */
8432$ac_includes_default
8433#include <$ac_header>
8434_ACEOF
8435rm -f conftest.$ac_objext
8436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437 (eval $ac_compile) 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag"
8445 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_header_compiler=yes
8458else
8459 echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
8462ac_header_compiler=no
8463fi
8464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8466echo "${ECHO_T}$ac_header_compiler" >&6
8467
8468# Is the header present?
8469echo "$as_me:$LINENO: checking $ac_header presence" >&5
8470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8471cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h. */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h. */
8477#include <$ac_header>
8478_ACEOF
8479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } >/dev/null; then
8487 if test -s conftest.err; then
8488 ac_cpp_err=$ac_c_preproc_warn_flag
8489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8490 else
8491 ac_cpp_err=
8492 fi
8493else
8494 ac_cpp_err=yes
8495fi
8496if test -z "$ac_cpp_err"; then
8497 ac_header_preproc=yes
8498else
8499 echo "$as_me: failed program was:" >&5
8500sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_header_preproc=no
8503fi
8504rm -f conftest.err conftest.$ac_ext
8505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8506echo "${ECHO_T}$ac_header_preproc" >&6
8507
8508# So? What about this header?
8509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8510 yes:no: )
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8515 ac_header_preproc=yes
8516 ;;
8517 no:yes:* )
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8530 (
8531 cat <<\_ASBOX
8532## ----------------------------------- ##
8533## Report this to llvmbugs@cs.uiuc.edu ##
8534## ----------------------------------- ##
8535_ASBOX
8536 ) |
8537 sed "s/^/$as_me: WARNING: /" >&2
8538 ;;
8539esac
8540echo "$as_me:$LINENO: checking for $ac_header" >&5
8541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8542if eval "test \"\${$as_ac_Header+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545 eval "$as_ac_Header=\$ac_header_preproc"
8546fi
8547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8549
8550fi
8551if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554_ACEOF
8555
8556fi
8557
8558done
8559
8560
8561echo "$as_me:$LINENO: checking for error_t" >&5
8562echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8563if test "${ac_cv_type_error_t+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566 cat >conftest.$ac_ext <<_ACEOF
8567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
8572#if HAVE_ARGZ_H
8573# include <argz.h>
8574#endif
8575
8576int
8577main ()
8578{
8579if ((error_t *) 0)
8580 return 0;
8581if (sizeof (error_t))
8582 return 0;
8583 ;
8584 return 0;
8585}
8586_ACEOF
8587rm -f conftest.$ac_objext
8588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_cv_type_error_t=yes
8610else
8611 echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614ac_cv_type_error_t=no
8615fi
8616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617fi
8618echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8619echo "${ECHO_T}$ac_cv_type_error_t" >&6
8620if test $ac_cv_type_error_t = yes; then
8621
8622cat >>confdefs.h <<_ACEOF
8623#define HAVE_ERROR_T 1
8624_ACEOF
8625
8626
8627else
8628
8629cat >>confdefs.h <<\_ACEOF
8630#define error_t int
8631_ACEOF
8632
8633fi
8634
8635
8636
8637
8638
8639
8640
8641for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8642do
8643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8644echo "$as_me:$LINENO: checking for $ac_func" >&5
8645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8646if eval "test \"\${$as_ac_var+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649 cat >conftest.$ac_ext <<_ACEOF
8650/* confdefs.h. */
8651_ACEOF
8652cat confdefs.h >>conftest.$ac_ext
8653cat >>conftest.$ac_ext <<_ACEOF
8654/* end confdefs.h. */
8655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8657#define $ac_func innocuous_$ac_func
8658
8659/* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func (); below.
8661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 <limits.h> exists even on freestanding compilers. */
8663
8664#ifdef __STDC__
8665# include <limits.h>
8666#else
8667# include <assert.h>
8668#endif
8669
8670#undef $ac_func
8671
8672/* Override any gcc2 internal prototype to avoid an error. */
8673#ifdef __cplusplus
8674extern "C"
8675{
8676#endif
8677/* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8679char $ac_func ();
8680/* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8684choke me
8685#else
8686char (*f) () = $ac_func;
8687#endif
8688#ifdef __cplusplus
8689}
8690#endif
8691
8692int
8693main ()
8694{
8695return f != $ac_func;
8696 ;
8697 return 0;
8698}
8699_ACEOF
8700rm -f conftest.$ac_objext conftest$ac_exeext
8701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 eval "$as_ac_var=yes"
8723else
8724 echo "$as_me: failed program was:" >&5
8725sed 's/^/| /' conftest.$ac_ext >&5
8726
8727eval "$as_ac_var=no"
8728fi
8729rm -f conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731fi
8732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8734if test `eval echo '${'$as_ac_var'}'` = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8737_ACEOF
8738
8739fi
8740done
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8770 stdio.h unistd.h
8771do
8772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8773if eval "test \"\${$as_ac_Header+set}\" = set"; then
8774 echo "$as_me:$LINENO: checking for $ac_header" >&5
8775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778fi
8779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8781else
8782 # Is the header compilable?
8783echo "$as_me:$LINENO: checking $ac_header usability" >&5
8784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8785cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791$ac_includes_default
8792#include <$ac_header>
8793_ACEOF
8794rm -f conftest.$ac_objext
8795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8796 (eval $ac_compile) 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -z "$ac_c_werror_flag"
8804 || test ! -s conftest.err'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; } &&
8810 { ac_try='test -s conftest.$ac_objext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 (eval $ac_try) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_header_compiler=yes
8817else
8818 echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821ac_header_compiler=no
8822fi
8823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8825echo "${ECHO_T}$ac_header_compiler" >&6
8826
8827# Is the header present?
8828echo "$as_me:$LINENO: checking $ac_header presence" >&5
8829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8830cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h. */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h. */
8836#include <$ac_header>
8837_ACEOF
8838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } >/dev/null; then
8846 if test -s conftest.err; then
8847 ac_cpp_err=$ac_c_preproc_warn_flag
8848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8849 else
8850 ac_cpp_err=
8851 fi
8852else
8853 ac_cpp_err=yes
8854fi
8855if test -z "$ac_cpp_err"; then
8856 ac_header_preproc=yes
8857else
8858 echo "$as_me: failed program was:" >&5
8859sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ac_header_preproc=no
8862fi
8863rm -f conftest.err conftest.$ac_ext
8864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865echo "${ECHO_T}$ac_header_preproc" >&6
8866
8867# So? What about this header?
8868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8869 yes:no: )
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8873echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8874 ac_header_preproc=yes
8875 ;;
8876 no:yes:* )
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8882echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8884echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8888echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8889 (
8890 cat <<\_ASBOX
8891## ----------------------------------- ##
8892## Report this to llvmbugs@cs.uiuc.edu ##
8893## ----------------------------------- ##
8894_ASBOX
8895 ) |
8896 sed "s/^/$as_me: WARNING: /" >&2
8897 ;;
8898esac
8899echo "$as_me:$LINENO: checking for $ac_header" >&5
8900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8901if eval "test \"\${$as_ac_Header+set}\" = set"; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904 eval "$as_ac_Header=\$ac_header_preproc"
8905fi
8906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8908
8909fi
8910if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911 cat >>confdefs.h <<_ACEOF
8912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8913_ACEOF
8914
8915fi
8916
8917done
8918
8919
8920
8921
8922
8923for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8924do
8925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926if eval "test \"\${$as_ac_Header+set}\" = set"; then
8927 echo "$as_me:$LINENO: checking for $ac_header" >&5
8928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8929if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931fi
8932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8934else
8935 # Is the header compilable?
8936echo "$as_me:$LINENO: checking $ac_header usability" >&5
8937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8938cat >conftest.$ac_ext <<_ACEOF
8939/* confdefs.h. */
8940_ACEOF
8941cat confdefs.h >>conftest.$ac_ext
8942cat >>conftest.$ac_ext <<_ACEOF
8943/* end confdefs.h. */
8944$ac_includes_default
8945#include <$ac_header>
8946_ACEOF
8947rm -f conftest.$ac_objext
8948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest.$ac_objext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_header_compiler=yes
8970else
8971 echo "$as_me: failed program was:" >&5
8972sed 's/^/| /' conftest.$ac_ext >&5
8973
8974ac_header_compiler=no
8975fi
8976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8978echo "${ECHO_T}$ac_header_compiler" >&6
8979
8980# Is the header present?
8981echo "$as_me:$LINENO: checking $ac_header presence" >&5
8982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8983cat >conftest.$ac_ext <<_ACEOF
8984/* confdefs.h. */
8985_ACEOF
8986cat confdefs.h >>conftest.$ac_ext
8987cat >>conftest.$ac_ext <<_ACEOF
8988/* end confdefs.h. */
8989#include <$ac_header>
8990_ACEOF
8991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null; then
8999 if test -s conftest.err; then
9000 ac_cpp_err=$ac_c_preproc_warn_flag
9001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9002 else
9003 ac_cpp_err=
9004 fi
9005else
9006 ac_cpp_err=yes
9007fi
9008if test -z "$ac_cpp_err"; then
9009 ac_header_preproc=yes
9010else
9011 echo "$as_me: failed program was:" >&5
9012sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_header_preproc=no
9015fi
9016rm -f conftest.err conftest.$ac_ext
9017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9018echo "${ECHO_T}$ac_header_preproc" >&6
9019
9020# So? What about this header?
9021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9022 yes:no: )
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9027 ac_header_preproc=yes
9028 ;;
9029 no:yes:* )
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9042 (
9043 cat <<\_ASBOX
9044## ----------------------------------- ##
9045## Report this to llvmbugs@cs.uiuc.edu ##
9046## ----------------------------------- ##
9047_ASBOX
9048 ) |
9049 sed "s/^/$as_me: WARNING: /" >&2
9050 ;;
9051esac
9052echo "$as_me:$LINENO: checking for $ac_header" >&5
9053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056else
9057 eval "$as_ac_Header=\$ac_header_preproc"
9058fi
9059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9061
9062fi
9063if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066_ACEOF
9067
9068fi
9069
9070done
9071
9072
9073
9074for ac_header in string.h strings.h
9075do
9076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9077if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082fi
9083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9085else
9086 # Is the header compilable?
9087echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9089cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095$ac_includes_default
9096#include <$ac_header>
9097_ACEOF
9098rm -f conftest.$ac_objext
9099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_header_compiler=yes
9121else
9122 echo "$as_me: failed program was:" >&5
9123sed 's/^/| /' conftest.$ac_ext >&5
9124
9125ac_header_compiler=no
9126fi
9127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129echo "${ECHO_T}$ac_header_compiler" >&6
9130
9131# Is the header present?
9132echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9134cat >conftest.$ac_ext <<_ACEOF
9135/* confdefs.h. */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h. */
9140#include <$ac_header>
9141_ACEOF
9142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } >/dev/null; then
9150 if test -s conftest.err; then
9151 ac_cpp_err=$ac_c_preproc_warn_flag
9152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9153 else
9154 ac_cpp_err=
9155 fi
9156else
9157 ac_cpp_err=yes
9158fi
9159if test -z "$ac_cpp_err"; then
9160 ac_header_preproc=yes
9161else
9162 echo "$as_me: failed program was:" >&5
9163sed 's/^/| /' conftest.$ac_ext >&5
9164
9165 ac_header_preproc=no
9166fi
9167rm -f conftest.err conftest.$ac_ext
9168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169echo "${ECHO_T}$ac_header_preproc" >&6
9170
9171# So? What about this header?
9172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173 yes:no: )
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178 ac_header_preproc=yes
9179 ;;
9180 no:yes:* )
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193 (
9194 cat <<\_ASBOX
9195## ----------------------------------- ##
9196## Report this to llvmbugs@cs.uiuc.edu ##
9197## ----------------------------------- ##
9198_ASBOX
9199 ) |
9200 sed "s/^/$as_me: WARNING: /" >&2
9201 ;;
9202esac
9203echo "$as_me:$LINENO: checking for $ac_header" >&5
9204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207else
9208 eval "$as_ac_Header=\$ac_header_preproc"
9209fi
9210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212
9213fi
9214if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217_ACEOF
9218 break
9219fi
9220
9221done
9222
9223
9224
9225
9226for ac_func in strchr index
9227do
9228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9229echo "$as_me:$LINENO: checking for $ac_func" >&5
9230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9231if eval "test \"\${$as_ac_var+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234 cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h. */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h. */
9240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242#define $ac_func innocuous_$ac_func
9243
9244/* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char $ac_func (); below.
9246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247 <limits.h> exists even on freestanding compilers. */
9248
9249#ifdef __STDC__
9250# include <limits.h>
9251#else
9252# include <assert.h>
9253#endif
9254
9255#undef $ac_func
9256
9257/* Override any gcc2 internal prototype to avoid an error. */
9258#ifdef __cplusplus
9259extern "C"
9260{
9261#endif
9262/* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9264char $ac_func ();
9265/* The GNU C library defines this for functions which it implements
9266 to always fail with ENOSYS. Some functions are actually named
9267 something starting with __ and the normal name is an alias. */
9268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9269choke me
9270#else
9271char (*f) () = $ac_func;
9272#endif
9273#ifdef __cplusplus
9274}
9275#endif
9276
9277int
9278main ()
9279{
9280return f != $ac_func;
9281 ;
9282 return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext conftest$ac_exeext
9286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 eval "$as_ac_var=yes"
9308else
9309 echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
9312eval "$as_ac_var=no"
9313fi
9314rm -f conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316fi
9317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9319if test `eval echo '${'$as_ac_var'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9322_ACEOF
9323 break
9324fi
9325done
9326
9327
9328
9329for ac_func in strrchr rindex
9330do
9331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9332echo "$as_me:$LINENO: checking for $ac_func" >&5
9333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9334if eval "test \"\${$as_ac_var+set}\" = set"; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 cat >conftest.$ac_ext <<_ACEOF
9338/* confdefs.h. */
9339_ACEOF
9340cat confdefs.h >>conftest.$ac_ext
9341cat >>conftest.$ac_ext <<_ACEOF
9342/* end confdefs.h. */
9343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9345#define $ac_func innocuous_$ac_func
9346
9347/* System header to define __stub macros and hopefully few prototypes,
9348 which can conflict with char $ac_func (); below.
9349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 <limits.h> exists even on freestanding compilers. */
9351
9352#ifdef __STDC__
9353# include <limits.h>
9354#else
9355# include <assert.h>
9356#endif
9357
9358#undef $ac_func
9359
9360/* Override any gcc2 internal prototype to avoid an error. */
9361#ifdef __cplusplus
9362extern "C"
9363{
9364#endif
9365/* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9367char $ac_func ();
9368/* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9372choke me
9373#else
9374char (*f) () = $ac_func;
9375#endif
9376#ifdef __cplusplus
9377}
9378#endif
9379
9380int
9381main ()
9382{
9383return f != $ac_func;
9384 ;
9385 return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext conftest$ac_exeext
9389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -z "$ac_c_werror_flag"
9398 || test ! -s conftest.err'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 eval "$as_ac_var=yes"
9411else
9412 echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
9414
9415eval "$as_ac_var=no"
9416fi
9417rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419fi
9420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9422if test `eval echo '${'$as_ac_var'}'` = yes; then
9423 cat >>confdefs.h <<_ACEOF
9424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9425_ACEOF
9426 break
9427fi
9428done
9429
9430
9431
9432for ac_func in memcpy bcopy
9433do
9434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9435echo "$as_me:$LINENO: checking for $ac_func" >&5
9436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9437if eval "test \"\${$as_ac_var+set}\" = set"; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 cat >conftest.$ac_ext <<_ACEOF
9441/* confdefs.h. */
9442_ACEOF
9443cat confdefs.h >>conftest.$ac_ext
9444cat >>conftest.$ac_ext <<_ACEOF
9445/* end confdefs.h. */
9446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9448#define $ac_func innocuous_$ac_func
9449
9450/* System header to define __stub macros and hopefully few prototypes,
9451 which can conflict with char $ac_func (); below.
9452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9453 <limits.h> exists even on freestanding compilers. */
9454
9455#ifdef __STDC__
9456# include <limits.h>
9457#else
9458# include <assert.h>
9459#endif
9460
9461#undef $ac_func
9462
9463/* Override any gcc2 internal prototype to avoid an error. */
9464#ifdef __cplusplus
9465extern "C"
9466{
9467#endif
9468/* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9470char $ac_func ();
9471/* The GNU C library defines this for functions which it implements
9472 to always fail with ENOSYS. Some functions are actually named
9473 something starting with __ and the normal name is an alias. */
9474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9475choke me
9476#else
9477char (*f) () = $ac_func;
9478#endif
9479#ifdef __cplusplus
9480}
9481#endif
9482
9483int
9484main ()
9485{
9486return f != $ac_func;
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491rm -f conftest.$ac_objext conftest$ac_exeext
9492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 (eval $ac_try) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 eval "$as_ac_var=yes"
9514else
9515 echo "$as_me: failed program was:" >&5
9516sed 's/^/| /' conftest.$ac_ext >&5
9517
9518eval "$as_ac_var=no"
9519fi
9520rm -f conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522fi
9523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9525if test `eval echo '${'$as_ac_var'}'` = yes; then
9526 cat >>confdefs.h <<_ACEOF
9527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9528_ACEOF
9529 break
9530fi
9531done
9532
9533
9534
9535for ac_func in memmove strcmp
9536do
9537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538echo "$as_me:$LINENO: checking for $ac_func" >&5
9539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9540if eval "test \"\${$as_ac_var+set}\" = set"; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542else
9543 cat >conftest.$ac_ext <<_ACEOF
9544/* confdefs.h. */
9545_ACEOF
9546cat confdefs.h >>conftest.$ac_ext
9547cat >>conftest.$ac_ext <<_ACEOF
9548/* end confdefs.h. */
9549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551#define $ac_func innocuous_$ac_func
9552
9553/* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char $ac_func (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9557
9558#ifdef __STDC__
9559# include <limits.h>
9560#else
9561# include <assert.h>
9562#endif
9563
9564#undef $ac_func
9565
9566/* Override any gcc2 internal prototype to avoid an error. */
9567#ifdef __cplusplus
9568extern "C"
9569{
9570#endif
9571/* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9573char $ac_func ();
9574/* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9578choke me
9579#else
9580char (*f) () = $ac_func;
9581#endif
9582#ifdef __cplusplus
9583}
9584#endif
9585
9586int
9587main ()
9588{
9589return f != $ac_func;
9590 ;
9591 return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext conftest$ac_exeext
9595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag"
9604 || test ! -s conftest.err'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest$ac_exeext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 eval "$as_ac_var=yes"
9617else
9618 echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621eval "$as_ac_var=no"
9622fi
9623rm -f conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625fi
9626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9628if test `eval echo '${'$as_ac_var'}'` = yes; then
9629 cat >>confdefs.h <<_ACEOF
9630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631_ACEOF
9632
9633fi
9634done
9635
9636
9637
9638
9639for ac_func in closedir opendir readdir
9640do
9641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9642echo "$as_me:$LINENO: checking for $ac_func" >&5
9643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9644if eval "test \"\${$as_ac_var+set}\" = set"; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 cat >conftest.$ac_ext <<_ACEOF
9648/* confdefs.h. */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h. */
9653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9655#define $ac_func innocuous_$ac_func
9656
9657/* System header to define __stub macros and hopefully few prototypes,
9658 which can conflict with char $ac_func (); below.
9659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9660 <limits.h> exists even on freestanding compilers. */
9661
9662#ifdef __STDC__
9663# include <limits.h>
9664#else
9665# include <assert.h>
9666#endif
9667
9668#undef $ac_func
9669
9670/* Override any gcc2 internal prototype to avoid an error. */
9671#ifdef __cplusplus
9672extern "C"
9673{
9674#endif
9675/* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9677char $ac_func ();
9678/* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9682choke me
9683#else
9684char (*f) () = $ac_func;
9685#endif
9686#ifdef __cplusplus
9687}
9688#endif
9689
9690int
9691main ()
9692{
9693return f != $ac_func;
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 eval "$as_ac_var=yes"
9721else
9722 echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
9725eval "$as_ac_var=no"
9726fi
9727rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729fi
9730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9732if test `eval echo '${'$as_ac_var'}'` = yes; then
9733 cat >>confdefs.h <<_ACEOF
9734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9735_ACEOF
9736
9737fi
9738done
9739
9740
9741# Check whether --enable-shared or --disable-shared was given.
9742if test "${enable_shared+set}" = set; then
9743 enableval="$enable_shared"
9744 p=${PACKAGE-default}
9745 case $enableval in
9746 yes) enable_shared=yes ;;
9747 no) enable_shared=no ;;
9748 *)
9749 enable_shared=no
9750 # Look at the argument we got. We use all the common list separators.
9751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9752 for pkg in $enableval; do
9753 IFS="$lt_save_ifs"
9754 if test "X$pkg" = "X$p"; then
9755 enable_shared=yes
9756 fi
9757 done
9758 IFS="$lt_save_ifs"
9759 ;;
9760 esac
9761else
9762 enable_shared=yes
9763fi;
9764
9765# Check whether --enable-static or --disable-static was given.
9766if test "${enable_static+set}" = set; then
9767 enableval="$enable_static"
9768 p=${PACKAGE-default}
9769 case $enableval in
9770 yes) enable_static=yes ;;
9771 no) enable_static=no ;;
9772 *)
9773 enable_static=no
9774 # Look at the argument we got. We use all the common list separators.
9775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9776 for pkg in $enableval; do
9777 IFS="$lt_save_ifs"
9778 if test "X$pkg" = "X$p"; then
9779 enable_static=yes
9780 fi
9781 done
9782 IFS="$lt_save_ifs"
9783 ;;
9784 esac
9785else
9786 enable_static=yes
9787fi;
9788
9789# Check whether --enable-fast-install or --disable-fast-install was given.
9790if test "${enable_fast_install+set}" = set; then
9791 enableval="$enable_fast_install"
9792 p=${PACKAGE-default}
9793 case $enableval in
9794 yes) enable_fast_install=yes ;;
9795 no) enable_fast_install=no ;;
9796 *)
9797 enable_fast_install=no
9798 # Look at the argument we got. We use all the common list separators.
9799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9800 for pkg in $enableval; do
9801 IFS="$lt_save_ifs"
9802 if test "X$pkg" = "X$p"; then
9803 enable_fast_install=yes
9804 fi
9805 done
9806 IFS="$lt_save_ifs"
9807 ;;
9808 esac
9809else
9810 enable_fast_install=yes
9811fi;
9812
9813echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9814echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9815if test "${lt_cv_path_SED+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818 # Loop through the user's path and test for sed and gsed.
9819# Then use that list of sed's as ones to test for truncation.
9820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for lt_ac_prog in sed gsed; do
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9828 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9829 fi
9830 done
9831 done
9832done
9833lt_ac_max=0
9834lt_ac_count=0
9835# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9836# along with /bin/sed that truncates output.
9837for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9838 test ! -f $lt_ac_sed && break
9839 cat /dev/null > conftest.in
9840 lt_ac_count=0
9841 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9842 # Check for GNU sed and select it if it is found.
9843 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9844 lt_cv_path_SED=$lt_ac_sed
9845 break
9846 fi
9847 while true; do
9848 cat conftest.in conftest.in >conftest.tmp
9849 mv conftest.tmp conftest.in
9850 cp conftest.in conftest.nl
9851 echo >>conftest.nl
9852 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9853 cmp -s conftest.out conftest.nl || break
9854 # 10000 chars as input seems more than enough
9855 test $lt_ac_count -gt 10 && break
9856 lt_ac_count=`expr $lt_ac_count + 1`
9857 if test $lt_ac_count -gt $lt_ac_max; then
9858 lt_ac_max=$lt_ac_count
9859 lt_cv_path_SED=$lt_ac_sed
9860 fi
9861 done
9862done
9863
9864fi
9865
9866SED=$lt_cv_path_SED
9867echo "$as_me:$LINENO: result: $SED" >&5
9868echo "${ECHO_T}$SED" >&6
9869
9870
9871# Check whether --with-gnu-ld or --without-gnu-ld was given.
9872if test "${with_gnu_ld+set}" = set; then
9873 withval="$with_gnu_ld"
9874 test "$withval" = no || with_gnu_ld=yes
9875else
9876 with_gnu_ld=no
9877fi;
9878ac_prog=ld
9879if test "$GCC" = yes; then
9880 # Check if gcc -print-prog-name=ld gives a path.
9881 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9882echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9883 case $host in
9884 *-*-mingw*)
9885 # gcc leaves a trailing carriage return which upsets mingw
9886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9887 *)
9888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9889 esac
9890 case $ac_prog in
9891 # Accept absolute paths.
9892 [\\/]* | ?:[\\/]*)
9893 re_direlt='/[^/][^/]*/\.\./'
9894 # Canonicalize the pathname of ld
9895 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9896 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9897 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9898 done
9899 test -z "$LD" && LD="$ac_prog"
9900 ;;
9901 "")
9902 # If it fails, then pretend we aren't using GCC.
9903 ac_prog=ld
9904 ;;
9905 *)
9906 # If it is relative, then search for the first ld in PATH.
9907 with_gnu_ld=unknown
9908 ;;
9909 esac
9910elif test "$with_gnu_ld" = yes; then
9911 echo "$as_me:$LINENO: checking for GNU ld" >&5
9912echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9913else
9914 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9915echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9916fi
9917if test "${lt_cv_path_LD+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920 if test -z "$LD"; then
9921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9922 for ac_dir in $PATH; do
9923 IFS="$lt_save_ifs"
9924 test -z "$ac_dir" && ac_dir=.
9925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9926 lt_cv_path_LD="$ac_dir/$ac_prog"
9927 # Check to see if the program is GNU ld. I'd rather use --version,
9928 # but apparently some GNU ld's only accept -v.
9929 # Break only if it was the GNU/non-GNU ld that we prefer.
9930 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9931 *GNU* | *'with BFD'*)
9932 test "$with_gnu_ld" != no && break
9933 ;;
9934 *)
9935 test "$with_gnu_ld" != yes && break
9936 ;;
9937 esac
9938 fi
9939 done
9940 IFS="$lt_save_ifs"
9941else
9942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9943fi
9944fi
9945
9946LD="$lt_cv_path_LD"
9947if test -n "$LD"; then
9948 echo "$as_me:$LINENO: result: $LD" >&5
9949echo "${ECHO_T}$LD" >&6
9950else
9951 echo "$as_me:$LINENO: result: no" >&5
9952echo "${ECHO_T}no" >&6
9953fi
9954test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9955echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9956 { (exit 1); exit 1; }; }
9957echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9958echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9959if test "${lt_cv_prog_gnu_ld+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9963case `$LD -v 2>&1 </dev/null` in
9964*GNU* | *'with BFD'*)
9965 lt_cv_prog_gnu_ld=yes
9966 ;;
9967*)
9968 lt_cv_prog_gnu_ld=no
9969 ;;
9970esac
9971fi
9972echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9973echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9974with_gnu_ld=$lt_cv_prog_gnu_ld
9975
9976
9977echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9978echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9979if test "${lt_cv_ld_reload_flag+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982 lt_cv_ld_reload_flag='-r'
9983fi
9984echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9985echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9986reload_flag=$lt_cv_ld_reload_flag
9987case $reload_flag in
9988"" | " "*) ;;
9989*) reload_flag=" $reload_flag" ;;
9990esac
9991reload_cmds='$LD$reload_flag -o $output$reload_objs'
9992case $host_os in
9993 darwin*)
9994 if test "$GCC" = yes; then
9995 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9996 else
9997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9998 fi
9999 ;;
10000esac
10001
10002echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10003echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10004if test "${lt_cv_deplibs_check_method+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007 lt_cv_file_magic_cmd='$MAGIC_CMD'
10008lt_cv_file_magic_test_file=
10009lt_cv_deplibs_check_method='unknown'
10010# Need to set the preceding variable on all platforms that support
10011# interlibrary dependencies.
10012# 'none' -- dependencies not supported.
10013# `unknown' -- same as none, but documents that we really don't know.
10014# 'pass_all' -- all dependencies passed with no checks.
10015# 'test_compile' -- check by making test program.
10016# 'file_magic [[regex]]' -- check by looking for files in library path
10017# which responds to the $file_magic_cmd with a given extended regex.
10018# If you have `file' or equivalent on your system and you're not sure
10019# whether `pass_all' will *always* work, you probably want this one.
10020
10021case $host_os in
10022aix4* | aix5*)
10023 lt_cv_deplibs_check_method=pass_all
10024 ;;
10025
10026beos*)
10027 lt_cv_deplibs_check_method=pass_all
10028 ;;
10029
10030bsdi[45]*)
10031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10032 lt_cv_file_magic_cmd='/usr/bin/file -L'
10033 lt_cv_file_magic_test_file=/shlib/libc.so
10034 ;;
10035
10036cygwin*)
10037 # func_win32_libid is a shell function defined in ltmain.sh
10038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10039 lt_cv_file_magic_cmd='func_win32_libid'
10040 ;;
10041
10042mingw* | pw32*)
10043 # Base MSYS/MinGW do not provide the 'file' command needed by
10044 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10045 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10046 lt_cv_file_magic_cmd='$OBJDUMP -f'
10047 ;;
10048
10049darwin* | rhapsody*)
10050 lt_cv_deplibs_check_method=pass_all
10051 ;;
10052
10053freebsd* | kfreebsd*-gnu)
10054 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10055 case $host_cpu in
10056 i*86 )
10057 # Not sure whether the presence of OpenBSD here was a mistake.
10058 # Let's accept both of them until this is cleared up.
10059 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10060 lt_cv_file_magic_cmd=/usr/bin/file
10061 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10062 ;;
10063 esac
10064 else
10065 lt_cv_deplibs_check_method=pass_all
10066 fi
10067 ;;
10068
10069gnu*)
10070 lt_cv_deplibs_check_method=pass_all
10071 ;;
10072
10073hpux10.20* | hpux11*)
10074 lt_cv_file_magic_cmd=/usr/bin/file
10075 case "$host_cpu" in
10076 ia64*)
10077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10079 ;;
10080 hppa*64*)
10081 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]'
10082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10083 ;;
10084 *)
10085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10087 ;;
10088 esac
10089 ;;
10090
10091irix5* | irix6* | nonstopux*)
10092 case $LD in
10093 *-32|*"-32 ") libmagic=32-bit;;
10094 *-n32|*"-n32 ") libmagic=N32;;
10095 *-64|*"-64 ") libmagic=64-bit;;
10096 *) libmagic=never-match;;
10097 esac
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100
10101# This must be Linux ELF.
10102linux*)
10103 lt_cv_deplibs_check_method=pass_all
10104 ;;
10105
10106netbsd*)
10107 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10109 else
10110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10111 fi
10112 ;;
10113
10114newos6*)
10115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10116 lt_cv_file_magic_cmd=/usr/bin/file
10117 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10118 ;;
10119
10120nto-qnx*)
10121 lt_cv_deplibs_check_method=unknown
10122 ;;
10123
10124openbsd*)
10125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10127 else
10128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10129 fi
10130 ;;
10131
10132osf3* | osf4* | osf5*)
10133 lt_cv_deplibs_check_method=pass_all
10134 ;;
10135
10136sco3.2v5*)
10137 lt_cv_deplibs_check_method=pass_all
10138 ;;
10139
10140solaris*)
10141 lt_cv_deplibs_check_method=pass_all
10142 ;;
10143
10144sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10145 case $host_vendor in
10146 motorola)
10147 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]'
10148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10149 ;;
10150 ncr)
10151 lt_cv_deplibs_check_method=pass_all
10152 ;;
10153 sequent)
10154 lt_cv_file_magic_cmd='/bin/file'
10155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10156 ;;
10157 sni)
10158 lt_cv_file_magic_cmd='/bin/file'
10159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10160 lt_cv_file_magic_test_file=/lib/libc.so
10161 ;;
10162 siemens)
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165 esac
10166 ;;
10167
10168sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10169 lt_cv_deplibs_check_method=pass_all
10170 ;;
10171esac
10172
10173fi
10174echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10175echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10176file_magic_cmd=$lt_cv_file_magic_cmd
10177deplibs_check_method=$lt_cv_deplibs_check_method
10178test -z "$deplibs_check_method" && deplibs_check_method=unknown
10179
10180
10181
10182# If no C compiler was specified, use CC.
10183LTCC=${LTCC-"$CC"}
10184
10185# Allow CC to be a program name with arguments.
10186compiler=$CC
10187
10188# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10189if test "${enable_libtool_lock+set}" = set; then
10190 enableval="$enable_libtool_lock"
10191
10192fi;
10193test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10194
10195# Some flags need to be propagated to the compiler or linker for good
10196# libtool support.
10197case $host in
10198ia64-*-hpux*)
10199 # Find out which ABI we are using.
10200 echo 'int i;' > conftest.$ac_ext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; then
10206 case `/usr/bin/file conftest.$ac_objext` in
10207 *ELF-32*)
10208 HPUX_IA64_MODE="32"
10209 ;;
10210 *ELF-64*)
10211 HPUX_IA64_MODE="64"
10212 ;;
10213 esac
10214 fi
10215 rm -rf conftest*
10216 ;;
10217*-*-irix6*)
10218 # Find out which ABI we are using.
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000010219 echo '#line 10219 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; then
10225 if test "$lt_cv_prog_gnu_ld" = yes; then
10226 case `/usr/bin/file conftest.$ac_objext` in
10227 *32-bit*)
10228 LD="${LD-ld} -melf32bsmip"
10229 ;;
10230 *N32*)
10231 LD="${LD-ld} -melf32bmipn32"
10232 ;;
10233 *64-bit*)
10234 LD="${LD-ld} -melf64bmip"
10235 ;;
10236 esac
10237 else
10238 case `/usr/bin/file conftest.$ac_objext` in
10239 *32-bit*)
10240 LD="${LD-ld} -32"
10241 ;;
10242 *N32*)
10243 LD="${LD-ld} -n32"
10244 ;;
10245 *64-bit*)
10246 LD="${LD-ld} -64"
10247 ;;
10248 esac
10249 fi
10250 fi
10251 rm -rf conftest*
10252 ;;
10253
10254x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10255 # Find out which ABI we are using.
10256 echo 'int i;' > conftest.$ac_ext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; then
10262 case "`/usr/bin/file conftest.o`" in
10263 *32-bit*)
10264 case $host in
10265 x86_64-*linux*)
10266 LD="${LD-ld} -m elf_i386"
10267 ;;
10268 ppc64-*linux*|powerpc64-*linux*)
10269 LD="${LD-ld} -m elf32ppclinux"
10270 ;;
10271 s390x-*linux*)
10272 LD="${LD-ld} -m elf_s390"
10273 ;;
10274 sparc64-*linux*)
10275 LD="${LD-ld} -m elf32_sparc"
10276 ;;
10277 esac
10278 ;;
10279 *64-bit*)
10280 case $host in
10281 x86_64-*linux*)
10282 LD="${LD-ld} -m elf_x86_64"
10283 ;;
10284 ppc*-*linux*|powerpc*-*linux*)
10285 LD="${LD-ld} -m elf64ppc"
10286 ;;
10287 s390*-*linux*)
10288 LD="${LD-ld} -m elf64_s390"
10289 ;;
10290 sparc*-*linux*)
10291 LD="${LD-ld} -m elf64_sparc"
10292 ;;
10293 esac
10294 ;;
10295 esac
10296 fi
10297 rm -rf conftest*
10298 ;;
10299
10300*-*-sco3.2v5*)
10301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10302 SAVE_CFLAGS="$CFLAGS"
10303 CFLAGS="$CFLAGS -belf"
10304 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10305echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10306if test "${lt_cv_cc_needs_belf+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 ac_ext=c
10310ac_cpp='$CPP $CPPFLAGS'
10311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10313ac_compiler_gnu=$ac_cv_c_compiler_gnu
10314
10315 cat >conftest.$ac_ext <<_ACEOF
10316/* confdefs.h. */
10317_ACEOF
10318cat confdefs.h >>conftest.$ac_ext
10319cat >>conftest.$ac_ext <<_ACEOF
10320/* end confdefs.h. */
10321
10322_ACEOF
10323rm -f conftest.$ac_objext conftest$ac_exeext
10324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag"
10333 || test ! -s conftest.err'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest$ac_exeext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 lt_cv_cc_needs_belf=yes
10346else
10347 echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350lt_cv_cc_needs_belf=no
10351fi
10352rm -f conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 ac_ext=c
10355ac_cpp='$CPP $CPPFLAGS'
10356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10358ac_compiler_gnu=$ac_cv_c_compiler_gnu
10359
10360fi
10361echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10362echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10365 CFLAGS="$SAVE_CFLAGS"
10366 fi
10367 ;;
10368
10369esac
10370
10371need_locks="$enable_libtool_lock"
10372
10373
Reid Spencer2706f8c2004-09-19 23:53:36 +000010374
10375
10376if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10377 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10378 (test "X$CXX" != "Xg++"))) ; then
10379 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010380ac_cpp='$CXXCPP $CPPFLAGS'
10381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10384echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10385echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10386if test -z "$CXXCPP"; then
10387 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389else
John Criswell47fdd832003-07-14 16:52:07 +000010390 # Double quotes because CXXCPP needs to be expanded
10391 for CXXCPP in "$CXX -E" "/lib/cpp"
10392 do
10393 ac_preproc_ok=false
10394for ac_cxx_preproc_warn_flag in '' yes
10395do
10396 # Use a header file that comes with gcc, so configuring glibc
10397 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010400 # On the NeXT, cc -E runs the code through the compiler's parser,
10401 # not just through cpp. "Syntax error" is here to catch this case.
10402 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010403/* confdefs.h. */
10404_ACEOF
10405cat confdefs.h >>conftest.$ac_ext
10406cat >>conftest.$ac_ext <<_ACEOF
10407/* end confdefs.h. */
10408#ifdef __STDC__
10409# include <limits.h>
10410#else
10411# include <assert.h>
10412#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010413 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010414_ACEOF
10415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10417 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010418 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010419 rm -f conftest.er1
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } >/dev/null; then
10423 if test -s conftest.err; then
10424 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010426 else
John Criswell47fdd832003-07-14 16:52:07 +000010427 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010428 fi
John Criswell47fdd832003-07-14 16:52:07 +000010429else
10430 ac_cpp_err=yes
10431fi
10432if test -z "$ac_cpp_err"; then
10433 :
10434else
10435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010436sed 's/^/| /' conftest.$ac_ext >&5
10437
John Criswell47fdd832003-07-14 16:52:07 +000010438 # Broken: fails on valid input.
10439continue
10440fi
10441rm -f conftest.err conftest.$ac_ext
10442
10443 # OK, works on sane cases. Now check whether non-existent headers
10444 # can be detected and how.
10445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010451#include <ac_nonexistent.h>
10452_ACEOF
10453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10455 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010456 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } >/dev/null; then
10461 if test -s conftest.err; then
10462 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010464 else
10465 ac_cpp_err=
10466 fi
10467else
10468 ac_cpp_err=yes
10469fi
10470if test -z "$ac_cpp_err"; then
10471 # Broken: success on invalid input.
10472continue
10473else
10474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010475sed 's/^/| /' conftest.$ac_ext >&5
10476
John Criswell47fdd832003-07-14 16:52:07 +000010477 # Passes both tests.
10478ac_preproc_ok=:
10479break
10480fi
10481rm -f conftest.err conftest.$ac_ext
10482
10483done
10484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10485rm -f conftest.err conftest.$ac_ext
10486if $ac_preproc_ok; then
10487 break
John Criswell7a73b802003-06-30 21:59:07 +000010488fi
10489
John Criswell47fdd832003-07-14 16:52:07 +000010490 done
10491 ac_cv_prog_CXXCPP=$CXXCPP
10492
10493fi
10494 CXXCPP=$ac_cv_prog_CXXCPP
10495else
10496 ac_cv_prog_CXXCPP=$CXXCPP
10497fi
10498echo "$as_me:$LINENO: result: $CXXCPP" >&5
10499echo "${ECHO_T}$CXXCPP" >&6
10500ac_preproc_ok=false
10501for ac_cxx_preproc_warn_flag in '' yes
10502do
10503 # Use a header file that comes with gcc, so configuring glibc
10504 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10506 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010507 # On the NeXT, cc -E runs the code through the compiler's parser,
10508 # not just through cpp. "Syntax error" is here to catch this case.
10509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
10515#ifdef __STDC__
10516# include <limits.h>
10517#else
10518# include <assert.h>
10519#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010520 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010521_ACEOF
10522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10524 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010525 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } >/dev/null; then
10530 if test -s conftest.err; then
10531 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010533 else
10534 ac_cpp_err=
10535 fi
10536else
10537 ac_cpp_err=yes
10538fi
10539if test -z "$ac_cpp_err"; then
10540 :
10541else
10542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010543sed 's/^/| /' conftest.$ac_ext >&5
10544
John Criswell47fdd832003-07-14 16:52:07 +000010545 # Broken: fails on valid input.
10546continue
10547fi
10548rm -f conftest.err conftest.$ac_ext
10549
10550 # OK, works on sane cases. Now check whether non-existent headers
10551 # can be detected and how.
10552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010558#include <ac_nonexistent.h>
10559_ACEOF
10560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10562 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010563 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } >/dev/null; then
10568 if test -s conftest.err; then
10569 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010571 else
10572 ac_cpp_err=
10573 fi
10574else
10575 ac_cpp_err=yes
10576fi
10577if test -z "$ac_cpp_err"; then
10578 # Broken: success on invalid input.
10579continue
10580else
10581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010582sed 's/^/| /' conftest.$ac_ext >&5
10583
John Criswell47fdd832003-07-14 16:52:07 +000010584 # Passes both tests.
10585ac_preproc_ok=:
10586break
10587fi
10588rm -f conftest.err conftest.$ac_ext
10589
10590done
10591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10592rm -f conftest.err conftest.$ac_ext
10593if $ac_preproc_ok; then
10594 :
10595else
John Criswell0c38eaf2003-09-10 15:17:25 +000010596 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10597See \`config.log' for more details." >&5
10598echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10599See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010600 { (exit 1); exit 1; }; }
10601fi
10602
10603ac_ext=cc
10604ac_cpp='$CXXCPP $CPPFLAGS'
10605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10608
Reid Spencer2706f8c2004-09-19 23:53:36 +000010609fi
10610
John Criswell47fdd832003-07-14 16:52:07 +000010611
10612ac_ext=f
10613ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10614ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10616if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010617 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 +000010618 do
10619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_prog_F77+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625else
10626 if test -n "$F77"; then
10627 ac_cv_prog_F77="$F77" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
10643fi
10644fi
10645F77=$ac_cv_prog_F77
10646if test -n "$F77"; then
10647 echo "$as_me:$LINENO: result: $F77" >&5
10648echo "${ECHO_T}$F77" >&6
10649else
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
10652fi
10653
10654 test -n "$F77" && break
10655 done
10656fi
10657if test -z "$F77"; then
10658 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010659 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 +000010660do
10661 # Extract the first word of "$ac_prog", so it can be a program name with args.
10662set dummy $ac_prog; ac_word=$2
10663echo "$as_me:$LINENO: checking for $ac_word" >&5
10664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10665if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668 if test -n "$ac_ct_F77"; then
10669 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_prog_ac_ct_F77="$ac_prog"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683done
10684
10685fi
10686fi
10687ac_ct_F77=$ac_cv_prog_ac_ct_F77
10688if test -n "$ac_ct_F77"; then
10689 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10690echo "${ECHO_T}$ac_ct_F77" >&6
10691else
10692 echo "$as_me:$LINENO: result: no" >&5
10693echo "${ECHO_T}no" >&6
10694fi
10695
10696 test -n "$ac_ct_F77" && break
10697done
10698
10699 F77=$ac_ct_F77
10700fi
10701
10702
10703# Provide some information about the compiler.
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000010704echo "$as_me:10704:" \
John Criswell47fdd832003-07-14 16:52:07 +000010705 "checking for Fortran 77 compiler version" >&5
10706ac_compiler=`set X $ac_compile; echo $2`
10707{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10708 (eval $ac_compiler --version </dev/null >&5) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }
10712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10713 (eval $ac_compiler -v </dev/null >&5) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10718 (eval $ac_compiler -V </dev/null >&5) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010722rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010723
10724# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010725# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010726ac_save_ext=$ac_ext
10727ac_ext=F
10728echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10729echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10730if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732else
10733 cat >conftest.$ac_ext <<_ACEOF
10734 program main
10735#ifndef __GNUC__
10736 choke me
10737#endif
10738
10739 end
10740_ACEOF
10741rm -f conftest.$ac_objext
10742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010743 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010750 { ac_try='test -z "$ac_f77_werror_flag"
10751 || test ! -s conftest.err'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_compiler_gnu=yes
10764else
10765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010766sed 's/^/| /' conftest.$ac_ext >&5
10767
John Criswell47fdd832003-07-14 16:52:07 +000010768ac_compiler_gnu=no
10769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010771ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10772
10773fi
10774echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10775echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10776ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010777ac_test_FFLAGS=${FFLAGS+set}
10778ac_save_FFLAGS=$FFLAGS
10779FFLAGS=
10780echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10781echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10782if test "${ac_cv_prog_f77_g+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784else
10785 FFLAGS=-g
10786cat >conftest.$ac_ext <<_ACEOF
10787 program main
10788
10789 end
10790_ACEOF
10791rm -f conftest.$ac_objext
10792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010793 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010794 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010800 { ac_try='test -z "$ac_f77_werror_flag"
10801 || test ! -s conftest.err'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_cv_prog_f77_g=yes
10814else
10815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010816sed 's/^/| /' conftest.$ac_ext >&5
10817
John Criswell47fdd832003-07-14 16:52:07 +000010818ac_cv_prog_f77_g=no
10819fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010821
10822fi
10823echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10824echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10825if test "$ac_test_FFLAGS" = set; then
10826 FFLAGS=$ac_save_FFLAGS
10827elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010828 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010829 FFLAGS="-g -O2"
10830 else
10831 FFLAGS="-g"
10832 fi
10833else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010834 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010835 FFLAGS="-O2"
10836 else
10837 FFLAGS=
10838 fi
10839fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010840
10841G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010842ac_ext=c
10843ac_cpp='$CPP $CPPFLAGS'
10844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847
10848
10849
10850# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10851
10852# find the maximum length of command line arguments
10853echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10854echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10855if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010859 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010860
10861 case $build_os in
10862 msdosdjgpp*)
10863 # On DJGPP, this test can blow up pretty badly due to problems in libc
10864 # (any single argument exceeding 2000 bytes causes a buffer overrun
10865 # during glob expansion). Even if it were fixed, the result of this
10866 # check would be larger than it should be.
10867 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10868 ;;
10869
10870 gnu*)
10871 # Under GNU Hurd, this test is not required because there is
10872 # no limit to the length of command line arguments.
10873 # Libtool will interpret -1 as no limit whatsoever
10874 lt_cv_sys_max_cmd_len=-1;
10875 ;;
10876
10877 cygwin* | mingw*)
10878 # On Win9x/ME, this test blows up -- it succeeds, but takes
10879 # about 5 minutes as the teststring grows exponentially.
10880 # Worse, since 9x/ME are not pre-emptively multitasking,
10881 # you end up with a "frozen" computer, even though with patience
10882 # the test eventually succeeds (with a max line length of 256k).
10883 # Instead, let's just punt: use the minimum linelength reported by
10884 # all of the supported platforms: 8192 (on NT/2K/XP).
10885 lt_cv_sys_max_cmd_len=8192;
10886 ;;
10887
Reid Spencer2706f8c2004-09-19 23:53:36 +000010888 amigaos*)
10889 # On AmigaOS with pdksh, this test takes hours, literally.
10890 # So we just punt and use a minimum line length of 8192.
10891 lt_cv_sys_max_cmd_len=8192;
10892 ;;
10893
10894 netbsd* | freebsd* | openbsd* | darwin* )
10895 # This has been around since 386BSD, at least. Likely further.
10896 if test -x /sbin/sysctl; then
10897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10898 elif test -x /usr/sbin/sysctl; then
10899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10900 else
10901 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10902 fi
10903 # And add a safety zone
10904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10905 ;;
10906
John Criswell47fdd832003-07-14 16:52:07 +000010907 *)
10908 # If test is not a shell built-in, we'll probably end up computing a
10909 # maximum length that is only half of the actual maximum length, but
10910 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10912 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10913 = "XX$teststring") >/dev/null 2>&1 &&
10914 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010915 lt_cv_sys_max_cmd_len=$new_result &&
10916 test $i != 17 # 1/2 MB should be enough
10917 do
10918 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010919 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010920 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010921 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010922 # Add a significant safety factor because C++ compilers can tack on massive
10923 # amounts of additional arguments before passing them to the linker.
10924 # It appears as though 1/2 is a usable value.
10925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10926 ;;
10927 esac
10928
10929fi
10930
10931if test -n $lt_cv_sys_max_cmd_len ; then
10932 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10933echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10934else
10935 echo "$as_me:$LINENO: result: none" >&5
10936echo "${ECHO_T}none" >&6
10937fi
10938
10939
10940
10941
10942# Check for command to grab the raw symbol name followed by C symbol from nm.
10943echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10944echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10945if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948
10949# These are sane defaults that work on at least a few old systems.
10950# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10951
10952# Character class describing NM global symbol codes.
10953symcode='[BCDEGRST]'
10954
10955# Regexp to match symbols that can be accessed directly from C.
10956sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10957
10958# Transform the above into a raw symbol and a C symbol.
10959symxfrm='\1 \2\3 \3'
10960
10961# Transform an extracted symbol line into a proper C declaration
10962lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10963
10964# Transform an extracted symbol line into symbol name and symbol address
10965lt_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'"
10966
10967# Define system-specific variables.
10968case $host_os in
10969aix*)
10970 symcode='[BCDT]'
10971 ;;
10972cygwin* | mingw* | pw32*)
10973 symcode='[ABCDGISTW]'
10974 ;;
10975hpux*) # Its linker distinguishes data from code symbols
10976 if test "$host_cpu" = ia64; then
10977 symcode='[ABCDEGRST]'
10978 fi
10979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10980 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'"
10981 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010982linux*)
10983 if test "$host_cpu" = ia64; then
10984 symcode='[ABCDGIRSTW]'
10985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10986 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'"
10987 fi
10988 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010989irix* | nonstopux*)
10990 symcode='[BCDEGRST]'
10991 ;;
10992osf*)
10993 symcode='[BCDEGQRST]'
10994 ;;
10995solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010996 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010997 ;;
10998sysv4)
10999 symcode='[DFNSTU]'
11000 ;;
11001esac
11002
11003# Handle CRLF in mingw tool chain
11004opt_cr=
11005case $build_os in
11006mingw*)
11007 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11008 ;;
11009esac
11010
11011# If we're using GNU nm, then use its standard symbol codes.
11012case `$NM -V 2>&1` in
11013*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011014 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011015esac
11016
11017# Try without a prefix undercore, then with it.
11018for ac_symprfx in "" "_"; do
11019
11020 # Write the raw and C identifiers.
11021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11022
11023 # Check to see that the pipe works correctly.
11024 pipe_works=no
11025
11026 rm -f conftest*
11027 cat > conftest.$ac_ext <<EOF
11028#ifdef __cplusplus
11029extern "C" {
11030#endif
11031char nm_test_var;
11032void nm_test_func(){}
11033#ifdef __cplusplus
11034}
11035#endif
11036int main(){nm_test_var='a';nm_test_func();return(0);}
11037EOF
11038
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; then
11044 # Now try to grab the symbols.
11045 nlist=conftest.nm
11046 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11047 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && test -s "$nlist"; then
11051 # Try sorting and uniquifying the output.
11052 if sort "$nlist" | uniq > "$nlist"T; then
11053 mv -f "$nlist"T "$nlist"
11054 else
11055 rm -f "$nlist"T
11056 fi
11057
11058 # Make sure that we snagged all the symbols we need.
11059 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11060 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11061 cat <<EOF > conftest.$ac_ext
11062#ifdef __cplusplus
11063extern "C" {
11064#endif
11065
11066EOF
11067 # Now generate the symbol file.
11068 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11069
11070 cat <<EOF >> conftest.$ac_ext
11071#if defined (__STDC__) && __STDC__
11072# define lt_ptr_t void *
11073#else
11074# define lt_ptr_t char *
11075# define const
11076#endif
11077
11078/* The mapping between symbol names and symbols. */
11079const struct {
11080 const char *name;
11081 lt_ptr_t address;
11082}
11083lt_preloaded_symbols[] =
11084{
11085EOF
11086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11087 cat <<\EOF >> conftest.$ac_ext
11088 {0, (lt_ptr_t) 0}
11089};
11090
11091#ifdef __cplusplus
11092}
11093#endif
11094EOF
11095 # Now try linking the two files.
11096 mv conftest.$ac_objext conftstm.$ac_objext
11097 lt_save_LIBS="$LIBS"
11098 lt_save_CFLAGS="$CFLAGS"
11099 LIBS="conftstm.$ac_objext"
11100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102 (eval $ac_link) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11106 pipe_works=yes
11107 fi
11108 LIBS="$lt_save_LIBS"
11109 CFLAGS="$lt_save_CFLAGS"
11110 else
11111 echo "cannot find nm_test_func in $nlist" >&5
11112 fi
11113 else
11114 echo "cannot find nm_test_var in $nlist" >&5
11115 fi
11116 else
11117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11118 fi
11119 else
11120 echo "$progname: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 fi
11123 rm -f conftest* conftst*
11124
11125 # Do not use the global_symbol_pipe unless it works.
11126 if test "$pipe_works" = yes; then
11127 break
11128 else
11129 lt_cv_sys_global_symbol_pipe=
11130 fi
11131done
11132
11133fi
11134
11135if test -z "$lt_cv_sys_global_symbol_pipe"; then
11136 lt_cv_sys_global_symbol_to_cdecl=
11137fi
11138if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11139 echo "$as_me:$LINENO: result: failed" >&5
11140echo "${ECHO_T}failed" >&6
11141else
11142 echo "$as_me:$LINENO: result: ok" >&5
11143echo "${ECHO_T}ok" >&6
11144fi
11145
11146echo "$as_me:$LINENO: checking for objdir" >&5
11147echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11148if test "${lt_cv_objdir+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151 rm -f .libs 2>/dev/null
11152mkdir .libs 2>/dev/null
11153if test -d .libs; then
11154 lt_cv_objdir=.libs
11155else
11156 # MS-DOS does not allow filenames that begin with a dot.
11157 lt_cv_objdir=_libs
11158fi
11159rmdir .libs 2>/dev/null
11160fi
11161echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11162echo "${ECHO_T}$lt_cv_objdir" >&6
11163objdir=$lt_cv_objdir
11164
11165
11166
11167
11168
11169case $host_os in
11170aix3*)
11171 # AIX sometimes has problems with the GCC collect2 program. For some
11172 # reason, if we set the COLLECT_NAMES environment variable, the problems
11173 # vanish in a puff of smoke.
11174 if test "X${COLLECT_NAMES+set}" != Xset; then
11175 COLLECT_NAMES=
11176 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011177 fi
11178 ;;
11179esac
11180
John Criswell47fdd832003-07-14 16:52:07 +000011181# Sed substitution that helps us do robust quoting. It backslashifies
11182# metacharacters that are still active within double-quoted strings.
11183Xsed='sed -e s/^X//'
11184sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11185
11186# Same as above, but do not quote variable references.
11187double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11188
11189# Sed substitution to delay expansion of an escaped shell variable in a
11190# double_quote_subst'ed string.
11191delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11192
11193# Sed substitution to avoid accidental globbing in evaled expressions
11194no_glob_subst='s/\*/\\\*/g'
11195
11196# Constants:
11197rm="rm -f"
11198
11199# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011200default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011201can_build_shared=yes
11202
11203# All known linkers require a `.a' archive for static linking (except M$VC,
11204# which needs '.lib').
11205libext=a
11206ltmain="$ac_aux_dir/ltmain.sh"
11207ofile="$default_ofile"
11208with_gnu_ld="$lt_cv_prog_gnu_ld"
11209
11210if test -n "$ac_tool_prefix"; then
11211 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11212set dummy ${ac_tool_prefix}ar; ac_word=$2
11213echo "$as_me:$LINENO: checking for $ac_word" >&5
11214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11215if test "${ac_cv_prog_AR+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 if test -n "$AR"; then
11219 ac_cv_prog_AR="$AR" # Let the user override the test.
11220else
11221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $PATH
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_AR="${ac_tool_prefix}ar"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232done
11233done
11234
11235fi
11236fi
11237AR=$ac_cv_prog_AR
11238if test -n "$AR"; then
11239 echo "$as_me:$LINENO: result: $AR" >&5
11240echo "${ECHO_T}$AR" >&6
11241else
11242 echo "$as_me:$LINENO: result: no" >&5
11243echo "${ECHO_T}no" >&6
11244fi
11245
11246fi
11247if test -z "$ac_cv_prog_AR"; then
11248 ac_ct_AR=$AR
11249 # Extract the first word of "ar", so it can be a program name with args.
11250set dummy ar; ac_word=$2
11251echo "$as_me:$LINENO: checking for $ac_word" >&5
11252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11253if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 if test -n "$ac_ct_AR"; then
11257 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_ac_ct_AR="ar"
11267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
11271done
11272
11273 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11274fi
11275fi
11276ac_ct_AR=$ac_cv_prog_ac_ct_AR
11277if test -n "$ac_ct_AR"; then
11278 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11279echo "${ECHO_T}$ac_ct_AR" >&6
11280else
11281 echo "$as_me:$LINENO: result: no" >&5
11282echo "${ECHO_T}no" >&6
11283fi
11284
11285 AR=$ac_ct_AR
11286else
11287 AR="$ac_cv_prog_AR"
11288fi
11289
John Criswell7a73b802003-06-30 21:59:07 +000011290if test -n "$ac_tool_prefix"; then
11291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11292set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11293echo "$as_me:$LINENO: checking for $ac_word" >&5
11294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295if test "${ac_cv_prog_RANLIB+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 if test -n "$RANLIB"; then
11299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312done
11313done
11314
11315fi
11316fi
11317RANLIB=$ac_cv_prog_RANLIB
11318if test -n "$RANLIB"; then
11319 echo "$as_me:$LINENO: result: $RANLIB" >&5
11320echo "${ECHO_T}$RANLIB" >&6
11321else
11322 echo "$as_me:$LINENO: result: no" >&5
11323echo "${ECHO_T}no" >&6
11324fi
11325
11326fi
11327if test -z "$ac_cv_prog_RANLIB"; then
11328 ac_ct_RANLIB=$RANLIB
11329 # Extract the first word of "ranlib", so it can be a program name with args.
11330set dummy ranlib; ac_word=$2
11331echo "$as_me:$LINENO: checking for $ac_word" >&5
11332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11333if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335else
11336 if test -n "$ac_ct_RANLIB"; then
11337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11338else
11339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_ac_ct_RANLIB="ranlib"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350done
11351done
11352
11353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11354fi
11355fi
11356ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11357if test -n "$ac_ct_RANLIB"; then
11358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11359echo "${ECHO_T}$ac_ct_RANLIB" >&6
11360else
11361 echo "$as_me:$LINENO: result: no" >&5
11362echo "${ECHO_T}no" >&6
11363fi
11364
11365 RANLIB=$ac_ct_RANLIB
11366else
11367 RANLIB="$ac_cv_prog_RANLIB"
11368fi
11369
11370if test -n "$ac_tool_prefix"; then
11371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11372set dummy ${ac_tool_prefix}strip; ac_word=$2
11373echo "$as_me:$LINENO: checking for $ac_word" >&5
11374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11375if test "${ac_cv_prog_STRIP+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 if test -n "$STRIP"; then
11379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11380else
11381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382for as_dir in $PATH
11383do
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392done
11393done
11394
11395fi
11396fi
11397STRIP=$ac_cv_prog_STRIP
11398if test -n "$STRIP"; then
11399 echo "$as_me:$LINENO: result: $STRIP" >&5
11400echo "${ECHO_T}$STRIP" >&6
11401else
11402 echo "$as_me:$LINENO: result: no" >&5
11403echo "${ECHO_T}no" >&6
11404fi
11405
11406fi
11407if test -z "$ac_cv_prog_STRIP"; then
11408 ac_ct_STRIP=$STRIP
11409 # Extract the first word of "strip", so it can be a program name with args.
11410set dummy strip; ac_word=$2
11411echo "$as_me:$LINENO: checking for $ac_word" >&5
11412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11413if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415else
11416 if test -n "$ac_ct_STRIP"; then
11417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11418else
11419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11426 ac_cv_prog_ac_ct_STRIP="strip"
11427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11429 fi
11430done
11431done
11432
11433 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11434fi
11435fi
11436ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11437if test -n "$ac_ct_STRIP"; then
11438 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11439echo "${ECHO_T}$ac_ct_STRIP" >&6
11440else
11441 echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6
11443fi
11444
11445 STRIP=$ac_ct_STRIP
11446else
11447 STRIP="$ac_cv_prog_STRIP"
11448fi
11449
11450
John Criswell7a73b802003-06-30 21:59:07 +000011451old_CC="$CC"
11452old_CFLAGS="$CFLAGS"
11453
11454# Set sane defaults for various variables
11455test -z "$AR" && AR=ar
11456test -z "$AR_FLAGS" && AR_FLAGS=cru
11457test -z "$AS" && AS=as
11458test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011459test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011460test -z "$DLLTOOL" && DLLTOOL=dlltool
11461test -z "$LD" && LD=ld
11462test -z "$LN_S" && LN_S="ln -s"
11463test -z "$MAGIC_CMD" && MAGIC_CMD=file
11464test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011465test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011466test -z "$OBJDUMP" && OBJDUMP=objdump
11467test -z "$RANLIB" && RANLIB=:
11468test -z "$STRIP" && STRIP=:
11469test -z "$ac_objext" && ac_objext=o
11470
John Criswell7a73b802003-06-30 21:59:07 +000011471# Determine commands to create old-style static archives.
11472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11473old_postinstall_cmds='chmod 644 $oldlib'
11474old_postuninstall_cmds=
11475
11476if test -n "$RANLIB"; then
11477 case $host_os in
11478 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011479 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011480 ;;
11481 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011482 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011483 ;;
11484 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011486fi
11487
Reid Spencer2706f8c2004-09-19 23:53:36 +000011488cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11489
John Criswell47fdd832003-07-14 16:52:07 +000011490# Only perform the check for file, if the check method requires it
11491case $deplibs_check_method in
11492file_magic*)
11493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11494 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11495echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11496if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011498else
John Criswell47fdd832003-07-14 16:52:07 +000011499 case $MAGIC_CMD in
11500[\\/*] | ?:[\\/]*)
11501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11502 ;;
11503*)
11504 lt_save_MAGIC_CMD="$MAGIC_CMD"
11505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11507 for ac_dir in $ac_dummy; do
11508 IFS="$lt_save_ifs"
11509 test -z "$ac_dir" && ac_dir=.
11510 if test -f $ac_dir/${ac_tool_prefix}file; then
11511 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11512 if test -n "$file_magic_test_file"; then
11513 case $deplibs_check_method in
11514 "file_magic "*)
11515 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11518 $EGREP "$file_magic_regex" > /dev/null; then
11519 :
11520 else
11521 cat <<EOF 1>&2
11522
11523*** Warning: the command libtool uses to detect shared libraries,
11524*** $file_magic_cmd, produces output that libtool cannot recognize.
11525*** The result is that libtool may fail to recognize shared libraries
11526*** as such. This will affect the creation of libtool libraries that
11527*** depend on shared libraries, but programs linked with such libtool
11528*** libraries will work regardless of this problem. Nevertheless, you
11529*** may want to report the problem to your system manager and/or to
11530*** bug-libtool@gnu.org
11531
11532EOF
11533 fi ;;
11534 esac
11535 fi
11536 break
11537 fi
11538 done
11539 IFS="$lt_save_ifs"
11540 MAGIC_CMD="$lt_save_MAGIC_CMD"
11541 ;;
11542esac
John Criswell7a73b802003-06-30 21:59:07 +000011543fi
John Criswell7a73b802003-06-30 21:59:07 +000011544
John Criswell47fdd832003-07-14 16:52:07 +000011545MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11546if test -n "$MAGIC_CMD"; then
11547 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11548echo "${ECHO_T}$MAGIC_CMD" >&6
11549else
11550 echo "$as_me:$LINENO: result: no" >&5
11551echo "${ECHO_T}no" >&6
11552fi
John Criswell7a73b802003-06-30 21:59:07 +000011553
John Criswell47fdd832003-07-14 16:52:07 +000011554if test -z "$lt_cv_path_MAGIC_CMD"; then
11555 if test -n "$ac_tool_prefix"; then
11556 echo "$as_me:$LINENO: checking for file" >&5
11557echo $ECHO_N "checking for file... $ECHO_C" >&6
11558if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560else
11561 case $MAGIC_CMD in
11562[\\/*] | ?:[\\/]*)
11563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11564 ;;
11565*)
11566 lt_save_MAGIC_CMD="$MAGIC_CMD"
11567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11569 for ac_dir in $ac_dummy; do
11570 IFS="$lt_save_ifs"
11571 test -z "$ac_dir" && ac_dir=.
11572 if test -f $ac_dir/file; then
11573 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11574 if test -n "$file_magic_test_file"; then
11575 case $deplibs_check_method in
11576 "file_magic "*)
11577 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11580 $EGREP "$file_magic_regex" > /dev/null; then
11581 :
11582 else
11583 cat <<EOF 1>&2
11584
11585*** Warning: the command libtool uses to detect shared libraries,
11586*** $file_magic_cmd, produces output that libtool cannot recognize.
11587*** The result is that libtool may fail to recognize shared libraries
11588*** as such. This will affect the creation of libtool libraries that
11589*** depend on shared libraries, but programs linked with such libtool
11590*** libraries will work regardless of this problem. Nevertheless, you
11591*** may want to report the problem to your system manager and/or to
11592*** bug-libtool@gnu.org
11593
11594EOF
11595 fi ;;
11596 esac
11597 fi
11598 break
11599 fi
11600 done
11601 IFS="$lt_save_ifs"
11602 MAGIC_CMD="$lt_save_MAGIC_CMD"
11603 ;;
11604esac
11605fi
11606
11607MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11608if test -n "$MAGIC_CMD"; then
11609 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11610echo "${ECHO_T}$MAGIC_CMD" >&6
11611else
11612 echo "$as_me:$LINENO: result: no" >&5
11613echo "${ECHO_T}no" >&6
11614fi
11615
11616 else
11617 MAGIC_CMD=:
11618 fi
11619fi
11620
11621 fi
11622 ;;
11623esac
11624
Reid Spencer17795972004-11-18 09:47:37 +000011625enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011626enable_win32_dll=no
11627
11628# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11629if test "${enable_libtool_lock+set}" = set; then
11630 enableval="$enable_libtool_lock"
11631
11632fi;
11633test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11634
John Criswell7a73b802003-06-30 21:59:07 +000011635
11636# Check whether --with-pic or --without-pic was given.
11637if test "${with_pic+set}" = set; then
11638 withval="$with_pic"
11639 pic_mode="$withval"
11640else
11641 pic_mode=default
11642fi;
11643test -z "$pic_mode" && pic_mode=default
11644
John Criswell47fdd832003-07-14 16:52:07 +000011645# Use C for the default configuration in the libtool script
11646tagname=
11647lt_save_CC="$CC"
11648ac_ext=c
11649ac_cpp='$CPP $CPPFLAGS'
11650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11652ac_compiler_gnu=$ac_cv_c_compiler_gnu
11653
11654
11655# Source file extension for C test sources.
11656ac_ext=c
11657
11658# Object file extension for compiled C test sources.
11659objext=o
11660objext=$objext
11661
11662# Code to be used in simple compile tests
11663lt_simple_compile_test_code="int some_variable = 0;\n"
11664
11665# Code to be used in simple link tests
11666lt_simple_link_test_code='int main(){return(0);}\n'
11667
11668
11669# If no C compiler was specified, use CC.
11670LTCC=${LTCC-"$CC"}
11671
11672# Allow CC to be a program name with arguments.
11673compiler=$CC
11674
11675
11676#
11677# Check for any special shared library compilation flags.
11678#
11679lt_prog_cc_shlib=
11680if test "$GCC" = no; then
11681 case $host_os in
11682 sco3.2v5*)
11683 lt_prog_cc_shlib='-belf'
11684 ;;
11685 esac
11686fi
11687if test -n "$lt_prog_cc_shlib"; then
11688 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11689echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11690 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11691 else
11692 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11693echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11694 lt_cv_prog_cc_can_build_shared=no
11695 fi
11696fi
11697
11698
11699#
11700# Check to make sure the static flag actually works.
11701#
11702echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11703echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11704if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706else
John Criswell47fdd832003-07-14 16:52:07 +000011707 lt_prog_compiler_static_works=no
11708 save_LDFLAGS="$LDFLAGS"
11709 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11710 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11712 # The compiler can only warn and ignore the option if not recognized
11713 # So say no if there are warnings
11714 if test -s conftest.err; then
11715 # Append any errors to the config.log.
11716 cat conftest.err 1>&5
11717 else
11718 lt_prog_compiler_static_works=yes
11719 fi
11720 fi
11721 $rm conftest*
11722 LDFLAGS="$save_LDFLAGS"
11723
11724fi
11725echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11726echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11727
11728if test x"$lt_prog_compiler_static_works" = xyes; then
11729 :
11730else
11731 lt_prog_compiler_static=
11732fi
11733
11734
11735
John Criswell47fdd832003-07-14 16:52:07 +000011736
11737lt_prog_compiler_no_builtin_flag=
11738
11739if test "$GCC" = yes; then
11740 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11741
Reid Spencer2706f8c2004-09-19 23:53:36 +000011742
11743echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011744echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11745if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 lt_cv_prog_compiler_rtti_exceptions=no
11749 ac_outfile=conftest.$ac_objext
11750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11751 lt_compiler_flag="-fno-rtti -fno-exceptions"
11752 # Insert the option either (1) after the last *FLAGS variable, or
11753 # (2) before a word containing "conftest.", or (3) at the end.
11754 # Note that $ac_compile itself does not contain backslashes and begins
11755 # with a dollar sign (not a hyphen), so the echo should work correctly.
11756 # The option is referenced via a variable to avoid confusing sed.
11757 lt_compile=`echo "$ac_compile" | $SED \
11758 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11760 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000011761 (eval echo "\"\$as_me:11761: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011762 (eval "$lt_compile" 2>conftest.err)
11763 ac_status=$?
11764 cat conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000011765 echo "$as_me:11765: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011766 if (exit $ac_status) && test -s "$ac_outfile"; then
11767 # The compiler can only warn and ignore the option if not recognized
11768 # So say no if there are warnings
11769 if test ! -s conftest.err; then
11770 lt_cv_prog_compiler_rtti_exceptions=yes
11771 fi
11772 fi
11773 $rm conftest*
11774
11775fi
11776echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11777echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11778
11779if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11780 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11781else
11782 :
11783fi
11784
11785fi
11786
11787lt_prog_compiler_wl=
11788lt_prog_compiler_pic=
11789lt_prog_compiler_static=
11790
11791echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11792echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011793
11794 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011795 lt_prog_compiler_wl='-Wl,'
11796 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011797
11798 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011799 aix*)
11800 # All AIX code is PIC.
11801 if test "$host_cpu" = ia64; then
11802 # AIX 5 now supports IA64 processor
11803 lt_prog_compiler_static='-Bstatic'
11804 fi
John Criswell7a73b802003-06-30 21:59:07 +000011805 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011806
John Criswell7a73b802003-06-30 21:59:07 +000011807 amigaos*)
11808 # FIXME: we need at least 68020 code to build shared libraries, but
11809 # adding the `-m68020' flag to GCC prevents building anything better,
11810 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011811 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011812 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011813
11814 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011815 # PIC is the default for these OSes.
11816 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011817
11818 mingw* | pw32* | os2*)
11819 # This hack is so that the source file can tell whether it is being
11820 # built for inclusion in a dll (and should export symbols for example).
11821 lt_prog_compiler_pic='-DDLL_EXPORT'
11822 ;;
11823
John Criswell7a73b802003-06-30 21:59:07 +000011824 darwin* | rhapsody*)
11825 # PIC is the default on this platform
11826 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011827 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011828 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011829
11830 msdosdjgpp*)
11831 # Just because we use GCC doesn't mean we suddenly get shared libraries
11832 # on systems that don't support them.
11833 lt_prog_compiler_can_build_shared=no
11834 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011836
John Criswell7a73b802003-06-30 21:59:07 +000011837 sysv4*MP*)
11838 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011839 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011840 fi
11841 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011842
11843 hpux*)
11844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11845 # not for PA HP-UX.
11846 case "$host_cpu" in
11847 hppa*64*|ia64*)
11848 # +Z the default
11849 ;;
11850 *)
11851 lt_prog_compiler_pic='-fPIC'
11852 ;;
11853 esac
11854 ;;
11855
John Criswell7a73b802003-06-30 21:59:07 +000011856 *)
John Criswell47fdd832003-07-14 16:52:07 +000011857 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011858 ;;
11859 esac
11860 else
John Criswell47fdd832003-07-14 16:52:07 +000011861 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011862 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011863 aix*)
11864 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011865 if test "$host_cpu" = ia64; then
11866 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011867 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011868 else
John Criswell47fdd832003-07-14 16:52:07 +000011869 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011870 fi
11871 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011872 darwin*)
11873 # PIC is the default on this platform
11874 # Common symbols not allowed in MH_DYLIB files
11875 case "$cc_basename" in
11876 xlc*)
11877 lt_prog_compiler_pic='-qnocommon'
11878 lt_prog_compiler_wl='-Wl,'
11879 ;;
11880 esac
11881 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011882
John Criswell47fdd832003-07-14 16:52:07 +000011883 mingw* | pw32* | os2*)
11884 # This hack is so that the source file can tell whether it is being
11885 # built for inclusion in a dll (and should export symbols for example).
11886 lt_prog_compiler_pic='-DDLL_EXPORT'
11887 ;;
11888
John Criswell7a73b802003-06-30 21:59:07 +000011889 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011890 lt_prog_compiler_wl='-Wl,'
11891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11892 # not for PA HP-UX.
11893 case "$host_cpu" in
11894 hppa*64*|ia64*)
11895 # +Z the default
11896 ;;
11897 *)
11898 lt_prog_compiler_pic='+Z'
11899 ;;
11900 esac
11901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11902 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011903 ;;
11904
John Criswell47fdd832003-07-14 16:52:07 +000011905 irix5* | irix6* | nonstopux*)
11906 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011907 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011908 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011909 ;;
11910
11911 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011912 lt_prog_compiler_pic='-KPIC'
11913 lt_prog_compiler_static='-Bstatic'
11914 ;;
11915
11916 linux*)
11917 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011918 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011919 lt_prog_compiler_wl='-Wl,'
11920 lt_prog_compiler_pic='-KPIC'
11921 lt_prog_compiler_static='-static'
11922 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011923 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011924 lt_prog_compiler_wl='-Wl,'
11925 # All Alpha code is PIC.
11926 lt_prog_compiler_static='-non_shared'
11927 ;;
11928 esac
John Criswell7a73b802003-06-30 21:59:07 +000011929 ;;
11930
11931 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011932 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011933 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011934 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011935 ;;
11936
11937 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011938 lt_prog_compiler_pic='-Kpic'
11939 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011940 ;;
11941
11942 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011943 lt_prog_compiler_wl='-Wl,'
11944 lt_prog_compiler_pic='-KPIC'
11945 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011946 ;;
11947
11948 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011949 lt_prog_compiler_wl='-Qoption ld '
11950 lt_prog_compiler_pic='-PIC'
11951 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011952 ;;
11953
11954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011958 ;;
11959
11960 sysv4*MP*)
11961 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011962 lt_prog_compiler_pic='-Kconform_pic'
11963 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011964 fi
11965 ;;
11966
John Criswell47fdd832003-07-14 16:52:07 +000011967 uts4*)
11968 lt_prog_compiler_pic='-pic'
11969 lt_prog_compiler_static='-Bstatic'
11970 ;;
11971
John Criswell7a73b802003-06-30 21:59:07 +000011972 *)
John Criswell47fdd832003-07-14 16:52:07 +000011973 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011974 ;;
11975 esac
11976 fi
11977
John Criswell47fdd832003-07-14 16:52:07 +000011978echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11979echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011980
John Criswell47fdd832003-07-14 16:52:07 +000011981#
11982# Check to make sure the PIC flag actually works.
11983#
11984if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011985
11986echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011987echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11988if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
John Criswell47fdd832003-07-14 16:52:07 +000011991 lt_prog_compiler_pic_works=no
11992 ac_outfile=conftest.$ac_objext
11993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 # The option is referenced via a variable to avoid confusing sed.
12000 lt_compile=`echo "$ac_compile" | $SED \
12001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000012004 (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012005 (eval "$lt_compile" 2>conftest.err)
12006 ac_status=$?
12007 cat conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000012008 echo "$as_me:12008: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012009 if (exit $ac_status) && test -s "$ac_outfile"; then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
12012 if test ! -s conftest.err; then
12013 lt_prog_compiler_pic_works=yes
12014 fi
12015 fi
12016 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012017
John Criswell47fdd832003-07-14 16:52:07 +000012018fi
12019echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12020echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012021
John Criswell47fdd832003-07-14 16:52:07 +000012022if test x"$lt_prog_compiler_pic_works" = xyes; then
12023 case $lt_prog_compiler_pic in
12024 "" | " "*) ;;
12025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12026 esac
John Criswell7a73b802003-06-30 21:59:07 +000012027else
John Criswell47fdd832003-07-14 16:52:07 +000012028 lt_prog_compiler_pic=
12029 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012030fi
12031
John Criswell7a73b802003-06-30 21:59:07 +000012032fi
John Criswell47fdd832003-07-14 16:52:07 +000012033case "$host_os" in
12034 # For platforms which do not support PIC, -DPIC is meaningless:
12035 *djgpp*)
12036 lt_prog_compiler_pic=
12037 ;;
12038 *)
12039 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12040 ;;
12041esac
John Criswell7a73b802003-06-30 21:59:07 +000012042
John Criswell7a73b802003-06-30 21:59:07 +000012043echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12044echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012045if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047else
John Criswell47fdd832003-07-14 16:52:07 +000012048 lt_cv_prog_compiler_c_o=no
12049 $rm -r conftest 2>/dev/null
12050 mkdir conftest
12051 cd conftest
12052 mkdir out
12053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012054
John Criswell47fdd832003-07-14 16:52:07 +000012055 lt_compiler_flag="-o out/conftest2.$ac_objext"
12056 # Insert the option either (1) after the last *FLAGS variable, or
12057 # (2) before a word containing "conftest.", or (3) at the end.
12058 # Note that $ac_compile itself does not contain backslashes and begins
12059 # with a dollar sign (not a hyphen), so the echo should work correctly.
12060 lt_compile=`echo "$ac_compile" | $SED \
12061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12063 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000012064 (eval echo "\"\$as_me:12064: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012065 (eval "$lt_compile" 2>out/conftest.err)
12066 ac_status=$?
12067 cat out/conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000012068 echo "$as_me:12068: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12070 then
12071 # The compiler can only warn and ignore the option if not recognized
12072 # So say no if there are warnings
12073 if test ! -s out/conftest.err; then
12074 lt_cv_prog_compiler_c_o=yes
12075 fi
12076 fi
12077 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012078 $rm conftest*
12079 # SGI C++ compiler will create directory out/ii_files/ for
12080 # template instantiation
12081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12082 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012083 cd ..
12084 rmdir conftest
12085 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012086
12087fi
John Criswell47fdd832003-07-14 16:52:07 +000012088echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12089echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012090
John Criswell7a73b802003-06-30 21:59:07 +000012091
John Criswell7a73b802003-06-30 21:59:07 +000012092hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012093if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012094 # do not overwrite the value of need_locks provided by the user
12095 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12096echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12097 hard_links=yes
12098 $rm conftest*
12099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12100 touch conftest.a
12101 ln conftest.a conftest.b 2>&5 || hard_links=no
12102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12103 echo "$as_me:$LINENO: result: $hard_links" >&5
12104echo "${ECHO_T}$hard_links" >&6
12105 if test "$hard_links" = no; then
12106 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12107echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12108 need_locks=warn
12109 fi
12110else
12111 need_locks=no
12112fi
John Criswell7a73b802003-06-30 21:59:07 +000012113
John Criswell47fdd832003-07-14 16:52:07 +000012114echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12115echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12116
12117 runpath_var=
12118 allow_undefined_flag=
12119 enable_shared_with_static_runtimes=no
12120 archive_cmds=
12121 archive_expsym_cmds=
12122 old_archive_From_new_cmds=
12123 old_archive_from_expsyms_cmds=
12124 export_dynamic_flag_spec=
12125 whole_archive_flag_spec=
12126 thread_safe_flag_spec=
12127 hardcode_libdir_flag_spec=
12128 hardcode_libdir_flag_spec_ld=
12129 hardcode_libdir_separator=
12130 hardcode_direct=no
12131 hardcode_minus_L=no
12132 hardcode_shlibpath_var=unsupported
12133 link_all_deplibs=unknown
12134 hardcode_automatic=no
12135 module_cmds=
12136 module_expsym_cmds=
12137 always_export_symbols=no
12138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12139 # include_expsyms should be a list of space-separated symbols to be *always*
12140 # included in the symbol list
12141 include_expsyms=
12142 # exclude_expsyms can be an extended regexp of symbols to exclude
12143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12145 # as well as any symbol that contains `d'.
12146 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12148 # platforms (ab)use it in PIC code, but their linkers get confused if
12149 # the symbol is explicitly referenced. Since portable code cannot
12150 # rely on this symbol name, it's probably fine to never include it in
12151 # preloaded symbol tables.
12152 extract_expsyms_cmds=
12153
12154 case $host_os in
12155 cygwin* | mingw* | pw32*)
12156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12157 # When not using gcc, we currently assume that we are using
12158 # Microsoft Visual C++.
12159 if test "$GCC" != yes; then
12160 with_gnu_ld=no
12161 fi
12162 ;;
12163 openbsd*)
12164 with_gnu_ld=no
12165 ;;
12166 esac
12167
12168 ld_shlibs=yes
12169 if test "$with_gnu_ld" = yes; then
12170 # If archive_cmds runs LD, not CC, wlarc should be empty
12171 wlarc='${wl}'
12172
12173 # See if GNU ld supports shared libraries.
12174 case $host_os in
12175 aix3* | aix4* | aix5*)
12176 # On AIX/PPC, the GNU linker is very broken
12177 if test "$host_cpu" != ia64; then
12178 ld_shlibs=no
12179 cat <<EOF 1>&2
12180
12181*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12182*** to be unable to reliably create shared libraries on AIX.
12183*** Therefore, libtool is disabling shared libraries support. If you
12184*** really care for shared libraries, you may want to modify your PATH
12185*** so that a non-GNU linker is found, and then restart.
12186
12187EOF
12188 fi
12189 ;;
12190
12191 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012192 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 +000012193 hardcode_libdir_flag_spec='-L$libdir'
12194 hardcode_minus_L=yes
12195
12196 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12197 # that the semantics of dynamic libraries on AmigaOS, at least up
12198 # to version 4, is to share data among multiple programs linked
12199 # with the same dynamic library. Since this doesn't match the
12200 # behavior of shared libraries on other platforms, we can't use
12201 # them.
12202 ld_shlibs=no
12203 ;;
12204
12205 beos*)
12206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12207 allow_undefined_flag=unsupported
12208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12209 # support --undefined. This deserves some investigation. FIXME
12210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211 else
12212 ld_shlibs=no
12213 fi
12214 ;;
12215
12216 cygwin* | mingw* | pw32*)
12217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12218 # as there is no search path for DLLs.
12219 hardcode_libdir_flag_spec='-L$libdir'
12220 allow_undefined_flag=unsupported
12221 always_export_symbols=no
12222 enable_shared_with_static_runtimes=yes
12223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12224
12225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12227 # If the export-symbols file already is a .def file (1st line
12228 # is EXPORTS), use it as is; otherwise, prepend...
12229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12230 cp $export_symbols $output_objdir/$soname.def;
12231 else
12232 echo EXPORTS > $output_objdir/$soname.def;
12233 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012234 fi~
12235 $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 +000012236 else
12237 ld_shlibs=no
12238 fi
12239 ;;
12240
12241 netbsd*)
12242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12243 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12244 wlarc=
12245 else
12246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12248 fi
12249 ;;
12250
12251 solaris* | sysv5*)
12252 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12253 ld_shlibs=no
12254 cat <<EOF 1>&2
12255
12256*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12257*** create shared libraries on Solaris systems. Therefore, libtool
12258*** is disabling shared libraries support. We urge you to upgrade GNU
12259*** binutils to release 2.9.1 or newer. Another option is to modify
12260*** your PATH or compiler configuration so that the native linker is
12261*** used, and then restart.
12262
12263EOF
12264 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12267 else
12268 ld_shlibs=no
12269 fi
12270 ;;
12271
12272 sunos4*)
12273 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12274 wlarc=
12275 hardcode_direct=yes
12276 hardcode_shlibpath_var=no
12277 ;;
12278
Reid Spencer2706f8c2004-09-19 23:53:36 +000012279 linux*)
12280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12281 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282 archive_cmds="$tmp_archive_cmds"
12283 supports_anon_versioning=no
12284 case `$LD -v 2>/dev/null` in
12285 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12286 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12287 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12288 *\ 2.11.*) ;; # other 2.11 versions
12289 *) supports_anon_versioning=yes ;;
12290 esac
12291 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012292 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12293cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12294$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012295 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12296 else
12297 archive_expsym_cmds="$tmp_archive_cmds"
12298 fi
12299 else
12300 ld_shlibs=no
12301 fi
12302 ;;
12303
John Criswell47fdd832003-07-14 16:52:07 +000012304 *)
12305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12308 else
12309 ld_shlibs=no
12310 fi
12311 ;;
12312 esac
12313
12314 if test "$ld_shlibs" = yes; then
12315 runpath_var=LD_RUN_PATH
12316 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12317 export_dynamic_flag_spec='${wl}--export-dynamic'
12318 # ancient GNU ld didn't support --whole-archive et. al.
12319 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12320 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12321 else
12322 whole_archive_flag_spec=
12323 fi
12324 fi
12325 else
12326 # PORTME fill in a description of your system's linker (not GNU ld)
12327 case $host_os in
12328 aix3*)
12329 allow_undefined_flag=unsupported
12330 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012331 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 +000012332 # Note: this linker hardcodes the directories in LIBPATH if there
12333 # are no directories specified by -L.
12334 hardcode_minus_L=yes
12335 if test "$GCC" = yes && test -z "$link_static_flag"; then
12336 # Neither direct hardcoding nor static linking is supported with a
12337 # broken collect2.
12338 hardcode_direct=unsupported
12339 fi
12340 ;;
12341
12342 aix4* | aix5*)
12343 if test "$host_cpu" = ia64; then
12344 # On IA64, the linker does run time linking by default, so we don't
12345 # have to do anything special.
12346 aix_use_runtimelinking=no
12347 exp_sym_flag='-Bexport'
12348 no_entry_flag=""
12349 else
12350 # If we're using GNU nm, then we don't want the "-C" option.
12351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12353 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'
12354 else
12355 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'
12356 fi
12357 aix_use_runtimelinking=no
12358
12359 # Test if we are trying to use run time linking or normal
12360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12361 # need to do runtime linking.
12362 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12363 for ld_flag in $LDFLAGS; do
12364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12365 aix_use_runtimelinking=yes
12366 break
12367 fi
12368 done
12369 esac
12370
12371 exp_sym_flag='-bexport'
12372 no_entry_flag='-bnoentry'
12373 fi
12374
12375 # When large executables or shared objects are built, AIX ld can
12376 # have problems creating the table of contents. If linking a library
12377 # or program results in "error TOC overflow" add -mminimal-toc to
12378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12380
12381 archive_cmds=''
12382 hardcode_direct=yes
12383 hardcode_libdir_separator=':'
12384 link_all_deplibs=yes
12385
12386 if test "$GCC" = yes; then
12387 case $host_os in aix4.012|aix4.012.*)
12388 # We only want to do this on AIX 4.2 and lower, the check
12389 # below for broken collect2 doesn't work under 4.3+
12390 collect2name=`${CC} -print-prog-name=collect2`
12391 if test -f "$collect2name" && \
12392 strings "$collect2name" | grep resolve_lib_name >/dev/null
12393 then
12394 # We have reworked collect2
12395 hardcode_direct=yes
12396 else
12397 # We have old collect2
12398 hardcode_direct=unsupported
12399 # It fails to find uninstalled libraries when the uninstalled
12400 # path is not listed in the libpath. Setting hardcode_minus_L
12401 # to unsupported forces relinking
12402 hardcode_minus_L=yes
12403 hardcode_libdir_flag_spec='-L$libdir'
12404 hardcode_libdir_separator=
12405 fi
12406 esac
12407 shared_flag='-shared'
12408 else
12409 # not using gcc
12410 if test "$host_cpu" = ia64; then
12411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12412 # chokes on -Wl,-G. The following line is correct:
12413 shared_flag='-G'
12414 else
12415 if test "$aix_use_runtimelinking" = yes; then
12416 shared_flag='${wl}-G'
12417 else
12418 shared_flag='${wl}-bM:SRE'
12419 fi
12420 fi
12421 fi
12422
12423 # It seems that -bexpall does not export symbols beginning with
12424 # underscore (_), so it is better to generate a list of symbols to export.
12425 always_export_symbols=yes
12426 if test "$aix_use_runtimelinking" = yes; then
12427 # Warning - without using the other runtime loading flags (-brtl),
12428 # -berok will link without error, but may produce a broken library.
12429 allow_undefined_flag='-berok'
12430 # Determine the default libpath from the value encoded in an empty executable.
12431 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012432/* confdefs.h. */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012437
John Criswell7a73b802003-06-30 21:59:07 +000012438int
12439main ()
12440{
John Criswell47fdd832003-07-14 16:52:07 +000012441
John Criswell7a73b802003-06-30 21:59:07 +000012442 ;
12443 return 0;
12444}
12445_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012446rm -f conftest.$ac_objext conftest$ac_exeext
12447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012448 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012468
John Criswell47fdd832003-07-14 16:52:07 +000012469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12470}'`
12471# Check for a 64-bit object if we didn't find anything.
12472if 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; }
12473}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012474else
12475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012476sed 's/^/| /' conftest.$ac_ext >&5
12477
John Criswell7a73b802003-06-30 21:59:07 +000012478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012479rm -f conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012481if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012482
John Criswell47fdd832003-07-14 16:52:07 +000012483 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12484 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"
12485 else
12486 if test "$host_cpu" = ia64; then
12487 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12488 allow_undefined_flag="-z nodefs"
12489 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"
12490 else
12491 # Determine the default libpath from the value encoded in an empty executable.
12492 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012493/* confdefs.h. */
12494_ACEOF
12495cat confdefs.h >>conftest.$ac_ext
12496cat >>conftest.$ac_ext <<_ACEOF
12497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012498
John Criswell47fdd832003-07-14 16:52:07 +000012499int
12500main ()
12501{
John Criswell7a73b802003-06-30 21:59:07 +000012502
John Criswell47fdd832003-07-14 16:52:07 +000012503 ;
12504 return 0;
12505}
12506_ACEOF
12507rm -f conftest.$ac_objext conftest$ac_exeext
12508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012509 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012516 { ac_try='test -z "$ac_c_werror_flag"
12517 || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012529
John Criswell47fdd832003-07-14 16:52:07 +000012530aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12531}'`
12532# Check for a 64-bit object if we didn't find anything.
12533if 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; }
12534}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012535else
John Criswell47fdd832003-07-14 16:52:07 +000012536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012537sed 's/^/| /' conftest.$ac_ext >&5
12538
John Criswell47fdd832003-07-14 16:52:07 +000012539fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012540rm -f conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012543
John Criswell47fdd832003-07-14 16:52:07 +000012544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12545 # Warning - without using the other run time loading flags,
12546 # -berok will link without error, but may produce a broken library.
12547 no_undefined_flag=' ${wl}-bernotok'
12548 allow_undefined_flag=' ${wl}-berok'
12549 # -bexpall does not export symbols beginning with underscore (_)
12550 always_export_symbols=yes
12551 # Exported symbols can be pulled into shared objects from archives
12552 whole_archive_flag_spec=' '
12553 archive_cmds_need_lc=yes
12554 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012555 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 +000012556 fi
12557 fi
John Criswell7a73b802003-06-30 21:59:07 +000012558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012559
12560 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012561 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 +000012562 hardcode_libdir_flag_spec='-L$libdir'
12563 hardcode_minus_L=yes
12564 # see comment about different semantics on the GNU ld section
12565 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012566 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012567
Reid Spencer2706f8c2004-09-19 23:53:36 +000012568 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012569 export_dynamic_flag_spec=-rdynamic
12570 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012571
John Criswell47fdd832003-07-14 16:52:07 +000012572 cygwin* | mingw* | pw32*)
12573 # When not using gcc, we currently assume that we are using
12574 # Microsoft Visual C++.
12575 # hardcode_libdir_flag_spec is actually meaningless, as there is
12576 # no search path for DLLs.
12577 hardcode_libdir_flag_spec=' '
12578 allow_undefined_flag=unsupported
12579 # Tell ltmain to make .lib files, not .a files.
12580 libext=lib
12581 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012582 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012583 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012585 # The linker will automatically build a .lib file if we build a DLL.
12586 old_archive_From_new_cmds='true'
12587 # FIXME: Should let the user specify the lib program.
12588 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12589 fix_srcfile_path='`cygpath -w "$srcfile"`'
12590 enable_shared_with_static_runtimes=yes
12591 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012592
John Criswell47fdd832003-07-14 16:52:07 +000012593 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012594 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012595 rhapsody* | darwin1.[012])
12596 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12597 ;;
12598 *) # Darwin 1.3 on
12599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12600 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12601 else
12602 case ${MACOSX_DEPLOYMENT_TARGET} in
12603 10.[012])
12604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12605 ;;
12606 10.*)
12607 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12608 ;;
12609 esac
12610 fi
12611 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012612 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012613 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012614 hardcode_direct=no
12615 hardcode_automatic=yes
12616 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012617 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012618 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012619 if test "$GCC" = yes ; then
12620 output_verbose_link_cmd='echo'
12621 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12622 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12623 # 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 +000012624 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}'
12625 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 +000012626 else
12627 case "$cc_basename" in
12628 xlc*)
12629 output_verbose_link_cmd='echo'
12630 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12632 # 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 +000012633 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}'
12634 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 +000012635 ;;
12636 *)
12637 ld_shlibs=no
12638 ;;
12639 esac
John Criswell7a73b802003-06-30 21:59:07 +000012640 fi
John Criswell47fdd832003-07-14 16:52:07 +000012641 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012642
John Criswell47fdd832003-07-14 16:52:07 +000012643 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012645 hardcode_libdir_flag_spec='-L$libdir'
12646 hardcode_shlibpath_var=no
12647 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012648
John Criswell47fdd832003-07-14 16:52:07 +000012649 freebsd1*)
12650 ld_shlibs=no
12651 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012652
John Criswell47fdd832003-07-14 16:52:07 +000012653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12654 # support. Future versions do this automatically, but an explicit c++rt0.o
12655 # does not break anything, and helps significantly (at the cost of a little
12656 # extra space).
12657 freebsd2.2*)
12658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12659 hardcode_libdir_flag_spec='-R$libdir'
12660 hardcode_direct=yes
12661 hardcode_shlibpath_var=no
12662 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012663
John Criswell47fdd832003-07-14 16:52:07 +000012664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12665 freebsd2*)
12666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12667 hardcode_direct=yes
12668 hardcode_minus_L=yes
12669 hardcode_shlibpath_var=no
12670 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012671
John Criswell47fdd832003-07-14 16:52:07 +000012672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012673 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12675 hardcode_libdir_flag_spec='-R$libdir'
12676 hardcode_direct=yes
12677 hardcode_shlibpath_var=no
12678 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012679
John Criswell47fdd832003-07-14 16:52:07 +000012680 hpux9*)
12681 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012682 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 +000012683 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012684 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 +000012685 fi
12686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12687 hardcode_libdir_separator=:
12688 hardcode_direct=yes
12689
12690 # hardcode_minus_L: Not really in the search PATH,
12691 # but as the default location of the library.
12692 hardcode_minus_L=yes
12693 export_dynamic_flag_spec='${wl}-E'
12694 ;;
12695
12696 hpux10* | hpux11*)
12697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12698 case "$host_cpu" in
12699 hppa*64*|ia64*)
12700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12701 ;;
12702 *)
12703 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12704 ;;
12705 esac
12706 else
12707 case "$host_cpu" in
12708 hppa*64*|ia64*)
12709 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12710 ;;
12711 *)
12712 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12713 ;;
12714 esac
12715 fi
12716 if test "$with_gnu_ld" = no; then
12717 case "$host_cpu" in
12718 hppa*64*)
12719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12720 hardcode_libdir_flag_spec_ld='+b $libdir'
12721 hardcode_libdir_separator=:
12722 hardcode_direct=no
12723 hardcode_shlibpath_var=no
12724 ;;
12725 ia64*)
12726 hardcode_libdir_flag_spec='-L$libdir'
12727 hardcode_direct=no
12728 hardcode_shlibpath_var=no
12729
12730 # hardcode_minus_L: Not really in the search PATH,
12731 # but as the default location of the library.
12732 hardcode_minus_L=yes
12733 ;;
12734 *)
12735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12736 hardcode_libdir_separator=:
12737 hardcode_direct=yes
12738 export_dynamic_flag_spec='${wl}-E'
12739
12740 # hardcode_minus_L: Not really in the search PATH,
12741 # but as the default location of the library.
12742 hardcode_minus_L=yes
12743 ;;
12744 esac
12745 fi
12746 ;;
12747
12748 irix5* | irix6* | nonstopux*)
12749 if test "$GCC" = yes; then
12750 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'
12751 else
12752 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'
12753 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12754 fi
12755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12756 hardcode_libdir_separator=:
12757 link_all_deplibs=yes
12758 ;;
12759
12760 netbsd*)
12761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12763 else
12764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12765 fi
12766 hardcode_libdir_flag_spec='-R$libdir'
12767 hardcode_direct=yes
12768 hardcode_shlibpath_var=no
12769 ;;
12770
12771 newsos6)
12772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12773 hardcode_direct=yes
12774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12775 hardcode_libdir_separator=:
12776 hardcode_shlibpath_var=no
12777 ;;
12778
12779 openbsd*)
12780 hardcode_direct=yes
12781 hardcode_shlibpath_var=no
12782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012784 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 +000012785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12786 export_dynamic_flag_spec='${wl}-E'
12787 else
12788 case $host_os in
12789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12791 hardcode_libdir_flag_spec='-R$libdir'
12792 ;;
12793 *)
12794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12796 ;;
12797 esac
12798 fi
12799 ;;
12800
12801 os2*)
12802 hardcode_libdir_flag_spec='-L$libdir'
12803 hardcode_minus_L=yes
12804 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012805 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 +000012806 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12807 ;;
12808
12809 osf3*)
12810 if test "$GCC" = yes; then
12811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12812 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'
12813 else
12814 allow_undefined_flag=' -expect_unresolved \*'
12815 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'
12816 fi
12817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12818 hardcode_libdir_separator=:
12819 ;;
12820
12821 osf4* | osf5*) # as osf3* with the addition of -msym flag
12822 if test "$GCC" = yes; then
12823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12824 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'
12825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12826 else
12827 allow_undefined_flag=' -expect_unresolved \*'
12828 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 +000012829 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12830 $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'
12831
John Criswell47fdd832003-07-14 16:52:07 +000012832 # Both c and cxx compiler support -rpath directly
12833 hardcode_libdir_flag_spec='-rpath $libdir'
12834 fi
12835 hardcode_libdir_separator=:
12836 ;;
12837
12838 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12840 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012841 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012842 runpath_var=LD_RUN_PATH
12843 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012844 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012845
John Criswell47fdd832003-07-14 16:52:07 +000012846 solaris*)
12847 no_undefined_flag=' -z text'
12848 if test "$GCC" = yes; then
12849 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12851 $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 +000012852 else
12853 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12855 $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 +000012856 fi
12857 hardcode_libdir_flag_spec='-R$libdir'
12858 hardcode_shlibpath_var=no
12859 case $host_os in
12860 solaris2.[0-5] | solaris2.[0-5].*) ;;
12861 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12863 esac
12864 link_all_deplibs=yes
12865 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012866
John Criswell47fdd832003-07-14 16:52:07 +000012867 sunos4*)
12868 if test "x$host_vendor" = xsequent; then
12869 # Use $CC to link under sequent, because it throws in some extra .o
12870 # files that make .init and .fini sections work.
12871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12872 else
12873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12874 fi
12875 hardcode_libdir_flag_spec='-L$libdir'
12876 hardcode_direct=yes
12877 hardcode_minus_L=yes
12878 hardcode_shlibpath_var=no
12879 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012880
John Criswell47fdd832003-07-14 16:52:07 +000012881 sysv4)
12882 case $host_vendor in
12883 sni)
12884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct=yes # is this really true???
12886 ;;
12887 siemens)
12888 ## LD is ld it makes a PLAMLIB
12889 ## CC just makes a GrossModule.
12890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12891 reload_cmds='$CC -r -o $output$reload_objs'
12892 hardcode_direct=no
12893 ;;
12894 motorola)
12895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12897 ;;
12898 esac
12899 runpath_var='LD_RUN_PATH'
12900 hardcode_shlibpath_var=no
12901 ;;
12902
12903 sysv4.3*)
12904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_shlibpath_var=no
12906 export_dynamic_flag_spec='-Bexport'
12907 ;;
12908
12909 sysv4*MP*)
12910 if test -d /usr/nec; then
12911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912 hardcode_shlibpath_var=no
12913 runpath_var=LD_RUN_PATH
12914 hardcode_runpath_var=yes
12915 ld_shlibs=yes
12916 fi
12917 ;;
12918
12919 sysv4.2uw2*)
12920 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12921 hardcode_direct=yes
12922 hardcode_minus_L=no
12923 hardcode_shlibpath_var=no
12924 hardcode_runpath_var=yes
12925 runpath_var=LD_RUN_PATH
12926 ;;
12927
12928 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12929 no_undefined_flag='${wl}-z ${wl}text'
12930 if test "$GCC" = yes; then
12931 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 else
12933 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12934 fi
12935 runpath_var='LD_RUN_PATH'
12936 hardcode_shlibpath_var=no
12937 ;;
12938
12939 sysv5*)
12940 no_undefined_flag=' -z text'
12941 # $CC -shared without GNU ld will not create a library from C++
12942 # object files and a static libstdc++, better avoid it by now
12943 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012944 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12945 $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 +000012946 hardcode_libdir_flag_spec=
12947 hardcode_shlibpath_var=no
12948 runpath_var='LD_RUN_PATH'
12949 ;;
12950
12951 uts4*)
12952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12953 hardcode_libdir_flag_spec='-L$libdir'
12954 hardcode_shlibpath_var=no
12955 ;;
12956
12957 *)
12958 ld_shlibs=no
12959 ;;
12960 esac
12961 fi
12962
John Criswell7a73b802003-06-30 21:59:07 +000012963echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12964echo "${ECHO_T}$ld_shlibs" >&6
12965test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012966
John Criswell47fdd832003-07-14 16:52:07 +000012967variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12968if test "$GCC" = yes; then
12969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12970fi
12971
12972#
12973# Do we need to explicitly link libc?
12974#
12975case "x$archive_cmds_need_lc" in
12976x|xyes)
12977 # Assume -lc should be added
12978 archive_cmds_need_lc=yes
12979
12980 if test "$enable_shared" = yes && test "$GCC" = yes; then
12981 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012982 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012983 # FIXME: we may have to deal with multi-command sequences.
12984 ;;
12985 '$CC '*)
12986 # Test whether the compiler implicitly links with -lc since on some
12987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12988 # to ld, don't add -lc before -lgcc.
12989 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12990echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12991 $rm conftest*
12992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12993
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } 2>conftest.err; then
12999 soname=conftest
13000 lib=conftest
13001 libobjs=conftest.$ac_objext
13002 deplibs=
13003 wl=$lt_prog_compiler_wl
13004 compiler_flags=-v
13005 linker_flags=-v
13006 verstring=
13007 output_objdir=.
13008 libname=conftest
13009 lt_save_allow_undefined_flag=$allow_undefined_flag
13010 allow_undefined_flag=
13011 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13012 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }
13016 then
13017 archive_cmds_need_lc=no
13018 else
13019 archive_cmds_need_lc=yes
13020 fi
13021 allow_undefined_flag=$lt_save_allow_undefined_flag
13022 else
13023 cat conftest.err 1>&5
13024 fi
13025 $rm conftest*
13026 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13027echo "${ECHO_T}$archive_cmds_need_lc" >&6
13028 ;;
13029 esac
13030 fi
13031 ;;
13032esac
13033
John Criswell7a73b802003-06-30 21:59:07 +000013034echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13035echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13036library_names_spec=
13037libname_spec='lib$name'
13038soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013039shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013040postinstall_cmds=
13041postuninstall_cmds=
13042finish_cmds=
13043finish_eval=
13044shlibpath_var=
13045shlibpath_overrides_runpath=unknown
13046version_type=none
13047dynamic_linker="$host_os ld.so"
13048sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013049if test "$GCC" = yes; then
13050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13051 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13052 # if the path contains ";" then we assume it to be the separator
13053 # otherwise default to the standard path separator (i.e. ":") - it is
13054 # assumed that no part of a normal pathname contains ";" but that should
13055 # okay in the real world where ";" in dirpaths is itself problematic.
13056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13057 else
13058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13059 fi
13060else
13061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13062fi
13063need_lib_prefix=unknown
13064hardcode_into_libs=no
13065
13066# when you set need_version to no, make sure it does not cause -set_version
13067# flags to be left without arguments
13068need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013069
13070case $host_os in
13071aix3*)
13072 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013074 shlibpath_var=LIBPATH
13075
John Criswell47fdd832003-07-14 16:52:07 +000013076 # AIX 3 has no versioning support, so we append a major version to the name.
13077 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013078 ;;
13079
13080aix4* | aix5*)
13081 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013082 need_lib_prefix=no
13083 need_version=no
13084 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013085 if test "$host_cpu" = ia64; then
13086 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013088 shlibpath_var=LD_LIBRARY_PATH
13089 else
13090 # With GCC up to 2.95.x, collect2 would create an import file
13091 # for dependence libraries. The import file would start with
13092 # the line `#! .'. This would cause the generated library to
13093 # depend on `.', always an invalid library. This was fixed in
13094 # development snapshots of GCC prior to 3.0.
13095 case $host_os in
13096 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13098 echo ' yes '
13099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13100 :
13101 else
13102 can_build_shared=no
13103 fi
13104 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013105 esac
John Criswell47fdd832003-07-14 16:52:07 +000013106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13107 # soname into executable. Probably we can add versioning support to
13108 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013109 if test "$aix_use_runtimelinking" = yes; then
13110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13111 # instead of lib<name>.a to let people know that these are not
13112 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013114 else
13115 # We preserve .a as extension for shared libraries through AIX4.2
13116 # and later when we are not doing run time linking.
13117 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013118 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013119 fi
13120 shlibpath_var=LIBPATH
13121 fi
13122 ;;
13123
13124amigaos*)
13125 library_names_spec='$libname.ixlibrary $libname.a'
13126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013127 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 +000013128 ;;
13129
13130beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013131 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013132 dynamic_linker="$host_os ld.so"
13133 shlibpath_var=LIBRARY_PATH
13134 ;;
13135
Reid Spencer2706f8c2004-09-19 23:53:36 +000013136bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013137 version_type=linux
13138 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013145 # the default ld.so.conf also contains /usr/contrib/lib and
13146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13147 # libtool to hard-code these into programs
13148 ;;
13149
13150cygwin* | mingw* | pw32*)
13151 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013152 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013153 need_version=no
13154 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013155
John Criswell7a73b802003-06-30 21:59:07 +000013156 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013157 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013158 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013160 postinstall_cmds='base_file=`basename \${file}`~
13161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13162 dldir=$destdir/`dirname \$dlpath`~
13163 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013164 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013167 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013168 shlibpath_overrides_runpath=yes
13169
13170 case $host_os in
13171 cygwin*)
13172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173 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 +000013174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013175 ;;
13176 mingw*)
13177 # MinGW DLLs use traditional 'lib' prefix
13178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13181 # It is most probably a Windows format PATH printed by
13182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13183 # path with ; separators, and with drive letters. We can handle the
13184 # drive letters (cygwin fileutils understands them), so leave them,
13185 # especially as we might pass files found there to a mingw objdump,
13186 # which wouldn't understand a cygwinified path. Ahh.
13187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188 else
13189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13190 fi
13191 ;;
13192 pw32*)
13193 # pw32 DLLs use 'pw' prefix rather than 'lib'
13194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13195 ;;
13196 esac
John Criswell7a73b802003-06-30 21:59:07 +000013197 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013198
John Criswell7a73b802003-06-30 21:59:07 +000013199 *)
John Criswell47fdd832003-07-14 16:52:07 +000013200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013201 ;;
13202 esac
13203 dynamic_linker='Win32 ld.exe'
13204 # FIXME: first we should search . and the directory the executable is in
13205 shlibpath_var=PATH
13206 ;;
13207
13208darwin* | rhapsody*)
13209 dynamic_linker="$host_os dyld"
13210 version_type=darwin
13211 need_lib_prefix=no
13212 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013214 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013215 shlibpath_overrides_runpath=yes
13216 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013217 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013219 if test "$GCC" = yes; then
13220 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"`
13221 else
13222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013223 fi
13224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13225 ;;
13226
13227dgux*)
13228 version_type=linux
13229 need_lib_prefix=no
13230 need_version=no
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13232 soname_spec='${libname}${release}${shared_ext}$major'
13233 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013234 ;;
13235
13236freebsd1*)
13237 dynamic_linker=no
13238 ;;
13239
Reid Spencer2706f8c2004-09-19 23:53:36 +000013240kfreebsd*-gnu)
13241 version_type=linux
13242 need_lib_prefix=no
13243 need_version=no
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=no
13248 hardcode_into_libs=yes
13249 dynamic_linker='GNU ld.so'
13250 ;;
13251
John Criswell7a73b802003-06-30 21:59:07 +000013252freebsd*)
13253 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13254 version_type=freebsd-$objformat
13255 case $version_type in
13256 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013258 need_version=no
13259 need_lib_prefix=no
13260 ;;
13261 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013263 need_version=yes
13264 ;;
13265 esac
13266 shlibpath_var=LD_LIBRARY_PATH
13267 case $host_os in
13268 freebsd2*)
13269 shlibpath_overrides_runpath=yes
13270 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013271 freebsd3.01* | freebsdelf3.01*)
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 ;;
13275 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013276 shlibpath_overrides_runpath=no
13277 hardcode_into_libs=yes
13278 ;;
13279 esac
13280 ;;
13281
13282gnu*)
13283 version_type=linux
13284 need_lib_prefix=no
13285 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013288 shlibpath_var=LD_LIBRARY_PATH
13289 hardcode_into_libs=yes
13290 ;;
13291
13292hpux9* | hpux10* | hpux11*)
13293 # Give a soname corresponding to the major version so that dld.sl refuses to
13294 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013295 version_type=sunos
13296 need_lib_prefix=no
13297 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013298 case "$host_cpu" in
13299 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013300 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013301 hardcode_into_libs=yes
13302 dynamic_linker="$host_os dld.so"
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 if test "X$HPUX_IA64_MODE" = X32; then
13308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13309 else
13310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13311 fi
13312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13313 ;;
13314 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013315 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013316 hardcode_into_libs=yes
13317 dynamic_linker="$host_os dld.sl"
13318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321 soname_spec='${libname}${release}${shared_ext}$major'
13322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13324 ;;
13325 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013326 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013327 dynamic_linker="$host_os dld.sl"
13328 shlibpath_var=SHLIB_PATH
13329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 ;;
13333 esac
John Criswell7a73b802003-06-30 21:59:07 +000013334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13335 postinstall_cmds='chmod 555 $lib'
13336 ;;
13337
John Criswell47fdd832003-07-14 16:52:07 +000013338irix5* | irix6* | nonstopux*)
13339 case $host_os in
13340 nonstopux*) version_type=nonstopux ;;
13341 *)
13342 if test "$lt_cv_prog_gnu_ld" = yes; then
13343 version_type=linux
13344 else
13345 version_type=irix
13346 fi ;;
13347 esac
John Criswell7a73b802003-06-30 21:59:07 +000013348 need_lib_prefix=no
13349 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013350 soname_spec='${libname}${release}${shared_ext}$major'
13351 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 +000013352 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013353 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013354 libsuff= shlibsuff=
13355 ;;
13356 *)
13357 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13359 libsuff= shlibsuff= libmagic=32-bit;;
13360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13361 libsuff=32 shlibsuff=N32 libmagic=N32;;
13362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013364 *) libsuff= shlibsuff= libmagic=never-match;;
13365 esac
13366 ;;
13367 esac
13368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13369 shlibpath_overrides_runpath=no
13370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013372 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013373 ;;
13374
13375# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013376linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013377 dynamic_linker=no
13378 ;;
13379
13380# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013381linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013382 version_type=linux
13383 need_lib_prefix=no
13384 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 shlibpath_overrides_runpath=no
13390 # This implies no fast_install, which is unacceptable.
13391 # Some rework will be needed to allow for fast_install
13392 # before this can be enabled.
13393 hardcode_into_libs=yes
13394
Reid Spencer2706f8c2004-09-19 23:53:36 +000013395 # Append ld.so.conf contents to the search path
13396 if test -f /etc/ld.so.conf; then
13397 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13399 fi
13400
John Criswell7a73b802003-06-30 21:59:07 +000013401 # We used to test for /lib/ld.so.1 and disable shared libraries on
13402 # powerpc, because MkLinux only supported shared libraries with the
13403 # GNU dynamic linker. Since this was broken with cross compilers,
13404 # most powerpc-linux boxes support dynamic linking these days and
13405 # people can always --disable-shared, the test was removed, and we
13406 # assume the GNU/Linux dynamic linker is in use.
13407 dynamic_linker='GNU/Linux ld.so'
13408 ;;
13409
Reid Spencer2706f8c2004-09-19 23:53:36 +000013410knetbsd*-gnu)
13411 version_type=linux
13412 need_lib_prefix=no
13413 need_version=no
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=no
13418 hardcode_into_libs=yes
13419 dynamic_linker='GNU ld.so'
13420 ;;
13421
John Criswell7a73b802003-06-30 21:59:07 +000013422netbsd*)
13423 version_type=sunos
13424 need_lib_prefix=no
13425 need_version=no
13426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13429 dynamic_linker='NetBSD (a.out) ld.so'
13430 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013432 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013433 dynamic_linker='NetBSD ld.elf_so'
13434 fi
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes
13437 hardcode_into_libs=yes
13438 ;;
13439
13440newsos6)
13441 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=yes
13445 ;;
13446
Reid Spencer2706f8c2004-09-19 23:53:36 +000013447nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013448 version_type=linux
13449 need_lib_prefix=no
13450 need_version=no
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=yes
13455 ;;
13456
13457openbsd*)
13458 version_type=sunos
13459 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013460 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013464 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 +000013465 case $host_os in
13466 openbsd2.[89] | openbsd2.[89].*)
13467 shlibpath_overrides_runpath=no
13468 ;;
13469 *)
13470 shlibpath_overrides_runpath=yes
13471 ;;
13472 esac
John Criswell7a73b802003-06-30 21:59:07 +000013473 else
13474 shlibpath_overrides_runpath=yes
13475 fi
John Criswell7a73b802003-06-30 21:59:07 +000013476 ;;
13477
13478os2*)
13479 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013480 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013481 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013482 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013483 dynamic_linker='OS/2 ld.exe'
13484 shlibpath_var=LIBPATH
13485 ;;
13486
13487osf3* | osf4* | osf5*)
13488 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013489 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013490 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013491 soname_spec='${libname}${release}${shared_ext}$major'
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013493 shlibpath_var=LD_LIBRARY_PATH
13494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13495 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13496 ;;
13497
13498sco3.2v5*)
13499 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013500 soname_spec='${libname}${release}${shared_ext}$major'
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013502 shlibpath_var=LD_LIBRARY_PATH
13503 ;;
13504
13505solaris*)
13506 version_type=linux
13507 need_lib_prefix=no
13508 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013511 shlibpath_var=LD_LIBRARY_PATH
13512 shlibpath_overrides_runpath=yes
13513 hardcode_into_libs=yes
13514 # ldd complains unless libraries are executable
13515 postinstall_cmds='chmod +x $lib'
13516 ;;
13517
13518sunos4*)
13519 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 shlibpath_overrides_runpath=yes
13524 if test "$with_gnu_ld" = yes; then
13525 need_lib_prefix=no
13526 fi
13527 need_version=yes
13528 ;;
13529
13530sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13531 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013534 shlibpath_var=LD_LIBRARY_PATH
13535 case $host_vendor in
13536 sni)
13537 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013538 need_lib_prefix=no
13539 export_dynamic_flag_spec='${wl}-Blargedynsym'
13540 runpath_var=LD_RUN_PATH
13541 ;;
13542 siemens)
13543 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013544 ;;
13545 motorola)
13546 need_lib_prefix=no
13547 need_version=no
13548 shlibpath_overrides_runpath=no
13549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13550 ;;
13551 esac
13552 ;;
13553
John Criswell7a73b802003-06-30 21:59:07 +000013554sysv4*MP*)
13555 if test -d /usr/nec ;then
13556 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13558 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013559 shlibpath_var=LD_LIBRARY_PATH
13560 fi
13561 ;;
13562
John Criswell47fdd832003-07-14 16:52:07 +000013563uts4*)
13564 version_type=linux
13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13566 soname_spec='${libname}${release}${shared_ext}$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 ;;
13569
John Criswell7a73b802003-06-30 21:59:07 +000013570*)
13571 dynamic_linker=no
13572 ;;
13573esac
13574echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13575echo "${ECHO_T}$dynamic_linker" >&6
13576test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013577
Reid Spencer2706f8c2004-09-19 23:53:36 +000013578echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13579echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13580hardcode_action=
13581if test -n "$hardcode_libdir_flag_spec" || \
13582 test -n "$runpath_var" || \
13583 test "X$hardcode_automatic" = "Xyes" ; then
13584
13585 # We can hardcode non-existant directories.
13586 if test "$hardcode_direct" != no &&
13587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13588 # have to relink, otherwise we might link with an installed library
13589 # when we should be linking with a yet-to-be-installed one
13590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13591 test "$hardcode_minus_L" != no; then
13592 # Linking always hardcodes the temporary library directory.
13593 hardcode_action=relink
13594 else
13595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13596 hardcode_action=immediate
13597 fi
13598else
13599 # We cannot hardcode anything, or else we can only hardcode existing
13600 # directories.
13601 hardcode_action=unsupported
13602fi
13603echo "$as_me:$LINENO: result: $hardcode_action" >&5
13604echo "${ECHO_T}$hardcode_action" >&6
13605
13606if test "$hardcode_action" = relink; then
13607 # Fast installation is not supported
13608 enable_fast_install=no
13609elif test "$shlibpath_overrides_runpath" = yes ||
13610 test "$enable_shared" = no; then
13611 # Fast installation is not necessary
13612 enable_fast_install=needless
13613fi
13614
13615striplib=
13616old_striplib=
13617echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13618echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13619if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13622 echo "$as_me:$LINENO: result: yes" >&5
13623echo "${ECHO_T}yes" >&6
13624else
13625# FIXME - insert some real tests, host_os isn't really good enough
13626 case $host_os in
13627 darwin*)
13628 if test -n "$STRIP" ; then
13629 striplib="$STRIP -x"
13630 echo "$as_me:$LINENO: result: yes" >&5
13631echo "${ECHO_T}yes" >&6
13632 else
13633 echo "$as_me:$LINENO: result: no" >&5
13634echo "${ECHO_T}no" >&6
13635fi
13636 ;;
13637 *)
13638 echo "$as_me:$LINENO: result: no" >&5
13639echo "${ECHO_T}no" >&6
13640 ;;
13641 esac
13642fi
13643
John Criswell7a73b802003-06-30 21:59:07 +000013644if test "x$enable_dlopen" != xyes; then
13645 enable_dlopen=unknown
13646 enable_dlopen_self=unknown
13647 enable_dlopen_self_static=unknown
13648else
13649 lt_cv_dlopen=no
13650 lt_cv_dlopen_libs=
13651
13652 case $host_os in
13653 beos*)
13654 lt_cv_dlopen="load_add_on"
13655 lt_cv_dlopen_libs=
13656 lt_cv_dlopen_self=yes
13657 ;;
13658
John Criswell47fdd832003-07-14 16:52:07 +000013659 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013660 lt_cv_dlopen="LoadLibrary"
13661 lt_cv_dlopen_libs=
13662 ;;
13663
John Criswell47fdd832003-07-14 16:52:07 +000013664 cygwin*)
13665 lt_cv_dlopen="dlopen"
13666 lt_cv_dlopen_libs=
13667 ;;
13668
13669 darwin*)
13670 # if libdl is installed we need to link against it
13671 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675else
13676 ac_check_lib_save_LIBS=$LIBS
13677LIBS="-ldl $LIBS"
13678cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013679/* confdefs.h. */
13680_ACEOF
13681cat confdefs.h >>conftest.$ac_ext
13682cat >>conftest.$ac_ext <<_ACEOF
13683/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013684
13685/* Override any gcc2 internal prototype to avoid an error. */
13686#ifdef __cplusplus
13687extern "C"
13688#endif
13689/* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13691char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013692int
13693main ()
13694{
13695dlopen ();
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700rm -f conftest.$ac_objext conftest$ac_exeext
13701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013702 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_lib_dl_dlopen=yes
13723else
13724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013725sed 's/^/| /' conftest.$ac_ext >&5
13726
John Criswell47fdd832003-07-14 16:52:07 +000013727ac_cv_lib_dl_dlopen=no
13728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013729rm -f conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013731LIBS=$ac_check_lib_save_LIBS
13732fi
13733echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13734echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13735if test $ac_cv_lib_dl_dlopen = yes; then
13736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13737else
13738
13739 lt_cv_dlopen="dyld"
13740 lt_cv_dlopen_libs=
13741 lt_cv_dlopen_self=yes
13742
13743fi
13744
13745 ;;
13746
John Criswell7a73b802003-06-30 21:59:07 +000013747 *)
13748 echo "$as_me:$LINENO: checking for shl_load" >&5
13749echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13750if test "${ac_cv_func_shl_load+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013759/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13761#define shl_load innocuous_shl_load
13762
John Criswell7a73b802003-06-30 21:59:07 +000013763/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013764 which can conflict with char shl_load (); below.
13765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13766 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013767
John Criswell0c38eaf2003-09-10 15:17:25 +000013768#ifdef __STDC__
13769# include <limits.h>
13770#else
13771# include <assert.h>
13772#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013773
13774#undef shl_load
13775
John Criswell7a73b802003-06-30 21:59:07 +000013776/* Override any gcc2 internal prototype to avoid an error. */
13777#ifdef __cplusplus
13778extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013779{
John Criswell7a73b802003-06-30 21:59:07 +000013780#endif
13781/* We use char because int might match the return type of a gcc2
13782 builtin and then its argument prototype would still apply. */
13783char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013784/* The GNU C library defines this for functions which it implements
13785 to always fail with ENOSYS. Some functions are actually named
13786 something starting with __ and the normal name is an alias. */
13787#if defined (__stub_shl_load) || defined (__stub___shl_load)
13788choke me
13789#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013790char (*f) () = shl_load;
13791#endif
13792#ifdef __cplusplus
13793}
John Criswell7a73b802003-06-30 21:59:07 +000013794#endif
13795
John Criswell0c38eaf2003-09-10 15:17:25 +000013796int
13797main ()
13798{
13799return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013800 ;
13801 return 0;
13802}
13803_ACEOF
13804rm -f conftest.$ac_objext conftest$ac_exeext
13805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013806 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013813 { ac_try='test -z "$ac_c_werror_flag"
13814 || test ! -s conftest.err'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_func_shl_load=yes
13827else
13828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013829sed 's/^/| /' conftest.$ac_ext >&5
13830
John Criswell7a73b802003-06-30 21:59:07 +000013831ac_cv_func_shl_load=no
13832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013833rm -f conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013835fi
13836echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13837echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13838if test $ac_cv_func_shl_load = yes; then
13839 lt_cv_dlopen="shl_load"
13840else
13841 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13842echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13843if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845else
13846 ac_check_lib_save_LIBS=$LIBS
13847LIBS="-ldld $LIBS"
13848cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013849/* confdefs.h. */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
13853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013854
13855/* Override any gcc2 internal prototype to avoid an error. */
13856#ifdef __cplusplus
13857extern "C"
13858#endif
13859/* We use char because int might match the return type of a gcc2
13860 builtin and then its argument prototype would still apply. */
13861char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013862int
13863main ()
13864{
13865shl_load ();
13866 ;
13867 return 0;
13868}
13869_ACEOF
13870rm -f conftest.$ac_objext conftest$ac_exeext
13871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013872 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_cv_lib_dld_shl_load=yes
13893else
13894 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013895sed 's/^/| /' conftest.$ac_ext >&5
13896
John Criswell7a73b802003-06-30 21:59:07 +000013897ac_cv_lib_dld_shl_load=no
13898fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013899rm -f conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013901LIBS=$ac_check_lib_save_LIBS
13902fi
13903echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13904echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13905if test $ac_cv_lib_dld_shl_load = yes; then
13906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13907else
13908 echo "$as_me:$LINENO: checking for dlopen" >&5
13909echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13910if test "${ac_cv_func_dlopen+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912else
13913 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013914/* confdefs.h. */
13915_ACEOF
13916cat confdefs.h >>conftest.$ac_ext
13917cat >>conftest.$ac_ext <<_ACEOF
13918/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013919/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13921#define dlopen innocuous_dlopen
13922
John Criswell7a73b802003-06-30 21:59:07 +000013923/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013924 which can conflict with char dlopen (); below.
13925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13926 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013927
John Criswell0c38eaf2003-09-10 15:17:25 +000013928#ifdef __STDC__
13929# include <limits.h>
13930#else
13931# include <assert.h>
13932#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013933
13934#undef dlopen
13935
John Criswell7a73b802003-06-30 21:59:07 +000013936/* Override any gcc2 internal prototype to avoid an error. */
13937#ifdef __cplusplus
13938extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013939{
John Criswell7a73b802003-06-30 21:59:07 +000013940#endif
13941/* We use char because int might match the return type of a gcc2
13942 builtin and then its argument prototype would still apply. */
13943char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013944/* The GNU C library defines this for functions which it implements
13945 to always fail with ENOSYS. Some functions are actually named
13946 something starting with __ and the normal name is an alias. */
13947#if defined (__stub_dlopen) || defined (__stub___dlopen)
13948choke me
13949#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013950char (*f) () = dlopen;
13951#endif
13952#ifdef __cplusplus
13953}
John Criswell7a73b802003-06-30 21:59:07 +000013954#endif
13955
John Criswell0c38eaf2003-09-10 15:17:25 +000013956int
13957main ()
13958{
13959return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013960 ;
13961 return 0;
13962}
13963_ACEOF
13964rm -f conftest.$ac_objext conftest$ac_exeext
13965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013966 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013973 { ac_try='test -z "$ac_c_werror_flag"
13974 || test ! -s conftest.err'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; } &&
13980 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 ac_cv_func_dlopen=yes
13987else
13988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013989sed 's/^/| /' conftest.$ac_ext >&5
13990
John Criswell7a73b802003-06-30 21:59:07 +000013991ac_cv_func_dlopen=no
13992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013993rm -f conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013995fi
13996echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13997echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13998if test $ac_cv_func_dlopen = yes; then
13999 lt_cv_dlopen="dlopen"
14000else
14001 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14002echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14003if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005else
14006 ac_check_lib_save_LIBS=$LIBS
14007LIBS="-ldl $LIBS"
14008cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014014
14015/* Override any gcc2 internal prototype to avoid an error. */
14016#ifdef __cplusplus
14017extern "C"
14018#endif
14019/* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14021char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014022int
14023main ()
14024{
14025dlopen ();
14026 ;
14027 return 0;
14028}
14029_ACEOF
14030rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014032 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_cv_lib_dl_dlopen=yes
14053else
14054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014055sed 's/^/| /' conftest.$ac_ext >&5
14056
John Criswell7a73b802003-06-30 21:59:07 +000014057ac_cv_lib_dl_dlopen=no
14058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014059rm -f conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014061LIBS=$ac_check_lib_save_LIBS
14062fi
14063echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14064echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14065if test $ac_cv_lib_dl_dlopen = yes; then
14066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14067else
14068 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14069echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14070if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073 ac_check_lib_save_LIBS=$LIBS
14074LIBS="-lsvld $LIBS"
14075cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014081
14082/* Override any gcc2 internal prototype to avoid an error. */
14083#ifdef __cplusplus
14084extern "C"
14085#endif
14086/* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14088char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014089int
14090main ()
14091{
14092dlopen ();
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext conftest$ac_exeext
14098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014099 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_cv_lib_svld_dlopen=yes
14120else
14121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014122sed 's/^/| /' conftest.$ac_ext >&5
14123
John Criswell7a73b802003-06-30 21:59:07 +000014124ac_cv_lib_svld_dlopen=no
14125fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014126rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014128LIBS=$ac_check_lib_save_LIBS
14129fi
14130echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14131echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14132if test $ac_cv_lib_svld_dlopen = yes; then
14133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14134else
14135 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14136echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14137if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 ac_check_lib_save_LIBS=$LIBS
14141LIBS="-ldld $LIBS"
14142cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014148
14149/* Override any gcc2 internal prototype to avoid an error. */
14150#ifdef __cplusplus
14151extern "C"
14152#endif
14153/* We use char because int might match the return type of a gcc2
14154 builtin and then its argument prototype would still apply. */
14155char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014156int
14157main ()
14158{
14159dld_link ();
14160 ;
14161 return 0;
14162}
14163_ACEOF
14164rm -f conftest.$ac_objext conftest$ac_exeext
14165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014166 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014167 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014173 { ac_try='test -z "$ac_c_werror_flag"
14174 || test ! -s conftest.err'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_lib_dld_dld_link=yes
14187else
14188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014189sed 's/^/| /' conftest.$ac_ext >&5
14190
John Criswell7a73b802003-06-30 21:59:07 +000014191ac_cv_lib_dld_dld_link=no
14192fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014193rm -f conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014195LIBS=$ac_check_lib_save_LIBS
14196fi
14197echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14198echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14199if test $ac_cv_lib_dld_dld_link = yes; then
14200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14201fi
14202
14203
14204fi
14205
14206
14207fi
14208
14209
14210fi
14211
14212
14213fi
14214
14215
14216fi
14217
14218 ;;
14219 esac
14220
14221 if test "x$lt_cv_dlopen" != xno; then
14222 enable_dlopen=yes
14223 else
14224 enable_dlopen=no
14225 fi
14226
14227 case $lt_cv_dlopen in
14228 dlopen)
14229 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014231
14232 save_LDFLAGS="$LDFLAGS"
14233 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14234
14235 save_LIBS="$LIBS"
14236 LIBS="$lt_cv_dlopen_libs $LIBS"
14237
14238 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14239echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14240if test "${lt_cv_dlopen_self+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243 if test "$cross_compiling" = yes; then :
14244 lt_cv_dlopen_self=cross
14245else
John Criswell47fdd832003-07-14 16:52:07 +000014246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014247 lt_status=$lt_dlunknown
14248 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000014249#line 14249 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014250#include "confdefs.h"
14251
14252#if HAVE_DLFCN_H
14253#include <dlfcn.h>
14254#endif
14255
14256#include <stdio.h>
14257
14258#ifdef RTLD_GLOBAL
14259# define LT_DLGLOBAL RTLD_GLOBAL
14260#else
14261# ifdef DL_GLOBAL
14262# define LT_DLGLOBAL DL_GLOBAL
14263# else
14264# define LT_DLGLOBAL 0
14265# endif
14266#endif
14267
14268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14269 find out it does not work in some platform. */
14270#ifndef LT_DLLAZY_OR_NOW
14271# ifdef RTLD_LAZY
14272# define LT_DLLAZY_OR_NOW RTLD_LAZY
14273# else
14274# ifdef DL_LAZY
14275# define LT_DLLAZY_OR_NOW DL_LAZY
14276# else
14277# ifdef RTLD_NOW
14278# define LT_DLLAZY_OR_NOW RTLD_NOW
14279# else
14280# ifdef DL_NOW
14281# define LT_DLLAZY_OR_NOW DL_NOW
14282# else
14283# define LT_DLLAZY_OR_NOW 0
14284# endif
14285# endif
14286# endif
14287# endif
14288#endif
14289
14290#ifdef __cplusplus
14291extern "C" void exit (int);
14292#endif
14293
14294void fnord() { int i=42;}
14295int main ()
14296{
14297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14298 int status = $lt_dlunknown;
14299
14300 if (self)
14301 {
14302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14304 /* dlclose (self); */
14305 }
14306
14307 exit (status);
14308}
14309EOF
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14315 (./conftest; exit; ) 2>/dev/null
14316 lt_status=$?
14317 case x$lt_status in
14318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14320 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14321 esac
14322 else :
14323 # compilation failed
14324 lt_cv_dlopen_self=no
14325 fi
14326fi
14327rm -fr conftest*
14328
14329
14330fi
14331echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14332echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14333
14334 if test "x$lt_cv_dlopen_self" = xyes; then
14335 LDFLAGS="$LDFLAGS $link_static_flag"
14336 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14337echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14338if test "${lt_cv_dlopen_self_static+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 if test "$cross_compiling" = yes; then :
14342 lt_cv_dlopen_self_static=cross
14343else
John Criswell47fdd832003-07-14 16:52:07 +000014344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014345 lt_status=$lt_dlunknown
14346 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000014347#line 14347 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014348#include "confdefs.h"
14349
14350#if HAVE_DLFCN_H
14351#include <dlfcn.h>
14352#endif
14353
14354#include <stdio.h>
14355
14356#ifdef RTLD_GLOBAL
14357# define LT_DLGLOBAL RTLD_GLOBAL
14358#else
14359# ifdef DL_GLOBAL
14360# define LT_DLGLOBAL DL_GLOBAL
14361# else
14362# define LT_DLGLOBAL 0
14363# endif
14364#endif
14365
14366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14367 find out it does not work in some platform. */
14368#ifndef LT_DLLAZY_OR_NOW
14369# ifdef RTLD_LAZY
14370# define LT_DLLAZY_OR_NOW RTLD_LAZY
14371# else
14372# ifdef DL_LAZY
14373# define LT_DLLAZY_OR_NOW DL_LAZY
14374# else
14375# ifdef RTLD_NOW
14376# define LT_DLLAZY_OR_NOW RTLD_NOW
14377# else
14378# ifdef DL_NOW
14379# define LT_DLLAZY_OR_NOW DL_NOW
14380# else
14381# define LT_DLLAZY_OR_NOW 0
14382# endif
14383# endif
14384# endif
14385# endif
14386#endif
14387
14388#ifdef __cplusplus
14389extern "C" void exit (int);
14390#endif
14391
14392void fnord() { int i=42;}
14393int main ()
14394{
14395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14396 int status = $lt_dlunknown;
14397
14398 if (self)
14399 {
14400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14402 /* dlclose (self); */
14403 }
14404
14405 exit (status);
14406}
14407EOF
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14413 (./conftest; exit; ) 2>/dev/null
14414 lt_status=$?
14415 case x$lt_status in
14416 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14417 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14418 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14419 esac
14420 else :
14421 # compilation failed
14422 lt_cv_dlopen_self_static=no
14423 fi
14424fi
14425rm -fr conftest*
14426
14427
14428fi
14429echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14430echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14431 fi
14432
14433 CPPFLAGS="$save_CPPFLAGS"
14434 LDFLAGS="$save_LDFLAGS"
14435 LIBS="$save_LIBS"
14436 ;;
14437 esac
14438
14439 case $lt_cv_dlopen_self in
14440 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14441 *) enable_dlopen_self=unknown ;;
14442 esac
14443
14444 case $lt_cv_dlopen_self_static in
14445 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14446 *) enable_dlopen_self_static=unknown ;;
14447 esac
14448fi
14449
14450
John Criswell47fdd832003-07-14 16:52:07 +000014451# Report which librarie types wil actually be built
14452echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14453echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14454echo "$as_me:$LINENO: result: $can_build_shared" >&5
14455echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014456
John Criswell47fdd832003-07-14 16:52:07 +000014457echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14458echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14459test "$can_build_shared" = "no" && enable_shared=no
14460
14461# On AIX, shared libraries and static libraries use the same namespace, and
14462# are all built from PIC.
14463case "$host_os" in
14464aix3*)
14465 test "$enable_shared" = yes && enable_static=no
14466 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014467 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014468 postinstall_cmds='$RANLIB $lib'
14469 fi
14470 ;;
14471
Reid Spencer2706f8c2004-09-19 23:53:36 +000014472aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014473 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14474 test "$enable_shared" = yes && enable_static=no
14475 fi
John Criswell7a73b802003-06-30 21:59:07 +000014476 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014477esac
14478echo "$as_me:$LINENO: result: $enable_shared" >&5
14479echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014480
John Criswell47fdd832003-07-14 16:52:07 +000014481echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14482echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14483# Make sure either enable_shared or enable_static is yes.
14484test "$enable_shared" = yes || enable_static=yes
14485echo "$as_me:$LINENO: result: $enable_static" >&5
14486echo "${ECHO_T}$enable_static" >&6
14487
14488# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014489# libtool distribution, otherwise you forgot to ship ltmain.sh
14490# with your package, and you will get complaints that there are
14491# no rules to generate ltmain.sh.
14492if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014493 # See if we are running on zsh, and set the options which allow our commands through
14494 # without removal of \ escapes.
14495 if test -n "${ZSH_VERSION+set}" ; then
14496 setopt NO_GLOB_SUBST
14497 fi
John Criswell7a73b802003-06-30 21:59:07 +000014498 # Now quote all the things that may contain metacharacters while being
14499 # careful not to overquote the AC_SUBSTed values. We take copies of the
14500 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14502 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14505 deplibs_check_method reload_flag reload_cmds need_locks \
14506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14507 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014509 old_postinstall_cmds old_postuninstall_cmds \
14510 compiler \
14511 CC \
14512 LD \
14513 lt_prog_compiler_wl \
14514 lt_prog_compiler_pic \
14515 lt_prog_compiler_static \
14516 lt_prog_compiler_no_builtin_flag \
14517 export_dynamic_flag_spec \
14518 thread_safe_flag_spec \
14519 whole_archive_flag_spec \
14520 enable_shared_with_static_runtimes \
14521 old_archive_cmds \
14522 old_archive_from_new_cmds \
14523 predep_objects \
14524 postdep_objects \
14525 predeps \
14526 postdeps \
14527 compiler_lib_search_path \
14528 archive_cmds \
14529 archive_expsym_cmds \
14530 postinstall_cmds \
14531 postuninstall_cmds \
14532 old_archive_from_expsyms_cmds \
14533 allow_undefined_flag \
14534 no_undefined_flag \
14535 export_symbols_cmds \
14536 hardcode_libdir_flag_spec \
14537 hardcode_libdir_flag_spec_ld \
14538 hardcode_libdir_separator \
14539 hardcode_automatic \
14540 module_cmds \
14541 module_expsym_cmds \
14542 lt_cv_prog_compiler_c_o \
14543 exclude_expsyms \
14544 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014545
14546 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014547 old_archive_cmds | \
14548 old_archive_from_new_cmds | \
14549 archive_cmds | \
14550 archive_expsym_cmds | \
14551 module_cmds | \
14552 module_expsym_cmds | \
14553 old_archive_from_expsyms_cmds | \
14554 export_symbols_cmds | \
14555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014556 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014557 old_postinstall_cmds | old_postuninstall_cmds | \
14558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014559 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014560 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 +000014561 ;;
14562 *)
14563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14564 ;;
14565 esac
14566 done
14567
John Criswell47fdd832003-07-14 16:52:07 +000014568 case $lt_echo in
14569 *'\$0 --fallback-echo"')
14570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14571 ;;
14572 esac
14573
14574cfgfile="${ofile}T"
14575 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14576 $rm -f "$cfgfile"
14577 { echo "$as_me:$LINENO: creating $ofile" >&5
14578echo "$as_me: creating $ofile" >&6;}
14579
14580 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014581#! $SHELL
14582
John Criswell47fdd832003-07-14 16:52:07 +000014583# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014584# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14585# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14586#
John Criswell47fdd832003-07-14 16:52:07 +000014587# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14588# Free Software Foundation, Inc.
14589#
14590# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014591# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14592#
14593# This program is free software; you can redistribute it and/or modify
14594# it under the terms of the GNU General Public License as published by
14595# the Free Software Foundation; either version 2 of the License, or
14596# (at your option) any later version.
14597#
14598# This program is distributed in the hope that it will be useful, but
14599# WITHOUT ANY WARRANTY; without even the implied warranty of
14600# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14601# General Public License for more details.
14602#
14603# You should have received a copy of the GNU General Public License
14604# along with this program; if not, write to the Free Software
14605# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14606#
14607# As a special exception to the GNU General Public License, if you
14608# distribute this file as part of a program that contains a
14609# configuration script generated by Autoconf, you may include it under
14610# the same distribution terms that you use for the rest of that program.
14611
John Criswell47fdd832003-07-14 16:52:07 +000014612# A sed program that does not truncate output.
14613SED=$lt_SED
14614
John Criswell7a73b802003-06-30 21:59:07 +000014615# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014616Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014617
14618# The HP-UX ksh and POSIX shell print the target directory to stdout
14619# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014621
John Criswell47fdd832003-07-14 16:52:07 +000014622# The names of the tagged configurations supported by this script.
14623available_tags=
14624
John Criswell7a73b802003-06-30 21:59:07 +000014625# ### BEGIN LIBTOOL CONFIG
14626
14627# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14628
14629# Shell to use when invoking shell scripts.
14630SHELL=$lt_SHELL
14631
14632# Whether or not to build shared libraries.
14633build_libtool_libs=$enable_shared
14634
14635# Whether or not to build static libraries.
14636build_old_libs=$enable_static
14637
14638# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014639build_libtool_need_lc=$archive_cmds_need_lc
14640
14641# Whether or not to disallow shared libs when runtime libs are static
14642allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014643
14644# Whether or not to optimize for fast installation.
14645fast_install=$enable_fast_install
14646
14647# The host system.
14648host_alias=$host_alias
14649host=$host
14650
14651# An echo program that does not interpret backslashes.
14652echo=$lt_echo
14653
14654# The archiver.
14655AR=$lt_AR
14656AR_FLAGS=$lt_AR_FLAGS
14657
John Criswell47fdd832003-07-14 16:52:07 +000014658# A C compiler.
14659LTCC=$lt_LTCC
14660
14661# A language-specific compiler.
14662CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014663
14664# Is the compiler the GNU C compiler?
14665with_gcc=$GCC
14666
John Criswell47fdd832003-07-14 16:52:07 +000014667# An ERE matcher.
14668EGREP=$lt_EGREP
14669
John Criswell7a73b802003-06-30 21:59:07 +000014670# The linker used to build libraries.
14671LD=$lt_LD
14672
14673# Whether we need hard or soft links.
14674LN_S=$lt_LN_S
14675
14676# A BSD-compatible nm program.
14677NM=$lt_NM
14678
14679# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014680STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014681
14682# Used to examine libraries when file_magic_cmd begins "file"
14683MAGIC_CMD=$MAGIC_CMD
14684
14685# Used on cygwin: DLL creation program.
14686DLLTOOL="$DLLTOOL"
14687
14688# Used on cygwin: object dumper.
14689OBJDUMP="$OBJDUMP"
14690
14691# Used on cygwin: assembler.
14692AS="$AS"
14693
14694# The name of the directory that contains temporary libtool files.
14695objdir=$objdir
14696
14697# How to create reloadable object files.
14698reload_flag=$lt_reload_flag
14699reload_cmds=$lt_reload_cmds
14700
14701# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014702wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014703
14704# Object file suffix (normally "o").
14705objext="$ac_objext"
14706
14707# Old archive suffix (normally "a").
14708libext="$libext"
14709
John Criswell47fdd832003-07-14 16:52:07 +000014710# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014711shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014712
John Criswell7a73b802003-06-30 21:59:07 +000014713# Executable file suffix (normally "").
14714exeext="$exeext"
14715
14716# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014717pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014718pic_mode=$pic_mode
14719
John Criswell47fdd832003-07-14 16:52:07 +000014720# What is the maximum length of a command?
14721max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014722
John Criswell47fdd832003-07-14 16:52:07 +000014723# Does compiler simultaneously support -c and -o options?
14724compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014725
14726# Must we lock files when doing compilation ?
14727need_locks=$lt_need_locks
14728
14729# Do we need the lib prefix for modules?
14730need_lib_prefix=$need_lib_prefix
14731
14732# Do we need a version for libraries?
14733need_version=$need_version
14734
14735# Whether dlopen is supported.
14736dlopen_support=$enable_dlopen
14737
14738# Whether dlopen of programs is supported.
14739dlopen_self=$enable_dlopen_self
14740
14741# Whether dlopen of statically linked programs is supported.
14742dlopen_self_static=$enable_dlopen_self_static
14743
14744# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014745link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014746
14747# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014748no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014749
14750# Compiler flag to allow reflexive dlopens.
14751export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14752
14753# Compiler flag to generate shared objects directly from archives.
14754whole_archive_flag_spec=$lt_whole_archive_flag_spec
14755
14756# Compiler flag to generate thread-safe objects.
14757thread_safe_flag_spec=$lt_thread_safe_flag_spec
14758
14759# Library versioning type.
14760version_type=$version_type
14761
14762# Format of library name prefix.
14763libname_spec=$lt_libname_spec
14764
14765# List of archive names. First name is the real one, the rest are links.
14766# The last name is the one that the linker finds with -lNAME.
14767library_names_spec=$lt_library_names_spec
14768
14769# The coded name of the library, if different from the real name.
14770soname_spec=$lt_soname_spec
14771
14772# Commands used to build and install an old-style archive.
14773RANLIB=$lt_RANLIB
14774old_archive_cmds=$lt_old_archive_cmds
14775old_postinstall_cmds=$lt_old_postinstall_cmds
14776old_postuninstall_cmds=$lt_old_postuninstall_cmds
14777
14778# Create an old-style archive from a shared archive.
14779old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14780
14781# Create a temporary old-style archive to link instead of a shared archive.
14782old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14783
14784# Commands used to build and install a shared archive.
14785archive_cmds=$lt_archive_cmds
14786archive_expsym_cmds=$lt_archive_expsym_cmds
14787postinstall_cmds=$lt_postinstall_cmds
14788postuninstall_cmds=$lt_postuninstall_cmds
14789
John Criswell47fdd832003-07-14 16:52:07 +000014790# Commands used to build a loadable module (assumed same as above if empty)
14791module_cmds=$lt_module_cmds
14792module_expsym_cmds=$lt_module_expsym_cmds
14793
John Criswell7a73b802003-06-30 21:59:07 +000014794# Commands to strip libraries.
14795old_striplib=$lt_old_striplib
14796striplib=$lt_striplib
14797
John Criswell47fdd832003-07-14 16:52:07 +000014798# Dependencies to place before the objects being linked to create a
14799# shared library.
14800predep_objects=$lt_predep_objects
14801
14802# Dependencies to place after the objects being linked to create a
14803# shared library.
14804postdep_objects=$lt_postdep_objects
14805
14806# Dependencies to place before the objects being linked to create a
14807# shared library.
14808predeps=$lt_predeps
14809
14810# Dependencies to place after the objects being linked to create a
14811# shared library.
14812postdeps=$lt_postdeps
14813
14814# The library search path used internally by the compiler when linking
14815# a shared library.
14816compiler_lib_search_path=$lt_compiler_lib_search_path
14817
John Criswell7a73b802003-06-30 21:59:07 +000014818# Method to check whether dependent libraries are shared objects.
14819deplibs_check_method=$lt_deplibs_check_method
14820
14821# Command to use when deplibs_check_method == file_magic.
14822file_magic_cmd=$lt_file_magic_cmd
14823
14824# Flag that allows shared libraries with undefined symbols to be built.
14825allow_undefined_flag=$lt_allow_undefined_flag
14826
14827# Flag that forces no undefined symbols.
14828no_undefined_flag=$lt_no_undefined_flag
14829
14830# Commands used to finish a libtool library installation in a directory.
14831finish_cmds=$lt_finish_cmds
14832
14833# Same as above, but a single script fragment to be evaled but not shown.
14834finish_eval=$lt_finish_eval
14835
14836# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014837global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014838
14839# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014840global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014841
14842# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014843global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014844
14845# This is the shared library runtime path variable.
14846runpath_var=$runpath_var
14847
14848# This is the shared library path variable.
14849shlibpath_var=$shlibpath_var
14850
14851# Is shlibpath searched before the hard-coded library search path?
14852shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14853
14854# How to hardcode a shared library path into an executable.
14855hardcode_action=$hardcode_action
14856
14857# Whether we should hardcode library paths into libraries.
14858hardcode_into_libs=$hardcode_into_libs
14859
14860# Flag to hardcode \$libdir into a binary during linking.
14861# This must work even if \$libdir does not exist.
14862hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14863
John Criswell47fdd832003-07-14 16:52:07 +000014864# If ld is used when linking, flag to hardcode \$libdir into
14865# a binary during linking. This must work even if \$libdir does
14866# not exist.
14867hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14868
John Criswell7a73b802003-06-30 21:59:07 +000014869# Whether we need a single -rpath flag with a separated argument.
14870hardcode_libdir_separator=$lt_hardcode_libdir_separator
14871
John Criswell47fdd832003-07-14 16:52:07 +000014872# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014873# resulting binary.
14874hardcode_direct=$hardcode_direct
14875
14876# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14877# resulting binary.
14878hardcode_minus_L=$hardcode_minus_L
14879
14880# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14881# the resulting binary.
14882hardcode_shlibpath_var=$hardcode_shlibpath_var
14883
John Criswell47fdd832003-07-14 16:52:07 +000014884# Set to yes if building a shared library automatically hardcodes DIR into the library
14885# and all subsequent libraries and executables linked against it.
14886hardcode_automatic=$hardcode_automatic
14887
John Criswell7a73b802003-06-30 21:59:07 +000014888# Variables whose values should be saved in libtool wrapper scripts and
14889# restored at relink time.
14890variables_saved_for_relink="$variables_saved_for_relink"
14891
14892# Whether libtool must link a program against all its dependency libraries.
14893link_all_deplibs=$link_all_deplibs
14894
14895# Compile-time system search path for libraries
14896sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14897
14898# Run-time system search path for libraries
14899sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14900
14901# Fix the shell variable \$srcfile for the compiler.
14902fix_srcfile_path="$fix_srcfile_path"
14903
14904# Set to yes if exported symbols are required.
14905always_export_symbols=$always_export_symbols
14906
14907# The commands to list exported symbols.
14908export_symbols_cmds=$lt_export_symbols_cmds
14909
14910# The commands to extract the exported symbol list from a shared archive.
14911extract_expsyms_cmds=$lt_extract_expsyms_cmds
14912
14913# Symbols that should not be listed in the preloaded symbols.
14914exclude_expsyms=$lt_exclude_expsyms
14915
14916# Symbols that must always be exported.
14917include_expsyms=$lt_include_expsyms
14918
14919# ### END LIBTOOL CONFIG
14920
14921__EOF__
14922
John Criswell47fdd832003-07-14 16:52:07 +000014923
John Criswell7a73b802003-06-30 21:59:07 +000014924 case $host_os in
14925 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014926 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014927
14928# AIX sometimes has problems with the GCC collect2 program. For some
14929# reason, if we set the COLLECT_NAMES environment variable, the problems
14930# vanish in a puff of smoke.
14931if test "X${COLLECT_NAMES+set}" != Xset; then
14932 COLLECT_NAMES=
14933 export COLLECT_NAMES
14934fi
14935EOF
14936 ;;
14937 esac
14938
John Criswell7a73b802003-06-30 21:59:07 +000014939 # We use sed instead of cat because bash on DJGPP gets confused if
14940 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14941 # text mode, it properly converts lines to CR/LF. This bash problem
14942 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014943 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014944
John Criswell47fdd832003-07-14 16:52:07 +000014945 mv -f "$cfgfile" "$ofile" || \
14946 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014947 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014948
14949else
14950 # If there is no Makefile yet, we rely on a make rule to execute
14951 # `config.status --recheck' to rerun these tests and create the
14952 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014953 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14954 if test -f "$ltmain_in"; then
14955 test -f Makefile && make "$ltmain"
14956 fi
John Criswell7a73b802003-06-30 21:59:07 +000014957fi
John Criswell7a73b802003-06-30 21:59:07 +000014958
14959
John Criswell47fdd832003-07-14 16:52:07 +000014960ac_ext=c
14961ac_cpp='$CPP $CPPFLAGS'
14962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964ac_compiler_gnu=$ac_cv_c_compiler_gnu
14965
14966CC="$lt_save_CC"
14967
14968
14969# Check whether --with-tags or --without-tags was given.
14970if test "${with_tags+set}" = set; then
14971 withval="$with_tags"
14972 tagnames="$withval"
14973fi;
14974
14975if test -f "$ltmain" && test -n "$tagnames"; then
14976 if test ! -f "${ofile}"; then
14977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14978echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14979 fi
14980
14981 if test -z "$LTCC"; then
14982 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14983 if test -z "$LTCC"; then
14984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14985echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14986 else
14987 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14988echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14989 fi
14990 fi
14991
14992 # Extract list of available tagged configurations in $ofile.
14993 # Note that this assumes the entire list is on one line.
14994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14995
14996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14997 for tagname in $tagnames; do
14998 IFS="$lt_save_ifs"
14999 # Check whether tagname contains only valid characters
15000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15001 "") ;;
15002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15003echo "$as_me: error: invalid tag name: $tagname" >&2;}
15004 { (exit 1); exit 1; }; }
15005 ;;
15006 esac
15007
15008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15009 then
15010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15011echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15012 { (exit 1); exit 1; }; }
15013 fi
15014
15015 # Update the list of available tags.
15016 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015017 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015018
15019 case $tagname in
15020 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15023 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015024 ac_ext=cc
15025ac_cpp='$CXXCPP $CPPFLAGS'
15026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15029
15030
15031
15032
15033archive_cmds_need_lc_CXX=no
15034allow_undefined_flag_CXX=
15035always_export_symbols_CXX=no
15036archive_expsym_cmds_CXX=
15037export_dynamic_flag_spec_CXX=
15038hardcode_direct_CXX=no
15039hardcode_libdir_flag_spec_CXX=
15040hardcode_libdir_flag_spec_ld_CXX=
15041hardcode_libdir_separator_CXX=
15042hardcode_minus_L_CXX=no
15043hardcode_automatic_CXX=no
15044module_cmds_CXX=
15045module_expsym_cmds_CXX=
15046link_all_deplibs_CXX=unknown
15047old_archive_cmds_CXX=$old_archive_cmds
15048no_undefined_flag_CXX=
15049whole_archive_flag_spec_CXX=
15050enable_shared_with_static_runtimes_CXX=no
15051
15052# Dependencies to place before and after the object being linked:
15053predep_objects_CXX=
15054postdep_objects_CXX=
15055predeps_CXX=
15056postdeps_CXX=
15057compiler_lib_search_path_CXX=
15058
15059# Source file extension for C++ test sources.
15060ac_ext=cc
15061
15062# Object file extension for compiled C++ test sources.
15063objext=o
15064objext_CXX=$objext
15065
15066# Code to be used in simple compile tests
15067lt_simple_compile_test_code="int some_variable = 0;\n"
15068
15069# Code to be used in simple link tests
15070lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15071
15072# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15073
15074# If no C compiler was specified, use CC.
15075LTCC=${LTCC-"$CC"}
15076
15077# Allow CC to be a program name with arguments.
15078compiler=$CC
15079
15080
15081# Allow CC to be a program name with arguments.
15082lt_save_CC=$CC
15083lt_save_LD=$LD
15084lt_save_GCC=$GCC
15085GCC=$GXX
15086lt_save_with_gnu_ld=$with_gnu_ld
15087lt_save_path_LD=$lt_cv_path_LD
15088if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15090else
15091 unset lt_cv_prog_gnu_ld
15092fi
15093if test -n "${lt_cv_path_LDCXX+set}"; then
15094 lt_cv_path_LD=$lt_cv_path_LDCXX
15095else
15096 unset lt_cv_path_LD
15097fi
15098test -z "${LDCXX+set}" || LD=$LDCXX
15099CC=${CXX-"c++"}
15100compiler=$CC
15101compiler_CXX=$CC
15102cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15103
15104# We don't want -fno-exception wen compiling C++ code, so set the
15105# no_builtin_flag separately
15106if test "$GXX" = yes; then
15107 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15108else
15109 lt_prog_compiler_no_builtin_flag_CXX=
15110fi
15111
15112if test "$GXX" = yes; then
15113 # Set up default GNU C++ configuration
15114
15115
15116# Check whether --with-gnu-ld or --without-gnu-ld was given.
15117if test "${with_gnu_ld+set}" = set; then
15118 withval="$with_gnu_ld"
15119 test "$withval" = no || with_gnu_ld=yes
15120else
15121 with_gnu_ld=no
15122fi;
15123ac_prog=ld
15124if test "$GCC" = yes; then
15125 # Check if gcc -print-prog-name=ld gives a path.
15126 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15127echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15128 case $host in
15129 *-*-mingw*)
15130 # gcc leaves a trailing carriage return which upsets mingw
15131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15132 *)
15133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15134 esac
15135 case $ac_prog in
15136 # Accept absolute paths.
15137 [\\/]* | ?:[\\/]*)
15138 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015139 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015140 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15141 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15142 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15143 done
15144 test -z "$LD" && LD="$ac_prog"
15145 ;;
15146 "")
15147 # If it fails, then pretend we aren't using GCC.
15148 ac_prog=ld
15149 ;;
15150 *)
15151 # If it is relative, then search for the first ld in PATH.
15152 with_gnu_ld=unknown
15153 ;;
15154 esac
15155elif test "$with_gnu_ld" = yes; then
15156 echo "$as_me:$LINENO: checking for GNU ld" >&5
15157echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15158else
15159 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15160echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15161fi
15162if test "${lt_cv_path_LD+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164else
15165 if test -z "$LD"; then
15166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15167 for ac_dir in $PATH; do
15168 IFS="$lt_save_ifs"
15169 test -z "$ac_dir" && ac_dir=.
15170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15171 lt_cv_path_LD="$ac_dir/$ac_prog"
15172 # Check to see if the program is GNU ld. I'd rather use --version,
15173 # but apparently some GNU ld's only accept -v.
15174 # Break only if it was the GNU/non-GNU ld that we prefer.
15175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15176 *GNU* | *'with BFD'*)
15177 test "$with_gnu_ld" != no && break
15178 ;;
15179 *)
15180 test "$with_gnu_ld" != yes && break
15181 ;;
15182 esac
15183 fi
15184 done
15185 IFS="$lt_save_ifs"
15186else
15187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15188fi
15189fi
15190
15191LD="$lt_cv_path_LD"
15192if test -n "$LD"; then
15193 echo "$as_me:$LINENO: result: $LD" >&5
15194echo "${ECHO_T}$LD" >&6
15195else
15196 echo "$as_me:$LINENO: result: no" >&5
15197echo "${ECHO_T}no" >&6
15198fi
15199test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15200echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15201 { (exit 1); exit 1; }; }
15202echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15203echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15204if test "${lt_cv_prog_gnu_ld+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206else
15207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015208case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015209*GNU* | *'with BFD'*)
15210 lt_cv_prog_gnu_ld=yes
15211 ;;
15212*)
15213 lt_cv_prog_gnu_ld=no
15214 ;;
15215esac
15216fi
15217echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15218echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15219with_gnu_ld=$lt_cv_prog_gnu_ld
15220
15221
15222
15223 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15224 # archiving commands below assume that GNU ld is being used.
15225 if test "$with_gnu_ld" = yes; then
15226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 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'
15228
15229 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15230 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15231
15232 # If archive_cmds runs LD, not CC, wlarc should be empty
15233 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15234 # investigate it a little bit more. (MM)
15235 wlarc='${wl}'
15236
15237 # ancient GNU ld didn't support --whole-archive et. al.
15238 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15239 grep 'no-whole-archive' > /dev/null; then
15240 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15241 else
15242 whole_archive_flag_spec_CXX=
15243 fi
15244 else
15245 with_gnu_ld=no
15246 wlarc=
15247
15248 # A generic and very simple default shared library creation
15249 # command for GNU C++ for the case where it uses the native
15250 # linker, instead of GNU ld. If possible, this setting should
15251 # overridden to take advantage of the native linker features on
15252 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015253 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015254 fi
15255
15256 # Commands to make compiler produce verbose output that lists
15257 # what "hidden" libraries, object files and flags are used when
15258 # linking a shared library.
15259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15260
15261else
15262 GXX=no
15263 with_gnu_ld=no
15264 wlarc=
15265fi
15266
15267# PORTME: fill in a description of your system's C++ link characteristics
15268echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15269echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15270ld_shlibs_CXX=yes
15271case $host_os in
15272 aix3*)
15273 # FIXME: insert proper C++ library support
15274 ld_shlibs_CXX=no
15275 ;;
15276 aix4* | aix5*)
15277 if test "$host_cpu" = ia64; then
15278 # On IA64, the linker does run time linking by default, so we don't
15279 # have to do anything special.
15280 aix_use_runtimelinking=no
15281 exp_sym_flag='-Bexport'
15282 no_entry_flag=""
15283 else
15284 aix_use_runtimelinking=no
15285
15286 # Test if we are trying to use run time linking or normal
15287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15288 # need to do runtime linking.
15289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15290 for ld_flag in $LDFLAGS; do
15291 case $ld_flag in
15292 *-brtl*)
15293 aix_use_runtimelinking=yes
15294 break
15295 ;;
15296 esac
15297 done
15298 esac
15299
15300 exp_sym_flag='-bexport'
15301 no_entry_flag='-bnoentry'
15302 fi
15303
15304 # When large executables or shared objects are built, AIX ld can
15305 # have problems creating the table of contents. If linking a library
15306 # or program results in "error TOC overflow" add -mminimal-toc to
15307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15309
15310 archive_cmds_CXX=''
15311 hardcode_direct_CXX=yes
15312 hardcode_libdir_separator_CXX=':'
15313 link_all_deplibs_CXX=yes
15314
15315 if test "$GXX" = yes; then
15316 case $host_os in aix4.012|aix4.012.*)
15317 # We only want to do this on AIX 4.2 and lower, the check
15318 # below for broken collect2 doesn't work under 4.3+
15319 collect2name=`${CC} -print-prog-name=collect2`
15320 if test -f "$collect2name" && \
15321 strings "$collect2name" | grep resolve_lib_name >/dev/null
15322 then
15323 # We have reworked collect2
15324 hardcode_direct_CXX=yes
15325 else
15326 # We have old collect2
15327 hardcode_direct_CXX=unsupported
15328 # It fails to find uninstalled libraries when the uninstalled
15329 # path is not listed in the libpath. Setting hardcode_minus_L
15330 # to unsupported forces relinking
15331 hardcode_minus_L_CXX=yes
15332 hardcode_libdir_flag_spec_CXX='-L$libdir'
15333 hardcode_libdir_separator_CXX=
15334 fi
15335 esac
15336 shared_flag='-shared'
15337 else
15338 # not using gcc
15339 if test "$host_cpu" = ia64; then
15340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341 # chokes on -Wl,-G. The following line is correct:
15342 shared_flag='-G'
15343 else
15344 if test "$aix_use_runtimelinking" = yes; then
15345 shared_flag='${wl}-G'
15346 else
15347 shared_flag='${wl}-bM:SRE'
15348 fi
15349 fi
15350 fi
15351
15352 # It seems that -bexpall does not export symbols beginning with
15353 # underscore (_), so it is better to generate a list of symbols to export.
15354 always_export_symbols_CXX=yes
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # Warning - without using the other runtime loading flags (-brtl),
15357 # -berok will link without error, but may produce a broken library.
15358 allow_undefined_flag_CXX='-berok'
15359 # Determine the default libpath from the value encoded in an empty executable.
15360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015366
John Criswell47fdd832003-07-14 16:52:07 +000015367int
15368main ()
15369{
15370
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext conftest$ac_exeext
15376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015377 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015384 { ac_try='test -z "$ac_cxx_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397
15398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15399}'`
15400# Check for a 64-bit object if we didn't find anything.
15401if 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; }
15402}'`; fi
15403else
15404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015405sed 's/^/| /' conftest.$ac_ext >&5
15406
John Criswell47fdd832003-07-14 16:52:07 +000015407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015408rm -f conftest.err conftest.$ac_objext \
15409 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015410if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15411
15412 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15413
15414 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"
15415 else
15416 if test "$host_cpu" = ia64; then
15417 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15418 allow_undefined_flag_CXX="-z nodefs"
15419 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"
15420 else
15421 # Determine the default libpath from the value encoded in an empty executable.
15422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015428
John Criswell47fdd832003-07-14 16:52:07 +000015429int
15430main ()
15431{
15432
15433 ;
15434 return 0;
15435}
15436_ACEOF
15437rm -f conftest.$ac_objext conftest$ac_exeext
15438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015439 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015446 { ac_try='test -z "$ac_cxx_werror_flag"
15447 || test ! -s conftest.err'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459
15460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15461}'`
15462# Check for a 64-bit object if we didn't find anything.
15463if 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; }
15464}'`; fi
15465else
15466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015467sed 's/^/| /' conftest.$ac_ext >&5
15468
John Criswell47fdd832003-07-14 16:52:07 +000015469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015470rm -f conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15473
15474 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15475 # Warning - without using the other run time loading flags,
15476 # -berok will link without error, but may produce a broken library.
15477 no_undefined_flag_CXX=' ${wl}-bernotok'
15478 allow_undefined_flag_CXX=' ${wl}-berok'
15479 # -bexpall does not export symbols beginning with underscore (_)
15480 always_export_symbols_CXX=yes
15481 # Exported symbols can be pulled into shared objects from archives
15482 whole_archive_flag_spec_CXX=' '
15483 archive_cmds_need_lc_CXX=yes
15484 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015485 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 +000015486 fi
15487 fi
15488 ;;
15489 chorus*)
15490 case $cc_basename in
15491 *)
15492 # FIXME: insert proper C++ library support
15493 ld_shlibs_CXX=no
15494 ;;
15495 esac
15496 ;;
15497
Reid Spencer2706f8c2004-09-19 23:53:36 +000015498
John Criswell47fdd832003-07-14 16:52:07 +000015499 cygwin* | mingw* | pw32*)
15500 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15501 # as there is no search path for DLLs.
15502 hardcode_libdir_flag_spec_CXX='-L$libdir'
15503 allow_undefined_flag_CXX=unsupported
15504 always_export_symbols_CXX=no
15505 enable_shared_with_static_runtimes_CXX=yes
15506
15507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15508 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'
15509 # If the export-symbols file already is a .def file (1st line
15510 # is EXPORTS), use it as is; otherwise, prepend...
15511 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15512 cp $export_symbols $output_objdir/$soname.def;
15513 else
15514 echo EXPORTS > $output_objdir/$soname.def;
15515 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015516 fi~
15517 $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 +000015518 else
15519 ld_shlibs_CXX=no
15520 fi
15521 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015522 darwin* | rhapsody*)
15523 case "$host_os" in
15524 rhapsody* | darwin1.[012])
15525 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15526 ;;
15527 *) # Darwin 1.3 on
15528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15529 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15530 else
15531 case ${MACOSX_DEPLOYMENT_TARGET} in
15532 10.[012])
15533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15534 ;;
15535 10.*)
15536 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15537 ;;
15538 esac
15539 fi
15540 ;;
15541 esac
15542 archive_cmds_need_lc_CXX=no
15543 hardcode_direct_CXX=no
15544 hardcode_automatic_CXX=yes
15545 hardcode_shlibpath_var_CXX=unsupported
15546 whole_archive_flag_spec_CXX=''
15547 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015548
Reid Spencer2706f8c2004-09-19 23:53:36 +000015549 if test "$GXX" = yes ; then
15550 lt_int_apple_cc_single_mod=no
15551 output_verbose_link_cmd='echo'
15552 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15553 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015554 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015555 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015556 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 +000015557 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015558 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 +000015559 fi
15560 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015563 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 +000015564 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015565 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 +000015566 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015567 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 +000015568 else
15569 case "$cc_basename" in
15570 xlc*)
15571 output_verbose_link_cmd='echo'
15572 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'
15573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15574 # 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 +000015575 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}'
15576 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 +000015577 ;;
15578 *)
15579 ld_shlibs_CXX=no
15580 ;;
15581 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015582 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015583 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015584
15585 dgux*)
15586 case $cc_basename in
15587 ec++)
15588 # FIXME: insert proper C++ library support
15589 ld_shlibs_CXX=no
15590 ;;
15591 ghcx)
15592 # Green Hills C++ Compiler
15593 # FIXME: insert proper C++ library support
15594 ld_shlibs_CXX=no
15595 ;;
15596 *)
15597 # FIXME: insert proper C++ library support
15598 ld_shlibs_CXX=no
15599 ;;
15600 esac
15601 ;;
15602 freebsd12*)
15603 # C++ shared libraries reported to be fairly broken before switch to ELF
15604 ld_shlibs_CXX=no
15605 ;;
15606 freebsd-elf*)
15607 archive_cmds_need_lc_CXX=no
15608 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015609 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015610 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15611 # conventions
15612 ld_shlibs_CXX=yes
15613 ;;
15614 gnu*)
15615 ;;
15616 hpux9*)
15617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator_CXX=:
15619 export_dynamic_flag_spec_CXX='${wl}-E'
15620 hardcode_direct_CXX=yes
15621 hardcode_minus_L_CXX=yes # Not in the search PATH,
15622 # but as the default
15623 # location of the library.
15624
15625 case $cc_basename in
15626 CC)
15627 # FIXME: insert proper C++ library support
15628 ld_shlibs_CXX=no
15629 ;;
15630 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015631 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 +000015632 # Commands to make compiler produce verbose output that lists
15633 # what "hidden" libraries, object files and flags are used when
15634 # linking a shared library.
15635 #
15636 # There doesn't appear to be a way to prevent this compiler from
15637 # explicitly linking system object files so we need to strip them
15638 # from the output so that they don't get included in the library
15639 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015640 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 +000015641 ;;
15642 *)
15643 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015644 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 +000015645 else
15646 # FIXME: insert proper C++ library support
15647 ld_shlibs_CXX=no
15648 fi
15649 ;;
15650 esac
15651 ;;
15652 hpux10*|hpux11*)
15653 if test $with_gnu_ld = no; then
15654 case "$host_cpu" in
15655 hppa*64*)
15656 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15658 hardcode_libdir_separator_CXX=:
15659 ;;
15660 ia64*)
15661 hardcode_libdir_flag_spec_CXX='-L$libdir'
15662 ;;
15663 *)
15664 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15665 hardcode_libdir_separator_CXX=:
15666 export_dynamic_flag_spec_CXX='${wl}-E'
15667 ;;
15668 esac
15669 fi
15670 case "$host_cpu" in
15671 hppa*64*)
15672 hardcode_direct_CXX=no
15673 hardcode_shlibpath_var_CXX=no
15674 ;;
15675 ia64*)
15676 hardcode_direct_CXX=no
15677 hardcode_shlibpath_var_CXX=no
15678 hardcode_minus_L_CXX=yes # Not in the search PATH,
15679 # but as the default
15680 # location of the library.
15681 ;;
15682 *)
15683 hardcode_direct_CXX=yes
15684 hardcode_minus_L_CXX=yes # Not in the search PATH,
15685 # but as the default
15686 # location of the library.
15687 ;;
15688 esac
15689
15690 case $cc_basename in
15691 CC)
15692 # FIXME: insert proper C++ library support
15693 ld_shlibs_CXX=no
15694 ;;
15695 aCC)
15696 case "$host_cpu" in
15697 hppa*64*|ia64*)
15698 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15699 ;;
15700 *)
15701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15702 ;;
15703 esac
15704 # Commands to make compiler produce verbose output that lists
15705 # what "hidden" libraries, object files and flags are used when
15706 # linking a shared library.
15707 #
15708 # There doesn't appear to be a way to prevent this compiler from
15709 # explicitly linking system object files so we need to strip them
15710 # from the output so that they don't get included in the library
15711 # dependencies.
15712 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'
15713 ;;
15714 *)
15715 if test "$GXX" = yes; then
15716 if test $with_gnu_ld = no; then
15717 case "$host_cpu" in
15718 ia64*|hppa*64*)
15719 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15720 ;;
15721 *)
15722 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'
15723 ;;
15724 esac
15725 fi
15726 else
15727 # FIXME: insert proper C++ library support
15728 ld_shlibs_CXX=no
15729 fi
15730 ;;
15731 esac
15732 ;;
15733 irix5* | irix6*)
15734 case $cc_basename in
15735 CC)
15736 # SGI C++
15737 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'
15738
15739 # Archives containing C++ object files must be created using
15740 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15741 # necessary to make sure instantiated templates are included
15742 # in the archive.
15743 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15744 ;;
15745 *)
15746 if test "$GXX" = yes; then
15747 if test "$with_gnu_ld" = no; then
15748 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'
15749 else
15750 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'
15751 fi
15752 fi
15753 link_all_deplibs_CXX=yes
15754 ;;
15755 esac
15756 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15757 hardcode_libdir_separator_CXX=:
15758 ;;
15759 linux*)
15760 case $cc_basename in
15761 KCC)
15762 # Kuck and Associates, Inc. (KAI) C++ Compiler
15763
15764 # KCC will only create a shared library if the output file
15765 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15766 # to its proper name (with version) after linking.
15767 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'
15768 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'
15769 # Commands to make compiler produce verbose output that lists
15770 # what "hidden" libraries, object files and flags are used when
15771 # linking a shared library.
15772 #
15773 # There doesn't appear to be a way to prevent this compiler from
15774 # explicitly linking system object files so we need to strip them
15775 # from the output so that they don't get included in the library
15776 # dependencies.
15777 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'
15778
15779 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15781
15782 # Archives containing C++ object files must be created using
15783 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15784 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15785 ;;
15786 icpc)
15787 # Intel C++
15788 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015789 # version 8.0 and above of icpc choke on multiply defined symbols
15790 # if we add $predep_objects and $postdep_objects, however 7.1 and
15791 # earlier do not add the objects themselves.
15792 case `$CC -V 2>&1` in
15793 *"Version 7."*)
15794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15795 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'
15796 ;;
15797 *) # Version 8.0 or newer
15798 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15800 ;;
15801 esac
John Criswell47fdd832003-07-14 16:52:07 +000015802 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15805 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15806 ;;
15807 cxx)
15808 # Compaq C++
15809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 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'
15811
15812 runpath_var=LD_RUN_PATH
15813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15814 hardcode_libdir_separator_CXX=:
15815
15816 # Commands to make compiler produce verbose output that lists
15817 # what "hidden" libraries, object files and flags are used when
15818 # linking a shared library.
15819 #
15820 # There doesn't appear to be a way to prevent this compiler from
15821 # explicitly linking system object files so we need to strip them
15822 # from the output so that they don't get included in the library
15823 # dependencies.
15824 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'
15825 ;;
15826 esac
15827 ;;
15828 lynxos*)
15829 # FIXME: insert proper C++ library support
15830 ld_shlibs_CXX=no
15831 ;;
15832 m88k*)
15833 # FIXME: insert proper C++ library support
15834 ld_shlibs_CXX=no
15835 ;;
15836 mvs*)
15837 case $cc_basename in
15838 cxx)
15839 # FIXME: insert proper C++ library support
15840 ld_shlibs_CXX=no
15841 ;;
15842 *)
15843 # FIXME: insert proper C++ library support
15844 ld_shlibs_CXX=no
15845 ;;
15846 esac
15847 ;;
15848 netbsd*)
15849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15850 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15851 wlarc=
15852 hardcode_libdir_flag_spec_CXX='-R$libdir'
15853 hardcode_direct_CXX=yes
15854 hardcode_shlibpath_var_CXX=no
15855 fi
15856 # Workaround some broken pre-1.5 toolchains
15857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15858 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015859 openbsd2*)
15860 # C++ shared libraries are fairly broken
15861 ld_shlibs_CXX=no
15862 ;;
15863 openbsd*)
15864 hardcode_direct_CXX=yes
15865 hardcode_shlibpath_var_CXX=no
15866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15870 export_dynamic_flag_spec_CXX='${wl}-E'
15871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15872 fi
15873 output_verbose_link_cmd='echo'
15874 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015875 osf3*)
15876 case $cc_basename in
15877 KCC)
15878 # Kuck and Associates, Inc. (KAI) C++ Compiler
15879
15880 # KCC will only create a shared library if the output file
15881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15882 # to its proper name (with version) after linking.
15883 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'
15884
15885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15886 hardcode_libdir_separator_CXX=:
15887
15888 # Archives containing C++ object files must be created using
15889 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15890 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15891
15892 ;;
15893 RCC)
15894 # Rational C++ 2.4.1
15895 # FIXME: insert proper C++ library support
15896 ld_shlibs_CXX=no
15897 ;;
15898 cxx)
15899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15900 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'
15901
15902 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15903 hardcode_libdir_separator_CXX=:
15904
15905 # Commands to make compiler produce verbose output that lists
15906 # what "hidden" libraries, object files and flags are used when
15907 # linking a shared library.
15908 #
15909 # There doesn't appear to be a way to prevent this compiler from
15910 # explicitly linking system object files so we need to strip them
15911 # from the output so that they don't get included in the library
15912 # dependencies.
15913 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'
15914 ;;
15915 *)
15916 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15918 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'
15919
15920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15921 hardcode_libdir_separator_CXX=:
15922
15923 # Commands to make compiler produce verbose output that lists
15924 # what "hidden" libraries, object files and flags are used when
15925 # linking a shared library.
15926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15927
15928 else
15929 # FIXME: insert proper C++ library support
15930 ld_shlibs_CXX=no
15931 fi
15932 ;;
15933 esac
15934 ;;
15935 osf4* | osf5*)
15936 case $cc_basename in
15937 KCC)
15938 # Kuck and Associates, Inc. (KAI) C++ Compiler
15939
15940 # KCC will only create a shared library if the output file
15941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15942 # to its proper name (with version) after linking.
15943 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'
15944
15945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15946 hardcode_libdir_separator_CXX=:
15947
15948 # Archives containing C++ object files must be created using
15949 # the KAI C++ compiler.
15950 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15951 ;;
15952 RCC)
15953 # Rational C++ 2.4.1
15954 # FIXME: insert proper C++ library support
15955 ld_shlibs_CXX=no
15956 ;;
15957 cxx)
15958 allow_undefined_flag_CXX=' -expect_unresolved \*'
15959 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 +000015960 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15961 echo "-hidden">> $lib.exp~
15962 $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~
15963 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015964
15965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966 hardcode_libdir_separator_CXX=:
15967
15968 # Commands to make compiler produce verbose output that lists
15969 # what "hidden" libraries, object files and flags are used when
15970 # linking a shared library.
15971 #
15972 # There doesn't appear to be a way to prevent this compiler from
15973 # explicitly linking system object files so we need to strip them
15974 # from the output so that they don't get included in the library
15975 # dependencies.
15976 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'
15977 ;;
15978 *)
15979 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15980 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15981 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'
15982
15983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15984 hardcode_libdir_separator_CXX=:
15985
15986 # Commands to make compiler produce verbose output that lists
15987 # what "hidden" libraries, object files and flags are used when
15988 # linking a shared library.
15989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15990
15991 else
15992 # FIXME: insert proper C++ library support
15993 ld_shlibs_CXX=no
15994 fi
15995 ;;
15996 esac
15997 ;;
15998 psos*)
15999 # FIXME: insert proper C++ library support
16000 ld_shlibs_CXX=no
16001 ;;
16002 sco*)
16003 archive_cmds_need_lc_CXX=no
16004 case $cc_basename in
16005 CC)
16006 # FIXME: insert proper C++ library support
16007 ld_shlibs_CXX=no
16008 ;;
16009 *)
16010 # FIXME: insert proper C++ library support
16011 ld_shlibs_CXX=no
16012 ;;
16013 esac
16014 ;;
16015 sunos4*)
16016 case $cc_basename in
16017 CC)
16018 # Sun C++ 4.x
16019 # FIXME: insert proper C++ library support
16020 ld_shlibs_CXX=no
16021 ;;
16022 lcc)
16023 # Lucid
16024 # FIXME: insert proper C++ library support
16025 ld_shlibs_CXX=no
16026 ;;
16027 *)
16028 # FIXME: insert proper C++ library support
16029 ld_shlibs_CXX=no
16030 ;;
16031 esac
16032 ;;
16033 solaris*)
16034 case $cc_basename in
16035 CC)
16036 # Sun C++ 4.2, 5.x and Centerline C++
16037 no_undefined_flag_CXX=' -zdefs'
16038 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 +000016039 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16040 $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 +000016041
16042 hardcode_libdir_flag_spec_CXX='-R$libdir'
16043 hardcode_shlibpath_var_CXX=no
16044 case $host_os in
16045 solaris2.0-5 | solaris2.0-5.*) ;;
16046 *)
16047 # The C++ compiler is used as linker so we must use $wl
16048 # flag to pass the commands to the underlying system
16049 # linker.
16050 # Supported since Solaris 2.6 (maybe 2.5.1?)
16051 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16052 ;;
16053 esac
16054 link_all_deplibs_CXX=yes
16055
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16059 #
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16063 # dependencies.
16064 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'
16065
16066 # Archives containing C++ object files must be created using
16067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16068 # necessary to make sure instantiated templates are included
16069 # in the archive.
16070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16071 ;;
16072 gcx)
16073 # Green Hills C++ Compiler
16074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16075
16076 # The C++ compiler must be used to create the archive.
16077 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16078 ;;
16079 *)
16080 # GNU C++ compiler with Solaris linker
16081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16082 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16083 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016084 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 +000016085 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16086 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16087
John Criswell47fdd832003-07-14 16:52:07 +000016088 # Commands to make compiler produce verbose output that lists
16089 # what "hidden" libraries, object files and flags are used when
16090 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016091 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016092 else
16093 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16094 # platform.
16095 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 +000016096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097 $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 +000016098
16099 # Commands to make compiler produce verbose output that lists
16100 # what "hidden" libraries, object files and flags are used when
16101 # linking a shared library.
16102 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16103 fi
16104
16105 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16106 fi
16107 ;;
16108 esac
16109 ;;
16110 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16111 archive_cmds_need_lc_CXX=no
16112 ;;
16113 tandem*)
16114 case $cc_basename in
16115 NCC)
16116 # NonStop-UX NCC 3.20
16117 # FIXME: insert proper C++ library support
16118 ld_shlibs_CXX=no
16119 ;;
16120 *)
16121 # FIXME: insert proper C++ library support
16122 ld_shlibs_CXX=no
16123 ;;
16124 esac
16125 ;;
16126 vxworks*)
16127 # FIXME: insert proper C++ library support
16128 ld_shlibs_CXX=no
16129 ;;
16130 *)
16131 # FIXME: insert proper C++ library support
16132 ld_shlibs_CXX=no
16133 ;;
16134esac
16135echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16136echo "${ECHO_T}$ld_shlibs_CXX" >&6
16137test "$ld_shlibs_CXX" = no && can_build_shared=no
16138
16139GCC_CXX="$GXX"
16140LD_CXX="$LD"
16141
John Criswell47fdd832003-07-14 16:52:07 +000016142
16143cat > conftest.$ac_ext <<EOF
16144class Foo
16145{
16146public:
16147 Foo (void) { a = 0; }
16148private:
16149 int a;
16150};
16151EOF
16152
16153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16154 (eval $ac_compile) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; then
16158 # Parse the compiler output and extract the necessary
16159 # objects, libraries and library flags.
16160
16161 # Sentinel used to keep track of whether or not we are before
16162 # the conftest object file.
16163 pre_test_object_deps_done=no
16164
16165 # The `*' in the case matches for architectures that use `case' in
16166 # $output_verbose_cmd can trigger glob expansion during the loop
16167 # eval without this substitution.
16168 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16169
16170 for p in `eval $output_verbose_link_cmd`; do
16171 case $p in
16172
16173 -L* | -R* | -l*)
16174 # Some compilers place space between "-{L,R}" and the path.
16175 # Remove the space.
16176 if test $p = "-L" \
16177 || test $p = "-R"; then
16178 prev=$p
16179 continue
16180 else
16181 prev=
16182 fi
16183
16184 if test "$pre_test_object_deps_done" = no; then
16185 case $p in
16186 -L* | -R*)
16187 # Internal compiler library paths should come after those
16188 # provided the user. The postdeps already come after the
16189 # user supplied libs so there is no need to process them.
16190 if test -z "$compiler_lib_search_path_CXX"; then
16191 compiler_lib_search_path_CXX="${prev}${p}"
16192 else
16193 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16194 fi
16195 ;;
16196 # The "-l" case would never come before the object being
16197 # linked, so don't bother handling this case.
16198 esac
16199 else
16200 if test -z "$postdeps_CXX"; then
16201 postdeps_CXX="${prev}${p}"
16202 else
16203 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16204 fi
16205 fi
16206 ;;
16207
16208 *.$objext)
16209 # This assumes that the test object file only shows up
16210 # once in the compiler output.
16211 if test "$p" = "conftest.$objext"; then
16212 pre_test_object_deps_done=yes
16213 continue
16214 fi
16215
16216 if test "$pre_test_object_deps_done" = no; then
16217 if test -z "$predep_objects_CXX"; then
16218 predep_objects_CXX="$p"
16219 else
16220 predep_objects_CXX="$predep_objects_CXX $p"
16221 fi
16222 else
16223 if test -z "$postdep_objects_CXX"; then
16224 postdep_objects_CXX="$p"
16225 else
16226 postdep_objects_CXX="$postdep_objects_CXX $p"
16227 fi
16228 fi
16229 ;;
16230
16231 *) ;; # Ignore the rest.
16232
16233 esac
16234 done
16235
16236 # Clean up.
16237 rm -f a.out a.exe
16238else
16239 echo "libtool.m4: error: problem compiling CXX test program"
16240fi
16241
16242$rm -f confest.$objext
16243
16244case " $postdeps_CXX " in
16245*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16246esac
16247
16248lt_prog_compiler_wl_CXX=
16249lt_prog_compiler_pic_CXX=
16250lt_prog_compiler_static_CXX=
16251
16252echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16253echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16254
16255 # C++ specific cases for pic, static, wl, etc.
16256 if test "$GXX" = yes; then
16257 lt_prog_compiler_wl_CXX='-Wl,'
16258 lt_prog_compiler_static_CXX='-static'
16259
16260 case $host_os in
16261 aix*)
16262 # All AIX code is PIC.
16263 if test "$host_cpu" = ia64; then
16264 # AIX 5 now supports IA64 processor
16265 lt_prog_compiler_static_CXX='-Bstatic'
16266 fi
16267 ;;
16268 amigaos*)
16269 # FIXME: we need at least 68020 code to build shared libraries, but
16270 # adding the `-m68020' flag to GCC prevents building anything better,
16271 # like `-m68040'.
16272 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16273 ;;
16274 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16275 # PIC is the default for these OSes.
16276 ;;
16277 mingw* | os2* | pw32*)
16278 # This hack is so that the source file can tell whether it is being
16279 # built for inclusion in a dll (and should export symbols for example).
16280 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16281 ;;
16282 darwin* | rhapsody*)
16283 # PIC is the default on this platform
16284 # Common symbols not allowed in MH_DYLIB files
16285 lt_prog_compiler_pic_CXX='-fno-common'
16286 ;;
16287 *djgpp*)
16288 # DJGPP does not support shared libraries at all
16289 lt_prog_compiler_pic_CXX=
16290 ;;
16291 sysv4*MP*)
16292 if test -d /usr/nec; then
16293 lt_prog_compiler_pic_CXX=-Kconform_pic
16294 fi
16295 ;;
16296 hpux*)
16297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16298 # not for PA HP-UX.
16299 case "$host_cpu" in
16300 hppa*64*|ia64*)
16301 ;;
16302 *)
16303 lt_prog_compiler_pic_CXX='-fPIC'
16304 ;;
16305 esac
16306 ;;
16307 *)
16308 lt_prog_compiler_pic_CXX='-fPIC'
16309 ;;
16310 esac
16311 else
16312 case $host_os in
16313 aix4* | aix5*)
16314 # All AIX code is PIC.
16315 if test "$host_cpu" = ia64; then
16316 # AIX 5 now supports IA64 processor
16317 lt_prog_compiler_static_CXX='-Bstatic'
16318 else
16319 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16320 fi
16321 ;;
16322 chorus*)
16323 case $cc_basename in
16324 cxch68)
16325 # Green Hills C++ Compiler
16326 # _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"
16327 ;;
16328 esac
16329 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016330 darwin*)
16331 # PIC is the default on this platform
16332 # Common symbols not allowed in MH_DYLIB files
16333 case "$cc_basename" in
16334 xlc*)
16335 lt_prog_compiler_pic_CXX='-qnocommon'
16336 lt_prog_compiler_wl_CXX='-Wl,'
16337 ;;
16338 esac
16339 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016340 dgux*)
16341 case $cc_basename in
16342 ec++)
16343 lt_prog_compiler_pic_CXX='-KPIC'
16344 ;;
16345 ghcx)
16346 # Green Hills C++ Compiler
16347 lt_prog_compiler_pic_CXX='-pic'
16348 ;;
16349 *)
16350 ;;
16351 esac
16352 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016353 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016354 # FreeBSD uses GNU C++
16355 ;;
16356 hpux9* | hpux10* | hpux11*)
16357 case $cc_basename in
16358 CC)
16359 lt_prog_compiler_wl_CXX='-Wl,'
16360 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16361 if test "$host_cpu" != ia64; then
16362 lt_prog_compiler_pic_CXX='+Z'
16363 fi
16364 ;;
16365 aCC)
16366 lt_prog_compiler_wl_CXX='-Wl,'
16367 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16368 case "$host_cpu" in
16369 hppa*64*|ia64*)
16370 # +Z the default
16371 ;;
16372 *)
16373 lt_prog_compiler_pic_CXX='+Z'
16374 ;;
16375 esac
16376 ;;
16377 *)
16378 ;;
16379 esac
16380 ;;
16381 irix5* | irix6* | nonstopux*)
16382 case $cc_basename in
16383 CC)
16384 lt_prog_compiler_wl_CXX='-Wl,'
16385 lt_prog_compiler_static_CXX='-non_shared'
16386 # CC pic flag -KPIC is the default.
16387 ;;
16388 *)
16389 ;;
16390 esac
16391 ;;
16392 linux*)
16393 case $cc_basename in
16394 KCC)
16395 # KAI C++ Compiler
16396 lt_prog_compiler_wl_CXX='--backend -Wl,'
16397 lt_prog_compiler_pic_CXX='-fPIC'
16398 ;;
16399 icpc)
16400 # Intel C++
16401 lt_prog_compiler_wl_CXX='-Wl,'
16402 lt_prog_compiler_pic_CXX='-KPIC'
16403 lt_prog_compiler_static_CXX='-static'
16404 ;;
16405 cxx)
16406 # Compaq C++
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 lynxos*)
16417 ;;
16418 m88k*)
16419 ;;
16420 mvs*)
16421 case $cc_basename in
16422 cxx)
16423 lt_prog_compiler_pic_CXX='-W c,exportall'
16424 ;;
16425 *)
16426 ;;
16427 esac
16428 ;;
16429 netbsd*)
16430 ;;
16431 osf3* | osf4* | osf5*)
16432 case $cc_basename in
16433 KCC)
16434 lt_prog_compiler_wl_CXX='--backend -Wl,'
16435 ;;
16436 RCC)
16437 # Rational C++ 2.4.1
16438 lt_prog_compiler_pic_CXX='-pic'
16439 ;;
16440 cxx)
16441 # Digital/Compaq C++
16442 lt_prog_compiler_wl_CXX='-Wl,'
16443 # Make sure the PIC flag is empty. It appears that all Alpha
16444 # Linux and Compaq Tru64 Unix objects are PIC.
16445 lt_prog_compiler_pic_CXX=
16446 lt_prog_compiler_static_CXX='-non_shared'
16447 ;;
16448 *)
16449 ;;
16450 esac
16451 ;;
16452 psos*)
16453 ;;
16454 sco*)
16455 case $cc_basename in
16456 CC)
16457 lt_prog_compiler_pic_CXX='-fPIC'
16458 ;;
16459 *)
16460 ;;
16461 esac
16462 ;;
16463 solaris*)
16464 case $cc_basename in
16465 CC)
16466 # Sun C++ 4.2, 5.x and Centerline C++
16467 lt_prog_compiler_pic_CXX='-KPIC'
16468 lt_prog_compiler_static_CXX='-Bstatic'
16469 lt_prog_compiler_wl_CXX='-Qoption ld '
16470 ;;
16471 gcx)
16472 # Green Hills C++ Compiler
16473 lt_prog_compiler_pic_CXX='-PIC'
16474 ;;
16475 *)
16476 ;;
16477 esac
16478 ;;
16479 sunos4*)
16480 case $cc_basename in
16481 CC)
16482 # Sun C++ 4.x
16483 lt_prog_compiler_pic_CXX='-pic'
16484 lt_prog_compiler_static_CXX='-Bstatic'
16485 ;;
16486 lcc)
16487 # Lucid
16488 lt_prog_compiler_pic_CXX='-pic'
16489 ;;
16490 *)
16491 ;;
16492 esac
16493 ;;
16494 tandem*)
16495 case $cc_basename in
16496 NCC)
16497 # NonStop-UX NCC 3.20
16498 lt_prog_compiler_pic_CXX='-KPIC'
16499 ;;
16500 *)
16501 ;;
16502 esac
16503 ;;
16504 unixware*)
16505 ;;
16506 vxworks*)
16507 ;;
16508 *)
16509 lt_prog_compiler_can_build_shared_CXX=no
16510 ;;
16511 esac
16512 fi
16513
16514echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16515echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16516
16517#
16518# Check to make sure the PIC flag actually works.
16519#
16520if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016521
16522echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016523echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16524if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526else
16527 lt_prog_compiler_pic_works_CXX=no
16528 ac_outfile=conftest.$ac_objext
16529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16530 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16531 # Insert the option either (1) after the last *FLAGS variable, or
16532 # (2) before a word containing "conftest.", or (3) at the end.
16533 # Note that $ac_compile itself does not contain backslashes and begins
16534 # with a dollar sign (not a hyphen), so the echo should work correctly.
16535 # The option is referenced via a variable to avoid confusing sed.
16536 lt_compile=`echo "$ac_compile" | $SED \
16537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16539 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000016540 (eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016541 (eval "$lt_compile" 2>conftest.err)
16542 ac_status=$?
16543 cat conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000016544 echo "$as_me:16544: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016545 if (exit $ac_status) && test -s "$ac_outfile"; then
16546 # The compiler can only warn and ignore the option if not recognized
16547 # So say no if there are warnings
16548 if test ! -s conftest.err; then
16549 lt_prog_compiler_pic_works_CXX=yes
16550 fi
16551 fi
16552 $rm conftest*
16553
16554fi
16555echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16556echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16557
16558if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16559 case $lt_prog_compiler_pic_CXX in
16560 "" | " "*) ;;
16561 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16562 esac
16563else
16564 lt_prog_compiler_pic_CXX=
16565 lt_prog_compiler_can_build_shared_CXX=no
16566fi
16567
16568fi
16569case "$host_os" in
16570 # For platforms which do not support PIC, -DPIC is meaningless:
16571 *djgpp*)
16572 lt_prog_compiler_pic_CXX=
16573 ;;
16574 *)
16575 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16576 ;;
16577esac
16578
16579echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16580echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16581if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16583else
16584 lt_cv_prog_compiler_c_o_CXX=no
16585 $rm -r conftest 2>/dev/null
16586 mkdir conftest
16587 cd conftest
16588 mkdir out
16589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590
John Criswell47fdd832003-07-14 16:52:07 +000016591 lt_compiler_flag="-o out/conftest2.$ac_objext"
16592 # Insert the option either (1) after the last *FLAGS variable, or
16593 # (2) before a word containing "conftest.", or (3) at the end.
16594 # Note that $ac_compile itself does not contain backslashes and begins
16595 # with a dollar sign (not a hyphen), so the echo should work correctly.
16596 lt_compile=`echo "$ac_compile" | $SED \
16597 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16599 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000016600 (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016601 (eval "$lt_compile" 2>out/conftest.err)
16602 ac_status=$?
16603 cat out/conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000016604 echo "$as_me:16604: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16606 then
16607 # The compiler can only warn and ignore the option if not recognized
16608 # So say no if there are warnings
16609 if test ! -s out/conftest.err; then
16610 lt_cv_prog_compiler_c_o_CXX=yes
16611 fi
16612 fi
16613 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016614 $rm conftest*
16615 # SGI C++ compiler will create directory out/ii_files/ for
16616 # template instantiation
16617 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16618 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016619 cd ..
16620 rmdir conftest
16621 $rm conftest*
16622
16623fi
16624echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16625echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16626
16627
16628hard_links="nottested"
16629if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16630 # do not overwrite the value of need_locks provided by the user
16631 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16632echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16633 hard_links=yes
16634 $rm conftest*
16635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16636 touch conftest.a
16637 ln conftest.a conftest.b 2>&5 || hard_links=no
16638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16639 echo "$as_me:$LINENO: result: $hard_links" >&5
16640echo "${ECHO_T}$hard_links" >&6
16641 if test "$hard_links" = no; then
16642 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16643echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16644 need_locks=warn
16645 fi
16646else
16647 need_locks=no
16648fi
16649
16650echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16651echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16652
16653 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16654 case $host_os in
16655 aix4* | aix5*)
16656 # If we're using GNU nm, then we don't want the "-C" option.
16657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16658 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16659 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'
16660 else
16661 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'
16662 fi
16663 ;;
16664 pw32*)
16665 export_symbols_cmds_CXX="$ltdll_cmds"
16666 ;;
16667 cygwin* | mingw*)
16668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16669 ;;
16670 *)
16671 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16672 ;;
16673 esac
16674
16675echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16676echo "${ECHO_T}$ld_shlibs_CXX" >&6
16677test "$ld_shlibs_CXX" = no && can_build_shared=no
16678
16679variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16680if test "$GCC" = yes; then
16681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16682fi
16683
16684#
16685# Do we need to explicitly link libc?
16686#
16687case "x$archive_cmds_need_lc_CXX" in
16688x|xyes)
16689 # Assume -lc should be added
16690 archive_cmds_need_lc_CXX=yes
16691
16692 if test "$enable_shared" = yes && test "$GCC" = yes; then
16693 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016694 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016695 # FIXME: we may have to deal with multi-command sequences.
16696 ;;
16697 '$CC '*)
16698 # Test whether the compiler implicitly links with -lc since on some
16699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16700 # to ld, don't add -lc before -lgcc.
16701 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16702echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16703 $rm conftest*
16704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16705
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } 2>conftest.err; then
16711 soname=conftest
16712 lib=conftest
16713 libobjs=conftest.$ac_objext
16714 deplibs=
16715 wl=$lt_prog_compiler_wl_CXX
16716 compiler_flags=-v
16717 linker_flags=-v
16718 verstring=
16719 output_objdir=.
16720 libname=conftest
16721 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16722 allow_undefined_flag_CXX=
16723 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16724 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }
16728 then
16729 archive_cmds_need_lc_CXX=no
16730 else
16731 archive_cmds_need_lc_CXX=yes
16732 fi
16733 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16734 else
16735 cat conftest.err 1>&5
16736 fi
16737 $rm conftest*
16738 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16739echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16740 ;;
16741 esac
16742 fi
16743 ;;
16744esac
16745
John Criswell47fdd832003-07-14 16:52:07 +000016746echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16747echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16748library_names_spec=
16749libname_spec='lib$name'
16750soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016751shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016752postinstall_cmds=
16753postuninstall_cmds=
16754finish_cmds=
16755finish_eval=
16756shlibpath_var=
16757shlibpath_overrides_runpath=unknown
16758version_type=none
16759dynamic_linker="$host_os ld.so"
16760sys_lib_dlsearch_path_spec="/lib /usr/lib"
16761if test "$GCC" = yes; then
16762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16763 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16764 # if the path contains ";" then we assume it to be the separator
16765 # otherwise default to the standard path separator (i.e. ":") - it is
16766 # assumed that no part of a normal pathname contains ";" but that should
16767 # okay in the real world where ";" in dirpaths is itself problematic.
16768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16769 else
16770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16771 fi
16772else
16773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16774fi
16775need_lib_prefix=unknown
16776hardcode_into_libs=no
16777
16778# when you set need_version to no, make sure it does not cause -set_version
16779# flags to be left without arguments
16780need_version=unknown
16781
16782case $host_os in
16783aix3*)
16784 version_type=linux
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16786 shlibpath_var=LIBPATH
16787
16788 # AIX 3 has no versioning support, so we append a major version to the name.
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 ;;
16791
16792aix4* | aix5*)
16793 version_type=linux
16794 need_lib_prefix=no
16795 need_version=no
16796 hardcode_into_libs=yes
16797 if test "$host_cpu" = ia64; then
16798 # AIX 5 supports IA64
16799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 else
16802 # With GCC up to 2.95.x, collect2 would create an import file
16803 # for dependence libraries. The import file would start with
16804 # the line `#! .'. This would cause the generated library to
16805 # depend on `.', always an invalid library. This was fixed in
16806 # development snapshots of GCC prior to 3.0.
16807 case $host_os in
16808 aix4 | aix4.[01] | aix4.[01].*)
16809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16810 echo ' yes '
16811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16812 :
16813 else
16814 can_build_shared=no
16815 fi
16816 ;;
16817 esac
16818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16819 # soname into executable. Probably we can add versioning support to
16820 # collect2, so additional links can be useful in future.
16821 if test "$aix_use_runtimelinking" = yes; then
16822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16823 # instead of lib<name>.a to let people know that these are not
16824 # typical AIX shared libraries.
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 else
16827 # We preserve .a as extension for shared libraries through AIX4.2
16828 # and later when we are not doing run time linking.
16829 library_names_spec='${libname}${release}.a $libname.a'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 fi
16832 shlibpath_var=LIBPATH
16833 fi
16834 ;;
16835
16836amigaos*)
16837 library_names_spec='$libname.ixlibrary $libname.a'
16838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016839 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 +000016840 ;;
16841
16842beos*)
16843 library_names_spec='${libname}${shared_ext}'
16844 dynamic_linker="$host_os ld.so"
16845 shlibpath_var=LIBRARY_PATH
16846 ;;
16847
Reid Spencer2706f8c2004-09-19 23:53:36 +000016848bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016849 version_type=linux
16850 need_version=no
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16857 # the default ld.so.conf also contains /usr/contrib/lib and
16858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16859 # libtool to hard-code these into programs
16860 ;;
16861
16862cygwin* | mingw* | pw32*)
16863 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016864 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016865 need_version=no
16866 need_lib_prefix=no
16867
16868 case $GCC,$host_os in
16869 yes,cygwin* | yes,mingw* | yes,pw32*)
16870 library_names_spec='$libname.dll.a'
16871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016872 postinstall_cmds='base_file=`basename \${file}`~
16873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16874 dldir=$destdir/`dirname \$dlpath`~
16875 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016876 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16878 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016879 $rm \$dlpath'
16880 shlibpath_overrides_runpath=yes
16881
16882 case $host_os in
16883 cygwin*)
16884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16885 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 +000016886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016887 ;;
16888 mingw*)
16889 # MinGW DLLs use traditional 'lib' prefix
16890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16893 # It is most probably a Windows format PATH printed by
16894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16895 # path with ; separators, and with drive letters. We can handle the
16896 # drive letters (cygwin fileutils understands them), so leave them,
16897 # especially as we might pass files found there to a mingw objdump,
16898 # which wouldn't understand a cygwinified path. Ahh.
16899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16900 else
16901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16902 fi
16903 ;;
16904 pw32*)
16905 # pw32 DLLs use 'pw' prefix rather than 'lib'
16906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16907 ;;
16908 esac
16909 ;;
16910
16911 *)
16912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16913 ;;
16914 esac
16915 dynamic_linker='Win32 ld.exe'
16916 # FIXME: first we should search . and the directory the executable is in
16917 shlibpath_var=PATH
16918 ;;
16919
16920darwin* | rhapsody*)
16921 dynamic_linker="$host_os dyld"
16922 version_type=darwin
16923 need_lib_prefix=no
16924 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016926 soname_spec='${libname}${release}${major}$shared_ext'
16927 shlibpath_overrides_runpath=yes
16928 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016929 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016931 if test "$GCC" = yes; then
16932 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"`
16933 else
16934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016935 fi
16936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16937 ;;
16938
16939dgux*)
16940 version_type=linux
16941 need_lib_prefix=no
16942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 ;;
16947
16948freebsd1*)
16949 dynamic_linker=no
16950 ;;
16951
Reid Spencer2706f8c2004-09-19 23:53:36 +000016952kfreebsd*-gnu)
16953 version_type=linux
16954 need_lib_prefix=no
16955 need_version=no
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=no
16960 hardcode_into_libs=yes
16961 dynamic_linker='GNU ld.so'
16962 ;;
16963
John Criswell47fdd832003-07-14 16:52:07 +000016964freebsd*)
16965 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16966 version_type=freebsd-$objformat
16967 case $version_type in
16968 freebsd-elf*)
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16970 need_version=no
16971 need_lib_prefix=no
16972 ;;
16973 freebsd-*)
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16975 need_version=yes
16976 ;;
16977 esac
16978 shlibpath_var=LD_LIBRARY_PATH
16979 case $host_os in
16980 freebsd2*)
16981 shlibpath_overrides_runpath=yes
16982 ;;
16983 freebsd3.01* | freebsdelf3.01*)
16984 shlibpath_overrides_runpath=yes
16985 hardcode_into_libs=yes
16986 ;;
16987 *) # from 3.2 on
16988 shlibpath_overrides_runpath=no
16989 hardcode_into_libs=yes
16990 ;;
16991 esac
16992 ;;
16993
16994gnu*)
16995 version_type=linux
16996 need_lib_prefix=no
16997 need_version=no
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 hardcode_into_libs=yes
17002 ;;
17003
17004hpux9* | hpux10* | hpux11*)
17005 # Give a soname corresponding to the major version so that dld.sl refuses to
17006 # link against other versions.
17007 version_type=sunos
17008 need_lib_prefix=no
17009 need_version=no
17010 case "$host_cpu" in
17011 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017012 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017013 hardcode_into_libs=yes
17014 dynamic_linker="$host_os dld.so"
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 soname_spec='${libname}${release}${shared_ext}$major'
17019 if test "X$HPUX_IA64_MODE" = X32; then
17020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17021 else
17022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17023 fi
17024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17025 ;;
17026 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017027 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017028 hardcode_into_libs=yes
17029 dynamic_linker="$host_os dld.sl"
17030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17036 ;;
17037 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017038 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017039 dynamic_linker="$host_os dld.sl"
17040 shlibpath_var=SHLIB_PATH
17041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 ;;
17045 esac
17046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17047 postinstall_cmds='chmod 555 $lib'
17048 ;;
17049
17050irix5* | irix6* | nonstopux*)
17051 case $host_os in
17052 nonstopux*) version_type=nonstopux ;;
17053 *)
17054 if test "$lt_cv_prog_gnu_ld" = yes; then
17055 version_type=linux
17056 else
17057 version_type=irix
17058 fi ;;
17059 esac
17060 need_lib_prefix=no
17061 need_version=no
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17064 case $host_os in
17065 irix5* | nonstopux*)
17066 libsuff= shlibsuff=
17067 ;;
17068 *)
17069 case $LD in # libtool.m4 will add one of these switches to LD
17070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17071 libsuff= shlibsuff= libmagic=32-bit;;
17072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17073 libsuff=32 shlibsuff=N32 libmagic=N32;;
17074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17076 *) libsuff= shlibsuff= libmagic=never-match;;
17077 esac
17078 ;;
17079 esac
17080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17081 shlibpath_overrides_runpath=no
17082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17084 hardcode_into_libs=yes
17085 ;;
17086
17087# No shared lib support for Linux oldld, aout, or coff.
17088linux*oldld* | linux*aout* | linux*coff*)
17089 dynamic_linker=no
17090 ;;
17091
17092# This must be Linux ELF.
17093linux*)
17094 version_type=linux
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=no
17102 # This implies no fast_install, which is unacceptable.
17103 # Some rework will be needed to allow for fast_install
17104 # before this can be enabled.
17105 hardcode_into_libs=yes
17106
Reid Spencer2706f8c2004-09-19 23:53:36 +000017107 # Append ld.so.conf contents to the search path
17108 if test -f /etc/ld.so.conf; then
17109 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17111 fi
17112
John Criswell47fdd832003-07-14 16:52:07 +000017113 # We used to test for /lib/ld.so.1 and disable shared libraries on
17114 # powerpc, because MkLinux only supported shared libraries with the
17115 # GNU dynamic linker. Since this was broken with cross compilers,
17116 # most powerpc-linux boxes support dynamic linking these days and
17117 # people can always --disable-shared, the test was removed, and we
17118 # assume the GNU/Linux dynamic linker is in use.
17119 dynamic_linker='GNU/Linux ld.so'
17120 ;;
17121
Reid Spencer2706f8c2004-09-19 23:53:36 +000017122knetbsd*-gnu)
17123 version_type=linux
17124 need_lib_prefix=no
17125 need_version=no
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=no
17130 hardcode_into_libs=yes
17131 dynamic_linker='GNU ld.so'
17132 ;;
17133
John Criswell47fdd832003-07-14 16:52:07 +000017134netbsd*)
17135 version_type=sunos
17136 need_lib_prefix=no
17137 need_version=no
17138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141 dynamic_linker='NetBSD (a.out) ld.so'
17142 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017144 soname_spec='${libname}${release}${shared_ext}$major'
17145 dynamic_linker='NetBSD ld.elf_so'
17146 fi
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 hardcode_into_libs=yes
17150 ;;
17151
17152newsos6)
17153 version_type=linux
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=yes
17157 ;;
17158
Reid Spencer2706f8c2004-09-19 23:53:36 +000017159nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 ;;
17168
17169openbsd*)
17170 version_type=sunos
17171 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017172 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17177 case $host_os in
17178 openbsd2.[89] | openbsd2.[89].*)
17179 shlibpath_overrides_runpath=no
17180 ;;
17181 *)
17182 shlibpath_overrides_runpath=yes
17183 ;;
17184 esac
17185 else
17186 shlibpath_overrides_runpath=yes
17187 fi
17188 ;;
17189
17190os2*)
17191 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017192 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017193 need_lib_prefix=no
17194 library_names_spec='$libname${shared_ext} $libname.a'
17195 dynamic_linker='OS/2 ld.exe'
17196 shlibpath_var=LIBPATH
17197 ;;
17198
17199osf3* | osf4* | osf5*)
17200 version_type=osf
17201 need_lib_prefix=no
17202 need_version=no
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17208 ;;
17209
17210sco3.2v5*)
17211 version_type=osf
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 ;;
17216
17217solaris*)
17218 version_type=linux
17219 need_lib_prefix=no
17220 need_version=no
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17226 # ldd complains unless libraries are executable
17227 postinstall_cmds='chmod +x $lib'
17228 ;;
17229
17230sunos4*)
17231 version_type=sunos
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=yes
17236 if test "$with_gnu_ld" = yes; then
17237 need_lib_prefix=no
17238 fi
17239 need_version=yes
17240 ;;
17241
17242sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17243 version_type=linux
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 case $host_vendor in
17248 sni)
17249 shlibpath_overrides_runpath=no
17250 need_lib_prefix=no
17251 export_dynamic_flag_spec='${wl}-Blargedynsym'
17252 runpath_var=LD_RUN_PATH
17253 ;;
17254 siemens)
17255 need_lib_prefix=no
17256 ;;
17257 motorola)
17258 need_lib_prefix=no
17259 need_version=no
17260 shlibpath_overrides_runpath=no
17261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17262 ;;
17263 esac
17264 ;;
17265
17266sysv4*MP*)
17267 if test -d /usr/nec ;then
17268 version_type=linux
17269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17270 soname_spec='$libname${shared_ext}.$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 fi
17273 ;;
17274
17275uts4*)
17276 version_type=linux
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 ;;
17281
17282*)
17283 dynamic_linker=no
17284 ;;
17285esac
17286echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17287echo "${ECHO_T}$dynamic_linker" >&6
17288test "$dynamic_linker" = no && can_build_shared=no
17289
Reid Spencer2706f8c2004-09-19 23:53:36 +000017290echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17291echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17292hardcode_action_CXX=
17293if test -n "$hardcode_libdir_flag_spec_CXX" || \
17294 test -n "$runpath_var_CXX" || \
17295 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17296
17297 # We can hardcode non-existant directories.
17298 if test "$hardcode_direct_CXX" != no &&
17299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17300 # have to relink, otherwise we might link with an installed library
17301 # when we should be linking with a yet-to-be-installed one
17302 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17303 test "$hardcode_minus_L_CXX" != no; then
17304 # Linking always hardcodes the temporary library directory.
17305 hardcode_action_CXX=relink
17306 else
17307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17308 hardcode_action_CXX=immediate
17309 fi
17310else
17311 # We cannot hardcode anything, or else we can only hardcode existing
17312 # directories.
17313 hardcode_action_CXX=unsupported
17314fi
17315echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17316echo "${ECHO_T}$hardcode_action_CXX" >&6
17317
17318if test "$hardcode_action_CXX" = relink; then
17319 # Fast installation is not supported
17320 enable_fast_install=no
17321elif test "$shlibpath_overrides_runpath" = yes ||
17322 test "$enable_shared" = no; then
17323 # Fast installation is not necessary
17324 enable_fast_install=needless
17325fi
17326
17327striplib=
17328old_striplib=
17329echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17330echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17331if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17332 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17333 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17334 echo "$as_me:$LINENO: result: yes" >&5
17335echo "${ECHO_T}yes" >&6
17336else
17337# FIXME - insert some real tests, host_os isn't really good enough
17338 case $host_os in
17339 darwin*)
17340 if test -n "$STRIP" ; then
17341 striplib="$STRIP -x"
17342 echo "$as_me:$LINENO: result: yes" >&5
17343echo "${ECHO_T}yes" >&6
17344 else
17345 echo "$as_me:$LINENO: result: no" >&5
17346echo "${ECHO_T}no" >&6
17347fi
17348 ;;
17349 *)
17350 echo "$as_me:$LINENO: result: no" >&5
17351echo "${ECHO_T}no" >&6
17352 ;;
17353 esac
17354fi
17355
John Criswell47fdd832003-07-14 16:52:07 +000017356if test "x$enable_dlopen" != xyes; then
17357 enable_dlopen=unknown
17358 enable_dlopen_self=unknown
17359 enable_dlopen_self_static=unknown
17360else
17361 lt_cv_dlopen=no
17362 lt_cv_dlopen_libs=
17363
17364 case $host_os in
17365 beos*)
17366 lt_cv_dlopen="load_add_on"
17367 lt_cv_dlopen_libs=
17368 lt_cv_dlopen_self=yes
17369 ;;
17370
17371 mingw* | pw32*)
17372 lt_cv_dlopen="LoadLibrary"
17373 lt_cv_dlopen_libs=
17374 ;;
17375
17376 cygwin*)
17377 lt_cv_dlopen="dlopen"
17378 lt_cv_dlopen_libs=
17379 ;;
17380
17381 darwin*)
17382 # if libdl is installed we need to link against it
17383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17384echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17385if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388 ac_check_lib_save_LIBS=$LIBS
17389LIBS="-ldl $LIBS"
17390cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017396
17397/* Override any gcc2 internal prototype to avoid an error. */
17398#ifdef __cplusplus
17399extern "C"
17400#endif
17401/* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17403char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017404int
17405main ()
17406{
17407dlopen ();
17408 ;
17409 return 0;
17410}
17411_ACEOF
17412rm -f conftest.$ac_objext conftest$ac_exeext
17413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017414 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017421 { ac_try='test -z "$ac_cxx_werror_flag"
17422 || test ! -s conftest.err'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_lib_dl_dlopen=yes
17435else
17436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017437sed 's/^/| /' conftest.$ac_ext >&5
17438
John Criswell47fdd832003-07-14 16:52:07 +000017439ac_cv_lib_dl_dlopen=no
17440fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441rm -f conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017443LIBS=$ac_check_lib_save_LIBS
17444fi
17445echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17446echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17447if test $ac_cv_lib_dl_dlopen = yes; then
17448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17449else
17450
17451 lt_cv_dlopen="dyld"
17452 lt_cv_dlopen_libs=
17453 lt_cv_dlopen_self=yes
17454
17455fi
17456
17457 ;;
17458
17459 *)
17460 echo "$as_me:$LINENO: checking for shl_load" >&5
17461echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17462if test "${ac_cv_func_shl_load+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464else
17465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017466/* confdefs.h. */
17467_ACEOF
17468cat confdefs.h >>conftest.$ac_ext
17469cat >>conftest.$ac_ext <<_ACEOF
17470/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017471/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17473#define shl_load innocuous_shl_load
17474
John Criswell47fdd832003-07-14 16:52:07 +000017475/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017476 which can conflict with char shl_load (); below.
17477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17478 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017479
John Criswell0c38eaf2003-09-10 15:17:25 +000017480#ifdef __STDC__
17481# include <limits.h>
17482#else
17483# include <assert.h>
17484#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017485
17486#undef shl_load
17487
John Criswell47fdd832003-07-14 16:52:07 +000017488/* Override any gcc2 internal prototype to avoid an error. */
17489#ifdef __cplusplus
17490extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017491{
John Criswell47fdd832003-07-14 16:52:07 +000017492#endif
17493/* We use char because int might match the return type of a gcc2
17494 builtin and then its argument prototype would still apply. */
17495char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017496/* The GNU C library defines this for functions which it implements
17497 to always fail with ENOSYS. Some functions are actually named
17498 something starting with __ and the normal name is an alias. */
17499#if defined (__stub_shl_load) || defined (__stub___shl_load)
17500choke me
17501#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017502char (*f) () = shl_load;
17503#endif
17504#ifdef __cplusplus
17505}
John Criswell47fdd832003-07-14 16:52:07 +000017506#endif
17507
John Criswell0c38eaf2003-09-10 15:17:25 +000017508int
17509main ()
17510{
17511return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017512 ;
17513 return 0;
17514}
17515_ACEOF
17516rm -f conftest.$ac_objext conftest$ac_exeext
17517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017518 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017525 { ac_try='test -z "$ac_cxx_werror_flag"
17526 || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_cv_func_shl_load=yes
17539else
17540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017541sed 's/^/| /' conftest.$ac_ext >&5
17542
John Criswell47fdd832003-07-14 16:52:07 +000017543ac_cv_func_shl_load=no
17544fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017545rm -f conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017547fi
17548echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17549echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17550if test $ac_cv_func_shl_load = yes; then
17551 lt_cv_dlopen="shl_load"
17552else
17553 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17554echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17555if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17557else
17558 ac_check_lib_save_LIBS=$LIBS
17559LIBS="-ldld $LIBS"
17560cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017561/* confdefs.h. */
17562_ACEOF
17563cat confdefs.h >>conftest.$ac_ext
17564cat >>conftest.$ac_ext <<_ACEOF
17565/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017566
17567/* Override any gcc2 internal prototype to avoid an error. */
17568#ifdef __cplusplus
17569extern "C"
17570#endif
17571/* We use char because int might match the return type of a gcc2
17572 builtin and then its argument prototype would still apply. */
17573char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017574int
17575main ()
17576{
17577shl_load ();
17578 ;
17579 return 0;
17580}
17581_ACEOF
17582rm -f conftest.$ac_objext conftest$ac_exeext
17583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017584 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017585 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017591 { ac_try='test -z "$ac_cxx_werror_flag"
17592 || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_dld_shl_load=yes
17605else
17606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017607sed 's/^/| /' conftest.$ac_ext >&5
17608
John Criswell47fdd832003-07-14 16:52:07 +000017609ac_cv_lib_dld_shl_load=no
17610fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017611rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017613LIBS=$ac_check_lib_save_LIBS
17614fi
17615echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17616echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17617if test $ac_cv_lib_dld_shl_load = yes; then
17618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17619else
17620 echo "$as_me:$LINENO: checking for dlopen" >&5
17621echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17622if test "${ac_cv_func_dlopen+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17633#define dlopen innocuous_dlopen
17634
John Criswell47fdd832003-07-14 16:52:07 +000017635/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017636 which can conflict with char dlopen (); below.
17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017639
John Criswell0c38eaf2003-09-10 15:17:25 +000017640#ifdef __STDC__
17641# include <limits.h>
17642#else
17643# include <assert.h>
17644#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017645
17646#undef dlopen
17647
John Criswell47fdd832003-07-14 16:52:07 +000017648/* Override any gcc2 internal prototype to avoid an error. */
17649#ifdef __cplusplus
17650extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017651{
John Criswell47fdd832003-07-14 16:52:07 +000017652#endif
17653/* We use char because int might match the return type of a gcc2
17654 builtin and then its argument prototype would still apply. */
17655char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017656/* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659#if defined (__stub_dlopen) || defined (__stub___dlopen)
17660choke me
17661#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017662char (*f) () = dlopen;
17663#endif
17664#ifdef __cplusplus
17665}
John Criswell47fdd832003-07-14 16:52:07 +000017666#endif
17667
John Criswell0c38eaf2003-09-10 15:17:25 +000017668int
17669main ()
17670{
17671return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017672 ;
17673 return 0;
17674}
17675_ACEOF
17676rm -f conftest.$ac_objext conftest$ac_exeext
17677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017678 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017685 { ac_try='test -z "$ac_cxx_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_cv_func_dlopen=yes
17699else
17700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017701sed 's/^/| /' conftest.$ac_ext >&5
17702
John Criswell47fdd832003-07-14 16:52:07 +000017703ac_cv_func_dlopen=no
17704fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017705rm -f conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017707fi
17708echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17709echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17710if test $ac_cv_func_dlopen = yes; then
17711 lt_cv_dlopen="dlopen"
17712else
17713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17714echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17715if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717else
17718 ac_check_lib_save_LIBS=$LIBS
17719LIBS="-ldl $LIBS"
17720cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017726
17727/* Override any gcc2 internal prototype to avoid an error. */
17728#ifdef __cplusplus
17729extern "C"
17730#endif
17731/* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17733char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017734int
17735main ()
17736{
17737dlopen ();
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext conftest$ac_exeext
17743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017744 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017751 { ac_try='test -z "$ac_cxx_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_lib_dl_dlopen=yes
17765else
17766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017767sed 's/^/| /' conftest.$ac_ext >&5
17768
John Criswell47fdd832003-07-14 16:52:07 +000017769ac_cv_lib_dl_dlopen=no
17770fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017771rm -f conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017773LIBS=$ac_check_lib_save_LIBS
17774fi
17775echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17776echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17777if test $ac_cv_lib_dl_dlopen = yes; then
17778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17779else
17780 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17781echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17782if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784else
17785 ac_check_lib_save_LIBS=$LIBS
17786LIBS="-lsvld $LIBS"
17787cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017793
17794/* Override any gcc2 internal prototype to avoid an error. */
17795#ifdef __cplusplus
17796extern "C"
17797#endif
17798/* We use char because int might match the return type of a gcc2
17799 builtin and then its argument prototype would still apply. */
17800char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017801int
17802main ()
17803{
17804dlopen ();
17805 ;
17806 return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext conftest$ac_exeext
17810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017811 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017818 { ac_try='test -z "$ac_cxx_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_lib_svld_dlopen=yes
17832else
17833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017834sed 's/^/| /' conftest.$ac_ext >&5
17835
John Criswell47fdd832003-07-14 16:52:07 +000017836ac_cv_lib_svld_dlopen=no
17837fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017838rm -f conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017840LIBS=$ac_check_lib_save_LIBS
17841fi
17842echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17843echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17844if test $ac_cv_lib_svld_dlopen = yes; then
17845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17846else
17847 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17848echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17849if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851else
17852 ac_check_lib_save_LIBS=$LIBS
17853LIBS="-ldld $LIBS"
17854cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017855/* confdefs.h. */
17856_ACEOF
17857cat confdefs.h >>conftest.$ac_ext
17858cat >>conftest.$ac_ext <<_ACEOF
17859/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017860
17861/* Override any gcc2 internal prototype to avoid an error. */
17862#ifdef __cplusplus
17863extern "C"
17864#endif
17865/* We use char because int might match the return type of a gcc2
17866 builtin and then its argument prototype would still apply. */
17867char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017868int
17869main ()
17870{
17871dld_link ();
17872 ;
17873 return 0;
17874}
17875_ACEOF
17876rm -f conftest.$ac_objext conftest$ac_exeext
17877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017878 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017885 { ac_try='test -z "$ac_cxx_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_lib_dld_dld_link=yes
17899else
17900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017901sed 's/^/| /' conftest.$ac_ext >&5
17902
John Criswell47fdd832003-07-14 16:52:07 +000017903ac_cv_lib_dld_dld_link=no
17904fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017905rm -f conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017907LIBS=$ac_check_lib_save_LIBS
17908fi
17909echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17910echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17911if test $ac_cv_lib_dld_dld_link = yes; then
17912 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17913fi
17914
17915
17916fi
17917
17918
17919fi
17920
17921
17922fi
17923
17924
17925fi
17926
17927
17928fi
17929
17930 ;;
17931 esac
17932
17933 if test "x$lt_cv_dlopen" != xno; then
17934 enable_dlopen=yes
17935 else
17936 enable_dlopen=no
17937 fi
17938
17939 case $lt_cv_dlopen in
17940 dlopen)
17941 save_CPPFLAGS="$CPPFLAGS"
17942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17943
17944 save_LDFLAGS="$LDFLAGS"
17945 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17946
17947 save_LIBS="$LIBS"
17948 LIBS="$lt_cv_dlopen_libs $LIBS"
17949
17950 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17951echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17952if test "${lt_cv_dlopen_self+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955 if test "$cross_compiling" = yes; then :
17956 lt_cv_dlopen_self=cross
17957else
17958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17959 lt_status=$lt_dlunknown
17960 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000017961#line 17961 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017962#include "confdefs.h"
17963
17964#if HAVE_DLFCN_H
17965#include <dlfcn.h>
17966#endif
17967
17968#include <stdio.h>
17969
17970#ifdef RTLD_GLOBAL
17971# define LT_DLGLOBAL RTLD_GLOBAL
17972#else
17973# ifdef DL_GLOBAL
17974# define LT_DLGLOBAL DL_GLOBAL
17975# else
17976# define LT_DLGLOBAL 0
17977# endif
17978#endif
17979
17980/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17981 find out it does not work in some platform. */
17982#ifndef LT_DLLAZY_OR_NOW
17983# ifdef RTLD_LAZY
17984# define LT_DLLAZY_OR_NOW RTLD_LAZY
17985# else
17986# ifdef DL_LAZY
17987# define LT_DLLAZY_OR_NOW DL_LAZY
17988# else
17989# ifdef RTLD_NOW
17990# define LT_DLLAZY_OR_NOW RTLD_NOW
17991# else
17992# ifdef DL_NOW
17993# define LT_DLLAZY_OR_NOW DL_NOW
17994# else
17995# define LT_DLLAZY_OR_NOW 0
17996# endif
17997# endif
17998# endif
17999# endif
18000#endif
18001
18002#ifdef __cplusplus
18003extern "C" void exit (int);
18004#endif
18005
18006void fnord() { int i=42;}
18007int main ()
18008{
18009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18010 int status = $lt_dlunknown;
18011
18012 if (self)
18013 {
18014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18016 /* dlclose (self); */
18017 }
18018
18019 exit (status);
18020}
18021EOF
18022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18023 (eval $ac_link) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18027 (./conftest; exit; ) 2>/dev/null
18028 lt_status=$?
18029 case x$lt_status in
18030 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18031 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18032 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18033 esac
18034 else :
18035 # compilation failed
18036 lt_cv_dlopen_self=no
18037 fi
18038fi
18039rm -fr conftest*
18040
18041
18042fi
18043echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18044echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18045
18046 if test "x$lt_cv_dlopen_self" = xyes; then
18047 LDFLAGS="$LDFLAGS $link_static_flag"
18048 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18049echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18050if test "${lt_cv_dlopen_self_static+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053 if test "$cross_compiling" = yes; then :
18054 lt_cv_dlopen_self_static=cross
18055else
18056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18057 lt_status=$lt_dlunknown
18058 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000018059#line 18059 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018060#include "confdefs.h"
18061
18062#if HAVE_DLFCN_H
18063#include <dlfcn.h>
18064#endif
18065
18066#include <stdio.h>
18067
18068#ifdef RTLD_GLOBAL
18069# define LT_DLGLOBAL RTLD_GLOBAL
18070#else
18071# ifdef DL_GLOBAL
18072# define LT_DLGLOBAL DL_GLOBAL
18073# else
18074# define LT_DLGLOBAL 0
18075# endif
18076#endif
18077
18078/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18079 find out it does not work in some platform. */
18080#ifndef LT_DLLAZY_OR_NOW
18081# ifdef RTLD_LAZY
18082# define LT_DLLAZY_OR_NOW RTLD_LAZY
18083# else
18084# ifdef DL_LAZY
18085# define LT_DLLAZY_OR_NOW DL_LAZY
18086# else
18087# ifdef RTLD_NOW
18088# define LT_DLLAZY_OR_NOW RTLD_NOW
18089# else
18090# ifdef DL_NOW
18091# define LT_DLLAZY_OR_NOW DL_NOW
18092# else
18093# define LT_DLLAZY_OR_NOW 0
18094# endif
18095# endif
18096# endif
18097# endif
18098#endif
18099
18100#ifdef __cplusplus
18101extern "C" void exit (int);
18102#endif
18103
18104void fnord() { int i=42;}
18105int main ()
18106{
18107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18108 int status = $lt_dlunknown;
18109
18110 if (self)
18111 {
18112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18113 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18114 /* dlclose (self); */
18115 }
18116
18117 exit (status);
18118}
18119EOF
18120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121 (eval $ac_link) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18125 (./conftest; exit; ) 2>/dev/null
18126 lt_status=$?
18127 case x$lt_status in
18128 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18129 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18130 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18131 esac
18132 else :
18133 # compilation failed
18134 lt_cv_dlopen_self_static=no
18135 fi
18136fi
18137rm -fr conftest*
18138
18139
18140fi
18141echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18142echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18143 fi
18144
18145 CPPFLAGS="$save_CPPFLAGS"
18146 LDFLAGS="$save_LDFLAGS"
18147 LIBS="$save_LIBS"
18148 ;;
18149 esac
18150
18151 case $lt_cv_dlopen_self in
18152 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18153 *) enable_dlopen_self=unknown ;;
18154 esac
18155
18156 case $lt_cv_dlopen_self_static in
18157 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18158 *) enable_dlopen_self_static=unknown ;;
18159 esac
18160fi
18161
18162
18163# The else clause should only fire when bootstrapping the
18164# libtool distribution, otherwise you forgot to ship ltmain.sh
18165# with your package, and you will get complaints that there are
18166# no rules to generate ltmain.sh.
18167if test -f "$ltmain"; then
18168 # See if we are running on zsh, and set the options which allow our commands through
18169 # without removal of \ escapes.
18170 if test -n "${ZSH_VERSION+set}" ; then
18171 setopt NO_GLOB_SUBST
18172 fi
18173 # Now quote all the things that may contain metacharacters while being
18174 # careful not to overquote the AC_SUBSTed values. We take copies of the
18175 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018176 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18177 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18180 deplibs_check_method reload_flag reload_cmds need_locks \
18181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18182 lt_cv_sys_global_symbol_to_c_name_address \
18183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18184 old_postinstall_cmds old_postuninstall_cmds \
18185 compiler_CXX \
18186 CC_CXX \
18187 LD_CXX \
18188 lt_prog_compiler_wl_CXX \
18189 lt_prog_compiler_pic_CXX \
18190 lt_prog_compiler_static_CXX \
18191 lt_prog_compiler_no_builtin_flag_CXX \
18192 export_dynamic_flag_spec_CXX \
18193 thread_safe_flag_spec_CXX \
18194 whole_archive_flag_spec_CXX \
18195 enable_shared_with_static_runtimes_CXX \
18196 old_archive_cmds_CXX \
18197 old_archive_from_new_cmds_CXX \
18198 predep_objects_CXX \
18199 postdep_objects_CXX \
18200 predeps_CXX \
18201 postdeps_CXX \
18202 compiler_lib_search_path_CXX \
18203 archive_cmds_CXX \
18204 archive_expsym_cmds_CXX \
18205 postinstall_cmds_CXX \
18206 postuninstall_cmds_CXX \
18207 old_archive_from_expsyms_cmds_CXX \
18208 allow_undefined_flag_CXX \
18209 no_undefined_flag_CXX \
18210 export_symbols_cmds_CXX \
18211 hardcode_libdir_flag_spec_CXX \
18212 hardcode_libdir_flag_spec_ld_CXX \
18213 hardcode_libdir_separator_CXX \
18214 hardcode_automatic_CXX \
18215 module_cmds_CXX \
18216 module_expsym_cmds_CXX \
18217 lt_cv_prog_compiler_c_o_CXX \
18218 exclude_expsyms_CXX \
18219 include_expsyms_CXX; do
18220
18221 case $var in
18222 old_archive_cmds_CXX | \
18223 old_archive_from_new_cmds_CXX | \
18224 archive_cmds_CXX | \
18225 archive_expsym_cmds_CXX | \
18226 module_cmds_CXX | \
18227 module_expsym_cmds_CXX | \
18228 old_archive_from_expsyms_cmds_CXX | \
18229 export_symbols_cmds_CXX | \
18230 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18231 postinstall_cmds | postuninstall_cmds | \
18232 old_postinstall_cmds | old_postuninstall_cmds | \
18233 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18234 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018235 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 +000018236 ;;
18237 *)
18238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18239 ;;
18240 esac
18241 done
18242
18243 case $lt_echo in
18244 *'\$0 --fallback-echo"')
18245 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18246 ;;
18247 esac
18248
18249cfgfile="$ofile"
18250
18251 cat <<__EOF__ >> "$cfgfile"
18252# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18253
18254# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18255
18256# Shell to use when invoking shell scripts.
18257SHELL=$lt_SHELL
18258
18259# Whether or not to build shared libraries.
18260build_libtool_libs=$enable_shared
18261
18262# Whether or not to build static libraries.
18263build_old_libs=$enable_static
18264
18265# Whether or not to add -lc for building shared libraries.
18266build_libtool_need_lc=$archive_cmds_need_lc_CXX
18267
18268# Whether or not to disallow shared libs when runtime libs are static
18269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18270
18271# Whether or not to optimize for fast installation.
18272fast_install=$enable_fast_install
18273
18274# The host system.
18275host_alias=$host_alias
18276host=$host
18277
18278# An echo program that does not interpret backslashes.
18279echo=$lt_echo
18280
18281# The archiver.
18282AR=$lt_AR
18283AR_FLAGS=$lt_AR_FLAGS
18284
18285# A C compiler.
18286LTCC=$lt_LTCC
18287
18288# A language-specific compiler.
18289CC=$lt_compiler_CXX
18290
18291# Is the compiler the GNU C compiler?
18292with_gcc=$GCC_CXX
18293
18294# An ERE matcher.
18295EGREP=$lt_EGREP
18296
18297# The linker used to build libraries.
18298LD=$lt_LD_CXX
18299
18300# Whether we need hard or soft links.
18301LN_S=$lt_LN_S
18302
18303# A BSD-compatible nm program.
18304NM=$lt_NM
18305
18306# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018307STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018308
18309# Used to examine libraries when file_magic_cmd begins "file"
18310MAGIC_CMD=$MAGIC_CMD
18311
18312# Used on cygwin: DLL creation program.
18313DLLTOOL="$DLLTOOL"
18314
18315# Used on cygwin: object dumper.
18316OBJDUMP="$OBJDUMP"
18317
18318# Used on cygwin: assembler.
18319AS="$AS"
18320
18321# The name of the directory that contains temporary libtool files.
18322objdir=$objdir
18323
18324# How to create reloadable object files.
18325reload_flag=$lt_reload_flag
18326reload_cmds=$lt_reload_cmds
18327
18328# How to pass a linker flag through the compiler.
18329wl=$lt_lt_prog_compiler_wl_CXX
18330
18331# Object file suffix (normally "o").
18332objext="$ac_objext"
18333
18334# Old archive suffix (normally "a").
18335libext="$libext"
18336
18337# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018338shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018339
18340# Executable file suffix (normally "").
18341exeext="$exeext"
18342
18343# Additional compiler flags for building library objects.
18344pic_flag=$lt_lt_prog_compiler_pic_CXX
18345pic_mode=$pic_mode
18346
18347# What is the maximum length of a command?
18348max_cmd_len=$lt_cv_sys_max_cmd_len
18349
18350# Does compiler simultaneously support -c and -o options?
18351compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18352
18353# Must we lock files when doing compilation ?
18354need_locks=$lt_need_locks
18355
18356# Do we need the lib prefix for modules?
18357need_lib_prefix=$need_lib_prefix
18358
18359# Do we need a version for libraries?
18360need_version=$need_version
18361
18362# Whether dlopen is supported.
18363dlopen_support=$enable_dlopen
18364
18365# Whether dlopen of programs is supported.
18366dlopen_self=$enable_dlopen_self
18367
18368# Whether dlopen of statically linked programs is supported.
18369dlopen_self_static=$enable_dlopen_self_static
18370
18371# Compiler flag to prevent dynamic linking.
18372link_static_flag=$lt_lt_prog_compiler_static_CXX
18373
18374# Compiler flag to turn off builtin functions.
18375no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18376
18377# Compiler flag to allow reflexive dlopens.
18378export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18379
18380# Compiler flag to generate shared objects directly from archives.
18381whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18382
18383# Compiler flag to generate thread-safe objects.
18384thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18385
18386# Library versioning type.
18387version_type=$version_type
18388
18389# Format of library name prefix.
18390libname_spec=$lt_libname_spec
18391
18392# List of archive names. First name is the real one, the rest are links.
18393# The last name is the one that the linker finds with -lNAME.
18394library_names_spec=$lt_library_names_spec
18395
18396# The coded name of the library, if different from the real name.
18397soname_spec=$lt_soname_spec
18398
18399# Commands used to build and install an old-style archive.
18400RANLIB=$lt_RANLIB
18401old_archive_cmds=$lt_old_archive_cmds_CXX
18402old_postinstall_cmds=$lt_old_postinstall_cmds
18403old_postuninstall_cmds=$lt_old_postuninstall_cmds
18404
18405# Create an old-style archive from a shared archive.
18406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18407
18408# Create a temporary old-style archive to link instead of a shared archive.
18409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18410
18411# Commands used to build and install a shared archive.
18412archive_cmds=$lt_archive_cmds_CXX
18413archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18414postinstall_cmds=$lt_postinstall_cmds
18415postuninstall_cmds=$lt_postuninstall_cmds
18416
18417# Commands used to build a loadable module (assumed same as above if empty)
18418module_cmds=$lt_module_cmds_CXX
18419module_expsym_cmds=$lt_module_expsym_cmds_CXX
18420
18421# Commands to strip libraries.
18422old_striplib=$lt_old_striplib
18423striplib=$lt_striplib
18424
18425# Dependencies to place before the objects being linked to create a
18426# shared library.
18427predep_objects=$lt_predep_objects_CXX
18428
18429# Dependencies to place after the objects being linked to create a
18430# shared library.
18431postdep_objects=$lt_postdep_objects_CXX
18432
18433# Dependencies to place before the objects being linked to create a
18434# shared library.
18435predeps=$lt_predeps_CXX
18436
18437# Dependencies to place after the objects being linked to create a
18438# shared library.
18439postdeps=$lt_postdeps_CXX
18440
18441# The library search path used internally by the compiler when linking
18442# a shared library.
18443compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18444
18445# Method to check whether dependent libraries are shared objects.
18446deplibs_check_method=$lt_deplibs_check_method
18447
18448# Command to use when deplibs_check_method == file_magic.
18449file_magic_cmd=$lt_file_magic_cmd
18450
18451# Flag that allows shared libraries with undefined symbols to be built.
18452allow_undefined_flag=$lt_allow_undefined_flag_CXX
18453
18454# Flag that forces no undefined symbols.
18455no_undefined_flag=$lt_no_undefined_flag_CXX
18456
18457# Commands used to finish a libtool library installation in a directory.
18458finish_cmds=$lt_finish_cmds
18459
18460# Same as above, but a single script fragment to be evaled but not shown.
18461finish_eval=$lt_finish_eval
18462
18463# Take the output of nm and produce a listing of raw symbols and C names.
18464global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18465
18466# Transform the output of nm in a proper C declaration
18467global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18468
18469# Transform the output of nm in a C name address pair
18470global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18471
18472# This is the shared library runtime path variable.
18473runpath_var=$runpath_var
18474
18475# This is the shared library path variable.
18476shlibpath_var=$shlibpath_var
18477
18478# Is shlibpath searched before the hard-coded library search path?
18479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18480
18481# How to hardcode a shared library path into an executable.
18482hardcode_action=$hardcode_action_CXX
18483
18484# Whether we should hardcode library paths into libraries.
18485hardcode_into_libs=$hardcode_into_libs
18486
18487# Flag to hardcode \$libdir into a binary during linking.
18488# This must work even if \$libdir does not exist.
18489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18490
18491# If ld is used when linking, flag to hardcode \$libdir into
18492# a binary during linking. This must work even if \$libdir does
18493# not exist.
18494hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18495
18496# Whether we need a single -rpath flag with a separated argument.
18497hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18498
18499# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18500# resulting binary.
18501hardcode_direct=$hardcode_direct_CXX
18502
18503# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18504# resulting binary.
18505hardcode_minus_L=$hardcode_minus_L_CXX
18506
18507# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18508# the resulting binary.
18509hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18510
18511# Set to yes if building a shared library automatically hardcodes DIR into the library
18512# and all subsequent libraries and executables linked against it.
18513hardcode_automatic=$hardcode_automatic_CXX
18514
18515# Variables whose values should be saved in libtool wrapper scripts and
18516# restored at relink time.
18517variables_saved_for_relink="$variables_saved_for_relink"
18518
18519# Whether libtool must link a program against all its dependency libraries.
18520link_all_deplibs=$link_all_deplibs_CXX
18521
18522# Compile-time system search path for libraries
18523sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18524
18525# Run-time system search path for libraries
18526sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18527
18528# Fix the shell variable \$srcfile for the compiler.
18529fix_srcfile_path="$fix_srcfile_path_CXX"
18530
18531# Set to yes if exported symbols are required.
18532always_export_symbols=$always_export_symbols_CXX
18533
18534# The commands to list exported symbols.
18535export_symbols_cmds=$lt_export_symbols_cmds_CXX
18536
18537# The commands to extract the exported symbol list from a shared archive.
18538extract_expsyms_cmds=$lt_extract_expsyms_cmds
18539
18540# Symbols that should not be listed in the preloaded symbols.
18541exclude_expsyms=$lt_exclude_expsyms_CXX
18542
18543# Symbols that must always be exported.
18544include_expsyms=$lt_include_expsyms_CXX
18545
18546# ### END LIBTOOL TAG CONFIG: $tagname
18547
18548__EOF__
18549
18550
18551else
18552 # If there is no Makefile yet, we rely on a make rule to execute
18553 # `config.status --recheck' to rerun these tests and create the
18554 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18556 if test -f "$ltmain_in"; then
18557 test -f Makefile && make "$ltmain"
18558 fi
John Criswell47fdd832003-07-14 16:52:07 +000018559fi
18560
18561
18562ac_ext=c
18563ac_cpp='$CPP $CPPFLAGS'
18564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566ac_compiler_gnu=$ac_cv_c_compiler_gnu
18567
18568CC=$lt_save_CC
18569LDCXX=$LD
18570LD=$lt_save_LD
18571GCC=$lt_save_GCC
18572with_gnu_ldcxx=$with_gnu_ld
18573with_gnu_ld=$lt_save_with_gnu_ld
18574lt_cv_path_LDCXX=$lt_cv_path_LD
18575lt_cv_path_LD=$lt_save_path_LD
18576lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18577lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18578
18579 else
18580 tagname=""
18581 fi
18582 ;;
18583
18584 F77)
18585 if test -n "$F77" && test "X$F77" != "Xno"; then
18586
18587ac_ext=f
18588ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18589ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18591
18592
18593archive_cmds_need_lc_F77=no
18594allow_undefined_flag_F77=
18595always_export_symbols_F77=no
18596archive_expsym_cmds_F77=
18597export_dynamic_flag_spec_F77=
18598hardcode_direct_F77=no
18599hardcode_libdir_flag_spec_F77=
18600hardcode_libdir_flag_spec_ld_F77=
18601hardcode_libdir_separator_F77=
18602hardcode_minus_L_F77=no
18603hardcode_automatic_F77=no
18604module_cmds_F77=
18605module_expsym_cmds_F77=
18606link_all_deplibs_F77=unknown
18607old_archive_cmds_F77=$old_archive_cmds
18608no_undefined_flag_F77=
18609whole_archive_flag_spec_F77=
18610enable_shared_with_static_runtimes_F77=no
18611
18612# Source file extension for f77 test sources.
18613ac_ext=f
18614
18615# Object file extension for compiled f77 test sources.
18616objext=o
18617objext_F77=$objext
18618
18619# Code to be used in simple compile tests
18620lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18621
18622# Code to be used in simple link tests
18623lt_simple_link_test_code=" program t\n end\n"
18624
18625# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18626
18627# If no C compiler was specified, use CC.
18628LTCC=${LTCC-"$CC"}
18629
18630# Allow CC to be a program name with arguments.
18631compiler=$CC
18632
18633
18634# Allow CC to be a program name with arguments.
18635lt_save_CC="$CC"
18636CC=${F77-"f77"}
18637compiler=$CC
18638compiler_F77=$CC
18639cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18640
18641echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18642echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18643echo "$as_me:$LINENO: result: $can_build_shared" >&5
18644echo "${ECHO_T}$can_build_shared" >&6
18645
18646echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18647echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18648test "$can_build_shared" = "no" && enable_shared=no
18649
18650# On AIX, shared libraries and static libraries use the same namespace, and
18651# are all built from PIC.
18652case "$host_os" in
18653aix3*)
18654 test "$enable_shared" = yes && enable_static=no
18655 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018656 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018657 postinstall_cmds='$RANLIB $lib'
18658 fi
18659 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018660aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018661 test "$enable_shared" = yes && enable_static=no
18662 ;;
18663esac
18664echo "$as_me:$LINENO: result: $enable_shared" >&5
18665echo "${ECHO_T}$enable_shared" >&6
18666
18667echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18668echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18669# Make sure either enable_shared or enable_static is yes.
18670test "$enable_shared" = yes || enable_static=yes
18671echo "$as_me:$LINENO: result: $enable_static" >&5
18672echo "${ECHO_T}$enable_static" >&6
18673
18674test "$ld_shlibs_F77" = no && can_build_shared=no
18675
18676GCC_F77="$G77"
18677LD_F77="$LD"
18678
18679lt_prog_compiler_wl_F77=
18680lt_prog_compiler_pic_F77=
18681lt_prog_compiler_static_F77=
18682
18683echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18684echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18685
18686 if test "$GCC" = yes; then
18687 lt_prog_compiler_wl_F77='-Wl,'
18688 lt_prog_compiler_static_F77='-static'
18689
18690 case $host_os in
18691 aix*)
18692 # All AIX code is PIC.
18693 if test "$host_cpu" = ia64; then
18694 # AIX 5 now supports IA64 processor
18695 lt_prog_compiler_static_F77='-Bstatic'
18696 fi
18697 ;;
18698
18699 amigaos*)
18700 # FIXME: we need at least 68020 code to build shared libraries, but
18701 # adding the `-m68020' flag to GCC prevents building anything better,
18702 # like `-m68040'.
18703 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18704 ;;
18705
18706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18707 # PIC is the default for these OSes.
18708 ;;
18709
18710 mingw* | pw32* | os2*)
18711 # This hack is so that the source file can tell whether it is being
18712 # built for inclusion in a dll (and should export symbols for example).
18713 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18714 ;;
18715
18716 darwin* | rhapsody*)
18717 # PIC is the default on this platform
18718 # Common symbols not allowed in MH_DYLIB files
18719 lt_prog_compiler_pic_F77='-fno-common'
18720 ;;
18721
18722 msdosdjgpp*)
18723 # Just because we use GCC doesn't mean we suddenly get shared libraries
18724 # on systems that don't support them.
18725 lt_prog_compiler_can_build_shared_F77=no
18726 enable_shared=no
18727 ;;
18728
18729 sysv4*MP*)
18730 if test -d /usr/nec; then
18731 lt_prog_compiler_pic_F77=-Kconform_pic
18732 fi
18733 ;;
18734
18735 hpux*)
18736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18737 # not for PA HP-UX.
18738 case "$host_cpu" in
18739 hppa*64*|ia64*)
18740 # +Z the default
18741 ;;
18742 *)
18743 lt_prog_compiler_pic_F77='-fPIC'
18744 ;;
18745 esac
18746 ;;
18747
18748 *)
18749 lt_prog_compiler_pic_F77='-fPIC'
18750 ;;
18751 esac
18752 else
18753 # PORTME Check for flag to pass linker flags through the system compiler.
18754 case $host_os in
18755 aix*)
18756 lt_prog_compiler_wl_F77='-Wl,'
18757 if test "$host_cpu" = ia64; then
18758 # AIX 5 now supports IA64 processor
18759 lt_prog_compiler_static_F77='-Bstatic'
18760 else
18761 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18762 fi
18763 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018764 darwin*)
18765 # PIC is the default on this platform
18766 # Common symbols not allowed in MH_DYLIB files
18767 case "$cc_basename" in
18768 xlc*)
18769 lt_prog_compiler_pic_F77='-qnocommon'
18770 lt_prog_compiler_wl_F77='-Wl,'
18771 ;;
18772 esac
18773 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018774
18775 mingw* | pw32* | os2*)
18776 # This hack is so that the source file can tell whether it is being
18777 # built for inclusion in a dll (and should export symbols for example).
18778 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18779 ;;
18780
18781 hpux9* | hpux10* | hpux11*)
18782 lt_prog_compiler_wl_F77='-Wl,'
18783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18784 # not for PA HP-UX.
18785 case "$host_cpu" in
18786 hppa*64*|ia64*)
18787 # +Z the default
18788 ;;
18789 *)
18790 lt_prog_compiler_pic_F77='+Z'
18791 ;;
18792 esac
18793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18794 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18795 ;;
18796
18797 irix5* | irix6* | nonstopux*)
18798 lt_prog_compiler_wl_F77='-Wl,'
18799 # PIC (with -KPIC) is the default.
18800 lt_prog_compiler_static_F77='-non_shared'
18801 ;;
18802
18803 newsos6)
18804 lt_prog_compiler_pic_F77='-KPIC'
18805 lt_prog_compiler_static_F77='-Bstatic'
18806 ;;
18807
18808 linux*)
18809 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018810 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018811 lt_prog_compiler_wl_F77='-Wl,'
18812 lt_prog_compiler_pic_F77='-KPIC'
18813 lt_prog_compiler_static_F77='-static'
18814 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018815 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018816 lt_prog_compiler_wl_F77='-Wl,'
18817 # All Alpha code is PIC.
18818 lt_prog_compiler_static_F77='-non_shared'
18819 ;;
18820 esac
18821 ;;
18822
18823 osf3* | osf4* | osf5*)
18824 lt_prog_compiler_wl_F77='-Wl,'
18825 # All OSF/1 code is PIC.
18826 lt_prog_compiler_static_F77='-non_shared'
18827 ;;
18828
18829 sco3.2v5*)
18830 lt_prog_compiler_pic_F77='-Kpic'
18831 lt_prog_compiler_static_F77='-dn'
18832 ;;
18833
18834 solaris*)
18835 lt_prog_compiler_wl_F77='-Wl,'
18836 lt_prog_compiler_pic_F77='-KPIC'
18837 lt_prog_compiler_static_F77='-Bstatic'
18838 ;;
18839
18840 sunos4*)
18841 lt_prog_compiler_wl_F77='-Qoption ld '
18842 lt_prog_compiler_pic_F77='-PIC'
18843 lt_prog_compiler_static_F77='-Bstatic'
18844 ;;
18845
18846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18847 lt_prog_compiler_wl_F77='-Wl,'
18848 lt_prog_compiler_pic_F77='-KPIC'
18849 lt_prog_compiler_static_F77='-Bstatic'
18850 ;;
18851
18852 sysv4*MP*)
18853 if test -d /usr/nec ;then
18854 lt_prog_compiler_pic_F77='-Kconform_pic'
18855 lt_prog_compiler_static_F77='-Bstatic'
18856 fi
18857 ;;
18858
18859 uts4*)
18860 lt_prog_compiler_pic_F77='-pic'
18861 lt_prog_compiler_static_F77='-Bstatic'
18862 ;;
18863
18864 *)
18865 lt_prog_compiler_can_build_shared_F77=no
18866 ;;
18867 esac
18868 fi
18869
18870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18871echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18872
18873#
18874# Check to make sure the PIC flag actually works.
18875#
18876if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018877
18878echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018879echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18880if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882else
18883 lt_prog_compiler_pic_works_F77=no
18884 ac_outfile=conftest.$ac_objext
18885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18886 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18887 # Insert the option either (1) after the last *FLAGS variable, or
18888 # (2) before a word containing "conftest.", or (3) at the end.
18889 # Note that $ac_compile itself does not contain backslashes and begins
18890 # with a dollar sign (not a hyphen), so the echo should work correctly.
18891 # The option is referenced via a variable to avoid confusing sed.
18892 lt_compile=`echo "$ac_compile" | $SED \
18893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18895 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000018896 (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018897 (eval "$lt_compile" 2>conftest.err)
18898 ac_status=$?
18899 cat conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000018900 echo "$as_me:18900: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018901 if (exit $ac_status) && test -s "$ac_outfile"; then
18902 # The compiler can only warn and ignore the option if not recognized
18903 # So say no if there are warnings
18904 if test ! -s conftest.err; then
18905 lt_prog_compiler_pic_works_F77=yes
18906 fi
18907 fi
18908 $rm conftest*
18909
18910fi
18911echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18912echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18913
18914if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18915 case $lt_prog_compiler_pic_F77 in
18916 "" | " "*) ;;
18917 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18918 esac
18919else
18920 lt_prog_compiler_pic_F77=
18921 lt_prog_compiler_can_build_shared_F77=no
18922fi
18923
18924fi
18925case "$host_os" in
18926 # For platforms which do not support PIC, -DPIC is meaningless:
18927 *djgpp*)
18928 lt_prog_compiler_pic_F77=
18929 ;;
18930 *)
18931 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18932 ;;
18933esac
18934
18935echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18936echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18937if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939else
18940 lt_cv_prog_compiler_c_o_F77=no
18941 $rm -r conftest 2>/dev/null
18942 mkdir conftest
18943 cd conftest
18944 mkdir out
18945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18946
John Criswell47fdd832003-07-14 16:52:07 +000018947 lt_compiler_flag="-o out/conftest2.$ac_objext"
18948 # Insert the option either (1) after the last *FLAGS variable, or
18949 # (2) before a word containing "conftest.", or (3) at the end.
18950 # Note that $ac_compile itself does not contain backslashes and begins
18951 # with a dollar sign (not a hyphen), so the echo should work correctly.
18952 lt_compile=`echo "$ac_compile" | $SED \
18953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18955 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000018956 (eval echo "\"\$as_me:18956: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018957 (eval "$lt_compile" 2>out/conftest.err)
18958 ac_status=$?
18959 cat out/conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000018960 echo "$as_me:18960: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18962 then
18963 # The compiler can only warn and ignore the option if not recognized
18964 # So say no if there are warnings
18965 if test ! -s out/conftest.err; then
18966 lt_cv_prog_compiler_c_o_F77=yes
18967 fi
18968 fi
18969 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018970 $rm conftest*
18971 # SGI C++ compiler will create directory out/ii_files/ for
18972 # template instantiation
18973 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18974 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018975 cd ..
18976 rmdir conftest
18977 $rm conftest*
18978
18979fi
18980echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18981echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18982
18983
18984hard_links="nottested"
18985if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18986 # do not overwrite the value of need_locks provided by the user
18987 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18988echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18989 hard_links=yes
18990 $rm conftest*
18991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18992 touch conftest.a
18993 ln conftest.a conftest.b 2>&5 || hard_links=no
18994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18995 echo "$as_me:$LINENO: result: $hard_links" >&5
18996echo "${ECHO_T}$hard_links" >&6
18997 if test "$hard_links" = no; then
18998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18999echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19000 need_locks=warn
19001 fi
19002else
19003 need_locks=no
19004fi
19005
19006echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19007echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19008
19009 runpath_var=
19010 allow_undefined_flag_F77=
19011 enable_shared_with_static_runtimes_F77=no
19012 archive_cmds_F77=
19013 archive_expsym_cmds_F77=
19014 old_archive_From_new_cmds_F77=
19015 old_archive_from_expsyms_cmds_F77=
19016 export_dynamic_flag_spec_F77=
19017 whole_archive_flag_spec_F77=
19018 thread_safe_flag_spec_F77=
19019 hardcode_libdir_flag_spec_F77=
19020 hardcode_libdir_flag_spec_ld_F77=
19021 hardcode_libdir_separator_F77=
19022 hardcode_direct_F77=no
19023 hardcode_minus_L_F77=no
19024 hardcode_shlibpath_var_F77=unsupported
19025 link_all_deplibs_F77=unknown
19026 hardcode_automatic_F77=no
19027 module_cmds_F77=
19028 module_expsym_cmds_F77=
19029 always_export_symbols_F77=no
19030 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19031 # include_expsyms should be a list of space-separated symbols to be *always*
19032 # included in the symbol list
19033 include_expsyms_F77=
19034 # exclude_expsyms can be an extended regexp of symbols to exclude
19035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19037 # as well as any symbol that contains `d'.
19038 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19040 # platforms (ab)use it in PIC code, but their linkers get confused if
19041 # the symbol is explicitly referenced. Since portable code cannot
19042 # rely on this symbol name, it's probably fine to never include it in
19043 # preloaded symbol tables.
19044 extract_expsyms_cmds=
19045
19046 case $host_os in
19047 cygwin* | mingw* | pw32*)
19048 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19049 # When not using gcc, we currently assume that we are using
19050 # Microsoft Visual C++.
19051 if test "$GCC" != yes; then
19052 with_gnu_ld=no
19053 fi
19054 ;;
19055 openbsd*)
19056 with_gnu_ld=no
19057 ;;
19058 esac
19059
19060 ld_shlibs_F77=yes
19061 if test "$with_gnu_ld" = yes; then
19062 # If archive_cmds runs LD, not CC, wlarc should be empty
19063 wlarc='${wl}'
19064
19065 # See if GNU ld supports shared libraries.
19066 case $host_os in
19067 aix3* | aix4* | aix5*)
19068 # On AIX/PPC, the GNU linker is very broken
19069 if test "$host_cpu" != ia64; then
19070 ld_shlibs_F77=no
19071 cat <<EOF 1>&2
19072
19073*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19074*** to be unable to reliably create shared libraries on AIX.
19075*** Therefore, libtool is disabling shared libraries support. If you
19076*** really care for shared libraries, you may want to modify your PATH
19077*** so that a non-GNU linker is found, and then restart.
19078
19079EOF
19080 fi
19081 ;;
19082
19083 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019084 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 +000019085 hardcode_libdir_flag_spec_F77='-L$libdir'
19086 hardcode_minus_L_F77=yes
19087
19088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19089 # that the semantics of dynamic libraries on AmigaOS, at least up
19090 # to version 4, is to share data among multiple programs linked
19091 # with the same dynamic library. Since this doesn't match the
19092 # behavior of shared libraries on other platforms, we can't use
19093 # them.
19094 ld_shlibs_F77=no
19095 ;;
19096
19097 beos*)
19098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19099 allow_undefined_flag_F77=unsupported
19100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19101 # support --undefined. This deserves some investigation. FIXME
19102 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103 else
19104 ld_shlibs_F77=no
19105 fi
19106 ;;
19107
19108 cygwin* | mingw* | pw32*)
19109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19110 # as there is no search path for DLLs.
19111 hardcode_libdir_flag_spec_F77='-L$libdir'
19112 allow_undefined_flag_F77=unsupported
19113 always_export_symbols_F77=no
19114 enable_shared_with_static_runtimes_F77=yes
19115 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19116
19117 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19119 # If the export-symbols file already is a .def file (1st line
19120 # is EXPORTS), use it as is; otherwise, prepend...
19121 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19122 cp $export_symbols $output_objdir/$soname.def;
19123 else
19124 echo EXPORTS > $output_objdir/$soname.def;
19125 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019126 fi~
19127 $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 +000019128 else
19129 ld_shlibs=no
19130 fi
19131 ;;
19132
19133 netbsd*)
19134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19135 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19136 wlarc=
19137 else
19138 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19139 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19140 fi
19141 ;;
19142
19143 solaris* | sysv5*)
19144 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19145 ld_shlibs_F77=no
19146 cat <<EOF 1>&2
19147
19148*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19149*** create shared libraries on Solaris systems. Therefore, libtool
19150*** is disabling shared libraries support. We urge you to upgrade GNU
19151*** binutils to release 2.9.1 or newer. Another option is to modify
19152*** your PATH or compiler configuration so that the native linker is
19153*** used, and then restart.
19154
19155EOF
19156 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19157 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19158 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19159 else
19160 ld_shlibs_F77=no
19161 fi
19162 ;;
19163
19164 sunos4*)
19165 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19166 wlarc=
19167 hardcode_direct_F77=yes
19168 hardcode_shlibpath_var_F77=no
19169 ;;
19170
Reid Spencer2706f8c2004-09-19 23:53:36 +000019171 linux*)
19172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19173 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19174 archive_cmds_F77="$tmp_archive_cmds"
19175 supports_anon_versioning=no
19176 case `$LD -v 2>/dev/null` in
19177 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19180 *\ 2.11.*) ;; # other 2.11 versions
19181 *) supports_anon_versioning=yes ;;
19182 esac
19183 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019184 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19185cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19186$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019187 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19188 else
19189 archive_expsym_cmds_F77="$tmp_archive_cmds"
19190 fi
19191 else
19192 ld_shlibs_F77=no
19193 fi
19194 ;;
19195
John Criswell47fdd832003-07-14 16:52:07 +000019196 *)
19197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19200 else
19201 ld_shlibs_F77=no
19202 fi
19203 ;;
19204 esac
19205
19206 if test "$ld_shlibs_F77" = yes; then
19207 runpath_var=LD_RUN_PATH
19208 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19209 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19210 # ancient GNU ld didn't support --whole-archive et. al.
19211 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19212 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19213 else
19214 whole_archive_flag_spec_F77=
19215 fi
19216 fi
19217 else
19218 # PORTME fill in a description of your system's linker (not GNU ld)
19219 case $host_os in
19220 aix3*)
19221 allow_undefined_flag_F77=unsupported
19222 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019223 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 +000019224 # Note: this linker hardcodes the directories in LIBPATH if there
19225 # are no directories specified by -L.
19226 hardcode_minus_L_F77=yes
19227 if test "$GCC" = yes && test -z "$link_static_flag"; then
19228 # Neither direct hardcoding nor static linking is supported with a
19229 # broken collect2.
19230 hardcode_direct_F77=unsupported
19231 fi
19232 ;;
19233
19234 aix4* | aix5*)
19235 if test "$host_cpu" = ia64; then
19236 # On IA64, the linker does run time linking by default, so we don't
19237 # have to do anything special.
19238 aix_use_runtimelinking=no
19239 exp_sym_flag='-Bexport'
19240 no_entry_flag=""
19241 else
19242 # If we're using GNU nm, then we don't want the "-C" option.
19243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19245 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'
19246 else
19247 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'
19248 fi
19249 aix_use_runtimelinking=no
19250
19251 # Test if we are trying to use run time linking or normal
19252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19253 # need to do runtime linking.
19254 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19255 for ld_flag in $LDFLAGS; do
19256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19257 aix_use_runtimelinking=yes
19258 break
19259 fi
19260 done
19261 esac
19262
19263 exp_sym_flag='-bexport'
19264 no_entry_flag='-bnoentry'
19265 fi
19266
19267 # When large executables or shared objects are built, AIX ld can
19268 # have problems creating the table of contents. If linking a library
19269 # or program results in "error TOC overflow" add -mminimal-toc to
19270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19272
19273 archive_cmds_F77=''
19274 hardcode_direct_F77=yes
19275 hardcode_libdir_separator_F77=':'
19276 link_all_deplibs_F77=yes
19277
19278 if test "$GCC" = yes; then
19279 case $host_os in aix4.012|aix4.012.*)
19280 # We only want to do this on AIX 4.2 and lower, the check
19281 # below for broken collect2 doesn't work under 4.3+
19282 collect2name=`${CC} -print-prog-name=collect2`
19283 if test -f "$collect2name" && \
19284 strings "$collect2name" | grep resolve_lib_name >/dev/null
19285 then
19286 # We have reworked collect2
19287 hardcode_direct_F77=yes
19288 else
19289 # We have old collect2
19290 hardcode_direct_F77=unsupported
19291 # It fails to find uninstalled libraries when the uninstalled
19292 # path is not listed in the libpath. Setting hardcode_minus_L
19293 # to unsupported forces relinking
19294 hardcode_minus_L_F77=yes
19295 hardcode_libdir_flag_spec_F77='-L$libdir'
19296 hardcode_libdir_separator_F77=
19297 fi
19298 esac
19299 shared_flag='-shared'
19300 else
19301 # not using gcc
19302 if test "$host_cpu" = ia64; then
19303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19304 # chokes on -Wl,-G. The following line is correct:
19305 shared_flag='-G'
19306 else
19307 if test "$aix_use_runtimelinking" = yes; then
19308 shared_flag='${wl}-G'
19309 else
19310 shared_flag='${wl}-bM:SRE'
19311 fi
19312 fi
19313 fi
19314
19315 # It seems that -bexpall does not export symbols beginning with
19316 # underscore (_), so it is better to generate a list of symbols to export.
19317 always_export_symbols_F77=yes
19318 if test "$aix_use_runtimelinking" = yes; then
19319 # Warning - without using the other runtime loading flags (-brtl),
19320 # -berok will link without error, but may produce a broken library.
19321 allow_undefined_flag_F77='-berok'
19322 # Determine the default libpath from the value encoded in an empty executable.
19323 cat >conftest.$ac_ext <<_ACEOF
19324 program main
19325
19326 end
19327_ACEOF
19328rm -f conftest.$ac_objext conftest$ac_exeext
19329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019330 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019331 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019337 { ac_try='test -z "$ac_f77_werror_flag"
19338 || test ! -s conftest.err'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19350
19351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19352}'`
19353# Check for a 64-bit object if we didn't find anything.
19354if 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; }
19355}'`; fi
19356else
19357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019358sed 's/^/| /' conftest.$ac_ext >&5
19359
John Criswell47fdd832003-07-14 16:52:07 +000019360fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019361rm -f conftest.err conftest.$ac_objext \
19362 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19364
19365 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19366 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"
19367 else
19368 if test "$host_cpu" = ia64; then
19369 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19370 allow_undefined_flag_F77="-z nodefs"
19371 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"
19372 else
19373 # Determine the default libpath from the value encoded in an empty executable.
19374 cat >conftest.$ac_ext <<_ACEOF
19375 program main
19376
19377 end
19378_ACEOF
19379rm -f conftest.$ac_objext conftest$ac_exeext
19380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019381 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019388 { ac_try='test -z "$ac_f77_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401
19402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19403}'`
19404# Check for a 64-bit object if we didn't find anything.
19405if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19406}'`; fi
19407else
19408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019409sed 's/^/| /' conftest.$ac_ext >&5
19410
John Criswell47fdd832003-07-14 16:52:07 +000019411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019412rm -f conftest.err conftest.$ac_objext \
19413 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19415
19416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19417 # Warning - without using the other run time loading flags,
19418 # -berok will link without error, but may produce a broken library.
19419 no_undefined_flag_F77=' ${wl}-bernotok'
19420 allow_undefined_flag_F77=' ${wl}-berok'
19421 # -bexpall does not export symbols beginning with underscore (_)
19422 always_export_symbols_F77=yes
19423 # Exported symbols can be pulled into shared objects from archives
19424 whole_archive_flag_spec_F77=' '
19425 archive_cmds_need_lc_F77=yes
19426 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019427 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 +000019428 fi
19429 fi
19430 ;;
19431
19432 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019433 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 +000019434 hardcode_libdir_flag_spec_F77='-L$libdir'
19435 hardcode_minus_L_F77=yes
19436 # see comment about different semantics on the GNU ld section
19437 ld_shlibs_F77=no
19438 ;;
19439
Reid Spencer2706f8c2004-09-19 23:53:36 +000019440 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019441 export_dynamic_flag_spec_F77=-rdynamic
19442 ;;
19443
19444 cygwin* | mingw* | pw32*)
19445 # When not using gcc, we currently assume that we are using
19446 # Microsoft Visual C++.
19447 # hardcode_libdir_flag_spec is actually meaningless, as there is
19448 # no search path for DLLs.
19449 hardcode_libdir_flag_spec_F77=' '
19450 allow_undefined_flag_F77=unsupported
19451 # Tell ltmain to make .lib files, not .a files.
19452 libext=lib
19453 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019454 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019455 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019456 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 +000019457 # The linker will automatically build a .lib file if we build a DLL.
19458 old_archive_From_new_cmds_F77='true'
19459 # FIXME: Should let the user specify the lib program.
19460 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19461 fix_srcfile_path='`cygpath -w "$srcfile"`'
19462 enable_shared_with_static_runtimes_F77=yes
19463 ;;
19464
19465 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019466 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019467 rhapsody* | darwin1.[012])
19468 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19469 ;;
19470 *) # Darwin 1.3 on
19471 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19472 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19473 else
19474 case ${MACOSX_DEPLOYMENT_TARGET} in
19475 10.[012])
19476 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19477 ;;
19478 10.*)
19479 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19480 ;;
19481 esac
19482 fi
19483 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019484 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019485 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019486 hardcode_direct_F77=no
19487 hardcode_automatic_F77=yes
19488 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019489 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019490 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019491 if test "$GCC" = yes ; then
19492 output_verbose_link_cmd='echo'
19493 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19494 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19495 # 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 +000019496 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}'
19497 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 +000019498 else
19499 case "$cc_basename" in
19500 xlc*)
19501 output_verbose_link_cmd='echo'
19502 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19503 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19504 # 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 +000019505 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}'
19506 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 +000019507 ;;
19508 *)
19509 ld_shlibs_F77=no
19510 ;;
19511 esac
John Criswell47fdd832003-07-14 16:52:07 +000019512 fi
19513 ;;
19514
19515 dgux*)
19516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19517 hardcode_libdir_flag_spec_F77='-L$libdir'
19518 hardcode_shlibpath_var_F77=no
19519 ;;
19520
19521 freebsd1*)
19522 ld_shlibs_F77=no
19523 ;;
19524
19525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19526 # support. Future versions do this automatically, but an explicit c++rt0.o
19527 # does not break anything, and helps significantly (at the cost of a little
19528 # extra space).
19529 freebsd2.2*)
19530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19531 hardcode_libdir_flag_spec_F77='-R$libdir'
19532 hardcode_direct_F77=yes
19533 hardcode_shlibpath_var_F77=no
19534 ;;
19535
19536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19537 freebsd2*)
19538 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19539 hardcode_direct_F77=yes
19540 hardcode_minus_L_F77=yes
19541 hardcode_shlibpath_var_F77=no
19542 ;;
19543
19544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019545 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019546 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19547 hardcode_libdir_flag_spec_F77='-R$libdir'
19548 hardcode_direct_F77=yes
19549 hardcode_shlibpath_var_F77=no
19550 ;;
19551
19552 hpux9*)
19553 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019554 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 +000019555 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019556 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 +000019557 fi
19558 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19559 hardcode_libdir_separator_F77=:
19560 hardcode_direct_F77=yes
19561
19562 # hardcode_minus_L: Not really in the search PATH,
19563 # but as the default location of the library.
19564 hardcode_minus_L_F77=yes
19565 export_dynamic_flag_spec_F77='${wl}-E'
19566 ;;
19567
19568 hpux10* | hpux11*)
19569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19570 case "$host_cpu" in
19571 hppa*64*|ia64*)
19572 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19573 ;;
19574 *)
19575 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19576 ;;
19577 esac
19578 else
19579 case "$host_cpu" in
19580 hppa*64*|ia64*)
19581 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19582 ;;
19583 *)
19584 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19585 ;;
19586 esac
19587 fi
19588 if test "$with_gnu_ld" = no; then
19589 case "$host_cpu" in
19590 hppa*64*)
19591 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19592 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19593 hardcode_libdir_separator_F77=:
19594 hardcode_direct_F77=no
19595 hardcode_shlibpath_var_F77=no
19596 ;;
19597 ia64*)
19598 hardcode_libdir_flag_spec_F77='-L$libdir'
19599 hardcode_direct_F77=no
19600 hardcode_shlibpath_var_F77=no
19601
19602 # hardcode_minus_L: Not really in the search PATH,
19603 # but as the default location of the library.
19604 hardcode_minus_L_F77=yes
19605 ;;
19606 *)
19607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19608 hardcode_libdir_separator_F77=:
19609 hardcode_direct_F77=yes
19610 export_dynamic_flag_spec_F77='${wl}-E'
19611
19612 # hardcode_minus_L: Not really in the search PATH,
19613 # but as the default location of the library.
19614 hardcode_minus_L_F77=yes
19615 ;;
19616 esac
19617 fi
19618 ;;
19619
19620 irix5* | irix6* | nonstopux*)
19621 if test "$GCC" = yes; then
19622 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'
19623 else
19624 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'
19625 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19626 fi
19627 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19628 hardcode_libdir_separator_F77=:
19629 link_all_deplibs_F77=yes
19630 ;;
19631
19632 netbsd*)
19633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19634 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19635 else
19636 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19637 fi
19638 hardcode_libdir_flag_spec_F77='-R$libdir'
19639 hardcode_direct_F77=yes
19640 hardcode_shlibpath_var_F77=no
19641 ;;
19642
19643 newsos6)
19644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19645 hardcode_direct_F77=yes
19646 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19647 hardcode_libdir_separator_F77=:
19648 hardcode_shlibpath_var_F77=no
19649 ;;
19650
19651 openbsd*)
19652 hardcode_direct_F77=yes
19653 hardcode_shlibpath_var_F77=no
19654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19655 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019656 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 +000019657 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19658 export_dynamic_flag_spec_F77='${wl}-E'
19659 else
19660 case $host_os in
19661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19662 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19663 hardcode_libdir_flag_spec_F77='-R$libdir'
19664 ;;
19665 *)
19666 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19667 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19668 ;;
19669 esac
19670 fi
19671 ;;
19672
19673 os2*)
19674 hardcode_libdir_flag_spec_F77='-L$libdir'
19675 hardcode_minus_L_F77=yes
19676 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019677 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 +000019678 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19679 ;;
19680
19681 osf3*)
19682 if test "$GCC" = yes; then
19683 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19684 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'
19685 else
19686 allow_undefined_flag_F77=' -expect_unresolved \*'
19687 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'
19688 fi
19689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19690 hardcode_libdir_separator_F77=:
19691 ;;
19692
19693 osf4* | osf5*) # as osf3* with the addition of -msym flag
19694 if test "$GCC" = yes; then
19695 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19696 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'
19697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19698 else
19699 allow_undefined_flag_F77=' -expect_unresolved \*'
19700 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 +000019701 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~
19702 $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'
19703
John Criswell47fdd832003-07-14 16:52:07 +000019704 # Both c and cxx compiler support -rpath directly
19705 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19706 fi
19707 hardcode_libdir_separator_F77=:
19708 ;;
19709
19710 sco3.2v5*)
19711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19712 hardcode_shlibpath_var_F77=no
19713 export_dynamic_flag_spec_F77='${wl}-Bexport'
19714 runpath_var=LD_RUN_PATH
19715 hardcode_runpath_var=yes
19716 ;;
19717
19718 solaris*)
19719 no_undefined_flag_F77=' -z text'
19720 if test "$GCC" = yes; then
19721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19723 $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 +000019724 else
19725 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019726 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19727 $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 +000019728 fi
19729 hardcode_libdir_flag_spec_F77='-R$libdir'
19730 hardcode_shlibpath_var_F77=no
19731 case $host_os in
19732 solaris2.[0-5] | solaris2.[0-5].*) ;;
19733 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19734 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19735 esac
19736 link_all_deplibs_F77=yes
19737 ;;
19738
19739 sunos4*)
19740 if test "x$host_vendor" = xsequent; then
19741 # Use $CC to link under sequent, because it throws in some extra .o
19742 # files that make .init and .fini sections work.
19743 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19744 else
19745 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19746 fi
19747 hardcode_libdir_flag_spec_F77='-L$libdir'
19748 hardcode_direct_F77=yes
19749 hardcode_minus_L_F77=yes
19750 hardcode_shlibpath_var_F77=no
19751 ;;
19752
19753 sysv4)
19754 case $host_vendor in
19755 sni)
19756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_direct_F77=yes # is this really true???
19758 ;;
19759 siemens)
19760 ## LD is ld it makes a PLAMLIB
19761 ## CC just makes a GrossModule.
19762 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19763 reload_cmds_F77='$CC -r -o $output$reload_objs'
19764 hardcode_direct_F77=no
19765 ;;
19766 motorola)
19767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19768 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19769 ;;
19770 esac
19771 runpath_var='LD_RUN_PATH'
19772 hardcode_shlibpath_var_F77=no
19773 ;;
19774
19775 sysv4.3*)
19776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 hardcode_shlibpath_var_F77=no
19778 export_dynamic_flag_spec_F77='-Bexport'
19779 ;;
19780
19781 sysv4*MP*)
19782 if test -d /usr/nec; then
19783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784 hardcode_shlibpath_var_F77=no
19785 runpath_var=LD_RUN_PATH
19786 hardcode_runpath_var=yes
19787 ld_shlibs_F77=yes
19788 fi
19789 ;;
19790
19791 sysv4.2uw2*)
19792 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19793 hardcode_direct_F77=yes
19794 hardcode_minus_L_F77=no
19795 hardcode_shlibpath_var_F77=no
19796 hardcode_runpath_var=yes
19797 runpath_var=LD_RUN_PATH
19798 ;;
19799
19800 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19801 no_undefined_flag_F77='${wl}-z ${wl}text'
19802 if test "$GCC" = yes; then
19803 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19804 else
19805 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19806 fi
19807 runpath_var='LD_RUN_PATH'
19808 hardcode_shlibpath_var_F77=no
19809 ;;
19810
19811 sysv5*)
19812 no_undefined_flag_F77=' -z text'
19813 # $CC -shared without GNU ld will not create a library from C++
19814 # object files and a static libstdc++, better avoid it by now
19815 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019816 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19817 $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 +000019818 hardcode_libdir_flag_spec_F77=
19819 hardcode_shlibpath_var_F77=no
19820 runpath_var='LD_RUN_PATH'
19821 ;;
19822
19823 uts4*)
19824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19825 hardcode_libdir_flag_spec_F77='-L$libdir'
19826 hardcode_shlibpath_var_F77=no
19827 ;;
19828
19829 *)
19830 ld_shlibs_F77=no
19831 ;;
19832 esac
19833 fi
19834
19835echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19836echo "${ECHO_T}$ld_shlibs_F77" >&6
19837test "$ld_shlibs_F77" = no && can_build_shared=no
19838
19839variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19840if test "$GCC" = yes; then
19841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19842fi
19843
19844#
19845# Do we need to explicitly link libc?
19846#
19847case "x$archive_cmds_need_lc_F77" in
19848x|xyes)
19849 # Assume -lc should be added
19850 archive_cmds_need_lc_F77=yes
19851
19852 if test "$enable_shared" = yes && test "$GCC" = yes; then
19853 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019854 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019855 # FIXME: we may have to deal with multi-command sequences.
19856 ;;
19857 '$CC '*)
19858 # Test whether the compiler implicitly links with -lc since on some
19859 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19860 # to ld, don't add -lc before -lgcc.
19861 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19862echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19863 $rm conftest*
19864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19865
19866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19867 (eval $ac_compile) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } 2>conftest.err; then
19871 soname=conftest
19872 lib=conftest
19873 libobjs=conftest.$ac_objext
19874 deplibs=
19875 wl=$lt_prog_compiler_wl_F77
19876 compiler_flags=-v
19877 linker_flags=-v
19878 verstring=
19879 output_objdir=.
19880 libname=conftest
19881 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19882 allow_undefined_flag_F77=
19883 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19884 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }
19888 then
19889 archive_cmds_need_lc_F77=no
19890 else
19891 archive_cmds_need_lc_F77=yes
19892 fi
19893 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19894 else
19895 cat conftest.err 1>&5
19896 fi
19897 $rm conftest*
19898 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19899echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19900 ;;
19901 esac
19902 fi
19903 ;;
19904esac
19905
John Criswell47fdd832003-07-14 16:52:07 +000019906echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19907echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19908library_names_spec=
19909libname_spec='lib$name'
19910soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019911shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019912postinstall_cmds=
19913postuninstall_cmds=
19914finish_cmds=
19915finish_eval=
19916shlibpath_var=
19917shlibpath_overrides_runpath=unknown
19918version_type=none
19919dynamic_linker="$host_os ld.so"
19920sys_lib_dlsearch_path_spec="/lib /usr/lib"
19921if test "$GCC" = yes; then
19922 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19923 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19924 # if the path contains ";" then we assume it to be the separator
19925 # otherwise default to the standard path separator (i.e. ":") - it is
19926 # assumed that no part of a normal pathname contains ";" but that should
19927 # okay in the real world where ";" in dirpaths is itself problematic.
19928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19929 else
19930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19931 fi
19932else
19933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19934fi
19935need_lib_prefix=unknown
19936hardcode_into_libs=no
19937
19938# when you set need_version to no, make sure it does not cause -set_version
19939# flags to be left without arguments
19940need_version=unknown
19941
19942case $host_os in
19943aix3*)
19944 version_type=linux
19945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19946 shlibpath_var=LIBPATH
19947
19948 # AIX 3 has no versioning support, so we append a major version to the name.
19949 soname_spec='${libname}${release}${shared_ext}$major'
19950 ;;
19951
19952aix4* | aix5*)
19953 version_type=linux
19954 need_lib_prefix=no
19955 need_version=no
19956 hardcode_into_libs=yes
19957 if test "$host_cpu" = ia64; then
19958 # AIX 5 supports IA64
19959 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19960 shlibpath_var=LD_LIBRARY_PATH
19961 else
19962 # With GCC up to 2.95.x, collect2 would create an import file
19963 # for dependence libraries. The import file would start with
19964 # the line `#! .'. This would cause the generated library to
19965 # depend on `.', always an invalid library. This was fixed in
19966 # development snapshots of GCC prior to 3.0.
19967 case $host_os in
19968 aix4 | aix4.[01] | aix4.[01].*)
19969 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19970 echo ' yes '
19971 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19972 :
19973 else
19974 can_build_shared=no
19975 fi
19976 ;;
19977 esac
19978 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19979 # soname into executable. Probably we can add versioning support to
19980 # collect2, so additional links can be useful in future.
19981 if test "$aix_use_runtimelinking" = yes; then
19982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19983 # instead of lib<name>.a to let people know that these are not
19984 # typical AIX shared libraries.
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 else
19987 # We preserve .a as extension for shared libraries through AIX4.2
19988 # and later when we are not doing run time linking.
19989 library_names_spec='${libname}${release}.a $libname.a'
19990 soname_spec='${libname}${release}${shared_ext}$major'
19991 fi
19992 shlibpath_var=LIBPATH
19993 fi
19994 ;;
19995
19996amigaos*)
19997 library_names_spec='$libname.ixlibrary $libname.a'
19998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019999 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 +000020000 ;;
20001
20002beos*)
20003 library_names_spec='${libname}${shared_ext}'
20004 dynamic_linker="$host_os ld.so"
20005 shlibpath_var=LIBRARY_PATH
20006 ;;
20007
Reid Spencer2706f8c2004-09-19 23:53:36 +000020008bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020009 version_type=linux
20010 need_version=no
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20014 shlibpath_var=LD_LIBRARY_PATH
20015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20017 # the default ld.so.conf also contains /usr/contrib/lib and
20018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20019 # libtool to hard-code these into programs
20020 ;;
20021
20022cygwin* | mingw* | pw32*)
20023 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020024 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020025 need_version=no
20026 need_lib_prefix=no
20027
20028 case $GCC,$host_os in
20029 yes,cygwin* | yes,mingw* | yes,pw32*)
20030 library_names_spec='$libname.dll.a'
20031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020032 postinstall_cmds='base_file=`basename \${file}`~
20033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20034 dldir=$destdir/`dirname \$dlpath`~
20035 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020036 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20038 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020039 $rm \$dlpath'
20040 shlibpath_overrides_runpath=yes
20041
20042 case $host_os in
20043 cygwin*)
20044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20045 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 +000020046 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020047 ;;
20048 mingw*)
20049 # MinGW DLLs use traditional 'lib' prefix
20050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20053 # It is most probably a Windows format PATH printed by
20054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20055 # path with ; separators, and with drive letters. We can handle the
20056 # drive letters (cygwin fileutils understands them), so leave them,
20057 # especially as we might pass files found there to a mingw objdump,
20058 # which wouldn't understand a cygwinified path. Ahh.
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060 else
20061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20062 fi
20063 ;;
20064 pw32*)
20065 # pw32 DLLs use 'pw' prefix rather than 'lib'
20066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20067 ;;
20068 esac
20069 ;;
20070
20071 *)
20072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20073 ;;
20074 esac
20075 dynamic_linker='Win32 ld.exe'
20076 # FIXME: first we should search . and the directory the executable is in
20077 shlibpath_var=PATH
20078 ;;
20079
20080darwin* | rhapsody*)
20081 dynamic_linker="$host_os dyld"
20082 version_type=darwin
20083 need_lib_prefix=no
20084 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020085 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020086 soname_spec='${libname}${release}${major}$shared_ext'
20087 shlibpath_overrides_runpath=yes
20088 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020090 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020091 if test "$GCC" = yes; then
20092 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"`
20093 else
20094 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020095 fi
20096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20097 ;;
20098
20099dgux*)
20100 version_type=linux
20101 need_lib_prefix=no
20102 need_version=no
20103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20104 soname_spec='${libname}${release}${shared_ext}$major'
20105 shlibpath_var=LD_LIBRARY_PATH
20106 ;;
20107
20108freebsd1*)
20109 dynamic_linker=no
20110 ;;
20111
Reid Spencer2706f8c2004-09-19 23:53:36 +000020112kfreebsd*-gnu)
20113 version_type=linux
20114 need_lib_prefix=no
20115 need_version=no
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=no
20120 hardcode_into_libs=yes
20121 dynamic_linker='GNU ld.so'
20122 ;;
20123
John Criswell47fdd832003-07-14 16:52:07 +000020124freebsd*)
20125 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20126 version_type=freebsd-$objformat
20127 case $version_type in
20128 freebsd-elf*)
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20130 need_version=no
20131 need_lib_prefix=no
20132 ;;
20133 freebsd-*)
20134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20135 need_version=yes
20136 ;;
20137 esac
20138 shlibpath_var=LD_LIBRARY_PATH
20139 case $host_os in
20140 freebsd2*)
20141 shlibpath_overrides_runpath=yes
20142 ;;
20143 freebsd3.01* | freebsdelf3.01*)
20144 shlibpath_overrides_runpath=yes
20145 hardcode_into_libs=yes
20146 ;;
20147 *) # from 3.2 on
20148 shlibpath_overrides_runpath=no
20149 hardcode_into_libs=yes
20150 ;;
20151 esac
20152 ;;
20153
20154gnu*)
20155 version_type=linux
20156 need_lib_prefix=no
20157 need_version=no
20158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20159 soname_spec='${libname}${release}${shared_ext}$major'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 hardcode_into_libs=yes
20162 ;;
20163
20164hpux9* | hpux10* | hpux11*)
20165 # Give a soname corresponding to the major version so that dld.sl refuses to
20166 # link against other versions.
20167 version_type=sunos
20168 need_lib_prefix=no
20169 need_version=no
20170 case "$host_cpu" in
20171 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020172 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020173 hardcode_into_libs=yes
20174 dynamic_linker="$host_os dld.so"
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 if test "X$HPUX_IA64_MODE" = X32; then
20180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20181 else
20182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20183 fi
20184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20185 ;;
20186 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020187 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020188 hardcode_into_libs=yes
20189 dynamic_linker="$host_os dld.sl"
20190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20193 soname_spec='${libname}${release}${shared_ext}$major'
20194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20196 ;;
20197 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020198 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020199 dynamic_linker="$host_os dld.sl"
20200 shlibpath_var=SHLIB_PATH
20201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20204 ;;
20205 esac
20206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20207 postinstall_cmds='chmod 555 $lib'
20208 ;;
20209
20210irix5* | irix6* | nonstopux*)
20211 case $host_os in
20212 nonstopux*) version_type=nonstopux ;;
20213 *)
20214 if test "$lt_cv_prog_gnu_ld" = yes; then
20215 version_type=linux
20216 else
20217 version_type=irix
20218 fi ;;
20219 esac
20220 need_lib_prefix=no
20221 need_version=no
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20224 case $host_os in
20225 irix5* | nonstopux*)
20226 libsuff= shlibsuff=
20227 ;;
20228 *)
20229 case $LD in # libtool.m4 will add one of these switches to LD
20230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20231 libsuff= shlibsuff= libmagic=32-bit;;
20232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20233 libsuff=32 shlibsuff=N32 libmagic=N32;;
20234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20235 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20236 *) libsuff= shlibsuff= libmagic=never-match;;
20237 esac
20238 ;;
20239 esac
20240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20241 shlibpath_overrides_runpath=no
20242 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20243 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20244 hardcode_into_libs=yes
20245 ;;
20246
20247# No shared lib support for Linux oldld, aout, or coff.
20248linux*oldld* | linux*aout* | linux*coff*)
20249 dynamic_linker=no
20250 ;;
20251
20252# This must be Linux ELF.
20253linux*)
20254 version_type=linux
20255 need_lib_prefix=no
20256 need_version=no
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20260 shlibpath_var=LD_LIBRARY_PATH
20261 shlibpath_overrides_runpath=no
20262 # This implies no fast_install, which is unacceptable.
20263 # Some rework will be needed to allow for fast_install
20264 # before this can be enabled.
20265 hardcode_into_libs=yes
20266
Reid Spencer2706f8c2004-09-19 23:53:36 +000020267 # Append ld.so.conf contents to the search path
20268 if test -f /etc/ld.so.conf; then
20269 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20271 fi
20272
John Criswell47fdd832003-07-14 16:52:07 +000020273 # We used to test for /lib/ld.so.1 and disable shared libraries on
20274 # powerpc, because MkLinux only supported shared libraries with the
20275 # GNU dynamic linker. Since this was broken with cross compilers,
20276 # most powerpc-linux boxes support dynamic linking these days and
20277 # people can always --disable-shared, the test was removed, and we
20278 # assume the GNU/Linux dynamic linker is in use.
20279 dynamic_linker='GNU/Linux ld.so'
20280 ;;
20281
Reid Spencer2706f8c2004-09-19 23:53:36 +000020282knetbsd*-gnu)
20283 version_type=linux
20284 need_lib_prefix=no
20285 need_version=no
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20287 soname_spec='${libname}${release}${shared_ext}$major'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=no
20290 hardcode_into_libs=yes
20291 dynamic_linker='GNU ld.so'
20292 ;;
20293
John Criswell47fdd832003-07-14 16:52:07 +000020294netbsd*)
20295 version_type=sunos
20296 need_lib_prefix=no
20297 need_version=no
20298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20301 dynamic_linker='NetBSD (a.out) ld.so'
20302 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020304 soname_spec='${libname}${release}${shared_ext}$major'
20305 dynamic_linker='NetBSD ld.elf_so'
20306 fi
20307 shlibpath_var=LD_LIBRARY_PATH
20308 shlibpath_overrides_runpath=yes
20309 hardcode_into_libs=yes
20310 ;;
20311
20312newsos6)
20313 version_type=linux
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 shlibpath_overrides_runpath=yes
20317 ;;
20318
Reid Spencer2706f8c2004-09-19 23:53:36 +000020319nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020320 version_type=linux
20321 need_lib_prefix=no
20322 need_version=no
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes
20327 ;;
20328
20329openbsd*)
20330 version_type=sunos
20331 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020332 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20337 case $host_os in
20338 openbsd2.[89] | openbsd2.[89].*)
20339 shlibpath_overrides_runpath=no
20340 ;;
20341 *)
20342 shlibpath_overrides_runpath=yes
20343 ;;
20344 esac
20345 else
20346 shlibpath_overrides_runpath=yes
20347 fi
20348 ;;
20349
20350os2*)
20351 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020352 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020353 need_lib_prefix=no
20354 library_names_spec='$libname${shared_ext} $libname.a'
20355 dynamic_linker='OS/2 ld.exe'
20356 shlibpath_var=LIBPATH
20357 ;;
20358
20359osf3* | osf4* | osf5*)
20360 version_type=osf
20361 need_lib_prefix=no
20362 need_version=no
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20368 ;;
20369
20370sco3.2v5*)
20371 version_type=osf
20372 soname_spec='${libname}${release}${shared_ext}$major'
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 ;;
20376
20377solaris*)
20378 version_type=linux
20379 need_lib_prefix=no
20380 need_version=no
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20386 # ldd complains unless libraries are executable
20387 postinstall_cmds='chmod +x $lib'
20388 ;;
20389
20390sunos4*)
20391 version_type=sunos
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=yes
20396 if test "$with_gnu_ld" = yes; then
20397 need_lib_prefix=no
20398 fi
20399 need_version=yes
20400 ;;
20401
20402sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20403 version_type=linux
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 soname_spec='${libname}${release}${shared_ext}$major'
20406 shlibpath_var=LD_LIBRARY_PATH
20407 case $host_vendor in
20408 sni)
20409 shlibpath_overrides_runpath=no
20410 need_lib_prefix=no
20411 export_dynamic_flag_spec='${wl}-Blargedynsym'
20412 runpath_var=LD_RUN_PATH
20413 ;;
20414 siemens)
20415 need_lib_prefix=no
20416 ;;
20417 motorola)
20418 need_lib_prefix=no
20419 need_version=no
20420 shlibpath_overrides_runpath=no
20421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20422 ;;
20423 esac
20424 ;;
20425
20426sysv4*MP*)
20427 if test -d /usr/nec ;then
20428 version_type=linux
20429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20430 soname_spec='$libname${shared_ext}.$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 fi
20433 ;;
20434
20435uts4*)
20436 version_type=linux
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 ;;
20441
20442*)
20443 dynamic_linker=no
20444 ;;
20445esac
20446echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20447echo "${ECHO_T}$dynamic_linker" >&6
20448test "$dynamic_linker" = no && can_build_shared=no
20449
Reid Spencer2706f8c2004-09-19 23:53:36 +000020450echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20451echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20452hardcode_action_F77=
20453if test -n "$hardcode_libdir_flag_spec_F77" || \
20454 test -n "$runpath_var_F77" || \
20455 test "X$hardcode_automatic_F77" = "Xyes" ; then
20456
20457 # We can hardcode non-existant directories.
20458 if test "$hardcode_direct_F77" != no &&
20459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20460 # have to relink, otherwise we might link with an installed library
20461 # when we should be linking with a yet-to-be-installed one
20462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20463 test "$hardcode_minus_L_F77" != no; then
20464 # Linking always hardcodes the temporary library directory.
20465 hardcode_action_F77=relink
20466 else
20467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20468 hardcode_action_F77=immediate
20469 fi
20470else
20471 # We cannot hardcode anything, or else we can only hardcode existing
20472 # directories.
20473 hardcode_action_F77=unsupported
20474fi
20475echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20476echo "${ECHO_T}$hardcode_action_F77" >&6
20477
20478if test "$hardcode_action_F77" = relink; then
20479 # Fast installation is not supported
20480 enable_fast_install=no
20481elif test "$shlibpath_overrides_runpath" = yes ||
20482 test "$enable_shared" = no; then
20483 # Fast installation is not necessary
20484 enable_fast_install=needless
20485fi
20486
20487striplib=
20488old_striplib=
20489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20491if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20493 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20494 echo "$as_me:$LINENO: result: yes" >&5
20495echo "${ECHO_T}yes" >&6
20496else
20497# FIXME - insert some real tests, host_os isn't really good enough
20498 case $host_os in
20499 darwin*)
20500 if test -n "$STRIP" ; then
20501 striplib="$STRIP -x"
20502 echo "$as_me:$LINENO: result: yes" >&5
20503echo "${ECHO_T}yes" >&6
20504 else
20505 echo "$as_me:$LINENO: result: no" >&5
20506echo "${ECHO_T}no" >&6
20507fi
20508 ;;
20509 *)
20510 echo "$as_me:$LINENO: result: no" >&5
20511echo "${ECHO_T}no" >&6
20512 ;;
20513 esac
20514fi
20515
20516
John Criswell47fdd832003-07-14 16:52:07 +000020517
20518# The else clause should only fire when bootstrapping the
20519# libtool distribution, otherwise you forgot to ship ltmain.sh
20520# with your package, and you will get complaints that there are
20521# no rules to generate ltmain.sh.
20522if test -f "$ltmain"; then
20523 # See if we are running on zsh, and set the options which allow our commands through
20524 # without removal of \ escapes.
20525 if test -n "${ZSH_VERSION+set}" ; then
20526 setopt NO_GLOB_SUBST
20527 fi
20528 # Now quote all the things that may contain metacharacters while being
20529 # careful not to overquote the AC_SUBSTed values. We take copies of the
20530 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020531 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20532 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020533 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20534 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20535 deplibs_check_method reload_flag reload_cmds need_locks \
20536 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20537 lt_cv_sys_global_symbol_to_c_name_address \
20538 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20539 old_postinstall_cmds old_postuninstall_cmds \
20540 compiler_F77 \
20541 CC_F77 \
20542 LD_F77 \
20543 lt_prog_compiler_wl_F77 \
20544 lt_prog_compiler_pic_F77 \
20545 lt_prog_compiler_static_F77 \
20546 lt_prog_compiler_no_builtin_flag_F77 \
20547 export_dynamic_flag_spec_F77 \
20548 thread_safe_flag_spec_F77 \
20549 whole_archive_flag_spec_F77 \
20550 enable_shared_with_static_runtimes_F77 \
20551 old_archive_cmds_F77 \
20552 old_archive_from_new_cmds_F77 \
20553 predep_objects_F77 \
20554 postdep_objects_F77 \
20555 predeps_F77 \
20556 postdeps_F77 \
20557 compiler_lib_search_path_F77 \
20558 archive_cmds_F77 \
20559 archive_expsym_cmds_F77 \
20560 postinstall_cmds_F77 \
20561 postuninstall_cmds_F77 \
20562 old_archive_from_expsyms_cmds_F77 \
20563 allow_undefined_flag_F77 \
20564 no_undefined_flag_F77 \
20565 export_symbols_cmds_F77 \
20566 hardcode_libdir_flag_spec_F77 \
20567 hardcode_libdir_flag_spec_ld_F77 \
20568 hardcode_libdir_separator_F77 \
20569 hardcode_automatic_F77 \
20570 module_cmds_F77 \
20571 module_expsym_cmds_F77 \
20572 lt_cv_prog_compiler_c_o_F77 \
20573 exclude_expsyms_F77 \
20574 include_expsyms_F77; do
20575
20576 case $var in
20577 old_archive_cmds_F77 | \
20578 old_archive_from_new_cmds_F77 | \
20579 archive_cmds_F77 | \
20580 archive_expsym_cmds_F77 | \
20581 module_cmds_F77 | \
20582 module_expsym_cmds_F77 | \
20583 old_archive_from_expsyms_cmds_F77 | \
20584 export_symbols_cmds_F77 | \
20585 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20586 postinstall_cmds | postuninstall_cmds | \
20587 old_postinstall_cmds | old_postuninstall_cmds | \
20588 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20589 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020590 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 +000020591 ;;
20592 *)
20593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20594 ;;
20595 esac
20596 done
20597
20598 case $lt_echo in
20599 *'\$0 --fallback-echo"')
20600 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20601 ;;
20602 esac
20603
20604cfgfile="$ofile"
20605
20606 cat <<__EOF__ >> "$cfgfile"
20607# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20608
20609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20610
20611# Shell to use when invoking shell scripts.
20612SHELL=$lt_SHELL
20613
20614# Whether or not to build shared libraries.
20615build_libtool_libs=$enable_shared
20616
20617# Whether or not to build static libraries.
20618build_old_libs=$enable_static
20619
20620# Whether or not to add -lc for building shared libraries.
20621build_libtool_need_lc=$archive_cmds_need_lc_F77
20622
20623# Whether or not to disallow shared libs when runtime libs are static
20624allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20625
20626# Whether or not to optimize for fast installation.
20627fast_install=$enable_fast_install
20628
20629# The host system.
20630host_alias=$host_alias
20631host=$host
20632
20633# An echo program that does not interpret backslashes.
20634echo=$lt_echo
20635
20636# The archiver.
20637AR=$lt_AR
20638AR_FLAGS=$lt_AR_FLAGS
20639
20640# A C compiler.
20641LTCC=$lt_LTCC
20642
20643# A language-specific compiler.
20644CC=$lt_compiler_F77
20645
20646# Is the compiler the GNU C compiler?
20647with_gcc=$GCC_F77
20648
20649# An ERE matcher.
20650EGREP=$lt_EGREP
20651
20652# The linker used to build libraries.
20653LD=$lt_LD_F77
20654
20655# Whether we need hard or soft links.
20656LN_S=$lt_LN_S
20657
20658# A BSD-compatible nm program.
20659NM=$lt_NM
20660
20661# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020662STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020663
20664# Used to examine libraries when file_magic_cmd begins "file"
20665MAGIC_CMD=$MAGIC_CMD
20666
20667# Used on cygwin: DLL creation program.
20668DLLTOOL="$DLLTOOL"
20669
20670# Used on cygwin: object dumper.
20671OBJDUMP="$OBJDUMP"
20672
20673# Used on cygwin: assembler.
20674AS="$AS"
20675
20676# The name of the directory that contains temporary libtool files.
20677objdir=$objdir
20678
20679# How to create reloadable object files.
20680reload_flag=$lt_reload_flag
20681reload_cmds=$lt_reload_cmds
20682
20683# How to pass a linker flag through the compiler.
20684wl=$lt_lt_prog_compiler_wl_F77
20685
20686# Object file suffix (normally "o").
20687objext="$ac_objext"
20688
20689# Old archive suffix (normally "a").
20690libext="$libext"
20691
20692# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020693shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020694
20695# Executable file suffix (normally "").
20696exeext="$exeext"
20697
20698# Additional compiler flags for building library objects.
20699pic_flag=$lt_lt_prog_compiler_pic_F77
20700pic_mode=$pic_mode
20701
20702# What is the maximum length of a command?
20703max_cmd_len=$lt_cv_sys_max_cmd_len
20704
20705# Does compiler simultaneously support -c and -o options?
20706compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20707
20708# Must we lock files when doing compilation ?
20709need_locks=$lt_need_locks
20710
20711# Do we need the lib prefix for modules?
20712need_lib_prefix=$need_lib_prefix
20713
20714# Do we need a version for libraries?
20715need_version=$need_version
20716
20717# Whether dlopen is supported.
20718dlopen_support=$enable_dlopen
20719
20720# Whether dlopen of programs is supported.
20721dlopen_self=$enable_dlopen_self
20722
20723# Whether dlopen of statically linked programs is supported.
20724dlopen_self_static=$enable_dlopen_self_static
20725
20726# Compiler flag to prevent dynamic linking.
20727link_static_flag=$lt_lt_prog_compiler_static_F77
20728
20729# Compiler flag to turn off builtin functions.
20730no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20731
20732# Compiler flag to allow reflexive dlopens.
20733export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20734
20735# Compiler flag to generate shared objects directly from archives.
20736whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20737
20738# Compiler flag to generate thread-safe objects.
20739thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20740
20741# Library versioning type.
20742version_type=$version_type
20743
20744# Format of library name prefix.
20745libname_spec=$lt_libname_spec
20746
20747# List of archive names. First name is the real one, the rest are links.
20748# The last name is the one that the linker finds with -lNAME.
20749library_names_spec=$lt_library_names_spec
20750
20751# The coded name of the library, if different from the real name.
20752soname_spec=$lt_soname_spec
20753
20754# Commands used to build and install an old-style archive.
20755RANLIB=$lt_RANLIB
20756old_archive_cmds=$lt_old_archive_cmds_F77
20757old_postinstall_cmds=$lt_old_postinstall_cmds
20758old_postuninstall_cmds=$lt_old_postuninstall_cmds
20759
20760# Create an old-style archive from a shared archive.
20761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20762
20763# Create a temporary old-style archive to link instead of a shared archive.
20764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20765
20766# Commands used to build and install a shared archive.
20767archive_cmds=$lt_archive_cmds_F77
20768archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20769postinstall_cmds=$lt_postinstall_cmds
20770postuninstall_cmds=$lt_postuninstall_cmds
20771
20772# Commands used to build a loadable module (assumed same as above if empty)
20773module_cmds=$lt_module_cmds_F77
20774module_expsym_cmds=$lt_module_expsym_cmds_F77
20775
20776# Commands to strip libraries.
20777old_striplib=$lt_old_striplib
20778striplib=$lt_striplib
20779
20780# Dependencies to place before the objects being linked to create a
20781# shared library.
20782predep_objects=$lt_predep_objects_F77
20783
20784# Dependencies to place after the objects being linked to create a
20785# shared library.
20786postdep_objects=$lt_postdep_objects_F77
20787
20788# Dependencies to place before the objects being linked to create a
20789# shared library.
20790predeps=$lt_predeps_F77
20791
20792# Dependencies to place after the objects being linked to create a
20793# shared library.
20794postdeps=$lt_postdeps_F77
20795
20796# The library search path used internally by the compiler when linking
20797# a shared library.
20798compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20799
20800# Method to check whether dependent libraries are shared objects.
20801deplibs_check_method=$lt_deplibs_check_method
20802
20803# Command to use when deplibs_check_method == file_magic.
20804file_magic_cmd=$lt_file_magic_cmd
20805
20806# Flag that allows shared libraries with undefined symbols to be built.
20807allow_undefined_flag=$lt_allow_undefined_flag_F77
20808
20809# Flag that forces no undefined symbols.
20810no_undefined_flag=$lt_no_undefined_flag_F77
20811
20812# Commands used to finish a libtool library installation in a directory.
20813finish_cmds=$lt_finish_cmds
20814
20815# Same as above, but a single script fragment to be evaled but not shown.
20816finish_eval=$lt_finish_eval
20817
20818# Take the output of nm and produce a listing of raw symbols and C names.
20819global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20820
20821# Transform the output of nm in a proper C declaration
20822global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20823
20824# Transform the output of nm in a C name address pair
20825global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20826
20827# This is the shared library runtime path variable.
20828runpath_var=$runpath_var
20829
20830# This is the shared library path variable.
20831shlibpath_var=$shlibpath_var
20832
20833# Is shlibpath searched before the hard-coded library search path?
20834shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20835
20836# How to hardcode a shared library path into an executable.
20837hardcode_action=$hardcode_action_F77
20838
20839# Whether we should hardcode library paths into libraries.
20840hardcode_into_libs=$hardcode_into_libs
20841
20842# Flag to hardcode \$libdir into a binary during linking.
20843# This must work even if \$libdir does not exist.
20844hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20845
20846# If ld is used when linking, flag to hardcode \$libdir into
20847# a binary during linking. This must work even if \$libdir does
20848# not exist.
20849hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20850
20851# Whether we need a single -rpath flag with a separated argument.
20852hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20853
20854# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20855# resulting binary.
20856hardcode_direct=$hardcode_direct_F77
20857
20858# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20859# resulting binary.
20860hardcode_minus_L=$hardcode_minus_L_F77
20861
20862# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20863# the resulting binary.
20864hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20865
20866# Set to yes if building a shared library automatically hardcodes DIR into the library
20867# and all subsequent libraries and executables linked against it.
20868hardcode_automatic=$hardcode_automatic_F77
20869
20870# Variables whose values should be saved in libtool wrapper scripts and
20871# restored at relink time.
20872variables_saved_for_relink="$variables_saved_for_relink"
20873
20874# Whether libtool must link a program against all its dependency libraries.
20875link_all_deplibs=$link_all_deplibs_F77
20876
20877# Compile-time system search path for libraries
20878sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20879
20880# Run-time system search path for libraries
20881sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20882
20883# Fix the shell variable \$srcfile for the compiler.
20884fix_srcfile_path="$fix_srcfile_path_F77"
20885
20886# Set to yes if exported symbols are required.
20887always_export_symbols=$always_export_symbols_F77
20888
20889# The commands to list exported symbols.
20890export_symbols_cmds=$lt_export_symbols_cmds_F77
20891
20892# The commands to extract the exported symbol list from a shared archive.
20893extract_expsyms_cmds=$lt_extract_expsyms_cmds
20894
20895# Symbols that should not be listed in the preloaded symbols.
20896exclude_expsyms=$lt_exclude_expsyms_F77
20897
20898# Symbols that must always be exported.
20899include_expsyms=$lt_include_expsyms_F77
20900
20901# ### END LIBTOOL TAG CONFIG: $tagname
20902
20903__EOF__
20904
20905
20906else
20907 # If there is no Makefile yet, we rely on a make rule to execute
20908 # `config.status --recheck' to rerun these tests and create the
20909 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020910 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20911 if test -f "$ltmain_in"; then
20912 test -f Makefile && make "$ltmain"
20913 fi
John Criswell47fdd832003-07-14 16:52:07 +000020914fi
20915
20916
20917ac_ext=c
20918ac_cpp='$CPP $CPPFLAGS'
20919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921ac_compiler_gnu=$ac_cv_c_compiler_gnu
20922
20923CC="$lt_save_CC"
20924
20925 else
20926 tagname=""
20927 fi
20928 ;;
20929
20930 GCJ)
20931 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020932 ac_ext=c
20933ac_cpp='$CPP $CPPFLAGS'
20934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20936ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020937
20938
20939# Source file extension for Java test sources.
20940ac_ext=java
20941
20942# Object file extension for compiled Java test sources.
20943objext=o
20944objext_GCJ=$objext
20945
20946# Code to be used in simple compile tests
20947lt_simple_compile_test_code="class foo {}\n"
20948
20949# Code to be used in simple link tests
20950lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20951
20952# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20953
20954# If no C compiler was specified, use CC.
20955LTCC=${LTCC-"$CC"}
20956
20957# Allow CC to be a program name with arguments.
20958compiler=$CC
20959
20960
20961# Allow CC to be a program name with arguments.
20962lt_save_CC="$CC"
20963CC=${GCJ-"gcj"}
20964compiler=$CC
20965compiler_GCJ=$CC
20966
20967# GCJ did not exist at the time GCC didn't implicitly link libc in.
20968archive_cmds_need_lc_GCJ=no
20969
John Criswell47fdd832003-07-14 16:52:07 +000020970
20971lt_prog_compiler_no_builtin_flag_GCJ=
20972
20973if test "$GCC" = yes; then
20974 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20975
Reid Spencer2706f8c2004-09-19 23:53:36 +000020976
20977echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020978echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20979if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982 lt_cv_prog_compiler_rtti_exceptions=no
20983 ac_outfile=conftest.$ac_objext
20984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20985 lt_compiler_flag="-fno-rtti -fno-exceptions"
20986 # Insert the option either (1) after the last *FLAGS variable, or
20987 # (2) before a word containing "conftest.", or (3) at the end.
20988 # Note that $ac_compile itself does not contain backslashes and begins
20989 # with a dollar sign (not a hyphen), so the echo should work correctly.
20990 # The option is referenced via a variable to avoid confusing sed.
20991 lt_compile=`echo "$ac_compile" | $SED \
20992 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20994 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000020995 (eval echo "\"\$as_me:20995: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020996 (eval "$lt_compile" 2>conftest.err)
20997 ac_status=$?
20998 cat conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000020999 echo "$as_me:20999: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021000 if (exit $ac_status) && test -s "$ac_outfile"; then
21001 # The compiler can only warn and ignore the option if not recognized
21002 # So say no if there are warnings
21003 if test ! -s conftest.err; then
21004 lt_cv_prog_compiler_rtti_exceptions=yes
21005 fi
21006 fi
21007 $rm conftest*
21008
21009fi
21010echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21011echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21012
21013if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21014 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21015else
21016 :
21017fi
21018
21019fi
21020
21021lt_prog_compiler_wl_GCJ=
21022lt_prog_compiler_pic_GCJ=
21023lt_prog_compiler_static_GCJ=
21024
21025echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21026echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21027
21028 if test "$GCC" = yes; then
21029 lt_prog_compiler_wl_GCJ='-Wl,'
21030 lt_prog_compiler_static_GCJ='-static'
21031
21032 case $host_os in
21033 aix*)
21034 # All AIX code is PIC.
21035 if test "$host_cpu" = ia64; then
21036 # AIX 5 now supports IA64 processor
21037 lt_prog_compiler_static_GCJ='-Bstatic'
21038 fi
21039 ;;
21040
21041 amigaos*)
21042 # FIXME: we need at least 68020 code to build shared libraries, but
21043 # adding the `-m68020' flag to GCC prevents building anything better,
21044 # like `-m68040'.
21045 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21046 ;;
21047
21048 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21049 # PIC is the default for these OSes.
21050 ;;
21051
21052 mingw* | pw32* | os2*)
21053 # This hack is so that the source file can tell whether it is being
21054 # built for inclusion in a dll (and should export symbols for example).
21055 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21056 ;;
21057
21058 darwin* | rhapsody*)
21059 # PIC is the default on this platform
21060 # Common symbols not allowed in MH_DYLIB files
21061 lt_prog_compiler_pic_GCJ='-fno-common'
21062 ;;
21063
21064 msdosdjgpp*)
21065 # Just because we use GCC doesn't mean we suddenly get shared libraries
21066 # on systems that don't support them.
21067 lt_prog_compiler_can_build_shared_GCJ=no
21068 enable_shared=no
21069 ;;
21070
21071 sysv4*MP*)
21072 if test -d /usr/nec; then
21073 lt_prog_compiler_pic_GCJ=-Kconform_pic
21074 fi
21075 ;;
21076
21077 hpux*)
21078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21079 # not for PA HP-UX.
21080 case "$host_cpu" in
21081 hppa*64*|ia64*)
21082 # +Z the default
21083 ;;
21084 *)
21085 lt_prog_compiler_pic_GCJ='-fPIC'
21086 ;;
21087 esac
21088 ;;
21089
21090 *)
21091 lt_prog_compiler_pic_GCJ='-fPIC'
21092 ;;
21093 esac
21094 else
21095 # PORTME Check for flag to pass linker flags through the system compiler.
21096 case $host_os in
21097 aix*)
21098 lt_prog_compiler_wl_GCJ='-Wl,'
21099 if test "$host_cpu" = ia64; then
21100 # AIX 5 now supports IA64 processor
21101 lt_prog_compiler_static_GCJ='-Bstatic'
21102 else
21103 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21104 fi
21105 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021106 darwin*)
21107 # PIC is the default on this platform
21108 # Common symbols not allowed in MH_DYLIB files
21109 case "$cc_basename" in
21110 xlc*)
21111 lt_prog_compiler_pic_GCJ='-qnocommon'
21112 lt_prog_compiler_wl_GCJ='-Wl,'
21113 ;;
21114 esac
21115 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021116
21117 mingw* | pw32* | os2*)
21118 # This hack is so that the source file can tell whether it is being
21119 # built for inclusion in a dll (and should export symbols for example).
21120 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21121 ;;
21122
21123 hpux9* | hpux10* | hpux11*)
21124 lt_prog_compiler_wl_GCJ='-Wl,'
21125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21126 # not for PA HP-UX.
21127 case "$host_cpu" in
21128 hppa*64*|ia64*)
21129 # +Z the default
21130 ;;
21131 *)
21132 lt_prog_compiler_pic_GCJ='+Z'
21133 ;;
21134 esac
21135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21136 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21137 ;;
21138
21139 irix5* | irix6* | nonstopux*)
21140 lt_prog_compiler_wl_GCJ='-Wl,'
21141 # PIC (with -KPIC) is the default.
21142 lt_prog_compiler_static_GCJ='-non_shared'
21143 ;;
21144
21145 newsos6)
21146 lt_prog_compiler_pic_GCJ='-KPIC'
21147 lt_prog_compiler_static_GCJ='-Bstatic'
21148 ;;
21149
21150 linux*)
21151 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021152 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021153 lt_prog_compiler_wl_GCJ='-Wl,'
21154 lt_prog_compiler_pic_GCJ='-KPIC'
21155 lt_prog_compiler_static_GCJ='-static'
21156 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021157 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021158 lt_prog_compiler_wl_GCJ='-Wl,'
21159 # All Alpha code is PIC.
21160 lt_prog_compiler_static_GCJ='-non_shared'
21161 ;;
21162 esac
21163 ;;
21164
21165 osf3* | osf4* | osf5*)
21166 lt_prog_compiler_wl_GCJ='-Wl,'
21167 # All OSF/1 code is PIC.
21168 lt_prog_compiler_static_GCJ='-non_shared'
21169 ;;
21170
21171 sco3.2v5*)
21172 lt_prog_compiler_pic_GCJ='-Kpic'
21173 lt_prog_compiler_static_GCJ='-dn'
21174 ;;
21175
21176 solaris*)
21177 lt_prog_compiler_wl_GCJ='-Wl,'
21178 lt_prog_compiler_pic_GCJ='-KPIC'
21179 lt_prog_compiler_static_GCJ='-Bstatic'
21180 ;;
21181
21182 sunos4*)
21183 lt_prog_compiler_wl_GCJ='-Qoption ld '
21184 lt_prog_compiler_pic_GCJ='-PIC'
21185 lt_prog_compiler_static_GCJ='-Bstatic'
21186 ;;
21187
21188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21189 lt_prog_compiler_wl_GCJ='-Wl,'
21190 lt_prog_compiler_pic_GCJ='-KPIC'
21191 lt_prog_compiler_static_GCJ='-Bstatic'
21192 ;;
21193
21194 sysv4*MP*)
21195 if test -d /usr/nec ;then
21196 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21197 lt_prog_compiler_static_GCJ='-Bstatic'
21198 fi
21199 ;;
21200
21201 uts4*)
21202 lt_prog_compiler_pic_GCJ='-pic'
21203 lt_prog_compiler_static_GCJ='-Bstatic'
21204 ;;
21205
21206 *)
21207 lt_prog_compiler_can_build_shared_GCJ=no
21208 ;;
21209 esac
21210 fi
21211
21212echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21213echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21214
21215#
21216# Check to make sure the PIC flag actually works.
21217#
21218if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021219
21220echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021221echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21222if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225 lt_prog_compiler_pic_works_GCJ=no
21226 ac_outfile=conftest.$ac_objext
21227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21228 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21229 # Insert the option either (1) after the last *FLAGS variable, or
21230 # (2) before a word containing "conftest.", or (3) at the end.
21231 # Note that $ac_compile itself does not contain backslashes and begins
21232 # with a dollar sign (not a hyphen), so the echo should work correctly.
21233 # The option is referenced via a variable to avoid confusing sed.
21234 lt_compile=`echo "$ac_compile" | $SED \
21235 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21237 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000021238 (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021239 (eval "$lt_compile" 2>conftest.err)
21240 ac_status=$?
21241 cat conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000021242 echo "$as_me:21242: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021243 if (exit $ac_status) && test -s "$ac_outfile"; then
21244 # The compiler can only warn and ignore the option if not recognized
21245 # So say no if there are warnings
21246 if test ! -s conftest.err; then
21247 lt_prog_compiler_pic_works_GCJ=yes
21248 fi
21249 fi
21250 $rm conftest*
21251
21252fi
21253echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21254echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21255
21256if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21257 case $lt_prog_compiler_pic_GCJ in
21258 "" | " "*) ;;
21259 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21260 esac
21261else
21262 lt_prog_compiler_pic_GCJ=
21263 lt_prog_compiler_can_build_shared_GCJ=no
21264fi
21265
21266fi
21267case "$host_os" in
21268 # For platforms which do not support PIC, -DPIC is meaningless:
21269 *djgpp*)
21270 lt_prog_compiler_pic_GCJ=
21271 ;;
21272 *)
21273 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21274 ;;
21275esac
21276
21277echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21278echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21279if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281else
21282 lt_cv_prog_compiler_c_o_GCJ=no
21283 $rm -r conftest 2>/dev/null
21284 mkdir conftest
21285 cd conftest
21286 mkdir out
21287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21288
John Criswell47fdd832003-07-14 16:52:07 +000021289 lt_compiler_flag="-o out/conftest2.$ac_objext"
21290 # Insert the option either (1) after the last *FLAGS variable, or
21291 # (2) before a word containing "conftest.", or (3) at the end.
21292 # Note that $ac_compile itself does not contain backslashes and begins
21293 # with a dollar sign (not a hyphen), so the echo should work correctly.
21294 lt_compile=`echo "$ac_compile" | $SED \
21295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21297 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000021298 (eval echo "\"\$as_me:21298: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021299 (eval "$lt_compile" 2>out/conftest.err)
21300 ac_status=$?
21301 cat out/conftest.err >&5
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000021302 echo "$as_me:21302: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21304 then
21305 # The compiler can only warn and ignore the option if not recognized
21306 # So say no if there are warnings
21307 if test ! -s out/conftest.err; then
21308 lt_cv_prog_compiler_c_o_GCJ=yes
21309 fi
21310 fi
21311 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021312 $rm conftest*
21313 # SGI C++ compiler will create directory out/ii_files/ for
21314 # template instantiation
21315 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21316 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021317 cd ..
21318 rmdir conftest
21319 $rm conftest*
21320
21321fi
21322echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21323echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21324
21325
21326hard_links="nottested"
21327if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21328 # do not overwrite the value of need_locks provided by the user
21329 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21330echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21331 hard_links=yes
21332 $rm conftest*
21333 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21334 touch conftest.a
21335 ln conftest.a conftest.b 2>&5 || hard_links=no
21336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21337 echo "$as_me:$LINENO: result: $hard_links" >&5
21338echo "${ECHO_T}$hard_links" >&6
21339 if test "$hard_links" = no; then
21340 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21341echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21342 need_locks=warn
21343 fi
21344else
21345 need_locks=no
21346fi
21347
21348echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21349echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21350
21351 runpath_var=
21352 allow_undefined_flag_GCJ=
21353 enable_shared_with_static_runtimes_GCJ=no
21354 archive_cmds_GCJ=
21355 archive_expsym_cmds_GCJ=
21356 old_archive_From_new_cmds_GCJ=
21357 old_archive_from_expsyms_cmds_GCJ=
21358 export_dynamic_flag_spec_GCJ=
21359 whole_archive_flag_spec_GCJ=
21360 thread_safe_flag_spec_GCJ=
21361 hardcode_libdir_flag_spec_GCJ=
21362 hardcode_libdir_flag_spec_ld_GCJ=
21363 hardcode_libdir_separator_GCJ=
21364 hardcode_direct_GCJ=no
21365 hardcode_minus_L_GCJ=no
21366 hardcode_shlibpath_var_GCJ=unsupported
21367 link_all_deplibs_GCJ=unknown
21368 hardcode_automatic_GCJ=no
21369 module_cmds_GCJ=
21370 module_expsym_cmds_GCJ=
21371 always_export_symbols_GCJ=no
21372 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21373 # include_expsyms should be a list of space-separated symbols to be *always*
21374 # included in the symbol list
21375 include_expsyms_GCJ=
21376 # exclude_expsyms can be an extended regexp of symbols to exclude
21377 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21378 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21379 # as well as any symbol that contains `d'.
21380 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21382 # platforms (ab)use it in PIC code, but their linkers get confused if
21383 # the symbol is explicitly referenced. Since portable code cannot
21384 # rely on this symbol name, it's probably fine to never include it in
21385 # preloaded symbol tables.
21386 extract_expsyms_cmds=
21387
21388 case $host_os in
21389 cygwin* | mingw* | pw32*)
21390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21391 # When not using gcc, we currently assume that we are using
21392 # Microsoft Visual C++.
21393 if test "$GCC" != yes; then
21394 with_gnu_ld=no
21395 fi
21396 ;;
21397 openbsd*)
21398 with_gnu_ld=no
21399 ;;
21400 esac
21401
21402 ld_shlibs_GCJ=yes
21403 if test "$with_gnu_ld" = yes; then
21404 # If archive_cmds runs LD, not CC, wlarc should be empty
21405 wlarc='${wl}'
21406
21407 # See if GNU ld supports shared libraries.
21408 case $host_os in
21409 aix3* | aix4* | aix5*)
21410 # On AIX/PPC, the GNU linker is very broken
21411 if test "$host_cpu" != ia64; then
21412 ld_shlibs_GCJ=no
21413 cat <<EOF 1>&2
21414
21415*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21416*** to be unable to reliably create shared libraries on AIX.
21417*** Therefore, libtool is disabling shared libraries support. If you
21418*** really care for shared libraries, you may want to modify your PATH
21419*** so that a non-GNU linker is found, and then restart.
21420
21421EOF
21422 fi
21423 ;;
21424
21425 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021426 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 +000021427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21428 hardcode_minus_L_GCJ=yes
21429
21430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21431 # that the semantics of dynamic libraries on AmigaOS, at least up
21432 # to version 4, is to share data among multiple programs linked
21433 # with the same dynamic library. Since this doesn't match the
21434 # behavior of shared libraries on other platforms, we can't use
21435 # them.
21436 ld_shlibs_GCJ=no
21437 ;;
21438
21439 beos*)
21440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21441 allow_undefined_flag_GCJ=unsupported
21442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21443 # support --undefined. This deserves some investigation. FIXME
21444 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445 else
21446 ld_shlibs_GCJ=no
21447 fi
21448 ;;
21449
21450 cygwin* | mingw* | pw32*)
21451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21452 # as there is no search path for DLLs.
21453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21454 allow_undefined_flag_GCJ=unsupported
21455 always_export_symbols_GCJ=no
21456 enable_shared_with_static_runtimes_GCJ=yes
21457 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21458
21459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21461 # If the export-symbols file already is a .def file (1st line
21462 # is EXPORTS), use it as is; otherwise, prepend...
21463 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21464 cp $export_symbols $output_objdir/$soname.def;
21465 else
21466 echo EXPORTS > $output_objdir/$soname.def;
21467 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021468 fi~
21469 $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 +000021470 else
21471 ld_shlibs=no
21472 fi
21473 ;;
21474
21475 netbsd*)
21476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21477 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21478 wlarc=
21479 else
21480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21482 fi
21483 ;;
21484
21485 solaris* | sysv5*)
21486 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21487 ld_shlibs_GCJ=no
21488 cat <<EOF 1>&2
21489
21490*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21491*** create shared libraries on Solaris systems. Therefore, libtool
21492*** is disabling shared libraries support. We urge you to upgrade GNU
21493*** binutils to release 2.9.1 or newer. Another option is to modify
21494*** your PATH or compiler configuration so that the native linker is
21495*** used, and then restart.
21496
21497EOF
21498 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21501 else
21502 ld_shlibs_GCJ=no
21503 fi
21504 ;;
21505
21506 sunos4*)
21507 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21508 wlarc=
21509 hardcode_direct_GCJ=yes
21510 hardcode_shlibpath_var_GCJ=no
21511 ;;
21512
Reid Spencer2706f8c2004-09-19 23:53:36 +000021513 linux*)
21514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21515 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21516 archive_cmds_GCJ="$tmp_archive_cmds"
21517 supports_anon_versioning=no
21518 case `$LD -v 2>/dev/null` in
21519 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21522 *\ 2.11.*) ;; # other 2.11 versions
21523 *) supports_anon_versioning=yes ;;
21524 esac
21525 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021526 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21527cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21528$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021529 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21530 else
21531 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21532 fi
21533 else
21534 ld_shlibs_GCJ=no
21535 fi
21536 ;;
21537
John Criswell47fdd832003-07-14 16:52:07 +000021538 *)
21539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21542 else
21543 ld_shlibs_GCJ=no
21544 fi
21545 ;;
21546 esac
21547
21548 if test "$ld_shlibs_GCJ" = yes; then
21549 runpath_var=LD_RUN_PATH
21550 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21551 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21552 # ancient GNU ld didn't support --whole-archive et. al.
21553 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21554 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21555 else
21556 whole_archive_flag_spec_GCJ=
21557 fi
21558 fi
21559 else
21560 # PORTME fill in a description of your system's linker (not GNU ld)
21561 case $host_os in
21562 aix3*)
21563 allow_undefined_flag_GCJ=unsupported
21564 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021565 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 +000021566 # Note: this linker hardcodes the directories in LIBPATH if there
21567 # are no directories specified by -L.
21568 hardcode_minus_L_GCJ=yes
21569 if test "$GCC" = yes && test -z "$link_static_flag"; then
21570 # Neither direct hardcoding nor static linking is supported with a
21571 # broken collect2.
21572 hardcode_direct_GCJ=unsupported
21573 fi
21574 ;;
21575
21576 aix4* | aix5*)
21577 if test "$host_cpu" = ia64; then
21578 # On IA64, the linker does run time linking by default, so we don't
21579 # have to do anything special.
21580 aix_use_runtimelinking=no
21581 exp_sym_flag='-Bexport'
21582 no_entry_flag=""
21583 else
21584 # If we're using GNU nm, then we don't want the "-C" option.
21585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21586 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21587 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'
21588 else
21589 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'
21590 fi
21591 aix_use_runtimelinking=no
21592
21593 # Test if we are trying to use run time linking or normal
21594 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21595 # need to do runtime linking.
21596 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21597 for ld_flag in $LDFLAGS; do
21598 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21599 aix_use_runtimelinking=yes
21600 break
21601 fi
21602 done
21603 esac
21604
21605 exp_sym_flag='-bexport'
21606 no_entry_flag='-bnoentry'
21607 fi
21608
21609 # When large executables or shared objects are built, AIX ld can
21610 # have problems creating the table of contents. If linking a library
21611 # or program results in "error TOC overflow" add -mminimal-toc to
21612 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21613 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21614
21615 archive_cmds_GCJ=''
21616 hardcode_direct_GCJ=yes
21617 hardcode_libdir_separator_GCJ=':'
21618 link_all_deplibs_GCJ=yes
21619
21620 if test "$GCC" = yes; then
21621 case $host_os in aix4.012|aix4.012.*)
21622 # We only want to do this on AIX 4.2 and lower, the check
21623 # below for broken collect2 doesn't work under 4.3+
21624 collect2name=`${CC} -print-prog-name=collect2`
21625 if test -f "$collect2name" && \
21626 strings "$collect2name" | grep resolve_lib_name >/dev/null
21627 then
21628 # We have reworked collect2
21629 hardcode_direct_GCJ=yes
21630 else
21631 # We have old collect2
21632 hardcode_direct_GCJ=unsupported
21633 # It fails to find uninstalled libraries when the uninstalled
21634 # path is not listed in the libpath. Setting hardcode_minus_L
21635 # to unsupported forces relinking
21636 hardcode_minus_L_GCJ=yes
21637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21638 hardcode_libdir_separator_GCJ=
21639 fi
21640 esac
21641 shared_flag='-shared'
21642 else
21643 # not using gcc
21644 if test "$host_cpu" = ia64; then
21645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21646 # chokes on -Wl,-G. The following line is correct:
21647 shared_flag='-G'
21648 else
21649 if test "$aix_use_runtimelinking" = yes; then
21650 shared_flag='${wl}-G'
21651 else
21652 shared_flag='${wl}-bM:SRE'
21653 fi
21654 fi
21655 fi
21656
21657 # It seems that -bexpall does not export symbols beginning with
21658 # underscore (_), so it is better to generate a list of symbols to export.
21659 always_export_symbols_GCJ=yes
21660 if test "$aix_use_runtimelinking" = yes; then
21661 # Warning - without using the other runtime loading flags (-brtl),
21662 # -berok will link without error, but may produce a broken library.
21663 allow_undefined_flag_GCJ='-berok'
21664 # Determine the default libpath from the value encoded in an empty executable.
21665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021671
John Criswell47fdd832003-07-14 16:52:07 +000021672int
21673main ()
21674{
21675
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext conftest$ac_exeext
21681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021682 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021689 { ac_try='test -z "$ac_c_werror_flag"
21690 || test ! -s conftest.err'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } &&
21696 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21702
21703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21704}'`
21705# Check for a 64-bit object if we didn't find anything.
21706if 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; }
21707}'`; fi
21708else
21709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021710sed 's/^/| /' conftest.$ac_ext >&5
21711
John Criswell47fdd832003-07-14 16:52:07 +000021712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021713rm -f conftest.err conftest.$ac_objext \
21714 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21716
21717 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21718 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"
21719 else
21720 if test "$host_cpu" = ia64; then
21721 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21722 allow_undefined_flag_GCJ="-z nodefs"
21723 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"
21724 else
21725 # Determine the default libpath from the value encoded in an empty executable.
21726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021732
John Criswell47fdd832003-07-14 16:52:07 +000021733int
21734main ()
21735{
21736
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741rm -f conftest.$ac_objext conftest$ac_exeext
21742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021743 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021745 grep -v '^ *+' conftest.er1 >conftest.err
21746 rm -f conftest.er1
21747 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021750 { ac_try='test -z "$ac_c_werror_flag"
21751 || test ! -s conftest.err'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; } &&
21757 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763
21764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21765}'`
21766# Check for a 64-bit object if we didn't find anything.
21767if 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; }
21768}'`; fi
21769else
21770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021771sed 's/^/| /' conftest.$ac_ext >&5
21772
John Criswell47fdd832003-07-14 16:52:07 +000021773fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021774rm -f conftest.err conftest.$ac_objext \
21775 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21777
21778 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21779 # Warning - without using the other run time loading flags,
21780 # -berok will link without error, but may produce a broken library.
21781 no_undefined_flag_GCJ=' ${wl}-bernotok'
21782 allow_undefined_flag_GCJ=' ${wl}-berok'
21783 # -bexpall does not export symbols beginning with underscore (_)
21784 always_export_symbols_GCJ=yes
21785 # Exported symbols can be pulled into shared objects from archives
21786 whole_archive_flag_spec_GCJ=' '
21787 archive_cmds_need_lc_GCJ=yes
21788 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021789 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 +000021790 fi
21791 fi
21792 ;;
21793
21794 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021795 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 +000021796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21797 hardcode_minus_L_GCJ=yes
21798 # see comment about different semantics on the GNU ld section
21799 ld_shlibs_GCJ=no
21800 ;;
21801
Reid Spencer2706f8c2004-09-19 23:53:36 +000021802 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021803 export_dynamic_flag_spec_GCJ=-rdynamic
21804 ;;
21805
21806 cygwin* | mingw* | pw32*)
21807 # When not using gcc, we currently assume that we are using
21808 # Microsoft Visual C++.
21809 # hardcode_libdir_flag_spec is actually meaningless, as there is
21810 # no search path for DLLs.
21811 hardcode_libdir_flag_spec_GCJ=' '
21812 allow_undefined_flag_GCJ=unsupported
21813 # Tell ltmain to make .lib files, not .a files.
21814 libext=lib
21815 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021816 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021817 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021818 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 +000021819 # The linker will automatically build a .lib file if we build a DLL.
21820 old_archive_From_new_cmds_GCJ='true'
21821 # FIXME: Should let the user specify the lib program.
21822 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21823 fix_srcfile_path='`cygpath -w "$srcfile"`'
21824 enable_shared_with_static_runtimes_GCJ=yes
21825 ;;
21826
21827 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021828 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021829 rhapsody* | darwin1.[012])
21830 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21831 ;;
21832 *) # Darwin 1.3 on
21833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21835 else
21836 case ${MACOSX_DEPLOYMENT_TARGET} in
21837 10.[012])
21838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21839 ;;
21840 10.*)
21841 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21842 ;;
21843 esac
21844 fi
21845 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021846 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021847 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021848 hardcode_direct_GCJ=no
21849 hardcode_automatic_GCJ=yes
21850 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021851 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021852 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021853 if test "$GCC" = yes ; then
21854 output_verbose_link_cmd='echo'
21855 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21856 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21857 # 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 +000021858 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}'
21859 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 +000021860 else
21861 case "$cc_basename" in
21862 xlc*)
21863 output_verbose_link_cmd='echo'
21864 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21865 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21866 # 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 +000021867 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}'
21868 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 +000021869 ;;
21870 *)
21871 ld_shlibs_GCJ=no
21872 ;;
21873 esac
John Criswell47fdd832003-07-14 16:52:07 +000021874 fi
21875 ;;
21876
21877 dgux*)
21878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21880 hardcode_shlibpath_var_GCJ=no
21881 ;;
21882
21883 freebsd1*)
21884 ld_shlibs_GCJ=no
21885 ;;
21886
21887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21888 # support. Future versions do this automatically, but an explicit c++rt0.o
21889 # does not break anything, and helps significantly (at the cost of a little
21890 # extra space).
21891 freebsd2.2*)
21892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21894 hardcode_direct_GCJ=yes
21895 hardcode_shlibpath_var_GCJ=no
21896 ;;
21897
21898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21899 freebsd2*)
21900 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21901 hardcode_direct_GCJ=yes
21902 hardcode_minus_L_GCJ=yes
21903 hardcode_shlibpath_var_GCJ=no
21904 ;;
21905
21906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021907 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021908 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21910 hardcode_direct_GCJ=yes
21911 hardcode_shlibpath_var_GCJ=no
21912 ;;
21913
21914 hpux9*)
21915 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021916 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 +000021917 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021918 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 +000021919 fi
21920 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21921 hardcode_libdir_separator_GCJ=:
21922 hardcode_direct_GCJ=yes
21923
21924 # hardcode_minus_L: Not really in the search PATH,
21925 # but as the default location of the library.
21926 hardcode_minus_L_GCJ=yes
21927 export_dynamic_flag_spec_GCJ='${wl}-E'
21928 ;;
21929
21930 hpux10* | hpux11*)
21931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21932 case "$host_cpu" in
21933 hppa*64*|ia64*)
21934 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21935 ;;
21936 *)
21937 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21938 ;;
21939 esac
21940 else
21941 case "$host_cpu" in
21942 hppa*64*|ia64*)
21943 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21944 ;;
21945 *)
21946 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21947 ;;
21948 esac
21949 fi
21950 if test "$with_gnu_ld" = no; then
21951 case "$host_cpu" in
21952 hppa*64*)
21953 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21954 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21955 hardcode_libdir_separator_GCJ=:
21956 hardcode_direct_GCJ=no
21957 hardcode_shlibpath_var_GCJ=no
21958 ;;
21959 ia64*)
21960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21961 hardcode_direct_GCJ=no
21962 hardcode_shlibpath_var_GCJ=no
21963
21964 # hardcode_minus_L: Not really in the search PATH,
21965 # but as the default location of the library.
21966 hardcode_minus_L_GCJ=yes
21967 ;;
21968 *)
21969 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21970 hardcode_libdir_separator_GCJ=:
21971 hardcode_direct_GCJ=yes
21972 export_dynamic_flag_spec_GCJ='${wl}-E'
21973
21974 # hardcode_minus_L: Not really in the search PATH,
21975 # but as the default location of the library.
21976 hardcode_minus_L_GCJ=yes
21977 ;;
21978 esac
21979 fi
21980 ;;
21981
21982 irix5* | irix6* | nonstopux*)
21983 if test "$GCC" = yes; then
21984 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'
21985 else
21986 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'
21987 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21988 fi
21989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21990 hardcode_libdir_separator_GCJ=:
21991 link_all_deplibs_GCJ=yes
21992 ;;
21993
21994 netbsd*)
21995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21997 else
21998 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21999 fi
22000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22001 hardcode_direct_GCJ=yes
22002 hardcode_shlibpath_var_GCJ=no
22003 ;;
22004
22005 newsos6)
22006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22007 hardcode_direct_GCJ=yes
22008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22009 hardcode_libdir_separator_GCJ=:
22010 hardcode_shlibpath_var_GCJ=no
22011 ;;
22012
22013 openbsd*)
22014 hardcode_direct_GCJ=yes
22015 hardcode_shlibpath_var_GCJ=no
22016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22017 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022018 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 +000022019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22020 export_dynamic_flag_spec_GCJ='${wl}-E'
22021 else
22022 case $host_os in
22023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22026 ;;
22027 *)
22028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22030 ;;
22031 esac
22032 fi
22033 ;;
22034
22035 os2*)
22036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22037 hardcode_minus_L_GCJ=yes
22038 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022039 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 +000022040 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22041 ;;
22042
22043 osf3*)
22044 if test "$GCC" = yes; then
22045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22046 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'
22047 else
22048 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22049 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'
22050 fi
22051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22052 hardcode_libdir_separator_GCJ=:
22053 ;;
22054
22055 osf4* | osf5*) # as osf3* with the addition of -msym flag
22056 if test "$GCC" = yes; then
22057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22058 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'
22059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22060 else
22061 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22062 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 +000022063 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~
22064 $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'
22065
John Criswell47fdd832003-07-14 16:52:07 +000022066 # Both c and cxx compiler support -rpath directly
22067 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22068 fi
22069 hardcode_libdir_separator_GCJ=:
22070 ;;
22071
22072 sco3.2v5*)
22073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22074 hardcode_shlibpath_var_GCJ=no
22075 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22076 runpath_var=LD_RUN_PATH
22077 hardcode_runpath_var=yes
22078 ;;
22079
22080 solaris*)
22081 no_undefined_flag_GCJ=' -z text'
22082 if test "$GCC" = yes; then
22083 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22085 $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 +000022086 else
22087 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089 $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 +000022090 fi
22091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22092 hardcode_shlibpath_var_GCJ=no
22093 case $host_os in
22094 solaris2.[0-5] | solaris2.[0-5].*) ;;
22095 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22096 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22097 esac
22098 link_all_deplibs_GCJ=yes
22099 ;;
22100
22101 sunos4*)
22102 if test "x$host_vendor" = xsequent; then
22103 # Use $CC to link under sequent, because it throws in some extra .o
22104 # files that make .init and .fini sections work.
22105 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22106 else
22107 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22108 fi
22109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22110 hardcode_direct_GCJ=yes
22111 hardcode_minus_L_GCJ=yes
22112 hardcode_shlibpath_var_GCJ=no
22113 ;;
22114
22115 sysv4)
22116 case $host_vendor in
22117 sni)
22118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_direct_GCJ=yes # is this really true???
22120 ;;
22121 siemens)
22122 ## LD is ld it makes a PLAMLIB
22123 ## CC just makes a GrossModule.
22124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22125 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22126 hardcode_direct_GCJ=no
22127 ;;
22128 motorola)
22129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22131 ;;
22132 esac
22133 runpath_var='LD_RUN_PATH'
22134 hardcode_shlibpath_var_GCJ=no
22135 ;;
22136
22137 sysv4.3*)
22138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139 hardcode_shlibpath_var_GCJ=no
22140 export_dynamic_flag_spec_GCJ='-Bexport'
22141 ;;
22142
22143 sysv4*MP*)
22144 if test -d /usr/nec; then
22145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 hardcode_shlibpath_var_GCJ=no
22147 runpath_var=LD_RUN_PATH
22148 hardcode_runpath_var=yes
22149 ld_shlibs_GCJ=yes
22150 fi
22151 ;;
22152
22153 sysv4.2uw2*)
22154 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_direct_GCJ=yes
22156 hardcode_minus_L_GCJ=no
22157 hardcode_shlibpath_var_GCJ=no
22158 hardcode_runpath_var=yes
22159 runpath_var=LD_RUN_PATH
22160 ;;
22161
22162 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22163 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22164 if test "$GCC" = yes; then
22165 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22166 else
22167 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22168 fi
22169 runpath_var='LD_RUN_PATH'
22170 hardcode_shlibpath_var_GCJ=no
22171 ;;
22172
22173 sysv5*)
22174 no_undefined_flag_GCJ=' -z text'
22175 # $CC -shared without GNU ld will not create a library from C++
22176 # object files and a static libstdc++, better avoid it by now
22177 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022178 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22179 $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 +000022180 hardcode_libdir_flag_spec_GCJ=
22181 hardcode_shlibpath_var_GCJ=no
22182 runpath_var='LD_RUN_PATH'
22183 ;;
22184
22185 uts4*)
22186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22188 hardcode_shlibpath_var_GCJ=no
22189 ;;
22190
22191 *)
22192 ld_shlibs_GCJ=no
22193 ;;
22194 esac
22195 fi
22196
22197echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22198echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22199test "$ld_shlibs_GCJ" = no && can_build_shared=no
22200
22201variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22202if test "$GCC" = yes; then
22203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22204fi
22205
22206#
22207# Do we need to explicitly link libc?
22208#
22209case "x$archive_cmds_need_lc_GCJ" in
22210x|xyes)
22211 # Assume -lc should be added
22212 archive_cmds_need_lc_GCJ=yes
22213
22214 if test "$enable_shared" = yes && test "$GCC" = yes; then
22215 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022216 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022217 # FIXME: we may have to deal with multi-command sequences.
22218 ;;
22219 '$CC '*)
22220 # Test whether the compiler implicitly links with -lc since on some
22221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22222 # to ld, don't add -lc before -lgcc.
22223 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22224echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22225 $rm conftest*
22226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22227
22228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22229 (eval $ac_compile) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } 2>conftest.err; then
22233 soname=conftest
22234 lib=conftest
22235 libobjs=conftest.$ac_objext
22236 deplibs=
22237 wl=$lt_prog_compiler_wl_GCJ
22238 compiler_flags=-v
22239 linker_flags=-v
22240 verstring=
22241 output_objdir=.
22242 libname=conftest
22243 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22244 allow_undefined_flag_GCJ=
22245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22246 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }
22250 then
22251 archive_cmds_need_lc_GCJ=no
22252 else
22253 archive_cmds_need_lc_GCJ=yes
22254 fi
22255 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22256 else
22257 cat conftest.err 1>&5
22258 fi
22259 $rm conftest*
22260 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22261echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22262 ;;
22263 esac
22264 fi
22265 ;;
22266esac
22267
John Criswell47fdd832003-07-14 16:52:07 +000022268echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22269echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22270library_names_spec=
22271libname_spec='lib$name'
22272soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022273shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022274postinstall_cmds=
22275postuninstall_cmds=
22276finish_cmds=
22277finish_eval=
22278shlibpath_var=
22279shlibpath_overrides_runpath=unknown
22280version_type=none
22281dynamic_linker="$host_os ld.so"
22282sys_lib_dlsearch_path_spec="/lib /usr/lib"
22283if test "$GCC" = yes; then
22284 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22285 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22286 # if the path contains ";" then we assume it to be the separator
22287 # otherwise default to the standard path separator (i.e. ":") - it is
22288 # assumed that no part of a normal pathname contains ";" but that should
22289 # okay in the real world where ";" in dirpaths is itself problematic.
22290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22291 else
22292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22293 fi
22294else
22295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22296fi
22297need_lib_prefix=unknown
22298hardcode_into_libs=no
22299
22300# when you set need_version to no, make sure it does not cause -set_version
22301# flags to be left without arguments
22302need_version=unknown
22303
22304case $host_os in
22305aix3*)
22306 version_type=linux
22307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22308 shlibpath_var=LIBPATH
22309
22310 # AIX 3 has no versioning support, so we append a major version to the name.
22311 soname_spec='${libname}${release}${shared_ext}$major'
22312 ;;
22313
22314aix4* | aix5*)
22315 version_type=linux
22316 need_lib_prefix=no
22317 need_version=no
22318 hardcode_into_libs=yes
22319 if test "$host_cpu" = ia64; then
22320 # AIX 5 supports IA64
22321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22322 shlibpath_var=LD_LIBRARY_PATH
22323 else
22324 # With GCC up to 2.95.x, collect2 would create an import file
22325 # for dependence libraries. The import file would start with
22326 # the line `#! .'. This would cause the generated library to
22327 # depend on `.', always an invalid library. This was fixed in
22328 # development snapshots of GCC prior to 3.0.
22329 case $host_os in
22330 aix4 | aix4.[01] | aix4.[01].*)
22331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22332 echo ' yes '
22333 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22334 :
22335 else
22336 can_build_shared=no
22337 fi
22338 ;;
22339 esac
22340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22341 # soname into executable. Probably we can add versioning support to
22342 # collect2, so additional links can be useful in future.
22343 if test "$aix_use_runtimelinking" = yes; then
22344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22345 # instead of lib<name>.a to let people know that these are not
22346 # typical AIX shared libraries.
22347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22348 else
22349 # We preserve .a as extension for shared libraries through AIX4.2
22350 # and later when we are not doing run time linking.
22351 library_names_spec='${libname}${release}.a $libname.a'
22352 soname_spec='${libname}${release}${shared_ext}$major'
22353 fi
22354 shlibpath_var=LIBPATH
22355 fi
22356 ;;
22357
22358amigaos*)
22359 library_names_spec='$libname.ixlibrary $libname.a'
22360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022361 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 +000022362 ;;
22363
22364beos*)
22365 library_names_spec='${libname}${shared_ext}'
22366 dynamic_linker="$host_os ld.so"
22367 shlibpath_var=LIBRARY_PATH
22368 ;;
22369
Reid Spencer2706f8c2004-09-19 23:53:36 +000022370bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022371 version_type=linux
22372 need_version=no
22373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22374 soname_spec='${libname}${release}${shared_ext}$major'
22375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22376 shlibpath_var=LD_LIBRARY_PATH
22377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22379 # the default ld.so.conf also contains /usr/contrib/lib and
22380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22381 # libtool to hard-code these into programs
22382 ;;
22383
22384cygwin* | mingw* | pw32*)
22385 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022386 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022387 need_version=no
22388 need_lib_prefix=no
22389
22390 case $GCC,$host_os in
22391 yes,cygwin* | yes,mingw* | yes,pw32*)
22392 library_names_spec='$libname.dll.a'
22393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022394 postinstall_cmds='base_file=`basename \${file}`~
22395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22396 dldir=$destdir/`dirname \$dlpath`~
22397 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022398 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22400 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022401 $rm \$dlpath'
22402 shlibpath_overrides_runpath=yes
22403
22404 case $host_os in
22405 cygwin*)
22406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22407 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 +000022408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022409 ;;
22410 mingw*)
22411 # MinGW DLLs use traditional 'lib' prefix
22412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22415 # It is most probably a Windows format PATH printed by
22416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22417 # path with ; separators, and with drive letters. We can handle the
22418 # drive letters (cygwin fileutils understands them), so leave them,
22419 # especially as we might pass files found there to a mingw objdump,
22420 # which wouldn't understand a cygwinified path. Ahh.
22421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22422 else
22423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22424 fi
22425 ;;
22426 pw32*)
22427 # pw32 DLLs use 'pw' prefix rather than 'lib'
22428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22429 ;;
22430 esac
22431 ;;
22432
22433 *)
22434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22435 ;;
22436 esac
22437 dynamic_linker='Win32 ld.exe'
22438 # FIXME: first we should search . and the directory the executable is in
22439 shlibpath_var=PATH
22440 ;;
22441
22442darwin* | rhapsody*)
22443 dynamic_linker="$host_os dyld"
22444 version_type=darwin
22445 need_lib_prefix=no
22446 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022448 soname_spec='${libname}${release}${major}$shared_ext'
22449 shlibpath_overrides_runpath=yes
22450 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022451 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022453 if test "$GCC" = yes; then
22454 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"`
22455 else
22456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022457 fi
22458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22459 ;;
22460
22461dgux*)
22462 version_type=linux
22463 need_lib_prefix=no
22464 need_version=no
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22466 soname_spec='${libname}${release}${shared_ext}$major'
22467 shlibpath_var=LD_LIBRARY_PATH
22468 ;;
22469
22470freebsd1*)
22471 dynamic_linker=no
22472 ;;
22473
Reid Spencer2706f8c2004-09-19 23:53:36 +000022474kfreebsd*-gnu)
22475 version_type=linux
22476 need_lib_prefix=no
22477 need_version=no
22478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22479 soname_spec='${libname}${release}${shared_ext}$major'
22480 shlibpath_var=LD_LIBRARY_PATH
22481 shlibpath_overrides_runpath=no
22482 hardcode_into_libs=yes
22483 dynamic_linker='GNU ld.so'
22484 ;;
22485
John Criswell47fdd832003-07-14 16:52:07 +000022486freebsd*)
22487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22488 version_type=freebsd-$objformat
22489 case $version_type in
22490 freebsd-elf*)
22491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22492 need_version=no
22493 need_lib_prefix=no
22494 ;;
22495 freebsd-*)
22496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22497 need_version=yes
22498 ;;
22499 esac
22500 shlibpath_var=LD_LIBRARY_PATH
22501 case $host_os in
22502 freebsd2*)
22503 shlibpath_overrides_runpath=yes
22504 ;;
22505 freebsd3.01* | freebsdelf3.01*)
22506 shlibpath_overrides_runpath=yes
22507 hardcode_into_libs=yes
22508 ;;
22509 *) # from 3.2 on
22510 shlibpath_overrides_runpath=no
22511 hardcode_into_libs=yes
22512 ;;
22513 esac
22514 ;;
22515
22516gnu*)
22517 version_type=linux
22518 need_lib_prefix=no
22519 need_version=no
22520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22521 soname_spec='${libname}${release}${shared_ext}$major'
22522 shlibpath_var=LD_LIBRARY_PATH
22523 hardcode_into_libs=yes
22524 ;;
22525
22526hpux9* | hpux10* | hpux11*)
22527 # Give a soname corresponding to the major version so that dld.sl refuses to
22528 # link against other versions.
22529 version_type=sunos
22530 need_lib_prefix=no
22531 need_version=no
22532 case "$host_cpu" in
22533 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022534 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022535 hardcode_into_libs=yes
22536 dynamic_linker="$host_os dld.so"
22537 shlibpath_var=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22540 soname_spec='${libname}${release}${shared_ext}$major'
22541 if test "X$HPUX_IA64_MODE" = X32; then
22542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22543 else
22544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22545 fi
22546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22547 ;;
22548 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022549 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022550 hardcode_into_libs=yes
22551 dynamic_linker="$host_os dld.sl"
22552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22555 soname_spec='${libname}${release}${shared_ext}$major'
22556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22558 ;;
22559 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022560 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022561 dynamic_linker="$host_os dld.sl"
22562 shlibpath_var=SHLIB_PATH
22563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22565 soname_spec='${libname}${release}${shared_ext}$major'
22566 ;;
22567 esac
22568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22569 postinstall_cmds='chmod 555 $lib'
22570 ;;
22571
22572irix5* | irix6* | nonstopux*)
22573 case $host_os in
22574 nonstopux*) version_type=nonstopux ;;
22575 *)
22576 if test "$lt_cv_prog_gnu_ld" = yes; then
22577 version_type=linux
22578 else
22579 version_type=irix
22580 fi ;;
22581 esac
22582 need_lib_prefix=no
22583 need_version=no
22584 soname_spec='${libname}${release}${shared_ext}$major'
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22586 case $host_os in
22587 irix5* | nonstopux*)
22588 libsuff= shlibsuff=
22589 ;;
22590 *)
22591 case $LD in # libtool.m4 will add one of these switches to LD
22592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22593 libsuff= shlibsuff= libmagic=32-bit;;
22594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22595 libsuff=32 shlibsuff=N32 libmagic=N32;;
22596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22598 *) libsuff= shlibsuff= libmagic=never-match;;
22599 esac
22600 ;;
22601 esac
22602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22603 shlibpath_overrides_runpath=no
22604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22606 hardcode_into_libs=yes
22607 ;;
22608
22609# No shared lib support for Linux oldld, aout, or coff.
22610linux*oldld* | linux*aout* | linux*coff*)
22611 dynamic_linker=no
22612 ;;
22613
22614# This must be Linux ELF.
22615linux*)
22616 version_type=linux
22617 need_lib_prefix=no
22618 need_version=no
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 soname_spec='${libname}${release}${shared_ext}$major'
22621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22622 shlibpath_var=LD_LIBRARY_PATH
22623 shlibpath_overrides_runpath=no
22624 # This implies no fast_install, which is unacceptable.
22625 # Some rework will be needed to allow for fast_install
22626 # before this can be enabled.
22627 hardcode_into_libs=yes
22628
Reid Spencer2706f8c2004-09-19 23:53:36 +000022629 # Append ld.so.conf contents to the search path
22630 if test -f /etc/ld.so.conf; then
22631 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22633 fi
22634
John Criswell47fdd832003-07-14 16:52:07 +000022635 # We used to test for /lib/ld.so.1 and disable shared libraries on
22636 # powerpc, because MkLinux only supported shared libraries with the
22637 # GNU dynamic linker. Since this was broken with cross compilers,
22638 # most powerpc-linux boxes support dynamic linking these days and
22639 # people can always --disable-shared, the test was removed, and we
22640 # assume the GNU/Linux dynamic linker is in use.
22641 dynamic_linker='GNU/Linux ld.so'
22642 ;;
22643
Reid Spencer2706f8c2004-09-19 23:53:36 +000022644knetbsd*-gnu)
22645 version_type=linux
22646 need_lib_prefix=no
22647 need_version=no
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 shlibpath_var=LD_LIBRARY_PATH
22651 shlibpath_overrides_runpath=no
22652 hardcode_into_libs=yes
22653 dynamic_linker='GNU ld.so'
22654 ;;
22655
John Criswell47fdd832003-07-14 16:52:07 +000022656netbsd*)
22657 version_type=sunos
22658 need_lib_prefix=no
22659 need_version=no
22660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22663 dynamic_linker='NetBSD (a.out) ld.so'
22664 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022666 soname_spec='${libname}${release}${shared_ext}$major'
22667 dynamic_linker='NetBSD ld.elf_so'
22668 fi
22669 shlibpath_var=LD_LIBRARY_PATH
22670 shlibpath_overrides_runpath=yes
22671 hardcode_into_libs=yes
22672 ;;
22673
22674newsos6)
22675 version_type=linux
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22677 shlibpath_var=LD_LIBRARY_PATH
22678 shlibpath_overrides_runpath=yes
22679 ;;
22680
Reid Spencer2706f8c2004-09-19 23:53:36 +000022681nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022682 version_type=linux
22683 need_lib_prefix=no
22684 need_version=no
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 shlibpath_var=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath=yes
22689 ;;
22690
22691openbsd*)
22692 version_type=sunos
22693 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022694 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22699 case $host_os in
22700 openbsd2.[89] | openbsd2.[89].*)
22701 shlibpath_overrides_runpath=no
22702 ;;
22703 *)
22704 shlibpath_overrides_runpath=yes
22705 ;;
22706 esac
22707 else
22708 shlibpath_overrides_runpath=yes
22709 fi
22710 ;;
22711
22712os2*)
22713 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022714 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022715 need_lib_prefix=no
22716 library_names_spec='$libname${shared_ext} $libname.a'
22717 dynamic_linker='OS/2 ld.exe'
22718 shlibpath_var=LIBPATH
22719 ;;
22720
22721osf3* | osf4* | osf5*)
22722 version_type=osf
22723 need_lib_prefix=no
22724 need_version=no
22725 soname_spec='${libname}${release}${shared_ext}$major'
22726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22730 ;;
22731
22732sco3.2v5*)
22733 version_type=osf
22734 soname_spec='${libname}${release}${shared_ext}$major'
22735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 shlibpath_var=LD_LIBRARY_PATH
22737 ;;
22738
22739solaris*)
22740 version_type=linux
22741 need_lib_prefix=no
22742 need_version=no
22743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744 soname_spec='${libname}${release}${shared_ext}$major'
22745 shlibpath_var=LD_LIBRARY_PATH
22746 shlibpath_overrides_runpath=yes
22747 hardcode_into_libs=yes
22748 # ldd complains unless libraries are executable
22749 postinstall_cmds='chmod +x $lib'
22750 ;;
22751
22752sunos4*)
22753 version_type=sunos
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 shlibpath_overrides_runpath=yes
22758 if test "$with_gnu_ld" = yes; then
22759 need_lib_prefix=no
22760 fi
22761 need_version=yes
22762 ;;
22763
22764sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22765 version_type=linux
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 case $host_vendor in
22770 sni)
22771 shlibpath_overrides_runpath=no
22772 need_lib_prefix=no
22773 export_dynamic_flag_spec='${wl}-Blargedynsym'
22774 runpath_var=LD_RUN_PATH
22775 ;;
22776 siemens)
22777 need_lib_prefix=no
22778 ;;
22779 motorola)
22780 need_lib_prefix=no
22781 need_version=no
22782 shlibpath_overrides_runpath=no
22783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22784 ;;
22785 esac
22786 ;;
22787
22788sysv4*MP*)
22789 if test -d /usr/nec ;then
22790 version_type=linux
22791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22792 soname_spec='$libname${shared_ext}.$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 fi
22795 ;;
22796
22797uts4*)
22798 version_type=linux
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 ;;
22803
22804*)
22805 dynamic_linker=no
22806 ;;
22807esac
22808echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22809echo "${ECHO_T}$dynamic_linker" >&6
22810test "$dynamic_linker" = no && can_build_shared=no
22811
Reid Spencer2706f8c2004-09-19 23:53:36 +000022812echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22813echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22814hardcode_action_GCJ=
22815if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22816 test -n "$runpath_var_GCJ" || \
22817 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22818
22819 # We can hardcode non-existant directories.
22820 if test "$hardcode_direct_GCJ" != no &&
22821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22822 # have to relink, otherwise we might link with an installed library
22823 # when we should be linking with a yet-to-be-installed one
22824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22825 test "$hardcode_minus_L_GCJ" != no; then
22826 # Linking always hardcodes the temporary library directory.
22827 hardcode_action_GCJ=relink
22828 else
22829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22830 hardcode_action_GCJ=immediate
22831 fi
22832else
22833 # We cannot hardcode anything, or else we can only hardcode existing
22834 # directories.
22835 hardcode_action_GCJ=unsupported
22836fi
22837echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22838echo "${ECHO_T}$hardcode_action_GCJ" >&6
22839
22840if test "$hardcode_action_GCJ" = relink; then
22841 # Fast installation is not supported
22842 enable_fast_install=no
22843elif test "$shlibpath_overrides_runpath" = yes ||
22844 test "$enable_shared" = no; then
22845 # Fast installation is not necessary
22846 enable_fast_install=needless
22847fi
22848
22849striplib=
22850old_striplib=
22851echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22852echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22853if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22856 echo "$as_me:$LINENO: result: yes" >&5
22857echo "${ECHO_T}yes" >&6
22858else
22859# FIXME - insert some real tests, host_os isn't really good enough
22860 case $host_os in
22861 darwin*)
22862 if test -n "$STRIP" ; then
22863 striplib="$STRIP -x"
22864 echo "$as_me:$LINENO: result: yes" >&5
22865echo "${ECHO_T}yes" >&6
22866 else
22867 echo "$as_me:$LINENO: result: no" >&5
22868echo "${ECHO_T}no" >&6
22869fi
22870 ;;
22871 *)
22872 echo "$as_me:$LINENO: result: no" >&5
22873echo "${ECHO_T}no" >&6
22874 ;;
22875 esac
22876fi
22877
John Criswell47fdd832003-07-14 16:52:07 +000022878if test "x$enable_dlopen" != xyes; then
22879 enable_dlopen=unknown
22880 enable_dlopen_self=unknown
22881 enable_dlopen_self_static=unknown
22882else
22883 lt_cv_dlopen=no
22884 lt_cv_dlopen_libs=
22885
22886 case $host_os in
22887 beos*)
22888 lt_cv_dlopen="load_add_on"
22889 lt_cv_dlopen_libs=
22890 lt_cv_dlopen_self=yes
22891 ;;
22892
22893 mingw* | pw32*)
22894 lt_cv_dlopen="LoadLibrary"
22895 lt_cv_dlopen_libs=
22896 ;;
22897
22898 cygwin*)
22899 lt_cv_dlopen="dlopen"
22900 lt_cv_dlopen_libs=
22901 ;;
22902
22903 darwin*)
22904 # if libdl is installed we need to link against it
22905 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22906echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22907if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909else
22910 ac_check_lib_save_LIBS=$LIBS
22911LIBS="-ldl $LIBS"
22912cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022913/* confdefs.h. */
22914_ACEOF
22915cat confdefs.h >>conftest.$ac_ext
22916cat >>conftest.$ac_ext <<_ACEOF
22917/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022918
22919/* Override any gcc2 internal prototype to avoid an error. */
22920#ifdef __cplusplus
22921extern "C"
22922#endif
22923/* We use char because int might match the return type of a gcc2
22924 builtin and then its argument prototype would still apply. */
22925char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022926int
22927main ()
22928{
22929dlopen ();
22930 ;
22931 return 0;
22932}
22933_ACEOF
22934rm -f conftest.$ac_objext conftest$ac_exeext
22935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022936 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022943 { ac_try='test -z "$ac_c_werror_flag"
22944 || test ! -s conftest.err'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22947 ac_status=$?
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ac_cv_lib_dl_dlopen=yes
22957else
22958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022959sed 's/^/| /' conftest.$ac_ext >&5
22960
John Criswell47fdd832003-07-14 16:52:07 +000022961ac_cv_lib_dl_dlopen=no
22962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963rm -f conftest.err conftest.$ac_objext \
22964 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022965LIBS=$ac_check_lib_save_LIBS
22966fi
22967echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22968echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22969if test $ac_cv_lib_dl_dlopen = yes; then
22970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22971else
22972
22973 lt_cv_dlopen="dyld"
22974 lt_cv_dlopen_libs=
22975 lt_cv_dlopen_self=yes
22976
22977fi
22978
22979 ;;
22980
22981 *)
22982 echo "$as_me:$LINENO: checking for shl_load" >&5
22983echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22984if test "${ac_cv_func_shl_load+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22986else
22987 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022988/* confdefs.h. */
22989_ACEOF
22990cat confdefs.h >>conftest.$ac_ext
22991cat >>conftest.$ac_ext <<_ACEOF
22992/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22995#define shl_load innocuous_shl_load
22996
John Criswell47fdd832003-07-14 16:52:07 +000022997/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022998 which can conflict with char shl_load (); below.
22999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23000 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023001
John Criswell0c38eaf2003-09-10 15:17:25 +000023002#ifdef __STDC__
23003# include <limits.h>
23004#else
23005# include <assert.h>
23006#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023007
23008#undef shl_load
23009
John Criswell47fdd832003-07-14 16:52:07 +000023010/* Override any gcc2 internal prototype to avoid an error. */
23011#ifdef __cplusplus
23012extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023013{
John Criswell47fdd832003-07-14 16:52:07 +000023014#endif
23015/* We use char because int might match the return type of a gcc2
23016 builtin and then its argument prototype would still apply. */
23017char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023018/* The GNU C library defines this for functions which it implements
23019 to always fail with ENOSYS. Some functions are actually named
23020 something starting with __ and the normal name is an alias. */
23021#if defined (__stub_shl_load) || defined (__stub___shl_load)
23022choke me
23023#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023024char (*f) () = shl_load;
23025#endif
23026#ifdef __cplusplus
23027}
John Criswell47fdd832003-07-14 16:52:07 +000023028#endif
23029
John Criswell0c38eaf2003-09-10 15:17:25 +000023030int
23031main ()
23032{
23033return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023034 ;
23035 return 0;
23036}
23037_ACEOF
23038rm -f conftest.$ac_objext conftest$ac_exeext
23039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023040 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023042 grep -v '^ *+' conftest.er1 >conftest.err
23043 rm -f conftest.er1
23044 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023047 { ac_try='test -z "$ac_c_werror_flag"
23048 || test ! -s conftest.err'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; } &&
23054 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 ac_cv_func_shl_load=yes
23061else
23062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023063sed 's/^/| /' conftest.$ac_ext >&5
23064
John Criswell47fdd832003-07-14 16:52:07 +000023065ac_cv_func_shl_load=no
23066fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067rm -f conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023069fi
23070echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23071echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23072if test $ac_cv_func_shl_load = yes; then
23073 lt_cv_dlopen="shl_load"
23074else
23075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23076echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23077if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079else
23080 ac_check_lib_save_LIBS=$LIBS
23081LIBS="-ldld $LIBS"
23082cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023083/* confdefs.h. */
23084_ACEOF
23085cat confdefs.h >>conftest.$ac_ext
23086cat >>conftest.$ac_ext <<_ACEOF
23087/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023088
23089/* Override any gcc2 internal prototype to avoid an error. */
23090#ifdef __cplusplus
23091extern "C"
23092#endif
23093/* We use char because int might match the return type of a gcc2
23094 builtin and then its argument prototype would still apply. */
23095char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023096int
23097main ()
23098{
23099shl_load ();
23100 ;
23101 return 0;
23102}
23103_ACEOF
23104rm -f conftest.$ac_objext conftest$ac_exeext
23105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023106 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108 grep -v '^ *+' conftest.er1 >conftest.err
23109 rm -f conftest.er1
23110 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023113 { ac_try='test -z "$ac_c_werror_flag"
23114 || test ! -s conftest.err'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23117 ac_status=$?
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; } &&
23120 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23123 ac_status=$?
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_cv_lib_dld_shl_load=yes
23127else
23128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023129sed 's/^/| /' conftest.$ac_ext >&5
23130
John Criswell47fdd832003-07-14 16:52:07 +000023131ac_cv_lib_dld_shl_load=no
23132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023133rm -f conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023135LIBS=$ac_check_lib_save_LIBS
23136fi
23137echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23138echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23139if test $ac_cv_lib_dld_shl_load = yes; then
23140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23141else
23142 echo "$as_me:$LINENO: checking for dlopen" >&5
23143echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23144if test "${ac_cv_func_dlopen+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23146else
23147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023148/* confdefs.h. */
23149_ACEOF
23150cat confdefs.h >>conftest.$ac_ext
23151cat >>conftest.$ac_ext <<_ACEOF
23152/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023153/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23155#define dlopen innocuous_dlopen
23156
John Criswell47fdd832003-07-14 16:52:07 +000023157/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023158 which can conflict with char dlopen (); below.
23159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23160 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023161
John Criswell0c38eaf2003-09-10 15:17:25 +000023162#ifdef __STDC__
23163# include <limits.h>
23164#else
23165# include <assert.h>
23166#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023167
23168#undef dlopen
23169
John Criswell47fdd832003-07-14 16:52:07 +000023170/* Override any gcc2 internal prototype to avoid an error. */
23171#ifdef __cplusplus
23172extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023173{
John Criswell47fdd832003-07-14 16:52:07 +000023174#endif
23175/* We use char because int might match the return type of a gcc2
23176 builtin and then its argument prototype would still apply. */
23177char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023178/* The GNU C library defines this for functions which it implements
23179 to always fail with ENOSYS. Some functions are actually named
23180 something starting with __ and the normal name is an alias. */
23181#if defined (__stub_dlopen) || defined (__stub___dlopen)
23182choke me
23183#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023184char (*f) () = dlopen;
23185#endif
23186#ifdef __cplusplus
23187}
John Criswell47fdd832003-07-14 16:52:07 +000023188#endif
23189
John Criswell0c38eaf2003-09-10 15:17:25 +000023190int
23191main ()
23192{
23193return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023194 ;
23195 return 0;
23196}
23197_ACEOF
23198rm -f conftest.$ac_objext conftest$ac_exeext
23199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023200 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023207 { ac_try='test -z "$ac_c_werror_flag"
23208 || test ! -s conftest.err'
23209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210 (eval $ac_try) 2>&5
23211 ac_status=$?
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); }; } &&
23214 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216 (eval $ac_try) 2>&5
23217 ac_status=$?
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 ac_cv_func_dlopen=yes
23221else
23222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023223sed 's/^/| /' conftest.$ac_ext >&5
23224
John Criswell47fdd832003-07-14 16:52:07 +000023225ac_cv_func_dlopen=no
23226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023227rm -f conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023229fi
23230echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23231echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23232if test $ac_cv_func_dlopen = yes; then
23233 lt_cv_dlopen="dlopen"
23234else
23235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23237if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23239else
23240 ac_check_lib_save_LIBS=$LIBS
23241LIBS="-ldl $LIBS"
23242cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023248
23249/* Override any gcc2 internal prototype to avoid an error. */
23250#ifdef __cplusplus
23251extern "C"
23252#endif
23253/* We use char because int might match the return type of a gcc2
23254 builtin and then its argument prototype would still apply. */
23255char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023256int
23257main ()
23258{
23259dlopen ();
23260 ;
23261 return 0;
23262}
23263_ACEOF
23264rm -f conftest.$ac_objext conftest$ac_exeext
23265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023266 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_lib_dl_dlopen=yes
23287else
23288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023289sed 's/^/| /' conftest.$ac_ext >&5
23290
John Criswell47fdd832003-07-14 16:52:07 +000023291ac_cv_lib_dl_dlopen=no
23292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023293rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023295LIBS=$ac_check_lib_save_LIBS
23296fi
23297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23299if test $ac_cv_lib_dl_dlopen = yes; then
23300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23301else
23302 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23303echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23304if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23306else
23307 ac_check_lib_save_LIBS=$LIBS
23308LIBS="-lsvld $LIBS"
23309cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023310/* confdefs.h. */
23311_ACEOF
23312cat confdefs.h >>conftest.$ac_ext
23313cat >>conftest.$ac_ext <<_ACEOF
23314/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023315
23316/* Override any gcc2 internal prototype to avoid an error. */
23317#ifdef __cplusplus
23318extern "C"
23319#endif
23320/* We use char because int might match the return type of a gcc2
23321 builtin and then its argument prototype would still apply. */
23322char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023323int
23324main ()
23325{
23326dlopen ();
23327 ;
23328 return 0;
23329}
23330_ACEOF
23331rm -f conftest.$ac_objext conftest$ac_exeext
23332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023333 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023334 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023340 { ac_try='test -z "$ac_c_werror_flag"
23341 || test ! -s conftest.err'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; } &&
23347 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; }; then
23353 ac_cv_lib_svld_dlopen=yes
23354else
23355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023356sed 's/^/| /' conftest.$ac_ext >&5
23357
John Criswell47fdd832003-07-14 16:52:07 +000023358ac_cv_lib_svld_dlopen=no
23359fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023360rm -f conftest.err conftest.$ac_objext \
23361 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023362LIBS=$ac_check_lib_save_LIBS
23363fi
23364echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23365echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23366if test $ac_cv_lib_svld_dlopen = yes; then
23367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23368else
23369 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23370echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23371if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23372 echo $ECHO_N "(cached) $ECHO_C" >&6
23373else
23374 ac_check_lib_save_LIBS=$LIBS
23375LIBS="-ldld $LIBS"
23376cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023377/* confdefs.h. */
23378_ACEOF
23379cat confdefs.h >>conftest.$ac_ext
23380cat >>conftest.$ac_ext <<_ACEOF
23381/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023382
23383/* Override any gcc2 internal prototype to avoid an error. */
23384#ifdef __cplusplus
23385extern "C"
23386#endif
23387/* We use char because int might match the return type of a gcc2
23388 builtin and then its argument prototype would still apply. */
23389char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023390int
23391main ()
23392{
23393dld_link ();
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398rm -f conftest.$ac_objext conftest$ac_exeext
23399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023400 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023407 { ac_try='test -z "$ac_c_werror_flag"
23408 || test ! -s conftest.err'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_cv_lib_dld_dld_link=yes
23421else
23422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023423sed 's/^/| /' conftest.$ac_ext >&5
23424
John Criswell47fdd832003-07-14 16:52:07 +000023425ac_cv_lib_dld_dld_link=no
23426fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023427rm -f conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023429LIBS=$ac_check_lib_save_LIBS
23430fi
23431echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23432echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23433if test $ac_cv_lib_dld_dld_link = yes; then
23434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23435fi
23436
23437
23438fi
23439
23440
23441fi
23442
23443
23444fi
23445
23446
23447fi
23448
23449
23450fi
23451
23452 ;;
23453 esac
23454
23455 if test "x$lt_cv_dlopen" != xno; then
23456 enable_dlopen=yes
23457 else
23458 enable_dlopen=no
23459 fi
23460
23461 case $lt_cv_dlopen in
23462 dlopen)
23463 save_CPPFLAGS="$CPPFLAGS"
23464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23465
23466 save_LDFLAGS="$LDFLAGS"
23467 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23468
23469 save_LIBS="$LIBS"
23470 LIBS="$lt_cv_dlopen_libs $LIBS"
23471
23472 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23473echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23474if test "${lt_cv_dlopen_self+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23476else
23477 if test "$cross_compiling" = yes; then :
23478 lt_cv_dlopen_self=cross
23479else
23480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23481 lt_status=$lt_dlunknown
23482 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000023483#line 23483 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023484#include "confdefs.h"
23485
23486#if HAVE_DLFCN_H
23487#include <dlfcn.h>
23488#endif
23489
23490#include <stdio.h>
23491
23492#ifdef RTLD_GLOBAL
23493# define LT_DLGLOBAL RTLD_GLOBAL
23494#else
23495# ifdef DL_GLOBAL
23496# define LT_DLGLOBAL DL_GLOBAL
23497# else
23498# define LT_DLGLOBAL 0
23499# endif
23500#endif
23501
23502/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23503 find out it does not work in some platform. */
23504#ifndef LT_DLLAZY_OR_NOW
23505# ifdef RTLD_LAZY
23506# define LT_DLLAZY_OR_NOW RTLD_LAZY
23507# else
23508# ifdef DL_LAZY
23509# define LT_DLLAZY_OR_NOW DL_LAZY
23510# else
23511# ifdef RTLD_NOW
23512# define LT_DLLAZY_OR_NOW RTLD_NOW
23513# else
23514# ifdef DL_NOW
23515# define LT_DLLAZY_OR_NOW DL_NOW
23516# else
23517# define LT_DLLAZY_OR_NOW 0
23518# endif
23519# endif
23520# endif
23521# endif
23522#endif
23523
23524#ifdef __cplusplus
23525extern "C" void exit (int);
23526#endif
23527
23528void fnord() { int i=42;}
23529int main ()
23530{
23531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23532 int status = $lt_dlunknown;
23533
23534 if (self)
23535 {
23536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23538 /* dlclose (self); */
23539 }
23540
23541 exit (status);
23542}
23543EOF
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23549 (./conftest; exit; ) 2>/dev/null
23550 lt_status=$?
23551 case x$lt_status in
23552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23554 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23555 esac
23556 else :
23557 # compilation failed
23558 lt_cv_dlopen_self=no
23559 fi
23560fi
23561rm -fr conftest*
23562
23563
23564fi
23565echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23566echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23567
23568 if test "x$lt_cv_dlopen_self" = xyes; then
23569 LDFLAGS="$LDFLAGS $link_static_flag"
23570 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23571echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23572if test "${lt_cv_dlopen_self_static+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23574else
23575 if test "$cross_compiling" = yes; then :
23576 lt_cv_dlopen_self_static=cross
23577else
23578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23579 lt_status=$lt_dlunknown
23580 cat > conftest.$ac_ext <<EOF
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000023581#line 23581 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023582#include "confdefs.h"
23583
23584#if HAVE_DLFCN_H
23585#include <dlfcn.h>
23586#endif
23587
23588#include <stdio.h>
23589
23590#ifdef RTLD_GLOBAL
23591# define LT_DLGLOBAL RTLD_GLOBAL
23592#else
23593# ifdef DL_GLOBAL
23594# define LT_DLGLOBAL DL_GLOBAL
23595# else
23596# define LT_DLGLOBAL 0
23597# endif
23598#endif
23599
23600/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23601 find out it does not work in some platform. */
23602#ifndef LT_DLLAZY_OR_NOW
23603# ifdef RTLD_LAZY
23604# define LT_DLLAZY_OR_NOW RTLD_LAZY
23605# else
23606# ifdef DL_LAZY
23607# define LT_DLLAZY_OR_NOW DL_LAZY
23608# else
23609# ifdef RTLD_NOW
23610# define LT_DLLAZY_OR_NOW RTLD_NOW
23611# else
23612# ifdef DL_NOW
23613# define LT_DLLAZY_OR_NOW DL_NOW
23614# else
23615# define LT_DLLAZY_OR_NOW 0
23616# endif
23617# endif
23618# endif
23619# endif
23620#endif
23621
23622#ifdef __cplusplus
23623extern "C" void exit (int);
23624#endif
23625
23626void fnord() { int i=42;}
23627int main ()
23628{
23629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23630 int status = $lt_dlunknown;
23631
23632 if (self)
23633 {
23634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23636 /* dlclose (self); */
23637 }
23638
23639 exit (status);
23640}
23641EOF
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23647 (./conftest; exit; ) 2>/dev/null
23648 lt_status=$?
23649 case x$lt_status in
23650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23652 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23653 esac
23654 else :
23655 # compilation failed
23656 lt_cv_dlopen_self_static=no
23657 fi
23658fi
23659rm -fr conftest*
23660
23661
23662fi
23663echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23664echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23665 fi
23666
23667 CPPFLAGS="$save_CPPFLAGS"
23668 LDFLAGS="$save_LDFLAGS"
23669 LIBS="$save_LIBS"
23670 ;;
23671 esac
23672
23673 case $lt_cv_dlopen_self in
23674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23675 *) enable_dlopen_self=unknown ;;
23676 esac
23677
23678 case $lt_cv_dlopen_self_static in
23679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23680 *) enable_dlopen_self_static=unknown ;;
23681 esac
23682fi
23683
23684
23685# The else clause should only fire when bootstrapping the
23686# libtool distribution, otherwise you forgot to ship ltmain.sh
23687# with your package, and you will get complaints that there are
23688# no rules to generate ltmain.sh.
23689if test -f "$ltmain"; then
23690 # See if we are running on zsh, and set the options which allow our commands through
23691 # without removal of \ escapes.
23692 if test -n "${ZSH_VERSION+set}" ; then
23693 setopt NO_GLOB_SUBST
23694 fi
23695 # Now quote all the things that may contain metacharacters while being
23696 # careful not to overquote the AC_SUBSTed values. We take copies of the
23697 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23699 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23702 deplibs_check_method reload_flag reload_cmds need_locks \
23703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23704 lt_cv_sys_global_symbol_to_c_name_address \
23705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23706 old_postinstall_cmds old_postuninstall_cmds \
23707 compiler_GCJ \
23708 CC_GCJ \
23709 LD_GCJ \
23710 lt_prog_compiler_wl_GCJ \
23711 lt_prog_compiler_pic_GCJ \
23712 lt_prog_compiler_static_GCJ \
23713 lt_prog_compiler_no_builtin_flag_GCJ \
23714 export_dynamic_flag_spec_GCJ \
23715 thread_safe_flag_spec_GCJ \
23716 whole_archive_flag_spec_GCJ \
23717 enable_shared_with_static_runtimes_GCJ \
23718 old_archive_cmds_GCJ \
23719 old_archive_from_new_cmds_GCJ \
23720 predep_objects_GCJ \
23721 postdep_objects_GCJ \
23722 predeps_GCJ \
23723 postdeps_GCJ \
23724 compiler_lib_search_path_GCJ \
23725 archive_cmds_GCJ \
23726 archive_expsym_cmds_GCJ \
23727 postinstall_cmds_GCJ \
23728 postuninstall_cmds_GCJ \
23729 old_archive_from_expsyms_cmds_GCJ \
23730 allow_undefined_flag_GCJ \
23731 no_undefined_flag_GCJ \
23732 export_symbols_cmds_GCJ \
23733 hardcode_libdir_flag_spec_GCJ \
23734 hardcode_libdir_flag_spec_ld_GCJ \
23735 hardcode_libdir_separator_GCJ \
23736 hardcode_automatic_GCJ \
23737 module_cmds_GCJ \
23738 module_expsym_cmds_GCJ \
23739 lt_cv_prog_compiler_c_o_GCJ \
23740 exclude_expsyms_GCJ \
23741 include_expsyms_GCJ; do
23742
23743 case $var in
23744 old_archive_cmds_GCJ | \
23745 old_archive_from_new_cmds_GCJ | \
23746 archive_cmds_GCJ | \
23747 archive_expsym_cmds_GCJ | \
23748 module_cmds_GCJ | \
23749 module_expsym_cmds_GCJ | \
23750 old_archive_from_expsyms_cmds_GCJ | \
23751 export_symbols_cmds_GCJ | \
23752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23753 postinstall_cmds | postuninstall_cmds | \
23754 old_postinstall_cmds | old_postuninstall_cmds | \
23755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23756 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023757 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 +000023758 ;;
23759 *)
23760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23761 ;;
23762 esac
23763 done
23764
23765 case $lt_echo in
23766 *'\$0 --fallback-echo"')
23767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23768 ;;
23769 esac
23770
23771cfgfile="$ofile"
23772
23773 cat <<__EOF__ >> "$cfgfile"
23774# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23775
23776# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23777
23778# Shell to use when invoking shell scripts.
23779SHELL=$lt_SHELL
23780
23781# Whether or not to build shared libraries.
23782build_libtool_libs=$enable_shared
23783
23784# Whether or not to build static libraries.
23785build_old_libs=$enable_static
23786
23787# Whether or not to add -lc for building shared libraries.
23788build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23789
23790# Whether or not to disallow shared libs when runtime libs are static
23791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23792
23793# Whether or not to optimize for fast installation.
23794fast_install=$enable_fast_install
23795
23796# The host system.
23797host_alias=$host_alias
23798host=$host
23799
23800# An echo program that does not interpret backslashes.
23801echo=$lt_echo
23802
23803# The archiver.
23804AR=$lt_AR
23805AR_FLAGS=$lt_AR_FLAGS
23806
23807# A C compiler.
23808LTCC=$lt_LTCC
23809
23810# A language-specific compiler.
23811CC=$lt_compiler_GCJ
23812
23813# Is the compiler the GNU C compiler?
23814with_gcc=$GCC_GCJ
23815
23816# An ERE matcher.
23817EGREP=$lt_EGREP
23818
23819# The linker used to build libraries.
23820LD=$lt_LD_GCJ
23821
23822# Whether we need hard or soft links.
23823LN_S=$lt_LN_S
23824
23825# A BSD-compatible nm program.
23826NM=$lt_NM
23827
23828# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023829STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023830
23831# Used to examine libraries when file_magic_cmd begins "file"
23832MAGIC_CMD=$MAGIC_CMD
23833
23834# Used on cygwin: DLL creation program.
23835DLLTOOL="$DLLTOOL"
23836
23837# Used on cygwin: object dumper.
23838OBJDUMP="$OBJDUMP"
23839
23840# Used on cygwin: assembler.
23841AS="$AS"
23842
23843# The name of the directory that contains temporary libtool files.
23844objdir=$objdir
23845
23846# How to create reloadable object files.
23847reload_flag=$lt_reload_flag
23848reload_cmds=$lt_reload_cmds
23849
23850# How to pass a linker flag through the compiler.
23851wl=$lt_lt_prog_compiler_wl_GCJ
23852
23853# Object file suffix (normally "o").
23854objext="$ac_objext"
23855
23856# Old archive suffix (normally "a").
23857libext="$libext"
23858
23859# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023860shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023861
23862# Executable file suffix (normally "").
23863exeext="$exeext"
23864
23865# Additional compiler flags for building library objects.
23866pic_flag=$lt_lt_prog_compiler_pic_GCJ
23867pic_mode=$pic_mode
23868
23869# What is the maximum length of a command?
23870max_cmd_len=$lt_cv_sys_max_cmd_len
23871
23872# Does compiler simultaneously support -c and -o options?
23873compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23874
23875# Must we lock files when doing compilation ?
23876need_locks=$lt_need_locks
23877
23878# Do we need the lib prefix for modules?
23879need_lib_prefix=$need_lib_prefix
23880
23881# Do we need a version for libraries?
23882need_version=$need_version
23883
23884# Whether dlopen is supported.
23885dlopen_support=$enable_dlopen
23886
23887# Whether dlopen of programs is supported.
23888dlopen_self=$enable_dlopen_self
23889
23890# Whether dlopen of statically linked programs is supported.
23891dlopen_self_static=$enable_dlopen_self_static
23892
23893# Compiler flag to prevent dynamic linking.
23894link_static_flag=$lt_lt_prog_compiler_static_GCJ
23895
23896# Compiler flag to turn off builtin functions.
23897no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23898
23899# Compiler flag to allow reflexive dlopens.
23900export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23901
23902# Compiler flag to generate shared objects directly from archives.
23903whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23904
23905# Compiler flag to generate thread-safe objects.
23906thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23907
23908# Library versioning type.
23909version_type=$version_type
23910
23911# Format of library name prefix.
23912libname_spec=$lt_libname_spec
23913
23914# List of archive names. First name is the real one, the rest are links.
23915# The last name is the one that the linker finds with -lNAME.
23916library_names_spec=$lt_library_names_spec
23917
23918# The coded name of the library, if different from the real name.
23919soname_spec=$lt_soname_spec
23920
23921# Commands used to build and install an old-style archive.
23922RANLIB=$lt_RANLIB
23923old_archive_cmds=$lt_old_archive_cmds_GCJ
23924old_postinstall_cmds=$lt_old_postinstall_cmds
23925old_postuninstall_cmds=$lt_old_postuninstall_cmds
23926
23927# Create an old-style archive from a shared archive.
23928old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23929
23930# Create a temporary old-style archive to link instead of a shared archive.
23931old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23932
23933# Commands used to build and install a shared archive.
23934archive_cmds=$lt_archive_cmds_GCJ
23935archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23936postinstall_cmds=$lt_postinstall_cmds
23937postuninstall_cmds=$lt_postuninstall_cmds
23938
23939# Commands used to build a loadable module (assumed same as above if empty)
23940module_cmds=$lt_module_cmds_GCJ
23941module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23942
23943# Commands to strip libraries.
23944old_striplib=$lt_old_striplib
23945striplib=$lt_striplib
23946
23947# Dependencies to place before the objects being linked to create a
23948# shared library.
23949predep_objects=$lt_predep_objects_GCJ
23950
23951# Dependencies to place after the objects being linked to create a
23952# shared library.
23953postdep_objects=$lt_postdep_objects_GCJ
23954
23955# Dependencies to place before the objects being linked to create a
23956# shared library.
23957predeps=$lt_predeps_GCJ
23958
23959# Dependencies to place after the objects being linked to create a
23960# shared library.
23961postdeps=$lt_postdeps_GCJ
23962
23963# The library search path used internally by the compiler when linking
23964# a shared library.
23965compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23966
23967# Method to check whether dependent libraries are shared objects.
23968deplibs_check_method=$lt_deplibs_check_method
23969
23970# Command to use when deplibs_check_method == file_magic.
23971file_magic_cmd=$lt_file_magic_cmd
23972
23973# Flag that allows shared libraries with undefined symbols to be built.
23974allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23975
23976# Flag that forces no undefined symbols.
23977no_undefined_flag=$lt_no_undefined_flag_GCJ
23978
23979# Commands used to finish a libtool library installation in a directory.
23980finish_cmds=$lt_finish_cmds
23981
23982# Same as above, but a single script fragment to be evaled but not shown.
23983finish_eval=$lt_finish_eval
23984
23985# Take the output of nm and produce a listing of raw symbols and C names.
23986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23987
23988# Transform the output of nm in a proper C declaration
23989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23990
23991# Transform the output of nm in a C name address pair
23992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23993
23994# This is the shared library runtime path variable.
23995runpath_var=$runpath_var
23996
23997# This is the shared library path variable.
23998shlibpath_var=$shlibpath_var
23999
24000# Is shlibpath searched before the hard-coded library search path?
24001shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24002
24003# How to hardcode a shared library path into an executable.
24004hardcode_action=$hardcode_action_GCJ
24005
24006# Whether we should hardcode library paths into libraries.
24007hardcode_into_libs=$hardcode_into_libs
24008
24009# Flag to hardcode \$libdir into a binary during linking.
24010# This must work even if \$libdir does not exist.
24011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24012
24013# If ld is used when linking, flag to hardcode \$libdir into
24014# a binary during linking. This must work even if \$libdir does
24015# not exist.
24016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24017
24018# Whether we need a single -rpath flag with a separated argument.
24019hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24020
24021# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24022# resulting binary.
24023hardcode_direct=$hardcode_direct_GCJ
24024
24025# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24026# resulting binary.
24027hardcode_minus_L=$hardcode_minus_L_GCJ
24028
24029# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24030# the resulting binary.
24031hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24032
24033# Set to yes if building a shared library automatically hardcodes DIR into the library
24034# and all subsequent libraries and executables linked against it.
24035hardcode_automatic=$hardcode_automatic_GCJ
24036
24037# Variables whose values should be saved in libtool wrapper scripts and
24038# restored at relink time.
24039variables_saved_for_relink="$variables_saved_for_relink"
24040
24041# Whether libtool must link a program against all its dependency libraries.
24042link_all_deplibs=$link_all_deplibs_GCJ
24043
24044# Compile-time system search path for libraries
24045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24046
24047# Run-time system search path for libraries
24048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24049
24050# Fix the shell variable \$srcfile for the compiler.
24051fix_srcfile_path="$fix_srcfile_path_GCJ"
24052
24053# Set to yes if exported symbols are required.
24054always_export_symbols=$always_export_symbols_GCJ
24055
24056# The commands to list exported symbols.
24057export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24058
24059# The commands to extract the exported symbol list from a shared archive.
24060extract_expsyms_cmds=$lt_extract_expsyms_cmds
24061
24062# Symbols that should not be listed in the preloaded symbols.
24063exclude_expsyms=$lt_exclude_expsyms_GCJ
24064
24065# Symbols that must always be exported.
24066include_expsyms=$lt_include_expsyms_GCJ
24067
24068# ### END LIBTOOL TAG CONFIG: $tagname
24069
24070__EOF__
24071
24072
24073else
24074 # If there is no Makefile yet, we rely on a make rule to execute
24075 # `config.status --recheck' to rerun these tests and create the
24076 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24078 if test -f "$ltmain_in"; then
24079 test -f Makefile && make "$ltmain"
24080 fi
John Criswell47fdd832003-07-14 16:52:07 +000024081fi
24082
24083
24084ac_ext=c
24085ac_cpp='$CPP $CPPFLAGS'
24086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24088ac_compiler_gnu=$ac_cv_c_compiler_gnu
24089
24090CC="$lt_save_CC"
24091
24092 else
24093 tagname=""
24094 fi
24095 ;;
24096
24097 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024098 ac_ext=c
24099ac_cpp='$CPP $CPPFLAGS'
24100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24102ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024103
24104
24105# Source file extension for RC test sources.
24106ac_ext=rc
24107
24108# Object file extension for compiled RC test sources.
24109objext=o
24110objext_RC=$objext
24111
24112# Code to be used in simple compile tests
24113lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24114
24115# Code to be used in simple link tests
24116lt_simple_link_test_code="$lt_simple_compile_test_code"
24117
24118# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24119
24120# If no C compiler was specified, use CC.
24121LTCC=${LTCC-"$CC"}
24122
24123# Allow CC to be a program name with arguments.
24124compiler=$CC
24125
24126
24127# Allow CC to be a program name with arguments.
24128lt_save_CC="$CC"
24129CC=${RC-"windres"}
24130compiler=$CC
24131compiler_RC=$CC
24132lt_cv_prog_compiler_c_o_RC=yes
24133
24134# The else clause should only fire when bootstrapping the
24135# libtool distribution, otherwise you forgot to ship ltmain.sh
24136# with your package, and you will get complaints that there are
24137# no rules to generate ltmain.sh.
24138if test -f "$ltmain"; then
24139 # See if we are running on zsh, and set the options which allow our commands through
24140 # without removal of \ escapes.
24141 if test -n "${ZSH_VERSION+set}" ; then
24142 setopt NO_GLOB_SUBST
24143 fi
24144 # Now quote all the things that may contain metacharacters while being
24145 # careful not to overquote the AC_SUBSTed values. We take copies of the
24146 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024147 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24148 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024149 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24150 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24151 deplibs_check_method reload_flag reload_cmds need_locks \
24152 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24153 lt_cv_sys_global_symbol_to_c_name_address \
24154 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24155 old_postinstall_cmds old_postuninstall_cmds \
24156 compiler_RC \
24157 CC_RC \
24158 LD_RC \
24159 lt_prog_compiler_wl_RC \
24160 lt_prog_compiler_pic_RC \
24161 lt_prog_compiler_static_RC \
24162 lt_prog_compiler_no_builtin_flag_RC \
24163 export_dynamic_flag_spec_RC \
24164 thread_safe_flag_spec_RC \
24165 whole_archive_flag_spec_RC \
24166 enable_shared_with_static_runtimes_RC \
24167 old_archive_cmds_RC \
24168 old_archive_from_new_cmds_RC \
24169 predep_objects_RC \
24170 postdep_objects_RC \
24171 predeps_RC \
24172 postdeps_RC \
24173 compiler_lib_search_path_RC \
24174 archive_cmds_RC \
24175 archive_expsym_cmds_RC \
24176 postinstall_cmds_RC \
24177 postuninstall_cmds_RC \
24178 old_archive_from_expsyms_cmds_RC \
24179 allow_undefined_flag_RC \
24180 no_undefined_flag_RC \
24181 export_symbols_cmds_RC \
24182 hardcode_libdir_flag_spec_RC \
24183 hardcode_libdir_flag_spec_ld_RC \
24184 hardcode_libdir_separator_RC \
24185 hardcode_automatic_RC \
24186 module_cmds_RC \
24187 module_expsym_cmds_RC \
24188 lt_cv_prog_compiler_c_o_RC \
24189 exclude_expsyms_RC \
24190 include_expsyms_RC; do
24191
24192 case $var in
24193 old_archive_cmds_RC | \
24194 old_archive_from_new_cmds_RC | \
24195 archive_cmds_RC | \
24196 archive_expsym_cmds_RC | \
24197 module_cmds_RC | \
24198 module_expsym_cmds_RC | \
24199 old_archive_from_expsyms_cmds_RC | \
24200 export_symbols_cmds_RC | \
24201 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24202 postinstall_cmds | postuninstall_cmds | \
24203 old_postinstall_cmds | old_postuninstall_cmds | \
24204 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24205 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024206 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 +000024207 ;;
24208 *)
24209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24210 ;;
24211 esac
24212 done
24213
24214 case $lt_echo in
24215 *'\$0 --fallback-echo"')
24216 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24217 ;;
24218 esac
24219
24220cfgfile="$ofile"
24221
24222 cat <<__EOF__ >> "$cfgfile"
24223# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24224
24225# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24226
24227# Shell to use when invoking shell scripts.
24228SHELL=$lt_SHELL
24229
24230# Whether or not to build shared libraries.
24231build_libtool_libs=$enable_shared
24232
24233# Whether or not to build static libraries.
24234build_old_libs=$enable_static
24235
24236# Whether or not to add -lc for building shared libraries.
24237build_libtool_need_lc=$archive_cmds_need_lc_RC
24238
24239# Whether or not to disallow shared libs when runtime libs are static
24240allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24241
24242# Whether or not to optimize for fast installation.
24243fast_install=$enable_fast_install
24244
24245# The host system.
24246host_alias=$host_alias
24247host=$host
24248
24249# An echo program that does not interpret backslashes.
24250echo=$lt_echo
24251
24252# The archiver.
24253AR=$lt_AR
24254AR_FLAGS=$lt_AR_FLAGS
24255
24256# A C compiler.
24257LTCC=$lt_LTCC
24258
24259# A language-specific compiler.
24260CC=$lt_compiler_RC
24261
24262# Is the compiler the GNU C compiler?
24263with_gcc=$GCC_RC
24264
24265# An ERE matcher.
24266EGREP=$lt_EGREP
24267
24268# The linker used to build libraries.
24269LD=$lt_LD_RC
24270
24271# Whether we need hard or soft links.
24272LN_S=$lt_LN_S
24273
24274# A BSD-compatible nm program.
24275NM=$lt_NM
24276
24277# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024278STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024279
24280# Used to examine libraries when file_magic_cmd begins "file"
24281MAGIC_CMD=$MAGIC_CMD
24282
24283# Used on cygwin: DLL creation program.
24284DLLTOOL="$DLLTOOL"
24285
24286# Used on cygwin: object dumper.
24287OBJDUMP="$OBJDUMP"
24288
24289# Used on cygwin: assembler.
24290AS="$AS"
24291
24292# The name of the directory that contains temporary libtool files.
24293objdir=$objdir
24294
24295# How to create reloadable object files.
24296reload_flag=$lt_reload_flag
24297reload_cmds=$lt_reload_cmds
24298
24299# How to pass a linker flag through the compiler.
24300wl=$lt_lt_prog_compiler_wl_RC
24301
24302# Object file suffix (normally "o").
24303objext="$ac_objext"
24304
24305# Old archive suffix (normally "a").
24306libext="$libext"
24307
24308# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024309shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024310
24311# Executable file suffix (normally "").
24312exeext="$exeext"
24313
24314# Additional compiler flags for building library objects.
24315pic_flag=$lt_lt_prog_compiler_pic_RC
24316pic_mode=$pic_mode
24317
24318# What is the maximum length of a command?
24319max_cmd_len=$lt_cv_sys_max_cmd_len
24320
24321# Does compiler simultaneously support -c and -o options?
24322compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24323
24324# Must we lock files when doing compilation ?
24325need_locks=$lt_need_locks
24326
24327# Do we need the lib prefix for modules?
24328need_lib_prefix=$need_lib_prefix
24329
24330# Do we need a version for libraries?
24331need_version=$need_version
24332
24333# Whether dlopen is supported.
24334dlopen_support=$enable_dlopen
24335
24336# Whether dlopen of programs is supported.
24337dlopen_self=$enable_dlopen_self
24338
24339# Whether dlopen of statically linked programs is supported.
24340dlopen_self_static=$enable_dlopen_self_static
24341
24342# Compiler flag to prevent dynamic linking.
24343link_static_flag=$lt_lt_prog_compiler_static_RC
24344
24345# Compiler flag to turn off builtin functions.
24346no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24347
24348# Compiler flag to allow reflexive dlopens.
24349export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24350
24351# Compiler flag to generate shared objects directly from archives.
24352whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24353
24354# Compiler flag to generate thread-safe objects.
24355thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24356
24357# Library versioning type.
24358version_type=$version_type
24359
24360# Format of library name prefix.
24361libname_spec=$lt_libname_spec
24362
24363# List of archive names. First name is the real one, the rest are links.
24364# The last name is the one that the linker finds with -lNAME.
24365library_names_spec=$lt_library_names_spec
24366
24367# The coded name of the library, if different from the real name.
24368soname_spec=$lt_soname_spec
24369
24370# Commands used to build and install an old-style archive.
24371RANLIB=$lt_RANLIB
24372old_archive_cmds=$lt_old_archive_cmds_RC
24373old_postinstall_cmds=$lt_old_postinstall_cmds
24374old_postuninstall_cmds=$lt_old_postuninstall_cmds
24375
24376# Create an old-style archive from a shared archive.
24377old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24378
24379# Create a temporary old-style archive to link instead of a shared archive.
24380old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24381
24382# Commands used to build and install a shared archive.
24383archive_cmds=$lt_archive_cmds_RC
24384archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24385postinstall_cmds=$lt_postinstall_cmds
24386postuninstall_cmds=$lt_postuninstall_cmds
24387
24388# Commands used to build a loadable module (assumed same as above if empty)
24389module_cmds=$lt_module_cmds_RC
24390module_expsym_cmds=$lt_module_expsym_cmds_RC
24391
24392# Commands to strip libraries.
24393old_striplib=$lt_old_striplib
24394striplib=$lt_striplib
24395
24396# Dependencies to place before the objects being linked to create a
24397# shared library.
24398predep_objects=$lt_predep_objects_RC
24399
24400# Dependencies to place after the objects being linked to create a
24401# shared library.
24402postdep_objects=$lt_postdep_objects_RC
24403
24404# Dependencies to place before the objects being linked to create a
24405# shared library.
24406predeps=$lt_predeps_RC
24407
24408# Dependencies to place after the objects being linked to create a
24409# shared library.
24410postdeps=$lt_postdeps_RC
24411
24412# The library search path used internally by the compiler when linking
24413# a shared library.
24414compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24415
24416# Method to check whether dependent libraries are shared objects.
24417deplibs_check_method=$lt_deplibs_check_method
24418
24419# Command to use when deplibs_check_method == file_magic.
24420file_magic_cmd=$lt_file_magic_cmd
24421
24422# Flag that allows shared libraries with undefined symbols to be built.
24423allow_undefined_flag=$lt_allow_undefined_flag_RC
24424
24425# Flag that forces no undefined symbols.
24426no_undefined_flag=$lt_no_undefined_flag_RC
24427
24428# Commands used to finish a libtool library installation in a directory.
24429finish_cmds=$lt_finish_cmds
24430
24431# Same as above, but a single script fragment to be evaled but not shown.
24432finish_eval=$lt_finish_eval
24433
24434# Take the output of nm and produce a listing of raw symbols and C names.
24435global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24436
24437# Transform the output of nm in a proper C declaration
24438global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24439
24440# Transform the output of nm in a C name address pair
24441global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24442
24443# This is the shared library runtime path variable.
24444runpath_var=$runpath_var
24445
24446# This is the shared library path variable.
24447shlibpath_var=$shlibpath_var
24448
24449# Is shlibpath searched before the hard-coded library search path?
24450shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24451
24452# How to hardcode a shared library path into an executable.
24453hardcode_action=$hardcode_action_RC
24454
24455# Whether we should hardcode library paths into libraries.
24456hardcode_into_libs=$hardcode_into_libs
24457
24458# Flag to hardcode \$libdir into a binary during linking.
24459# This must work even if \$libdir does not exist.
24460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24461
24462# If ld is used when linking, flag to hardcode \$libdir into
24463# a binary during linking. This must work even if \$libdir does
24464# not exist.
24465hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24466
24467# Whether we need a single -rpath flag with a separated argument.
24468hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24469
24470# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24471# resulting binary.
24472hardcode_direct=$hardcode_direct_RC
24473
24474# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24475# resulting binary.
24476hardcode_minus_L=$hardcode_minus_L_RC
24477
24478# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24479# the resulting binary.
24480hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24481
24482# Set to yes if building a shared library automatically hardcodes DIR into the library
24483# and all subsequent libraries and executables linked against it.
24484hardcode_automatic=$hardcode_automatic_RC
24485
24486# Variables whose values should be saved in libtool wrapper scripts and
24487# restored at relink time.
24488variables_saved_for_relink="$variables_saved_for_relink"
24489
24490# Whether libtool must link a program against all its dependency libraries.
24491link_all_deplibs=$link_all_deplibs_RC
24492
24493# Compile-time system search path for libraries
24494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24495
24496# Run-time system search path for libraries
24497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24498
24499# Fix the shell variable \$srcfile for the compiler.
24500fix_srcfile_path="$fix_srcfile_path_RC"
24501
24502# Set to yes if exported symbols are required.
24503always_export_symbols=$always_export_symbols_RC
24504
24505# The commands to list exported symbols.
24506export_symbols_cmds=$lt_export_symbols_cmds_RC
24507
24508# The commands to extract the exported symbol list from a shared archive.
24509extract_expsyms_cmds=$lt_extract_expsyms_cmds
24510
24511# Symbols that should not be listed in the preloaded symbols.
24512exclude_expsyms=$lt_exclude_expsyms_RC
24513
24514# Symbols that must always be exported.
24515include_expsyms=$lt_include_expsyms_RC
24516
24517# ### END LIBTOOL TAG CONFIG: $tagname
24518
24519__EOF__
24520
24521
24522else
24523 # If there is no Makefile yet, we rely on a make rule to execute
24524 # `config.status --recheck' to rerun these tests and create the
24525 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24527 if test -f "$ltmain_in"; then
24528 test -f Makefile && make "$ltmain"
24529 fi
John Criswell47fdd832003-07-14 16:52:07 +000024530fi
24531
24532
24533ac_ext=c
24534ac_cpp='$CPP $CPPFLAGS'
24535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24537ac_compiler_gnu=$ac_cv_c_compiler_gnu
24538
24539CC="$lt_save_CC"
24540
24541 ;;
24542
24543 *)
24544 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24545echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24546 { (exit 1); exit 1; }; }
24547 ;;
24548 esac
24549
24550 # Append the new tag name to the list of available tags.
24551 if test -n "$tagname" ; then
24552 available_tags="$available_tags $tagname"
24553 fi
24554 fi
24555 done
24556 IFS="$lt_save_ifs"
24557
24558 # Now substitute the updated list of available tags.
24559 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24560 mv "${ofile}T" "$ofile"
24561 chmod +x "$ofile"
24562 else
24563 rm -f "${ofile}T"
24564 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24565echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24566 { (exit 1); exit 1; }; }
24567 fi
24568fi
John Criswell7a73b802003-06-30 21:59:07 +000024569
24570
24571
24572# This can be used to rebuild libtool when needed
24573LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24574
24575# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024576LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024577
24578# Prevent multiple expansion
24579
24580
24581
John Criswell47fdd832003-07-14 16:52:07 +000024582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024599
Reid Spencer582a23c2004-12-29 07:07:57 +000024600if test "$lt_cv_dlopen_self" = "yes" ; then
24601
24602cat >>confdefs.h <<\_ACEOF
24603#define CAN_DLOPEN_SELF 1
24604_ACEOF
24605
24606fi
24607
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024608etags_version=`$ETAGS --version 2>&1`
24609case "$etags_version" in
24610 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24611 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24612 *) ETAGSFLAGS="" ;;
24613esac
24614ETAGSFLAGS=$ETAGSFLAGS
24615
24616
Reid Spencer7931a782004-12-27 06:15:02 +000024617if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024618 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24619set dummy llvm-gcc; ac_word=$2
24620echo "$as_me:$LINENO: checking for $ac_word" >&5
24621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24622if test "${ac_cv_path_LLVMGCC+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24624else
24625 case $LLVMGCC in
24626 [\\/]* | ?:[\\/]*)
24627 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24628 ;;
24629 *)
24630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631for as_dir in $PATH
24632do
24633 IFS=$as_save_IFS
24634 test -z "$as_dir" && as_dir=.
24635 for ac_exec_ext in '' $ac_executable_extensions; do
24636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24637 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24639 break 2
24640 fi
24641done
24642done
24643
24644 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24645 ;;
24646esac
24647fi
24648LLVMGCC=$ac_cv_path_LLVMGCC
24649
24650if test -n "$LLVMGCC"; then
24651 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24652echo "${ECHO_T}$LLVMGCC" >&6
24653else
24654 echo "$as_me:$LINENO: result: no" >&5
24655echo "${ECHO_T}no" >&6
24656fi
24657
24658 # Extract the first word of "llvm-g++", so it can be a program name with args.
24659set dummy llvm-g++; ac_word=$2
24660echo "$as_me:$LINENO: checking for $ac_word" >&5
24661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24662if test "${ac_cv_path_LLVMGXX+set}" = set; then
24663 echo $ECHO_N "(cached) $ECHO_C" >&6
24664else
24665 case $LLVMGXX in
24666 [\\/]* | ?:[\\/]*)
24667 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24668 ;;
24669 *)
24670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24671for as_dir in $PATH
24672do
24673 IFS=$as_save_IFS
24674 test -z "$as_dir" && as_dir=.
24675 for ac_exec_ext in '' $ac_executable_extensions; do
24676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24677 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24679 break 2
24680 fi
24681done
24682done
24683
24684 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24685 ;;
24686esac
24687fi
24688LLVMGXX=$ac_cv_path_LLVMGXX
24689
24690if test -n "$LLVMGXX"; then
24691 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24692echo "${ECHO_T}$LLVMGXX" >&6
24693else
24694 echo "$as_me:$LINENO: result: no" >&5
24695echo "${ECHO_T}no" >&6
24696fi
24697
24698else
24699 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24700 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24701 LLVMGCC=$LLVMGCC
24702
24703 LLVMGXX=$LLVMGXX
24704
24705fi
24706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024707echo "$as_me:$LINENO: checking tool compatibility" >&5
24708echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24709
Reid Spencer86901802004-12-08 23:07:27 +000024710ICC=no
24711IXX=no
24712case $CC in
24713 icc*|icpc*)
24714 ICC=yes
24715 IXX=yes
24716 ;;
24717 *)
24718 ;;
24719esac
24720
24721if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024722then
Reid Spencer86901802004-12-08 23:07:27 +000024723 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24724echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024725 { (exit 1); exit 1; }; }
24726fi
24727
Reid Spencer86901802004-12-08 23:07:27 +000024728if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024729then
Reid Spencer86901802004-12-08 23:07:27 +000024730 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24731echo "$as_me: error: g++|icc required but not found" >&2;}
24732 { (exit 1); exit 1; }; }
24733fi
24734
24735if test "$GCC" = "yes"
24736then
24737 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24738 if test "$gccmajor" -lt "3"
24739 then
24740 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024741echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24742 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024743 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024744fi
24745
24746if test -z "$llvm_cv_gnu_make_command"
24747then
24748 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24749echo "$as_me: error: GNU Make required but not found" >&2;}
24750 { (exit 1); exit 1; }; }
24751fi
24752
24753echo "$as_me:$LINENO: result: ok" >&5
24754echo "${ECHO_T}ok" >&6
24755
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024756
John Criswell7a73b802003-06-30 21:59:07 +000024757
John Criswell7a73b802003-06-30 21:59:07 +000024758echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24759echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24760if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24762else
24763 ac_check_lib_save_LIBS=$LIBS
24764LIBS="-lelf $LIBS"
24765cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024766/* confdefs.h. */
24767_ACEOF
24768cat confdefs.h >>conftest.$ac_ext
24769cat >>conftest.$ac_ext <<_ACEOF
24770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024771
24772/* Override any gcc2 internal prototype to avoid an error. */
24773#ifdef __cplusplus
24774extern "C"
24775#endif
24776/* We use char because int might match the return type of a gcc2
24777 builtin and then its argument prototype would still apply. */
24778char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024779int
24780main ()
24781{
24782elf_begin ();
24783 ;
24784 return 0;
24785}
24786_ACEOF
24787rm -f conftest.$ac_objext conftest$ac_exeext
24788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024789 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024791 grep -v '^ *+' conftest.er1 >conftest.err
24792 rm -f conftest.er1
24793 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024796 { ac_try='test -z "$ac_c_werror_flag"
24797 || test ! -s conftest.err'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24800 ac_status=$?
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; } &&
24803 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 ac_cv_lib_elf_elf_begin=yes
24810else
24811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024812sed 's/^/| /' conftest.$ac_ext >&5
24813
John Criswell7a73b802003-06-30 21:59:07 +000024814ac_cv_lib_elf_elf_begin=no
24815fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024816rm -f conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024818LIBS=$ac_check_lib_save_LIBS
24819fi
24820echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24821echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24822if test $ac_cv_lib_elf_elf_begin = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824#define HAVE_LIBELF 1
24825_ACEOF
24826
24827 LIBS="-lelf $LIBS"
24828
24829fi
24830
24831
Reid Spencer17795972004-11-18 09:47:37 +000024832echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24833echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24834if test "${ac_cv_search_lt_dlopen+set}" = set; then
24835 echo $ECHO_N "(cached) $ECHO_C" >&6
24836else
24837 ac_func_search_save_LIBS=$LIBS
24838ac_cv_search_lt_dlopen=no
24839cat >conftest.$ac_ext <<_ACEOF
24840/* confdefs.h. */
24841_ACEOF
24842cat confdefs.h >>conftest.$ac_ext
24843cat >>conftest.$ac_ext <<_ACEOF
24844/* end confdefs.h. */
24845
24846/* Override any gcc2 internal prototype to avoid an error. */
24847#ifdef __cplusplus
24848extern "C"
24849#endif
24850/* We use char because int might match the return type of a gcc2
24851 builtin and then its argument prototype would still apply. */
24852char lt_dlopen ();
24853int
24854main ()
24855{
24856lt_dlopen ();
24857 ;
24858 return 0;
24859}
24860_ACEOF
24861rm -f conftest.$ac_objext conftest$ac_exeext
24862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863 (eval $ac_link) 2>conftest.er1
24864 ac_status=$?
24865 grep -v '^ *+' conftest.er1 >conftest.err
24866 rm -f conftest.er1
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
24870 { ac_try='test -z "$ac_c_werror_flag"
24871 || test ! -s conftest.err'
24872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try='test -s conftest$ac_exeext'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
24883 ac_cv_search_lt_dlopen="none required"
24884else
24885 echo "$as_me: failed program was:" >&5
24886sed 's/^/| /' conftest.$ac_ext >&5
24887
24888fi
24889rm -f conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
24891if test "$ac_cv_search_lt_dlopen" = no; then
24892 for ac_lib in ltdl; do
24893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24894 cat >conftest.$ac_ext <<_ACEOF
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900
24901/* Override any gcc2 internal prototype to avoid an error. */
24902#ifdef __cplusplus
24903extern "C"
24904#endif
24905/* We use char because int might match the return type of a gcc2
24906 builtin and then its argument prototype would still apply. */
24907char lt_dlopen ();
24908int
24909main ()
24910{
24911lt_dlopen ();
24912 ;
24913 return 0;
24914}
24915_ACEOF
24916rm -f conftest.$ac_objext conftest$ac_exeext
24917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24918 (eval $ac_link) 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24929 ac_status=$?
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_search_lt_dlopen="-l$ac_lib"
24939break
24940else
24941 echo "$as_me: failed program was:" >&5
24942sed 's/^/| /' conftest.$ac_ext >&5
24943
24944fi
24945rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
24947 done
24948fi
24949LIBS=$ac_func_search_save_LIBS
24950fi
24951echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24952echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24953if test "$ac_cv_search_lt_dlopen" != no; then
24954 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24955
24956cat >>confdefs.h <<\_ACEOF
24957#define HAVE_LT_DLOPEN 1
24958_ACEOF
24959
24960else
24961 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24962 not be available" >&5
24963echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24964 not be available" >&2;}
24965fi
24966
24967
John Criswell7a73b802003-06-30 21:59:07 +000024968echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24969echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24970if test "${ac_cv_search_dlopen+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972else
24973 ac_func_search_save_LIBS=$LIBS
24974ac_cv_search_dlopen=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 dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024989int
24990main ()
24991{
24992dlopen ();
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_dlopen="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_dlopen" = no; then
25028 for ac_lib in dl; 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 dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025044int
25045main ()
25046{
25047dlopen ();
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_dlopen="-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_dlopen" >&5
25088echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25089if test "$ac_cv_search_dlopen" != no; then
25090 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025091
25092cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025093#define HAVE_DLOPEN 1
25094_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025095
25096else
Brian Gaekec45be042003-10-07 06:01:34 +000025097 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25098echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025099fi
25100
25101
25102echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25103echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25104if test "${ac_cv_search_mallinfo+set}" = set; then
25105 echo $ECHO_N "(cached) $ECHO_C" >&6
25106else
25107 ac_func_search_save_LIBS=$LIBS
25108ac_cv_search_mallinfo=no
25109cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025110/* confdefs.h. */
25111_ACEOF
25112cat confdefs.h >>conftest.$ac_ext
25113cat >>conftest.$ac_ext <<_ACEOF
25114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025115
25116/* Override any gcc2 internal prototype to avoid an error. */
25117#ifdef __cplusplus
25118extern "C"
25119#endif
25120/* We use char because int might match the return type of a gcc2
25121 builtin and then its argument prototype would still apply. */
25122char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025123int
25124main ()
25125{
25126mallinfo ();
25127 ;
25128 return 0;
25129}
25130_ACEOF
25131rm -f conftest.$ac_objext conftest$ac_exeext
25132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025133 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025135 grep -v '^ *+' conftest.er1 >conftest.err
25136 rm -f conftest.er1
25137 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025140 { ac_try='test -z "$ac_c_werror_flag"
25141 || test ! -s conftest.err'
25142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; } &&
25147 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25150 ac_status=$?
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_cv_search_mallinfo="none required"
25154else
25155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025156sed 's/^/| /' conftest.$ac_ext >&5
25157
John Criswell7a73b802003-06-30 21:59:07 +000025158fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025159rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025161if test "$ac_cv_search_mallinfo" = no; then
25162 for ac_lib in malloc; do
25163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025165/* confdefs.h. */
25166_ACEOF
25167cat confdefs.h >>conftest.$ac_ext
25168cat >>conftest.$ac_ext <<_ACEOF
25169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025170
25171/* Override any gcc2 internal prototype to avoid an error. */
25172#ifdef __cplusplus
25173extern "C"
25174#endif
25175/* We use char because int might match the return type of a gcc2
25176 builtin and then its argument prototype would still apply. */
25177char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025178int
25179main ()
25180{
25181mallinfo ();
25182 ;
25183 return 0;
25184}
25185_ACEOF
25186rm -f conftest.$ac_objext conftest$ac_exeext
25187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025188 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025190 grep -v '^ *+' conftest.er1 >conftest.err
25191 rm -f conftest.er1
25192 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025195 { ac_try='test -z "$ac_c_werror_flag"
25196 || test ! -s conftest.err'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_search_mallinfo="-l$ac_lib"
25209break
25210else
25211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025212sed 's/^/| /' conftest.$ac_ext >&5
25213
John Criswell7a73b802003-06-30 21:59:07 +000025214fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025215rm -f conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025217 done
25218fi
25219LIBS=$ac_func_search_save_LIBS
25220fi
25221echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25222echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25223if test "$ac_cv_search_mallinfo" != no; then
25224 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025225
25226cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025227#define HAVE_MALLINFO 1
25228_ACEOF
25229
25230fi
25231
25232
Brian Gaeke5f268f72003-12-05 19:29:01 +000025233echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25234echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25235if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25237else
25238 ac_func_search_save_LIBS=$LIBS
25239ac_cv_search_pthread_mutex_lock=no
25240cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025241/* confdefs.h. */
25242_ACEOF
25243cat confdefs.h >>conftest.$ac_ext
25244cat >>conftest.$ac_ext <<_ACEOF
25245/* end confdefs.h. */
25246
25247/* Override any gcc2 internal prototype to avoid an error. */
25248#ifdef __cplusplus
25249extern "C"
25250#endif
25251/* We use char because int might match the return type of a gcc2
25252 builtin and then its argument prototype would still apply. */
25253char pthread_mutex_lock ();
25254int
25255main ()
25256{
25257pthread_mutex_lock ();
25258 ;
25259 return 0;
25260}
25261_ACEOF
25262rm -f conftest.$ac_objext conftest$ac_exeext
25263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025264 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025265 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025266 grep -v '^ *+' conftest.er1 >conftest.err
25267 rm -f conftest.er1
25268 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 { ac_try='test -z "$ac_c_werror_flag"
25272 || test ! -s conftest.err'
25273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25274 (eval $ac_try) 2>&5
25275 ac_status=$?
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); }; } &&
25278 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25284 ac_cv_search_pthread_mutex_lock="none required"
25285else
25286 echo "$as_me: failed program was:" >&5
25287sed 's/^/| /' conftest.$ac_ext >&5
25288
25289fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025290rm -f conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025292if test "$ac_cv_search_pthread_mutex_lock" = no; then
25293 for ac_lib in pthread; do
25294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25295 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025296/* confdefs.h. */
25297_ACEOF
25298cat confdefs.h >>conftest.$ac_ext
25299cat >>conftest.$ac_ext <<_ACEOF
25300/* end confdefs.h. */
25301
25302/* Override any gcc2 internal prototype to avoid an error. */
25303#ifdef __cplusplus
25304extern "C"
25305#endif
25306/* We use char because int might match the return type of a gcc2
25307 builtin and then its argument prototype would still apply. */
25308char pthread_mutex_lock ();
25309int
25310main ()
25311{
25312pthread_mutex_lock ();
25313 ;
25314 return 0;
25315}
25316_ACEOF
25317rm -f conftest.$ac_objext conftest$ac_exeext
25318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025319 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025321 grep -v '^ *+' conftest.er1 >conftest.err
25322 rm -f conftest.er1
25323 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025326 { ac_try='test -z "$ac_c_werror_flag"
25327 || test ! -s conftest.err'
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; } &&
25333 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; }; then
25339 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25340break
25341else
25342 echo "$as_me: failed program was:" >&5
25343sed 's/^/| /' conftest.$ac_ext >&5
25344
25345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025346rm -f conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025348 done
25349fi
25350LIBS=$ac_func_search_save_LIBS
25351fi
25352echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25353echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25354if test "$ac_cv_search_pthread_mutex_lock" != no; then
25355 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025356
John Criswell40468462004-09-24 21:19:06 +000025357cat >>confdefs.h <<\_ACEOF
25358#define HAVE_PTHREAD_MUTEX_LOCK 1
25359_ACEOF
25360
25361fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025362
Brian Gaekec9a410c2004-02-23 21:30:37 +000025363
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025364
Reid Spencer59473af2004-12-25 07:31:29 +000025365
25366
25367
25368
25369
25370ac_header_dirent=no
25371for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25372 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25373echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25374echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25375if eval "test \"\${$as_ac_Header+set}\" = set"; then
25376 echo $ECHO_N "(cached) $ECHO_C" >&6
25377else
25378 cat >conftest.$ac_ext <<_ACEOF
25379/* confdefs.h. */
25380_ACEOF
25381cat confdefs.h >>conftest.$ac_ext
25382cat >>conftest.$ac_ext <<_ACEOF
25383/* end confdefs.h. */
25384#include <sys/types.h>
25385#include <$ac_hdr>
25386
25387int
25388main ()
25389{
25390if ((DIR *) 0)
25391return 0;
25392 ;
25393 return 0;
25394}
25395_ACEOF
25396rm -f conftest.$ac_objext
25397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25398 (eval $ac_compile) 2>conftest.er1
25399 ac_status=$?
25400 grep -v '^ *+' conftest.er1 >conftest.err
25401 rm -f conftest.er1
25402 cat conftest.err >&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
25405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest.$ac_objext'
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 eval "$as_ac_Header=yes"
25419else
25420 echo "$as_me: failed program was:" >&5
25421sed 's/^/| /' conftest.$ac_ext >&5
25422
25423eval "$as_ac_Header=no"
25424fi
25425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25426fi
25427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25429if test `eval echo '${'$as_ac_Header'}'` = yes; then
25430 cat >>confdefs.h <<_ACEOF
25431#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25432_ACEOF
25433
25434ac_header_dirent=$ac_hdr; break
25435fi
25436
25437done
25438# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25439if test $ac_header_dirent = dirent.h; then
25440 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25441echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25442if test "${ac_cv_search_opendir+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25444else
25445 ac_func_search_save_LIBS=$LIBS
25446ac_cv_search_opendir=no
25447cat >conftest.$ac_ext <<_ACEOF
25448/* confdefs.h. */
25449_ACEOF
25450cat confdefs.h >>conftest.$ac_ext
25451cat >>conftest.$ac_ext <<_ACEOF
25452/* end confdefs.h. */
25453
25454/* Override any gcc2 internal prototype to avoid an error. */
25455#ifdef __cplusplus
25456extern "C"
25457#endif
25458/* We use char because int might match the return type of a gcc2
25459 builtin and then its argument prototype would still apply. */
25460char opendir ();
25461int
25462main ()
25463{
25464opendir ();
25465 ;
25466 return 0;
25467}
25468_ACEOF
25469rm -f conftest.$ac_objext conftest$ac_exeext
25470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25471 (eval $ac_link) 2>conftest.er1
25472 ac_status=$?
25473 grep -v '^ *+' conftest.er1 >conftest.err
25474 rm -f conftest.er1
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -z "$ac_c_werror_flag"
25479 || test ! -s conftest.err'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest$ac_exeext'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_search_opendir="none required"
25492else
25493 echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496fi
25497rm -f conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25499if test "$ac_cv_search_opendir" = no; then
25500 for ac_lib in dir; do
25501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25502 cat >conftest.$ac_ext <<_ACEOF
25503/* confdefs.h. */
25504_ACEOF
25505cat confdefs.h >>conftest.$ac_ext
25506cat >>conftest.$ac_ext <<_ACEOF
25507/* end confdefs.h. */
25508
25509/* Override any gcc2 internal prototype to avoid an error. */
25510#ifdef __cplusplus
25511extern "C"
25512#endif
25513/* We use char because int might match the return type of a gcc2
25514 builtin and then its argument prototype would still apply. */
25515char opendir ();
25516int
25517main ()
25518{
25519opendir ();
25520 ;
25521 return 0;
25522}
25523_ACEOF
25524rm -f conftest.$ac_objext conftest$ac_exeext
25525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>conftest.er1
25527 ac_status=$?
25528 grep -v '^ *+' conftest.er1 >conftest.err
25529 rm -f conftest.er1
25530 cat conftest.err >&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -z "$ac_c_werror_flag"
25534 || test ! -s conftest.err'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_search_opendir="-l$ac_lib"
25547break
25548else
25549 echo "$as_me: failed program was:" >&5
25550sed 's/^/| /' conftest.$ac_ext >&5
25551
25552fi
25553rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
25555 done
25556fi
25557LIBS=$ac_func_search_save_LIBS
25558fi
25559echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25560echo "${ECHO_T}$ac_cv_search_opendir" >&6
25561if test "$ac_cv_search_opendir" != no; then
25562 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25563
25564fi
25565
25566else
25567 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25568echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25569if test "${ac_cv_search_opendir+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25571else
25572 ac_func_search_save_LIBS=$LIBS
25573ac_cv_search_opendir=no
25574cat >conftest.$ac_ext <<_ACEOF
25575/* confdefs.h. */
25576_ACEOF
25577cat confdefs.h >>conftest.$ac_ext
25578cat >>conftest.$ac_ext <<_ACEOF
25579/* end confdefs.h. */
25580
25581/* Override any gcc2 internal prototype to avoid an error. */
25582#ifdef __cplusplus
25583extern "C"
25584#endif
25585/* We use char because int might match the return type of a gcc2
25586 builtin and then its argument prototype would still apply. */
25587char opendir ();
25588int
25589main ()
25590{
25591opendir ();
25592 ;
25593 return 0;
25594}
25595_ACEOF
25596rm -f conftest.$ac_objext conftest$ac_exeext
25597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25598 (eval $ac_link) 2>conftest.er1
25599 ac_status=$?
25600 grep -v '^ *+' conftest.er1 >conftest.err
25601 rm -f conftest.er1
25602 cat conftest.err >&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } &&
25605 { ac_try='test -z "$ac_c_werror_flag"
25606 || test ! -s conftest.err'
25607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; } &&
25612 { ac_try='test -s conftest$ac_exeext'
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; }; then
25618 ac_cv_search_opendir="none required"
25619else
25620 echo "$as_me: failed program was:" >&5
25621sed 's/^/| /' conftest.$ac_ext >&5
25622
25623fi
25624rm -f conftest.err conftest.$ac_objext \
25625 conftest$ac_exeext conftest.$ac_ext
25626if test "$ac_cv_search_opendir" = no; then
25627 for ac_lib in x; do
25628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25629 cat >conftest.$ac_ext <<_ACEOF
25630/* confdefs.h. */
25631_ACEOF
25632cat confdefs.h >>conftest.$ac_ext
25633cat >>conftest.$ac_ext <<_ACEOF
25634/* end confdefs.h. */
25635
25636/* Override any gcc2 internal prototype to avoid an error. */
25637#ifdef __cplusplus
25638extern "C"
25639#endif
25640/* We use char because int might match the return type of a gcc2
25641 builtin and then its argument prototype would still apply. */
25642char opendir ();
25643int
25644main ()
25645{
25646opendir ();
25647 ;
25648 return 0;
25649}
25650_ACEOF
25651rm -f conftest.$ac_objext conftest$ac_exeext
25652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653 (eval $ac_link) 2>conftest.er1
25654 ac_status=$?
25655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } &&
25660 { ac_try='test -z "$ac_c_werror_flag"
25661 || test ! -s conftest.err'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest$ac_exeext'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; }; then
25673 ac_cv_search_opendir="-l$ac_lib"
25674break
25675else
25676 echo "$as_me: failed program was:" >&5
25677sed 's/^/| /' conftest.$ac_ext >&5
25678
25679fi
25680rm -f conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext conftest.$ac_ext
25682 done
25683fi
25684LIBS=$ac_func_search_save_LIBS
25685fi
25686echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25687echo "${ECHO_T}$ac_cv_search_opendir" >&6
25688if test "$ac_cv_search_opendir" != no; then
25689 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25690
25691fi
25692
25693fi
25694
25695echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25696echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25697if test "${ac_cv_header_mmap_anon+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25699else
25700 ac_ext=c
25701ac_cpp='$CPP $CPPFLAGS'
25702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25704ac_compiler_gnu=$ac_cv_c_compiler_gnu
25705
25706 cat >conftest.$ac_ext <<_ACEOF
25707/* confdefs.h. */
25708_ACEOF
25709cat confdefs.h >>conftest.$ac_ext
25710cat >>conftest.$ac_ext <<_ACEOF
25711/* end confdefs.h. */
25712#include <sys/mman.h>
25713#include <unistd.h>
25714#include <fcntl.h>
25715int
25716main ()
25717{
25718mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723rm -f conftest.$ac_objext
25724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725 (eval $ac_compile) 2>conftest.er1
25726 ac_status=$?
25727 grep -v '^ *+' conftest.er1 >conftest.err
25728 rm -f conftest.er1
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
25732 { ac_try='test -z "$ac_c_werror_flag"
25733 || test ! -s conftest.err'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_header_mmap_anon=yes
25746else
25747 echo "$as_me: failed program was:" >&5
25748sed 's/^/| /' conftest.$ac_ext >&5
25749
25750ac_cv_header_mmap_anon=no
25751fi
25752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25753 ac_ext=c
25754ac_cpp='$CPP $CPPFLAGS'
25755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757ac_compiler_gnu=$ac_cv_c_compiler_gnu
25758
25759
25760fi
25761echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25762echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25763if test "$ac_cv_header_mmap_anon" = yes; then
25764
25765cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025766#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025767_ACEOF
25768
25769fi
25770
25771echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25772echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25773if test "${ac_cv_header_stat_broken+set}" = set; then
25774 echo $ECHO_N "(cached) $ECHO_C" >&6
25775else
25776 cat >conftest.$ac_ext <<_ACEOF
25777/* confdefs.h. */
25778_ACEOF
25779cat confdefs.h >>conftest.$ac_ext
25780cat >>conftest.$ac_ext <<_ACEOF
25781/* end confdefs.h. */
25782#include <sys/types.h>
25783#include <sys/stat.h>
25784
25785#if defined(S_ISBLK) && defined(S_IFDIR)
25786# if S_ISBLK (S_IFDIR)
25787You lose.
25788# endif
25789#endif
25790
25791#if defined(S_ISBLK) && defined(S_IFCHR)
25792# if S_ISBLK (S_IFCHR)
25793You lose.
25794# endif
25795#endif
25796
25797#if defined(S_ISLNK) && defined(S_IFREG)
25798# if S_ISLNK (S_IFREG)
25799You lose.
25800# endif
25801#endif
25802
25803#if defined(S_ISSOCK) && defined(S_IFREG)
25804# if S_ISSOCK (S_IFREG)
25805You lose.
25806# endif
25807#endif
25808
25809_ACEOF
25810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25811 $EGREP "You lose" >/dev/null 2>&1; then
25812 ac_cv_header_stat_broken=yes
25813else
25814 ac_cv_header_stat_broken=no
25815fi
25816rm -f conftest*
25817
25818fi
25819echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25820echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25821if test $ac_cv_header_stat_broken = yes; then
25822
25823cat >>confdefs.h <<\_ACEOF
25824#define STAT_MACROS_BROKEN 1
25825_ACEOF
25826
25827fi
25828
John Criswell7a73b802003-06-30 21:59:07 +000025829echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25830echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25831if test "${ac_cv_header_stdc+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25833else
25834 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025835/* confdefs.h. */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025840#include <stdlib.h>
25841#include <stdarg.h>
25842#include <string.h>
25843#include <float.h>
25844
John Criswell0c38eaf2003-09-10 15:17:25 +000025845int
25846main ()
25847{
25848
25849 ;
25850 return 0;
25851}
John Criswell7a73b802003-06-30 21:59:07 +000025852_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025853rm -f conftest.$ac_objext
25854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025855 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025856 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025857 grep -v '^ *+' conftest.er1 >conftest.err
25858 rm -f conftest.er1
25859 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025861 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025862 { ac_try='test -z "$ac_c_werror_flag"
25863 || test ! -s conftest.err'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; } &&
25869 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025875 ac_cv_header_stdc=yes
25876else
25877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025878sed 's/^/| /' conftest.$ac_ext >&5
25879
25880ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025881fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025883
25884if test $ac_cv_header_stdc = yes; then
25885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025887/* confdefs.h. */
25888_ACEOF
25889cat confdefs.h >>conftest.$ac_ext
25890cat >>conftest.$ac_ext <<_ACEOF
25891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025892#include <string.h>
25893
25894_ACEOF
25895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025896 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025897 :
25898else
25899 ac_cv_header_stdc=no
25900fi
25901rm -f conftest*
25902
25903fi
25904
25905if test $ac_cv_header_stdc = yes; then
25906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025913#include <stdlib.h>
25914
25915_ACEOF
25916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025917 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025918 :
25919else
25920 ac_cv_header_stdc=no
25921fi
25922rm -f conftest*
25923
25924fi
25925
25926if test $ac_cv_header_stdc = yes; then
25927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25928 if test "$cross_compiling" = yes; then
25929 :
25930else
25931 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025932/* confdefs.h. */
25933_ACEOF
25934cat confdefs.h >>conftest.$ac_ext
25935cat >>conftest.$ac_ext <<_ACEOF
25936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025937#include <ctype.h>
25938#if ((' ' & 0x0FF) == 0x020)
25939# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25940# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25941#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025942# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025943 (('a' <= (c) && (c) <= 'i') \
25944 || ('j' <= (c) && (c) <= 'r') \
25945 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025946# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25947#endif
25948
25949#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25950int
25951main ()
25952{
25953 int i;
25954 for (i = 0; i < 256; i++)
25955 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025956 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025957 exit(2);
25958 exit (0);
25959}
25960_ACEOF
25961rm -f conftest$ac_exeext
25962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25963 (eval $ac_link) 2>&5
25964 ac_status=$?
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 :
25973else
25974 echo "$as_me: program exited with status $ac_status" >&5
25975echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025976sed 's/^/| /' conftest.$ac_ext >&5
25977
John Criswell7a73b802003-06-30 21:59:07 +000025978( exit $ac_status )
25979ac_cv_header_stdc=no
25980fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025982fi
25983fi
25984fi
25985echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25986echo "${ECHO_T}$ac_cv_header_stdc" >&6
25987if test $ac_cv_header_stdc = yes; then
25988
25989cat >>confdefs.h <<\_ACEOF
25990#define STDC_HEADERS 1
25991_ACEOF
25992
25993fi
25994
25995echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25996echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25997if test "${ac_cv_header_sys_wait_h+set}" = set; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026001/* confdefs.h. */
26002_ACEOF
26003cat confdefs.h >>conftest.$ac_ext
26004cat >>conftest.$ac_ext <<_ACEOF
26005/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026006#include <sys/types.h>
26007#include <sys/wait.h>
26008#ifndef WEXITSTATUS
26009# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26010#endif
26011#ifndef WIFEXITED
26012# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26013#endif
26014
John Criswell7a73b802003-06-30 21:59:07 +000026015int
26016main ()
26017{
26018 int s;
26019 wait (&s);
26020 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26021 ;
26022 return 0;
26023}
26024_ACEOF
26025rm -f conftest.$ac_objext
26026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026027 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_header_sys_wait_h=yes
26048else
26049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026050sed 's/^/| /' conftest.$ac_ext >&5
26051
John Criswell7a73b802003-06-30 21:59:07 +000026052ac_cv_header_sys_wait_h=no
26053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026055fi
26056echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26057echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26058if test $ac_cv_header_sys_wait_h = yes; then
26059
26060cat >>confdefs.h <<\_ACEOF
26061#define HAVE_SYS_WAIT_H 1
26062_ACEOF
26063
26064fi
26065
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026066echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26067echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26068if test "${ac_cv_header_time+set}" = set; then
26069 echo $ECHO_N "(cached) $ECHO_C" >&6
26070else
26071 cat >conftest.$ac_ext <<_ACEOF
26072/* confdefs.h. */
26073_ACEOF
26074cat confdefs.h >>conftest.$ac_ext
26075cat >>conftest.$ac_ext <<_ACEOF
26076/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026077#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026078#include <sys/time.h>
26079#include <time.h>
26080
26081int
26082main ()
26083{
26084if ((struct tm *) 0)
26085return 0;
26086 ;
26087 return 0;
26088}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026089_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026090rm -f conftest.$ac_objext
26091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26092 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026093 ac_status=$?
26094 grep -v '^ *+' conftest.er1 >conftest.err
26095 rm -f conftest.er1
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026098 (exit $ac_status); } &&
26099 { ac_try='test -z "$ac_c_werror_flag"
26100 || test ! -s conftest.err'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; } &&
26106 { ac_try='test -s conftest.$ac_objext'
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; }; then
26112 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026113else
26114 echo "$as_me: failed program was:" >&5
26115sed 's/^/| /' conftest.$ac_ext >&5
26116
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026117ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026118fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26120fi
26121echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26122echo "${ECHO_T}$ac_cv_header_time" >&6
26123if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026124
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026125cat >>confdefs.h <<\_ACEOF
26126#define TIME_WITH_SYS_TIME 1
26127_ACEOF
26128
26129fi
26130
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026131
Reid Spencer59473af2004-12-25 07:31:29 +000026132
26133
26134
26135
26136
26137
26138for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26139do
26140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26141if eval "test \"\${$as_ac_Header+set}\" = set"; then
26142 echo "$as_me:$LINENO: checking for $ac_header" >&5
26143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26144if eval "test \"\${$as_ac_Header+set}\" = set"; then
26145 echo $ECHO_N "(cached) $ECHO_C" >&6
26146fi
26147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26149else
26150 # Is the header compilable?
26151echo "$as_me:$LINENO: checking $ac_header usability" >&5
26152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26153cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026154/* confdefs.h. */
26155_ACEOF
26156cat confdefs.h >>conftest.$ac_ext
26157cat >>conftest.$ac_ext <<_ACEOF
26158/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026159$ac_includes_default
26160#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026161_ACEOF
26162rm -f conftest.$ac_objext
26163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26164 (eval $ac_compile) 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } &&
26171 { ac_try='test -z "$ac_c_werror_flag"
26172 || test ! -s conftest.err'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26175 ac_status=$?
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; } &&
26178 { ac_try='test -s conftest.$ac_objext'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26181 ac_status=$?
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026184 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026185else
26186 echo "$as_me: failed program was:" >&5
26187sed 's/^/| /' conftest.$ac_ext >&5
26188
Reid Spencer59473af2004-12-25 07:31:29 +000026189ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026190fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26193echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026194
Reid Spencer59473af2004-12-25 07:31:29 +000026195# Is the header present?
26196echo "$as_me:$LINENO: checking $ac_header presence" >&5
26197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26198cat >conftest.$ac_ext <<_ACEOF
26199/* confdefs.h. */
26200_ACEOF
26201cat confdefs.h >>conftest.$ac_ext
26202cat >>conftest.$ac_ext <<_ACEOF
26203/* end confdefs.h. */
26204#include <$ac_header>
26205_ACEOF
26206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26208 ac_status=$?
26209 grep -v '^ *+' conftest.er1 >conftest.err
26210 rm -f conftest.er1
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } >/dev/null; then
26214 if test -s conftest.err; then
26215 ac_cpp_err=$ac_c_preproc_warn_flag
26216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26217 else
26218 ac_cpp_err=
26219 fi
26220else
26221 ac_cpp_err=yes
26222fi
26223if test -z "$ac_cpp_err"; then
26224 ac_header_preproc=yes
26225else
26226 echo "$as_me: failed program was:" >&5
26227sed 's/^/| /' conftest.$ac_ext >&5
26228
26229 ac_header_preproc=no
26230fi
26231rm -f conftest.err conftest.$ac_ext
26232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26233echo "${ECHO_T}$ac_header_preproc" >&6
26234
26235# So? What about this header?
26236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26237 yes:no: )
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26242 ac_header_preproc=yes
26243 ;;
26244 no:yes:* )
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26257 (
26258 cat <<\_ASBOX
26259## ----------------------------------- ##
26260## Report this to llvmbugs@cs.uiuc.edu ##
26261## ----------------------------------- ##
26262_ASBOX
26263 ) |
26264 sed "s/^/$as_me: WARNING: /" >&2
26265 ;;
26266esac
26267echo "$as_me:$LINENO: checking for $ac_header" >&5
26268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26269if eval "test \"\${$as_ac_Header+set}\" = set"; then
26270 echo $ECHO_N "(cached) $ECHO_C" >&6
26271else
26272 eval "$as_ac_Header=\$ac_header_preproc"
26273fi
26274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026276
26277fi
Reid Spencer59473af2004-12-25 07:31:29 +000026278if test `eval echo '${'$as_ac_Header'}'` = yes; then
26279 cat >>confdefs.h <<_ACEOF
26280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026281_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026282
26283fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026284
Reid Spencer59473af2004-12-25 07:31:29 +000026285done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026286
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026287
26288
Reid Spencer59473af2004-12-25 07:31:29 +000026289
26290
26291
26292
26293for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26294do
26295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26296if eval "test \"\${$as_ac_Header+set}\" = set"; then
26297 echo "$as_me:$LINENO: checking for $ac_header" >&5
26298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26299if eval "test \"\${$as_ac_Header+set}\" = set"; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301fi
26302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26304else
26305 # Is the header compilable?
26306echo "$as_me:$LINENO: checking $ac_header usability" >&5
26307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26308cat >conftest.$ac_ext <<_ACEOF
26309/* confdefs.h. */
26310_ACEOF
26311cat confdefs.h >>conftest.$ac_ext
26312cat >>conftest.$ac_ext <<_ACEOF
26313/* end confdefs.h. */
26314$ac_includes_default
26315#include <$ac_header>
26316_ACEOF
26317rm -f conftest.$ac_objext
26318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26319 (eval $ac_compile) 2>conftest.er1
26320 ac_status=$?
26321 grep -v '^ *+' conftest.er1 >conftest.err
26322 rm -f conftest.er1
26323 cat conftest.err >&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); } &&
26326 { ac_try='test -z "$ac_c_werror_flag"
26327 || test ! -s conftest.err'
26328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329 (eval $ac_try) 2>&5
26330 ac_status=$?
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); }; } &&
26333 { ac_try='test -s conftest.$ac_objext'
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; }; then
26339 ac_header_compiler=yes
26340else
26341 echo "$as_me: failed program was:" >&5
26342sed 's/^/| /' conftest.$ac_ext >&5
26343
26344ac_header_compiler=no
26345fi
26346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26348echo "${ECHO_T}$ac_header_compiler" >&6
26349
26350# Is the header present?
26351echo "$as_me:$LINENO: checking $ac_header presence" >&5
26352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26353cat >conftest.$ac_ext <<_ACEOF
26354/* confdefs.h. */
26355_ACEOF
26356cat confdefs.h >>conftest.$ac_ext
26357cat >>conftest.$ac_ext <<_ACEOF
26358/* end confdefs.h. */
26359#include <$ac_header>
26360_ACEOF
26361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26363 ac_status=$?
26364 grep -v '^ *+' conftest.er1 >conftest.err
26365 rm -f conftest.er1
26366 cat conftest.err >&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } >/dev/null; then
26369 if test -s conftest.err; then
26370 ac_cpp_err=$ac_c_preproc_warn_flag
26371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26372 else
26373 ac_cpp_err=
26374 fi
26375else
26376 ac_cpp_err=yes
26377fi
26378if test -z "$ac_cpp_err"; then
26379 ac_header_preproc=yes
26380else
26381 echo "$as_me: failed program was:" >&5
26382sed 's/^/| /' conftest.$ac_ext >&5
26383
26384 ac_header_preproc=no
26385fi
26386rm -f conftest.err conftest.$ac_ext
26387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26388echo "${ECHO_T}$ac_header_preproc" >&6
26389
26390# So? What about this header?
26391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26392 yes:no: )
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26397 ac_header_preproc=yes
26398 ;;
26399 no:yes:* )
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26412 (
26413 cat <<\_ASBOX
26414## ----------------------------------- ##
26415## Report this to llvmbugs@cs.uiuc.edu ##
26416## ----------------------------------- ##
26417_ASBOX
26418 ) |
26419 sed "s/^/$as_me: WARNING: /" >&2
26420 ;;
26421esac
26422echo "$as_me:$LINENO: checking for $ac_header" >&5
26423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26424if eval "test \"\${$as_ac_Header+set}\" = set"; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26426else
26427 eval "$as_ac_Header=\$ac_header_preproc"
26428fi
26429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26431
26432fi
26433if test `eval echo '${'$as_ac_Header'}'` = yes; then
26434 cat >>confdefs.h <<_ACEOF
26435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26436_ACEOF
26437
26438fi
26439
26440done
26441
26442
26443
26444
26445
26446
26447for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026448do
26449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26450if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451 echo "$as_me:$LINENO: checking for $ac_header" >&5
26452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26453if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026454 echo $ECHO_N "(cached) $ECHO_C" >&6
26455fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026458else
26459 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026460echo "$as_me:$LINENO: checking $ac_header usability" >&5
26461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026462cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026463/* confdefs.h. */
26464_ACEOF
26465cat confdefs.h >>conftest.$ac_ext
26466cat >>conftest.$ac_ext <<_ACEOF
26467/* end confdefs.h. */
26468$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026469#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026470_ACEOF
26471rm -f conftest.$ac_objext
26472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026473 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_header_compiler=yes
26494else
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
26497
26498ac_header_compiler=no
26499fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26502echo "${ECHO_T}$ac_header_compiler" >&6
26503
26504# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026505echo "$as_me:$LINENO: checking $ac_header presence" >&5
26506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026507cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026508/* confdefs.h. */
26509_ACEOF
26510cat confdefs.h >>conftest.$ac_ext
26511cat >>conftest.$ac_ext <<_ACEOF
26512/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026513#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026514_ACEOF
26515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26517 ac_status=$?
26518 grep -v '^ *+' conftest.er1 >conftest.err
26519 rm -f conftest.er1
26520 cat conftest.err >&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } >/dev/null; then
26523 if test -s conftest.err; then
26524 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026526 else
26527 ac_cpp_err=
26528 fi
26529else
26530 ac_cpp_err=yes
26531fi
26532if test -z "$ac_cpp_err"; then
26533 ac_header_preproc=yes
26534else
26535 echo "$as_me: failed program was:" >&5
26536sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 ac_header_preproc=no
26539fi
26540rm -f conftest.err conftest.$ac_ext
26541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26542echo "${ECHO_T}$ac_header_preproc" >&6
26543
26544# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26546 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026551 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026552 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026553 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026566 (
26567 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026568## ----------------------------------- ##
26569## Report this to llvmbugs@cs.uiuc.edu ##
26570## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026571_ASBOX
26572 ) |
26573 sed "s/^/$as_me: WARNING: /" >&2
26574 ;;
26575esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026576echo "$as_me:$LINENO: checking for $ac_header" >&5
26577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26578if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026579 echo $ECHO_N "(cached) $ECHO_C" >&6
26580else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026581 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026582fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026585
26586fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026587if test `eval echo '${'$as_ac_Header'}'` = yes; then
26588 cat >>confdefs.h <<_ACEOF
26589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026590_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026591
26592fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026593
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026594done
26595
John Criswell7ed43ad2004-07-19 16:12:29 +000026596
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026597
John Criswell7a73b802003-06-30 21:59:07 +000026598echo "$as_me:$LINENO: checking for pid_t" >&5
26599echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26600if test "${ac_cv_type_pid_t+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26602else
26603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026604/* confdefs.h. */
26605_ACEOF
26606cat confdefs.h >>conftest.$ac_ext
26607cat >>conftest.$ac_ext <<_ACEOF
26608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026609$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026610int
26611main ()
26612{
26613if ((pid_t *) 0)
26614 return 0;
26615if (sizeof (pid_t))
26616 return 0;
26617 ;
26618 return 0;
26619}
26620_ACEOF
26621rm -f conftest.$ac_objext
26622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026623 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026625 grep -v '^ *+' conftest.er1 >conftest.err
26626 rm -f conftest.er1
26627 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026630 { ac_try='test -z "$ac_c_werror_flag"
26631 || test ! -s conftest.err'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; } &&
26637 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639 (eval $ac_try) 2>&5
26640 ac_status=$?
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); }; }; then
26643 ac_cv_type_pid_t=yes
26644else
26645 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026646sed 's/^/| /' conftest.$ac_ext >&5
26647
John Criswell7a73b802003-06-30 21:59:07 +000026648ac_cv_type_pid_t=no
26649fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026651fi
26652echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26653echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26654if test $ac_cv_type_pid_t = yes; then
26655 :
26656else
26657
26658cat >>confdefs.h <<_ACEOF
26659#define pid_t int
26660_ACEOF
26661
26662fi
26663
26664echo "$as_me:$LINENO: checking for size_t" >&5
26665echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26666if test "${ac_cv_type_size_t+set}" = set; then
26667 echo $ECHO_N "(cached) $ECHO_C" >&6
26668else
26669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026670/* confdefs.h. */
26671_ACEOF
26672cat confdefs.h >>conftest.$ac_ext
26673cat >>conftest.$ac_ext <<_ACEOF
26674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026675$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026676int
26677main ()
26678{
26679if ((size_t *) 0)
26680 return 0;
26681if (sizeof (size_t))
26682 return 0;
26683 ;
26684 return 0;
26685}
26686_ACEOF
26687rm -f conftest.$ac_objext
26688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026689 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026691 grep -v '^ *+' conftest.er1 >conftest.err
26692 rm -f conftest.er1
26693 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026696 { ac_try='test -z "$ac_c_werror_flag"
26697 || test ! -s conftest.err'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; } &&
26703 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705 (eval $ac_try) 2>&5
26706 ac_status=$?
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); }; }; then
26709 ac_cv_type_size_t=yes
26710else
26711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026712sed 's/^/| /' conftest.$ac_ext >&5
26713
John Criswell7a73b802003-06-30 21:59:07 +000026714ac_cv_type_size_t=no
26715fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026717fi
26718echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26719echo "${ECHO_T}$ac_cv_type_size_t" >&6
26720if test $ac_cv_type_size_t = yes; then
26721 :
26722else
26723
26724cat >>confdefs.h <<_ACEOF
26725#define size_t unsigned
26726_ACEOF
26727
26728fi
26729
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026730echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26731echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26732if test "${ac_cv_type_signal+set}" = set; then
26733 echo $ECHO_N "(cached) $ECHO_C" >&6
26734else
26735 cat >conftest.$ac_ext <<_ACEOF
26736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
26741#include <sys/types.h>
26742#include <signal.h>
26743#ifdef signal
26744# undef signal
26745#endif
26746#ifdef __cplusplus
26747extern "C" void (*signal (int, void (*)(int)))(int);
26748#else
26749void (*signal ()) ();
26750#endif
26751
26752int
26753main ()
26754{
26755int i;
26756 ;
26757 return 0;
26758}
26759_ACEOF
26760rm -f conftest.$ac_objext
26761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26762 (eval $ac_compile) 2>conftest.er1
26763 ac_status=$?
26764 grep -v '^ *+' conftest.er1 >conftest.err
26765 rm -f conftest.er1
26766 cat conftest.err >&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } &&
26769 { 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); }; } &&
26776 { ac_try='test -s conftest.$ac_objext'
26777 { (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
26782 ac_cv_type_signal=void
26783else
26784 echo "$as_me: failed program was:" >&5
26785sed 's/^/| /' conftest.$ac_ext >&5
26786
26787ac_cv_type_signal=int
26788fi
26789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26790fi
26791echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26792echo "${ECHO_T}$ac_cv_type_signal" >&6
26793
26794cat >>confdefs.h <<_ACEOF
26795#define RETSIGTYPE $ac_cv_type_signal
26796_ACEOF
26797
26798
26799echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26800echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26801if test "${ac_cv_struct_tm+set}" = set; then
26802 echo $ECHO_N "(cached) $ECHO_C" >&6
26803else
26804 cat >conftest.$ac_ext <<_ACEOF
26805/* confdefs.h. */
26806_ACEOF
26807cat confdefs.h >>conftest.$ac_ext
26808cat >>conftest.$ac_ext <<_ACEOF
26809/* end confdefs.h. */
26810#include <sys/types.h>
26811#include <time.h>
26812
26813int
26814main ()
26815{
26816struct tm *tp; tp->tm_sec;
26817 ;
26818 return 0;
26819}
26820_ACEOF
26821rm -f conftest.$ac_objext
26822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26823 (eval $ac_compile) 2>conftest.er1
26824 ac_status=$?
26825 grep -v '^ *+' conftest.er1 >conftest.err
26826 rm -f conftest.er1
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } &&
26830 { ac_try='test -z "$ac_c_werror_flag"
26831 || test ! -s conftest.err'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; } &&
26837 { ac_try='test -s conftest.$ac_objext'
26838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839 (eval $ac_try) 2>&5
26840 ac_status=$?
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); }; }; then
26843 ac_cv_struct_tm=time.h
26844else
26845 echo "$as_me: failed program was:" >&5
26846sed 's/^/| /' conftest.$ac_ext >&5
26847
26848ac_cv_struct_tm=sys/time.h
26849fi
26850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26851fi
26852echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26853echo "${ECHO_T}$ac_cv_struct_tm" >&6
26854if test $ac_cv_struct_tm = sys/time.h; then
26855
26856cat >>confdefs.h <<\_ACEOF
26857#define TM_IN_SYS_TIME 1
26858_ACEOF
26859
26860fi
26861
John Criswell7a73b802003-06-30 21:59:07 +000026862echo "$as_me:$LINENO: checking for int64_t" >&5
26863echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26864if test "${ac_cv_type_int64_t+set}" = set; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26866else
26867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026868/* confdefs.h. */
26869_ACEOF
26870cat confdefs.h >>conftest.$ac_ext
26871cat >>conftest.$ac_ext <<_ACEOF
26872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026873$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026874int
26875main ()
26876{
26877if ((int64_t *) 0)
26878 return 0;
26879if (sizeof (int64_t))
26880 return 0;
26881 ;
26882 return 0;
26883}
26884_ACEOF
26885rm -f conftest.$ac_objext
26886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026887 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026889 grep -v '^ *+' conftest.er1 >conftest.err
26890 rm -f conftest.er1
26891 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026894 { ac_try='test -z "$ac_c_werror_flag"
26895 || test ! -s conftest.err'
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; } &&
26901 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_cv_type_int64_t=yes
26908else
26909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026910sed 's/^/| /' conftest.$ac_ext >&5
26911
John Criswell7a73b802003-06-30 21:59:07 +000026912ac_cv_type_int64_t=no
26913fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026915fi
26916echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26917echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26918if test $ac_cv_type_int64_t = yes; then
26919
26920cat >>confdefs.h <<_ACEOF
26921#define HAVE_INT64_T 1
26922_ACEOF
26923
26924
26925else
26926 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26927echo "$as_me: error: Type int64_t required but not found" >&2;}
26928 { (exit 1); exit 1; }; }
26929fi
26930
26931echo "$as_me:$LINENO: checking for uint64_t" >&5
26932echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26933if test "${ac_cv_type_uint64_t+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935else
26936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026937/* confdefs.h. */
26938_ACEOF
26939cat confdefs.h >>conftest.$ac_ext
26940cat >>conftest.$ac_ext <<_ACEOF
26941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026942$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026943int
26944main ()
26945{
26946if ((uint64_t *) 0)
26947 return 0;
26948if (sizeof (uint64_t))
26949 return 0;
26950 ;
26951 return 0;
26952}
26953_ACEOF
26954rm -f conftest.$ac_objext
26955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026956 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026958 grep -v '^ *+' conftest.er1 >conftest.err
26959 rm -f conftest.er1
26960 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026963 { ac_try='test -z "$ac_c_werror_flag"
26964 || test ! -s conftest.err'
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; } &&
26970 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26973 ac_status=$?
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
26976 ac_cv_type_uint64_t=yes
26977else
26978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026979sed 's/^/| /' conftest.$ac_ext >&5
26980
John Criswell7a73b802003-06-30 21:59:07 +000026981ac_cv_type_uint64_t=no
26982fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026984fi
26985echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26986echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26987if test $ac_cv_type_uint64_t = yes; then
26988
26989cat >>confdefs.h <<_ACEOF
26990#define HAVE_UINT64_T 1
26991_ACEOF
26992
26993
26994else
Misha Brukmanceca9042004-09-02 23:02:30 +000026995 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026996echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26997if test "${ac_cv_type_u_int64_t+set}" = set; then
26998 echo $ECHO_N "(cached) $ECHO_C" >&6
26999else
27000 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027001/* confdefs.h. */
27002_ACEOF
27003cat confdefs.h >>conftest.$ac_ext
27004cat >>conftest.$ac_ext <<_ACEOF
27005/* end confdefs.h. */
27006$ac_includes_default
27007int
27008main ()
27009{
27010if ((u_int64_t *) 0)
27011 return 0;
27012if (sizeof (u_int64_t))
27013 return 0;
27014 ;
27015 return 0;
27016}
27017_ACEOF
27018rm -f conftest.$ac_objext
27019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027020 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027027 { ac_try='test -z "$ac_c_werror_flag"
27028 || test ! -s conftest.err'
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27031 ac_status=$?
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27040 ac_cv_type_u_int64_t=yes
27041else
27042 echo "$as_me: failed program was:" >&5
27043sed 's/^/| /' conftest.$ac_ext >&5
27044
27045ac_cv_type_u_int64_t=no
27046fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027048fi
27049echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27050echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27051if test $ac_cv_type_u_int64_t = yes; then
27052
27053cat >>confdefs.h <<_ACEOF
27054#define HAVE_U_INT64_T 1
27055_ACEOF
27056
27057
Misha Brukmanceca9042004-09-02 23:02:30 +000027058else
27059 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27060echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27061 { (exit 1); exit 1; }; }
27062fi
27063
John Criswell679ff312004-09-02 18:44:44 +000027064fi
27065
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027066
27067
27068
27069
27070
27071
27072
27073
Reid Spencerab5eaea2004-12-20 00:59:04 +000027074for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27075do
27076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27077echo "$as_me:$LINENO: checking for $ac_func" >&5
27078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27079if eval "test \"\${$as_ac_var+set}\" = set"; then
27080 echo $ECHO_N "(cached) $ECHO_C" >&6
27081else
27082 cat >conftest.$ac_ext <<_ACEOF
27083/* confdefs.h. */
27084_ACEOF
27085cat confdefs.h >>conftest.$ac_ext
27086cat >>conftest.$ac_ext <<_ACEOF
27087/* end confdefs.h. */
27088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27090#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027091
Reid Spencerab5eaea2004-12-20 00:59:04 +000027092/* System header to define __stub macros and hopefully few prototypes,
27093 which can conflict with char $ac_func (); below.
27094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27095 <limits.h> exists even on freestanding compilers. */
27096
27097#ifdef __STDC__
27098# include <limits.h>
27099#else
27100# include <assert.h>
27101#endif
27102
27103#undef $ac_func
27104
27105/* Override any gcc2 internal prototype to avoid an error. */
27106#ifdef __cplusplus
27107extern "C"
27108{
27109#endif
27110/* We use char because int might match the return type of a gcc2
27111 builtin and then its argument prototype would still apply. */
27112char $ac_func ();
27113/* The GNU C library defines this for functions which it implements
27114 to always fail with ENOSYS. Some functions are actually named
27115 something starting with __ and the normal name is an alias. */
27116#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27117choke me
27118#else
27119char (*f) () = $ac_func;
27120#endif
27121#ifdef __cplusplus
27122}
27123#endif
27124
27125int
27126main ()
27127{
27128return f != $ac_func;
27129 ;
27130 return 0;
27131}
27132_ACEOF
27133rm -f conftest.$ac_objext conftest$ac_exeext
27134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27135 (eval $ac_link) 2>conftest.er1
27136 ac_status=$?
27137 grep -v '^ *+' conftest.er1 >conftest.err
27138 rm -f conftest.er1
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } &&
27142 { ac_try='test -z "$ac_c_werror_flag"
27143 || test ! -s conftest.err'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; } &&
27149 { ac_try='test -s conftest$ac_exeext'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; }; then
27155 eval "$as_ac_var=yes"
27156else
27157 echo "$as_me: failed program was:" >&5
27158sed 's/^/| /' conftest.$ac_ext >&5
27159
27160eval "$as_ac_var=no"
27161fi
27162rm -f conftest.err conftest.$ac_objext \
27163 conftest$ac_exeext conftest.$ac_ext
27164fi
27165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27166echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27167if test `eval echo '${'$as_ac_var'}'` = yes; then
27168 cat >>confdefs.h <<_ACEOF
27169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27170_ACEOF
27171
27172fi
27173done
27174
27175
27176
27177
27178for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027179do
27180as_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
John Criswell7a73b802003-06-30 21:59:07 +000027184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027187/* confdefs.h. */
27188_ACEOF
27189cat confdefs.h >>conftest.$ac_ext
27190cat >>conftest.$ac_ext <<_ACEOF
27191/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027192/* 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
John Criswell7a73b802003-06-30 21:59:07 +000027228
John Criswell7a73b802003-06-30 21:59:07 +000027229int
27230main ()
27231{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027232return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027233 ;
27234 return 0;
27235}
27236_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027237rm -f conftest.$ac_objext conftest$ac_exeext
27238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27239 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
27243 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027246 { 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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027253 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027254 { (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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027259 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027260else
27261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027262sed 's/^/| /' conftest.$ac_ext >&5
27263
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027264eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027265fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027266rm -f conftest.err conftest.$ac_objext \
27267 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027268fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027269echo "$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 cat >>confdefs.h <<_ACEOF
27273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027274_ACEOF
27275
27276fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027277done
John Criswell7a73b802003-06-30 21:59:07 +000027278
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027279
27280
27281
Reid Spencer6af3d262004-12-15 04:01:48 +000027282
27283
Reid Spencer59473af2004-12-25 07:31:29 +000027284
Reid Spencerba46ca32004-12-31 05:49:15 +000027285for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027286do
27287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27288echo "$as_me:$LINENO: checking for $ac_func" >&5
27289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27290if eval "test \"\${$as_ac_var+set}\" = set"; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27292else
27293 cat >conftest.$ac_ext <<_ACEOF
27294/* confdefs.h. */
27295_ACEOF
27296cat confdefs.h >>conftest.$ac_ext
27297cat >>conftest.$ac_ext <<_ACEOF
27298/* end confdefs.h. */
27299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27301#define $ac_func innocuous_$ac_func
27302
27303/* System header to define __stub macros and hopefully few prototypes,
27304 which can conflict with char $ac_func (); below.
27305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27306 <limits.h> exists even on freestanding compilers. */
27307
27308#ifdef __STDC__
27309# include <limits.h>
27310#else
27311# include <assert.h>
27312#endif
27313
27314#undef $ac_func
27315
27316/* Override any gcc2 internal prototype to avoid an error. */
27317#ifdef __cplusplus
27318extern "C"
27319{
27320#endif
27321/* We use char because int might match the return type of a gcc2
27322 builtin and then its argument prototype would still apply. */
27323char $ac_func ();
27324/* The GNU C library defines this for functions which it implements
27325 to always fail with ENOSYS. Some functions are actually named
27326 something starting with __ and the normal name is an alias. */
27327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27328choke me
27329#else
27330char (*f) () = $ac_func;
27331#endif
27332#ifdef __cplusplus
27333}
27334#endif
27335
27336int
27337main ()
27338{
27339return f != $ac_func;
27340 ;
27341 return 0;
27342}
27343_ACEOF
27344rm -f conftest.$ac_objext conftest$ac_exeext
27345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27346 (eval $ac_link) 2>conftest.er1
27347 ac_status=$?
27348 grep -v '^ *+' conftest.er1 >conftest.err
27349 rm -f conftest.er1
27350 cat conftest.err >&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); } &&
27353 { ac_try='test -z "$ac_c_werror_flag"
27354 || test ! -s conftest.err'
27355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356 (eval $ac_try) 2>&5
27357 ac_status=$?
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; } &&
27360 { ac_try='test -s conftest$ac_exeext'
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
27366 eval "$as_ac_var=yes"
27367else
27368 echo "$as_me: failed program was:" >&5
27369sed 's/^/| /' conftest.$ac_ext >&5
27370
27371eval "$as_ac_var=no"
27372fi
27373rm -f conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext conftest.$ac_ext
27375fi
27376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27378if test `eval echo '${'$as_ac_var'}'` = yes; then
27379 cat >>confdefs.h <<_ACEOF
27380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27381_ACEOF
27382
27383fi
27384done
27385
27386
Reid Spencerba46ca32004-12-31 05:49:15 +000027387
27388
27389for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027390do
27391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27392echo "$as_me:$LINENO: checking for $ac_func" >&5
27393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27394if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027395 echo $ECHO_N "(cached) $ECHO_C" >&6
27396else
27397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027398/* confdefs.h. */
27399_ACEOF
27400cat confdefs.h >>conftest.$ac_ext
27401cat >>conftest.$ac_ext <<_ACEOF
27402/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27405#define $ac_func innocuous_$ac_func
27406
27407/* System header to define __stub macros and hopefully few prototypes,
27408 which can conflict with char $ac_func (); below.
27409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27410 <limits.h> exists even on freestanding compilers. */
27411
27412#ifdef __STDC__
27413# include <limits.h>
27414#else
27415# include <assert.h>
27416#endif
27417
27418#undef $ac_func
27419
27420/* Override any gcc2 internal prototype to avoid an error. */
27421#ifdef __cplusplus
27422extern "C"
27423{
27424#endif
27425/* We use char because int might match the return type of a gcc2
27426 builtin and then its argument prototype would still apply. */
27427char $ac_func ();
27428/* The GNU C library defines this for functions which it implements
27429 to always fail with ENOSYS. Some functions are actually named
27430 something starting with __ and the normal name is an alias. */
27431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27432choke me
27433#else
27434char (*f) () = $ac_func;
27435#endif
27436#ifdef __cplusplus
27437}
27438#endif
John Criswell7a73b802003-06-30 21:59:07 +000027439
John Criswell7a73b802003-06-30 21:59:07 +000027440int
27441main ()
27442{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027443return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027444 ;
27445 return 0;
27446}
27447_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027448rm -f conftest.$ac_objext conftest$ac_exeext
27449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27450 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027451 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027452 grep -v '^ *+' conftest.er1 >conftest.err
27453 rm -f conftest.er1
27454 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027457 { ac_try='test -z "$ac_c_werror_flag"
27458 || test ! -s conftest.err'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27461 ac_status=$?
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027464 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027470 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027471else
27472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027473sed 's/^/| /' conftest.$ac_ext >&5
27474
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027475eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027477rm -f conftest.err conftest.$ac_objext \
27478 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027479fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27482if test `eval echo '${'$as_ac_var'}'` = yes; then
27483 cat >>confdefs.h <<_ACEOF
27484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027485_ACEOF
27486
27487fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027488done
John Criswell7a73b802003-06-30 21:59:07 +000027489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027490echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27491echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027492if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027493 echo $ECHO_N "(cached) $ECHO_C" >&6
27494else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027495 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027496ac_cpp='$CPP $CPPFLAGS'
27497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27499ac_compiler_gnu=$ac_cv_c_compiler_gnu
27500
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027501 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027502 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027503else
27504 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027505
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027506 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027507_ACEOF
27508cat confdefs.h >>conftest.$ac_ext
27509cat >>conftest.$ac_ext <<_ACEOF
27510/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027511
John Criswella0137d32003-10-13 16:22:01 +000027512#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027513#include <stdlib.h>
27514
John Criswella0137d32003-10-13 16:22:01 +000027515int
27516main ()
27517{
27518
Reid Spencer2706f8c2004-09-19 23:53:36 +000027519volatile double A, B;
27520char Buffer[100];
27521A = 1;
27522A /= 10.0;
27523sprintf(Buffer, "%a", A);
27524B = atof(Buffer);
27525if (A != B)
27526 return (1);
27527if (A != 0x1.999999999999ap-4)
27528 return (1);
27529return (0);
John Criswella0137d32003-10-13 16:22:01 +000027530 ;
27531 return 0;
27532}
27533_ACEOF
27534rm -f conftest$ac_exeext
27535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27536 (eval $ac_link) 2>&5
27537 ac_status=$?
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541 (eval $ac_try) 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027545 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027546else
27547 echo "$as_me: program exited with status $ac_status" >&5
27548echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
27551( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027552llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027553fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027555fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027556 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027557ac_cpp='$CPP $CPPFLAGS'
27558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27560ac_compiler_gnu=$ac_cv_c_compiler_gnu
27561
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027562fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027563echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27564echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27565 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027566
27567cat >>confdefs.h <<\_ACEOF
27568#define HAVE_PRINTF_A 1
27569_ACEOF
27570
Reid Spencer2706f8c2004-09-19 23:53:36 +000027571 fi
John Criswella0137d32003-10-13 16:22:01 +000027572
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027573# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27574# for constant arguments. Useless!
27575echo "$as_me:$LINENO: checking for working alloca.h" >&5
27576echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27577if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027578 echo $ECHO_N "(cached) $ECHO_C" >&6
27579else
John Criswell0021c312004-02-13 21:57:29 +000027580 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027581/* confdefs.h. */
27582_ACEOF
27583cat confdefs.h >>conftest.$ac_ext
27584cat >>conftest.$ac_ext <<_ACEOF
27585/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027586#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027587int
27588main ()
27589{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027590char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027591 ;
27592 return 0;
27593}
27594_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027595rm -f conftest.$ac_objext conftest$ac_exeext
27596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27597 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027599 grep -v '^ *+' conftest.er1 >conftest.err
27600 rm -f conftest.er1
27601 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027604 { ac_try='test -z "$ac_c_werror_flag"
27605 || test ! -s conftest.err'
27606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027611 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613 (eval $ac_try) 2>&5
27614 ac_status=$?
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027617 ac_cv_working_alloca_h=yes
27618else
27619 echo "$as_me: failed program was:" >&5
27620sed 's/^/| /' conftest.$ac_ext >&5
27621
27622ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027623fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027624rm -f conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
27626fi
27627echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27628echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27629if test $ac_cv_working_alloca_h = yes; then
27630
27631cat >>confdefs.h <<\_ACEOF
27632#define HAVE_ALLOCA_H 1
27633_ACEOF
27634
27635fi
27636
27637echo "$as_me:$LINENO: checking for alloca" >&5
27638echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27639if test "${ac_cv_func_alloca_works+set}" = set; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27641else
27642 cat >conftest.$ac_ext <<_ACEOF
27643/* confdefs.h. */
27644_ACEOF
27645cat confdefs.h >>conftest.$ac_ext
27646cat >>conftest.$ac_ext <<_ACEOF
27647/* end confdefs.h. */
27648#ifdef __GNUC__
27649# define alloca __builtin_alloca
27650#else
27651# ifdef _MSC_VER
27652# include <malloc.h>
27653# define alloca _alloca
27654# else
27655# if HAVE_ALLOCA_H
27656# include <alloca.h>
27657# else
27658# ifdef _AIX
27659 #pragma alloca
27660# else
27661# ifndef alloca /* predefined by HP cc +Olibcalls */
27662char *alloca ();
27663# endif
27664# endif
27665# endif
27666# endif
27667#endif
27668
27669int
27670main ()
27671{
27672char *p = (char *) alloca (1);
27673 ;
27674 return 0;
27675}
27676_ACEOF
27677rm -f conftest.$ac_objext conftest$ac_exeext
27678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27679 (eval $ac_link) 2>conftest.er1
27680 ac_status=$?
27681 grep -v '^ *+' conftest.er1 >conftest.err
27682 rm -f conftest.er1
27683 cat conftest.err >&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); } &&
27686 { ac_try='test -z "$ac_c_werror_flag"
27687 || test ! -s conftest.err'
27688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27689 (eval $ac_try) 2>&5
27690 ac_status=$?
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; } &&
27693 { ac_try='test -s conftest$ac_exeext'
27694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27695 (eval $ac_try) 2>&5
27696 ac_status=$?
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); }; }; then
27699 ac_cv_func_alloca_works=yes
27700else
27701 echo "$as_me: failed program was:" >&5
27702sed 's/^/| /' conftest.$ac_ext >&5
27703
27704ac_cv_func_alloca_works=no
27705fi
27706rm -f conftest.err conftest.$ac_objext \
27707 conftest$ac_exeext conftest.$ac_ext
27708fi
27709echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27710echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27711
27712if test $ac_cv_func_alloca_works = yes; then
27713
27714cat >>confdefs.h <<\_ACEOF
27715#define HAVE_ALLOCA 1
27716_ACEOF
27717
27718else
27719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27720# that cause trouble. Some versions do not even contain alloca or
27721# contain a buggy version. If you still want to use their alloca,
27722# use ar to extract alloca.o from them instead of compiling alloca.c.
27723
27724ALLOCA=alloca.$ac_objext
27725
27726cat >>confdefs.h <<\_ACEOF
27727#define C_ALLOCA 1
27728_ACEOF
27729
27730
27731echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27732echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27733if test "${ac_cv_os_cray+set}" = set; then
27734 echo $ECHO_N "(cached) $ECHO_C" >&6
27735else
27736 cat >conftest.$ac_ext <<_ACEOF
27737/* confdefs.h. */
27738_ACEOF
27739cat confdefs.h >>conftest.$ac_ext
27740cat >>conftest.$ac_ext <<_ACEOF
27741/* end confdefs.h. */
27742#if defined(CRAY) && ! defined(CRAY2)
27743webecray
27744#else
27745wenotbecray
27746#endif
27747
27748_ACEOF
27749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27750 $EGREP "webecray" >/dev/null 2>&1; then
27751 ac_cv_os_cray=yes
27752else
27753 ac_cv_os_cray=no
27754fi
27755rm -f conftest*
27756
27757fi
27758echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27759echo "${ECHO_T}$ac_cv_os_cray" >&6
27760if test $ac_cv_os_cray = yes; then
27761 for ac_func in _getb67 GETB67 getb67; do
27762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27763echo "$as_me:$LINENO: checking for $ac_func" >&5
27764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27765if eval "test \"\${$as_ac_var+set}\" = set"; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27767else
27768 cat >conftest.$ac_ext <<_ACEOF
27769/* confdefs.h. */
27770_ACEOF
27771cat confdefs.h >>conftest.$ac_ext
27772cat >>conftest.$ac_ext <<_ACEOF
27773/* end confdefs.h. */
27774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27776#define $ac_func innocuous_$ac_func
27777
27778/* System header to define __stub macros and hopefully few prototypes,
27779 which can conflict with char $ac_func (); below.
27780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27781 <limits.h> exists even on freestanding compilers. */
27782
27783#ifdef __STDC__
27784# include <limits.h>
27785#else
27786# include <assert.h>
27787#endif
27788
27789#undef $ac_func
27790
27791/* Override any gcc2 internal prototype to avoid an error. */
27792#ifdef __cplusplus
27793extern "C"
27794{
27795#endif
27796/* We use char because int might match the return type of a gcc2
27797 builtin and then its argument prototype would still apply. */
27798char $ac_func ();
27799/* The GNU C library defines this for functions which it implements
27800 to always fail with ENOSYS. Some functions are actually named
27801 something starting with __ and the normal name is an alias. */
27802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27803choke me
27804#else
27805char (*f) () = $ac_func;
27806#endif
27807#ifdef __cplusplus
27808}
27809#endif
27810
27811int
27812main ()
27813{
27814return f != $ac_func;
27815 ;
27816 return 0;
27817}
27818_ACEOF
27819rm -f conftest.$ac_objext conftest$ac_exeext
27820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27821 (eval $ac_link) 2>conftest.er1
27822 ac_status=$?
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } &&
27828 { ac_try='test -z "$ac_c_werror_flag"
27829 || test ! -s conftest.err'
27830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831 (eval $ac_try) 2>&5
27832 ac_status=$?
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); }; } &&
27835 { ac_try='test -s conftest$ac_exeext'
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 eval "$as_ac_var=yes"
27842else
27843 echo "$as_me: failed program was:" >&5
27844sed 's/^/| /' conftest.$ac_ext >&5
27845
27846eval "$as_ac_var=no"
27847fi
27848rm -f conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
27850fi
27851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27853if test `eval echo '${'$as_ac_var'}'` = yes; then
27854
27855cat >>confdefs.h <<_ACEOF
27856#define CRAY_STACKSEG_END $ac_func
27857_ACEOF
27858
27859 break
27860fi
27861
27862 done
27863fi
27864
27865echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27866echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27867if test "${ac_cv_c_stack_direction+set}" = set; then
27868 echo $ECHO_N "(cached) $ECHO_C" >&6
27869else
27870 if test "$cross_compiling" = yes; then
27871 ac_cv_c_stack_direction=0
27872else
27873 cat >conftest.$ac_ext <<_ACEOF
27874/* confdefs.h. */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h. */
27879int
27880find_stack_direction ()
27881{
27882 static char *addr = 0;
27883 auto char dummy;
27884 if (addr == 0)
27885 {
27886 addr = &dummy;
27887 return find_stack_direction ();
27888 }
John Criswell0021c312004-02-13 21:57:29 +000027889 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027890 return (&dummy > addr) ? 1 : -1;
27891}
John Criswell0021c312004-02-13 21:57:29 +000027892
John Criswell0021c312004-02-13 21:57:29 +000027893int
27894main ()
27895{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027896 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027897}
27898_ACEOF
27899rm -f conftest$ac_exeext
27900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27901 (eval $ac_link) 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906 (eval $ac_try) 2>&5
27907 ac_status=$?
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027910 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027911else
27912 echo "$as_me: program exited with status $ac_status" >&5
27913echo "$as_me: failed program was:" >&5
27914sed 's/^/| /' conftest.$ac_ext >&5
27915
27916( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027917ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027918fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027920fi
27921fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027922echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27923echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27924
27925cat >>confdefs.h <<_ACEOF
27926#define STACK_DIRECTION $ac_cv_c_stack_direction
27927_ACEOF
27928
27929
John Criswell0021c312004-02-13 21:57:29 +000027930fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027931
27932
27933echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27934echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27935if test "${ac_cv_func_rand48+set}" = set; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27937else
27938 ac_ext=cc
27939ac_cpp='$CXXCPP $CPPFLAGS'
27940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27943
27944 cat >conftest.$ac_ext <<_ACEOF
27945/* confdefs.h. */
27946_ACEOF
27947cat confdefs.h >>conftest.$ac_ext
27948cat >>conftest.$ac_ext <<_ACEOF
27949/* end confdefs.h. */
27950#include <stdlib.h>
27951int
27952main ()
27953{
27954srand48(0);lrand48();drand48();
27955 ;
27956 return 0;
27957}
27958_ACEOF
27959rm -f conftest.$ac_objext
27960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27961 (eval $ac_compile) 2>conftest.er1
27962 ac_status=$?
27963 grep -v '^ *+' conftest.er1 >conftest.err
27964 rm -f conftest.er1
27965 cat conftest.err >&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } &&
27968 { ac_try='test -z "$ac_cxx_werror_flag"
27969 || test ! -s conftest.err'
27970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971 (eval $ac_try) 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; } &&
27975 { ac_try='test -s conftest.$ac_objext'
27976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977 (eval $ac_try) 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; }; then
27981 ac_cv_func_rand48=yes
27982else
27983 echo "$as_me: failed program was:" >&5
27984sed 's/^/| /' conftest.$ac_ext >&5
27985
27986ac_cv_func_rand48=no
27987fi
27988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27989 ac_ext=c
27990ac_cpp='$CPP $CPPFLAGS'
27991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27993ac_compiler_gnu=$ac_cv_c_compiler_gnu
27994
27995fi
27996echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27997echo "${ECHO_T}$ac_cv_func_rand48" >&6
27998
27999if test "$ac_cv_func_rand48" = "yes" ; then
28000
28001cat >>confdefs.h <<\_ACEOF
28002#define HAVE_RAND48 1
28003_ACEOF
28004
28005fi
John Criswell0021c312004-02-13 21:57:29 +000028006
28007
John Criswell7a73b802003-06-30 21:59:07 +000028008echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28009echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28010if test "${ac_cv_cxx_namespaces+set}" = set; then
28011 echo $ECHO_N "(cached) $ECHO_C" >&6
28012else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028013 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028014ac_cpp='$CXXCPP $CPPFLAGS'
28015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28018
28019 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028020/* confdefs.h. */
28021_ACEOF
28022cat confdefs.h >>conftest.$ac_ext
28023cat >>conftest.$ac_ext <<_ACEOF
28024/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028025namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028026int
28027main ()
28028{
28029using namespace Outer::Inner; return i;
28030 ;
28031 return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext
28035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028036 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028037 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028038 grep -v '^ *+' conftest.er1 >conftest.err
28039 rm -f conftest.er1
28040 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028043 { ac_try='test -z "$ac_cxx_werror_flag"
28044 || test ! -s conftest.err'
28045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046 (eval $ac_try) 2>&5
28047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052 (eval $ac_try) 2>&5
28053 ac_status=$?
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); }; }; then
28056 ac_cv_cxx_namespaces=yes
28057else
28058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028059sed 's/^/| /' conftest.$ac_ext >&5
28060
John Criswell7a73b802003-06-30 21:59:07 +000028061ac_cv_cxx_namespaces=no
28062fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028064 ac_ext=c
28065ac_cpp='$CPP $CPPFLAGS'
28066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28068ac_compiler_gnu=$ac_cv_c_compiler_gnu
28069
28070
28071fi
28072echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28073echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28074if test "$ac_cv_cxx_namespaces" = yes; then
28075
28076cat >>confdefs.h <<\_ACEOF
28077#define HAVE_NAMESPACES
28078_ACEOF
28079
28080fi
28081
Brian Gaeke90583492003-11-10 03:06:28 +000028082echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28083echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28084if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028085 echo $ECHO_N "(cached) $ECHO_C" >&6
28086else
28087
John Criswell7a73b802003-06-30 21:59:07 +000028088 ac_ext=cc
28089ac_cpp='$CXXCPP $CPPFLAGS'
28090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28093
28094 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028095/* confdefs.h. */
28096_ACEOF
28097cat confdefs.h >>conftest.$ac_ext
28098cat >>conftest.$ac_ext <<_ACEOF
28099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028100#include <ext/hash_map>
28101#ifdef HAVE_NAMESPACES
28102using namespace std;
28103#endif
John Criswell7a73b802003-06-30 21:59:07 +000028104int
28105main ()
28106{
Brian Gaeke90583492003-11-10 03:06:28 +000028107hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028108 ;
28109 return 0;
28110}
28111_ACEOF
28112rm -f conftest.$ac_objext
28113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028114 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028115 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028116 grep -v '^ *+' conftest.er1 >conftest.err
28117 rm -f conftest.er1
28118 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028121 { ac_try='test -z "$ac_cxx_werror_flag"
28122 || test ! -s conftest.err'
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; } &&
28128 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028134 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028135else
28136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028137sed 's/^/| /' conftest.$ac_ext >&5
28138
Brian Gaeke90583492003-11-10 03:06:28 +000028139ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028140fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028142 ac_ext=c
28143ac_cpp='$CPP $CPPFLAGS'
28144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28146ac_compiler_gnu=$ac_cv_c_compiler_gnu
28147
John Criswell7a73b802003-06-30 21:59:07 +000028148fi
Brian Gaeke90583492003-11-10 03:06:28 +000028149echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28150echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028151 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28152 then
John Criswell9f011862004-09-24 18:28:00 +000028153
28154cat >>confdefs.h <<\_ACEOF
28155#define HAVE_STD_EXT_HASH_MAP 1
28156_ACEOF
28157
28158 else
28159
28160cat >>confdefs.h <<\_ACEOF
28161#define HAVE_STD_EXT_HASH_MAP 0
28162_ACEOF
28163
Brian Gaeke90583492003-11-10 03:06:28 +000028164 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028165
Brian Gaeke90583492003-11-10 03:06:28 +000028166 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28167echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28168if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28169 echo $ECHO_N "(cached) $ECHO_C" >&6
28170else
28171
Brian Gaeke90583492003-11-10 03:06:28 +000028172 ac_ext=cc
28173ac_cpp='$CXXCPP $CPPFLAGS'
28174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28177
28178 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028179/* confdefs.h. */
28180_ACEOF
28181cat confdefs.h >>conftest.$ac_ext
28182cat >>conftest.$ac_ext <<_ACEOF
28183/* end confdefs.h. */
28184#include <ext/hash_map>
28185#ifdef HAVE_NAMESPACES
28186using namespace __gnu_cxx;
28187#endif
28188int
28189main ()
28190{
28191hash_map<int,int> t;
28192 ;
28193 return 0;
28194}
28195_ACEOF
28196rm -f conftest.$ac_objext
28197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028198 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028199 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028200 grep -v '^ *+' conftest.er1 >conftest.err
28201 rm -f conftest.er1
28202 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028205 { ac_try='test -z "$ac_cxx_werror_flag"
28206 || test ! -s conftest.err'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; } &&
28212 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 ac_cv_cxx_have_gnu_ext_hash_map=yes
28219else
28220 echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028224fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028226 ac_ext=c
28227ac_cpp='$CPP $CPPFLAGS'
28228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28230ac_compiler_gnu=$ac_cv_c_compiler_gnu
28231
28232fi
28233echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28234echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028235 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28236 then
John Criswell9f011862004-09-24 18:28:00 +000028237
28238cat >>confdefs.h <<\_ACEOF
28239#define HAVE_GNU_EXT_HASH_MAP 1
28240_ACEOF
28241
28242 else
28243
28244cat >>confdefs.h <<\_ACEOF
28245#define HAVE_GNU_EXT_HASH_MAP 0
28246_ACEOF
28247
Brian Gaeke90583492003-11-10 03:06:28 +000028248 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028249
Brian Gaeke90583492003-11-10 03:06:28 +000028250 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28251echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28252if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28253 echo $ECHO_N "(cached) $ECHO_C" >&6
28254else
John Criswell7a73b802003-06-30 21:59:07 +000028255
Brian Gaeke90583492003-11-10 03:06:28 +000028256 ac_ext=cc
28257ac_cpp='$CXXCPP $CPPFLAGS'
28258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28261
28262 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268#include <hash_map>
28269int
28270main ()
28271{
28272hash_map<int,int> t;
28273 ;
28274 return 0;
28275}
28276_ACEOF
28277rm -f conftest.$ac_objext
28278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028279 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028286 { ac_try='test -z "$ac_cxx_werror_flag"
28287 || test ! -s conftest.err'
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; }; then
28299 ac_cv_cxx_have_global_hash_map=yes
28300else
28301 echo "$as_me: failed program was:" >&5
28302sed 's/^/| /' conftest.$ac_ext >&5
28303
28304ac_cv_cxx_have_global_hash_map=no
28305fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028307 ac_ext=c
28308ac_cpp='$CPP $CPPFLAGS'
28309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28311ac_compiler_gnu=$ac_cv_c_compiler_gnu
28312
28313fi
28314echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28315echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028316 if test "$ac_cv_cxx_have_global_hash_map" = yes
28317 then
John Criswell9f011862004-09-24 18:28:00 +000028318
28319cat >>confdefs.h <<\_ACEOF
28320#define HAVE_GLOBAL_HASH_MAP 1
28321_ACEOF
28322
28323 else
28324
28325cat >>confdefs.h <<\_ACEOF
28326#define HAVE_GLOBAL_HASH_MAP 0
28327_ACEOF
28328
Brian Gaeke90583492003-11-10 03:06:28 +000028329 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028330
Brian Gaeke90583492003-11-10 03:06:28 +000028331echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28332echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28333if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028334 echo $ECHO_N "(cached) $ECHO_C" >&6
28335else
28336
John Criswell7a73b802003-06-30 21:59:07 +000028337 ac_ext=cc
28338ac_cpp='$CXXCPP $CPPFLAGS'
28339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28342
28343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028344/* confdefs.h. */
28345_ACEOF
28346cat confdefs.h >>conftest.$ac_ext
28347cat >>conftest.$ac_ext <<_ACEOF
28348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028349#include <ext/hash_set>
28350#ifdef HAVE_NAMESPACES
28351using namespace std;
28352#endif
John Criswell7a73b802003-06-30 21:59:07 +000028353int
28354main ()
28355{
Brian Gaeke90583492003-11-10 03:06:28 +000028356hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028357 ;
28358 return 0;
28359}
28360_ACEOF
28361rm -f conftest.$ac_objext
28362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028363 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028365 grep -v '^ *+' conftest.er1 >conftest.err
28366 rm -f conftest.er1
28367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028370 { ac_try='test -z "$ac_cxx_werror_flag"
28371 || test ! -s conftest.err'
28372 { (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); }; } &&
28377 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28380 ac_status=$?
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028383 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028384else
28385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028386sed 's/^/| /' conftest.$ac_ext >&5
28387
Brian Gaeke90583492003-11-10 03:06:28 +000028388ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028389fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028391 ac_ext=c
28392ac_cpp='$CPP $CPPFLAGS'
28393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28395ac_compiler_gnu=$ac_cv_c_compiler_gnu
28396
28397fi
28398echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28399echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028400 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28401 then
John Criswell9f011862004-09-24 18:28:00 +000028402
28403cat >>confdefs.h <<\_ACEOF
28404#define HAVE_STD_EXT_HASH_SET 1
28405_ACEOF
28406
28407 else
28408
28409cat >>confdefs.h <<\_ACEOF
28410#define HAVE_STD_EXT_HASH_SET 0
28411_ACEOF
28412
Brian Gaeke90583492003-11-10 03:06:28 +000028413 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028414
Brian Gaeke90583492003-11-10 03:06:28 +000028415 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28416echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28417if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420
Brian Gaeke90583492003-11-10 03:06:28 +000028421 ac_ext=cc
28422ac_cpp='$CXXCPP $CPPFLAGS'
28423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28426
John Criswell7a73b802003-06-30 21:59:07 +000028427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028428/* confdefs.h. */
28429_ACEOF
28430cat confdefs.h >>conftest.$ac_ext
28431cat >>conftest.$ac_ext <<_ACEOF
28432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028433#include <ext/hash_set>
28434#ifdef HAVE_NAMESPACES
28435using namespace __gnu_cxx;
28436#endif
John Criswell7a73b802003-06-30 21:59:07 +000028437int
28438main ()
28439{
Brian Gaeke90583492003-11-10 03:06:28 +000028440hash_set<int> t;
28441 ;
28442 return 0;
28443}
28444_ACEOF
28445rm -f conftest.$ac_objext
28446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028447 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028449 grep -v '^ *+' conftest.er1 >conftest.err
28450 rm -f conftest.er1
28451 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028454 { ac_try='test -z "$ac_cxx_werror_flag"
28455 || test ! -s conftest.err'
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; } &&
28461 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28467 ac_cv_cxx_have_gnu_ext_hash_set=yes
28468else
28469 echo "$as_me: failed program was:" >&5
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
28472ac_cv_cxx_have_gnu_ext_hash_set=no
28473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028475 ac_ext=c
28476ac_cpp='$CPP $CPPFLAGS'
28477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28479ac_compiler_gnu=$ac_cv_c_compiler_gnu
28480
28481fi
28482echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28483echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028484 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28485 then
John Criswell9f011862004-09-24 18:28:00 +000028486
28487cat >>confdefs.h <<\_ACEOF
28488#define HAVE_GNU_EXT_HASH_SET 1
28489_ACEOF
28490
28491 else
28492
28493cat >>confdefs.h <<\_ACEOF
28494#define HAVE_GNU_EXT_HASH_SET 0
28495_ACEOF
28496
Brian Gaeke90583492003-11-10 03:06:28 +000028497 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028498
Brian Gaeke90583492003-11-10 03:06:28 +000028499 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28500echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28501if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28503else
28504
Brian Gaeke90583492003-11-10 03:06:28 +000028505 ac_ext=cc
28506ac_cpp='$CXXCPP $CPPFLAGS'
28507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28510
28511 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028512/* confdefs.h. */
28513_ACEOF
28514cat confdefs.h >>conftest.$ac_ext
28515cat >>conftest.$ac_ext <<_ACEOF
28516/* end confdefs.h. */
28517#include <hash_set>
28518int
28519main ()
28520{
John Criswell7a73b802003-06-30 21:59:07 +000028521hash_set<int> t; return 0;
28522 ;
28523 return 0;
28524}
28525_ACEOF
28526rm -f conftest.$ac_objext
28527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028528 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028530 grep -v '^ *+' conftest.er1 >conftest.err
28531 rm -f conftest.er1
28532 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028535 { ac_try='test -z "$ac_cxx_werror_flag"
28536 || test ! -s conftest.err'
28537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538 (eval $ac_try) 2>&5
28539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; } &&
28542 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028548 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028549else
28550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028551sed 's/^/| /' conftest.$ac_ext >&5
28552
Brian Gaeke90583492003-11-10 03:06:28 +000028553ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028554fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028556 ac_ext=c
28557ac_cpp='$CPP $CPPFLAGS'
28558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28560ac_compiler_gnu=$ac_cv_c_compiler_gnu
28561
John Criswell7a73b802003-06-30 21:59:07 +000028562fi
Brian Gaeke90583492003-11-10 03:06:28 +000028563echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28564echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028565 if test "$ac_cv_cxx_have_global_hash_set" = yes
28566 then
John Criswell9f011862004-09-24 18:28:00 +000028567
28568cat >>confdefs.h <<\_ACEOF
28569#define HAVE_GLOBAL_HASH_SET 1
28570_ACEOF
28571
28572 else
28573
28574cat >>confdefs.h <<\_ACEOF
28575#define HAVE_GLOBAL_HASH_SET 0
28576_ACEOF
28577
Brian Gaeke90583492003-11-10 03:06:28 +000028578 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028579
John Criswell7a73b802003-06-30 21:59:07 +000028580echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28581echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28582if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28584else
28585
John Criswell7a73b802003-06-30 21:59:07 +000028586 ac_ext=cc
28587ac_cpp='$CXXCPP $CPPFLAGS'
28588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28591
28592 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028593/* confdefs.h. */
28594_ACEOF
28595cat confdefs.h >>conftest.$ac_ext
28596cat >>conftest.$ac_ext <<_ACEOF
28597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028598#include <iterator>
28599#ifdef HAVE_NAMESPACES
28600using namespace std;
28601#endif
John Criswell7a73b802003-06-30 21:59:07 +000028602int
28603main ()
28604{
28605iterator<int,int,int> t; return 0;
28606 ;
28607 return 0;
28608}
28609_ACEOF
28610rm -f conftest.$ac_objext
28611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028612 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028614 grep -v '^ *+' conftest.er1 >conftest.err
28615 rm -f conftest.er1
28616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028619 { ac_try='test -z "$ac_cxx_werror_flag"
28620 || test ! -s conftest.err'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; } &&
28626 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28628 (eval $ac_try) 2>&5
28629 ac_status=$?
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; }; then
28632 ac_cv_cxx_have_std_iterator=yes
28633else
28634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028635sed 's/^/| /' conftest.$ac_ext >&5
28636
John Criswell7a73b802003-06-30 21:59:07 +000028637ac_cv_cxx_have_std_iterator=no
28638fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028640 ac_ext=c
28641ac_cpp='$CPP $CPPFLAGS'
28642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28644ac_compiler_gnu=$ac_cv_c_compiler_gnu
28645
28646
28647fi
28648echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28649echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028650if test "$ac_cv_cxx_have_std_iterator" = yes
28651then
John Criswell40468462004-09-24 21:19:06 +000028652
28653cat >>confdefs.h <<\_ACEOF
28654#define HAVE_STD_ITERATOR 1
28655_ACEOF
28656
28657else
28658
28659cat >>confdefs.h <<\_ACEOF
28660#define HAVE_STD_ITERATOR 0
28661_ACEOF
28662
John Criswell7a73b802003-06-30 21:59:07 +000028663fi
28664
28665echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28666echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28667if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28669else
28670
John Criswell7a73b802003-06-30 21:59:07 +000028671 ac_ext=cc
28672ac_cpp='$CXXCPP $CPPFLAGS'
28673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28676
28677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028678/* confdefs.h. */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028683#include <iterator>
28684#ifdef HAVE_NAMESPACES
28685using namespace std;
28686#endif
John Criswell7a73b802003-06-30 21:59:07 +000028687int
28688main ()
28689{
John Criswellc78022e2003-07-29 19:11:58 +000028690bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028691 ;
28692 return 0;
28693}
28694_ACEOF
28695rm -f conftest.$ac_objext
28696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028697 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028699 grep -v '^ *+' conftest.er1 >conftest.err
28700 rm -f conftest.er1
28701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028704 { ac_try='test -z "$ac_cxx_werror_flag"
28705 || test ! -s conftest.err'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; } &&
28711 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; }; then
28717 ac_cv_cxx_have_bi_iterator=yes
28718else
28719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028720sed 's/^/| /' conftest.$ac_ext >&5
28721
John Criswell7a73b802003-06-30 21:59:07 +000028722ac_cv_cxx_have_bi_iterator=no
28723fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028725 ac_ext=c
28726ac_cpp='$CPP $CPPFLAGS'
28727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28729ac_compiler_gnu=$ac_cv_c_compiler_gnu
28730
28731
28732fi
28733echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28734echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028735if test "$ac_cv_cxx_have_bi_iterator" = yes
28736then
John Criswell40468462004-09-24 21:19:06 +000028737
28738cat >>confdefs.h <<\_ACEOF
28739#define HAVE_BI_ITERATOR 1
28740_ACEOF
28741
28742else
28743
28744cat >>confdefs.h <<\_ACEOF
28745#define HAVE_BI_ITERATOR 0
28746_ACEOF
28747
John Criswell7a73b802003-06-30 21:59:07 +000028748fi
28749
28750echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28751echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28752if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28753 echo $ECHO_N "(cached) $ECHO_C" >&6
28754else
28755
John Criswell7a73b802003-06-30 21:59:07 +000028756 ac_ext=cc
28757ac_cpp='$CXXCPP $CPPFLAGS'
28758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28761
28762 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028763/* confdefs.h. */
28764_ACEOF
28765cat confdefs.h >>conftest.$ac_ext
28766cat >>conftest.$ac_ext <<_ACEOF
28767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028768#include <iterator>
28769#ifdef HAVE_NAMESPACES
28770using namespace std;
28771#endif
John Criswell7a73b802003-06-30 21:59:07 +000028772int
28773main ()
28774{
John Criswellc78022e2003-07-29 19:11:58 +000028775forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028776 ;
28777 return 0;
28778}
28779_ACEOF
28780rm -f conftest.$ac_objext
28781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028782 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028784 grep -v '^ *+' conftest.er1 >conftest.err
28785 rm -f conftest.er1
28786 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028789 { ac_try='test -z "$ac_cxx_werror_flag"
28790 || test ! -s conftest.err'
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; } &&
28796 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802 ac_cv_cxx_have_fwd_iterator=yes
28803else
28804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028805sed 's/^/| /' conftest.$ac_ext >&5
28806
John Criswell7a73b802003-06-30 21:59:07 +000028807ac_cv_cxx_have_fwd_iterator=no
28808fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028810 ac_ext=c
28811ac_cpp='$CPP $CPPFLAGS'
28812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28814ac_compiler_gnu=$ac_cv_c_compiler_gnu
28815
28816
28817fi
28818echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28819echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028820if test "$ac_cv_cxx_have_fwd_iterator" = yes
28821then
John Criswell40468462004-09-24 21:19:06 +000028822
28823cat >>confdefs.h <<\_ACEOF
28824#define HAVE_FWD_ITERATOR 1
28825_ACEOF
28826
28827else
28828
28829cat >>confdefs.h <<\_ACEOF
28830#define HAVE_FWD_ITERATOR 0
28831_ACEOF
28832
John Criswell7a73b802003-06-30 21:59:07 +000028833fi
28834
28835
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028836echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28837echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28838if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28839 echo $ECHO_N "(cached) $ECHO_C" >&6
28840else
28841 ac_ext=cc
28842ac_cpp='$CXXCPP $CPPFLAGS'
28843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28846
Reid Spencerabec8f92004-10-27 23:03:44 +000028847 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028848/* confdefs.h. */
28849_ACEOF
28850cat confdefs.h >>conftest.$ac_ext
28851cat >>conftest.$ac_ext <<_ACEOF
28852/* end confdefs.h. */
28853#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028854int
28855main ()
28856{
28857float f; isnan(f);
28858 ;
28859 return 0;
28860}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028861_ACEOF
28862rm -f conftest.$ac_objext
28863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028864 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028866 grep -v '^ *+' conftest.er1 >conftest.err
28867 rm -f conftest.er1
28868 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028871 { ac_try='test -z "$ac_cxx_werror_flag"
28872 || test ! -s conftest.err'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 ac_cv_func_isnan_in_math_h=yes
28885else
28886 echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889ac_cv_func_isnan_in_math_h=no
28890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028892 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028893ac_cpp='$CPP $CPPFLAGS'
28894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28896ac_compiler_gnu=$ac_cv_c_compiler_gnu
28897
28898fi
28899echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28900echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028901
28902
28903if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028904
28905cat >>confdefs.h <<\_ACEOF
28906#define HAVE_ISNAN_IN_MATH_H 1
28907_ACEOF
28908
Reid Spencerabec8f92004-10-27 23:03:44 +000028909fi
28910
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028911echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28912echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28913if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28914 echo $ECHO_N "(cached) $ECHO_C" >&6
28915else
28916 ac_ext=cc
28917ac_cpp='$CXXCPP $CPPFLAGS'
28918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28921
Reid Spencerabec8f92004-10-27 23:03:44 +000028922 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028923/* confdefs.h. */
28924_ACEOF
28925cat confdefs.h >>conftest.$ac_ext
28926cat >>conftest.$ac_ext <<_ACEOF
28927/* end confdefs.h. */
28928#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028929int
28930main ()
28931{
28932float f; isnan(f);
28933 ;
28934 return 0;
28935}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028936_ACEOF
28937rm -f conftest.$ac_objext
28938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028939 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028940 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028941 grep -v '^ *+' conftest.er1 >conftest.err
28942 rm -f conftest.er1
28943 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028946 { ac_try='test -z "$ac_cxx_werror_flag"
28947 || test ! -s conftest.err'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; } &&
28953 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; }; then
28959 ac_cv_func_isnan_in_cmath=yes
28960else
28961 echo "$as_me: failed program was:" >&5
28962sed 's/^/| /' conftest.$ac_ext >&5
28963
28964ac_cv_func_isnan_in_cmath=no
28965fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028967 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028968ac_cpp='$CPP $CPPFLAGS'
28969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28971ac_compiler_gnu=$ac_cv_c_compiler_gnu
28972
28973fi
28974echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28975echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028976
28977if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028978
28979cat >>confdefs.h <<\_ACEOF
28980#define HAVE_ISNAN_IN_CMATH 1
28981_ACEOF
28982
Reid Spencerabec8f92004-10-27 23:03:44 +000028983fi
28984
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028985echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28986echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28987if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28988 echo $ECHO_N "(cached) $ECHO_C" >&6
28989else
28990 ac_ext=cc
28991ac_cpp='$CXXCPP $CPPFLAGS'
28992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28995
Reid Spencerabec8f92004-10-27 23:03:44 +000028996 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028997/* confdefs.h. */
28998_ACEOF
28999cat confdefs.h >>conftest.$ac_ext
29000cat >>conftest.$ac_ext <<_ACEOF
29001/* end confdefs.h. */
29002#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029003int
29004main ()
29005{
29006float f; std::isnan(f);
29007 ;
29008 return 0;
29009}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029010_ACEOF
29011rm -f conftest.$ac_objext
29012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029013 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029015 grep -v '^ *+' conftest.er1 >conftest.err
29016 rm -f conftest.er1
29017 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029020 { ac_try='test -z "$ac_cxx_werror_flag"
29021 || test ! -s conftest.err'
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; } &&
29027 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 ac_cv_func_std_isnan_in_cmath=yes
29034else
29035 echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
29038ac_cv_func_std_isnan_in_cmath=no
29039fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029041 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029042ac_cpp='$CPP $CPPFLAGS'
29043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29045ac_compiler_gnu=$ac_cv_c_compiler_gnu
29046
29047fi
29048echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29049echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029050
29051if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029052
29053cat >>confdefs.h <<\_ACEOF
29054#define HAVE_STD_ISNAN_IN_CMATH 1
29055_ACEOF
29056
Reid Spencerabec8f92004-10-27 23:03:44 +000029057fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029058
29059
Brian Gaeke52a551d2004-07-21 03:14:12 +000029060echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29061echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29062if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29064else
29065 ac_ext=cc
29066ac_cpp='$CXXCPP $CPPFLAGS'
29067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29070
Reid Spencerabec8f92004-10-27 23:03:44 +000029071 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029072/* confdefs.h. */
29073_ACEOF
29074cat confdefs.h >>conftest.$ac_ext
29075cat >>conftest.$ac_ext <<_ACEOF
29076/* end confdefs.h. */
29077#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029078int
29079main ()
29080{
29081float f; isinf(f);
29082 ;
29083 return 0;
29084}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029085_ACEOF
29086rm -f conftest.$ac_objext
29087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029088 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029090 grep -v '^ *+' conftest.er1 >conftest.err
29091 rm -f conftest.er1
29092 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029095 { ac_try='test -z "$ac_cxx_werror_flag"
29096 || test ! -s conftest.err'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; } &&
29102 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104 (eval $ac_try) 2>&5
29105 ac_status=$?
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 ac_cv_func_isinf_in_math_h=yes
29109else
29110 echo "$as_me: failed program was:" >&5
29111sed 's/^/| /' conftest.$ac_ext >&5
29112
29113ac_cv_func_isinf_in_math_h=no
29114fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029116 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029117ac_cpp='$CPP $CPPFLAGS'
29118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29120ac_compiler_gnu=$ac_cv_c_compiler_gnu
29121
29122fi
29123echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29124echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029125
29126if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029127
29128cat >>confdefs.h <<\_ACEOF
29129#define HAVE_ISINF_IN_MATH_H 1
29130_ACEOF
29131
Reid Spencerabec8f92004-10-27 23:03:44 +000029132fi
29133
Brian Gaeke52a551d2004-07-21 03:14:12 +000029134echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29135echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29136if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138else
29139 ac_ext=cc
29140ac_cpp='$CXXCPP $CPPFLAGS'
29141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29144
Reid Spencerabec8f92004-10-27 23:03:44 +000029145 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029146/* confdefs.h. */
29147_ACEOF
29148cat confdefs.h >>conftest.$ac_ext
29149cat >>conftest.$ac_ext <<_ACEOF
29150/* end confdefs.h. */
29151#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029152int
29153main ()
29154{
29155float f; isinf(f);
29156 ;
29157 return 0;
29158}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029159_ACEOF
29160rm -f conftest.$ac_objext
29161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029162 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029164 grep -v '^ *+' conftest.er1 >conftest.err
29165 rm -f conftest.er1
29166 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029169 { ac_try='test -z "$ac_cxx_werror_flag"
29170 || test ! -s conftest.err'
29171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172 (eval $ac_try) 2>&5
29173 ac_status=$?
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); }; } &&
29176 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29179 ac_status=$?
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; }; then
29182 ac_cv_func_isinf_in_cmath=yes
29183else
29184 echo "$as_me: failed program was:" >&5
29185sed 's/^/| /' conftest.$ac_ext >&5
29186
29187ac_cv_func_isinf_in_cmath=no
29188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029190 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029191ac_cpp='$CPP $CPPFLAGS'
29192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29194ac_compiler_gnu=$ac_cv_c_compiler_gnu
29195
29196fi
29197echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29198echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029199
29200if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029201
29202cat >>confdefs.h <<\_ACEOF
29203#define HAVE_ISINF_IN_CMATH 1
29204_ACEOF
29205
Reid Spencerabec8f92004-10-27 23:03:44 +000029206fi
29207
Brian Gaeke52a551d2004-07-21 03:14:12 +000029208echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29209echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29210if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29212else
29213 ac_ext=cc
29214ac_cpp='$CXXCPP $CPPFLAGS'
29215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29218
Reid Spencerabec8f92004-10-27 23:03:44 +000029219 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
29225#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029226int
29227main ()
29228{
29229float f; std::isinf(f)}
29230 ;
29231 return 0;
29232}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029233_ACEOF
29234rm -f conftest.$ac_objext
29235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029236 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029238 grep -v '^ *+' conftest.er1 >conftest.err
29239 rm -f conftest.er1
29240 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029243 { ac_try='test -z "$ac_cxx_werror_flag"
29244 || test ! -s conftest.err'
29245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246 (eval $ac_try) 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; } &&
29250 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252 (eval $ac_try) 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 ac_cv_func_std_isinf_in_cmath=yes
29257else
29258 echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
29261ac_cv_func_std_isinf_in_cmath=no
29262fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029264 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029265ac_cpp='$CPP $CPPFLAGS'
29266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29268ac_compiler_gnu=$ac_cv_c_compiler_gnu
29269
29270fi
29271echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29272echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029273
29274if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029275
29276cat >>confdefs.h <<\_ACEOF
29277#define HAVE_STD_ISINF_IN_CMATH 1
29278_ACEOF
29279
Reid Spencerabec8f92004-10-27 23:03:44 +000029280fi
29281
Brian Gaeked59a6472004-07-21 03:33:58 +000029282echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29283echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29284if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29286else
29287 ac_ext=cc
29288ac_cpp='$CXXCPP $CPPFLAGS'
29289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29292
Reid Spencerabec8f92004-10-27 23:03:44 +000029293 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
29299#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029300int
29301main ()
29302{
29303float f; finite(f);
29304 ;
29305 return 0;
29306}
Brian Gaeked59a6472004-07-21 03:33:58 +000029307_ACEOF
29308rm -f conftest.$ac_objext
29309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029310 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029312 grep -v '^ *+' conftest.er1 >conftest.err
29313 rm -f conftest.er1
29314 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029317 { ac_try='test -z "$ac_cxx_werror_flag"
29318 || test ! -s conftest.err'
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 ac_cv_func_finite_in_ieeefp_h=yes
29331else
29332 echo "$as_me: failed program was:" >&5
29333sed 's/^/| /' conftest.$ac_ext >&5
29334
29335ac_cv_func_finite_in_ieeefp_h=no
29336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029338 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029339ac_cpp='$CPP $CPPFLAGS'
29340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29342ac_compiler_gnu=$ac_cv_c_compiler_gnu
29343
29344fi
29345echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29346echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029347
Brian Gaeke6802b552004-10-28 05:06:45 +000029348if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029349
29350cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029351#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029352_ACEOF
29353
Reid Spencerabec8f92004-10-27 23:03:44 +000029354fi
29355
29356
29357
John Criswell7a73b802003-06-30 21:59:07 +000029358
29359
29360for ac_header in stdlib.h unistd.h
29361do
29362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29363if eval "test \"\${$as_ac_Header+set}\" = set"; then
29364 echo "$as_me:$LINENO: checking for $ac_header" >&5
29365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29366if eval "test \"\${$as_ac_Header+set}\" = set"; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368fi
29369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29371else
29372 # Is the header compilable?
29373echo "$as_me:$LINENO: checking $ac_header usability" >&5
29374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29375cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029381$ac_includes_default
29382#include <$ac_header>
29383_ACEOF
29384rm -f conftest.$ac_objext
29385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029386 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029388 grep -v '^ *+' conftest.er1 >conftest.err
29389 rm -f conftest.er1
29390 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029393 { ac_try='test -z "$ac_c_werror_flag"
29394 || test ! -s conftest.err'
29395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396 (eval $ac_try) 2>&5
29397 ac_status=$?
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; }; then
29406 ac_header_compiler=yes
29407else
29408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029409sed 's/^/| /' conftest.$ac_ext >&5
29410
John Criswell7a73b802003-06-30 21:59:07 +000029411ac_header_compiler=no
29412fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29415echo "${ECHO_T}$ac_header_compiler" >&6
29416
29417# Is the header present?
29418echo "$as_me:$LINENO: checking $ac_header presence" >&5
29419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29420cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029421/* confdefs.h. */
29422_ACEOF
29423cat confdefs.h >>conftest.$ac_ext
29424cat >>conftest.$ac_ext <<_ACEOF
29425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029426#include <$ac_header>
29427_ACEOF
29428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29430 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029431 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029432 rm -f conftest.er1
29433 cat conftest.err >&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } >/dev/null; then
29436 if test -s conftest.err; then
29437 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029439 else
29440 ac_cpp_err=
29441 fi
29442else
29443 ac_cpp_err=yes
29444fi
29445if test -z "$ac_cpp_err"; then
29446 ac_header_preproc=yes
29447else
29448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029449sed 's/^/| /' conftest.$ac_ext >&5
29450
John Criswell7a73b802003-06-30 21:59:07 +000029451 ac_header_preproc=no
29452fi
29453rm -f conftest.err conftest.$ac_ext
29454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29455echo "${ECHO_T}$ac_header_preproc" >&6
29456
29457# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29459 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29464 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029465 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029466 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029479 (
29480 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029481## ----------------------------------- ##
29482## Report this to llvmbugs@cs.uiuc.edu ##
29483## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029484_ASBOX
29485 ) |
29486 sed "s/^/$as_me: WARNING: /" >&2
29487 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029488esac
29489echo "$as_me:$LINENO: checking for $ac_header" >&5
29490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29491if eval "test \"\${$as_ac_Header+set}\" = set"; then
29492 echo $ECHO_N "(cached) $ECHO_C" >&6
29493else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029494 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029495fi
29496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29498
29499fi
29500if test `eval echo '${'$as_ac_Header'}'` = yes; then
29501 cat >>confdefs.h <<_ACEOF
29502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29503_ACEOF
29504
29505fi
29506
29507done
29508
29509
29510for ac_func in getpagesize
29511do
29512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29513echo "$as_me:$LINENO: checking for $ac_func" >&5
29514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29515if eval "test \"\${$as_ac_var+set}\" = set"; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29517else
29518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029519/* confdefs.h. */
29520_ACEOF
29521cat confdefs.h >>conftest.$ac_ext
29522cat >>conftest.$ac_ext <<_ACEOF
29523/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29526#define $ac_func innocuous_$ac_func
29527
John Criswell7a73b802003-06-30 21:59:07 +000029528/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029529 which can conflict with char $ac_func (); below.
29530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29531 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029532
John Criswell0c38eaf2003-09-10 15:17:25 +000029533#ifdef __STDC__
29534# include <limits.h>
29535#else
29536# include <assert.h>
29537#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029538
29539#undef $ac_func
29540
John Criswell7a73b802003-06-30 21:59:07 +000029541/* Override any gcc2 internal prototype to avoid an error. */
29542#ifdef __cplusplus
29543extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029544{
John Criswell7a73b802003-06-30 21:59:07 +000029545#endif
29546/* We use char because int might match the return type of a gcc2
29547 builtin and then its argument prototype would still apply. */
29548char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029549/* The GNU C library defines this for functions which it implements
29550 to always fail with ENOSYS. Some functions are actually named
29551 something starting with __ and the normal name is an alias. */
29552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29553choke me
29554#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029555char (*f) () = $ac_func;
29556#endif
29557#ifdef __cplusplus
29558}
John Criswell7a73b802003-06-30 21:59:07 +000029559#endif
29560
John Criswell0c38eaf2003-09-10 15:17:25 +000029561int
29562main ()
29563{
29564return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029565 ;
29566 return 0;
29567}
29568_ACEOF
29569rm -f conftest.$ac_objext conftest$ac_exeext
29570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029571 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029572 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029573 grep -v '^ *+' conftest.er1 >conftest.err
29574 rm -f conftest.er1
29575 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029578 { ac_try='test -z "$ac_c_werror_flag"
29579 || test ! -s conftest.err'
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29582 ac_status=$?
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; } &&
29585 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29587 (eval $ac_try) 2>&5
29588 ac_status=$?
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); }; }; then
29591 eval "$as_ac_var=yes"
29592else
29593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029594sed 's/^/| /' conftest.$ac_ext >&5
29595
John Criswell7a73b802003-06-30 21:59:07 +000029596eval "$as_ac_var=no"
29597fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029598rm -f conftest.err conftest.$ac_objext \
29599 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029600fi
29601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29603if test `eval echo '${'$as_ac_var'}'` = yes; then
29604 cat >>confdefs.h <<_ACEOF
29605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29606_ACEOF
29607
29608fi
29609done
29610
29611echo "$as_me:$LINENO: checking for working mmap" >&5
29612echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29613if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29615else
29616 if test "$cross_compiling" = yes; then
29617 ac_cv_func_mmap_fixed_mapped=no
29618else
29619 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029620/* confdefs.h. */
29621_ACEOF
29622cat confdefs.h >>conftest.$ac_ext
29623cat >>conftest.$ac_ext <<_ACEOF
29624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029625$ac_includes_default
29626/* malloc might have been renamed as rpl_malloc. */
29627#undef malloc
29628
29629/* Thanks to Mike Haertel and Jim Avera for this test.
29630 Here is a matrix of mmap possibilities:
29631 mmap private not fixed
29632 mmap private fixed at somewhere currently unmapped
29633 mmap private fixed at somewhere already mapped
29634 mmap shared not fixed
29635 mmap shared fixed at somewhere currently unmapped
29636 mmap shared fixed at somewhere already mapped
29637 For private mappings, we should verify that changes cannot be read()
29638 back from the file, nor mmap's back from the file at a different
29639 address. (There have been systems where private was not correctly
29640 implemented like the infamous i386 svr4.0, and systems where the
29641 VM page cache was not coherent with the file system buffer cache
29642 like early versions of FreeBSD and possibly contemporary NetBSD.)
29643 For shared mappings, we should conversely verify that changes get
29644 propagated back to all the places they're supposed to be.
29645
29646 Grep wants private fixed already mapped.
29647 The main things grep needs to know about mmap are:
29648 * does it exist and is it safe to write into the mmap'd area
29649 * how to use it (BSD variants) */
29650
29651#include <fcntl.h>
29652#include <sys/mman.h>
29653
29654#if !STDC_HEADERS && !HAVE_STDLIB_H
29655char *malloc ();
29656#endif
29657
29658/* This mess was copied from the GNU getpagesize.h. */
29659#if !HAVE_GETPAGESIZE
29660/* Assume that all systems that can run configure have sys/param.h. */
29661# if !HAVE_SYS_PARAM_H
29662# define HAVE_SYS_PARAM_H 1
29663# endif
29664
29665# ifdef _SC_PAGESIZE
29666# define getpagesize() sysconf(_SC_PAGESIZE)
29667# else /* no _SC_PAGESIZE */
29668# if HAVE_SYS_PARAM_H
29669# include <sys/param.h>
29670# ifdef EXEC_PAGESIZE
29671# define getpagesize() EXEC_PAGESIZE
29672# else /* no EXEC_PAGESIZE */
29673# ifdef NBPG
29674# define getpagesize() NBPG * CLSIZE
29675# ifndef CLSIZE
29676# define CLSIZE 1
29677# endif /* no CLSIZE */
29678# else /* no NBPG */
29679# ifdef NBPC
29680# define getpagesize() NBPC
29681# else /* no NBPC */
29682# ifdef PAGESIZE
29683# define getpagesize() PAGESIZE
29684# endif /* PAGESIZE */
29685# endif /* no NBPC */
29686# endif /* no NBPG */
29687# endif /* no EXEC_PAGESIZE */
29688# else /* no HAVE_SYS_PARAM_H */
29689# define getpagesize() 8192 /* punt totally */
29690# endif /* no HAVE_SYS_PARAM_H */
29691# endif /* no _SC_PAGESIZE */
29692
29693#endif /* no HAVE_GETPAGESIZE */
29694
29695int
29696main ()
29697{
29698 char *data, *data2, *data3;
29699 int i, pagesize;
29700 int fd;
29701
29702 pagesize = getpagesize ();
29703
29704 /* First, make a file with some known garbage in it. */
29705 data = (char *) malloc (pagesize);
29706 if (!data)
29707 exit (1);
29708 for (i = 0; i < pagesize; ++i)
29709 *(data + i) = rand ();
29710 umask (0);
29711 fd = creat ("conftest.mmap", 0600);
29712 if (fd < 0)
29713 exit (1);
29714 if (write (fd, data, pagesize) != pagesize)
29715 exit (1);
29716 close (fd);
29717
29718 /* Next, try to mmap the file at a fixed address which already has
29719 something else allocated at it. If we can, also make sure that
29720 we see the same garbage. */
29721 fd = open ("conftest.mmap", O_RDWR);
29722 if (fd < 0)
29723 exit (1);
29724 data2 = (char *) malloc (2 * pagesize);
29725 if (!data2)
29726 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029727 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029728 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029729 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029730 exit (1);
29731 for (i = 0; i < pagesize; ++i)
29732 if (*(data + i) != *(data2 + i))
29733 exit (1);
29734
29735 /* Finally, make sure that changes to the mapped area do not
29736 percolate back to the file as seen by read(). (This is a bug on
29737 some variants of i386 svr4.0.) */
29738 for (i = 0; i < pagesize; ++i)
29739 *(data2 + i) = *(data2 + i) + 1;
29740 data3 = (char *) malloc (pagesize);
29741 if (!data3)
29742 exit (1);
29743 if (read (fd, data3, pagesize) != pagesize)
29744 exit (1);
29745 for (i = 0; i < pagesize; ++i)
29746 if (*(data + i) != *(data3 + i))
29747 exit (1);
29748 close (fd);
29749 exit (0);
29750}
29751_ACEOF
29752rm -f conftest$ac_exeext
29753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29754 (eval $ac_link) 2>&5
29755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29759 (eval $ac_try) 2>&5
29760 ac_status=$?
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); }; }; then
29763 ac_cv_func_mmap_fixed_mapped=yes
29764else
29765 echo "$as_me: program exited with status $ac_status" >&5
29766echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029767sed 's/^/| /' conftest.$ac_ext >&5
29768
John Criswell7a73b802003-06-30 21:59:07 +000029769( exit $ac_status )
29770ac_cv_func_mmap_fixed_mapped=no
29771fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029772rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029773fi
29774fi
29775echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29776echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29777if test $ac_cv_func_mmap_fixed_mapped = yes; then
29778
29779cat >>confdefs.h <<\_ACEOF
29780#define HAVE_MMAP 1
29781_ACEOF
29782
29783fi
29784rm -f conftest.mmap
29785
29786echo "$as_me:$LINENO: checking for mmap of files" >&5
29787echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29788if test "${ac_cv_func_mmap_file+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29790else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029791 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029792ac_cpp='$CPP $CPPFLAGS'
29793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29795ac_compiler_gnu=$ac_cv_c_compiler_gnu
29796
29797 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029798 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029799else
29800 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029801
Reid Spencer777ce172004-09-20 04:09:56 +000029802 /* confdefs.h. */
29803_ACEOF
29804cat confdefs.h >>conftest.$ac_ext
29805cat >>conftest.$ac_ext <<_ACEOF
29806/* end confdefs.h. */
29807
John Criswell7a73b802003-06-30 21:59:07 +000029808#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029809#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029810#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029811
29812int
29813main ()
29814{
John Criswell7a73b802003-06-30 21:59:07 +000029815
29816 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029817 fd = creat ("foo",0777);
29818 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29819 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029820 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029821 ;
29822 return 0;
29823}
John Criswell7a73b802003-06-30 21:59:07 +000029824_ACEOF
29825rm -f conftest$ac_exeext
29826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29827 (eval $ac_link) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 ac_cv_func_mmap_file=yes
29837else
29838 echo "$as_me: program exited with status $ac_status" >&5
29839echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029840sed 's/^/| /' conftest.$ac_ext >&5
29841
John Criswell7a73b802003-06-30 21:59:07 +000029842( exit $ac_status )
29843ac_cv_func_mmap_file=no
29844fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029845rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029846fi
29847 ac_ext=c
29848ac_cpp='$CPP $CPPFLAGS'
29849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29851ac_compiler_gnu=$ac_cv_c_compiler_gnu
29852
29853
29854fi
29855echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29856echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29857if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029858
29859cat >>confdefs.h <<\_ACEOF
29860#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029861_ACEOF
29862
29863 MMAP_FILE=yes
29864
29865fi
29866
Reid Spencer7931a782004-12-27 06:15:02 +000029867echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29868echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29869if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29871else
Reid Spencer582a23c2004-12-29 07:07:57 +000029872 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000029873 ac_cv_need_dev_zero_for_mmap=yes
29874 else
29875 ac_cv_need_dev_zero_for_mmap=no
29876 fi
29877
29878fi
29879echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29880echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29881if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29882
29883cat >>confdefs.h <<\_ACEOF
29884#define NEED_DEV_ZERO_FOR_MMAP 1
29885_ACEOF
29886
29887fi
John Criswell7a73b802003-06-30 21:59:07 +000029888echo "$as_me:$LINENO: checking for mprotect" >&5
29889echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29890if test "${ac_cv_func_mprotect+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29892else
29893 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029894/* confdefs.h. */
29895_ACEOF
29896cat confdefs.h >>conftest.$ac_ext
29897cat >>conftest.$ac_ext <<_ACEOF
29898/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029899/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29901#define mprotect innocuous_mprotect
29902
John Criswell7a73b802003-06-30 21:59:07 +000029903/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029904 which can conflict with char mprotect (); below.
29905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29906 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029907
John Criswell0c38eaf2003-09-10 15:17:25 +000029908#ifdef __STDC__
29909# include <limits.h>
29910#else
29911# include <assert.h>
29912#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029913
29914#undef mprotect
29915
John Criswell7a73b802003-06-30 21:59:07 +000029916/* Override any gcc2 internal prototype to avoid an error. */
29917#ifdef __cplusplus
29918extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029919{
John Criswell7a73b802003-06-30 21:59:07 +000029920#endif
29921/* We use char because int might match the return type of a gcc2
29922 builtin and then its argument prototype would still apply. */
29923char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029924/* The GNU C library defines this for functions which it implements
29925 to always fail with ENOSYS. Some functions are actually named
29926 something starting with __ and the normal name is an alias. */
29927#if defined (__stub_mprotect) || defined (__stub___mprotect)
29928choke me
29929#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029930char (*f) () = mprotect;
29931#endif
29932#ifdef __cplusplus
29933}
John Criswell7a73b802003-06-30 21:59:07 +000029934#endif
29935
John Criswell0c38eaf2003-09-10 15:17:25 +000029936int
29937main ()
29938{
29939return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029940 ;
29941 return 0;
29942}
29943_ACEOF
29944rm -f conftest.$ac_objext conftest$ac_exeext
29945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029946 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029947 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029948 grep -v '^ *+' conftest.er1 >conftest.err
29949 rm -f conftest.er1
29950 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029953 { ac_try='test -z "$ac_c_werror_flag"
29954 || test ! -s conftest.err'
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; } &&
29960 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29962 (eval $ac_try) 2>&5
29963 ac_status=$?
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; }; then
29966 ac_cv_func_mprotect=yes
29967else
29968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029969sed 's/^/| /' conftest.$ac_ext >&5
29970
John Criswell7a73b802003-06-30 21:59:07 +000029971ac_cv_func_mprotect=no
29972fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029973rm -f conftest.err conftest.$ac_objext \
29974 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029975fi
29976echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29977echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29978if test $ac_cv_func_mprotect = yes; then
29979 :
29980else
29981 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29982echo "$as_me: error: Function mprotect() required but not found" >&2;}
29983 { (exit 1); exit 1; }; }
29984fi
29985
29986
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029987if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029988then
Reid Spencer582a23c2004-12-29 07:07:57 +000029989 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
29990echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029991fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029992if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029993then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029994 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29995echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029996fi
John Criswell7a73b802003-06-30 21:59:07 +000029997
29998
Brian Gaekef3b24102003-11-16 18:38:14 +000029999echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30000echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030001if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30002 echo $ECHO_N "(cached) $ECHO_C" >&6
30003else
30004 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030005if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030006 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030007 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030008 if test $? -eq 0 ; then
30009 llvm_cv_llvmgcc_sanity="yes"
30010 fi
30011 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030012fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030013fi
30014echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30015echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30016
30017if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030018 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030019 LLVMCC1=$llvmcc1path
30020
Reid Spencer502935f2004-12-22 05:56:56 +000030021 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030022 LLVMCC1PLUS=$llvmcc1pluspath
30023
Reid Spencer502935f2004-12-22 05:56:56 +000030024 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30025 LLVMGCCDIR=$llvmgccdir
30026
Brian Gaekef3b24102003-11-16 18:38:14 +000030027fi
30028
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030029SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030030
30031
Reid Spencere9de0912004-08-20 09:03:57 +000030032# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030033# information into substitutions that will end up in Makefile.config.in
30034# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030035eval LLVM_PREFIX="${prefix}";
30036eval LLVM_BINDIR="${prefix}/bin";
30037eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030038eval LLVM_DATADIR="${prefix}/share/llvm";
30039eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30040eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030041eval LLVM_INCLUDEDIR="${prefix}/include";
30042eval LLVM_INFODIR="${prefix}/info";
30043eval LLVM_MANDIR="${prefix}/man";
30044LLVM_CONFIGTIME=`date`
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030056# Place the various directores into the config.h file as #defines so that we
30057# can know about the installation paths within LLVM.
30058
Reid Spencere9de0912004-08-20 09:03:57 +000030059cat >>confdefs.h <<_ACEOF
30060#define LLVM_PREFIX "$LLVM_PREFIX"
30061_ACEOF
30062
30063
30064cat >>confdefs.h <<_ACEOF
30065#define LLVM_BINDIR "$LLVM_BINDIR"
30066_ACEOF
30067
30068
30069cat >>confdefs.h <<_ACEOF
30070#define LLVM_LIBDIR "$LLVM_LIBDIR"
30071_ACEOF
30072
30073
30074cat >>confdefs.h <<_ACEOF
30075#define LLVM_DATADIR "$LLVM_DATADIR"
30076_ACEOF
30077
30078
30079cat >>confdefs.h <<_ACEOF
30080#define LLVM_DATADIR "$LLVM_DOCSDIR"
30081_ACEOF
30082
30083
30084cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030085#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030086_ACEOF
30087
30088
30089cat >>confdefs.h <<_ACEOF
30090#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30091_ACEOF
30092
30093
30094cat >>confdefs.h <<_ACEOF
30095#define LLVM_INFODIR "$LLVM_INFODIR"
30096_ACEOF
30097
30098
30099cat >>confdefs.h <<_ACEOF
30100#define LLVM_MANDIR "$LLVM_MANDIR"
30101_ACEOF
30102
30103
30104cat >>confdefs.h <<_ACEOF
30105#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30106_ACEOF
30107
30108
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030109
30110 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30111
30112
30113 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30114
30115 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30116
30117 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30118
30119 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30120
30121 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30122
30123
30124 ac_config_files="$ac_config_files Makefile.config"
30125
30126
30127 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30128
30129
Reid Spencer1f319422004-11-29 04:56:35 +000030130 ac_config_files="$ac_config_files docs/doxygen.cfg"
30131
30132
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030133 ac_config_commands="$ac_config_commands Makefile"
30134
30135
30136 ac_config_commands="$ac_config_commands Makefile.common"
30137
30138
30139 ac_config_commands="$ac_config_commands examples/Makefile"
30140
30141
30142 ac_config_commands="$ac_config_commands lib/Makefile"
30143
30144
30145 ac_config_commands="$ac_config_commands runtime/Makefile"
30146
30147
30148 ac_config_commands="$ac_config_commands test/Makefile"
30149
30150
30151 ac_config_commands="$ac_config_commands test/Makefile.tests"
30152
30153
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030154 ac_config_commands="$ac_config_commands tools/Makefile"
30155
30156
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030157 ac_config_commands="$ac_config_commands utils/Makefile"
30158
30159
30160 ac_config_commands="$ac_config_commands projects/Makefile"
30161
30162
30163
John Criswell7a73b802003-06-30 21:59:07 +000030164cat >confcache <<\_ACEOF
30165# This file is a shell script that caches the results of configure
30166# tests run on this system so they can be shared between configure
30167# scripts and configure runs, see configure's option --config-cache.
30168# It is not useful on other systems. If it contains results you don't
30169# want to keep, you may remove or edit it.
30170#
30171# config.status only pays attention to the cache file if you give it
30172# the --recheck option to rerun configure.
30173#
John Criswell0c38eaf2003-09-10 15:17:25 +000030174# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030175# loading this file, other *unset* `ac_cv_foo' will be assigned the
30176# following values.
30177
30178_ACEOF
30179
30180# The following way of writing the cache mishandles newlines in values,
30181# but we know of no workaround that is simple, portable, and efficient.
30182# So, don't put newlines in cache variables' values.
30183# Ultrix sh set writes to stderr and can't be redirected directly,
30184# and sets the high bit in the cache file unless we assign to the vars.
30185{
30186 (set) 2>&1 |
30187 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30188 *ac_space=\ *)
30189 # `set' does not quote correctly, so add quotes (double-quote
30190 # substitution turns \\\\ into \\, and sed turns \\ into \).
30191 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030192 "s/'/'\\\\''/g;
30193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030194 ;;
30195 *)
30196 # `set' quotes correctly as required by POSIX, so do not add quotes.
30197 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030199 ;;
30200 esac;
30201} |
30202 sed '
30203 t clear
30204 : clear
30205 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30206 t end
30207 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30208 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030209if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030210 if test -w $cache_file; then
30211 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30212 cat confcache >$cache_file
30213 else
30214 echo "not updating unwritable cache $cache_file"
30215 fi
30216fi
30217rm -f confcache
30218
30219test "x$prefix" = xNONE && prefix=$ac_default_prefix
30220# Let make expand exec_prefix.
30221test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30222
30223# VPATH may cause trouble with some makes, so we remove $(srcdir),
30224# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30225# trailing colons and then remove the whole line if VPATH becomes empty
30226# (actually we leave an empty line to preserve line numbers).
30227if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030228 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030229s/:*\$(srcdir):*/:/;
30230s/:*\${srcdir}:*/:/;
30231s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030232s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030233s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030234s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030235}'
30236fi
30237
30238DEFS=-DHAVE_CONFIG_H
30239
John Criswell0c38eaf2003-09-10 15:17:25 +000030240ac_libobjs=
30241ac_ltlibobjs=
30242for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30243 # 1. Remove the extension, and $U if already installed.
30244 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030245 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030246 # 2. Add them.
30247 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30248 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30249done
30250LIBOBJS=$ac_libobjs
30251
30252LTLIBOBJS=$ac_ltlibobjs
30253
30254
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030255if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30256 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30257Usually this means the macro was only invoked conditionally." >&5
30258echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30259Usually this means the macro was only invoked conditionally." >&2;}
30260 { (exit 1); exit 1; }; }
30261fi
30262if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30263 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30264Usually this means the macro was only invoked conditionally." >&5
30265echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30266Usually this means the macro was only invoked conditionally." >&2;}
30267 { (exit 1); exit 1; }; }
30268fi
John Criswell7a73b802003-06-30 21:59:07 +000030269
30270: ${CONFIG_STATUS=./config.status}
30271ac_clean_files_save=$ac_clean_files
30272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30273{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30274echo "$as_me: creating $CONFIG_STATUS" >&6;}
30275cat >$CONFIG_STATUS <<_ACEOF
30276#! $SHELL
30277# Generated by $as_me.
30278# Run this file to recreate the current configuration.
30279# Compiler output produced by configure, useful for debugging
30280# configure, is in config.log if it exists.
30281
30282debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030283ac_cs_recheck=false
30284ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030285SHELL=\${CONFIG_SHELL-$SHELL}
30286_ACEOF
30287
30288cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030289## --------------------- ##
30290## M4sh Initialization. ##
30291## --------------------- ##
30292
30293# Be Bourne compatible
30294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30295 emulate sh
30296 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030297 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30298 # is contrary to our usage. Disable this feature.
30299 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030300elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30301 set -o posix
30302fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030303DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030304
John Criswell7a73b802003-06-30 21:59:07 +000030305# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030306if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030307 as_unset=unset
30308else
30309 as_unset=false
30310fi
30311
John Criswell0c38eaf2003-09-10 15:17:25 +000030312
30313# Work around bugs in pre-3.0 UWIN ksh.
30314$as_unset ENV MAIL MAILPATH
30315PS1='$ '
30316PS2='> '
30317PS4='+ '
30318
30319# NLS nuisances.
30320for as_var in \
30321 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30322 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30323 LC_TELEPHONE LC_TIME
30324do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030325 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030326 eval $as_var=C; export $as_var
30327 else
30328 $as_unset $as_var
30329 fi
30330done
30331
30332# Required to use basename.
30333if expr a : '\(a\)' >/dev/null 2>&1; then
30334 as_expr=expr
30335else
30336 as_expr=false
30337fi
30338
30339if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30340 as_basename=basename
30341else
30342 as_basename=false
30343fi
John Criswell7a73b802003-06-30 21:59:07 +000030344
30345
30346# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030347as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030348$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30349 X"$0" : 'X\(//\)$' \| \
30350 X"$0" : 'X\(/\)$' \| \
30351 . : '\(.\)' 2>/dev/null ||
30352echo X/"$0" |
30353 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30354 /^X\/\(\/\/\)$/{ s//\1/; q; }
30355 /^X\/\(\/\).*/{ s//\1/; q; }
30356 s/.*/./; q'`
30357
John Criswell0c38eaf2003-09-10 15:17:25 +000030358
John Criswell7a73b802003-06-30 21:59:07 +000030359# PATH needs CR, and LINENO needs CR and PATH.
30360# Avoid depending upon Character Ranges.
30361as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30362as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30363as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30364as_cr_digits='0123456789'
30365as_cr_alnum=$as_cr_Letters$as_cr_digits
30366
30367# The user is always right.
30368if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030369 echo "#! /bin/sh" >conf$$.sh
30370 echo "exit 0" >>conf$$.sh
30371 chmod +x conf$$.sh
30372 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030373 PATH_SEPARATOR=';'
30374 else
30375 PATH_SEPARATOR=:
30376 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030377 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030378fi
30379
30380
30381 as_lineno_1=$LINENO
30382 as_lineno_2=$LINENO
30383 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30384 test "x$as_lineno_1" != "x$as_lineno_2" &&
30385 test "x$as_lineno_3" = "x$as_lineno_2" || {
30386 # Find who we are. Look in the path if we contain no path at all
30387 # relative or not.
30388 case $0 in
30389 *[\\/]* ) as_myself=$0 ;;
30390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30391for as_dir in $PATH
30392do
30393 IFS=$as_save_IFS
30394 test -z "$as_dir" && as_dir=.
30395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30396done
30397
30398 ;;
30399 esac
30400 # We did not find ourselves, most probably we were run as `sh COMMAND'
30401 # in which case we are not to be found in the path.
30402 if test "x$as_myself" = x; then
30403 as_myself=$0
30404 fi
30405 if test ! -f "$as_myself"; then
30406 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30407echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30408 { (exit 1); exit 1; }; }
30409 fi
30410 case $CONFIG_SHELL in
30411 '')
30412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30413for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30414do
30415 IFS=$as_save_IFS
30416 test -z "$as_dir" && as_dir=.
30417 for as_base in sh bash ksh sh5; do
30418 case $as_dir in
30419 /*)
30420 if ("$as_dir/$as_base" -c '
30421 as_lineno_1=$LINENO
30422 as_lineno_2=$LINENO
30423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30424 test "x$as_lineno_1" != "x$as_lineno_2" &&
30425 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030426 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30427 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030428 CONFIG_SHELL=$as_dir/$as_base
30429 export CONFIG_SHELL
30430 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30431 fi;;
30432 esac
30433 done
30434done
30435;;
30436 esac
30437
30438 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30439 # uniformly replaced by the line number. The first 'sed' inserts a
30440 # line-number line before each line; the second 'sed' does the real
30441 # work. The second script uses 'N' to pair each line-number line
30442 # with the numbered line, and appends trailing '-' during
30443 # substitution so that $LINENO is not a special case at line end.
30444 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30445 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30446 sed '=' <$as_myself |
30447 sed '
30448 N
30449 s,$,-,
30450 : loop
30451 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30452 t loop
30453 s,-$,,
30454 s,^['$as_cr_digits']*\n,,
30455 ' >$as_me.lineno &&
30456 chmod +x $as_me.lineno ||
30457 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30458echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30459 { (exit 1); exit 1; }; }
30460
30461 # Don't try to exec as it changes $[0], causing all sort of problems
30462 # (the dirname of $[0] is not the place where we might find the
30463 # original and so on. Autoconf is especially sensible to this).
30464 . ./$as_me.lineno
30465 # Exit status is that of the last command.
30466 exit
30467}
30468
30469
30470case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30471 *c*,-n*) ECHO_N= ECHO_C='
30472' ECHO_T=' ' ;;
30473 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30474 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30475esac
30476
30477if expr a : '\(a\)' >/dev/null 2>&1; then
30478 as_expr=expr
30479else
30480 as_expr=false
30481fi
30482
30483rm -f conf$$ conf$$.exe conf$$.file
30484echo >conf$$.file
30485if ln -s conf$$.file conf$$ 2>/dev/null; then
30486 # We could just check for DJGPP; but this test a) works b) is more generic
30487 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30488 if test -f conf$$.exe; then
30489 # Don't use ln at all; we don't have any links
30490 as_ln_s='cp -p'
30491 else
30492 as_ln_s='ln -s'
30493 fi
30494elif ln conf$$.file conf$$ 2>/dev/null; then
30495 as_ln_s=ln
30496else
30497 as_ln_s='cp -p'
30498fi
30499rm -f conf$$ conf$$.exe conf$$.file
30500
John Criswell0c38eaf2003-09-10 15:17:25 +000030501if mkdir -p . 2>/dev/null; then
30502 as_mkdir_p=:
30503else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030504 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030505 as_mkdir_p=false
30506fi
30507
John Criswell7a73b802003-06-30 21:59:07 +000030508as_executable_p="test -f"
30509
30510# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030511as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030512
30513# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030514as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030515
30516
30517# IFS
30518# We need space, tab and new line, in precisely that order.
30519as_nl='
30520'
30521IFS=" $as_nl"
30522
30523# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030524$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030525
30526exec 6>&1
30527
30528# Open the log real soon, to keep \$[0] and so on meaningful, and to
30529# report actual input values of CONFIG_FILES etc. instead of their
30530# values after options handling. Logging --version etc. is OK.
30531exec 5>>config.log
30532{
30533 echo
30534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30535## Running $as_me. ##
30536_ASBOX
30537} >&5
30538cat >&5 <<_CSEOF
30539
Reid Spencerabec8f92004-10-27 23:03:44 +000030540This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030541generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030542
30543 CONFIG_FILES = $CONFIG_FILES
30544 CONFIG_HEADERS = $CONFIG_HEADERS
30545 CONFIG_LINKS = $CONFIG_LINKS
30546 CONFIG_COMMANDS = $CONFIG_COMMANDS
30547 $ $0 $@
30548
30549_CSEOF
30550echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30551echo >&5
30552_ACEOF
30553
30554# Files that config.status was made for.
30555if test -n "$ac_config_files"; then
30556 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30557fi
30558
30559if test -n "$ac_config_headers"; then
30560 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30561fi
30562
30563if test -n "$ac_config_links"; then
30564 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30565fi
30566
30567if test -n "$ac_config_commands"; then
30568 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30569fi
30570
30571cat >>$CONFIG_STATUS <<\_ACEOF
30572
30573ac_cs_usage="\
30574\`$as_me' instantiates files from templates according to the
30575current configuration.
30576
30577Usage: $0 [OPTIONS] [FILE]...
30578
30579 -h, --help print this help, then exit
30580 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030581 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030582 -d, --debug don't remove temporary files
30583 --recheck update $as_me by reconfiguring in the same conditions
30584 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030585 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030586 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030587 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030588
30589Configuration files:
30590$config_files
30591
30592Configuration headers:
30593$config_headers
30594
John Criswellc764fbc2003-09-06 15:17:13 +000030595Configuration commands:
30596$config_commands
30597
John Criswell7a73b802003-06-30 21:59:07 +000030598Report bugs to <bug-autoconf@gnu.org>."
30599_ACEOF
30600
30601cat >>$CONFIG_STATUS <<_ACEOF
30602ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030603llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030604configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30606
Reid Spencer2706f8c2004-09-19 23:53:36 +000030607Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030608This config.status script is free software; the Free Software Foundation
30609gives unlimited permission to copy, distribute and modify it."
30610srcdir=$srcdir
30611INSTALL="$INSTALL"
30612_ACEOF
30613
30614cat >>$CONFIG_STATUS <<\_ACEOF
30615# If no file are specified by the user, then we need to provide default
30616# value. By we need to know if files were specified by the user.
30617ac_need_defaults=:
30618while test $# != 0
30619do
30620 case $1 in
30621 --*=*)
30622 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30623 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030624 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030625 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030626 -*)
30627 ac_option=$1
30628 ac_optarg=$2
30629 ac_shift=shift
30630 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030631 *) # This is not an option, so the user has probably given explicit
30632 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030633 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030634 ac_need_defaults=false;;
30635 esac
30636
John Criswell0c38eaf2003-09-10 15:17:25 +000030637 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030638 # Handling of the options.
30639_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030640cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030641 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30642 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030643 --version | --vers* | -V )
30644 echo "$ac_cs_version"; exit 0 ;;
30645 --he | --h)
30646 # Conflict between --help and --header
30647 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30648Try \`$0 --help' for more information." >&5
30649echo "$as_me: error: ambiguous option: $1
30650Try \`$0 --help' for more information." >&2;}
30651 { (exit 1); exit 1; }; };;
30652 --help | --hel | -h )
30653 echo "$ac_cs_usage"; exit 0 ;;
30654 --debug | --d* | -d )
30655 debug=: ;;
30656 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030657 $ac_shift
30658 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030659 ac_need_defaults=false;;
30660 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030661 $ac_shift
30662 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030663 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30666 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030667
30668 # This is an error.
30669 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30670Try \`$0 --help' for more information." >&5
30671echo "$as_me: error: unrecognized option: $1
30672Try \`$0 --help' for more information." >&2;}
30673 { (exit 1); exit 1; }; } ;;
30674
30675 *) ac_config_targets="$ac_config_targets $1" ;;
30676
30677 esac
30678 shift
30679done
30680
John Criswell0c38eaf2003-09-10 15:17:25 +000030681ac_configure_extra_args=
30682
30683if $ac_cs_silent; then
30684 exec 6>/dev/null
30685 ac_configure_extra_args="$ac_configure_extra_args --silent"
30686fi
30687
30688_ACEOF
30689cat >>$CONFIG_STATUS <<_ACEOF
30690if \$ac_cs_recheck; then
30691 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30692 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30693fi
30694
John Criswell7a73b802003-06-30 21:59:07 +000030695_ACEOF
30696
John Criswellc764fbc2003-09-06 15:17:13 +000030697cat >>$CONFIG_STATUS <<_ACEOF
30698#
30699# INIT-COMMANDS section.
30700#
John Criswell7a73b802003-06-30 21:59:07 +000030701
John Criswellc764fbc2003-09-06 15:17:13 +000030702${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30703${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030704${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030705${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030706${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030707${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30708${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030709${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030710${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030711${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030712
30713_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030714
30715
30716
30717cat >>$CONFIG_STATUS <<\_ACEOF
30718for ac_config_target in $ac_config_targets
30719do
30720 case "$ac_config_target" in
30721 # Handling of arguments.
30722 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030723 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30724 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30725 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30726 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030727 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030728 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30729 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030730 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030731 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030732 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030733 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30734 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030735 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030736 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030737 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030738 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030739 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030740 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30741 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030742 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30743 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030744 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30745echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30746 { (exit 1); exit 1; }; };;
30747 esac
30748done
30749
30750# If the user did not use the arguments to specify the items to instantiate,
30751# then the envvar interface is used. Set only those that are not.
30752# We use the long form for the default assignment because of an extremely
30753# bizarre bug on SunOS 4.1.3.
30754if $ac_need_defaults; then
30755 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30756 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030757 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030758fi
30759
John Criswell0c38eaf2003-09-10 15:17:25 +000030760# Have a temporary directory for convenience. Make it in the build tree
30761# simply because there is no reason to put it here, and in addition,
30762# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030763# Create a temporary directory, and hook for its removal unless debugging.
30764$debug ||
30765{
30766 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30767 trap '{ (exit 1); exit 1; }' 1 2 13 15
30768}
30769
30770# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030771
John Criswell7a73b802003-06-30 21:59:07 +000030772{
John Criswell0c38eaf2003-09-10 15:17:25 +000030773 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030774 test -n "$tmp" && test -d "$tmp"
30775} ||
30776{
John Criswell0c38eaf2003-09-10 15:17:25 +000030777 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030778 (umask 077 && mkdir $tmp)
30779} ||
30780{
John Criswell0c38eaf2003-09-10 15:17:25 +000030781 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030782 { (exit 1); exit 1; }
30783}
30784
30785_ACEOF
30786
30787cat >>$CONFIG_STATUS <<_ACEOF
30788
30789#
30790# CONFIG_FILES section.
30791#
30792
30793# No need to generate the scripts if there are no CONFIG_FILES.
30794# This happens for instance when ./config.status config.h
30795if test -n "\$CONFIG_FILES"; then
30796 # Protect against being on the right side of a sed subst in config.status.
30797 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30798 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30799s,@SHELL@,$SHELL,;t t
30800s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30801s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30802s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30803s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30804s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30805s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30806s,@exec_prefix@,$exec_prefix,;t t
30807s,@prefix@,$prefix,;t t
30808s,@program_transform_name@,$program_transform_name,;t t
30809s,@bindir@,$bindir,;t t
30810s,@sbindir@,$sbindir,;t t
30811s,@libexecdir@,$libexecdir,;t t
30812s,@datadir@,$datadir,;t t
30813s,@sysconfdir@,$sysconfdir,;t t
30814s,@sharedstatedir@,$sharedstatedir,;t t
30815s,@localstatedir@,$localstatedir,;t t
30816s,@libdir@,$libdir,;t t
30817s,@includedir@,$includedir,;t t
30818s,@oldincludedir@,$oldincludedir,;t t
30819s,@infodir@,$infodir,;t t
30820s,@mandir@,$mandir,;t t
30821s,@build_alias@,$build_alias,;t t
30822s,@host_alias@,$host_alias,;t t
30823s,@target_alias@,$target_alias,;t t
30824s,@DEFS@,$DEFS,;t t
30825s,@ECHO_C@,$ECHO_C,;t t
30826s,@ECHO_N@,$ECHO_N,;t t
30827s,@ECHO_T@,$ECHO_T,;t t
30828s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030829s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030830s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030831s,@build@,$build,;t t
30832s,@build_cpu@,$build_cpu,;t t
30833s,@build_vendor@,$build_vendor,;t t
30834s,@build_os@,$build_os,;t t
30835s,@host@,$host,;t t
30836s,@host_cpu@,$host_cpu,;t t
30837s,@host_vendor@,$host_vendor,;t t
30838s,@host_os@,$host_os,;t t
30839s,@target@,$target,;t t
30840s,@target_cpu@,$target_cpu,;t t
30841s,@target_vendor@,$target_vendor,;t t
30842s,@target_os@,$target_os,;t t
30843s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000030844s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30845s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000030846s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030847s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030848s,@CC@,$CC,;t t
30849s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030850s,@LDFLAGS@,$LDFLAGS,;t t
30851s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030852s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030853s,@EXEEXT@,$EXEEXT,;t t
30854s,@OBJEXT@,$OBJEXT,;t t
30855s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30856s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030857s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030858s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030859s,@CXX@,$CXX,;t t
30860s,@CXXFLAGS@,$CXXFLAGS,;t t
30861s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030862s,@LEX@,$LEX,;t t
30863s,@LEXLIB@,$LEXLIB,;t t
30864s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030865s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030866s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030867s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030868s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030869s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030870s,@CMP@,$CMP,;t t
30871s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030872s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030873s,@FIND@,$FIND,;t t
30874s,@GREP@,$GREP,;t t
30875s,@MKDIR@,$MKDIR,;t t
30876s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030877s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030878s,@RANLIB@,$RANLIB,;t t
30879s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030880s,@RM@,$RM,;t t
30881s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030882s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030883s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30884s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30885s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030886s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030887s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030888s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030889s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030890s,@GROFF@,$GROFF,;t t
30891s,@GZIP@,$GZIP,;t t
30892s,@POD2HTML@,$POD2HTML,;t t
30893s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030894s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030895s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030896s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030897s,@EGREP@,$EGREP,;t t
30898s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30899s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30900s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30901s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30902s,@LIBADD_DL@,$LIBADD_DL,;t t
30903s,@ECHO@,$ECHO,;t t
30904s,@AR@,$AR,;t t
30905s,@ac_ct_AR@,$ac_ct_AR,;t t
30906s,@STRIP@,$STRIP,;t t
30907s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30908s,@CXXCPP@,$CXXCPP,;t t
30909s,@F77@,$F77,;t t
30910s,@FFLAGS@,$FFLAGS,;t t
30911s,@ac_ct_F77@,$ac_ct_F77,;t t
30912s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030913s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000030914s,@LLVMGCC@,$LLVMGCC,;t t
30915s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030916s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030917s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030918s,@LLVMCC1@,$LLVMCC1,;t t
30919s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030920s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030921s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030922s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30923s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30924s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30925s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30926s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30927s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30928s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30929s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30930s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30931s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030932s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030933s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030934CEOF
30935
30936_ACEOF
30937
30938 cat >>$CONFIG_STATUS <<\_ACEOF
30939 # Split the substitutions into bite-sized pieces for seds with
30940 # small command number limits, like on Digital OSF/1 and HP-UX.
30941 ac_max_sed_lines=48
30942 ac_sed_frag=1 # Number of current file.
30943 ac_beg=1 # First line for current file.
30944 ac_end=$ac_max_sed_lines # Line after last line for current file.
30945 ac_more_lines=:
30946 ac_sed_cmds=
30947 while $ac_more_lines; do
30948 if test $ac_beg -gt 1; then
30949 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30950 else
30951 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30952 fi
30953 if test ! -s $tmp/subs.frag; then
30954 ac_more_lines=false
30955 else
30956 # The purpose of the label and of the branching condition is to
30957 # speed up the sed processing (if there are no `@' at all, there
30958 # is no need to browse any of the substitutions).
30959 # These are the two extra sed commands mentioned above.
30960 (echo ':t
30961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30962 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030963 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030964 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030965 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030966 fi
30967 ac_sed_frag=`expr $ac_sed_frag + 1`
30968 ac_beg=$ac_end
30969 ac_end=`expr $ac_end + $ac_max_sed_lines`
30970 fi
30971 done
30972 if test -z "$ac_sed_cmds"; then
30973 ac_sed_cmds=cat
30974 fi
30975fi # test -n "$CONFIG_FILES"
30976
30977_ACEOF
30978cat >>$CONFIG_STATUS <<\_ACEOF
30979for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30981 case $ac_file in
30982 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030983 cat >$tmp/stdin
30984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030988 * ) ac_file_in=$ac_file.in ;;
30989 esac
30990
30991 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30993$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030994 X"$ac_file" : 'X\(//\)[^/]' \| \
30995 X"$ac_file" : 'X\(//\)$' \| \
30996 X"$ac_file" : 'X\(/\)' \| \
30997 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030998echo X"$ac_file" |
30999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31001 /^X\(\/\/\)$/{ s//\1/; q; }
31002 /^X\(\/\).*/{ s//\1/; q; }
31003 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031004 { if $as_mkdir_p; then
31005 mkdir -p "$ac_dir"
31006 else
31007 as_dir="$ac_dir"
31008 as_dirs=
31009 while test ! -d "$as_dir"; do
31010 as_dirs="$as_dir $as_dirs"
31011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031013 X"$as_dir" : 'X\(//\)[^/]' \| \
31014 X"$as_dir" : 'X\(//\)$' \| \
31015 X"$as_dir" : 'X\(/\)' \| \
31016 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031017echo X"$as_dir" |
31018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31020 /^X\(\/\/\)$/{ s//\1/; q; }
31021 /^X\(\/\).*/{ s//\1/; q; }
31022 s/.*/./; q'`
31023 done
31024 test ! -n "$as_dirs" || mkdir $as_dirs
31025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31026echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31027 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031028
31029 ac_builddir=.
31030
31031if test "$ac_dir" != .; then
31032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31033 # A "../" for each directory in $ac_dir_suffix.
31034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31035else
31036 ac_dir_suffix= ac_top_builddir=
31037fi
31038
31039case $srcdir in
31040 .) # No --srcdir option. We are building in place.
31041 ac_srcdir=.
31042 if test -z "$ac_top_builddir"; then
31043 ac_top_srcdir=.
31044 else
31045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31046 fi ;;
31047 [\\/]* | ?:[\\/]* ) # Absolute path.
31048 ac_srcdir=$srcdir$ac_dir_suffix;
31049 ac_top_srcdir=$srcdir ;;
31050 *) # Relative path.
31051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31053esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031054
31055# Do not use `cd foo && pwd` to compute absolute paths, because
31056# the directories may not exist.
31057case `pwd` in
31058.) ac_abs_builddir="$ac_dir";;
31059*)
31060 case "$ac_dir" in
31061 .) ac_abs_builddir=`pwd`;;
31062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31064 esac;;
31065esac
31066case $ac_abs_builddir in
31067.) ac_abs_top_builddir=${ac_top_builddir}.;;
31068*)
31069 case ${ac_top_builddir}. in
31070 .) ac_abs_top_builddir=$ac_abs_builddir;;
31071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31073 esac;;
31074esac
31075case $ac_abs_builddir in
31076.) ac_abs_srcdir=$ac_srcdir;;
31077*)
31078 case $ac_srcdir in
31079 .) ac_abs_srcdir=$ac_abs_builddir;;
31080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31082 esac;;
31083esac
31084case $ac_abs_builddir in
31085.) ac_abs_top_srcdir=$ac_top_srcdir;;
31086*)
31087 case $ac_top_srcdir in
31088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31091 esac;;
31092esac
John Criswell7a73b802003-06-30 21:59:07 +000031093
31094
31095 case $INSTALL in
31096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31097 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31098 esac
31099
31100 if test x"$ac_file" != x-; then
31101 { echo "$as_me:$LINENO: creating $ac_file" >&5
31102echo "$as_me: creating $ac_file" >&6;}
31103 rm -f "$ac_file"
31104 fi
31105 # Let's still pretend it is `configure' which instantiates (i.e., don't
31106 # use $as_me), people would be surprised to read:
31107 # /* config.h. Generated by config.status. */
31108 if test x"$ac_file" = x-; then
31109 configure_input=
31110 else
31111 configure_input="$ac_file. "
31112 fi
31113 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031114 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031115
31116 # First look for the input files in the build tree, otherwise in the
31117 # src tree.
31118 ac_file_inputs=`IFS=:
31119 for f in $ac_file_in; do
31120 case $f in
31121 -) echo $tmp/stdin ;;
31122 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031123 # Absolute (can't be DOS-style, as IFS=:)
31124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031125echo "$as_me: error: cannot find input file: $f" >&2;}
31126 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031127 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031128 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031129 if test -f "$f"; then
31130 # Build tree
31131 echo "$f"
31132 elif test -f "$srcdir/$f"; then
31133 # Source tree
31134 echo "$srcdir/$f"
31135 else
31136 # /dev/null tree
31137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031138echo "$as_me: error: cannot find input file: $f" >&2;}
31139 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031140 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031141 esac
31142 done` || { (exit 1); exit 1; }
31143_ACEOF
31144cat >>$CONFIG_STATUS <<_ACEOF
31145 sed "$ac_vpsub
31146$extrasub
31147_ACEOF
31148cat >>$CONFIG_STATUS <<\_ACEOF
31149:t
31150/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31151s,@configure_input@,$configure_input,;t t
31152s,@srcdir@,$ac_srcdir,;t t
31153s,@abs_srcdir@,$ac_abs_srcdir,;t t
31154s,@top_srcdir@,$ac_top_srcdir,;t t
31155s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31156s,@builddir@,$ac_builddir,;t t
31157s,@abs_builddir@,$ac_abs_builddir,;t t
31158s,@top_builddir@,$ac_top_builddir,;t t
31159s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31160s,@INSTALL@,$ac_INSTALL,;t t
31161" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31162 rm -f $tmp/stdin
31163 if test x"$ac_file" != x-; then
31164 mv $tmp/out $ac_file
31165 else
31166 cat $tmp/out
31167 rm -f $tmp/out
31168 fi
31169
31170done
31171_ACEOF
31172cat >>$CONFIG_STATUS <<\_ACEOF
31173
31174#
31175# CONFIG_HEADER section.
31176#
31177
31178# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31179# NAME is the cpp macro being defined and VALUE is the value it is being given.
31180#
31181# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031182ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31183ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031184ac_dC=' '
31185ac_dD=',;t'
31186# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031187ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031188ac_uB='$,\1#\2define\3'
31189ac_uC=' '
31190ac_uD=',;t'
31191
31192for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31194 case $ac_file in
31195 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031196 cat >$tmp/stdin
31197 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031199 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031201 * ) ac_file_in=$ac_file.in ;;
31202 esac
31203
31204 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31205echo "$as_me: creating $ac_file" >&6;}
31206
31207 # First look for the input files in the build tree, otherwise in the
31208 # src tree.
31209 ac_file_inputs=`IFS=:
31210 for f in $ac_file_in; do
31211 case $f in
31212 -) echo $tmp/stdin ;;
31213 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031214 # Absolute (can't be DOS-style, as IFS=:)
31215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031216echo "$as_me: error: cannot find input file: $f" >&2;}
31217 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031218 # Do quote $f, to prevent DOS paths from being IFS'd.
31219 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031220 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031221 if test -f "$f"; then
31222 # Build tree
31223 echo "$f"
31224 elif test -f "$srcdir/$f"; then
31225 # Source tree
31226 echo "$srcdir/$f"
31227 else
31228 # /dev/null tree
31229 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031230echo "$as_me: error: cannot find input file: $f" >&2;}
31231 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031232 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031233 esac
31234 done` || { (exit 1); exit 1; }
31235 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031236 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031237
31238_ACEOF
31239
31240# Transform confdefs.h into two sed scripts, `conftest.defines' and
31241# `conftest.undefs', that substitutes the proper values into
31242# config.h.in to produce config.h. The first handles `#define'
31243# templates, and the second `#undef' templates.
31244# And first: Protect against being on the right side of a sed subst in
31245# config.status. Protect against being in an unquoted here document
31246# in config.status.
31247rm -f conftest.defines conftest.undefs
31248# Using a here document instead of a string reduces the quoting nightmare.
31249# Putting comments in sed scripts is not portable.
31250#
31251# `end' is used to avoid that the second main sed command (meant for
31252# 0-ary CPP macros) applies to n-ary macro definitions.
31253# See the Autoconf documentation for `clear'.
31254cat >confdef2sed.sed <<\_ACEOF
31255s/[\\&,]/\\&/g
31256s,[\\$`],\\&,g
31257t clear
31258: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031259s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031260t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031261s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031262: end
31263_ACEOF
31264# If some macros were called several times there might be several times
31265# the same #defines, which is useless. Nevertheless, we may not want to
31266# sort them, since we want the *last* AC-DEFINE to be honored.
31267uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31268sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31269rm -f confdef2sed.sed
31270
31271# This sed command replaces #undef with comments. This is necessary, for
31272# example, in the case of _POSIX_SOURCE, which is predefined and required
31273# on some systems where configure will not decide to define it.
31274cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031275s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031276_ACEOF
31277
31278# Break up conftest.defines because some shells have a limit on the size
31279# of here documents, and old seds have small limits too (100 cmds).
31280echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031281echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031282echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31283echo ' :' >>$CONFIG_STATUS
31284rm -f conftest.tail
31285while grep . conftest.defines >/dev/null
31286do
31287 # Write a limited-size here document to $tmp/defines.sed.
31288 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31289 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031291 # Work around the forget-to-reset-the-flag bug.
31292 echo 't clr' >>$CONFIG_STATUS
31293 echo ': clr' >>$CONFIG_STATUS
31294 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31295 echo 'CEOF
31296 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31297 rm -f $tmp/in
31298 mv $tmp/out $tmp/in
31299' >>$CONFIG_STATUS
31300 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31301 rm -f conftest.defines
31302 mv conftest.tail conftest.defines
31303done
31304rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031305echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031306echo >>$CONFIG_STATUS
31307
31308# Break up conftest.undefs because some shells have a limit on the size
31309# of here documents, and old seds have small limits too (100 cmds).
31310echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31311rm -f conftest.tail
31312while grep . conftest.undefs >/dev/null
31313do
31314 # Write a limited-size here document to $tmp/undefs.sed.
31315 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31316 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031317 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031318 # Work around the forget-to-reset-the-flag bug.
31319 echo 't clr' >>$CONFIG_STATUS
31320 echo ': clr' >>$CONFIG_STATUS
31321 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31322 echo 'CEOF
31323 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31324 rm -f $tmp/in
31325 mv $tmp/out $tmp/in
31326' >>$CONFIG_STATUS
31327 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31328 rm -f conftest.undefs
31329 mv conftest.tail conftest.undefs
31330done
31331rm -f conftest.undefs
31332
31333cat >>$CONFIG_STATUS <<\_ACEOF
31334 # Let's still pretend it is `configure' which instantiates (i.e., don't
31335 # use $as_me), people would be surprised to read:
31336 # /* config.h. Generated by config.status. */
31337 if test x"$ac_file" = x-; then
31338 echo "/* Generated by configure. */" >$tmp/config.h
31339 else
31340 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31341 fi
31342 cat $tmp/in >>$tmp/config.h
31343 rm -f $tmp/in
31344 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031345 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031346 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31347echo "$as_me: $ac_file is unchanged" >&6;}
31348 else
31349 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31350$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031351 X"$ac_file" : 'X\(//\)[^/]' \| \
31352 X"$ac_file" : 'X\(//\)$' \| \
31353 X"$ac_file" : 'X\(/\)' \| \
31354 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031355echo X"$ac_file" |
31356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31358 /^X\(\/\/\)$/{ s//\1/; q; }
31359 /^X\(\/\).*/{ s//\1/; q; }
31360 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031361 { if $as_mkdir_p; then
31362 mkdir -p "$ac_dir"
31363 else
31364 as_dir="$ac_dir"
31365 as_dirs=
31366 while test ! -d "$as_dir"; do
31367 as_dirs="$as_dir $as_dirs"
31368 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31369$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031370 X"$as_dir" : 'X\(//\)[^/]' \| \
31371 X"$as_dir" : 'X\(//\)$' \| \
31372 X"$as_dir" : 'X\(/\)' \| \
31373 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031374echo X"$as_dir" |
31375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31377 /^X\(\/\/\)$/{ s//\1/; q; }
31378 /^X\(\/\).*/{ s//\1/; q; }
31379 s/.*/./; q'`
31380 done
31381 test ! -n "$as_dirs" || mkdir $as_dirs
31382 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31383echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31384 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031385
31386 rm -f $ac_file
31387 mv $tmp/config.h $ac_file
31388 fi
31389 else
31390 cat $tmp/config.h
31391 rm -f $tmp/config.h
31392 fi
31393done
31394_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031395cat >>$CONFIG_STATUS <<\_ACEOF
31396
31397#
31398# CONFIG_COMMANDS section.
31399#
31400for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31401 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31402 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31403 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31404$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031405 X"$ac_dest" : 'X\(//\)[^/]' \| \
31406 X"$ac_dest" : 'X\(//\)$' \| \
31407 X"$ac_dest" : 'X\(/\)' \| \
31408 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031409echo X"$ac_dest" |
31410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31412 /^X\(\/\/\)$/{ s//\1/; q; }
31413 /^X\(\/\).*/{ s//\1/; q; }
31414 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031415 { if $as_mkdir_p; then
31416 mkdir -p "$ac_dir"
31417 else
31418 as_dir="$ac_dir"
31419 as_dirs=
31420 while test ! -d "$as_dir"; do
31421 as_dirs="$as_dir $as_dirs"
31422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31424 X"$as_dir" : 'X\(//\)[^/]' \| \
31425 X"$as_dir" : 'X\(//\)$' \| \
31426 X"$as_dir" : 'X\(/\)' \| \
31427 . : '\(.\)' 2>/dev/null ||
31428echo X"$as_dir" |
31429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31431 /^X\(\/\/\)$/{ s//\1/; q; }
31432 /^X\(\/\).*/{ s//\1/; q; }
31433 s/.*/./; q'`
31434 done
31435 test ! -n "$as_dirs" || mkdir $as_dirs
31436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31437echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31438 { (exit 1); exit 1; }; }; }
31439
John Criswellc764fbc2003-09-06 15:17:13 +000031440 ac_builddir=.
31441
31442if test "$ac_dir" != .; then
31443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31444 # A "../" for each directory in $ac_dir_suffix.
31445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31446else
31447 ac_dir_suffix= ac_top_builddir=
31448fi
31449
31450case $srcdir in
31451 .) # No --srcdir option. We are building in place.
31452 ac_srcdir=.
31453 if test -z "$ac_top_builddir"; then
31454 ac_top_srcdir=.
31455 else
31456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31457 fi ;;
31458 [\\/]* | ?:[\\/]* ) # Absolute path.
31459 ac_srcdir=$srcdir$ac_dir_suffix;
31460 ac_top_srcdir=$srcdir ;;
31461 *) # Relative path.
31462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31464esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031465
31466# Do not use `cd foo && pwd` to compute absolute paths, because
31467# the directories may not exist.
31468case `pwd` in
31469.) ac_abs_builddir="$ac_dir";;
31470*)
31471 case "$ac_dir" in
31472 .) ac_abs_builddir=`pwd`;;
31473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31475 esac;;
31476esac
31477case $ac_abs_builddir in
31478.) ac_abs_top_builddir=${ac_top_builddir}.;;
31479*)
31480 case ${ac_top_builddir}. in
31481 .) ac_abs_top_builddir=$ac_abs_builddir;;
31482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31484 esac;;
31485esac
31486case $ac_abs_builddir in
31487.) ac_abs_srcdir=$ac_srcdir;;
31488*)
31489 case $ac_srcdir in
31490 .) ac_abs_srcdir=$ac_abs_builddir;;
31491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31493 esac;;
31494esac
31495case $ac_abs_builddir in
31496.) ac_abs_top_srcdir=$ac_top_srcdir;;
31497*)
31498 case $ac_top_srcdir in
31499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31502 esac;;
31503esac
John Criswellc764fbc2003-09-06 15:17:13 +000031504
31505
31506 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31507echo "$as_me: executing $ac_dest commands" >&6;}
31508 case $ac_dest in
31509 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31510 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031511 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031512 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031513 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031514 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31515 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031516 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031517 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031518 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031519 esac
31520done
31521_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031522
31523cat >>$CONFIG_STATUS <<\_ACEOF
31524
31525{ (exit 0); exit 0; }
31526_ACEOF
31527chmod +x $CONFIG_STATUS
31528ac_clean_files=$ac_clean_files_save
31529
31530
31531# configure is writing to config.log, and then calls config.status.
31532# config.status does its own redirection, appending to config.log.
31533# Unfortunately, on DOS this fails, as config.log is still kept open
31534# by configure, so config.status won't be able to write to it; its
31535# output is simply discarded. So we exec the FD to /dev/null,
31536# effectively closing config.log, so it can be properly (re)opened and
31537# appended to by config.status. When coming back to configure, we
31538# need to make the FD available again.
31539if test "$no_create" != yes; then
31540 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031541 ac_config_status_args=
31542 test "$silent" = yes &&
31543 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031544 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031546 exec 5>>config.log
31547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31548 # would make configure fail if this is the last instruction.
31549 $ac_cs_success || { (exit 1); exit 1; }
31550fi
31551
John Criswell12399a12003-09-30 15:55:44 +000031552#
31553# CONFIG_SUBDIRS section.
31554#
31555if test "$no_recursion" != yes; then
31556
31557 # Remove --cache-file and --srcdir arguments so they do not pile up.
31558 ac_sub_configure_args=
31559 ac_prev=
31560 for ac_arg in $ac_configure_args; do
31561 if test -n "$ac_prev"; then
31562 ac_prev=
31563 continue
31564 fi
31565 case $ac_arg in
31566 -cache-file | --cache-file | --cache-fil | --cache-fi \
31567 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31568 ac_prev=cache_file ;;
31569 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31570 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31571 | --c=*)
31572 ;;
31573 --config-cache | -C)
31574 ;;
31575 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31576 ac_prev=srcdir ;;
31577 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31578 ;;
31579 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31580 ac_prev=prefix ;;
31581 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31582 ;;
31583 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31584 esac
31585 done
31586
31587 # Always prepend --prefix to ensure using the same prefix
31588 # in subdir configurations.
31589 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31590
31591 ac_popdir=`pwd`
31592 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31593
31594 # Do not complain, so a configure script can configure whichever
31595 # parts of a large source tree are present.
31596 test -d $srcdir/$ac_dir || continue
31597
31598 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31599echo "$as_me: configuring in $ac_dir" >&6;}
31600 { if $as_mkdir_p; then
31601 mkdir -p "$ac_dir"
31602 else
31603 as_dir="$ac_dir"
31604 as_dirs=
31605 while test ! -d "$as_dir"; do
31606 as_dirs="$as_dir $as_dirs"
31607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031609 X"$as_dir" : 'X\(//\)[^/]' \| \
31610 X"$as_dir" : 'X\(//\)$' \| \
31611 X"$as_dir" : 'X\(/\)' \| \
31612 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031613echo X"$as_dir" |
31614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31616 /^X\(\/\/\)$/{ s//\1/; q; }
31617 /^X\(\/\).*/{ s//\1/; q; }
31618 s/.*/./; q'`
31619 done
31620 test ! -n "$as_dirs" || mkdir $as_dirs
31621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31622echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31623 { (exit 1); exit 1; }; }; }
31624
31625 ac_builddir=.
31626
31627if test "$ac_dir" != .; then
31628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31629 # A "../" for each directory in $ac_dir_suffix.
31630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31631else
31632 ac_dir_suffix= ac_top_builddir=
31633fi
31634
31635case $srcdir in
31636 .) # No --srcdir option. We are building in place.
31637 ac_srcdir=.
31638 if test -z "$ac_top_builddir"; then
31639 ac_top_srcdir=.
31640 else
31641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31642 fi ;;
31643 [\\/]* | ?:[\\/]* ) # Absolute path.
31644 ac_srcdir=$srcdir$ac_dir_suffix;
31645 ac_top_srcdir=$srcdir ;;
31646 *) # Relative path.
31647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31649esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031650
31651# Do not use `cd foo && pwd` to compute absolute paths, because
31652# the directories may not exist.
31653case `pwd` in
31654.) ac_abs_builddir="$ac_dir";;
31655*)
31656 case "$ac_dir" in
31657 .) ac_abs_builddir=`pwd`;;
31658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31660 esac;;
31661esac
31662case $ac_abs_builddir in
31663.) ac_abs_top_builddir=${ac_top_builddir}.;;
31664*)
31665 case ${ac_top_builddir}. in
31666 .) ac_abs_top_builddir=$ac_abs_builddir;;
31667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31669 esac;;
31670esac
31671case $ac_abs_builddir in
31672.) ac_abs_srcdir=$ac_srcdir;;
31673*)
31674 case $ac_srcdir in
31675 .) ac_abs_srcdir=$ac_abs_builddir;;
31676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31678 esac;;
31679esac
31680case $ac_abs_builddir in
31681.) ac_abs_top_srcdir=$ac_top_srcdir;;
31682*)
31683 case $ac_top_srcdir in
31684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31687 esac;;
31688esac
John Criswell12399a12003-09-30 15:55:44 +000031689
31690
31691 cd $ac_dir
31692
31693 # Check for guested configure; otherwise get Cygnus style configure.
31694 if test -f $ac_srcdir/configure.gnu; then
31695 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31696 elif test -f $ac_srcdir/configure; then
31697 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31698 elif test -f $ac_srcdir/configure.in; then
31699 ac_sub_configure=$ac_configure
31700 else
31701 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31702echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31703 ac_sub_configure=
31704 fi
31705
31706 # The recursion is here.
31707 if test -n "$ac_sub_configure"; then
31708 # Make the cache file name correct relative to the subdirectory.
31709 case $cache_file in
31710 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31711 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031712 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031713 esac
31714
31715 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31716echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31717 # The eval makes quoting arguments work.
31718 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031719 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31720 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031721echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31722 { (exit 1); exit 1; }; }
31723 fi
31724
31725 cd $ac_popdir
31726 done
31727fi
31728
Brian Gaekef3b24102003-11-16 18:38:14 +000031729
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031730if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031731 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31732echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031733 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31734echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31735 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31736echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31737 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31738echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31739 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31740echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031741fi