blob: 74694318a563d687c347ca0056f71f7ae6ce0084 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer78ba11d2005-02-16 16:21:00 +00003# Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencer78ba11d2005-02-16 16:21:00 +0000428PACKAGE_VERSION='1.5cvs'
429PACKAGE_STRING='llvm 1.5cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer78ba11d2005-02-16 16:21:00 +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 RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +0000968\`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencer78ba11d2005-02-16 16:21:00 +00001030 short | recursive ) echo "Configuration of llvm 1.5cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid 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 Spencer78ba11d2005-02-16 16:21:00 +00001174llvm configure 1.5cvs
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 Spencer78ba11d2005-02-16 16:21:00 +00001190It was created by llvm $as_me 1.5cvs, 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 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001594 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001596subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001597 ;;
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 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001606 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001607
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001608subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001609 ;;
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" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001794 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001795 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001796esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001797fi
1798echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001800
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001801if test "$llvm_cv_target_arch" = "Unknown" ; then
1802 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1804fi
John Criswell76595452003-07-01 22:07:39 +00001805
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001806ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001807
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001808
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001814if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841CC=$ac_cv_prog_CC
1842if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844echo "${ECHO_T}$CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850fi
1851if test -z "$ac_cv_prog_CC"; then
1852 ac_ct_CC=$CC
1853 # Extract the first word of "gcc", so it can be a program name with args.
1854set dummy gcc; ac_word=$2
1855echo "$as_me:$LINENO: checking for $ac_word" >&5
1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862else
1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC="gcc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 break 2
1873 fi
1874done
1875done
1876
1877fi
1878fi
1879ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880if test -n "$ac_ct_CC"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882echo "${ECHO_T}$ac_ct_CC" >&6
1883else
1884 echo "$as_me:$LINENO: result: no" >&5
1885echo "${ECHO_T}no" >&6
1886fi
1887
1888 CC=$ac_ct_CC
1889else
1890 CC="$ac_cv_prog_CC"
1891fi
1892
1893if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896set dummy ${ac_tool_prefix}cc; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_CC="${ac_tool_prefix}cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916done
1917done
1918
1919fi
1920fi
1921CC=$ac_cv_prog_CC
1922if test -n "$CC"; then
1923 echo "$as_me:$LINENO: result: $CC" >&5
1924echo "${ECHO_T}$CC" >&6
1925else
1926 echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930fi
1931if test -z "$ac_cv_prog_CC"; then
1932 ac_ct_CC=$CC
1933 # Extract the first word of "cc", so it can be a program name with args.
1934set dummy cc; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940 if test -n "$ac_ct_CC"; then
1941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
1956
1957fi
1958fi
1959ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960if test -n "$ac_ct_CC"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962echo "${ECHO_T}$ac_ct_CC" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 CC=$ac_ct_CC
1969else
1970 CC="$ac_cv_prog_CC"
1971fi
1972
1973fi
1974if test -z "$CC"; then
1975 # Extract the first word of "cc", so it can be a program name with args.
1976set dummy cc; ac_word=$2
1977echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
1985 ac_prog_rejected=no
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994 ac_prog_rejected=yes
1995 continue
1996 fi
1997 ac_cv_prog_CC="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001done
2002done
2003
2004if test $ac_prog_rejected = yes; then
2005 # We found a bogon in the path, so make sure we never use it.
2006 set dummy $ac_cv_prog_CC
2007 shift
2008 if test $# != 0; then
2009 # We chose a different compiler from the bogus one.
2010 # However, it has the same basename, so the bogon will be chosen
2011 # first if we set CC to just the basename; use the full file name.
2012 shift
2013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 fi
2015fi
2016fi
2017fi
2018CC=$ac_cv_prog_CC
2019if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021echo "${ECHO_T}$CC" >&6
2022else
2023 echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6
2025fi
2026
2027fi
2028if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002031 do
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034echo "$as_me:$LINENO: checking for $ac_word" >&5
2035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002036if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002041else
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053done
2054done
2055
2056fi
2057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058CC=$ac_cv_prog_CC
2059if test -n "$CC"; then
2060 echo "$as_me:$LINENO: result: $CC" >&5
2061echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002062else
2063 echo "$as_me:$LINENO: result: no" >&5
2064echo "${ECHO_T}no" >&6
2065fi
2066
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002068 done
2069fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070if test -z "$CC"; then
2071 ac_ct_CC=$CC
2072 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002073do
2074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2075set dummy $ac_prog; ac_word=$2
2076echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
2097
2098fi
2099fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002100ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101if test -n "$ac_ct_CC"; then
2102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002104else
2105 echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6
2107fi
2108
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002109 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002110done
John Criswell7a73b802003-06-30 21:59:07 +00002111
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002112 CC=$ac_ct_CC
2113fi
2114
John Criswell7a73b802003-06-30 21:59:07 +00002115fi
2116
2117
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119See \`config.log' for more details." >&5
2120echo "$as_me: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2123
John Criswell7a73b802003-06-30 21:59:07 +00002124# Provide some information about the compiler.
2125echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002126 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002127ac_compiler=`set X $ac_compile; echo $2`
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129 (eval $ac_compiler --version </dev/null >&5) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134 (eval $ac_compiler -v </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139 (eval $ac_compiler -V </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143
2144cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002150
John Criswell7a73b802003-06-30 21:59:07 +00002151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002160ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002161# Try to create an executable without -o first, disregard a.out.
2162# It will help us diagnose broken compilers, and finding out an intuition
2163# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002166ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168 (eval $ac_link_default) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Find the output, starting from the most likely. This scheme is
2173# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174# resort.
2175
2176# Be careful to initialize this variable, since it used to be cached.
2177# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002179# b.out is created by i960 compilers.
2180for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2181do
2182 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002183 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 # This is the source file.
2188 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 # We found the default executable, but exeext='' is most
2191 # certainly right.
2192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # FIXME: I believe we export ac_cv_exeext for Libtool,
2196 # but it would be cool to find out if it's true. Does anybody
2197 # maintain Libtool? --akim.
2198 export ac_cv_exeext
2199 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002202 esac
2203done
2204else
2205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002206sed 's/^/| /' conftest.$ac_ext >&5
2207
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002209See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002210echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002211See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002212 { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6
2218
2219# Check the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002221echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002240echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6
2249
John Criswell0c38eaf2003-09-10 15:17:25 +00002250rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002251ac_clean_files=$ac_clean_files_save
2252# Check the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6
2258
2259echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268# work properly (i.e., refer to `conftest.exe'), while it won't with
2269# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002270for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002272 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002275 export ac_cv_exeext
2276 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 * ) break;;
2278 esac
2279done
2280else
John Criswell0c38eaf2003-09-10 15:17:25 +00002281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002285 { (exit 1); exit 1; }; }
2286fi
2287
2288rm -f conftest$ac_cv_exeext
2289echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6
2291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
2295echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002306
John Criswell7a73b802003-06-30 21:59:07 +00002307int
2308main ()
2309{
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2322 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325 break;;
2326 esac
2327done
2328else
2329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002336 { (exit 1); exit 1; }; }
2337fi
2338
2339rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340fi
2341echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342echo "${ECHO_T}$ac_cv_objext" >&6
2343OBJEXT=$ac_cv_objext
2344ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002351/* confdefs.h. */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002356
John Criswell7a73b802003-06-30 21:59:07 +00002357int
2358main ()
2359{
2360#ifndef __GNUC__
2361 choke me
2362#endif
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.$ac_objext
2369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002370 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_compiler_gnu=yes
2391else
2392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002393sed 's/^/| /' conftest.$ac_ext >&5
2394
John Criswell7a73b802003-06-30 21:59:07 +00002395ac_compiler_gnu=no
2396fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002399
2400fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403GCC=`test $ac_compiler_gnu = yes && echo yes`
2404ac_test_CFLAGS=${CFLAGS+set}
2405ac_save_CFLAGS=$CFLAGS
2406CFLAGS="-g"
2407echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002418
John Criswell7a73b802003-06-30 21:59:07 +00002419int
2420main ()
2421{
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002450else
2451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002452sed 's/^/| /' conftest.$ac_ext >&5
2453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002455fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002457fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460if test "$ac_test_CFLAGS" = set; then
2461 CFLAGS=$ac_save_CFLAGS
2462elif test $ac_cv_prog_cc_g = yes; then
2463 if test "$GCC" = yes; then
2464 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002465 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002467 fi
2468else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469 if test "$GCC" = yes; then
2470 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002471 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002473 fi
2474fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 ac_cv_prog_cc_stdc=no
2481ac_save_CC=$CC
2482cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <stdarg.h>
2489#include <stdio.h>
2490#include <sys/types.h>
2491#include <sys/stat.h>
2492/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493struct buf { int x; };
2494FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495static char *e (p, i)
2496 char **p;
2497 int i;
2498{
2499 return p[i];
2500}
2501static char *f (char * (*g) (char **, int), char **p, ...)
2502{
2503 char *s;
2504 va_list v;
2505 va_start (v,p);
2506 s = g (p, va_arg (v,int));
2507 va_end (v);
2508 return s;
2509}
2510
2511/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2512 function prototypes and stuff, but not '\xHH' hex character constants.
2513 These don't provoke an error unfortunately, instead are silently treated
2514 as 'x'. The following induces an error, until -std1 is added to get
2515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2516 array size at least. It's necessary to write '\x00'==0 to get something
2517 that's true only with -std1. */
2518int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519
2520int test (int i, double x);
2521struct s1 {int (*f) (int a);};
2522struct s2 {int (*f) (double a);};
2523int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524int argc;
2525char **argv;
2526int
2527main ()
2528{
2529return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2530 ;
2531 return 0;
2532}
2533_ACEOF
2534# Don't try gcc -ansi; that turns off useful extensions and
2535# breaks some systems' header files.
2536# AIX -qlanglvl=ansi
2537# Ultrix and OSF/1 -std1
2538# HP-UX 10.20 and later -Ae
2539# HP-UX older versions -Aa -D_HPUX_SOURCE
2540# SVR4 -Xc -D__EXTENSIONS__
2541for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542do
2543 CC="$ac_save_CC $ac_arg"
2544 rm -f conftest.$ac_objext
2545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2567break
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext
2574done
2575rm -f conftest.$ac_ext conftest.$ac_objext
2576CC=$ac_save_CC
2577
2578fi
2579
2580case "x$ac_cv_prog_cc_stdc" in
2581 x|xno)
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583echo "${ECHO_T}none needed" >&6 ;;
2584 *)
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2588esac
2589
2590# Some people use a C++ compiler to compile C. Since we use `exit',
2591# in C++ we need to declare it. In case someone uses the same compiler
2592# for both compiling C and C++ we need to have the C++ compiler decide
2593# the declaration of exit, since it's the most demanding environment.
2594cat >conftest.$ac_ext <<_ACEOF
2595#ifndef __cplusplus
2596 choke me
2597#endif
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002622 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002623 'extern "C" void std::exit (int) throw (); using std::exit;' \
2624 'extern "C" void std::exit (int); using std::exit;' \
2625 'extern "C" void exit (int) throw ();' \
2626 'extern "C" void exit (int);' \
2627 'void exit (int);'
2628do
2629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002635$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002636#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002637int
2638main ()
2639{
2640exit (42);
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 :
2668else
2669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002670sed 's/^/| /' conftest.$ac_ext >&5
2671
John Criswell7a73b802003-06-30 21:59:07 +00002672continue
2673fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002681$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002682int
2683main ()
2684{
2685exit (42);
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002692 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 break
2713else
2714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002715sed 's/^/| /' conftest.$ac_ext >&5
2716
John Criswell7a73b802003-06-30 21:59:07 +00002717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002719done
2720rm -f conftest*
2721if test -n "$ac_declaration"; then
2722 echo '#ifdef __cplusplus' >>confdefs.h
2723 echo $ac_declaration >>confdefs.h
2724 echo '#endif' >>confdefs.h
2725fi
2726
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002727else
2728 echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742if test "${ac_cv_c_bigendian+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745 # See if sys/param.h defines the BYTE_ORDER macro.
2746cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752#include <sys/types.h>
2753#include <sys/param.h>
2754
2755int
2756main ()
2757{
2758#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2759 bogus endian macros
2760#endif
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 # It does; now see whether it defined to BIG_ENDIAN or not.
2789cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h. */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h. */
2795#include <sys/types.h>
2796#include <sys/param.h>
2797
2798int
2799main ()
2800{
2801#if BYTE_ORDER != BIG_ENDIAN
2802 not big endian
2803#endif
2804
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_c_bigendian=yes
2832else
2833 echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836ac_cv_c_bigendian=no
2837fi
2838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839else
2840 echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843# It does not; compile a test program.
2844if test "$cross_compiling" = yes; then
2845 # try to guess the endianness by grepping values into an object file
2846 ac_cv_c_bigendian=unknown
2847 cat >conftest.$ac_ext <<_ACEOF
2848/* confdefs.h. */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h. */
2853short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2859int
2860main ()
2861{
2862 _ascii (); _ebcdic ();
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext
2868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890 ac_cv_c_bigendian=yes
2891fi
2892if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893 if test "$ac_cv_c_bigendian" = unknown; then
2894 ac_cv_c_bigendian=no
2895 else
2896 # finding both strings is unlikely to happen, but who knows?
2897 ac_cv_c_bigendian=unknown
2898 fi
2899fi
2900else
2901 echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906else
2907 cat >conftest.$ac_ext <<_ACEOF
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
2913int
2914main ()
2915{
2916 /* Are we little or big endian? From Harbison&Steele. */
2917 union
2918 {
2919 long l;
2920 char c[sizeof (long)];
2921 } u;
2922 u.l = 1;
2923 exit (u.c[sizeof (long) - 1] == 1);
2924}
2925_ACEOF
2926rm -f conftest$ac_exeext
2927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_c_bigendian=no
2938else
2939 echo "$as_me: program exited with status $ac_status" >&5
2940echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943( exit $ac_status )
2944ac_cv_c_bigendian=yes
2945fi
2946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947fi
2948fi
2949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950fi
2951echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953case $ac_cv_c_bigendian in
2954 yes)
2955 ENDIAN=big
2956 ;;
2957 no)
2958 ENDIAN=little
2959 ;;
2960 *)
2961 { { echo "$as_me:$LINENO: error: unknown endianness
2962presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963echo "$as_me: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965 { (exit 1); exit 1; }; } ;;
2966esac
2967
2968
2969
2970# Check whether --enable-optimized or --disable-optimized was given.
2971if test "${enable_optimized+set}" = set; then
2972 enableval="$enable_optimized"
2973
2974else
2975 enableval=no
2976fi;
2977if test ${enableval} = "no" ; then
2978 ENABLE_OPTIMIZED=
2979
2980else
2981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2982
2983fi
2984
2985# Check whether --enable-jit or --disable-jit was given.
2986if test "${enable_jit+set}" = set; then
2987 enableval="$enable_jit"
2988
2989else
2990 enableval=default
2991fi;
2992if test ${enableval} = "no"
2993then
2994 JIT=
2995
2996else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002997 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002998 x86) JIT=TARGET_HAS_JIT=1
2999 ;;
3000 Sparc) JIT=TARGET_HAS_JIT=1
3001 ;;
3002 PowerPC) JIT=TARGET_HAS_JIT=1
3003 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003004 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003005 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003006 *) JIT=
3007 ;;
3008 esac
3009fi
3010
Reid Spencer1f319422004-11-29 04:56:35 +00003011# Check whether --enable-doxygen or --disable-doxygen was given.
3012if test "${enable_doxygen+set}" = set; then
3013 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003014
Reid Spencer1f319422004-11-29 04:56:35 +00003015else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003016 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003017fi;
3018case "$enableval" in
3019 yes) ENABLE_DOXYGEN=1
3020 ;;
3021 no) ENABLE_DOXYGEN=0
3022 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003023 default) ENABLE_DOXYGEN=0
3024 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3026echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3027 { (exit 1); exit 1; }; } ;;
3028esac
3029
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003030
Reid Spencer59473af2004-12-25 07:31:29 +00003031# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3032if test "${with_llvmgccdir+set}" = set; then
3033 withval="$with_llvmgccdir"
3034
3035else
3036 withval=default
3037fi;
3038case "$withval" in
3039 default) WITH_LLVMGCCDIR=default ;;
3040 /*) WITH_LLVMGCCDIR=$withval ;;
3041 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3042echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3043 { (exit 1); exit 1; }; } ;;
3044esac
3045
3046
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047ac_ext=c
3048ac_cpp='$CPP $CPPFLAGS'
3049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3053echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3054# On Suns, sometimes $CPP names a directory.
3055if test -n "$CPP" && test -d "$CPP"; then
3056 CPP=
3057fi
3058if test -z "$CPP"; then
3059 if test "${ac_cv_prog_CPP+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062 # Double quotes because CPP needs to be expanded
3063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3064 do
3065 ac_preproc_ok=false
3066for ac_c_preproc_warn_flag in '' yes
3067do
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080#ifdef __STDC__
3081# include <limits.h>
3082#else
3083# include <assert.h>
3084#endif
3085 Syntax error
3086_ACEOF
3087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag
3097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098 else
3099 ac_cpp_err=
3100 fi
3101else
3102 ac_cpp_err=yes
3103fi
3104if test -z "$ac_cpp_err"; then
3105 :
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 # Broken: fails on valid input.
3111continue
3112fi
3113rm -f conftest.err conftest.$ac_ext
3114
3115 # OK, works on sane cases. Now check whether non-existent headers
3116 # can be detected and how.
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123#include <ac_nonexistent.h>
3124_ACEOF
3125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_c_preproc_warn_flag
3135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3136 else
3137 ac_cpp_err=
3138 fi
3139else
3140 ac_cpp_err=yes
3141fi
3142if test -z "$ac_cpp_err"; then
3143 # Broken: success on invalid input.
3144continue
3145else
3146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 # Passes both tests.
3150ac_preproc_ok=:
3151break
3152fi
3153rm -f conftest.err conftest.$ac_ext
3154
3155done
3156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157rm -f conftest.err conftest.$ac_ext
3158if $ac_preproc_ok; then
3159 break
3160fi
3161
3162 done
3163 ac_cv_prog_CPP=$CPP
3164
3165fi
3166 CPP=$ac_cv_prog_CPP
3167else
3168 ac_cv_prog_CPP=$CPP
3169fi
3170echo "$as_me:$LINENO: result: $CPP" >&5
3171echo "${ECHO_T}$CPP" >&6
3172ac_preproc_ok=false
3173for ac_c_preproc_warn_flag in '' yes
3174do
3175 # Use a header file that comes with gcc, so configuring glibc
3176 # with a fresh cross-compiler works.
3177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3178 # <limits.h> exists even on freestanding compilers.
3179 # On the NeXT, cc -E runs the code through the compiler's parser,
3180 # not just through cpp. "Syntax error" is here to catch this case.
3181 cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187#ifdef __STDC__
3188# include <limits.h>
3189#else
3190# include <assert.h>
3191#endif
3192 Syntax error
3193_ACEOF
3194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205 else
3206 ac_cpp_err=
3207 fi
3208else
3209 ac_cpp_err=yes
3210fi
3211if test -z "$ac_cpp_err"; then
3212 :
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Broken: fails on valid input.
3218continue
3219fi
3220rm -f conftest.err conftest.$ac_ext
3221
3222 # OK, works on sane cases. Now check whether non-existent headers
3223 # can be detected and how.
3224 cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
3230#include <ac_nonexistent.h>
3231_ACEOF
3232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3245 fi
3246else
3247 ac_cpp_err=yes
3248fi
3249if test -z "$ac_cpp_err"; then
3250 # Broken: success on invalid input.
3251continue
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 # Passes both tests.
3257ac_preproc_ok=:
3258break
3259fi
3260rm -f conftest.err conftest.$ac_ext
3261
3262done
3263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264rm -f conftest.err conftest.$ac_ext
3265if $ac_preproc_ok; then
3266 :
3267else
3268 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3269See \`config.log' for more details." >&5
3270echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3271See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3273fi
3274
John Criswell7a73b802003-06-30 21:59:07 +00003275ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281ac_ext=c
3282ac_cpp='$CPP $CPPFLAGS'
3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286if test -n "$ac_tool_prefix"; then
3287 for ac_prog in gcc
3288 do
3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_CC+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311done
3312
3313fi
3314fi
3315CC=$ac_cv_prog_CC
3316if test -n "$CC"; then
3317 echo "$as_me:$LINENO: result: $CC" >&5
3318echo "${ECHO_T}$CC" >&6
3319else
3320 echo "$as_me:$LINENO: result: no" >&5
3321echo "${ECHO_T}no" >&6
3322fi
3323
3324 test -n "$CC" && break
3325 done
3326fi
3327if test -z "$CC"; then
3328 ac_ct_CC=$CC
3329 for ac_prog in gcc
3330do
3331 # Extract the first word of "$ac_prog", so it can be a program name with args.
3332set dummy $ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 if test -n "$ac_ct_CC"; then
3339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_ac_ct_CC="$ac_prog"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353done
3354
3355fi
3356fi
3357ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358if test -n "$ac_ct_CC"; then
3359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3360echo "${ECHO_T}$ac_ct_CC" >&6
3361else
3362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366 test -n "$ac_ct_CC" && break
3367done
3368
3369 CC=$ac_ct_CC
3370fi
3371
3372
John Criswell0c38eaf2003-09-10 15:17:25 +00003373test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3374See \`config.log' for more details." >&5
3375echo "$as_me: error: no acceptable C compiler found in \$PATH
3376See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003377 { (exit 1); exit 1; }; }
3378
3379# Provide some information about the compiler.
3380echo "$as_me:$LINENO:" \
3381 "checking for C compiler version" >&5
3382ac_compiler=`set X $ac_compile; echo $2`
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3384 (eval $ac_compiler --version </dev/null >&5) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3389 (eval $ac_compiler -v </dev/null >&5) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }
3393{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3394 (eval $ac_compiler -V </dev/null >&5) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3398
3399echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3400echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3401if test "${ac_cv_c_compiler_gnu+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003410
John Criswell7a73b802003-06-30 21:59:07 +00003411int
3412main ()
3413{
3414#ifndef __GNUC__
3415 choke me
3416#endif
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422rm -f conftest.$ac_objext
3423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003424 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003425 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003431 { ac_try='test -z "$ac_c_werror_flag"
3432 || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_compiler_gnu=yes
3445else
3446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003447sed 's/^/| /' conftest.$ac_ext >&5
3448
John Criswell7a73b802003-06-30 21:59:07 +00003449ac_compiler_gnu=no
3450fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003452ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454fi
3455echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3457GCC=`test $ac_compiler_gnu = yes && echo yes`
3458ac_test_CFLAGS=${CFLAGS+set}
3459ac_save_CFLAGS=$CFLAGS
3460CFLAGS="-g"
3461echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3463if test "${ac_cv_prog_cc_g+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003472
John Criswell7a73b802003-06-30 21:59:07 +00003473int
3474main ()
3475{
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
3481rm -f conftest.$ac_objext
3482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003483 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003484 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003490 { ac_try='test -z "$ac_c_werror_flag"
3491 || test ! -s conftest.err'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } &&
3497 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 ac_cv_prog_cc_g=yes
3504else
3505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003506sed 's/^/| /' conftest.$ac_ext >&5
3507
John Criswell7a73b802003-06-30 21:59:07 +00003508ac_cv_prog_cc_g=no
3509fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003511fi
3512echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3513echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3514if test "$ac_test_CFLAGS" = set; then
3515 CFLAGS=$ac_save_CFLAGS
3516elif test $ac_cv_prog_cc_g = yes; then
3517 if test "$GCC" = yes; then
3518 CFLAGS="-g -O2"
3519 else
3520 CFLAGS="-g"
3521 fi
3522else
3523 if test "$GCC" = yes; then
3524 CFLAGS="-O2"
3525 else
3526 CFLAGS=
3527 fi
3528fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003529echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3530echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3531if test "${ac_cv_prog_cc_stdc+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 ac_cv_prog_cc_stdc=no
3535ac_save_CC=$CC
3536cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h. */
3542#include <stdarg.h>
3543#include <stdio.h>
3544#include <sys/types.h>
3545#include <sys/stat.h>
3546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3547struct buf { int x; };
3548FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549static char *e (p, i)
3550 char **p;
3551 int i;
3552{
3553 return p[i];
3554}
3555static char *f (char * (*g) (char **, int), char **p, ...)
3556{
3557 char *s;
3558 va_list v;
3559 va_start (v,p);
3560 s = g (p, va_arg (v,int));
3561 va_end (v);
3562 return s;
3563}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003564
3565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3566 function prototypes and stuff, but not '\xHH' hex character constants.
3567 These don't provoke an error unfortunately, instead are silently treated
3568 as 'x'. The following induces an error, until -std1 is added to get
3569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3570 array size at least. It's necessary to write '\x00'==0 to get something
3571 that's true only with -std1. */
3572int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573
John Criswell0c38eaf2003-09-10 15:17:25 +00003574int test (int i, double x);
3575struct s1 {int (*f) (int a);};
3576struct s2 {int (*f) (double a);};
3577int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3578int argc;
3579char **argv;
3580int
3581main ()
3582{
3583return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588# Don't try gcc -ansi; that turns off useful extensions and
3589# breaks some systems' header files.
3590# AIX -qlanglvl=ansi
3591# Ultrix and OSF/1 -std1
3592# HP-UX 10.20 and later -Ae
3593# HP-UX older versions -Aa -D_HPUX_SOURCE
3594# SVR4 -Xc -D__EXTENSIONS__
3595for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596do
3597 CC="$ac_save_CC $ac_arg"
3598 rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003600 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003607 { ac_try='test -z "$ac_c_werror_flag"
3608 || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_cv_prog_cc_stdc=$ac_arg
3621break
3622else
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003627rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003628done
3629rm -f conftest.$ac_ext conftest.$ac_objext
3630CC=$ac_save_CC
3631
3632fi
3633
3634case "x$ac_cv_prog_cc_stdc" in
3635 x|xno)
3636 echo "$as_me:$LINENO: result: none needed" >&5
3637echo "${ECHO_T}none needed" >&6 ;;
3638 *)
3639 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3640echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3641 CC="$CC $ac_cv_prog_cc_stdc" ;;
3642esac
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644# Some people use a C++ compiler to compile C. Since we use `exit',
3645# in C++ we need to declare it. In case someone uses the same compiler
3646# for both compiling C and C++ we need to have the C++ compiler decide
3647# the declaration of exit, since it's the most demanding environment.
3648cat >conftest.$ac_ext <<_ACEOF
3649#ifndef __cplusplus
3650 choke me
3651#endif
3652_ACEOF
3653rm -f conftest.$ac_objext
3654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003655 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003676 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003677 'extern "C" void std::exit (int) throw (); using std::exit;' \
3678 'extern "C" void std::exit (int); using std::exit;' \
3679 'extern "C" void exit (int) throw ();' \
3680 'extern "C" void exit (int);' \
3681 'void exit (int);'
3682do
3683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003684/* confdefs.h. */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003689$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003690#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003691int
3692main ()
3693{
3694exit (42);
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699rm -f conftest.$ac_objext
3700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003701 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003702 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003708 { ac_try='test -z "$ac_c_werror_flag"
3709 || test ! -s conftest.err'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; } &&
3715 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 :
3722else
3723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003724sed 's/^/| /' conftest.$ac_ext >&5
3725
John Criswell7a73b802003-06-30 21:59:07 +00003726continue
3727fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003729 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003730/* confdefs.h. */
3731_ACEOF
3732cat confdefs.h >>conftest.$ac_ext
3733cat >>conftest.$ac_ext <<_ACEOF
3734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003735$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003736int
3737main ()
3738{
3739exit (42);
3740 ;
3741 return 0;
3742}
3743_ACEOF
3744rm -f conftest.$ac_objext
3745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003747 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 break
3767else
3768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003769sed 's/^/| /' conftest.$ac_ext >&5
3770
John Criswell7a73b802003-06-30 21:59:07 +00003771fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003773done
3774rm -f conftest*
3775if test -n "$ac_declaration"; then
3776 echo '#ifdef __cplusplus' >>confdefs.h
3777 echo $ac_declaration >>confdefs.h
3778 echo '#endif' >>confdefs.h
3779fi
3780
3781else
3782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003783sed 's/^/| /' conftest.$ac_ext >&5
3784
John Criswell7a73b802003-06-30 21:59:07 +00003785fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003787ac_ext=c
3788ac_cpp='$CPP $CPPFLAGS'
3789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003793ac_ext=cc
3794ac_cpp='$CXXCPP $CPPFLAGS'
3795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3798if test -n "$ac_tool_prefix"; then
3799 for ac_prog in $CCC g++
3800 do
3801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3802set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3803echo "$as_me:$LINENO: checking for $ac_word" >&5
3804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003808 if test -n "$CXX"; then
3809 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003813do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822done
3823done
3824
3825fi
3826fi
3827CXX=$ac_cv_prog_CXX
3828if test -n "$CXX"; then
3829 echo "$as_me:$LINENO: result: $CXX" >&5
3830echo "${ECHO_T}$CXX" >&6
3831else
3832 echo "$as_me:$LINENO: result: no" >&5
3833echo "${ECHO_T}no" >&6
3834fi
3835
3836 test -n "$CXX" && break
3837 done
3838fi
3839if test -z "$CXX"; then
3840 ac_ct_CXX=$CXX
3841 for ac_prog in $CCC g++
3842do
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844set dummy $ac_prog; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850 if test -n "$ac_ct_CXX"; then
3851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_ac_ct_CXX="$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864done
3865done
3866
3867fi
3868fi
3869ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3870if test -n "$ac_ct_CXX"; then
3871 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3872echo "${ECHO_T}$ac_ct_CXX" >&6
3873else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876fi
3877
3878 test -n "$ac_ct_CXX" && break
3879done
3880test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3881
3882 CXX=$ac_ct_CXX
3883fi
3884
3885
3886# Provide some information about the compiler.
3887echo "$as_me:$LINENO:" \
3888 "checking for C++ compiler version" >&5
3889ac_compiler=`set X $ac_compile; echo $2`
3890{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3891 (eval $ac_compiler --version </dev/null >&5) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }
3895{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3896 (eval $ac_compiler -v </dev/null >&5) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }
3900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3901 (eval $ac_compiler -V </dev/null >&5) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }
3905
3906echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3907echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3908if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
John Criswell7a73b802003-06-30 21:59:07 +00003911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003917
3918int
3919main ()
3920{
3921#ifndef __GNUC__
3922 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003923#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003924
3925 ;
3926 return 0;
3927}
John Criswell7a73b802003-06-30 21:59:07 +00003928_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003929rm -f conftest.$ac_objext
3930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003932 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003933 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_cxx_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_compiler_gnu=yes
3952else
3953 echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956ac_compiler_gnu=no
3957fi
3958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3960
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3963echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3964GXX=`test $ac_compiler_gnu = yes && echo yes`
3965ac_test_CXXFLAGS=${CXXFLAGS+set}
3966ac_save_CXXFLAGS=$CXXFLAGS
3967CXXFLAGS="-g"
3968echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3969echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3970if test "${ac_cv_prog_cxx_g+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h. */
3979
3980int
3981main ()
3982{
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988rm -f conftest.$ac_objext
3989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_cxx_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_prog_cxx_g=yes
4011else
4012 echo "$as_me: failed program was:" >&5
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015ac_cv_prog_cxx_g=no
4016fi
4017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018fi
4019echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4020echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4021if test "$ac_test_CXXFLAGS" = set; then
4022 CXXFLAGS=$ac_save_CXXFLAGS
4023elif test $ac_cv_prog_cxx_g = yes; then
4024 if test "$GXX" = yes; then
4025 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004026 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004027 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004028 fi
4029else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004030 if test "$GXX" = yes; then
4031 CXXFLAGS="-O2"
4032 else
4033 CXXFLAGS=
4034 fi
John Criswell7a73b802003-06-30 21:59:07 +00004035fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004036for ac_declaration in \
4037 '' \
4038 'extern "C" void std::exit (int) throw (); using std::exit;' \
4039 'extern "C" void std::exit (int); using std::exit;' \
4040 'extern "C" void exit (int) throw ();' \
4041 'extern "C" void exit (int);' \
4042 'void exit (int);'
4043do
4044 cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
4050$ac_declaration
4051#include <stdlib.h>
4052int
4053main ()
4054{
4055exit (42);
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004082 :
4083else
4084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004085sed 's/^/| /' conftest.$ac_ext >&5
4086
John Criswell7a73b802003-06-30 21:59:07 +00004087continue
4088fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004090 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004091/* confdefs.h. */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004096$ac_declaration
4097int
4098main ()
4099{
4100exit (42);
4101 ;
4102 return 0;
4103}
John Criswell7a73b802003-06-30 21:59:07 +00004104_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004108 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004109 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_cxx_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004127 break
John Criswell7a73b802003-06-30 21:59:07 +00004128else
4129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004130sed 's/^/| /' conftest.$ac_ext >&5
4131
John Criswell7a73b802003-06-30 21:59:07 +00004132fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004134done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004135rm -f conftest*
4136if test -n "$ac_declaration"; then
4137 echo '#ifdef __cplusplus' >>confdefs.h
4138 echo $ac_declaration >>confdefs.h
4139 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004140fi
4141
4142ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
John Criswell7a73b802003-06-30 21:59:07 +00004148echo "$as_me:$LINENO: checking " >&5
4149echo $ECHO_N "checking ... $ECHO_C" >&6
4150if test "${ac_cv_has_flex+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153 for ac_prog in flex lex
4154do
4155 # Extract the first word of "$ac_prog", so it can be a program name with args.
4156set dummy $ac_prog; ac_word=$2
4157echo "$as_me:$LINENO: checking for $ac_word" >&5
4158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159if test "${ac_cv_prog_LEX+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162 if test -n "$LEX"; then
4163 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4164else
4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_LEX="$ac_prog"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176done
4177done
4178
4179fi
4180fi
4181LEX=$ac_cv_prog_LEX
4182if test -n "$LEX"; then
4183 echo "$as_me:$LINENO: result: $LEX" >&5
4184echo "${ECHO_T}$LEX" >&6
4185else
4186 echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188fi
4189
4190 test -n "$LEX" && break
4191done
4192test -n "$LEX" || LEX=":"
4193
4194if test -z "$LEXLIB"
4195then
4196 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4197echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4198if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 ac_check_lib_save_LIBS=$LIBS
4202LIBS="-lfl $LIBS"
4203cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004209
4210/* Override any gcc2 internal prototype to avoid an error. */
4211#ifdef __cplusplus
4212extern "C"
4213#endif
4214/* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4216char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004217int
4218main ()
4219{
4220yywrap ();
4221 ;
4222 return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext conftest$ac_exeext
4226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004227 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_cv_lib_fl_yywrap=yes
4248else
4249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004250sed 's/^/| /' conftest.$ac_ext >&5
4251
John Criswell7a73b802003-06-30 21:59:07 +00004252ac_cv_lib_fl_yywrap=no
4253fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004254rm -f conftest.err conftest.$ac_objext \
4255 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004256LIBS=$ac_check_lib_save_LIBS
4257fi
4258echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4259echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4260if test $ac_cv_lib_fl_yywrap = yes; then
4261 LEXLIB="-lfl"
4262else
4263 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4264echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4265if test "${ac_cv_lib_l_yywrap+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 ac_check_lib_save_LIBS=$LIBS
4269LIBS="-ll $LIBS"
4270cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004276
4277/* Override any gcc2 internal prototype to avoid an error. */
4278#ifdef __cplusplus
4279extern "C"
4280#endif
4281/* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4283char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004284int
4285main ()
4286{
4287yywrap ();
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004294 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004295 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004301 { ac_try='test -z "$ac_c_werror_flag"
4302 || test ! -s conftest.err'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; } &&
4308 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_lib_l_yywrap=yes
4315else
4316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004317sed 's/^/| /' conftest.$ac_ext >&5
4318
John Criswell7a73b802003-06-30 21:59:07 +00004319ac_cv_lib_l_yywrap=no
4320fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004321rm -f conftest.err conftest.$ac_objext \
4322 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004323LIBS=$ac_check_lib_save_LIBS
4324fi
4325echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4326echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4327if test $ac_cv_lib_l_yywrap = yes; then
4328 LEXLIB="-ll"
4329fi
4330
4331fi
4332
4333fi
4334
4335if test "x$LEX" != "x:"; then
4336 echo "$as_me:$LINENO: checking lex output file root" >&5
4337echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4338if test "${ac_cv_prog_lex_root+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 # The minimal lex program is just a single line: %%. But some broken lexes
4342# (Solaris, I think it was) want two %% lines, so accommodate them.
4343cat >conftest.l <<_ACEOF
4344%%
4345%%
4346_ACEOF
4347{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4348 (eval $LEX conftest.l) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }
4352if test -f lex.yy.c; then
4353 ac_cv_prog_lex_root=lex.yy
4354elif test -f lexyy.c; then
4355 ac_cv_prog_lex_root=lexyy
4356else
4357 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4358echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4359 { (exit 1); exit 1; }; }
4360fi
4361fi
4362echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4363echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4364rm -f conftest.l
4365LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4366
4367echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4368echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4369if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372 # POSIX says lex can declare yytext either as a pointer or an array; the
4373# default is implementation-dependent. Figure out which it is, since
4374# not all implementations provide the %pointer and %array declarations.
4375ac_cv_prog_lex_yytext_pointer=no
4376echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4377ac_save_LIBS=$LIBS
4378LIBS="$LIBS $LEXLIB"
4379cat >conftest.$ac_ext <<_ACEOF
4380`cat $LEX_OUTPUT_ROOT.c`
4381_ACEOF
4382rm -f conftest.$ac_objext conftest$ac_exeext
4383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004384 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_prog_lex_yytext_pointer=yes
4405else
4406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004407sed 's/^/| /' conftest.$ac_ext >&5
4408
John Criswell7a73b802003-06-30 21:59:07 +00004409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004410rm -f conftest.err conftest.$ac_objext \
4411 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004412LIBS=$ac_save_LIBS
4413rm -f "${LEX_OUTPUT_ROOT}.c"
4414
4415fi
4416echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4417echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4418if test $ac_cv_prog_lex_yytext_pointer = yes; then
4419
4420cat >>confdefs.h <<\_ACEOF
4421#define YYTEXT_POINTER 1
4422_ACEOF
4423
4424fi
4425
4426fi
4427
4428fi
4429echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4430echo "${ECHO_T}$ac_cv_has_flex" >&6
4431if test "$LEX" != "flex"; then
4432 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4433echo "$as_me: error: flex not found but required" >&2;}
4434 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004435else
4436 FLEX=flex
4437
John Criswell7a73b802003-06-30 21:59:07 +00004438fi
4439
4440echo "$as_me:$LINENO: checking " >&5
4441echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004442if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445 for ac_prog in 'bison -y' byacc
4446do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448set dummy $ac_prog; ac_word=$2
4449echo "$as_me:$LINENO: checking for $ac_word" >&5
4450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451if test "${ac_cv_prog_YACC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454 if test -n "$YACC"; then
4455 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_YACC="$ac_prog"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470
4471fi
4472fi
4473YACC=$ac_cv_prog_YACC
4474if test -n "$YACC"; then
4475 echo "$as_me:$LINENO: result: $YACC" >&5
4476echo "${ECHO_T}$YACC" >&6
4477else
4478 echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6
4480fi
4481
4482 test -n "$YACC" && break
4483done
4484test -n "$YACC" || YACC="yacc"
4485
John Criswell7a73b802003-06-30 21:59:07 +00004486fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004487echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4488echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004489if test "$YACC" != "bison -y"; then
4490 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4491echo "$as_me: error: bison not found but required" >&2;}
4492 { (exit 1); exit 1; }; }
4493else
Brian Gaeke12810632004-01-13 06:52:10 +00004494 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004495
4496fi
4497
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004498echo "$as_me:$LINENO: checking for GNU make" >&5
4499echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4500if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004503 llvm_cv_gnu_make_command=''
4504 for a in "$MAKE" make gmake gnumake ; do
4505 if test -z "$a" ; then continue ; fi ;
4506 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4507 then
4508 llvm_cv_gnu_make_command=$a ;
4509 break;
John Criswell47fdd832003-07-14 16:52:07 +00004510 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004511 done
John Criswell7a73b802003-06-30 21:59:07 +00004512fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004513echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4514echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4515 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4516 ifGNUmake='' ;
4517 else
4518 ifGNUmake='#' ;
4519 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4520echo "${ECHO_T}\"Not found\"" >&6;
4521 fi
John Criswell7a73b802003-06-30 21:59:07 +00004522
John Criswell7a73b802003-06-30 21:59:07 +00004523
4524echo "$as_me:$LINENO: checking whether ln -s works" >&5
4525echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4526LN_S=$as_ln_s
4527if test "$LN_S" = "ln -s"; then
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530else
4531 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4532echo "${ECHO_T}no, using $LN_S" >&6
4533fi
4534
Reid Spencer8a2d4712004-12-16 17:48:14 +00004535# Extract the first word of "cmp", so it can be a program name with args.
4536set dummy cmp; ac_word=$2
4537echo "$as_me:$LINENO: checking for $ac_word" >&5
4538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539if test "${ac_cv_path_CMP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 case $CMP in
4543 [\\/]* | ?:[\\/]*)
4544 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4545 ;;
4546 *)
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558done
4559done
4560
4561 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4562 ;;
4563esac
4564fi
4565CMP=$ac_cv_path_CMP
4566
4567if test -n "$CMP"; then
4568 echo "$as_me:$LINENO: result: $CMP" >&5
4569echo "${ECHO_T}$CMP" >&6
4570else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573fi
4574
4575# Extract the first word of "cp", so it can be a program name with args.
4576set dummy cp; ac_word=$2
4577echo "$as_me:$LINENO: checking for $ac_word" >&5
4578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579if test "${ac_cv_path_CP+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582 case $CP in
4583 [\\/]* | ?:[\\/]*)
4584 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4585 ;;
4586 *)
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598done
4599done
4600
4601 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4602 ;;
4603esac
4604fi
4605CP=$ac_cv_path_CP
4606
4607if test -n "$CP"; then
4608 echo "$as_me:$LINENO: result: $CP" >&5
4609echo "${ECHO_T}$CP" >&6
4610else
4611 echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004615# Extract the first word of "date", so it can be a program name with args.
4616set dummy date; ac_word=$2
4617echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004622 case $DATE in
4623 [\\/]* | ?:[\\/]*)
4624 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004625 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004626 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004637 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004638done
4639done
John Criswell7a73b802003-06-30 21:59:07 +00004640
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004641 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004642 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004643esac
John Criswell7a73b802003-06-30 21:59:07 +00004644fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004645DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004646
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004647if test -n "$DATE"; then
4648 echo "$as_me:$LINENO: result: $DATE" >&5
4649echo "${ECHO_T}$DATE" >&6
4650else
4651 echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6
4653fi
John Criswell7a73b802003-06-30 21:59:07 +00004654
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004655# Extract the first word of "find", so it can be a program name with args.
4656set dummy find; ac_word=$2
4657echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4659if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004662 case $FIND in
4663 [\\/]* | ?:[\\/]*)
4664 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4665 ;;
4666 *)
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678done
4679done
4680
4681 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4682 ;;
4683esac
4684fi
4685FIND=$ac_cv_path_FIND
4686
4687if test -n "$FIND"; then
4688 echo "$as_me:$LINENO: result: $FIND" >&5
4689echo "${ECHO_T}$FIND" >&6
4690else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693fi
4694
4695# Extract the first word of "grep", so it can be a program name with args.
4696set dummy grep; ac_word=$2
4697echo "$as_me:$LINENO: checking for $ac_word" >&5
4698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699if test "${ac_cv_path_GREP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 case $GREP in
4703 [\\/]* | ?:[\\/]*)
4704 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4705 ;;
4706 *)
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718done
4719done
4720
4721 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4722 ;;
4723esac
4724fi
4725GREP=$ac_cv_path_GREP
4726
4727if test -n "$GREP"; then
4728 echo "$as_me:$LINENO: result: $GREP" >&5
4729echo "${ECHO_T}$GREP" >&6
4730else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733fi
4734
4735# Extract the first word of "mkdir", so it can be a program name with args.
4736set dummy mkdir; ac_word=$2
4737echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739if test "${ac_cv_path_MKDIR+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742 case $MKDIR in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4745 ;;
4746 *)
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759done
4760
4761 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4762 ;;
4763esac
4764fi
4765MKDIR=$ac_cv_path_MKDIR
4766
4767if test -n "$MKDIR"; then
4768 echo "$as_me:$LINENO: result: $MKDIR" >&5
4769echo "${ECHO_T}$MKDIR" >&6
4770else
4771 echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773fi
4774
4775# Extract the first word of "mv", so it can be a program name with args.
4776set dummy mv; ac_word=$2
4777echo "$as_me:$LINENO: checking for $ac_word" >&5
4778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779if test "${ac_cv_path_MV+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782 case $MV in
4783 [\\/]* | ?:[\\/]*)
4784 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4785 ;;
4786 *)
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800
4801 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4802 ;;
4803esac
4804fi
4805MV=$ac_cv_path_MV
4806
4807if test -n "$MV"; then
4808 echo "$as_me:$LINENO: result: $MV" >&5
4809echo "${ECHO_T}$MV" >&6
4810else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813fi
4814
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004815if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4817set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4818echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820if test "${ac_cv_prog_RANLIB+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 if test -n "$RANLIB"; then
4824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837done
4838done
4839
4840fi
4841fi
4842RANLIB=$ac_cv_prog_RANLIB
4843if test -n "$RANLIB"; then
4844 echo "$as_me:$LINENO: result: $RANLIB" >&5
4845echo "${ECHO_T}$RANLIB" >&6
4846else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849fi
4850
4851fi
4852if test -z "$ac_cv_prog_RANLIB"; then
4853 ac_ct_RANLIB=$RANLIB
4854 # Extract the first word of "ranlib", so it can be a program name with args.
4855set dummy 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_ac_ct_RANLIB+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 if test -n "$ac_ct_RANLIB"; then
4862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876done
4877
4878 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4879fi
4880fi
4881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882if test -n "$ac_ct_RANLIB"; then
4883 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4884echo "${ECHO_T}$ac_ct_RANLIB" >&6
4885else
4886 echo "$as_me:$LINENO: result: no" >&5
4887echo "${ECHO_T}no" >&6
4888fi
4889
4890 RANLIB=$ac_ct_RANLIB
4891else
4892 RANLIB="$ac_cv_prog_RANLIB"
4893fi
4894
4895# Extract the first word of "rm", so it can be a program name with args.
4896set dummy rm; ac_word=$2
4897echo "$as_me:$LINENO: checking for $ac_word" >&5
4898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899if test "${ac_cv_path_RM+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902 case $RM in
4903 [\\/]* | ?:[\\/]*)
4904 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4905 ;;
4906 *)
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4917 fi
4918done
4919done
4920
4921 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4922 ;;
4923esac
4924fi
4925RM=$ac_cv_path_RM
4926
4927if test -n "$RM"; then
4928 echo "$as_me:$LINENO: result: $RM" >&5
4929echo "${ECHO_T}$RM" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935# Extract the first word of "sed", so it can be a program name with args.
4936set dummy sed; ac_word=$2
4937echo "$as_me:$LINENO: checking for $ac_word" >&5
4938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939if test "${ac_cv_path_SED+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
4942 case $SED in
4943 [\\/]* | ?:[\\/]*)
4944 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4945 ;;
4946 *)
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4957 fi
4958done
4959done
4960
4961 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4962 ;;
4963esac
4964fi
4965SED=$ac_cv_path_SED
4966
4967if test -n "$SED"; then
4968 echo "$as_me:$LINENO: result: $SED" >&5
4969echo "${ECHO_T}$SED" >&6
4970else
4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973fi
4974
4975# Extract the first word of "tar", so it can be a program name with args.
4976set dummy tar; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_path_TAR+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 case $TAR in
4983 [\\/]* | ?:[\\/]*)
4984 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4985 ;;
4986 *)
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998done
4999done
5000
5001 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5002 ;;
5003esac
5004fi
5005TAR=$ac_cv_path_TAR
5006
5007if test -n "$TAR"; then
5008 echo "$as_me:$LINENO: result: $TAR" >&5
5009echo "${ECHO_T}$TAR" >&6
5010else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015
5016# Find a good install program. We prefer a C program (faster),
5017# so one script is as good as another. But avoid the broken or
5018# incompatible versions:
5019# SysV /etc/install, /usr/sbin/install
5020# SunOS /usr/etc/install
5021# IRIX /sbin/install
5022# AIX /bin/install
5023# AmigaOS /C/install, which installs bootblocks on floppy discs
5024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5027# OS/2's system install, which has a completely different semantic
5028# ./install, which can be erroneously created by make from ./install.sh.
5029echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5030echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5031if test -z "$INSTALL"; then
5032if test "${ac_cv_path_install+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 # Account for people who put trailing slashes in PATH elements.
5041case $as_dir/ in
5042 ./ | .// | /cC/* | \
5043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5045 /usr/ucb/* ) ;;
5046 *)
5047 # OSF1 and SCO ODT 3.0 have their own names for install.
5048 # Don't use installbsd from OSF since it installs stuff as root
5049 # by default.
5050 for ac_prog in ginstall scoinst install; do
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5053 if test $ac_prog = install &&
5054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5055 # AIX install. It has an incompatible calling convention.
5056 :
5057 elif test $ac_prog = install &&
5058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5059 # program-specific install script used by HP pwplus--don't use.
5060 :
5061 else
5062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5063 break 3
5064 fi
5065 fi
5066 done
5067 done
5068 ;;
5069esac
5070done
5071
5072
5073fi
5074 if test "${ac_cv_path_install+set}" = set; then
5075 INSTALL=$ac_cv_path_install
5076 else
5077 # As a last resort, use the slow shell script. We don't cache a
5078 # path for INSTALL within a source directory, because that will
5079 # break other packages using the cache if that directory is
5080 # removed, or if the path is relative.
5081 INSTALL=$ac_install_sh
5082 fi
5083fi
5084echo "$as_me:$LINENO: result: $INSTALL" >&5
5085echo "${ECHO_T}$INSTALL" >&6
5086
5087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5088# It thinks the first close brace ends the variable substitution.
5089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5090
5091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5092
5093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5094
5095
5096# Extract the first word of "bzip2", so it can be a program name with args.
5097set dummy bzip2; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_path_BZIP2+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103 case $BZIP2 in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
5121
5122 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5123 ;;
5124esac
5125fi
5126BZIP2=$ac_cv_path_BZIP2
5127
5128if test -n "$BZIP2"; then
5129 echo "$as_me:$LINENO: result: $BZIP2" >&5
5130echo "${ECHO_T}$BZIP2" >&6
5131else
5132 echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
5134fi
5135
5136# Extract the first word of "dot", so it can be a program name with args.
5137set dummy dot; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_path_DOT+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143 case $DOT in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160done
5161
5162 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5163 ;;
5164esac
5165fi
5166DOT=$ac_cv_path_DOT
5167
5168if test -n "$DOT"; then
5169 echo "$as_me:$LINENO: result: $DOT" >&5
5170echo "${ECHO_T}$DOT" >&6
5171else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174fi
5175
5176# Extract the first word of "doxygen", so it can be a program name with args.
5177set dummy doxygen; ac_word=$2
5178echo "$as_me:$LINENO: checking for $ac_word" >&5
5179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180if test "${ac_cv_path_DOXYGEN+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183 case $DOXYGEN in
5184 [\\/]* | ?:[\\/]*)
5185 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5186 ;;
5187 *)
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199done
5200done
5201
5202 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5203 ;;
5204esac
5205fi
5206DOXYGEN=$ac_cv_path_DOXYGEN
5207
5208if test -n "$DOXYGEN"; then
5209 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5210echo "${ECHO_T}$DOXYGEN" >&6
5211else
5212 echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214fi
5215
5216# Extract the first word of "etags", so it can be a program name with args.
5217set dummy etags; ac_word=$2
5218echo "$as_me:$LINENO: checking for $ac_word" >&5
5219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5220if test "${ac_cv_path_ETAGS+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223 case $ETAGS in
5224 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5226 ;;
5227 *)
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240done
5241
5242 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5243 ;;
5244esac
5245fi
5246ETAGS=$ac_cv_path_ETAGS
5247
5248if test -n "$ETAGS"; then
5249 echo "$as_me:$LINENO: result: $ETAGS" >&5
5250echo "${ECHO_T}$ETAGS" >&6
5251else
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256# Extract the first word of "groff", so it can be a program name with args.
5257set dummy groff; ac_word=$2
5258echo "$as_me:$LINENO: checking for $ac_word" >&5
5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260if test "${ac_cv_path_GROFF+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 case $GROFF in
5264 [\\/]* | ?:[\\/]*)
5265 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5266 ;;
5267 *)
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279done
5280done
5281
5282 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5283 ;;
5284esac
5285fi
5286GROFF=$ac_cv_path_GROFF
5287
5288if test -n "$GROFF"; then
5289 echo "$as_me:$LINENO: result: $GROFF" >&5
5290echo "${ECHO_T}$GROFF" >&6
5291else
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294fi
5295
5296# Extract the first word of "gzip", so it can be a program name with args.
5297set dummy gzip; ac_word=$2
5298echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300if test "${ac_cv_path_GZIP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 case $GZIP in
5304 [\\/]* | ?:[\\/]*)
5305 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5306 ;;
5307 *)
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH
5310do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5318 fi
5319done
5320done
5321
5322 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5323 ;;
5324esac
5325fi
5326GZIP=$ac_cv_path_GZIP
5327
5328if test -n "$GZIP"; then
5329 echo "$as_me:$LINENO: result: $GZIP" >&5
5330echo "${ECHO_T}$GZIP" >&6
5331else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334fi
5335
5336# Extract the first word of "pod2html", so it can be a program name with args.
5337set dummy pod2html; ac_word=$2
5338echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340if test "${ac_cv_path_POD2HTML+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 case $POD2HTML in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359done
5360done
5361
5362 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5363 ;;
5364esac
5365fi
5366POD2HTML=$ac_cv_path_POD2HTML
5367
5368if test -n "$POD2HTML"; then
5369 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5370echo "${ECHO_T}$POD2HTML" >&6
5371else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374fi
5375
5376# Extract the first word of "pod2man", so it can be a program name with args.
5377set dummy pod2man; ac_word=$2
5378echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380if test "${ac_cv_path_POD2MAN+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 case $POD2MAN in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399done
5400done
5401
5402 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5403 ;;
5404esac
5405fi
5406POD2MAN=$ac_cv_path_POD2MAN
5407
5408if test -n "$POD2MAN"; then
5409 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5410echo "${ECHO_T}$POD2MAN" >&6
5411else
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
5414fi
5415
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005416# Extract the first word of "runtest", so it can be a program name with args.
5417set dummy runtest; ac_word=$2
5418echo "$as_me:$LINENO: checking for $ac_word" >&5
5419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420if test "${ac_cv_path_RUNTEST+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 case $RUNTEST in
5424 [\\/]* | ?:[\\/]*)
5425 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5426 ;;
5427 *)
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439done
5440done
5441
5442 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5443 ;;
5444esac
5445fi
5446RUNTEST=$ac_cv_path_RUNTEST
5447
5448if test -n "$RUNTEST"; then
5449 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5450echo "${ECHO_T}$RUNTEST" >&6
5451else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454fi
5455
Reid Spencer0fcb9412004-11-30 08:11:54 +00005456
Reid Spencer0fcb9412004-11-30 08:11:54 +00005457no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005458echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5459echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005460
5461# Check whether --with-tclinclude or --without-tclinclude was given.
5462if test "${with_tclinclude+set}" = set; then
5463 withval="$with_tclinclude"
5464 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005465else
5466 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005467fi;
5468if test "${ac_cv_path_tclsh+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471
5472if test x"${with_tclinclude}" != x ; then
5473 if test -f ${with_tclinclude}/tclsh ; then
5474 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5475 elif test -f ${with_tclinclude}/src/tclsh ; then
5476 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5477 else
5478 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5479echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5480 { (exit 1); exit 1; }; }
5481 fi
5482fi
5483
Reid Spencer0fcb9412004-11-30 08:11:54 +00005484if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005485 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005486echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005487 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 +00005488do
5489 # Extract the first word of "$ac_prog", so it can be a program name with args.
5490set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005491echo "$as_me:$LINENO: checking for $ac_word" >&5
5492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005493if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
Reid Spencercda35f82004-12-02 04:17:20 +00005496 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005497 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005498 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005499 ;;
5500 *)
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005508 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513done
5514
5515 ;;
5516esac
5517fi
Reid Spencercda35f82004-12-02 04:17:20 +00005518TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005519
Reid Spencercda35f82004-12-02 04:17:20 +00005520if test -n "$TCLSH"; then
5521 echo "$as_me:$LINENO: result: $TCLSH" >&5
5522echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005523else
5524 echo "$as_me:$LINENO: result: no" >&5
5525echo "${ECHO_T}no" >&6
5526fi
5527
Reid Spencercda35f82004-12-02 04:17:20 +00005528 test -n "$TCLSH" && break
5529done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005530
Reid Spencercda35f82004-12-02 04:17:20 +00005531 if test x"${TCLSH}" = x ; then
5532 ac_cv_path_tclsh='';
5533 else
5534 ac_cv_path_tclsh="${TCLSH}";
5535 fi
5536else
5537 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5538echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5539 TCLSH="${ac_cv_path_tclsh}"
5540
5541fi
5542
5543fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005544
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005545# Extract the first word of "zip", so it can be a program name with args.
5546set dummy zip; ac_word=$2
5547echo "$as_me:$LINENO: checking for $ac_word" >&5
5548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549if test "${ac_cv_path_ZIP+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552 case $ZIP in
5553 [\\/]* | ?:[\\/]*)
5554 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5555 ;;
5556 *)
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568done
5569done
5570
5571 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5572 ;;
5573esac
5574fi
5575ZIP=$ac_cv_path_ZIP
5576
5577if test -n "$ZIP"; then
5578 echo "$as_me:$LINENO: result: $ZIP" >&5
5579echo "${ECHO_T}$ZIP" >&6
5580else
5581 echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
5583fi
5584
5585
5586echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5587echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5588if test "${llvm_cv_link_use_r+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005592ac_cpp='$CPP $CPPFLAGS'
5593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005597 oldcflags="$CFLAGS"
5598 CFLAGS="$CFLAGS -Wl,-R."
5599 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005600/* confdefs.h. */
5601_ACEOF
5602cat confdefs.h >>conftest.$ac_ext
5603cat >>conftest.$ac_ext <<_ACEOF
5604/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005605
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005606int
5607main ()
5608{
5609int main() { return 0; }
5610 ;
5611 return 0;
5612}
John Criswell47fdd832003-07-14 16:52:07 +00005613_ACEOF
5614rm -f conftest.$ac_objext conftest$ac_exeext
5615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005616 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005623 { ac_try='test -z "$ac_c_werror_flag"
5624 || test ! -s conftest.err'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005636 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005637else
John Criswell47fdd832003-07-14 16:52:07 +00005638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005639sed 's/^/| /' conftest.$ac_ext >&5
5640
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005641llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005642fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005643rm -f conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005645 CFLAGS="$oldcflags"
5646 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005647ac_cpp='$CPP $CPPFLAGS'
5648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005652
John Criswell7a73b802003-06-30 21:59:07 +00005653fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005654echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5655echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5656if test "$llvm_cv_link_use_r" = yes ; then
5657
5658cat >>confdefs.h <<\_ACEOF
5659#define HAVE_LINK_R 1
5660_ACEOF
5661
John Criswell47fdd832003-07-14 16:52:07 +00005662 fi
John Criswell47fdd832003-07-14 16:52:07 +00005663
John Criswell47fdd832003-07-14 16:52:07 +00005664
John Criswell47fdd832003-07-14 16:52:07 +00005665
John Criswell7a73b802003-06-30 21:59:07 +00005666
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005667echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5668echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5669if test "${ac_cv_c_const+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h. */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h. */
5678
5679int
5680main ()
5681{
5682/* FIXME: Include the comments suggested by Paul. */
5683#ifndef __cplusplus
5684 /* Ultrix mips cc rejects this. */
5685 typedef int charset[2];
5686 const charset x;
5687 /* SunOS 4.1.1 cc rejects this. */
5688 char const *const *ccp;
5689 char **p;
5690 /* NEC SVR4.0.2 mips cc rejects this. */
5691 struct point {int x, y;};
5692 static struct point const zero = {0,0};
5693 /* AIX XL C 1.02.0.0 rejects this.
5694 It does not let you subtract one const X* pointer from another in
5695 an arm of an if-expression whose if-part is not a constant
5696 expression */
5697 const char *g = "string";
5698 ccp = &g + (g ? g-g : 0);
5699 /* HPUX 7.0 cc rejects these. */
5700 ++ccp;
5701 p = (char**) ccp;
5702 ccp = (char const *const *) p;
5703 { /* SCO 3.2v4 cc rejects this. */
5704 char *t;
5705 char const *s = 0 ? (char *) 0 : (char const *) 0;
5706
5707 *t++ = 0;
5708 }
5709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5710 int x[] = {25, 17};
5711 const int *foo = &x[0];
5712 ++foo;
5713 }
5714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5715 typedef const int *iptr;
5716 iptr p = 0;
5717 ++p;
5718 }
5719 { /* AIX XL C 1.02.0.0 rejects this saying
5720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5721 struct s { int j; const int *ap[3]; };
5722 struct s *b; b->j = 5;
5723 }
5724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5725 const int foo = 10;
5726 }
5727#endif
5728
5729 ;
5730 return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_c_const=yes
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760ac_cv_c_const=no
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763fi
5764echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5765echo "${ECHO_T}$ac_cv_c_const" >&6
5766if test $ac_cv_c_const = no; then
5767
5768cat >>confdefs.h <<\_ACEOF
5769#define const
5770_ACEOF
5771
5772fi
5773
5774
5775echo "$as_me:$LINENO: checking for egrep" >&5
5776echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5777if test "${ac_cv_prog_egrep+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5781 then ac_cv_prog_egrep='grep -E'
5782 else ac_cv_prog_egrep='egrep'
5783 fi
5784fi
5785echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5786echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5787 EGREP=$ac_cv_prog_egrep
5788
John Criswell7a73b802003-06-30 21:59:07 +00005789
5790echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5792if test "${ac_cv_header_stdc+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005801#include <stdlib.h>
5802#include <stdarg.h>
5803#include <string.h>
5804#include <float.h>
5805
John Criswell0c38eaf2003-09-10 15:17:25 +00005806int
5807main ()
5808{
5809
5810 ;
5811 return 0;
5812}
John Criswell7a73b802003-06-30 21:59:07 +00005813_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005814rm -f conftest.$ac_objext
5815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005816 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005822 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005836 ac_cv_header_stdc=yes
5837else
5838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005839sed 's/^/| /' conftest.$ac_ext >&5
5840
5841ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005842fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005844
5845if test $ac_cv_header_stdc = yes; then
5846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5847 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005853#include <string.h>
5854
5855_ACEOF
5856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005857 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005858 :
5859else
5860 ac_cv_header_stdc=no
5861fi
5862rm -f conftest*
5863
5864fi
5865
5866if test $ac_cv_header_stdc = yes; then
5867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005869/* confdefs.h. */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005874#include <stdlib.h>
5875
5876_ACEOF
5877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005878 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005879 :
5880else
5881 ac_cv_header_stdc=no
5882fi
5883rm -f conftest*
5884
5885fi
5886
5887if test $ac_cv_header_stdc = yes; then
5888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5889 if test "$cross_compiling" = yes; then
5890 :
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005898#include <ctype.h>
5899#if ((' ' & 0x0FF) == 0x020)
5900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5902#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005903# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005904 (('a' <= (c) && (c) <= 'i') \
5905 || ('j' <= (c) && (c) <= 'r') \
5906 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5908#endif
5909
5910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5911int
5912main ()
5913{
5914 int i;
5915 for (i = 0; i < 256; i++)
5916 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005917 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005918 exit(2);
5919 exit (0);
5920}
5921_ACEOF
5922rm -f conftest$ac_exeext
5923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 :
5934else
5935 echo "$as_me: program exited with status $ac_status" >&5
5936echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005937sed 's/^/| /' conftest.$ac_ext >&5
5938
John Criswell7a73b802003-06-30 21:59:07 +00005939( exit $ac_status )
5940ac_cv_header_stdc=no
5941fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005943fi
5944fi
5945fi
5946echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5947echo "${ECHO_T}$ac_cv_header_stdc" >&6
5948if test $ac_cv_header_stdc = yes; then
5949
5950cat >>confdefs.h <<\_ACEOF
5951#define STDC_HEADERS 1
5952_ACEOF
5953
5954fi
5955
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005956
5957
5958
5959
5960
5961ac_header_dirent=no
5962for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5963 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5964echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5965echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5966if eval "test \"\${$as_ac_Header+set}\" = set"; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h. */
5975#include <sys/types.h>
5976#include <$ac_hdr>
5977
5978int
5979main ()
5980{
5981if ((DIR *) 0)
5982return 0;
5983 ;
5984 return 0;
5985}
5986_ACEOF
5987rm -f conftest.$ac_objext
5988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 eval "$as_ac_Header=yes"
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014eval "$as_ac_Header=no"
6015fi
6016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6023_ACEOF
6024
6025ac_header_dirent=$ac_hdr; break
6026fi
6027
6028done
6029# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6030if test $ac_header_dirent = dirent.h; then
6031 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6032echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6033if test "${ac_cv_search_opendir+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 ac_func_search_save_LIBS=$LIBS
6037ac_cv_search_opendir=no
6038cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044
6045/* Override any gcc2 internal prototype to avoid an error. */
6046#ifdef __cplusplus
6047extern "C"
6048#endif
6049/* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051char opendir ();
6052int
6053main ()
6054{
6055opendir ();
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext conftest$ac_exeext
6061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_c_werror_flag"
6070 || test ! -s conftest.err'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_cv_search_opendir="none required"
6083else
6084 echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087fi
6088rm -f conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090if test "$ac_cv_search_opendir" = no; then
6091 for ac_lib in dir; do
6092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099
6100/* Override any gcc2 internal prototype to avoid an error. */
6101#ifdef __cplusplus
6102extern "C"
6103#endif
6104/* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106char opendir ();
6107int
6108main ()
6109{
6110opendir ();
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext conftest$ac_exeext
6116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_search_opendir="-l$ac_lib"
6138break
6139else
6140 echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143fi
6144rm -f conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6146 done
6147fi
6148LIBS=$ac_func_search_save_LIBS
6149fi
6150echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6151echo "${ECHO_T}$ac_cv_search_opendir" >&6
6152if test "$ac_cv_search_opendir" != no; then
6153 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6154
6155fi
6156
6157else
6158 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6159echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6160if test "${ac_cv_search_opendir+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162else
6163 ac_func_search_save_LIBS=$LIBS
6164ac_cv_search_opendir=no
6165cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171
6172/* Override any gcc2 internal prototype to avoid an error. */
6173#ifdef __cplusplus
6174extern "C"
6175#endif
6176/* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6178char opendir ();
6179int
6180main ()
6181{
6182opendir ();
6183 ;
6184 return 0;
6185}
6186_ACEOF
6187rm -f conftest.$ac_objext conftest$ac_exeext
6188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_search_opendir="none required"
6210else
6211 echo "$as_me: failed program was:" >&5
6212sed 's/^/| /' conftest.$ac_ext >&5
6213
6214fi
6215rm -f conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
6217if test "$ac_cv_search_opendir" = no; then
6218 for ac_lib in x; do
6219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227/* Override any gcc2 internal prototype to avoid an error. */
6228#ifdef __cplusplus
6229extern "C"
6230#endif
6231/* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6233char opendir ();
6234int
6235main ()
6236{
6237opendir ();
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext conftest$ac_exeext
6243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244 (eval $ac_link) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_search_opendir="-l$ac_lib"
6265break
6266else
6267 echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270fi
6271rm -f conftest.err conftest.$ac_objext \
6272 conftest$ac_exeext conftest.$ac_ext
6273 done
6274fi
6275LIBS=$ac_func_search_save_LIBS
6276fi
6277echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6278echo "${ECHO_T}$ac_cv_search_opendir" >&6
6279if test "$ac_cv_search_opendir" != no; then
6280 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6281
6282fi
6283
6284fi
6285
John Criswell7a73b802003-06-30 21:59:07 +00006286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006297 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006298do
6299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6300echo "$as_me:$LINENO: checking for $ac_header" >&5
6301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006311$ac_includes_default
6312
6313#include <$ac_header>
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006317 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 eval "$as_ac_Header=yes"
6338else
6339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006340sed 's/^/| /' conftest.$ac_ext >&5
6341
John Criswell7a73b802003-06-30 21:59:07 +00006342eval "$as_ac_Header=no"
6343fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006345fi
6346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6348if test `eval echo '${'$as_ac_Header'}'` = yes; then
6349 cat >>confdefs.h <<_ACEOF
6350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351_ACEOF
6352
6353fi
6354
6355done
6356
6357
6358
6359for ac_header in dlfcn.h
6360do
6361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006362if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006367fi
6368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006370else
Brian Gaeke0a621332004-09-08 20:38:05 +00006371 # Is the header compilable?
6372echo "$as_me:$LINENO: checking $ac_header usability" >&5
6373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6374cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006380$ac_includes_default
6381#include <$ac_header>
6382_ACEOF
6383rm -f conftest.$ac_objext
6384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006385 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006405 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006406else
6407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006408sed 's/^/| /' conftest.$ac_ext >&5
6409
Brian Gaeke0a621332004-09-08 20:38:05 +00006410ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414echo "${ECHO_T}$ac_header_compiler" >&6
6415
6416# Is the header present?
6417echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6419cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425#include <$ac_header>
6426_ACEOF
6427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } >/dev/null; then
6435 if test -s conftest.err; then
6436 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006438 else
6439 ac_cpp_err=
6440 fi
6441else
6442 ac_cpp_err=yes
6443fi
6444if test -z "$ac_cpp_err"; then
6445 ac_header_preproc=yes
6446else
6447 echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_header_preproc=no
6451fi
6452rm -f conftest.err conftest.$ac_ext
6453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6454echo "${ECHO_T}$ac_header_preproc" >&6
6455
6456# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6458 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6463 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006464 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006465 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006478 (
6479 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006480## ----------------------------------- ##
6481## Report this to llvmbugs@cs.uiuc.edu ##
6482## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006483_ASBOX
6484 ) |
6485 sed "s/^/$as_me: WARNING: /" >&2
6486 ;;
6487esac
6488echo "$as_me:$LINENO: checking for $ac_header" >&5
6489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006493 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006494fi
6495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006497
6498fi
John Criswell7a73b802003-06-30 21:59:07 +00006499if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500 cat >>confdefs.h <<_ACEOF
6501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502_ACEOF
6503
6504fi
6505
6506done
6507
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006508# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6509if test "${enable_ltdl_install+set}" = set; then
6510 enableval="$enable_ltdl_install"
6511
6512fi;
6513
6514
6515
6516if test x"${enable_ltdl_install-no}" != xno; then
6517 INSTALL_LTDL_TRUE=
6518 INSTALL_LTDL_FALSE='#'
6519else
6520 INSTALL_LTDL_TRUE='#'
6521 INSTALL_LTDL_FALSE=
6522fi
6523
6524
6525
6526if test x"${enable_ltdl_convenience-no}" != xno; then
6527 CONVENIENCE_LTDL_TRUE=
6528 CONVENIENCE_LTDL_FALSE='#'
6529else
6530 CONVENIENCE_LTDL_TRUE='#'
6531 CONVENIENCE_LTDL_FALSE=
6532fi
6533
6534
6535echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6536echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6537library_names_spec=
6538libname_spec='lib$name'
6539soname_spec=
6540shrext_cmds=".so"
6541postinstall_cmds=
6542postuninstall_cmds=
6543finish_cmds=
6544finish_eval=
6545shlibpath_var=
6546shlibpath_overrides_runpath=unknown
6547version_type=none
6548dynamic_linker="$host_os ld.so"
6549sys_lib_dlsearch_path_spec="/lib /usr/lib"
6550if test "$GCC" = yes; then
6551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6553 # if the path contains ";" then we assume it to be the separator
6554 # otherwise default to the standard path separator (i.e. ":") - it is
6555 # assumed that no part of a normal pathname contains ";" but that should
6556 # okay in the real world where ";" in dirpaths is itself problematic.
6557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6558 else
6559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6560 fi
6561else
6562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6563fi
6564need_lib_prefix=unknown
6565hardcode_into_libs=no
6566
6567# when you set need_version to no, make sure it does not cause -set_version
6568# flags to be left without arguments
6569need_version=unknown
6570
6571case $host_os in
6572aix3*)
6573 version_type=linux
6574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6575 shlibpath_var=LIBPATH
6576
6577 # AIX 3 has no versioning support, so we append a major version to the name.
6578 soname_spec='${libname}${release}${shared_ext}$major'
6579 ;;
6580
6581aix4* | aix5*)
6582 version_type=linux
6583 need_lib_prefix=no
6584 need_version=no
6585 hardcode_into_libs=yes
6586 if test "$host_cpu" = ia64; then
6587 # AIX 5 supports IA64
6588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6589 shlibpath_var=LD_LIBRARY_PATH
6590 else
6591 # With GCC up to 2.95.x, collect2 would create an import file
6592 # for dependence libraries. The import file would start with
6593 # the line `#! .'. This would cause the generated library to
6594 # depend on `.', always an invalid library. This was fixed in
6595 # development snapshots of GCC prior to 3.0.
6596 case $host_os in
6597 aix4 | aix4.[01] | aix4.[01].*)
6598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6599 echo ' yes '
6600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6601 :
6602 else
6603 can_build_shared=no
6604 fi
6605 ;;
6606 esac
6607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6608 # soname into executable. Probably we can add versioning support to
6609 # collect2, so additional links can be useful in future.
6610 if test "$aix_use_runtimelinking" = yes; then
6611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6612 # instead of lib<name>.a to let people know that these are not
6613 # typical AIX shared libraries.
6614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6615 else
6616 # We preserve .a as extension for shared libraries through AIX4.2
6617 # and later when we are not doing run time linking.
6618 library_names_spec='${libname}${release}.a $libname.a'
6619 soname_spec='${libname}${release}${shared_ext}$major'
6620 fi
6621 shlibpath_var=LIBPATH
6622 fi
6623 ;;
6624
6625amigaos*)
6626 library_names_spec='$libname.ixlibrary $libname.a'
6627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6628 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'
6629 ;;
6630
6631beos*)
6632 library_names_spec='${libname}${shared_ext}'
6633 dynamic_linker="$host_os ld.so"
6634 shlibpath_var=LIBRARY_PATH
6635 ;;
6636
6637bsdi[45]*)
6638 version_type=linux
6639 need_version=no
6640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6641 soname_spec='${libname}${release}${shared_ext}$major'
6642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6643 shlibpath_var=LD_LIBRARY_PATH
6644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6646 # the default ld.so.conf also contains /usr/contrib/lib and
6647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6648 # libtool to hard-code these into programs
6649 ;;
6650
6651cygwin* | mingw* | pw32*)
6652 version_type=windows
6653 shrext_cmds=".dll"
6654 need_version=no
6655 need_lib_prefix=no
6656
6657 case $GCC,$host_os in
6658 yes,cygwin* | yes,mingw* | yes,pw32*)
6659 library_names_spec='$libname.dll.a'
6660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6661 postinstall_cmds='base_file=`basename \${file}`~
6662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6663 dldir=$destdir/`dirname \$dlpath`~
6664 test -d \$dldir || mkdir -p \$dldir~
6665 $install_prog $dir/$dlname \$dldir/$dlname'
6666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6667 dlpath=$dir/\$dldll~
6668 $rm \$dlpath'
6669 shlibpath_overrides_runpath=yes
6670
6671 case $host_os in
6672 cygwin*)
6673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6676 ;;
6677 mingw*)
6678 # MinGW DLLs use traditional 'lib' prefix
6679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6682 # It is most probably a Windows format PATH printed by
6683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6684 # path with ; separators, and with drive letters. We can handle the
6685 # drive letters (cygwin fileutils understands them), so leave them,
6686 # especially as we might pass files found there to a mingw objdump,
6687 # which wouldn't understand a cygwinified path. Ahh.
6688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6689 else
6690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6691 fi
6692 ;;
6693 pw32*)
6694 # pw32 DLLs use 'pw' prefix rather than 'lib'
6695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6696 ;;
6697 esac
6698 ;;
6699
6700 *)
6701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6702 ;;
6703 esac
6704 dynamic_linker='Win32 ld.exe'
6705 # FIXME: first we should search . and the directory the executable is in
6706 shlibpath_var=PATH
6707 ;;
6708
6709darwin* | rhapsody*)
6710 dynamic_linker="$host_os dyld"
6711 version_type=darwin
6712 need_lib_prefix=no
6713 need_version=no
6714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6715 soname_spec='${libname}${release}${major}$shared_ext'
6716 shlibpath_overrides_runpath=yes
6717 shlibpath_var=DYLD_LIBRARY_PATH
6718 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6720 if test "$GCC" = yes; then
6721 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"`
6722 else
6723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6724 fi
6725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6726 ;;
6727
6728dgux*)
6729 version_type=linux
6730 need_lib_prefix=no
6731 need_version=no
6732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6733 soname_spec='${libname}${release}${shared_ext}$major'
6734 shlibpath_var=LD_LIBRARY_PATH
6735 ;;
6736
6737freebsd1*)
6738 dynamic_linker=no
6739 ;;
6740
6741kfreebsd*-gnu)
6742 version_type=linux
6743 need_lib_prefix=no
6744 need_version=no
6745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6746 soname_spec='${libname}${release}${shared_ext}$major'
6747 shlibpath_var=LD_LIBRARY_PATH
6748 shlibpath_overrides_runpath=no
6749 hardcode_into_libs=yes
6750 dynamic_linker='GNU ld.so'
6751 ;;
6752
6753freebsd*)
6754 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6755 version_type=freebsd-$objformat
6756 case $version_type in
6757 freebsd-elf*)
6758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6759 need_version=no
6760 need_lib_prefix=no
6761 ;;
6762 freebsd-*)
6763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6764 need_version=yes
6765 ;;
6766 esac
6767 shlibpath_var=LD_LIBRARY_PATH
6768 case $host_os in
6769 freebsd2*)
6770 shlibpath_overrides_runpath=yes
6771 ;;
6772 freebsd3.01* | freebsdelf3.01*)
6773 shlibpath_overrides_runpath=yes
6774 hardcode_into_libs=yes
6775 ;;
6776 *) # from 3.2 on
6777 shlibpath_overrides_runpath=no
6778 hardcode_into_libs=yes
6779 ;;
6780 esac
6781 ;;
6782
6783gnu*)
6784 version_type=linux
6785 need_lib_prefix=no
6786 need_version=no
6787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 hardcode_into_libs=yes
6791 ;;
6792
6793hpux9* | hpux10* | hpux11*)
6794 # Give a soname corresponding to the major version so that dld.sl refuses to
6795 # link against other versions.
6796 version_type=sunos
6797 need_lib_prefix=no
6798 need_version=no
6799 case "$host_cpu" in
6800 ia64*)
6801 shrext_cmds='.so'
6802 hardcode_into_libs=yes
6803 dynamic_linker="$host_os dld.so"
6804 shlibpath_var=LD_LIBRARY_PATH
6805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6807 soname_spec='${libname}${release}${shared_ext}$major'
6808 if test "X$HPUX_IA64_MODE" = X32; then
6809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6810 else
6811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6812 fi
6813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6814 ;;
6815 hppa*64*)
6816 shrext_cmds='.sl'
6817 hardcode_into_libs=yes
6818 dynamic_linker="$host_os dld.sl"
6819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6822 soname_spec='${libname}${release}${shared_ext}$major'
6823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6825 ;;
6826 *)
6827 shrext_cmds='.sl'
6828 dynamic_linker="$host_os dld.sl"
6829 shlibpath_var=SHLIB_PATH
6830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6832 soname_spec='${libname}${release}${shared_ext}$major'
6833 ;;
6834 esac
6835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6836 postinstall_cmds='chmod 555 $lib'
6837 ;;
6838
6839irix5* | irix6* | nonstopux*)
6840 case $host_os in
6841 nonstopux*) version_type=nonstopux ;;
6842 *)
6843 if test "$lt_cv_prog_gnu_ld" = yes; then
6844 version_type=linux
6845 else
6846 version_type=irix
6847 fi ;;
6848 esac
6849 need_lib_prefix=no
6850 need_version=no
6851 soname_spec='${libname}${release}${shared_ext}$major'
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6853 case $host_os in
6854 irix5* | nonstopux*)
6855 libsuff= shlibsuff=
6856 ;;
6857 *)
6858 case $LD in # libtool.m4 will add one of these switches to LD
6859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6860 libsuff= shlibsuff= libmagic=32-bit;;
6861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6862 libsuff=32 shlibsuff=N32 libmagic=N32;;
6863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6864 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6865 *) libsuff= shlibsuff= libmagic=never-match;;
6866 esac
6867 ;;
6868 esac
6869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6870 shlibpath_overrides_runpath=no
6871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6873 hardcode_into_libs=yes
6874 ;;
6875
6876# No shared lib support for Linux oldld, aout, or coff.
6877linux*oldld* | linux*aout* | linux*coff*)
6878 dynamic_linker=no
6879 ;;
6880
6881# This must be Linux ELF.
6882linux*)
6883 version_type=linux
6884 need_lib_prefix=no
6885 need_version=no
6886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6887 soname_spec='${libname}${release}${shared_ext}$major'
6888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6889 shlibpath_var=LD_LIBRARY_PATH
6890 shlibpath_overrides_runpath=no
6891 # This implies no fast_install, which is unacceptable.
6892 # Some rework will be needed to allow for fast_install
6893 # before this can be enabled.
6894 hardcode_into_libs=yes
6895
6896 # Append ld.so.conf contents to the search path
6897 if test -f /etc/ld.so.conf; then
6898 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6899 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6900 fi
6901
6902 # We used to test for /lib/ld.so.1 and disable shared libraries on
6903 # powerpc, because MkLinux only supported shared libraries with the
6904 # GNU dynamic linker. Since this was broken with cross compilers,
6905 # most powerpc-linux boxes support dynamic linking these days and
6906 # people can always --disable-shared, the test was removed, and we
6907 # assume the GNU/Linux dynamic linker is in use.
6908 dynamic_linker='GNU/Linux ld.so'
6909 ;;
6910
6911knetbsd*-gnu)
6912 version_type=linux
6913 need_lib_prefix=no
6914 need_version=no
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6916 soname_spec='${libname}${release}${shared_ext}$major'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 shlibpath_overrides_runpath=no
6919 hardcode_into_libs=yes
6920 dynamic_linker='GNU ld.so'
6921 ;;
6922
6923netbsd*)
6924 version_type=sunos
6925 need_lib_prefix=no
6926 need_version=no
6927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6930 dynamic_linker='NetBSD (a.out) ld.so'
6931 else
6932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6933 soname_spec='${libname}${release}${shared_ext}$major'
6934 dynamic_linker='NetBSD ld.elf_so'
6935 fi
6936 shlibpath_var=LD_LIBRARY_PATH
6937 shlibpath_overrides_runpath=yes
6938 hardcode_into_libs=yes
6939 ;;
6940
6941newsos6)
6942 version_type=linux
6943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6944 shlibpath_var=LD_LIBRARY_PATH
6945 shlibpath_overrides_runpath=yes
6946 ;;
6947
6948nto-qnx*)
6949 version_type=linux
6950 need_lib_prefix=no
6951 need_version=no
6952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6953 soname_spec='${libname}${release}${shared_ext}$major'
6954 shlibpath_var=LD_LIBRARY_PATH
6955 shlibpath_overrides_runpath=yes
6956 ;;
6957
6958openbsd*)
6959 version_type=sunos
6960 need_lib_prefix=no
6961 need_version=no
6962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6964 shlibpath_var=LD_LIBRARY_PATH
6965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6966 case $host_os in
6967 openbsd2.[89] | openbsd2.[89].*)
6968 shlibpath_overrides_runpath=no
6969 ;;
6970 *)
6971 shlibpath_overrides_runpath=yes
6972 ;;
6973 esac
6974 else
6975 shlibpath_overrides_runpath=yes
6976 fi
6977 ;;
6978
6979os2*)
6980 libname_spec='$name'
6981 shrext_cmds=".dll"
6982 need_lib_prefix=no
6983 library_names_spec='$libname${shared_ext} $libname.a'
6984 dynamic_linker='OS/2 ld.exe'
6985 shlibpath_var=LIBPATH
6986 ;;
6987
6988osf3* | osf4* | osf5*)
6989 version_type=osf
6990 need_lib_prefix=no
6991 need_version=no
6992 soname_spec='${libname}${release}${shared_ext}$major'
6993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6994 shlibpath_var=LD_LIBRARY_PATH
6995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6996 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6997 ;;
6998
6999sco3.2v5*)
7000 version_type=osf
7001 soname_spec='${libname}${release}${shared_ext}$major'
7002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7003 shlibpath_var=LD_LIBRARY_PATH
7004 ;;
7005
7006solaris*)
7007 version_type=linux
7008 need_lib_prefix=no
7009 need_version=no
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 shlibpath_overrides_runpath=yes
7014 hardcode_into_libs=yes
7015 # ldd complains unless libraries are executable
7016 postinstall_cmds='chmod +x $lib'
7017 ;;
7018
7019sunos4*)
7020 version_type=sunos
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7023 shlibpath_var=LD_LIBRARY_PATH
7024 shlibpath_overrides_runpath=yes
7025 if test "$with_gnu_ld" = yes; then
7026 need_lib_prefix=no
7027 fi
7028 need_version=yes
7029 ;;
7030
7031sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7032 version_type=linux
7033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7034 soname_spec='${libname}${release}${shared_ext}$major'
7035 shlibpath_var=LD_LIBRARY_PATH
7036 case $host_vendor in
7037 sni)
7038 shlibpath_overrides_runpath=no
7039 need_lib_prefix=no
7040 export_dynamic_flag_spec='${wl}-Blargedynsym'
7041 runpath_var=LD_RUN_PATH
7042 ;;
7043 siemens)
7044 need_lib_prefix=no
7045 ;;
7046 motorola)
7047 need_lib_prefix=no
7048 need_version=no
7049 shlibpath_overrides_runpath=no
7050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7051 ;;
7052 esac
7053 ;;
7054
7055sysv4*MP*)
7056 if test -d /usr/nec ;then
7057 version_type=linux
7058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7059 soname_spec='$libname${shared_ext}.$major'
7060 shlibpath_var=LD_LIBRARY_PATH
7061 fi
7062 ;;
7063
7064uts4*)
7065 version_type=linux
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LD_LIBRARY_PATH
7069 ;;
7070
7071*)
7072 dynamic_linker=no
7073 ;;
7074esac
7075echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7076echo "${ECHO_T}$dynamic_linker" >&6
7077test "$dynamic_linker" = no && can_build_shared=no
7078
7079
7080echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7081echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7082if test "${libltdl_cv_shlibext+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085
7086module=yes
7087eval libltdl_cv_shlibext=$shrext_cmds
7088
7089fi
7090echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7091echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7092if test -n "$libltdl_cv_shlibext"; then
7093
7094cat >>confdefs.h <<_ACEOF
7095#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7096_ACEOF
7097
7098fi
7099
7100
7101echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7102echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7103if test "${libltdl_cv_shlibpath_var+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106 libltdl_cv_shlibpath_var="$shlibpath_var"
7107fi
7108echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7109echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7110if test -n "$libltdl_cv_shlibpath_var"; then
7111
7112cat >>confdefs.h <<_ACEOF
7113#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7114_ACEOF
7115
7116fi
7117
7118
7119echo "$as_me:$LINENO: checking for the default library search path" >&5
7120echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7121if test "${libltdl_cv_sys_search_path+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7125fi
7126echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7127echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7128if test -n "$libltdl_cv_sys_search_path"; then
7129 sys_search_path=
7130 for dir in $libltdl_cv_sys_search_path; do
7131 if test -z "$sys_search_path"; then
7132 sys_search_path="$dir"
7133 else
7134 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7135 fi
7136 done
7137
7138cat >>confdefs.h <<_ACEOF
7139#define LTDL_SYSSEARCHPATH "$sys_search_path"
7140_ACEOF
7141
7142fi
7143
7144echo "$as_me:$LINENO: checking for objdir" >&5
7145echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7146if test "${libltdl_cv_objdir+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 libltdl_cv_objdir="$objdir"
7150 if test -n "$objdir"; then
7151 :
7152 else
7153 rm -f .libs 2>/dev/null
7154 mkdir .libs 2>/dev/null
7155 if test -d .libs; then
7156 libltdl_cv_objdir=.libs
7157 else
7158 # MS-DOS does not allow filenames that begin with a dot.
7159 libltdl_cv_objdir=_libs
7160 fi
7161 rmdir .libs 2>/dev/null
7162 fi
7163
7164fi
7165echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7166echo "${ECHO_T}$libltdl_cv_objdir" >&6
7167
7168cat >>confdefs.h <<_ACEOF
7169#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7170_ACEOF
7171
7172
7173echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7174echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7175if test "${lt_cv_path_NM+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 if test -n "$NM"; then
7179 # Let the user override the test.
7180 lt_cv_path_NM="$NM"
7181else
7182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7183 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7184 IFS="$lt_save_ifs"
7185 test -z "$ac_dir" && ac_dir=.
7186 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7187 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7188 # Check to see if the nm accepts a BSD-compat flag.
7189 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7190 # nm: unknown option "B" ignored
7191 # Tru64's nm complains that /dev/null is an invalid object file
7192 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7193 */dev/null* | *'Invalid file or object type'*)
7194 lt_cv_path_NM="$tmp_nm -B"
7195 break
7196 ;;
7197 *)
7198 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7199 */dev/null*)
7200 lt_cv_path_NM="$tmp_nm -p"
7201 break
7202 ;;
7203 *)
7204 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7205 continue # so that we can try to find one that supports BSD flags
7206 ;;
7207 esac
7208 esac
7209 fi
7210 done
7211 IFS="$lt_save_ifs"
7212 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7213fi
7214fi
7215echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7216echo "${ECHO_T}$lt_cv_path_NM" >&6
7217NM="$lt_cv_path_NM"
7218
7219
7220
7221
7222
7223# Check for command to grab the raw symbol name followed by C symbol from nm.
7224echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7225echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7226if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229
7230# These are sane defaults that work on at least a few old systems.
7231# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7232
7233# Character class describing NM global symbol codes.
7234symcode='[BCDEGRST]'
7235
7236# Regexp to match symbols that can be accessed directly from C.
7237sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7238
7239# Transform the above into a raw symbol and a C symbol.
7240symxfrm='\1 \2\3 \3'
7241
7242# Transform an extracted symbol line into a proper C declaration
7243lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7244
7245# Transform an extracted symbol line into symbol name and symbol address
7246lt_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'"
7247
7248# Define system-specific variables.
7249case $host_os in
7250aix*)
7251 symcode='[BCDT]'
7252 ;;
7253cygwin* | mingw* | pw32*)
7254 symcode='[ABCDGISTW]'
7255 ;;
7256hpux*) # Its linker distinguishes data from code symbols
7257 if test "$host_cpu" = ia64; then
7258 symcode='[ABCDEGRST]'
7259 fi
7260 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7261 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'"
7262 ;;
7263linux*)
7264 if test "$host_cpu" = ia64; then
7265 symcode='[ABCDGIRSTW]'
7266 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7267 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'"
7268 fi
7269 ;;
7270irix* | nonstopux*)
7271 symcode='[BCDEGRST]'
7272 ;;
7273osf*)
7274 symcode='[BCDEGQRST]'
7275 ;;
7276solaris* | sysv5*)
7277 symcode='[BDRT]'
7278 ;;
7279sysv4)
7280 symcode='[DFNSTU]'
7281 ;;
7282esac
7283
7284# Handle CRLF in mingw tool chain
7285opt_cr=
7286case $build_os in
7287mingw*)
7288 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7289 ;;
7290esac
7291
7292# If we're using GNU nm, then use its standard symbol codes.
7293case `$NM -V 2>&1` in
7294*GNU* | *'with BFD'*)
7295 symcode='[ABCDGIRSTW]' ;;
7296esac
7297
7298# Try without a prefix undercore, then with it.
7299for ac_symprfx in "" "_"; do
7300
7301 # Write the raw and C identifiers.
7302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7303
7304 # Check to see that the pipe works correctly.
7305 pipe_works=no
7306
7307 rm -f conftest*
7308 cat > conftest.$ac_ext <<EOF
7309#ifdef __cplusplus
7310extern "C" {
7311#endif
7312char nm_test_var;
7313void nm_test_func(){}
7314#ifdef __cplusplus
7315}
7316#endif
7317int main(){nm_test_var='a';nm_test_func();return(0);}
7318EOF
7319
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; then
7325 # Now try to grab the symbols.
7326 nlist=conftest.nm
7327 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && test -s "$nlist"; then
7332 # Try sorting and uniquifying the output.
7333 if sort "$nlist" | uniq > "$nlist"T; then
7334 mv -f "$nlist"T "$nlist"
7335 else
7336 rm -f "$nlist"T
7337 fi
7338
7339 # Make sure that we snagged all the symbols we need.
7340 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7341 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7342 cat <<EOF > conftest.$ac_ext
7343#ifdef __cplusplus
7344extern "C" {
7345#endif
7346
7347EOF
7348 # Now generate the symbol file.
7349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7350
7351 cat <<EOF >> conftest.$ac_ext
7352#if defined (__STDC__) && __STDC__
7353# define lt_ptr_t void *
7354#else
7355# define lt_ptr_t char *
7356# define const
7357#endif
7358
7359/* The mapping between symbol names and symbols. */
7360const struct {
7361 const char *name;
7362 lt_ptr_t address;
7363}
7364lt_preloaded_symbols[] =
7365{
7366EOF
7367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7368 cat <<\EOF >> conftest.$ac_ext
7369 {0, (lt_ptr_t) 0}
7370};
7371
7372#ifdef __cplusplus
7373}
7374#endif
7375EOF
7376 # Now try linking the two files.
7377 mv conftest.$ac_objext conftstm.$ac_objext
7378 lt_save_LIBS="$LIBS"
7379 lt_save_CFLAGS="$CFLAGS"
7380 LIBS="conftstm.$ac_objext"
7381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7387 pipe_works=yes
7388 fi
7389 LIBS="$lt_save_LIBS"
7390 CFLAGS="$lt_save_CFLAGS"
7391 else
7392 echo "cannot find nm_test_func in $nlist" >&5
7393 fi
7394 else
7395 echo "cannot find nm_test_var in $nlist" >&5
7396 fi
7397 else
7398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7399 fi
7400 else
7401 echo "$progname: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7403 fi
7404 rm -f conftest* conftst*
7405
7406 # Do not use the global_symbol_pipe unless it works.
7407 if test "$pipe_works" = yes; then
7408 break
7409 else
7410 lt_cv_sys_global_symbol_pipe=
7411 fi
7412done
7413
7414fi
7415
7416if test -z "$lt_cv_sys_global_symbol_pipe"; then
7417 lt_cv_sys_global_symbol_to_cdecl=
7418fi
7419if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7420 echo "$as_me:$LINENO: result: failed" >&5
7421echo "${ECHO_T}failed" >&6
7422else
7423 echo "$as_me:$LINENO: result: ok" >&5
7424echo "${ECHO_T}ok" >&6
7425fi
7426
7427
7428echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7429echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7430if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7434 libltdl_cv_preloaded_symbols=yes
7435 else
7436 libltdl_cv_preloaded_symbols=no
7437 fi
7438
7439fi
7440echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7441echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7442if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7443
7444cat >>confdefs.h <<\_ACEOF
7445#define HAVE_PRELOADED_SYMBOLS 1
7446_ACEOF
7447
7448fi
7449
7450LIBADD_DL=
7451
7452ac_ext=c
7453ac_cpp='$CPP $CPPFLAGS'
7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458
7459echo "$as_me:$LINENO: checking for shl_load" >&5
7460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7461if test "${ac_cv_func_shl_load+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464 cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
7470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7472#define shl_load innocuous_shl_load
7473
7474/* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char shl_load (); below.
7476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477 <limits.h> exists even on freestanding compilers. */
7478
7479#ifdef __STDC__
7480# include <limits.h>
7481#else
7482# include <assert.h>
7483#endif
7484
7485#undef shl_load
7486
7487/* Override any gcc2 internal prototype to avoid an error. */
7488#ifdef __cplusplus
7489extern "C"
7490{
7491#endif
7492/* We use char because int might match the return type of a gcc2
7493 builtin and then its argument prototype would still apply. */
7494char shl_load ();
7495/* The GNU C library defines this for functions which it implements
7496 to always fail with ENOSYS. Some functions are actually named
7497 something starting with __ and the normal name is an alias. */
7498#if defined (__stub_shl_load) || defined (__stub___shl_load)
7499choke me
7500#else
7501char (*f) () = shl_load;
7502#endif
7503#ifdef __cplusplus
7504}
7505#endif
7506
7507int
7508main ()
7509{
7510return f != shl_load;
7511 ;
7512 return 0;
7513}
7514_ACEOF
7515rm -f conftest.$ac_objext conftest$ac_exeext
7516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517 (eval $ac_link) 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -z "$ac_c_werror_flag"
7525 || test ! -s conftest.err'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; } &&
7531 { ac_try='test -s conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_func_shl_load=yes
7538else
7539 echo "$as_me: failed program was:" >&5
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
7542ac_cv_func_shl_load=no
7543fi
7544rm -f conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546fi
7547echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7548echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7549if test $ac_cv_func_shl_load = yes; then
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define HAVE_SHL_LOAD 1
7553_ACEOF
7554
7555else
7556 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7557echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7558if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561 ac_check_lib_save_LIBS=$LIBS
7562LIBS="-ldld $LIBS"
7563cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h. */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h. */
7569
7570/* Override any gcc2 internal prototype to avoid an error. */
7571#ifdef __cplusplus
7572extern "C"
7573#endif
7574/* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7576char shl_load ();
7577int
7578main ()
7579{
7580shl_load ();
7581 ;
7582 return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext conftest$ac_exeext
7586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>conftest.er1
7588 ac_status=$?
7589 grep -v '^ *+' conftest.er1 >conftest.err
7590 rm -f conftest.er1
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -z "$ac_c_werror_flag"
7595 || test ! -s conftest.err'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; } &&
7601 { ac_try='test -s conftest$ac_exeext'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; }; then
7607 ac_cv_lib_dld_shl_load=yes
7608else
7609 echo "$as_me: failed program was:" >&5
7610sed 's/^/| /' conftest.$ac_ext >&5
7611
7612ac_cv_lib_dld_shl_load=no
7613fi
7614rm -f conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7616LIBS=$ac_check_lib_save_LIBS
7617fi
7618echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7619echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7620if test $ac_cv_lib_dld_shl_load = yes; then
7621
7622cat >>confdefs.h <<\_ACEOF
7623#define HAVE_SHL_LOAD 1
7624_ACEOF
7625
7626 LIBADD_DL="$LIBADD_DL -ldld"
7627else
7628 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7629echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7630if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-ldl $LIBS"
7635cat >conftest.$ac_ext <<_ACEOF
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
7641
7642/* Override any gcc2 internal prototype to avoid an error. */
7643#ifdef __cplusplus
7644extern "C"
7645#endif
7646/* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648char dlopen ();
7649int
7650main ()
7651{
7652dlopen ();
7653 ;
7654 return 0;
7655}
7656_ACEOF
7657rm -f conftest.$ac_objext conftest$ac_exeext
7658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_dl_dlopen=yes
7680else
7681 echo "$as_me: failed program was:" >&5
7682sed 's/^/| /' conftest.$ac_ext >&5
7683
7684ac_cv_lib_dl_dlopen=no
7685fi
7686rm -f conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688LIBS=$ac_check_lib_save_LIBS
7689fi
7690echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7691echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7692if test $ac_cv_lib_dl_dlopen = yes; then
7693
7694cat >>confdefs.h <<\_ACEOF
7695#define HAVE_LIBDL 1
7696_ACEOF
7697
7698 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7699else
7700 cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h. */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h. */
7706#if HAVE_DLFCN_H
7707# include <dlfcn.h>
7708#endif
7709
7710int
7711main ()
7712{
7713dlopen(0, 0);
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext conftest$ac_exeext
7719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag"
7728 || test ! -s conftest.err'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; } &&
7734 { ac_try='test -s conftest$ac_exeext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740
7741cat >>confdefs.h <<\_ACEOF
7742#define HAVE_LIBDL 1
7743_ACEOF
7744 libltdl_cv_func_dlopen="yes"
7745else
7746 echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7750echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7751if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753else
7754 ac_check_lib_save_LIBS=$LIBS
7755LIBS="-lsvld $LIBS"
7756cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
7761/* end confdefs.h. */
7762
7763/* Override any gcc2 internal prototype to avoid an error. */
7764#ifdef __cplusplus
7765extern "C"
7766#endif
7767/* We use char because int might match the return type of a gcc2
7768 builtin and then its argument prototype would still apply. */
7769char dlopen ();
7770int
7771main ()
7772{
7773dlopen ();
7774 ;
7775 return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext conftest$ac_exeext
7779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780 (eval $ac_link) 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag"
7788 || test ! -s conftest.err'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_lib_svld_dlopen=yes
7801else
7802 echo "$as_me: failed program was:" >&5
7803sed 's/^/| /' conftest.$ac_ext >&5
7804
7805ac_cv_lib_svld_dlopen=no
7806fi
7807rm -f conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809LIBS=$ac_check_lib_save_LIBS
7810fi
7811echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7812echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7813if test $ac_cv_lib_svld_dlopen = yes; then
7814
7815cat >>confdefs.h <<\_ACEOF
7816#define HAVE_LIBDL 1
7817_ACEOF
7818
7819 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7820else
7821 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7822echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7823if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826 ac_check_lib_save_LIBS=$LIBS
7827LIBS="-ldld $LIBS"
7828cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
7834
7835/* Override any gcc2 internal prototype to avoid an error. */
7836#ifdef __cplusplus
7837extern "C"
7838#endif
7839/* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841char dld_link ();
7842int
7843main ()
7844{
7845dld_link ();
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850rm -f conftest.$ac_objext conftest$ac_exeext
7851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_lib_dld_dld_link=yes
7873else
7874 echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877ac_cv_lib_dld_dld_link=no
7878fi
7879rm -f conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881LIBS=$ac_check_lib_save_LIBS
7882fi
7883echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7884echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7885if test $ac_cv_lib_dld_dld_link = yes; then
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define HAVE_DLD 1
7889_ACEOF
7890
7891 LIBADD_DL="$LIBADD_DL -ldld"
7892else
7893 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7894echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7895if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898 cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7904/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7906#define _dyld_func_lookup innocuous__dyld_func_lookup
7907
7908/* System header to define __stub macros and hopefully few prototypes,
7909 which can conflict with char _dyld_func_lookup (); below.
7910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7911 <limits.h> exists even on freestanding compilers. */
7912
7913#ifdef __STDC__
7914# include <limits.h>
7915#else
7916# include <assert.h>
7917#endif
7918
7919#undef _dyld_func_lookup
7920
7921/* Override any gcc2 internal prototype to avoid an error. */
7922#ifdef __cplusplus
7923extern "C"
7924{
7925#endif
7926/* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928char _dyld_func_lookup ();
7929/* The GNU C library defines this for functions which it implements
7930 to always fail with ENOSYS. Some functions are actually named
7931 something starting with __ and the normal name is an alias. */
7932#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7933choke me
7934#else
7935char (*f) () = _dyld_func_lookup;
7936#endif
7937#ifdef __cplusplus
7938}
7939#endif
7940
7941int
7942main ()
7943{
7944return f != _dyld_func_lookup;
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949rm -f conftest.$ac_objext conftest$ac_exeext
7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag"
7959 || test ! -s conftest.err'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_func__dyld_func_lookup=yes
7972else
7973 echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976ac_cv_func__dyld_func_lookup=no
7977fi
7978rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980fi
7981echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7982echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7983if test $ac_cv_func__dyld_func_lookup = yes; then
7984
7985cat >>confdefs.h <<\_ACEOF
7986#define HAVE_DYLD 1
7987_ACEOF
7988
7989fi
7990
7991
7992fi
7993
7994
7995fi
7996
7997
7998fi
7999rm -f conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001
8002fi
8003
8004
8005fi
8006
8007
8008fi
8009
8010
8011if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8012then
8013 lt_save_LIBS="$LIBS"
8014 LIBS="$LIBS $LIBADD_DL"
8015
8016for ac_func in dlerror
8017do
8018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8019echo "$as_me:$LINENO: checking for $ac_func" >&5
8020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8021if eval "test \"\${$as_ac_var+set}\" = set"; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 cat >conftest.$ac_ext <<_ACEOF
8025/* confdefs.h. */
8026_ACEOF
8027cat confdefs.h >>conftest.$ac_ext
8028cat >>conftest.$ac_ext <<_ACEOF
8029/* end confdefs.h. */
8030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8032#define $ac_func innocuous_$ac_func
8033
8034/* System header to define __stub macros and hopefully few prototypes,
8035 which can conflict with char $ac_func (); below.
8036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8037 <limits.h> exists even on freestanding compilers. */
8038
8039#ifdef __STDC__
8040# include <limits.h>
8041#else
8042# include <assert.h>
8043#endif
8044
8045#undef $ac_func
8046
8047/* Override any gcc2 internal prototype to avoid an error. */
8048#ifdef __cplusplus
8049extern "C"
8050{
8051#endif
8052/* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8054char $ac_func ();
8055/* The GNU C library defines this for functions which it implements
8056 to always fail with ENOSYS. Some functions are actually named
8057 something starting with __ and the normal name is an alias. */
8058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8059choke me
8060#else
8061char (*f) () = $ac_func;
8062#endif
8063#ifdef __cplusplus
8064}
8065#endif
8066
8067int
8068main ()
8069{
8070return f != $ac_func;
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075rm -f conftest.$ac_objext conftest$ac_exeext
8076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_c_werror_flag"
8085 || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 eval "$as_ac_var=yes"
8098else
8099 echo "$as_me: failed program was:" >&5
8100sed 's/^/| /' conftest.$ac_ext >&5
8101
8102eval "$as_ac_var=no"
8103fi
8104rm -f conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106fi
8107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8109if test `eval echo '${'$as_ac_var'}'` = yes; then
8110 cat >>confdefs.h <<_ACEOF
8111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8112_ACEOF
8113
8114fi
8115done
8116
8117 LIBS="$lt_save_LIBS"
8118fi
8119ac_ext=c
8120ac_cpp='$CPP $CPPFLAGS'
8121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124
8125
8126
8127echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8128echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8129if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131else
8132 ac_cv_sys_symbol_underscore=no
8133 cat > conftest.$ac_ext <<EOF
8134void nm_test_func(){}
8135int main(){nm_test_func;return 0;}
8136EOF
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; then
8142 # Now try to grab the symbols.
8143 ac_nlist=conftest.nm
8144 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8145 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && test -s "$ac_nlist"; then
8149 # See whether the symbols have a leading underscore.
8150 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8151 ac_cv_sys_symbol_underscore=yes
8152 else
8153 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8154 :
8155 else
8156 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8157 fi
8158 fi
8159 else
8160 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8161 fi
8162 else
8163 echo "configure: failed program was:" >&5
8164 cat conftest.c >&5
8165 fi
8166 rm -rf conftest*
8167
8168fi
8169echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8170echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8171
8172
8173if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8174 if test x"$libltdl_cv_func_dlopen" = xyes ||
8175 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8176 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8177echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8178if test "${libltdl_cv_need_uscore+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 libltdl_cv_need_uscore=unknown
8182 save_LIBS="$LIBS"
8183 LIBS="$LIBS $LIBADD_DL"
8184 if test "$cross_compiling" = yes; then :
8185 libltdl_cv_need_uscore=cross
8186else
8187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8188 lt_status=$lt_dlunknown
8189 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +00008190#line 8190 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008191#include "confdefs.h"
8192
8193#if HAVE_DLFCN_H
8194#include <dlfcn.h>
8195#endif
8196
8197#include <stdio.h>
8198
8199#ifdef RTLD_GLOBAL
8200# define LT_DLGLOBAL RTLD_GLOBAL
8201#else
8202# ifdef DL_GLOBAL
8203# define LT_DLGLOBAL DL_GLOBAL
8204# else
8205# define LT_DLGLOBAL 0
8206# endif
8207#endif
8208
8209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8210 find out it does not work in some platform. */
8211#ifndef LT_DLLAZY_OR_NOW
8212# ifdef RTLD_LAZY
8213# define LT_DLLAZY_OR_NOW RTLD_LAZY
8214# else
8215# ifdef DL_LAZY
8216# define LT_DLLAZY_OR_NOW DL_LAZY
8217# else
8218# ifdef RTLD_NOW
8219# define LT_DLLAZY_OR_NOW RTLD_NOW
8220# else
8221# ifdef DL_NOW
8222# define LT_DLLAZY_OR_NOW DL_NOW
8223# else
8224# define LT_DLLAZY_OR_NOW 0
8225# endif
8226# endif
8227# endif
8228# endif
8229#endif
8230
8231#ifdef __cplusplus
8232extern "C" void exit (int);
8233#endif
8234
8235void fnord() { int i=42;}
8236int main ()
8237{
8238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8239 int status = $lt_dlunknown;
8240
8241 if (self)
8242 {
8243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8245 /* dlclose (self); */
8246 }
8247
8248 exit (status);
8249}
8250EOF
8251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8256 (./conftest; exit; ) 2>/dev/null
8257 lt_status=$?
8258 case x$lt_status in
8259 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8260 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8261 x$lt_unknown|x*) ;;
8262 esac
8263 else :
8264 # compilation failed
8265
8266 fi
8267fi
8268rm -fr conftest*
8269
8270 LIBS="$save_LIBS"
8271
8272fi
8273echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8274echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8275 fi
8276fi
8277
8278if test x"$libltdl_cv_need_uscore" = xyes; then
8279
8280cat >>confdefs.h <<\_ACEOF
8281#define NEED_USCORE 1
8282_ACEOF
8283
8284fi
8285
8286
8287echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8288echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8289if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 # PORTME does your system automatically load deplibs for dlopen?
8293 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8294 # For now, we just catch OSes we know something about -- in the
8295 # future, we'll try test this programmatically.
8296 libltdl_cv_sys_dlopen_deplibs=unknown
8297 case "$host_os" in
8298 aix3*|aix4.1.*|aix4.2.*)
8299 # Unknown whether this is true for these versions of AIX, but
8300 # we want this `case' here to explicitly catch those versions.
8301 libltdl_cv_sys_dlopen_deplibs=unknown
8302 ;;
8303 aix[45]*)
8304 libltdl_cv_sys_dlopen_deplibs=yes
8305 ;;
8306 darwin*)
8307 # Assuming the user has installed a libdl from somewhere, this is true
8308 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8309 libltdl_cv_sys_dlopen_deplibs=yes
8310 ;;
8311 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8312 # GNU and its variants, using gnu ld.so (Glibc)
8313 libltdl_cv_sys_dlopen_deplibs=yes
8314 ;;
8315 hpux10*|hpux11*)
8316 libltdl_cv_sys_dlopen_deplibs=yes
8317 ;;
8318 irix[12345]*|irix6.[01]*)
8319 # Catch all versions of IRIX before 6.2, and indicate that we don't
8320 # know how it worked for any of those versions.
8321 libltdl_cv_sys_dlopen_deplibs=unknown
8322 ;;
8323 irix*)
8324 # The case above catches anything before 6.2, and it's known that
8325 # at 6.2 and later dlopen does load deplibs.
8326 libltdl_cv_sys_dlopen_deplibs=yes
8327 ;;
8328 netbsd*)
8329 libltdl_cv_sys_dlopen_deplibs=yes
8330 ;;
8331 openbsd*)
8332 libltdl_cv_sys_dlopen_deplibs=yes
8333 ;;
8334 osf[1234]*)
8335 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8336 # it did *not* use an RPATH in a shared library to find objects the
8337 # library depends on, so we explictly say `no'.
8338 libltdl_cv_sys_dlopen_deplibs=no
8339 ;;
8340 osf5.0|osf5.0a|osf5.1)
8341 # dlopen *does* load deplibs and with the right loader patch applied
8342 # it even uses RPATH in a shared library to search for shared objects
8343 # that the library depends on, but there's no easy way to know if that
8344 # patch is installed. Since this is the case, all we can really
8345 # say is unknown -- it depends on the patch being installed. If
8346 # it is, this changes to `yes'. Without it, it would be `no'.
8347 libltdl_cv_sys_dlopen_deplibs=unknown
8348 ;;
8349 osf*)
8350 # the two cases above should catch all versions of osf <= 5.1. Read
8351 # the comments above for what we know about them.
8352 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8353 # is used to find them so we can finally say `yes'.
8354 libltdl_cv_sys_dlopen_deplibs=yes
8355 ;;
8356 solaris*)
8357 libltdl_cv_sys_dlopen_deplibs=yes
8358 ;;
8359 esac
8360
8361fi
8362echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8363echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8364if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8365
8366cat >>confdefs.h <<\_ACEOF
8367#define LTDL_DLOPEN_DEPLIBS 1
8368_ACEOF
8369
8370fi
8371
8372
8373for ac_header in argz.h
8374do
8375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377 echo "$as_me:$LINENO: checking for $ac_header" >&5
8378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8379if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381fi
8382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384else
8385 # Is the header compilable?
8386echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8388cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394$ac_includes_default
8395#include <$ac_header>
8396_ACEOF
8397rm -f conftest.$ac_objext
8398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424ac_header_compiler=no
8425fi
8426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428echo "${ECHO_T}$ac_header_compiler" >&6
8429
8430# Is the header present?
8431echo "$as_me:$LINENO: checking $ac_header presence" >&5
8432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8433cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
8439#include <$ac_header>
8440_ACEOF
8441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev/null; then
8449 if test -s conftest.err; then
8450 ac_cpp_err=$ac_c_preproc_warn_flag
8451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8452 else
8453 ac_cpp_err=
8454 fi
8455else
8456 ac_cpp_err=yes
8457fi
8458if test -z "$ac_cpp_err"; then
8459 ac_header_preproc=yes
8460else
8461 echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_header_preproc=no
8465fi
8466rm -f conftest.err conftest.$ac_ext
8467echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8468echo "${ECHO_T}$ac_header_preproc" >&6
8469
8470# So? What about this header?
8471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8472 yes:no: )
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8477 ac_header_preproc=yes
8478 ;;
8479 no:yes:* )
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8492 (
8493 cat <<\_ASBOX
8494## ----------------------------------- ##
8495## Report this to llvmbugs@cs.uiuc.edu ##
8496## ----------------------------------- ##
8497_ASBOX
8498 ) |
8499 sed "s/^/$as_me: WARNING: /" >&2
8500 ;;
8501esac
8502echo "$as_me:$LINENO: checking for $ac_header" >&5
8503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507 eval "$as_ac_Header=\$ac_header_preproc"
8508fi
8509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511
8512fi
8513if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514 cat >>confdefs.h <<_ACEOF
8515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516_ACEOF
8517
8518fi
8519
8520done
8521
8522
8523echo "$as_me:$LINENO: checking for error_t" >&5
8524echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8525if test "${ac_cv_type_error_t+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528 cat >conftest.$ac_ext <<_ACEOF
8529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
8534#if HAVE_ARGZ_H
8535# include <argz.h>
8536#endif
8537
8538int
8539main ()
8540{
8541if ((error_t *) 0)
8542 return 0;
8543if (sizeof (error_t))
8544 return 0;
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext
8550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 ac_cv_type_error_t=yes
8572else
8573 echo "$as_me: failed program was:" >&5
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
8576ac_cv_type_error_t=no
8577fi
8578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579fi
8580echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8581echo "${ECHO_T}$ac_cv_type_error_t" >&6
8582if test $ac_cv_type_error_t = yes; then
8583
8584cat >>confdefs.h <<_ACEOF
8585#define HAVE_ERROR_T 1
8586_ACEOF
8587
8588
8589else
8590
8591cat >>confdefs.h <<\_ACEOF
8592#define error_t int
8593_ACEOF
8594
8595fi
8596
8597
8598
8599
8600
8601
8602
8603for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8604do
8605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8606echo "$as_me:$LINENO: checking for $ac_func" >&5
8607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8608if eval "test \"\${$as_ac_var+set}\" = set"; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8619#define $ac_func innocuous_$ac_func
8620
8621/* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char $ac_func (); below.
8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624 <limits.h> exists even on freestanding compilers. */
8625
8626#ifdef __STDC__
8627# include <limits.h>
8628#else
8629# include <assert.h>
8630#endif
8631
8632#undef $ac_func
8633
8634/* Override any gcc2 internal prototype to avoid an error. */
8635#ifdef __cplusplus
8636extern "C"
8637{
8638#endif
8639/* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8641char $ac_func ();
8642/* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8646choke me
8647#else
8648char (*f) () = $ac_func;
8649#endif
8650#ifdef __cplusplus
8651}
8652#endif
8653
8654int
8655main ()
8656{
8657return f != $ac_func;
8658 ;
8659 return 0;
8660}
8661_ACEOF
8662rm -f conftest.$ac_objext conftest$ac_exeext
8663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 eval "$as_ac_var=yes"
8685else
8686 echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689eval "$as_ac_var=no"
8690fi
8691rm -f conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693fi
8694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8696if test `eval echo '${'$as_ac_var'}'` = yes; then
8697 cat >>confdefs.h <<_ACEOF
8698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8699_ACEOF
8700
8701fi
8702done
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8732 stdio.h unistd.h
8733do
8734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo "$as_me:$LINENO: checking for $ac_header" >&5
8737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740fi
8741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8743else
8744 # Is the header compilable?
8745echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
8753$ac_includes_default
8754#include <$ac_header>
8755_ACEOF
8756rm -f conftest.$ac_objext
8757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_header_compiler=yes
8779else
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_header_compiler=no
8784fi
8785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787echo "${ECHO_T}$ac_header_compiler" >&6
8788
8789# Is the header present?
8790echo "$as_me:$LINENO: checking $ac_header presence" >&5
8791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8792cat >conftest.$ac_ext <<_ACEOF
8793/* confdefs.h. */
8794_ACEOF
8795cat confdefs.h >>conftest.$ac_ext
8796cat >>conftest.$ac_ext <<_ACEOF
8797/* end confdefs.h. */
8798#include <$ac_header>
8799_ACEOF
8800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } >/dev/null; then
8808 if test -s conftest.err; then
8809 ac_cpp_err=$ac_c_preproc_warn_flag
8810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8811 else
8812 ac_cpp_err=
8813 fi
8814else
8815 ac_cpp_err=yes
8816fi
8817if test -z "$ac_cpp_err"; then
8818 ac_header_preproc=yes
8819else
8820 echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ac_header_preproc=no
8824fi
8825rm -f conftest.err conftest.$ac_ext
8826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8827echo "${ECHO_T}$ac_header_preproc" >&6
8828
8829# So? What about this header?
8830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831 yes:no: )
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8836 ac_header_preproc=yes
8837 ;;
8838 no:yes:* )
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8851 (
8852 cat <<\_ASBOX
8853## ----------------------------------- ##
8854## Report this to llvmbugs@cs.uiuc.edu ##
8855## ----------------------------------- ##
8856_ASBOX
8857 ) |
8858 sed "s/^/$as_me: WARNING: /" >&2
8859 ;;
8860esac
8861echo "$as_me:$LINENO: checking for $ac_header" >&5
8862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8863if eval "test \"\${$as_ac_Header+set}\" = set"; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 eval "$as_ac_Header=\$ac_header_preproc"
8867fi
8868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8870
8871fi
8872if test `eval echo '${'$as_ac_Header'}'` = yes; then
8873 cat >>confdefs.h <<_ACEOF
8874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8875_ACEOF
8876
8877fi
8878
8879done
8880
8881
8882
8883
8884
8885for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8886do
8887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo "$as_me:$LINENO: checking for $ac_header" >&5
8890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893fi
8894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8896else
8897 # Is the header compilable?
8898echo "$as_me:$LINENO: checking $ac_header usability" >&5
8899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8900cat >conftest.$ac_ext <<_ACEOF
8901/* confdefs.h. */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
8905/* end confdefs.h. */
8906$ac_includes_default
8907#include <$ac_header>
8908_ACEOF
8909rm -f conftest.$ac_objext
8910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_header_compiler=yes
8932else
8933 echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936ac_header_compiler=no
8937fi
8938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940echo "${ECHO_T}$ac_header_compiler" >&6
8941
8942# Is the header present?
8943echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8945cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
8951#include <$ac_header>
8952_ACEOF
8953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8955 ac_status=$?
8956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } >/dev/null; then
8961 if test -s conftest.err; then
8962 ac_cpp_err=$ac_c_preproc_warn_flag
8963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8964 else
8965 ac_cpp_err=
8966 fi
8967else
8968 ac_cpp_err=yes
8969fi
8970if test -z "$ac_cpp_err"; then
8971 ac_header_preproc=yes
8972else
8973 echo "$as_me: failed program was:" >&5
8974sed 's/^/| /' conftest.$ac_ext >&5
8975
8976 ac_header_preproc=no
8977fi
8978rm -f conftest.err conftest.$ac_ext
8979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980echo "${ECHO_T}$ac_header_preproc" >&6
8981
8982# So? What about this header?
8983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8984 yes:no: )
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8989 ac_header_preproc=yes
8990 ;;
8991 no:yes:* )
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9004 (
9005 cat <<\_ASBOX
9006## ----------------------------------- ##
9007## Report this to llvmbugs@cs.uiuc.edu ##
9008## ----------------------------------- ##
9009_ASBOX
9010 ) |
9011 sed "s/^/$as_me: WARNING: /" >&2
9012 ;;
9013esac
9014echo "$as_me:$LINENO: checking for $ac_header" >&5
9015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019 eval "$as_ac_Header=\$ac_header_preproc"
9020fi
9021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9023
9024fi
9025if test `eval echo '${'$as_ac_Header'}'` = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9028_ACEOF
9029
9030fi
9031
9032done
9033
9034
9035
9036for ac_header in string.h strings.h
9037do
9038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9039if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040 echo "$as_me:$LINENO: checking for $ac_header" >&5
9041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9042if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044fi
9045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9047else
9048 # Is the header compilable?
9049echo "$as_me:$LINENO: checking $ac_header usability" >&5
9050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9051cat >conftest.$ac_ext <<_ACEOF
9052/* confdefs.h. */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h. */
9057$ac_includes_default
9058#include <$ac_header>
9059_ACEOF
9060rm -f conftest.$ac_objext
9061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9062 (eval $ac_compile) 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest.$ac_objext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_header_compiler=yes
9083else
9084 echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
9087ac_header_compiler=no
9088fi
9089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091echo "${ECHO_T}$ac_header_compiler" >&6
9092
9093# Is the header present?
9094echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9096cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102#include <$ac_header>
9103_ACEOF
9104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null; then
9112 if test -s conftest.err; then
9113 ac_cpp_err=$ac_c_preproc_warn_flag
9114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9115 else
9116 ac_cpp_err=
9117 fi
9118else
9119 ac_cpp_err=yes
9120fi
9121if test -z "$ac_cpp_err"; then
9122 ac_header_preproc=yes
9123else
9124 echo "$as_me: failed program was:" >&5
9125sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_header_preproc=no
9128fi
9129rm -f conftest.err conftest.$ac_ext
9130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9131echo "${ECHO_T}$ac_header_preproc" >&6
9132
9133# So? What about this header?
9134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9135 yes:no: )
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9139echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9140 ac_header_preproc=yes
9141 ;;
9142 no:yes:* )
9143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9144echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9146echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9148echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9150echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9152echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9154echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9155 (
9156 cat <<\_ASBOX
9157## ----------------------------------- ##
9158## Report this to llvmbugs@cs.uiuc.edu ##
9159## ----------------------------------- ##
9160_ASBOX
9161 ) |
9162 sed "s/^/$as_me: WARNING: /" >&2
9163 ;;
9164esac
9165echo "$as_me:$LINENO: checking for $ac_header" >&5
9166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169else
9170 eval "$as_ac_Header=\$ac_header_preproc"
9171fi
9172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174
9175fi
9176if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9179_ACEOF
9180 break
9181fi
9182
9183done
9184
9185
9186
9187
9188for ac_func in strchr index
9189do
9190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9191echo "$as_me:$LINENO: checking for $ac_func" >&5
9192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9193if eval "test \"\${$as_ac_var+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196 cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h. */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h. */
9202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9204#define $ac_func innocuous_$ac_func
9205
9206/* System header to define __stub macros and hopefully few prototypes,
9207 which can conflict with char $ac_func (); below.
9208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209 <limits.h> exists even on freestanding compilers. */
9210
9211#ifdef __STDC__
9212# include <limits.h>
9213#else
9214# include <assert.h>
9215#endif
9216
9217#undef $ac_func
9218
9219/* Override any gcc2 internal prototype to avoid an error. */
9220#ifdef __cplusplus
9221extern "C"
9222{
9223#endif
9224/* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226char $ac_func ();
9227/* The GNU C library defines this for functions which it implements
9228 to always fail with ENOSYS. Some functions are actually named
9229 something starting with __ and the normal name is an alias. */
9230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9231choke me
9232#else
9233char (*f) () = $ac_func;
9234#endif
9235#ifdef __cplusplus
9236}
9237#endif
9238
9239int
9240main ()
9241{
9242return f != $ac_func;
9243 ;
9244 return 0;
9245}
9246_ACEOF
9247rm -f conftest.$ac_objext conftest$ac_exeext
9248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249 (eval $ac_link) 2>conftest.er1
9250 ac_status=$?
9251 grep -v '^ *+' conftest.er1 >conftest.err
9252 rm -f conftest.er1
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 (eval $ac_try) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 eval "$as_ac_var=yes"
9270else
9271 echo "$as_me: failed program was:" >&5
9272sed 's/^/| /' conftest.$ac_ext >&5
9273
9274eval "$as_ac_var=no"
9275fi
9276rm -f conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9278fi
9279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9281if test `eval echo '${'$as_ac_var'}'` = yes; then
9282 cat >>confdefs.h <<_ACEOF
9283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9284_ACEOF
9285 break
9286fi
9287done
9288
9289
9290
9291for ac_func in strrchr rindex
9292do
9293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294echo "$as_me:$LINENO: checking for $ac_func" >&5
9295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9296if eval "test \"\${$as_ac_var+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299 cat >conftest.$ac_ext <<_ACEOF
9300/* confdefs.h. */
9301_ACEOF
9302cat confdefs.h >>conftest.$ac_ext
9303cat >>conftest.$ac_ext <<_ACEOF
9304/* end confdefs.h. */
9305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9307#define $ac_func innocuous_$ac_func
9308
9309/* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char $ac_func (); below.
9311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312 <limits.h> exists even on freestanding compilers. */
9313
9314#ifdef __STDC__
9315# include <limits.h>
9316#else
9317# include <assert.h>
9318#endif
9319
9320#undef $ac_func
9321
9322/* Override any gcc2 internal prototype to avoid an error. */
9323#ifdef __cplusplus
9324extern "C"
9325{
9326#endif
9327/* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329char $ac_func ();
9330/* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9334choke me
9335#else
9336char (*f) () = $ac_func;
9337#endif
9338#ifdef __cplusplus
9339}
9340#endif
9341
9342int
9343main ()
9344{
9345return f != $ac_func;
9346 ;
9347 return 0;
9348}
9349_ACEOF
9350rm -f conftest.$ac_objext conftest$ac_exeext
9351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 eval "$as_ac_var=yes"
9373else
9374 echo "$as_me: failed program was:" >&5
9375sed 's/^/| /' conftest.$ac_ext >&5
9376
9377eval "$as_ac_var=no"
9378fi
9379rm -f conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381fi
9382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9384if test `eval echo '${'$as_ac_var'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9387_ACEOF
9388 break
9389fi
9390done
9391
9392
9393
9394for ac_func in memcpy bcopy
9395do
9396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9397echo "$as_me:$LINENO: checking for $ac_func" >&5
9398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9399if eval "test \"\${$as_ac_var+set}\" = set"; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 cat >conftest.$ac_ext <<_ACEOF
9403/* confdefs.h. */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h. */
9408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9410#define $ac_func innocuous_$ac_func
9411
9412/* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char $ac_func (); below.
9414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415 <limits.h> exists even on freestanding compilers. */
9416
9417#ifdef __STDC__
9418# include <limits.h>
9419#else
9420# include <assert.h>
9421#endif
9422
9423#undef $ac_func
9424
9425/* Override any gcc2 internal prototype to avoid an error. */
9426#ifdef __cplusplus
9427extern "C"
9428{
9429#endif
9430/* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9432char $ac_func ();
9433/* The GNU C library defines this for functions which it implements
9434 to always fail with ENOSYS. Some functions are actually named
9435 something starting with __ and the normal name is an alias. */
9436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9437choke me
9438#else
9439char (*f) () = $ac_func;
9440#endif
9441#ifdef __cplusplus
9442}
9443#endif
9444
9445int
9446main ()
9447{
9448return f != $ac_func;
9449 ;
9450 return 0;
9451}
9452_ACEOF
9453rm -f conftest.$ac_objext conftest$ac_exeext
9454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 (eval $ac_try) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 eval "$as_ac_var=yes"
9476else
9477 echo "$as_me: failed program was:" >&5
9478sed 's/^/| /' conftest.$ac_ext >&5
9479
9480eval "$as_ac_var=no"
9481fi
9482rm -f conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484fi
9485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9486echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9487if test `eval echo '${'$as_ac_var'}'` = yes; then
9488 cat >>confdefs.h <<_ACEOF
9489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9490_ACEOF
9491 break
9492fi
9493done
9494
9495
9496
9497for ac_func in memmove strcmp
9498do
9499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9500echo "$as_me:$LINENO: checking for $ac_func" >&5
9501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9502if eval "test \"\${$as_ac_var+set}\" = set"; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505 cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
9511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9513#define $ac_func innocuous_$ac_func
9514
9515/* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char $ac_func (); below.
9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518 <limits.h> exists even on freestanding compilers. */
9519
9520#ifdef __STDC__
9521# include <limits.h>
9522#else
9523# include <assert.h>
9524#endif
9525
9526#undef $ac_func
9527
9528/* Override any gcc2 internal prototype to avoid an error. */
9529#ifdef __cplusplus
9530extern "C"
9531{
9532#endif
9533/* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535char $ac_func ();
9536/* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9540choke me
9541#else
9542char (*f) () = $ac_func;
9543#endif
9544#ifdef __cplusplus
9545}
9546#endif
9547
9548int
9549main ()
9550{
9551return f != $ac_func;
9552 ;
9553 return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext conftest$ac_exeext
9557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 eval "$as_ac_var=yes"
9579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583eval "$as_ac_var=no"
9584fi
9585rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587fi
9588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9590if test `eval echo '${'$as_ac_var'}'` = yes; then
9591 cat >>confdefs.h <<_ACEOF
9592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9593_ACEOF
9594
9595fi
9596done
9597
9598
9599
9600
9601for ac_func in closedir opendir readdir
9602do
9603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604echo "$as_me:$LINENO: checking for $ac_func" >&5
9605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9606if eval "test \"\${$as_ac_var+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617#define $ac_func innocuous_$ac_func
9618
9619/* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char $ac_func (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9623
9624#ifdef __STDC__
9625# include <limits.h>
9626#else
9627# include <assert.h>
9628#endif
9629
9630#undef $ac_func
9631
9632/* Override any gcc2 internal prototype to avoid an error. */
9633#ifdef __cplusplus
9634extern "C"
9635{
9636#endif
9637/* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9639char $ac_func ();
9640/* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9644choke me
9645#else
9646char (*f) () = $ac_func;
9647#endif
9648#ifdef __cplusplus
9649}
9650#endif
9651
9652int
9653main ()
9654{
9655return f != $ac_func;
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
9661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 eval "$as_ac_var=yes"
9683else
9684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
9687eval "$as_ac_var=no"
9688fi
9689rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691fi
9692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9694if test `eval echo '${'$as_ac_var'}'` = yes; then
9695 cat >>confdefs.h <<_ACEOF
9696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697_ACEOF
9698
9699fi
9700done
9701
9702
9703# Check whether --enable-shared or --disable-shared was given.
9704if test "${enable_shared+set}" = set; then
9705 enableval="$enable_shared"
9706 p=${PACKAGE-default}
9707 case $enableval in
9708 yes) enable_shared=yes ;;
9709 no) enable_shared=no ;;
9710 *)
9711 enable_shared=no
9712 # Look at the argument we got. We use all the common list separators.
9713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9714 for pkg in $enableval; do
9715 IFS="$lt_save_ifs"
9716 if test "X$pkg" = "X$p"; then
9717 enable_shared=yes
9718 fi
9719 done
9720 IFS="$lt_save_ifs"
9721 ;;
9722 esac
9723else
9724 enable_shared=yes
9725fi;
9726
9727# Check whether --enable-static or --disable-static was given.
9728if test "${enable_static+set}" = set; then
9729 enableval="$enable_static"
9730 p=${PACKAGE-default}
9731 case $enableval in
9732 yes) enable_static=yes ;;
9733 no) enable_static=no ;;
9734 *)
9735 enable_static=no
9736 # Look at the argument we got. We use all the common list separators.
9737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9738 for pkg in $enableval; do
9739 IFS="$lt_save_ifs"
9740 if test "X$pkg" = "X$p"; then
9741 enable_static=yes
9742 fi
9743 done
9744 IFS="$lt_save_ifs"
9745 ;;
9746 esac
9747else
9748 enable_static=yes
9749fi;
9750
9751# Check whether --enable-fast-install or --disable-fast-install was given.
9752if test "${enable_fast_install+set}" = set; then
9753 enableval="$enable_fast_install"
9754 p=${PACKAGE-default}
9755 case $enableval in
9756 yes) enable_fast_install=yes ;;
9757 no) enable_fast_install=no ;;
9758 *)
9759 enable_fast_install=no
9760 # Look at the argument we got. We use all the common list separators.
9761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9762 for pkg in $enableval; do
9763 IFS="$lt_save_ifs"
9764 if test "X$pkg" = "X$p"; then
9765 enable_fast_install=yes
9766 fi
9767 done
9768 IFS="$lt_save_ifs"
9769 ;;
9770 esac
9771else
9772 enable_fast_install=yes
9773fi;
9774
9775echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9776echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9777if test "${lt_cv_path_SED+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779else
9780 # Loop through the user's path and test for sed and gsed.
9781# Then use that list of sed's as ones to test for truncation.
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for lt_ac_prog in sed gsed; do
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9790 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9791 fi
9792 done
9793 done
9794done
9795lt_ac_max=0
9796lt_ac_count=0
9797# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9798# along with /bin/sed that truncates output.
9799for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9800 test ! -f $lt_ac_sed && break
9801 cat /dev/null > conftest.in
9802 lt_ac_count=0
9803 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9804 # Check for GNU sed and select it if it is found.
9805 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9806 lt_cv_path_SED=$lt_ac_sed
9807 break
9808 fi
9809 while true; do
9810 cat conftest.in conftest.in >conftest.tmp
9811 mv conftest.tmp conftest.in
9812 cp conftest.in conftest.nl
9813 echo >>conftest.nl
9814 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9815 cmp -s conftest.out conftest.nl || break
9816 # 10000 chars as input seems more than enough
9817 test $lt_ac_count -gt 10 && break
9818 lt_ac_count=`expr $lt_ac_count + 1`
9819 if test $lt_ac_count -gt $lt_ac_max; then
9820 lt_ac_max=$lt_ac_count
9821 lt_cv_path_SED=$lt_ac_sed
9822 fi
9823 done
9824done
9825
9826fi
9827
9828SED=$lt_cv_path_SED
9829echo "$as_me:$LINENO: result: $SED" >&5
9830echo "${ECHO_T}$SED" >&6
9831
9832
9833# Check whether --with-gnu-ld or --without-gnu-ld was given.
9834if test "${with_gnu_ld+set}" = set; then
9835 withval="$with_gnu_ld"
9836 test "$withval" = no || with_gnu_ld=yes
9837else
9838 with_gnu_ld=no
9839fi;
9840ac_prog=ld
9841if test "$GCC" = yes; then
9842 # Check if gcc -print-prog-name=ld gives a path.
9843 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9844echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9845 case $host in
9846 *-*-mingw*)
9847 # gcc leaves a trailing carriage return which upsets mingw
9848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9849 *)
9850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9851 esac
9852 case $ac_prog in
9853 # Accept absolute paths.
9854 [\\/]* | ?:[\\/]*)
9855 re_direlt='/[^/][^/]*/\.\./'
9856 # Canonicalize the pathname of ld
9857 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9858 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9859 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9860 done
9861 test -z "$LD" && LD="$ac_prog"
9862 ;;
9863 "")
9864 # If it fails, then pretend we aren't using GCC.
9865 ac_prog=ld
9866 ;;
9867 *)
9868 # If it is relative, then search for the first ld in PATH.
9869 with_gnu_ld=unknown
9870 ;;
9871 esac
9872elif test "$with_gnu_ld" = yes; then
9873 echo "$as_me:$LINENO: checking for GNU ld" >&5
9874echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9875else
9876 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9877echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9878fi
9879if test "${lt_cv_path_LD+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881else
9882 if test -z "$LD"; then
9883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9884 for ac_dir in $PATH; do
9885 IFS="$lt_save_ifs"
9886 test -z "$ac_dir" && ac_dir=.
9887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9888 lt_cv_path_LD="$ac_dir/$ac_prog"
9889 # Check to see if the program is GNU ld. I'd rather use --version,
9890 # but apparently some GNU ld's only accept -v.
9891 # Break only if it was the GNU/non-GNU ld that we prefer.
9892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9893 *GNU* | *'with BFD'*)
9894 test "$with_gnu_ld" != no && break
9895 ;;
9896 *)
9897 test "$with_gnu_ld" != yes && break
9898 ;;
9899 esac
9900 fi
9901 done
9902 IFS="$lt_save_ifs"
9903else
9904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9905fi
9906fi
9907
9908LD="$lt_cv_path_LD"
9909if test -n "$LD"; then
9910 echo "$as_me:$LINENO: result: $LD" >&5
9911echo "${ECHO_T}$LD" >&6
9912else
9913 echo "$as_me:$LINENO: result: no" >&5
9914echo "${ECHO_T}no" >&6
9915fi
9916test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9917echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9918 { (exit 1); exit 1; }; }
9919echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9920echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9921if test "${lt_cv_prog_gnu_ld+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9925case `$LD -v 2>&1 </dev/null` in
9926*GNU* | *'with BFD'*)
9927 lt_cv_prog_gnu_ld=yes
9928 ;;
9929*)
9930 lt_cv_prog_gnu_ld=no
9931 ;;
9932esac
9933fi
9934echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9935echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9936with_gnu_ld=$lt_cv_prog_gnu_ld
9937
9938
9939echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9940echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9941if test "${lt_cv_ld_reload_flag+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 lt_cv_ld_reload_flag='-r'
9945fi
9946echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9947echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9948reload_flag=$lt_cv_ld_reload_flag
9949case $reload_flag in
9950"" | " "*) ;;
9951*) reload_flag=" $reload_flag" ;;
9952esac
9953reload_cmds='$LD$reload_flag -o $output$reload_objs'
9954case $host_os in
9955 darwin*)
9956 if test "$GCC" = yes; then
9957 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9958 else
9959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9960 fi
9961 ;;
9962esac
9963
9964echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9965echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9966if test "${lt_cv_deplibs_check_method+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 lt_cv_file_magic_cmd='$MAGIC_CMD'
9970lt_cv_file_magic_test_file=
9971lt_cv_deplibs_check_method='unknown'
9972# Need to set the preceding variable on all platforms that support
9973# interlibrary dependencies.
9974# 'none' -- dependencies not supported.
9975# `unknown' -- same as none, but documents that we really don't know.
9976# 'pass_all' -- all dependencies passed with no checks.
9977# 'test_compile' -- check by making test program.
9978# 'file_magic [[regex]]' -- check by looking for files in library path
9979# which responds to the $file_magic_cmd with a given extended regex.
9980# If you have `file' or equivalent on your system and you're not sure
9981# whether `pass_all' will *always* work, you probably want this one.
9982
9983case $host_os in
9984aix4* | aix5*)
9985 lt_cv_deplibs_check_method=pass_all
9986 ;;
9987
9988beos*)
9989 lt_cv_deplibs_check_method=pass_all
9990 ;;
9991
9992bsdi[45]*)
9993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9994 lt_cv_file_magic_cmd='/usr/bin/file -L'
9995 lt_cv_file_magic_test_file=/shlib/libc.so
9996 ;;
9997
9998cygwin*)
9999 # func_win32_libid is a shell function defined in ltmain.sh
10000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10001 lt_cv_file_magic_cmd='func_win32_libid'
10002 ;;
10003
10004mingw* | pw32*)
10005 # Base MSYS/MinGW do not provide the 'file' command needed by
10006 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10007 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10008 lt_cv_file_magic_cmd='$OBJDUMP -f'
10009 ;;
10010
10011darwin* | rhapsody*)
10012 lt_cv_deplibs_check_method=pass_all
10013 ;;
10014
10015freebsd* | kfreebsd*-gnu)
10016 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10017 case $host_cpu in
10018 i*86 )
10019 # Not sure whether the presence of OpenBSD here was a mistake.
10020 # Let's accept both of them until this is cleared up.
10021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10022 lt_cv_file_magic_cmd=/usr/bin/file
10023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10024 ;;
10025 esac
10026 else
10027 lt_cv_deplibs_check_method=pass_all
10028 fi
10029 ;;
10030
10031gnu*)
10032 lt_cv_deplibs_check_method=pass_all
10033 ;;
10034
10035hpux10.20* | hpux11*)
10036 lt_cv_file_magic_cmd=/usr/bin/file
10037 case "$host_cpu" in
10038 ia64*)
10039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10041 ;;
10042 hppa*64*)
10043 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]'
10044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10045 ;;
10046 *)
10047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10049 ;;
10050 esac
10051 ;;
10052
10053irix5* | irix6* | nonstopux*)
10054 case $LD in
10055 *-32|*"-32 ") libmagic=32-bit;;
10056 *-n32|*"-n32 ") libmagic=N32;;
10057 *-64|*"-64 ") libmagic=64-bit;;
10058 *) libmagic=never-match;;
10059 esac
10060 lt_cv_deplibs_check_method=pass_all
10061 ;;
10062
10063# This must be Linux ELF.
10064linux*)
10065 lt_cv_deplibs_check_method=pass_all
10066 ;;
10067
10068netbsd*)
10069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10071 else
10072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10073 fi
10074 ;;
10075
10076newos6*)
10077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10078 lt_cv_file_magic_cmd=/usr/bin/file
10079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10080 ;;
10081
10082nto-qnx*)
10083 lt_cv_deplibs_check_method=unknown
10084 ;;
10085
10086openbsd*)
10087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10089 else
10090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10091 fi
10092 ;;
10093
10094osf3* | osf4* | osf5*)
10095 lt_cv_deplibs_check_method=pass_all
10096 ;;
10097
10098sco3.2v5*)
10099 lt_cv_deplibs_check_method=pass_all
10100 ;;
10101
10102solaris*)
10103 lt_cv_deplibs_check_method=pass_all
10104 ;;
10105
10106sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10107 case $host_vendor in
10108 motorola)
10109 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]'
10110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10111 ;;
10112 ncr)
10113 lt_cv_deplibs_check_method=pass_all
10114 ;;
10115 sequent)
10116 lt_cv_file_magic_cmd='/bin/file'
10117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10118 ;;
10119 sni)
10120 lt_cv_file_magic_cmd='/bin/file'
10121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10122 lt_cv_file_magic_test_file=/lib/libc.so
10123 ;;
10124 siemens)
10125 lt_cv_deplibs_check_method=pass_all
10126 ;;
10127 esac
10128 ;;
10129
10130sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10131 lt_cv_deplibs_check_method=pass_all
10132 ;;
10133esac
10134
10135fi
10136echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10137echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10138file_magic_cmd=$lt_cv_file_magic_cmd
10139deplibs_check_method=$lt_cv_deplibs_check_method
10140test -z "$deplibs_check_method" && deplibs_check_method=unknown
10141
10142
10143
10144# If no C compiler was specified, use CC.
10145LTCC=${LTCC-"$CC"}
10146
10147# Allow CC to be a program name with arguments.
10148compiler=$CC
10149
10150# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10151if test "${enable_libtool_lock+set}" = set; then
10152 enableval="$enable_libtool_lock"
10153
10154fi;
10155test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10156
10157# Some flags need to be propagated to the compiler or linker for good
10158# libtool support.
10159case $host in
10160ia64-*-hpux*)
10161 # Find out which ABI we are using.
10162 echo 'int i;' > conftest.$ac_ext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164 (eval $ac_compile) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; then
10168 case `/usr/bin/file conftest.$ac_objext` in
10169 *ELF-32*)
10170 HPUX_IA64_MODE="32"
10171 ;;
10172 *ELF-64*)
10173 HPUX_IA64_MODE="64"
10174 ;;
10175 esac
10176 fi
10177 rm -rf conftest*
10178 ;;
10179*-*-irix6*)
10180 # Find out which ABI we are using.
Misha Brukman1edb1902005-03-17 20:56:22 +000010181 echo '#line 10181 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; then
10187 if test "$lt_cv_prog_gnu_ld" = yes; then
10188 case `/usr/bin/file conftest.$ac_objext` in
10189 *32-bit*)
10190 LD="${LD-ld} -melf32bsmip"
10191 ;;
10192 *N32*)
10193 LD="${LD-ld} -melf32bmipn32"
10194 ;;
10195 *64-bit*)
10196 LD="${LD-ld} -melf64bmip"
10197 ;;
10198 esac
10199 else
10200 case `/usr/bin/file conftest.$ac_objext` in
10201 *32-bit*)
10202 LD="${LD-ld} -32"
10203 ;;
10204 *N32*)
10205 LD="${LD-ld} -n32"
10206 ;;
10207 *64-bit*)
10208 LD="${LD-ld} -64"
10209 ;;
10210 esac
10211 fi
10212 fi
10213 rm -rf conftest*
10214 ;;
10215
10216x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10217 # Find out which ABI we are using.
10218 echo 'int i;' > conftest.$ac_ext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; then
10224 case "`/usr/bin/file conftest.o`" in
10225 *32-bit*)
10226 case $host in
10227 x86_64-*linux*)
10228 LD="${LD-ld} -m elf_i386"
10229 ;;
10230 ppc64-*linux*|powerpc64-*linux*)
10231 LD="${LD-ld} -m elf32ppclinux"
10232 ;;
10233 s390x-*linux*)
10234 LD="${LD-ld} -m elf_s390"
10235 ;;
10236 sparc64-*linux*)
10237 LD="${LD-ld} -m elf32_sparc"
10238 ;;
10239 esac
10240 ;;
10241 *64-bit*)
10242 case $host in
10243 x86_64-*linux*)
10244 LD="${LD-ld} -m elf_x86_64"
10245 ;;
10246 ppc*-*linux*|powerpc*-*linux*)
10247 LD="${LD-ld} -m elf64ppc"
10248 ;;
10249 s390*-*linux*)
10250 LD="${LD-ld} -m elf64_s390"
10251 ;;
10252 sparc*-*linux*)
10253 LD="${LD-ld} -m elf64_sparc"
10254 ;;
10255 esac
10256 ;;
10257 esac
10258 fi
10259 rm -rf conftest*
10260 ;;
10261
10262*-*-sco3.2v5*)
10263 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10264 SAVE_CFLAGS="$CFLAGS"
10265 CFLAGS="$CFLAGS -belf"
10266 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10267echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10268if test "${lt_cv_cc_needs_belf+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 ac_ext=c
10272ac_cpp='$CPP $CPPFLAGS'
10273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276
10277 cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h. */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h. */
10283
10284_ACEOF
10285rm -f conftest.$ac_objext conftest$ac_exeext
10286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 lt_cv_cc_needs_belf=yes
10308else
10309 echo "$as_me: failed program was:" >&5
10310sed 's/^/| /' conftest.$ac_ext >&5
10311
10312lt_cv_cc_needs_belf=no
10313fi
10314rm -f conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 ac_ext=c
10317ac_cpp='$CPP $CPPFLAGS'
10318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321
10322fi
10323echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10324echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10327 CFLAGS="$SAVE_CFLAGS"
10328 fi
10329 ;;
10330
10331esac
10332
10333need_locks="$enable_libtool_lock"
10334
10335
Reid Spencer2706f8c2004-09-19 23:53:36 +000010336
10337
10338if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10340 (test "X$CXX" != "Xg++"))) ; then
10341 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010342ac_cpp='$CXXCPP $CPPFLAGS'
10343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10346echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10347echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10348if test -z "$CXXCPP"; then
10349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
John Criswell47fdd832003-07-14 16:52:07 +000010352 # Double quotes because CXXCPP needs to be expanded
10353 for CXXCPP in "$CXX -E" "/lib/cpp"
10354 do
10355 ac_preproc_ok=false
10356for ac_cxx_preproc_warn_flag in '' yes
10357do
10358 # Use a header file that comes with gcc, so configuring glibc
10359 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10361 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010362 # On the NeXT, cc -E runs the code through the compiler's parser,
10363 # not just through cpp. "Syntax error" is here to catch this case.
10364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010365/* confdefs.h. */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h. */
10370#ifdef __STDC__
10371# include <limits.h>
10372#else
10373# include <assert.h>
10374#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010375 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010376_ACEOF
10377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10379 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010380 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } >/dev/null; then
10385 if test -s conftest.err; then
10386 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010387 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010388 else
John Criswell47fdd832003-07-14 16:52:07 +000010389 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010390 fi
John Criswell47fdd832003-07-14 16:52:07 +000010391else
10392 ac_cpp_err=yes
10393fi
10394if test -z "$ac_cpp_err"; then
10395 :
10396else
10397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010398sed 's/^/| /' conftest.$ac_ext >&5
10399
John Criswell47fdd832003-07-14 16:52:07 +000010400 # Broken: fails on valid input.
10401continue
10402fi
10403rm -f conftest.err conftest.$ac_ext
10404
10405 # OK, works on sane cases. Now check whether non-existent headers
10406 # can be detected and how.
10407 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010413#include <ac_nonexistent.h>
10414_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 Criswell47fdd832003-07-14 16:52:07 +000010426 else
10427 ac_cpp_err=
10428 fi
10429else
10430 ac_cpp_err=yes
10431fi
10432if test -z "$ac_cpp_err"; then
10433 # Broken: success on invalid input.
10434continue
10435else
10436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010437sed 's/^/| /' conftest.$ac_ext >&5
10438
John Criswell47fdd832003-07-14 16:52:07 +000010439 # Passes both tests.
10440ac_preproc_ok=:
10441break
10442fi
10443rm -f conftest.err conftest.$ac_ext
10444
10445done
10446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10447rm -f conftest.err conftest.$ac_ext
10448if $ac_preproc_ok; then
10449 break
John Criswell7a73b802003-06-30 21:59:07 +000010450fi
10451
John Criswell47fdd832003-07-14 16:52:07 +000010452 done
10453 ac_cv_prog_CXXCPP=$CXXCPP
10454
10455fi
10456 CXXCPP=$ac_cv_prog_CXXCPP
10457else
10458 ac_cv_prog_CXXCPP=$CXXCPP
10459fi
10460echo "$as_me:$LINENO: result: $CXXCPP" >&5
10461echo "${ECHO_T}$CXXCPP" >&6
10462ac_preproc_ok=false
10463for ac_cxx_preproc_warn_flag in '' yes
10464do
10465 # Use a header file that comes with gcc, so configuring glibc
10466 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010469 # On the NeXT, cc -E runs the code through the compiler's parser,
10470 # not just through cpp. "Syntax error" is here to catch this case.
10471 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010472/* confdefs.h. */
10473_ACEOF
10474cat confdefs.h >>conftest.$ac_ext
10475cat >>conftest.$ac_ext <<_ACEOF
10476/* end confdefs.h. */
10477#ifdef __STDC__
10478# include <limits.h>
10479#else
10480# include <assert.h>
10481#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010482 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010483_ACEOF
10484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10486 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010487 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } >/dev/null; then
10492 if test -s conftest.err; then
10493 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010495 else
10496 ac_cpp_err=
10497 fi
10498else
10499 ac_cpp_err=yes
10500fi
10501if test -z "$ac_cpp_err"; then
10502 :
10503else
10504 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010505sed 's/^/| /' conftest.$ac_ext >&5
10506
John Criswell47fdd832003-07-14 16:52:07 +000010507 # Broken: fails on valid input.
10508continue
10509fi
10510rm -f conftest.err conftest.$ac_ext
10511
10512 # OK, works on sane cases. Now check whether non-existent headers
10513 # can be detected and how.
10514 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010520#include <ac_nonexistent.h>
10521_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 # Broken: success on invalid input.
10541continue
10542else
10543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010544sed 's/^/| /' conftest.$ac_ext >&5
10545
John Criswell47fdd832003-07-14 16:52:07 +000010546 # Passes both tests.
10547ac_preproc_ok=:
10548break
10549fi
10550rm -f conftest.err conftest.$ac_ext
10551
10552done
10553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10554rm -f conftest.err conftest.$ac_ext
10555if $ac_preproc_ok; then
10556 :
10557else
John Criswell0c38eaf2003-09-10 15:17:25 +000010558 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10559See \`config.log' for more details." >&5
10560echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10561See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010562 { (exit 1); exit 1; }; }
10563fi
10564
10565ac_ext=cc
10566ac_cpp='$CXXCPP $CPPFLAGS'
10567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10570
Reid Spencer2706f8c2004-09-19 23:53:36 +000010571fi
10572
John Criswell47fdd832003-07-14 16:52:07 +000010573
10574ac_ext=f
10575ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10576ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10578if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010579 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 +000010580 do
10581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10582set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10583echo "$as_me:$LINENO: checking for $ac_word" >&5
10584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10585if test "${ac_cv_prog_F77+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587else
10588 if test -n "$F77"; then
10589 ac_cv_prog_F77="$F77" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603done
10604
10605fi
10606fi
10607F77=$ac_cv_prog_F77
10608if test -n "$F77"; then
10609 echo "$as_me:$LINENO: result: $F77" >&5
10610echo "${ECHO_T}$F77" >&6
10611else
10612 echo "$as_me:$LINENO: result: no" >&5
10613echo "${ECHO_T}no" >&6
10614fi
10615
10616 test -n "$F77" && break
10617 done
10618fi
10619if test -z "$F77"; then
10620 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010621 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 +000010622do
10623 # Extract the first word of "$ac_prog", so it can be a program name with args.
10624set dummy $ac_prog; ac_word=$2
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$ac_ct_F77"; then
10631 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_ac_ct_F77="$ac_prog"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649ac_ct_F77=$ac_cv_prog_ac_ct_F77
10650if test -n "$ac_ct_F77"; then
10651 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10652echo "${ECHO_T}$ac_ct_F77" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658 test -n "$ac_ct_F77" && break
10659done
10660
10661 F77=$ac_ct_F77
10662fi
10663
10664
10665# Provide some information about the compiler.
Misha Brukman1edb1902005-03-17 20:56:22 +000010666echo "$as_me:10666:" \
John Criswell47fdd832003-07-14 16:52:07 +000010667 "checking for Fortran 77 compiler version" >&5
10668ac_compiler=`set X $ac_compile; echo $2`
10669{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10670 (eval $ac_compiler --version </dev/null >&5) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }
10674{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10675 (eval $ac_compiler -v </dev/null >&5) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }
10679{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10680 (eval $ac_compiler -V </dev/null >&5) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010684rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010685
10686# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010687# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010688ac_save_ext=$ac_ext
10689ac_ext=F
10690echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10691echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10692if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695 cat >conftest.$ac_ext <<_ACEOF
10696 program main
10697#ifndef __GNUC__
10698 choke me
10699#endif
10700
10701 end
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010705 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010712 { ac_try='test -z "$ac_f77_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_compiler_gnu=yes
10726else
10727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010728sed 's/^/| /' conftest.$ac_ext >&5
10729
John Criswell47fdd832003-07-14 16:52:07 +000010730ac_compiler_gnu=no
10731fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010733ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10734
10735fi
10736echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10737echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10738ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010739ac_test_FFLAGS=${FFLAGS+set}
10740ac_save_FFLAGS=$FFLAGS
10741FFLAGS=
10742echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10743echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10744if test "${ac_cv_prog_f77_g+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747 FFLAGS=-g
10748cat >conftest.$ac_ext <<_ACEOF
10749 program main
10750
10751 end
10752_ACEOF
10753rm -f conftest.$ac_objext
10754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010755 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010762 { ac_try='test -z "$ac_f77_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_prog_f77_g=yes
10776else
10777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010778sed 's/^/| /' conftest.$ac_ext >&5
10779
John Criswell47fdd832003-07-14 16:52:07 +000010780ac_cv_prog_f77_g=no
10781fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010783
10784fi
10785echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10786echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10787if test "$ac_test_FFLAGS" = set; then
10788 FFLAGS=$ac_save_FFLAGS
10789elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010790 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010791 FFLAGS="-g -O2"
10792 else
10793 FFLAGS="-g"
10794 fi
10795else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010796 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010797 FFLAGS="-O2"
10798 else
10799 FFLAGS=
10800 fi
10801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010802
10803G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010804ac_ext=c
10805ac_cpp='$CPP $CPPFLAGS'
10806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808ac_compiler_gnu=$ac_cv_c_compiler_gnu
10809
10810
10811
10812# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10813
10814# find the maximum length of command line arguments
10815echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10816echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10817if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819else
10820 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010821 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010822
10823 case $build_os in
10824 msdosdjgpp*)
10825 # On DJGPP, this test can blow up pretty badly due to problems in libc
10826 # (any single argument exceeding 2000 bytes causes a buffer overrun
10827 # during glob expansion). Even if it were fixed, the result of this
10828 # check would be larger than it should be.
10829 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10830 ;;
10831
10832 gnu*)
10833 # Under GNU Hurd, this test is not required because there is
10834 # no limit to the length of command line arguments.
10835 # Libtool will interpret -1 as no limit whatsoever
10836 lt_cv_sys_max_cmd_len=-1;
10837 ;;
10838
10839 cygwin* | mingw*)
10840 # On Win9x/ME, this test blows up -- it succeeds, but takes
10841 # about 5 minutes as the teststring grows exponentially.
10842 # Worse, since 9x/ME are not pre-emptively multitasking,
10843 # you end up with a "frozen" computer, even though with patience
10844 # the test eventually succeeds (with a max line length of 256k).
10845 # Instead, let's just punt: use the minimum linelength reported by
10846 # all of the supported platforms: 8192 (on NT/2K/XP).
10847 lt_cv_sys_max_cmd_len=8192;
10848 ;;
10849
Reid Spencer2706f8c2004-09-19 23:53:36 +000010850 amigaos*)
10851 # On AmigaOS with pdksh, this test takes hours, literally.
10852 # So we just punt and use a minimum line length of 8192.
10853 lt_cv_sys_max_cmd_len=8192;
10854 ;;
10855
10856 netbsd* | freebsd* | openbsd* | darwin* )
10857 # This has been around since 386BSD, at least. Likely further.
10858 if test -x /sbin/sysctl; then
10859 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10860 elif test -x /usr/sbin/sysctl; then
10861 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10862 else
10863 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10864 fi
10865 # And add a safety zone
10866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10867 ;;
10868
John Criswell47fdd832003-07-14 16:52:07 +000010869 *)
10870 # If test is not a shell built-in, we'll probably end up computing a
10871 # maximum length that is only half of the actual maximum length, but
10872 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010873 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10874 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10875 = "XX$teststring") >/dev/null 2>&1 &&
10876 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010877 lt_cv_sys_max_cmd_len=$new_result &&
10878 test $i != 17 # 1/2 MB should be enough
10879 do
10880 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010881 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010882 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010883 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010884 # Add a significant safety factor because C++ compilers can tack on massive
10885 # amounts of additional arguments before passing them to the linker.
10886 # It appears as though 1/2 is a usable value.
10887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10888 ;;
10889 esac
10890
10891fi
10892
10893if test -n $lt_cv_sys_max_cmd_len ; then
10894 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10895echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10896else
10897 echo "$as_me:$LINENO: result: none" >&5
10898echo "${ECHO_T}none" >&6
10899fi
10900
10901
10902
10903
10904# Check for command to grab the raw symbol name followed by C symbol from nm.
10905echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10906echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10907if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else
10910
10911# These are sane defaults that work on at least a few old systems.
10912# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10913
10914# Character class describing NM global symbol codes.
10915symcode='[BCDEGRST]'
10916
10917# Regexp to match symbols that can be accessed directly from C.
10918sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10919
10920# Transform the above into a raw symbol and a C symbol.
10921symxfrm='\1 \2\3 \3'
10922
10923# Transform an extracted symbol line into a proper C declaration
10924lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10925
10926# Transform an extracted symbol line into symbol name and symbol address
10927lt_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'"
10928
10929# Define system-specific variables.
10930case $host_os in
10931aix*)
10932 symcode='[BCDT]'
10933 ;;
10934cygwin* | mingw* | pw32*)
10935 symcode='[ABCDGISTW]'
10936 ;;
10937hpux*) # Its linker distinguishes data from code symbols
10938 if test "$host_cpu" = ia64; then
10939 symcode='[ABCDEGRST]'
10940 fi
10941 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10942 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'"
10943 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010944linux*)
10945 if test "$host_cpu" = ia64; then
10946 symcode='[ABCDGIRSTW]'
10947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10948 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'"
10949 fi
10950 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010951irix* | nonstopux*)
10952 symcode='[BCDEGRST]'
10953 ;;
10954osf*)
10955 symcode='[BCDEGQRST]'
10956 ;;
10957solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010958 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010959 ;;
10960sysv4)
10961 symcode='[DFNSTU]'
10962 ;;
10963esac
10964
10965# Handle CRLF in mingw tool chain
10966opt_cr=
10967case $build_os in
10968mingw*)
10969 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10970 ;;
10971esac
10972
10973# If we're using GNU nm, then use its standard symbol codes.
10974case `$NM -V 2>&1` in
10975*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010976 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010977esac
10978
10979# Try without a prefix undercore, then with it.
10980for ac_symprfx in "" "_"; do
10981
10982 # Write the raw and C identifiers.
10983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10984
10985 # Check to see that the pipe works correctly.
10986 pipe_works=no
10987
10988 rm -f conftest*
10989 cat > conftest.$ac_ext <<EOF
10990#ifdef __cplusplus
10991extern "C" {
10992#endif
10993char nm_test_var;
10994void nm_test_func(){}
10995#ifdef __cplusplus
10996}
10997#endif
10998int main(){nm_test_var='a';nm_test_func();return(0);}
10999EOF
11000
11001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002 (eval $ac_compile) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; then
11006 # Now try to grab the symbols.
11007 nlist=conftest.nm
11008 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } && test -s "$nlist"; then
11013 # Try sorting and uniquifying the output.
11014 if sort "$nlist" | uniq > "$nlist"T; then
11015 mv -f "$nlist"T "$nlist"
11016 else
11017 rm -f "$nlist"T
11018 fi
11019
11020 # Make sure that we snagged all the symbols we need.
11021 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11022 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11023 cat <<EOF > conftest.$ac_ext
11024#ifdef __cplusplus
11025extern "C" {
11026#endif
11027
11028EOF
11029 # Now generate the symbol file.
11030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11031
11032 cat <<EOF >> conftest.$ac_ext
11033#if defined (__STDC__) && __STDC__
11034# define lt_ptr_t void *
11035#else
11036# define lt_ptr_t char *
11037# define const
11038#endif
11039
11040/* The mapping between symbol names and symbols. */
11041const struct {
11042 const char *name;
11043 lt_ptr_t address;
11044}
11045lt_preloaded_symbols[] =
11046{
11047EOF
11048 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11049 cat <<\EOF >> conftest.$ac_ext
11050 {0, (lt_ptr_t) 0}
11051};
11052
11053#ifdef __cplusplus
11054}
11055#endif
11056EOF
11057 # Now try linking the two files.
11058 mv conftest.$ac_objext conftstm.$ac_objext
11059 lt_save_LIBS="$LIBS"
11060 lt_save_CFLAGS="$CFLAGS"
11061 LIBS="conftstm.$ac_objext"
11062 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11068 pipe_works=yes
11069 fi
11070 LIBS="$lt_save_LIBS"
11071 CFLAGS="$lt_save_CFLAGS"
11072 else
11073 echo "cannot find nm_test_func in $nlist" >&5
11074 fi
11075 else
11076 echo "cannot find nm_test_var in $nlist" >&5
11077 fi
11078 else
11079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11080 fi
11081 else
11082 echo "$progname: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11084 fi
11085 rm -f conftest* conftst*
11086
11087 # Do not use the global_symbol_pipe unless it works.
11088 if test "$pipe_works" = yes; then
11089 break
11090 else
11091 lt_cv_sys_global_symbol_pipe=
11092 fi
11093done
11094
11095fi
11096
11097if test -z "$lt_cv_sys_global_symbol_pipe"; then
11098 lt_cv_sys_global_symbol_to_cdecl=
11099fi
11100if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11101 echo "$as_me:$LINENO: result: failed" >&5
11102echo "${ECHO_T}failed" >&6
11103else
11104 echo "$as_me:$LINENO: result: ok" >&5
11105echo "${ECHO_T}ok" >&6
11106fi
11107
11108echo "$as_me:$LINENO: checking for objdir" >&5
11109echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11110if test "${lt_cv_objdir+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 rm -f .libs 2>/dev/null
11114mkdir .libs 2>/dev/null
11115if test -d .libs; then
11116 lt_cv_objdir=.libs
11117else
11118 # MS-DOS does not allow filenames that begin with a dot.
11119 lt_cv_objdir=_libs
11120fi
11121rmdir .libs 2>/dev/null
11122fi
11123echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11124echo "${ECHO_T}$lt_cv_objdir" >&6
11125objdir=$lt_cv_objdir
11126
11127
11128
11129
11130
11131case $host_os in
11132aix3*)
11133 # AIX sometimes has problems with the GCC collect2 program. For some
11134 # reason, if we set the COLLECT_NAMES environment variable, the problems
11135 # vanish in a puff of smoke.
11136 if test "X${COLLECT_NAMES+set}" != Xset; then
11137 COLLECT_NAMES=
11138 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011139 fi
11140 ;;
11141esac
11142
John Criswell47fdd832003-07-14 16:52:07 +000011143# Sed substitution that helps us do robust quoting. It backslashifies
11144# metacharacters that are still active within double-quoted strings.
11145Xsed='sed -e s/^X//'
11146sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11147
11148# Same as above, but do not quote variable references.
11149double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11150
11151# Sed substitution to delay expansion of an escaped shell variable in a
11152# double_quote_subst'ed string.
11153delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11154
11155# Sed substitution to avoid accidental globbing in evaled expressions
11156no_glob_subst='s/\*/\\\*/g'
11157
11158# Constants:
11159rm="rm -f"
11160
11161# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011162default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011163can_build_shared=yes
11164
11165# All known linkers require a `.a' archive for static linking (except M$VC,
11166# which needs '.lib').
11167libext=a
11168ltmain="$ac_aux_dir/ltmain.sh"
11169ofile="$default_ofile"
11170with_gnu_ld="$lt_cv_prog_gnu_ld"
11171
11172if test -n "$ac_tool_prefix"; then
11173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11174set dummy ${ac_tool_prefix}ar; ac_word=$2
11175echo "$as_me:$LINENO: checking for $ac_word" >&5
11176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11177if test "${ac_cv_prog_AR+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179else
11180 if test -n "$AR"; then
11181 ac_cv_prog_AR="$AR" # Let the user override the test.
11182else
11183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184for as_dir in $PATH
11185do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_AR="${ac_tool_prefix}ar"
11191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195done
11196
11197fi
11198fi
11199AR=$ac_cv_prog_AR
11200if test -n "$AR"; then
11201 echo "$as_me:$LINENO: result: $AR" >&5
11202echo "${ECHO_T}$AR" >&6
11203else
11204 echo "$as_me:$LINENO: result: no" >&5
11205echo "${ECHO_T}no" >&6
11206fi
11207
11208fi
11209if test -z "$ac_cv_prog_AR"; then
11210 ac_ct_AR=$AR
11211 # Extract the first word of "ar", so it can be a program name with args.
11212set dummy 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_ac_ct_AR+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 if test -n "$ac_ct_AR"; then
11219 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232done
11233done
11234
11235 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11236fi
11237fi
11238ac_ct_AR=$ac_cv_prog_ac_ct_AR
11239if test -n "$ac_ct_AR"; then
11240 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11241echo "${ECHO_T}$ac_ct_AR" >&6
11242else
11243 echo "$as_me:$LINENO: result: no" >&5
11244echo "${ECHO_T}no" >&6
11245fi
11246
11247 AR=$ac_ct_AR
11248else
11249 AR="$ac_cv_prog_AR"
11250fi
11251
John Criswell7a73b802003-06-30 21:59:07 +000011252if test -n "$ac_tool_prefix"; then
11253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11254set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11255echo "$as_me:$LINENO: checking for $ac_word" >&5
11256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257if test "${ac_cv_prog_RANLIB+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259else
11260 if test -n "$RANLIB"; then
11261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11262else
11263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 break 2
11273 fi
11274done
11275done
11276
11277fi
11278fi
11279RANLIB=$ac_cv_prog_RANLIB
11280if test -n "$RANLIB"; then
11281 echo "$as_me:$LINENO: result: $RANLIB" >&5
11282echo "${ECHO_T}$RANLIB" >&6
11283else
11284 echo "$as_me:$LINENO: result: no" >&5
11285echo "${ECHO_T}no" >&6
11286fi
11287
11288fi
11289if test -z "$ac_cv_prog_RANLIB"; then
11290 ac_ct_RANLIB=$RANLIB
11291 # Extract the first word of "ranlib", so it can be a program name with args.
11292set dummy 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_ac_ct_RANLIB+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 if test -n "$ac_ct_RANLIB"; then
11299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312done
11313done
11314
11315 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11316fi
11317fi
11318ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11319if test -n "$ac_ct_RANLIB"; then
11320 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11321echo "${ECHO_T}$ac_ct_RANLIB" >&6
11322else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325fi
11326
11327 RANLIB=$ac_ct_RANLIB
11328else
11329 RANLIB="$ac_cv_prog_RANLIB"
11330fi
11331
11332if test -n "$ac_tool_prefix"; then
11333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11334set dummy ${ac_tool_prefix}strip; ac_word=$2
11335echo "$as_me:$LINENO: checking for $ac_word" >&5
11336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337if test "${ac_cv_prog_STRIP+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 if test -n "$STRIP"; then
11341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354done
11355done
11356
11357fi
11358fi
11359STRIP=$ac_cv_prog_STRIP
11360if test -n "$STRIP"; then
11361 echo "$as_me:$LINENO: result: $STRIP" >&5
11362echo "${ECHO_T}$STRIP" >&6
11363else
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
11366fi
11367
11368fi
11369if test -z "$ac_cv_prog_STRIP"; then
11370 ac_ct_STRIP=$STRIP
11371 # Extract the first word of "strip", so it can be a program name with args.
11372set dummy 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_ac_ct_STRIP+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 if test -n "$ac_ct_STRIP"; then
11379 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
11389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392done
11393done
11394
11395 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11396fi
11397fi
11398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11399if test -n "$ac_ct_STRIP"; then
11400 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11401echo "${ECHO_T}$ac_ct_STRIP" >&6
11402else
11403 echo "$as_me:$LINENO: result: no" >&5
11404echo "${ECHO_T}no" >&6
11405fi
11406
11407 STRIP=$ac_ct_STRIP
11408else
11409 STRIP="$ac_cv_prog_STRIP"
11410fi
11411
11412
John Criswell7a73b802003-06-30 21:59:07 +000011413old_CC="$CC"
11414old_CFLAGS="$CFLAGS"
11415
11416# Set sane defaults for various variables
11417test -z "$AR" && AR=ar
11418test -z "$AR_FLAGS" && AR_FLAGS=cru
11419test -z "$AS" && AS=as
11420test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011421test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011422test -z "$DLLTOOL" && DLLTOOL=dlltool
11423test -z "$LD" && LD=ld
11424test -z "$LN_S" && LN_S="ln -s"
11425test -z "$MAGIC_CMD" && MAGIC_CMD=file
11426test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011427test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011428test -z "$OBJDUMP" && OBJDUMP=objdump
11429test -z "$RANLIB" && RANLIB=:
11430test -z "$STRIP" && STRIP=:
11431test -z "$ac_objext" && ac_objext=o
11432
John Criswell7a73b802003-06-30 21:59:07 +000011433# Determine commands to create old-style static archives.
11434old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11435old_postinstall_cmds='chmod 644 $oldlib'
11436old_postuninstall_cmds=
11437
11438if test -n "$RANLIB"; then
11439 case $host_os in
11440 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011441 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011442 ;;
11443 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011444 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011445 ;;
11446 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011448fi
11449
Reid Spencer2706f8c2004-09-19 23:53:36 +000011450cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11451
John Criswell47fdd832003-07-14 16:52:07 +000011452# Only perform the check for file, if the check method requires it
11453case $deplibs_check_method in
11454file_magic*)
11455 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11456 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11457echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11458if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011460else
John Criswell47fdd832003-07-14 16:52:07 +000011461 case $MAGIC_CMD in
11462[\\/*] | ?:[\\/]*)
11463 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11464 ;;
11465*)
11466 lt_save_MAGIC_CMD="$MAGIC_CMD"
11467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11468 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11469 for ac_dir in $ac_dummy; do
11470 IFS="$lt_save_ifs"
11471 test -z "$ac_dir" && ac_dir=.
11472 if test -f $ac_dir/${ac_tool_prefix}file; then
11473 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11474 if test -n "$file_magic_test_file"; then
11475 case $deplibs_check_method in
11476 "file_magic "*)
11477 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11480 $EGREP "$file_magic_regex" > /dev/null; then
11481 :
11482 else
11483 cat <<EOF 1>&2
11484
11485*** Warning: the command libtool uses to detect shared libraries,
11486*** $file_magic_cmd, produces output that libtool cannot recognize.
11487*** The result is that libtool may fail to recognize shared libraries
11488*** as such. This will affect the creation of libtool libraries that
11489*** depend on shared libraries, but programs linked with such libtool
11490*** libraries will work regardless of this problem. Nevertheless, you
11491*** may want to report the problem to your system manager and/or to
11492*** bug-libtool@gnu.org
11493
11494EOF
11495 fi ;;
11496 esac
11497 fi
11498 break
11499 fi
11500 done
11501 IFS="$lt_save_ifs"
11502 MAGIC_CMD="$lt_save_MAGIC_CMD"
11503 ;;
11504esac
John Criswell7a73b802003-06-30 21:59:07 +000011505fi
John Criswell7a73b802003-06-30 21:59:07 +000011506
John Criswell47fdd832003-07-14 16:52:07 +000011507MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11508if test -n "$MAGIC_CMD"; then
11509 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11510echo "${ECHO_T}$MAGIC_CMD" >&6
11511else
11512 echo "$as_me:$LINENO: result: no" >&5
11513echo "${ECHO_T}no" >&6
11514fi
John Criswell7a73b802003-06-30 21:59:07 +000011515
John Criswell47fdd832003-07-14 16:52:07 +000011516if test -z "$lt_cv_path_MAGIC_CMD"; then
11517 if test -n "$ac_tool_prefix"; then
11518 echo "$as_me:$LINENO: checking for file" >&5
11519echo $ECHO_N "checking for file... $ECHO_C" >&6
11520if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522else
11523 case $MAGIC_CMD in
11524[\\/*] | ?:[\\/]*)
11525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11526 ;;
11527*)
11528 lt_save_MAGIC_CMD="$MAGIC_CMD"
11529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11531 for ac_dir in $ac_dummy; do
11532 IFS="$lt_save_ifs"
11533 test -z "$ac_dir" && ac_dir=.
11534 if test -f $ac_dir/file; then
11535 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11536 if test -n "$file_magic_test_file"; then
11537 case $deplibs_check_method in
11538 "file_magic "*)
11539 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11542 $EGREP "$file_magic_regex" > /dev/null; then
11543 :
11544 else
11545 cat <<EOF 1>&2
11546
11547*** Warning: the command libtool uses to detect shared libraries,
11548*** $file_magic_cmd, produces output that libtool cannot recognize.
11549*** The result is that libtool may fail to recognize shared libraries
11550*** as such. This will affect the creation of libtool libraries that
11551*** depend on shared libraries, but programs linked with such libtool
11552*** libraries will work regardless of this problem. Nevertheless, you
11553*** may want to report the problem to your system manager and/or to
11554*** bug-libtool@gnu.org
11555
11556EOF
11557 fi ;;
11558 esac
11559 fi
11560 break
11561 fi
11562 done
11563 IFS="$lt_save_ifs"
11564 MAGIC_CMD="$lt_save_MAGIC_CMD"
11565 ;;
11566esac
11567fi
11568
11569MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11570if test -n "$MAGIC_CMD"; then
11571 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11572echo "${ECHO_T}$MAGIC_CMD" >&6
11573else
11574 echo "$as_me:$LINENO: result: no" >&5
11575echo "${ECHO_T}no" >&6
11576fi
11577
11578 else
11579 MAGIC_CMD=:
11580 fi
11581fi
11582
11583 fi
11584 ;;
11585esac
11586
Reid Spencer17795972004-11-18 09:47:37 +000011587enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011588enable_win32_dll=no
11589
11590# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11591if test "${enable_libtool_lock+set}" = set; then
11592 enableval="$enable_libtool_lock"
11593
11594fi;
11595test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11596
John Criswell7a73b802003-06-30 21:59:07 +000011597
11598# Check whether --with-pic or --without-pic was given.
11599if test "${with_pic+set}" = set; then
11600 withval="$with_pic"
11601 pic_mode="$withval"
11602else
11603 pic_mode=default
11604fi;
11605test -z "$pic_mode" && pic_mode=default
11606
John Criswell47fdd832003-07-14 16:52:07 +000011607# Use C for the default configuration in the libtool script
11608tagname=
11609lt_save_CC="$CC"
11610ac_ext=c
11611ac_cpp='$CPP $CPPFLAGS'
11612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615
11616
11617# Source file extension for C test sources.
11618ac_ext=c
11619
11620# Object file extension for compiled C test sources.
11621objext=o
11622objext=$objext
11623
11624# Code to be used in simple compile tests
11625lt_simple_compile_test_code="int some_variable = 0;\n"
11626
11627# Code to be used in simple link tests
11628lt_simple_link_test_code='int main(){return(0);}\n'
11629
11630
11631# If no C compiler was specified, use CC.
11632LTCC=${LTCC-"$CC"}
11633
11634# Allow CC to be a program name with arguments.
11635compiler=$CC
11636
11637
11638#
11639# Check for any special shared library compilation flags.
11640#
11641lt_prog_cc_shlib=
11642if test "$GCC" = no; then
11643 case $host_os in
11644 sco3.2v5*)
11645 lt_prog_cc_shlib='-belf'
11646 ;;
11647 esac
11648fi
11649if test -n "$lt_prog_cc_shlib"; then
11650 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11651echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11652 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11653 else
11654 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11655echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11656 lt_cv_prog_cc_can_build_shared=no
11657 fi
11658fi
11659
11660
11661#
11662# Check to make sure the static flag actually works.
11663#
11664echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11665echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11666if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668else
John Criswell47fdd832003-07-14 16:52:07 +000011669 lt_prog_compiler_static_works=no
11670 save_LDFLAGS="$LDFLAGS"
11671 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11674 # The compiler can only warn and ignore the option if not recognized
11675 # So say no if there are warnings
11676 if test -s conftest.err; then
11677 # Append any errors to the config.log.
11678 cat conftest.err 1>&5
11679 else
11680 lt_prog_compiler_static_works=yes
11681 fi
11682 fi
11683 $rm conftest*
11684 LDFLAGS="$save_LDFLAGS"
11685
11686fi
11687echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11688echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11689
11690if test x"$lt_prog_compiler_static_works" = xyes; then
11691 :
11692else
11693 lt_prog_compiler_static=
11694fi
11695
11696
11697
John Criswell47fdd832003-07-14 16:52:07 +000011698
11699lt_prog_compiler_no_builtin_flag=
11700
11701if test "$GCC" = yes; then
11702 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11703
Reid Spencer2706f8c2004-09-19 23:53:36 +000011704
11705echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011706echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11707if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709else
11710 lt_cv_prog_compiler_rtti_exceptions=no
11711 ac_outfile=conftest.$ac_objext
11712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11713 lt_compiler_flag="-fno-rtti -fno-exceptions"
11714 # Insert the option either (1) after the last *FLAGS variable, or
11715 # (2) before a word containing "conftest.", or (3) at the end.
11716 # Note that $ac_compile itself does not contain backslashes and begins
11717 # with a dollar sign (not a hyphen), so the echo should work correctly.
11718 # The option is referenced via a variable to avoid confusing sed.
11719 lt_compile=`echo "$ac_compile" | $SED \
11720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11722 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000011723 (eval echo "\"\$as_me:11723: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011724 (eval "$lt_compile" 2>conftest.err)
11725 ac_status=$?
11726 cat conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000011727 echo "$as_me:11727: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011728 if (exit $ac_status) && test -s "$ac_outfile"; then
11729 # The compiler can only warn and ignore the option if not recognized
11730 # So say no if there are warnings
11731 if test ! -s conftest.err; then
11732 lt_cv_prog_compiler_rtti_exceptions=yes
11733 fi
11734 fi
11735 $rm conftest*
11736
11737fi
11738echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11739echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11740
11741if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11742 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11743else
11744 :
11745fi
11746
11747fi
11748
11749lt_prog_compiler_wl=
11750lt_prog_compiler_pic=
11751lt_prog_compiler_static=
11752
11753echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11754echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011755
11756 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011757 lt_prog_compiler_wl='-Wl,'
11758 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011759
11760 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011761 aix*)
11762 # All AIX code is PIC.
11763 if test "$host_cpu" = ia64; then
11764 # AIX 5 now supports IA64 processor
11765 lt_prog_compiler_static='-Bstatic'
11766 fi
John Criswell7a73b802003-06-30 21:59:07 +000011767 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011768
John Criswell7a73b802003-06-30 21:59:07 +000011769 amigaos*)
11770 # FIXME: we need at least 68020 code to build shared libraries, but
11771 # adding the `-m68020' flag to GCC prevents building anything better,
11772 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011773 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011774 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011775
11776 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011777 # PIC is the default for these OSes.
11778 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011779
11780 mingw* | pw32* | os2*)
11781 # This hack is so that the source file can tell whether it is being
11782 # built for inclusion in a dll (and should export symbols for example).
11783 lt_prog_compiler_pic='-DDLL_EXPORT'
11784 ;;
11785
John Criswell7a73b802003-06-30 21:59:07 +000011786 darwin* | rhapsody*)
11787 # PIC is the default on this platform
11788 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011789 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011790 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011791
11792 msdosdjgpp*)
11793 # Just because we use GCC doesn't mean we suddenly get shared libraries
11794 # on systems that don't support them.
11795 lt_prog_compiler_can_build_shared=no
11796 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011797 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011798
John Criswell7a73b802003-06-30 21:59:07 +000011799 sysv4*MP*)
11800 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011801 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011802 fi
11803 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011804
11805 hpux*)
11806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11807 # not for PA HP-UX.
11808 case "$host_cpu" in
11809 hppa*64*|ia64*)
11810 # +Z the default
11811 ;;
11812 *)
11813 lt_prog_compiler_pic='-fPIC'
11814 ;;
11815 esac
11816 ;;
11817
John Criswell7a73b802003-06-30 21:59:07 +000011818 *)
John Criswell47fdd832003-07-14 16:52:07 +000011819 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011820 ;;
11821 esac
11822 else
John Criswell47fdd832003-07-14 16:52:07 +000011823 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011824 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011825 aix*)
11826 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011827 if test "$host_cpu" = ia64; then
11828 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011829 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011830 else
John Criswell47fdd832003-07-14 16:52:07 +000011831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011832 fi
11833 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011834 darwin*)
11835 # PIC is the default on this platform
11836 # Common symbols not allowed in MH_DYLIB files
11837 case "$cc_basename" in
11838 xlc*)
11839 lt_prog_compiler_pic='-qnocommon'
11840 lt_prog_compiler_wl='-Wl,'
11841 ;;
11842 esac
11843 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011844
John Criswell47fdd832003-07-14 16:52:07 +000011845 mingw* | pw32* | os2*)
11846 # This hack is so that the source file can tell whether it is being
11847 # built for inclusion in a dll (and should export symbols for example).
11848 lt_prog_compiler_pic='-DDLL_EXPORT'
11849 ;;
11850
John Criswell7a73b802003-06-30 21:59:07 +000011851 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011852 lt_prog_compiler_wl='-Wl,'
11853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11854 # not for PA HP-UX.
11855 case "$host_cpu" in
11856 hppa*64*|ia64*)
11857 # +Z the default
11858 ;;
11859 *)
11860 lt_prog_compiler_pic='+Z'
11861 ;;
11862 esac
11863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11864 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011865 ;;
11866
John Criswell47fdd832003-07-14 16:52:07 +000011867 irix5* | irix6* | nonstopux*)
11868 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011869 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011870 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011871 ;;
11872
11873 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011874 lt_prog_compiler_pic='-KPIC'
11875 lt_prog_compiler_static='-Bstatic'
11876 ;;
11877
11878 linux*)
11879 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011880 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011881 lt_prog_compiler_wl='-Wl,'
11882 lt_prog_compiler_pic='-KPIC'
11883 lt_prog_compiler_static='-static'
11884 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011885 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011886 lt_prog_compiler_wl='-Wl,'
11887 # All Alpha code is PIC.
11888 lt_prog_compiler_static='-non_shared'
11889 ;;
11890 esac
John Criswell7a73b802003-06-30 21:59:07 +000011891 ;;
11892
11893 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011894 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011895 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011896 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011897 ;;
11898
11899 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011900 lt_prog_compiler_pic='-Kpic'
11901 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011902 ;;
11903
11904 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011905 lt_prog_compiler_wl='-Wl,'
11906 lt_prog_compiler_pic='-KPIC'
11907 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011908 ;;
11909
11910 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011911 lt_prog_compiler_wl='-Qoption ld '
11912 lt_prog_compiler_pic='-PIC'
11913 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011914 ;;
11915
11916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011917 lt_prog_compiler_wl='-Wl,'
11918 lt_prog_compiler_pic='-KPIC'
11919 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011920 ;;
11921
11922 sysv4*MP*)
11923 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011924 lt_prog_compiler_pic='-Kconform_pic'
11925 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011926 fi
11927 ;;
11928
John Criswell47fdd832003-07-14 16:52:07 +000011929 uts4*)
11930 lt_prog_compiler_pic='-pic'
11931 lt_prog_compiler_static='-Bstatic'
11932 ;;
11933
John Criswell7a73b802003-06-30 21:59:07 +000011934 *)
John Criswell47fdd832003-07-14 16:52:07 +000011935 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011936 ;;
11937 esac
11938 fi
11939
John Criswell47fdd832003-07-14 16:52:07 +000011940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11941echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011942
John Criswell47fdd832003-07-14 16:52:07 +000011943#
11944# Check to make sure the PIC flag actually works.
11945#
11946if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011947
11948echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011949echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11950if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
John Criswell47fdd832003-07-14 16:52:07 +000011953 lt_prog_compiler_pic_works=no
11954 ac_outfile=conftest.$ac_objext
11955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11956 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11957 # Insert the option either (1) after the last *FLAGS variable, or
11958 # (2) before a word containing "conftest.", or (3) at the end.
11959 # Note that $ac_compile itself does not contain backslashes and begins
11960 # with a dollar sign (not a hyphen), so the echo should work correctly.
11961 # The option is referenced via a variable to avoid confusing sed.
11962 lt_compile=`echo "$ac_compile" | $SED \
11963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11965 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000011966 (eval echo "\"\$as_me:11966: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011967 (eval "$lt_compile" 2>conftest.err)
11968 ac_status=$?
11969 cat conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000011970 echo "$as_me:11970: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011971 if (exit $ac_status) && test -s "$ac_outfile"; then
11972 # The compiler can only warn and ignore the option if not recognized
11973 # So say no if there are warnings
11974 if test ! -s conftest.err; then
11975 lt_prog_compiler_pic_works=yes
11976 fi
11977 fi
11978 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011979
John Criswell47fdd832003-07-14 16:52:07 +000011980fi
11981echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11982echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011983
John Criswell47fdd832003-07-14 16:52:07 +000011984if test x"$lt_prog_compiler_pic_works" = xyes; then
11985 case $lt_prog_compiler_pic in
11986 "" | " "*) ;;
11987 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11988 esac
John Criswell7a73b802003-06-30 21:59:07 +000011989else
John Criswell47fdd832003-07-14 16:52:07 +000011990 lt_prog_compiler_pic=
11991 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011992fi
11993
John Criswell7a73b802003-06-30 21:59:07 +000011994fi
John Criswell47fdd832003-07-14 16:52:07 +000011995case "$host_os" in
11996 # For platforms which do not support PIC, -DPIC is meaningless:
11997 *djgpp*)
11998 lt_prog_compiler_pic=
11999 ;;
12000 *)
12001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12002 ;;
12003esac
John Criswell7a73b802003-06-30 21:59:07 +000012004
John Criswell7a73b802003-06-30 21:59:07 +000012005echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12006echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012007if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
John Criswell47fdd832003-07-14 16:52:07 +000012010 lt_cv_prog_compiler_c_o=no
12011 $rm -r conftest 2>/dev/null
12012 mkdir conftest
12013 cd conftest
12014 mkdir out
12015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012016
John Criswell47fdd832003-07-14 16:52:07 +000012017 lt_compiler_flag="-o out/conftest2.$ac_objext"
12018 # Insert the option either (1) after the last *FLAGS variable, or
12019 # (2) before a word containing "conftest.", or (3) at the end.
12020 # Note that $ac_compile itself does not contain backslashes and begins
12021 # with a dollar sign (not a hyphen), so the echo should work correctly.
12022 lt_compile=`echo "$ac_compile" | $SED \
12023 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12025 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000012026 (eval echo "\"\$as_me:12026: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012027 (eval "$lt_compile" 2>out/conftest.err)
12028 ac_status=$?
12029 cat out/conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000012030 echo "$as_me:12030: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12032 then
12033 # The compiler can only warn and ignore the option if not recognized
12034 # So say no if there are warnings
12035 if test ! -s out/conftest.err; then
12036 lt_cv_prog_compiler_c_o=yes
12037 fi
12038 fi
12039 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012040 $rm conftest*
12041 # SGI C++ compiler will create directory out/ii_files/ for
12042 # template instantiation
12043 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12044 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012045 cd ..
12046 rmdir conftest
12047 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012048
12049fi
John Criswell47fdd832003-07-14 16:52:07 +000012050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12051echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012052
John Criswell7a73b802003-06-30 21:59:07 +000012053
John Criswell7a73b802003-06-30 21:59:07 +000012054hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012055if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012056 # do not overwrite the value of need_locks provided by the user
12057 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12058echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12059 hard_links=yes
12060 $rm conftest*
12061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12062 touch conftest.a
12063 ln conftest.a conftest.b 2>&5 || hard_links=no
12064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065 echo "$as_me:$LINENO: result: $hard_links" >&5
12066echo "${ECHO_T}$hard_links" >&6
12067 if test "$hard_links" = no; then
12068 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12069echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12070 need_locks=warn
12071 fi
12072else
12073 need_locks=no
12074fi
John Criswell7a73b802003-06-30 21:59:07 +000012075
John Criswell47fdd832003-07-14 16:52:07 +000012076echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12077echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12078
12079 runpath_var=
12080 allow_undefined_flag=
12081 enable_shared_with_static_runtimes=no
12082 archive_cmds=
12083 archive_expsym_cmds=
12084 old_archive_From_new_cmds=
12085 old_archive_from_expsyms_cmds=
12086 export_dynamic_flag_spec=
12087 whole_archive_flag_spec=
12088 thread_safe_flag_spec=
12089 hardcode_libdir_flag_spec=
12090 hardcode_libdir_flag_spec_ld=
12091 hardcode_libdir_separator=
12092 hardcode_direct=no
12093 hardcode_minus_L=no
12094 hardcode_shlibpath_var=unsupported
12095 link_all_deplibs=unknown
12096 hardcode_automatic=no
12097 module_cmds=
12098 module_expsym_cmds=
12099 always_export_symbols=no
12100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12101 # include_expsyms should be a list of space-separated symbols to be *always*
12102 # included in the symbol list
12103 include_expsyms=
12104 # exclude_expsyms can be an extended regexp of symbols to exclude
12105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12107 # as well as any symbol that contains `d'.
12108 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12110 # platforms (ab)use it in PIC code, but their linkers get confused if
12111 # the symbol is explicitly referenced. Since portable code cannot
12112 # rely on this symbol name, it's probably fine to never include it in
12113 # preloaded symbol tables.
12114 extract_expsyms_cmds=
12115
12116 case $host_os in
12117 cygwin* | mingw* | pw32*)
12118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12119 # When not using gcc, we currently assume that we are using
12120 # Microsoft Visual C++.
12121 if test "$GCC" != yes; then
12122 with_gnu_ld=no
12123 fi
12124 ;;
12125 openbsd*)
12126 with_gnu_ld=no
12127 ;;
12128 esac
12129
12130 ld_shlibs=yes
12131 if test "$with_gnu_ld" = yes; then
12132 # If archive_cmds runs LD, not CC, wlarc should be empty
12133 wlarc='${wl}'
12134
12135 # See if GNU ld supports shared libraries.
12136 case $host_os in
12137 aix3* | aix4* | aix5*)
12138 # On AIX/PPC, the GNU linker is very broken
12139 if test "$host_cpu" != ia64; then
12140 ld_shlibs=no
12141 cat <<EOF 1>&2
12142
12143*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12144*** to be unable to reliably create shared libraries on AIX.
12145*** Therefore, libtool is disabling shared libraries support. If you
12146*** really care for shared libraries, you may want to modify your PATH
12147*** so that a non-GNU linker is found, and then restart.
12148
12149EOF
12150 fi
12151 ;;
12152
12153 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012154 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 +000012155 hardcode_libdir_flag_spec='-L$libdir'
12156 hardcode_minus_L=yes
12157
12158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12159 # that the semantics of dynamic libraries on AmigaOS, at least up
12160 # to version 4, is to share data among multiple programs linked
12161 # with the same dynamic library. Since this doesn't match the
12162 # behavior of shared libraries on other platforms, we can't use
12163 # them.
12164 ld_shlibs=no
12165 ;;
12166
12167 beos*)
12168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12169 allow_undefined_flag=unsupported
12170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12171 # support --undefined. This deserves some investigation. FIXME
12172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12173 else
12174 ld_shlibs=no
12175 fi
12176 ;;
12177
12178 cygwin* | mingw* | pw32*)
12179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12180 # as there is no search path for DLLs.
12181 hardcode_libdir_flag_spec='-L$libdir'
12182 allow_undefined_flag=unsupported
12183 always_export_symbols=no
12184 enable_shared_with_static_runtimes=yes
12185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12186
12187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12189 # If the export-symbols file already is a .def file (1st line
12190 # is EXPORTS), use it as is; otherwise, prepend...
12191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12192 cp $export_symbols $output_objdir/$soname.def;
12193 else
12194 echo EXPORTS > $output_objdir/$soname.def;
12195 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012196 fi~
12197 $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 +000012198 else
12199 ld_shlibs=no
12200 fi
12201 ;;
12202
12203 netbsd*)
12204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12205 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12206 wlarc=
12207 else
12208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12210 fi
12211 ;;
12212
12213 solaris* | sysv5*)
12214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12215 ld_shlibs=no
12216 cat <<EOF 1>&2
12217
12218*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12219*** create shared libraries on Solaris systems. Therefore, libtool
12220*** is disabling shared libraries support. We urge you to upgrade GNU
12221*** binutils to release 2.9.1 or newer. Another option is to modify
12222*** your PATH or compiler configuration so that the native linker is
12223*** used, and then restart.
12224
12225EOF
12226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12229 else
12230 ld_shlibs=no
12231 fi
12232 ;;
12233
12234 sunos4*)
12235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12236 wlarc=
12237 hardcode_direct=yes
12238 hardcode_shlibpath_var=no
12239 ;;
12240
Reid Spencer2706f8c2004-09-19 23:53:36 +000012241 linux*)
12242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12243 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 archive_cmds="$tmp_archive_cmds"
12245 supports_anon_versioning=no
12246 case `$LD -v 2>/dev/null` in
12247 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12250 *\ 2.11.*) ;; # other 2.11 versions
12251 *) supports_anon_versioning=yes ;;
12252 esac
12253 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012254 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12255cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12256$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012257 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12258 else
12259 archive_expsym_cmds="$tmp_archive_cmds"
12260 fi
12261 else
12262 ld_shlibs=no
12263 fi
12264 ;;
12265
John Criswell47fdd832003-07-14 16:52:07 +000012266 *)
12267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12270 else
12271 ld_shlibs=no
12272 fi
12273 ;;
12274 esac
12275
12276 if test "$ld_shlibs" = yes; then
12277 runpath_var=LD_RUN_PATH
12278 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12279 export_dynamic_flag_spec='${wl}--export-dynamic'
12280 # ancient GNU ld didn't support --whole-archive et. al.
12281 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12282 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12283 else
12284 whole_archive_flag_spec=
12285 fi
12286 fi
12287 else
12288 # PORTME fill in a description of your system's linker (not GNU ld)
12289 case $host_os in
12290 aix3*)
12291 allow_undefined_flag=unsupported
12292 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012293 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 +000012294 # Note: this linker hardcodes the directories in LIBPATH if there
12295 # are no directories specified by -L.
12296 hardcode_minus_L=yes
12297 if test "$GCC" = yes && test -z "$link_static_flag"; then
12298 # Neither direct hardcoding nor static linking is supported with a
12299 # broken collect2.
12300 hardcode_direct=unsupported
12301 fi
12302 ;;
12303
12304 aix4* | aix5*)
12305 if test "$host_cpu" = ia64; then
12306 # On IA64, the linker does run time linking by default, so we don't
12307 # have to do anything special.
12308 aix_use_runtimelinking=no
12309 exp_sym_flag='-Bexport'
12310 no_entry_flag=""
12311 else
12312 # If we're using GNU nm, then we don't want the "-C" option.
12313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12314 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12315 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'
12316 else
12317 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'
12318 fi
12319 aix_use_runtimelinking=no
12320
12321 # Test if we are trying to use run time linking or normal
12322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12323 # need to do runtime linking.
12324 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12325 for ld_flag in $LDFLAGS; do
12326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12327 aix_use_runtimelinking=yes
12328 break
12329 fi
12330 done
12331 esac
12332
12333 exp_sym_flag='-bexport'
12334 no_entry_flag='-bnoentry'
12335 fi
12336
12337 # When large executables or shared objects are built, AIX ld can
12338 # have problems creating the table of contents. If linking a library
12339 # or program results in "error TOC overflow" add -mminimal-toc to
12340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12342
12343 archive_cmds=''
12344 hardcode_direct=yes
12345 hardcode_libdir_separator=':'
12346 link_all_deplibs=yes
12347
12348 if test "$GCC" = yes; then
12349 case $host_os in aix4.012|aix4.012.*)
12350 # We only want to do this on AIX 4.2 and lower, the check
12351 # below for broken collect2 doesn't work under 4.3+
12352 collect2name=`${CC} -print-prog-name=collect2`
12353 if test -f "$collect2name" && \
12354 strings "$collect2name" | grep resolve_lib_name >/dev/null
12355 then
12356 # We have reworked collect2
12357 hardcode_direct=yes
12358 else
12359 # We have old collect2
12360 hardcode_direct=unsupported
12361 # It fails to find uninstalled libraries when the uninstalled
12362 # path is not listed in the libpath. Setting hardcode_minus_L
12363 # to unsupported forces relinking
12364 hardcode_minus_L=yes
12365 hardcode_libdir_flag_spec='-L$libdir'
12366 hardcode_libdir_separator=
12367 fi
12368 esac
12369 shared_flag='-shared'
12370 else
12371 # not using gcc
12372 if test "$host_cpu" = ia64; then
12373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12374 # chokes on -Wl,-G. The following line is correct:
12375 shared_flag='-G'
12376 else
12377 if test "$aix_use_runtimelinking" = yes; then
12378 shared_flag='${wl}-G'
12379 else
12380 shared_flag='${wl}-bM:SRE'
12381 fi
12382 fi
12383 fi
12384
12385 # It seems that -bexpall does not export symbols beginning with
12386 # underscore (_), so it is better to generate a list of symbols to export.
12387 always_export_symbols=yes
12388 if test "$aix_use_runtimelinking" = yes; then
12389 # Warning - without using the other runtime loading flags (-brtl),
12390 # -berok will link without error, but may produce a broken library.
12391 allow_undefined_flag='-berok'
12392 # Determine the default libpath from the value encoded in an empty executable.
12393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012399
John Criswell7a73b802003-06-30 21:59:07 +000012400int
12401main ()
12402{
John Criswell47fdd832003-07-14 16:52:07 +000012403
John Criswell7a73b802003-06-30 21:59:07 +000012404 ;
12405 return 0;
12406}
12407_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012408rm -f conftest.$ac_objext conftest$ac_exeext
12409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012410 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012411 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012430
John Criswell47fdd832003-07-14 16:52:07 +000012431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12432}'`
12433# Check for a 64-bit object if we didn't find anything.
12434if 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; }
12435}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012436else
12437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012438sed 's/^/| /' conftest.$ac_ext >&5
12439
John Criswell7a73b802003-06-30 21:59:07 +000012440fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012441rm -f conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012444
John Criswell47fdd832003-07-14 16:52:07 +000012445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12446 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"
12447 else
12448 if test "$host_cpu" = ia64; then
12449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12450 allow_undefined_flag="-z nodefs"
12451 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"
12452 else
12453 # Determine the default libpath from the value encoded in an empty executable.
12454 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012460
John Criswell47fdd832003-07-14 16:52:07 +000012461int
12462main ()
12463{
John Criswell7a73b802003-06-30 21:59:07 +000012464
John Criswell47fdd832003-07-14 16:52:07 +000012465 ;
12466 return 0;
12467}
12468_ACEOF
12469rm -f conftest.$ac_objext conftest$ac_exeext
12470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012471 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012491
John Criswell47fdd832003-07-14 16:52:07 +000012492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12493}'`
12494# Check for a 64-bit object if we didn't find anything.
12495if 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; }
12496}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012497else
John Criswell47fdd832003-07-14 16:52:07 +000012498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012499sed 's/^/| /' conftest.$ac_ext >&5
12500
John Criswell47fdd832003-07-14 16:52:07 +000012501fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012502rm -f conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012505
John Criswell47fdd832003-07-14 16:52:07 +000012506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12507 # Warning - without using the other run time loading flags,
12508 # -berok will link without error, but may produce a broken library.
12509 no_undefined_flag=' ${wl}-bernotok'
12510 allow_undefined_flag=' ${wl}-berok'
12511 # -bexpall does not export symbols beginning with underscore (_)
12512 always_export_symbols=yes
12513 # Exported symbols can be pulled into shared objects from archives
12514 whole_archive_flag_spec=' '
12515 archive_cmds_need_lc=yes
12516 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012517 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 +000012518 fi
12519 fi
John Criswell7a73b802003-06-30 21:59:07 +000012520 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012521
12522 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012523 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 +000012524 hardcode_libdir_flag_spec='-L$libdir'
12525 hardcode_minus_L=yes
12526 # see comment about different semantics on the GNU ld section
12527 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012528 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012529
Reid Spencer2706f8c2004-09-19 23:53:36 +000012530 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012531 export_dynamic_flag_spec=-rdynamic
12532 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012533
John Criswell47fdd832003-07-14 16:52:07 +000012534 cygwin* | mingw* | pw32*)
12535 # When not using gcc, we currently assume that we are using
12536 # Microsoft Visual C++.
12537 # hardcode_libdir_flag_spec is actually meaningless, as there is
12538 # no search path for DLLs.
12539 hardcode_libdir_flag_spec=' '
12540 allow_undefined_flag=unsupported
12541 # Tell ltmain to make .lib files, not .a files.
12542 libext=lib
12543 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012544 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012545 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012546 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012547 # The linker will automatically build a .lib file if we build a DLL.
12548 old_archive_From_new_cmds='true'
12549 # FIXME: Should let the user specify the lib program.
12550 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12551 fix_srcfile_path='`cygpath -w "$srcfile"`'
12552 enable_shared_with_static_runtimes=yes
12553 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012554
John Criswell47fdd832003-07-14 16:52:07 +000012555 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012556 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012557 rhapsody* | darwin1.[012])
12558 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12559 ;;
12560 *) # Darwin 1.3 on
12561 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12562 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12563 else
12564 case ${MACOSX_DEPLOYMENT_TARGET} in
12565 10.[012])
12566 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12567 ;;
12568 10.*)
12569 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12570 ;;
12571 esac
12572 fi
12573 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012574 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012575 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012576 hardcode_direct=no
12577 hardcode_automatic=yes
12578 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012579 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012580 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012581 if test "$GCC" = yes ; then
12582 output_verbose_link_cmd='echo'
12583 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12584 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12585 # 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 +000012586 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}'
12587 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 +000012588 else
12589 case "$cc_basename" in
12590 xlc*)
12591 output_verbose_link_cmd='echo'
12592 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12593 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12594 # 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 +000012595 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}'
12596 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 +000012597 ;;
12598 *)
12599 ld_shlibs=no
12600 ;;
12601 esac
John Criswell7a73b802003-06-30 21:59:07 +000012602 fi
John Criswell47fdd832003-07-14 16:52:07 +000012603 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012604
John Criswell47fdd832003-07-14 16:52:07 +000012605 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012607 hardcode_libdir_flag_spec='-L$libdir'
12608 hardcode_shlibpath_var=no
12609 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012610
John Criswell47fdd832003-07-14 16:52:07 +000012611 freebsd1*)
12612 ld_shlibs=no
12613 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012614
John Criswell47fdd832003-07-14 16:52:07 +000012615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12616 # support. Future versions do this automatically, but an explicit c++rt0.o
12617 # does not break anything, and helps significantly (at the cost of a little
12618 # extra space).
12619 freebsd2.2*)
12620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12621 hardcode_libdir_flag_spec='-R$libdir'
12622 hardcode_direct=yes
12623 hardcode_shlibpath_var=no
12624 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012625
John Criswell47fdd832003-07-14 16:52:07 +000012626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12627 freebsd2*)
12628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12629 hardcode_direct=yes
12630 hardcode_minus_L=yes
12631 hardcode_shlibpath_var=no
12632 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012633
John Criswell47fdd832003-07-14 16:52:07 +000012634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012635 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012636 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12637 hardcode_libdir_flag_spec='-R$libdir'
12638 hardcode_direct=yes
12639 hardcode_shlibpath_var=no
12640 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012641
John Criswell47fdd832003-07-14 16:52:07 +000012642 hpux9*)
12643 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012644 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 +000012645 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012646 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 +000012647 fi
12648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12649 hardcode_libdir_separator=:
12650 hardcode_direct=yes
12651
12652 # hardcode_minus_L: Not really in the search PATH,
12653 # but as the default location of the library.
12654 hardcode_minus_L=yes
12655 export_dynamic_flag_spec='${wl}-E'
12656 ;;
12657
12658 hpux10* | hpux11*)
12659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12660 case "$host_cpu" in
12661 hppa*64*|ia64*)
12662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12663 ;;
12664 *)
12665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12666 ;;
12667 esac
12668 else
12669 case "$host_cpu" in
12670 hppa*64*|ia64*)
12671 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12672 ;;
12673 *)
12674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12675 ;;
12676 esac
12677 fi
12678 if test "$with_gnu_ld" = no; then
12679 case "$host_cpu" in
12680 hppa*64*)
12681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12682 hardcode_libdir_flag_spec_ld='+b $libdir'
12683 hardcode_libdir_separator=:
12684 hardcode_direct=no
12685 hardcode_shlibpath_var=no
12686 ;;
12687 ia64*)
12688 hardcode_libdir_flag_spec='-L$libdir'
12689 hardcode_direct=no
12690 hardcode_shlibpath_var=no
12691
12692 # hardcode_minus_L: Not really in the search PATH,
12693 # but as the default location of the library.
12694 hardcode_minus_L=yes
12695 ;;
12696 *)
12697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12698 hardcode_libdir_separator=:
12699 hardcode_direct=yes
12700 export_dynamic_flag_spec='${wl}-E'
12701
12702 # hardcode_minus_L: Not really in the search PATH,
12703 # but as the default location of the library.
12704 hardcode_minus_L=yes
12705 ;;
12706 esac
12707 fi
12708 ;;
12709
12710 irix5* | irix6* | nonstopux*)
12711 if test "$GCC" = yes; then
12712 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'
12713 else
12714 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'
12715 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12716 fi
12717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12718 hardcode_libdir_separator=:
12719 link_all_deplibs=yes
12720 ;;
12721
12722 netbsd*)
12723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12725 else
12726 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12727 fi
12728 hardcode_libdir_flag_spec='-R$libdir'
12729 hardcode_direct=yes
12730 hardcode_shlibpath_var=no
12731 ;;
12732
12733 newsos6)
12734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735 hardcode_direct=yes
12736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12737 hardcode_libdir_separator=:
12738 hardcode_shlibpath_var=no
12739 ;;
12740
12741 openbsd*)
12742 hardcode_direct=yes
12743 hardcode_shlibpath_var=no
12744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012746 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 +000012747 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12748 export_dynamic_flag_spec='${wl}-E'
12749 else
12750 case $host_os in
12751 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_libdir_flag_spec='-R$libdir'
12754 ;;
12755 *)
12756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12758 ;;
12759 esac
12760 fi
12761 ;;
12762
12763 os2*)
12764 hardcode_libdir_flag_spec='-L$libdir'
12765 hardcode_minus_L=yes
12766 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012767 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 +000012768 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12769 ;;
12770
12771 osf3*)
12772 if test "$GCC" = yes; then
12773 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12774 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'
12775 else
12776 allow_undefined_flag=' -expect_unresolved \*'
12777 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'
12778 fi
12779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12780 hardcode_libdir_separator=:
12781 ;;
12782
12783 osf4* | osf5*) # as osf3* with the addition of -msym flag
12784 if test "$GCC" = yes; then
12785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12786 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'
12787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12788 else
12789 allow_undefined_flag=' -expect_unresolved \*'
12790 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 +000012791 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12792 $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'
12793
John Criswell47fdd832003-07-14 16:52:07 +000012794 # Both c and cxx compiler support -rpath directly
12795 hardcode_libdir_flag_spec='-rpath $libdir'
12796 fi
12797 hardcode_libdir_separator=:
12798 ;;
12799
12800 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12802 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012803 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012804 runpath_var=LD_RUN_PATH
12805 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012806 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012807
John Criswell47fdd832003-07-14 16:52:07 +000012808 solaris*)
12809 no_undefined_flag=' -z text'
12810 if test "$GCC" = yes; then
12811 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012812 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12813 $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 +000012814 else
12815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012816 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12817 $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 +000012818 fi
12819 hardcode_libdir_flag_spec='-R$libdir'
12820 hardcode_shlibpath_var=no
12821 case $host_os in
12822 solaris2.[0-5] | solaris2.[0-5].*) ;;
12823 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12824 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12825 esac
12826 link_all_deplibs=yes
12827 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012828
John Criswell47fdd832003-07-14 16:52:07 +000012829 sunos4*)
12830 if test "x$host_vendor" = xsequent; then
12831 # Use $CC to link under sequent, because it throws in some extra .o
12832 # files that make .init and .fini sections work.
12833 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12834 else
12835 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12836 fi
12837 hardcode_libdir_flag_spec='-L$libdir'
12838 hardcode_direct=yes
12839 hardcode_minus_L=yes
12840 hardcode_shlibpath_var=no
12841 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012842
John Criswell47fdd832003-07-14 16:52:07 +000012843 sysv4)
12844 case $host_vendor in
12845 sni)
12846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12847 hardcode_direct=yes # is this really true???
12848 ;;
12849 siemens)
12850 ## LD is ld it makes a PLAMLIB
12851 ## CC just makes a GrossModule.
12852 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12853 reload_cmds='$CC -r -o $output$reload_objs'
12854 hardcode_direct=no
12855 ;;
12856 motorola)
12857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12859 ;;
12860 esac
12861 runpath_var='LD_RUN_PATH'
12862 hardcode_shlibpath_var=no
12863 ;;
12864
12865 sysv4.3*)
12866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_shlibpath_var=no
12868 export_dynamic_flag_spec='-Bexport'
12869 ;;
12870
12871 sysv4*MP*)
12872 if test -d /usr/nec; then
12873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12874 hardcode_shlibpath_var=no
12875 runpath_var=LD_RUN_PATH
12876 hardcode_runpath_var=yes
12877 ld_shlibs=yes
12878 fi
12879 ;;
12880
12881 sysv4.2uw2*)
12882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883 hardcode_direct=yes
12884 hardcode_minus_L=no
12885 hardcode_shlibpath_var=no
12886 hardcode_runpath_var=yes
12887 runpath_var=LD_RUN_PATH
12888 ;;
12889
12890 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12891 no_undefined_flag='${wl}-z ${wl}text'
12892 if test "$GCC" = yes; then
12893 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12894 else
12895 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 fi
12897 runpath_var='LD_RUN_PATH'
12898 hardcode_shlibpath_var=no
12899 ;;
12900
12901 sysv5*)
12902 no_undefined_flag=' -z text'
12903 # $CC -shared without GNU ld will not create a library from C++
12904 # object files and a static libstdc++, better avoid it by now
12905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907 $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 +000012908 hardcode_libdir_flag_spec=
12909 hardcode_shlibpath_var=no
12910 runpath_var='LD_RUN_PATH'
12911 ;;
12912
12913 uts4*)
12914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_libdir_flag_spec='-L$libdir'
12916 hardcode_shlibpath_var=no
12917 ;;
12918
12919 *)
12920 ld_shlibs=no
12921 ;;
12922 esac
12923 fi
12924
John Criswell7a73b802003-06-30 21:59:07 +000012925echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12926echo "${ECHO_T}$ld_shlibs" >&6
12927test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012928
John Criswell47fdd832003-07-14 16:52:07 +000012929variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12930if test "$GCC" = yes; then
12931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12932fi
12933
12934#
12935# Do we need to explicitly link libc?
12936#
12937case "x$archive_cmds_need_lc" in
12938x|xyes)
12939 # Assume -lc should be added
12940 archive_cmds_need_lc=yes
12941
12942 if test "$enable_shared" = yes && test "$GCC" = yes; then
12943 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012944 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012945 # FIXME: we may have to deal with multi-command sequences.
12946 ;;
12947 '$CC '*)
12948 # Test whether the compiler implicitly links with -lc since on some
12949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12950 # to ld, don't add -lc before -lgcc.
12951 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12952echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12953 $rm conftest*
12954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12955
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } 2>conftest.err; then
12961 soname=conftest
12962 lib=conftest
12963 libobjs=conftest.$ac_objext
12964 deplibs=
12965 wl=$lt_prog_compiler_wl
12966 compiler_flags=-v
12967 linker_flags=-v
12968 verstring=
12969 output_objdir=.
12970 libname=conftest
12971 lt_save_allow_undefined_flag=$allow_undefined_flag
12972 allow_undefined_flag=
12973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12974 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }
12978 then
12979 archive_cmds_need_lc=no
12980 else
12981 archive_cmds_need_lc=yes
12982 fi
12983 allow_undefined_flag=$lt_save_allow_undefined_flag
12984 else
12985 cat conftest.err 1>&5
12986 fi
12987 $rm conftest*
12988 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12989echo "${ECHO_T}$archive_cmds_need_lc" >&6
12990 ;;
12991 esac
12992 fi
12993 ;;
12994esac
12995
John Criswell7a73b802003-06-30 21:59:07 +000012996echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12997echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12998library_names_spec=
12999libname_spec='lib$name'
13000soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013001shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013002postinstall_cmds=
13003postuninstall_cmds=
13004finish_cmds=
13005finish_eval=
13006shlibpath_var=
13007shlibpath_overrides_runpath=unknown
13008version_type=none
13009dynamic_linker="$host_os ld.so"
13010sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013011if test "$GCC" = yes; then
13012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13014 # if the path contains ";" then we assume it to be the separator
13015 # otherwise default to the standard path separator (i.e. ":") - it is
13016 # assumed that no part of a normal pathname contains ";" but that should
13017 # okay in the real world where ";" in dirpaths is itself problematic.
13018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13019 else
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13021 fi
13022else
13023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13024fi
13025need_lib_prefix=unknown
13026hardcode_into_libs=no
13027
13028# when you set need_version to no, make sure it does not cause -set_version
13029# flags to be left without arguments
13030need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013031
13032case $host_os in
13033aix3*)
13034 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013036 shlibpath_var=LIBPATH
13037
John Criswell47fdd832003-07-14 16:52:07 +000013038 # AIX 3 has no versioning support, so we append a major version to the name.
13039 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013040 ;;
13041
13042aix4* | aix5*)
13043 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013044 need_lib_prefix=no
13045 need_version=no
13046 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013047 if test "$host_cpu" = ia64; then
13048 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013050 shlibpath_var=LD_LIBRARY_PATH
13051 else
13052 # With GCC up to 2.95.x, collect2 would create an import file
13053 # for dependence libraries. The import file would start with
13054 # the line `#! .'. This would cause the generated library to
13055 # depend on `.', always an invalid library. This was fixed in
13056 # development snapshots of GCC prior to 3.0.
13057 case $host_os in
13058 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13060 echo ' yes '
13061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13062 :
13063 else
13064 can_build_shared=no
13065 fi
13066 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013067 esac
John Criswell47fdd832003-07-14 16:52:07 +000013068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13069 # soname into executable. Probably we can add versioning support to
13070 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013071 if test "$aix_use_runtimelinking" = yes; then
13072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13073 # instead of lib<name>.a to let people know that these are not
13074 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013076 else
13077 # We preserve .a as extension for shared libraries through AIX4.2
13078 # and later when we are not doing run time linking.
13079 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013080 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013081 fi
13082 shlibpath_var=LIBPATH
13083 fi
13084 ;;
13085
13086amigaos*)
13087 library_names_spec='$libname.ixlibrary $libname.a'
13088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013089 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 +000013090 ;;
13091
13092beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013093 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013094 dynamic_linker="$host_os ld.so"
13095 shlibpath_var=LIBRARY_PATH
13096 ;;
13097
Reid Spencer2706f8c2004-09-19 23:53:36 +000013098bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013099 version_type=linux
13100 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013107 # the default ld.so.conf also contains /usr/contrib/lib and
13108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13109 # libtool to hard-code these into programs
13110 ;;
13111
13112cygwin* | mingw* | pw32*)
13113 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013114 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013115 need_version=no
13116 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013117
John Criswell7a73b802003-06-30 21:59:07 +000013118 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013119 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013120 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013122 postinstall_cmds='base_file=`basename \${file}`~
13123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13124 dldir=$destdir/`dirname \$dlpath`~
13125 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013126 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13128 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013129 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013130 shlibpath_overrides_runpath=yes
13131
13132 case $host_os in
13133 cygwin*)
13134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13135 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 +000013136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013137 ;;
13138 mingw*)
13139 # MinGW DLLs use traditional 'lib' prefix
13140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13143 # It is most probably a Windows format PATH printed by
13144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13145 # path with ; separators, and with drive letters. We can handle the
13146 # drive letters (cygwin fileutils understands them), so leave them,
13147 # especially as we might pass files found there to a mingw objdump,
13148 # which wouldn't understand a cygwinified path. Ahh.
13149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13150 else
13151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13152 fi
13153 ;;
13154 pw32*)
13155 # pw32 DLLs use 'pw' prefix rather than 'lib'
13156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13157 ;;
13158 esac
John Criswell7a73b802003-06-30 21:59:07 +000013159 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013160
John Criswell7a73b802003-06-30 21:59:07 +000013161 *)
John Criswell47fdd832003-07-14 16:52:07 +000013162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013163 ;;
13164 esac
13165 dynamic_linker='Win32 ld.exe'
13166 # FIXME: first we should search . and the directory the executable is in
13167 shlibpath_var=PATH
13168 ;;
13169
13170darwin* | rhapsody*)
13171 dynamic_linker="$host_os dyld"
13172 version_type=darwin
13173 need_lib_prefix=no
13174 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013175 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013176 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013177 shlibpath_overrides_runpath=yes
13178 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013179 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013180 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013181 if test "$GCC" = yes; then
13182 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"`
13183 else
13184 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013185 fi
13186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13187 ;;
13188
13189dgux*)
13190 version_type=linux
13191 need_lib_prefix=no
13192 need_version=no
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013196 ;;
13197
13198freebsd1*)
13199 dynamic_linker=no
13200 ;;
13201
Reid Spencer2706f8c2004-09-19 23:53:36 +000013202kfreebsd*-gnu)
13203 version_type=linux
13204 need_lib_prefix=no
13205 need_version=no
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 shlibpath_var=LD_LIBRARY_PATH
13209 shlibpath_overrides_runpath=no
13210 hardcode_into_libs=yes
13211 dynamic_linker='GNU ld.so'
13212 ;;
13213
John Criswell7a73b802003-06-30 21:59:07 +000013214freebsd*)
13215 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13216 version_type=freebsd-$objformat
13217 case $version_type in
13218 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013220 need_version=no
13221 need_lib_prefix=no
13222 ;;
13223 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013225 need_version=yes
13226 ;;
13227 esac
13228 shlibpath_var=LD_LIBRARY_PATH
13229 case $host_os in
13230 freebsd2*)
13231 shlibpath_overrides_runpath=yes
13232 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013233 freebsd3.01* | freebsdelf3.01*)
13234 shlibpath_overrides_runpath=yes
13235 hardcode_into_libs=yes
13236 ;;
13237 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013238 shlibpath_overrides_runpath=no
13239 hardcode_into_libs=yes
13240 ;;
13241 esac
13242 ;;
13243
13244gnu*)
13245 version_type=linux
13246 need_lib_prefix=no
13247 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013250 shlibpath_var=LD_LIBRARY_PATH
13251 hardcode_into_libs=yes
13252 ;;
13253
13254hpux9* | hpux10* | hpux11*)
13255 # Give a soname corresponding to the major version so that dld.sl refuses to
13256 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013257 version_type=sunos
13258 need_lib_prefix=no
13259 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013260 case "$host_cpu" in
13261 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013262 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013263 hardcode_into_libs=yes
13264 dynamic_linker="$host_os dld.so"
13265 shlibpath_var=LD_LIBRARY_PATH
13266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268 soname_spec='${libname}${release}${shared_ext}$major'
13269 if test "X$HPUX_IA64_MODE" = X32; then
13270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13271 else
13272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13273 fi
13274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13275 ;;
13276 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013277 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013278 hardcode_into_libs=yes
13279 dynamic_linker="$host_os dld.sl"
13280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13286 ;;
13287 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013289 dynamic_linker="$host_os dld.sl"
13290 shlibpath_var=SHLIB_PATH
13291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 ;;
13295 esac
John Criswell7a73b802003-06-30 21:59:07 +000013296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13297 postinstall_cmds='chmod 555 $lib'
13298 ;;
13299
John Criswell47fdd832003-07-14 16:52:07 +000013300irix5* | irix6* | nonstopux*)
13301 case $host_os in
13302 nonstopux*) version_type=nonstopux ;;
13303 *)
13304 if test "$lt_cv_prog_gnu_ld" = yes; then
13305 version_type=linux
13306 else
13307 version_type=irix
13308 fi ;;
13309 esac
John Criswell7a73b802003-06-30 21:59:07 +000013310 need_lib_prefix=no
13311 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013312 soname_spec='${libname}${release}${shared_ext}$major'
13313 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 +000013314 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013315 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013316 libsuff= shlibsuff=
13317 ;;
13318 *)
13319 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13321 libsuff= shlibsuff= libmagic=32-bit;;
13322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13323 libsuff=32 shlibsuff=N32 libmagic=N32;;
13324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013326 *) libsuff= shlibsuff= libmagic=never-match;;
13327 esac
13328 ;;
13329 esac
13330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13331 shlibpath_overrides_runpath=no
13332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013334 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013335 ;;
13336
13337# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013338linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013339 dynamic_linker=no
13340 ;;
13341
13342# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013343linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013344 version_type=linux
13345 need_lib_prefix=no
13346 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=no
13352 # This implies no fast_install, which is unacceptable.
13353 # Some rework will be needed to allow for fast_install
13354 # before this can be enabled.
13355 hardcode_into_libs=yes
13356
Reid Spencer2706f8c2004-09-19 23:53:36 +000013357 # Append ld.so.conf contents to the search path
13358 if test -f /etc/ld.so.conf; then
13359 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13361 fi
13362
John Criswell7a73b802003-06-30 21:59:07 +000013363 # We used to test for /lib/ld.so.1 and disable shared libraries on
13364 # powerpc, because MkLinux only supported shared libraries with the
13365 # GNU dynamic linker. Since this was broken with cross compilers,
13366 # most powerpc-linux boxes support dynamic linking these days and
13367 # people can always --disable-shared, the test was removed, and we
13368 # assume the GNU/Linux dynamic linker is in use.
13369 dynamic_linker='GNU/Linux ld.so'
13370 ;;
13371
Reid Spencer2706f8c2004-09-19 23:53:36 +000013372knetbsd*-gnu)
13373 version_type=linux
13374 need_lib_prefix=no
13375 need_version=no
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=no
13380 hardcode_into_libs=yes
13381 dynamic_linker='GNU ld.so'
13382 ;;
13383
John Criswell7a73b802003-06-30 21:59:07 +000013384netbsd*)
13385 version_type=sunos
13386 need_lib_prefix=no
13387 need_version=no
13388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13391 dynamic_linker='NetBSD (a.out) ld.so'
13392 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013394 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013395 dynamic_linker='NetBSD ld.elf_so'
13396 fi
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 hardcode_into_libs=yes
13400 ;;
13401
13402newsos6)
13403 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=yes
13407 ;;
13408
Reid Spencer2706f8c2004-09-19 23:53:36 +000013409nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013410 version_type=linux
13411 need_lib_prefix=no
13412 need_version=no
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=yes
13417 ;;
13418
13419openbsd*)
13420 version_type=sunos
13421 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013422 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13425 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013426 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 +000013427 case $host_os in
13428 openbsd2.[89] | openbsd2.[89].*)
13429 shlibpath_overrides_runpath=no
13430 ;;
13431 *)
13432 shlibpath_overrides_runpath=yes
13433 ;;
13434 esac
John Criswell7a73b802003-06-30 21:59:07 +000013435 else
13436 shlibpath_overrides_runpath=yes
13437 fi
John Criswell7a73b802003-06-30 21:59:07 +000013438 ;;
13439
13440os2*)
13441 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013442 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013443 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013444 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013445 dynamic_linker='OS/2 ld.exe'
13446 shlibpath_var=LIBPATH
13447 ;;
13448
13449osf3* | osf4* | osf5*)
13450 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013451 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013452 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013453 soname_spec='${libname}${release}${shared_ext}$major'
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013455 shlibpath_var=LD_LIBRARY_PATH
13456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13458 ;;
13459
13460sco3.2v5*)
13461 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013462 soname_spec='${libname}${release}${shared_ext}$major'
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013464 shlibpath_var=LD_LIBRARY_PATH
13465 ;;
13466
13467solaris*)
13468 version_type=linux
13469 need_lib_prefix=no
13470 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13475 hardcode_into_libs=yes
13476 # ldd complains unless libraries are executable
13477 postinstall_cmds='chmod +x $lib'
13478 ;;
13479
13480sunos4*)
13481 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13484 shlibpath_var=LD_LIBRARY_PATH
13485 shlibpath_overrides_runpath=yes
13486 if test "$with_gnu_ld" = yes; then
13487 need_lib_prefix=no
13488 fi
13489 need_version=yes
13490 ;;
13491
13492sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13493 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013496 shlibpath_var=LD_LIBRARY_PATH
13497 case $host_vendor in
13498 sni)
13499 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013500 need_lib_prefix=no
13501 export_dynamic_flag_spec='${wl}-Blargedynsym'
13502 runpath_var=LD_RUN_PATH
13503 ;;
13504 siemens)
13505 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013506 ;;
13507 motorola)
13508 need_lib_prefix=no
13509 need_version=no
13510 shlibpath_overrides_runpath=no
13511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13512 ;;
13513 esac
13514 ;;
13515
John Criswell7a73b802003-06-30 21:59:07 +000013516sysv4*MP*)
13517 if test -d /usr/nec ;then
13518 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13520 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013521 shlibpath_var=LD_LIBRARY_PATH
13522 fi
13523 ;;
13524
John Criswell47fdd832003-07-14 16:52:07 +000013525uts4*)
13526 version_type=linux
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 ;;
13531
John Criswell7a73b802003-06-30 21:59:07 +000013532*)
13533 dynamic_linker=no
13534 ;;
13535esac
13536echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13537echo "${ECHO_T}$dynamic_linker" >&6
13538test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013539
Reid Spencer2706f8c2004-09-19 23:53:36 +000013540echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13541echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13542hardcode_action=
13543if test -n "$hardcode_libdir_flag_spec" || \
13544 test -n "$runpath_var" || \
13545 test "X$hardcode_automatic" = "Xyes" ; then
13546
13547 # We can hardcode non-existant directories.
13548 if test "$hardcode_direct" != no &&
13549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550 # have to relink, otherwise we might link with an installed library
13551 # when we should be linking with a yet-to-be-installed one
13552 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13553 test "$hardcode_minus_L" != no; then
13554 # Linking always hardcodes the temporary library directory.
13555 hardcode_action=relink
13556 else
13557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558 hardcode_action=immediate
13559 fi
13560else
13561 # We cannot hardcode anything, or else we can only hardcode existing
13562 # directories.
13563 hardcode_action=unsupported
13564fi
13565echo "$as_me:$LINENO: result: $hardcode_action" >&5
13566echo "${ECHO_T}$hardcode_action" >&6
13567
13568if test "$hardcode_action" = relink; then
13569 # Fast installation is not supported
13570 enable_fast_install=no
13571elif test "$shlibpath_overrides_runpath" = yes ||
13572 test "$enable_shared" = no; then
13573 # Fast installation is not necessary
13574 enable_fast_install=needless
13575fi
13576
13577striplib=
13578old_striplib=
13579echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13580echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13581if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13583 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13584 echo "$as_me:$LINENO: result: yes" >&5
13585echo "${ECHO_T}yes" >&6
13586else
13587# FIXME - insert some real tests, host_os isn't really good enough
13588 case $host_os in
13589 darwin*)
13590 if test -n "$STRIP" ; then
13591 striplib="$STRIP -x"
13592 echo "$as_me:$LINENO: result: yes" >&5
13593echo "${ECHO_T}yes" >&6
13594 else
13595 echo "$as_me:$LINENO: result: no" >&5
13596echo "${ECHO_T}no" >&6
13597fi
13598 ;;
13599 *)
13600 echo "$as_me:$LINENO: result: no" >&5
13601echo "${ECHO_T}no" >&6
13602 ;;
13603 esac
13604fi
13605
John Criswell7a73b802003-06-30 21:59:07 +000013606if test "x$enable_dlopen" != xyes; then
13607 enable_dlopen=unknown
13608 enable_dlopen_self=unknown
13609 enable_dlopen_self_static=unknown
13610else
13611 lt_cv_dlopen=no
13612 lt_cv_dlopen_libs=
13613
13614 case $host_os in
13615 beos*)
13616 lt_cv_dlopen="load_add_on"
13617 lt_cv_dlopen_libs=
13618 lt_cv_dlopen_self=yes
13619 ;;
13620
John Criswell47fdd832003-07-14 16:52:07 +000013621 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013622 lt_cv_dlopen="LoadLibrary"
13623 lt_cv_dlopen_libs=
13624 ;;
13625
John Criswell47fdd832003-07-14 16:52:07 +000013626 cygwin*)
13627 lt_cv_dlopen="dlopen"
13628 lt_cv_dlopen_libs=
13629 ;;
13630
13631 darwin*)
13632 # if libdl is installed we need to link against it
13633 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13634echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13635if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 ac_check_lib_save_LIBS=$LIBS
13639LIBS="-ldl $LIBS"
13640cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013646
13647/* Override any gcc2 internal prototype to avoid an error. */
13648#ifdef __cplusplus
13649extern "C"
13650#endif
13651/* We use char because int might match the return type of a gcc2
13652 builtin and then its argument prototype would still apply. */
13653char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013654int
13655main ()
13656{
13657dlopen ();
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013664 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_cv_lib_dl_dlopen=yes
13685else
13686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013687sed 's/^/| /' conftest.$ac_ext >&5
13688
John Criswell47fdd832003-07-14 16:52:07 +000013689ac_cv_lib_dl_dlopen=no
13690fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013691rm -f conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013693LIBS=$ac_check_lib_save_LIBS
13694fi
13695echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13696echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13697if test $ac_cv_lib_dl_dlopen = yes; then
13698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13699else
13700
13701 lt_cv_dlopen="dyld"
13702 lt_cv_dlopen_libs=
13703 lt_cv_dlopen_self=yes
13704
13705fi
13706
13707 ;;
13708
John Criswell7a73b802003-06-30 21:59:07 +000013709 *)
13710 echo "$as_me:$LINENO: checking for shl_load" >&5
13711echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13712if test "${ac_cv_func_shl_load+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714else
13715 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013716/* confdefs.h. */
13717_ACEOF
13718cat confdefs.h >>conftest.$ac_ext
13719cat >>conftest.$ac_ext <<_ACEOF
13720/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13723#define shl_load innocuous_shl_load
13724
John Criswell7a73b802003-06-30 21:59:07 +000013725/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013726 which can conflict with char shl_load (); below.
13727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13728 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013729
John Criswell0c38eaf2003-09-10 15:17:25 +000013730#ifdef __STDC__
13731# include <limits.h>
13732#else
13733# include <assert.h>
13734#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013735
13736#undef shl_load
13737
John Criswell7a73b802003-06-30 21:59:07 +000013738/* Override any gcc2 internal prototype to avoid an error. */
13739#ifdef __cplusplus
13740extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013741{
John Criswell7a73b802003-06-30 21:59:07 +000013742#endif
13743/* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13745char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013746/* The GNU C library defines this for functions which it implements
13747 to always fail with ENOSYS. Some functions are actually named
13748 something starting with __ and the normal name is an alias. */
13749#if defined (__stub_shl_load) || defined (__stub___shl_load)
13750choke me
13751#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013752char (*f) () = shl_load;
13753#endif
13754#ifdef __cplusplus
13755}
John Criswell7a73b802003-06-30 21:59:07 +000013756#endif
13757
John Criswell0c38eaf2003-09-10 15:17:25 +000013758int
13759main ()
13760{
13761return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext conftest$ac_exeext
13767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013768 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_func_shl_load=yes
13789else
13790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013791sed 's/^/| /' conftest.$ac_ext >&5
13792
John Criswell7a73b802003-06-30 21:59:07 +000013793ac_cv_func_shl_load=no
13794fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013795rm -f conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013797fi
13798echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13799echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13800if test $ac_cv_func_shl_load = yes; then
13801 lt_cv_dlopen="shl_load"
13802else
13803 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13804echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13805if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 ac_check_lib_save_LIBS=$LIBS
13809LIBS="-ldld $LIBS"
13810cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013816
13817/* Override any gcc2 internal prototype to avoid an error. */
13818#ifdef __cplusplus
13819extern "C"
13820#endif
13821/* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013824int
13825main ()
13826{
13827shl_load ();
13828 ;
13829 return 0;
13830}
13831_ACEOF
13832rm -f conftest.$ac_objext conftest$ac_exeext
13833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013834 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_lib_dld_shl_load=yes
13855else
13856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013857sed 's/^/| /' conftest.$ac_ext >&5
13858
John Criswell7a73b802003-06-30 21:59:07 +000013859ac_cv_lib_dld_shl_load=no
13860fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013861rm -f conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013863LIBS=$ac_check_lib_save_LIBS
13864fi
13865echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13866echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13867if test $ac_cv_lib_dld_shl_load = yes; then
13868 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13869else
13870 echo "$as_me:$LINENO: checking for dlopen" >&5
13871echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13872if test "${ac_cv_func_dlopen+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874else
13875 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13883#define dlopen innocuous_dlopen
13884
John Criswell7a73b802003-06-30 21:59:07 +000013885/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013886 which can conflict with char dlopen (); below.
13887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013889
John Criswell0c38eaf2003-09-10 15:17:25 +000013890#ifdef __STDC__
13891# include <limits.h>
13892#else
13893# include <assert.h>
13894#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013895
13896#undef dlopen
13897
John Criswell7a73b802003-06-30 21:59:07 +000013898/* Override any gcc2 internal prototype to avoid an error. */
13899#ifdef __cplusplus
13900extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013901{
John Criswell7a73b802003-06-30 21:59:07 +000013902#endif
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013906/* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909#if defined (__stub_dlopen) || defined (__stub___dlopen)
13910choke me
13911#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013912char (*f) () = dlopen;
13913#endif
13914#ifdef __cplusplus
13915}
John Criswell7a73b802003-06-30 21:59:07 +000013916#endif
13917
John Criswell0c38eaf2003-09-10 15:17:25 +000013918int
13919main ()
13920{
13921return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013922 ;
13923 return 0;
13924}
13925_ACEOF
13926rm -f conftest.$ac_objext conftest$ac_exeext
13927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013928 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_func_dlopen=yes
13949else
13950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013951sed 's/^/| /' conftest.$ac_ext >&5
13952
John Criswell7a73b802003-06-30 21:59:07 +000013953ac_cv_func_dlopen=no
13954fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013955rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013957fi
13958echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13959echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13960if test $ac_cv_func_dlopen = yes; then
13961 lt_cv_dlopen="dlopen"
13962else
13963 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13964echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13965if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967else
13968 ac_check_lib_save_LIBS=$LIBS
13969LIBS="-ldl $LIBS"
13970cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013976
13977/* Override any gcc2 internal prototype to avoid an error. */
13978#ifdef __cplusplus
13979extern "C"
13980#endif
13981/* We use char because int might match the return type of a gcc2
13982 builtin and then its argument prototype would still apply. */
13983char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013984int
13985main ()
13986{
13987dlopen ();
13988 ;
13989 return 0;
13990}
13991_ACEOF
13992rm -f conftest.$ac_objext conftest$ac_exeext
13993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013994 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013995 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_cv_lib_dl_dlopen=yes
14015else
14016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014017sed 's/^/| /' conftest.$ac_ext >&5
14018
John Criswell7a73b802003-06-30 21:59:07 +000014019ac_cv_lib_dl_dlopen=no
14020fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014021rm -f conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014023LIBS=$ac_check_lib_save_LIBS
14024fi
14025echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14026echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14027if test $ac_cv_lib_dl_dlopen = yes; then
14028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14029else
14030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14031echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14032if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035 ac_check_lib_save_LIBS=$LIBS
14036LIBS="-lsvld $LIBS"
14037cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014043
14044/* Override any gcc2 internal prototype to avoid an error. */
14045#ifdef __cplusplus
14046extern "C"
14047#endif
14048/* We use char because int might match the return type of a gcc2
14049 builtin and then its argument prototype would still apply. */
14050char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014051int
14052main ()
14053{
14054dlopen ();
14055 ;
14056 return 0;
14057}
14058_ACEOF
14059rm -f conftest.$ac_objext conftest$ac_exeext
14060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014061 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014062 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_cv_lib_svld_dlopen=yes
14082else
14083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014084sed 's/^/| /' conftest.$ac_ext >&5
14085
John Criswell7a73b802003-06-30 21:59:07 +000014086ac_cv_lib_svld_dlopen=no
14087fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014088rm -f conftest.err conftest.$ac_objext \
14089 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014090LIBS=$ac_check_lib_save_LIBS
14091fi
14092echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14094if test $ac_cv_lib_svld_dlopen = yes; then
14095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14096else
14097 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14098echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14099if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 ac_check_lib_save_LIBS=$LIBS
14103LIBS="-ldld $LIBS"
14104cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014105/* confdefs.h. */
14106_ACEOF
14107cat confdefs.h >>conftest.$ac_ext
14108cat >>conftest.$ac_ext <<_ACEOF
14109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014110
14111/* Override any gcc2 internal prototype to avoid an error. */
14112#ifdef __cplusplus
14113extern "C"
14114#endif
14115/* We use char because int might match the return type of a gcc2
14116 builtin and then its argument prototype would still apply. */
14117char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014118int
14119main ()
14120{
14121dld_link ();
14122 ;
14123 return 0;
14124}
14125_ACEOF
14126rm -f conftest.$ac_objext conftest$ac_exeext
14127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014128 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014129 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014130 grep -v '^ *+' conftest.er1 >conftest.err
14131 rm -f conftest.er1
14132 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014135 { ac_try='test -z "$ac_c_werror_flag"
14136 || test ! -s conftest.err'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; } &&
14142 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 ac_cv_lib_dld_dld_link=yes
14149else
14150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014151sed 's/^/| /' conftest.$ac_ext >&5
14152
John Criswell7a73b802003-06-30 21:59:07 +000014153ac_cv_lib_dld_dld_link=no
14154fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014155rm -f conftest.err conftest.$ac_objext \
14156 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014157LIBS=$ac_check_lib_save_LIBS
14158fi
14159echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14160echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14161if test $ac_cv_lib_dld_dld_link = yes; then
14162 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14163fi
14164
14165
14166fi
14167
14168
14169fi
14170
14171
14172fi
14173
14174
14175fi
14176
14177
14178fi
14179
14180 ;;
14181 esac
14182
14183 if test "x$lt_cv_dlopen" != xno; then
14184 enable_dlopen=yes
14185 else
14186 enable_dlopen=no
14187 fi
14188
14189 case $lt_cv_dlopen in
14190 dlopen)
14191 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014193
14194 save_LDFLAGS="$LDFLAGS"
14195 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14196
14197 save_LIBS="$LIBS"
14198 LIBS="$lt_cv_dlopen_libs $LIBS"
14199
14200 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14201echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14202if test "${lt_cv_dlopen_self+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14204else
14205 if test "$cross_compiling" = yes; then :
14206 lt_cv_dlopen_self=cross
14207else
John Criswell47fdd832003-07-14 16:52:07 +000014208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014209 lt_status=$lt_dlunknown
14210 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +000014211#line 14211 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014212#include "confdefs.h"
14213
14214#if HAVE_DLFCN_H
14215#include <dlfcn.h>
14216#endif
14217
14218#include <stdio.h>
14219
14220#ifdef RTLD_GLOBAL
14221# define LT_DLGLOBAL RTLD_GLOBAL
14222#else
14223# ifdef DL_GLOBAL
14224# define LT_DLGLOBAL DL_GLOBAL
14225# else
14226# define LT_DLGLOBAL 0
14227# endif
14228#endif
14229
14230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14231 find out it does not work in some platform. */
14232#ifndef LT_DLLAZY_OR_NOW
14233# ifdef RTLD_LAZY
14234# define LT_DLLAZY_OR_NOW RTLD_LAZY
14235# else
14236# ifdef DL_LAZY
14237# define LT_DLLAZY_OR_NOW DL_LAZY
14238# else
14239# ifdef RTLD_NOW
14240# define LT_DLLAZY_OR_NOW RTLD_NOW
14241# else
14242# ifdef DL_NOW
14243# define LT_DLLAZY_OR_NOW DL_NOW
14244# else
14245# define LT_DLLAZY_OR_NOW 0
14246# endif
14247# endif
14248# endif
14249# endif
14250#endif
14251
14252#ifdef __cplusplus
14253extern "C" void exit (int);
14254#endif
14255
14256void fnord() { int i=42;}
14257int main ()
14258{
14259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14260 int status = $lt_dlunknown;
14261
14262 if (self)
14263 {
14264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14266 /* dlclose (self); */
14267 }
14268
14269 exit (status);
14270}
14271EOF
14272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14273 (eval $ac_link) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14277 (./conftest; exit; ) 2>/dev/null
14278 lt_status=$?
14279 case x$lt_status in
14280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14282 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14283 esac
14284 else :
14285 # compilation failed
14286 lt_cv_dlopen_self=no
14287 fi
14288fi
14289rm -fr conftest*
14290
14291
14292fi
14293echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14294echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14295
14296 if test "x$lt_cv_dlopen_self" = xyes; then
14297 LDFLAGS="$LDFLAGS $link_static_flag"
14298 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14299echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14300if test "${lt_cv_dlopen_self_static+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302else
14303 if test "$cross_compiling" = yes; then :
14304 lt_cv_dlopen_self_static=cross
14305else
John Criswell47fdd832003-07-14 16:52:07 +000014306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014307 lt_status=$lt_dlunknown
14308 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +000014309#line 14309 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014310#include "confdefs.h"
14311
14312#if HAVE_DLFCN_H
14313#include <dlfcn.h>
14314#endif
14315
14316#include <stdio.h>
14317
14318#ifdef RTLD_GLOBAL
14319# define LT_DLGLOBAL RTLD_GLOBAL
14320#else
14321# ifdef DL_GLOBAL
14322# define LT_DLGLOBAL DL_GLOBAL
14323# else
14324# define LT_DLGLOBAL 0
14325# endif
14326#endif
14327
14328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14329 find out it does not work in some platform. */
14330#ifndef LT_DLLAZY_OR_NOW
14331# ifdef RTLD_LAZY
14332# define LT_DLLAZY_OR_NOW RTLD_LAZY
14333# else
14334# ifdef DL_LAZY
14335# define LT_DLLAZY_OR_NOW DL_LAZY
14336# else
14337# ifdef RTLD_NOW
14338# define LT_DLLAZY_OR_NOW RTLD_NOW
14339# else
14340# ifdef DL_NOW
14341# define LT_DLLAZY_OR_NOW DL_NOW
14342# else
14343# define LT_DLLAZY_OR_NOW 0
14344# endif
14345# endif
14346# endif
14347# endif
14348#endif
14349
14350#ifdef __cplusplus
14351extern "C" void exit (int);
14352#endif
14353
14354void fnord() { int i=42;}
14355int main ()
14356{
14357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14358 int status = $lt_dlunknown;
14359
14360 if (self)
14361 {
14362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14363 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14364 /* dlclose (self); */
14365 }
14366
14367 exit (status);
14368}
14369EOF
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14375 (./conftest; exit; ) 2>/dev/null
14376 lt_status=$?
14377 case x$lt_status in
14378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14380 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14381 esac
14382 else :
14383 # compilation failed
14384 lt_cv_dlopen_self_static=no
14385 fi
14386fi
14387rm -fr conftest*
14388
14389
14390fi
14391echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14392echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14393 fi
14394
14395 CPPFLAGS="$save_CPPFLAGS"
14396 LDFLAGS="$save_LDFLAGS"
14397 LIBS="$save_LIBS"
14398 ;;
14399 esac
14400
14401 case $lt_cv_dlopen_self in
14402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14403 *) enable_dlopen_self=unknown ;;
14404 esac
14405
14406 case $lt_cv_dlopen_self_static in
14407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14408 *) enable_dlopen_self_static=unknown ;;
14409 esac
14410fi
14411
14412
John Criswell47fdd832003-07-14 16:52:07 +000014413# Report which librarie types wil actually be built
14414echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14415echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14416echo "$as_me:$LINENO: result: $can_build_shared" >&5
14417echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014418
John Criswell47fdd832003-07-14 16:52:07 +000014419echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14420echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14421test "$can_build_shared" = "no" && enable_shared=no
14422
14423# On AIX, shared libraries and static libraries use the same namespace, and
14424# are all built from PIC.
14425case "$host_os" in
14426aix3*)
14427 test "$enable_shared" = yes && enable_static=no
14428 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014430 postinstall_cmds='$RANLIB $lib'
14431 fi
14432 ;;
14433
Reid Spencer2706f8c2004-09-19 23:53:36 +000014434aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14436 test "$enable_shared" = yes && enable_static=no
14437 fi
John Criswell7a73b802003-06-30 21:59:07 +000014438 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014439esac
14440echo "$as_me:$LINENO: result: $enable_shared" >&5
14441echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014442
John Criswell47fdd832003-07-14 16:52:07 +000014443echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14445# Make sure either enable_shared or enable_static is yes.
14446test "$enable_shared" = yes || enable_static=yes
14447echo "$as_me:$LINENO: result: $enable_static" >&5
14448echo "${ECHO_T}$enable_static" >&6
14449
14450# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014451# libtool distribution, otherwise you forgot to ship ltmain.sh
14452# with your package, and you will get complaints that there are
14453# no rules to generate ltmain.sh.
14454if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014455 # See if we are running on zsh, and set the options which allow our commands through
14456 # without removal of \ escapes.
14457 if test -n "${ZSH_VERSION+set}" ; then
14458 setopt NO_GLOB_SUBST
14459 fi
John Criswell7a73b802003-06-30 21:59:07 +000014460 # Now quote all the things that may contain metacharacters while being
14461 # careful not to overquote the AC_SUBSTed values. We take copies of the
14462 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14464 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14467 deplibs_check_method reload_flag reload_cmds need_locks \
14468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14469 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014471 old_postinstall_cmds old_postuninstall_cmds \
14472 compiler \
14473 CC \
14474 LD \
14475 lt_prog_compiler_wl \
14476 lt_prog_compiler_pic \
14477 lt_prog_compiler_static \
14478 lt_prog_compiler_no_builtin_flag \
14479 export_dynamic_flag_spec \
14480 thread_safe_flag_spec \
14481 whole_archive_flag_spec \
14482 enable_shared_with_static_runtimes \
14483 old_archive_cmds \
14484 old_archive_from_new_cmds \
14485 predep_objects \
14486 postdep_objects \
14487 predeps \
14488 postdeps \
14489 compiler_lib_search_path \
14490 archive_cmds \
14491 archive_expsym_cmds \
14492 postinstall_cmds \
14493 postuninstall_cmds \
14494 old_archive_from_expsyms_cmds \
14495 allow_undefined_flag \
14496 no_undefined_flag \
14497 export_symbols_cmds \
14498 hardcode_libdir_flag_spec \
14499 hardcode_libdir_flag_spec_ld \
14500 hardcode_libdir_separator \
14501 hardcode_automatic \
14502 module_cmds \
14503 module_expsym_cmds \
14504 lt_cv_prog_compiler_c_o \
14505 exclude_expsyms \
14506 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014507
14508 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014509 old_archive_cmds | \
14510 old_archive_from_new_cmds | \
14511 archive_cmds | \
14512 archive_expsym_cmds | \
14513 module_cmds | \
14514 module_expsym_cmds | \
14515 old_archive_from_expsyms_cmds | \
14516 export_symbols_cmds | \
14517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014518 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014519 old_postinstall_cmds | old_postuninstall_cmds | \
14520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014521 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014522 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 +000014523 ;;
14524 *)
14525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14526 ;;
14527 esac
14528 done
14529
John Criswell47fdd832003-07-14 16:52:07 +000014530 case $lt_echo in
14531 *'\$0 --fallback-echo"')
14532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14533 ;;
14534 esac
14535
14536cfgfile="${ofile}T"
14537 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14538 $rm -f "$cfgfile"
14539 { echo "$as_me:$LINENO: creating $ofile" >&5
14540echo "$as_me: creating $ofile" >&6;}
14541
14542 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014543#! $SHELL
14544
John Criswell47fdd832003-07-14 16:52:07 +000014545# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014546# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14547# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14548#
John Criswell47fdd832003-07-14 16:52:07 +000014549# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14550# Free Software Foundation, Inc.
14551#
14552# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014553# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14554#
14555# This program is free software; you can redistribute it and/or modify
14556# it under the terms of the GNU General Public License as published by
14557# the Free Software Foundation; either version 2 of the License, or
14558# (at your option) any later version.
14559#
14560# This program is distributed in the hope that it will be useful, but
14561# WITHOUT ANY WARRANTY; without even the implied warranty of
14562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14563# General Public License for more details.
14564#
14565# You should have received a copy of the GNU General Public License
14566# along with this program; if not, write to the Free Software
14567# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14568#
14569# As a special exception to the GNU General Public License, if you
14570# distribute this file as part of a program that contains a
14571# configuration script generated by Autoconf, you may include it under
14572# the same distribution terms that you use for the rest of that program.
14573
John Criswell47fdd832003-07-14 16:52:07 +000014574# A sed program that does not truncate output.
14575SED=$lt_SED
14576
John Criswell7a73b802003-06-30 21:59:07 +000014577# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014578Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014579
14580# The HP-UX ksh and POSIX shell print the target directory to stdout
14581# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014582(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014583
John Criswell47fdd832003-07-14 16:52:07 +000014584# The names of the tagged configurations supported by this script.
14585available_tags=
14586
John Criswell7a73b802003-06-30 21:59:07 +000014587# ### BEGIN LIBTOOL CONFIG
14588
14589# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14590
14591# Shell to use when invoking shell scripts.
14592SHELL=$lt_SHELL
14593
14594# Whether or not to build shared libraries.
14595build_libtool_libs=$enable_shared
14596
14597# Whether or not to build static libraries.
14598build_old_libs=$enable_static
14599
14600# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014601build_libtool_need_lc=$archive_cmds_need_lc
14602
14603# Whether or not to disallow shared libs when runtime libs are static
14604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014605
14606# Whether or not to optimize for fast installation.
14607fast_install=$enable_fast_install
14608
14609# The host system.
14610host_alias=$host_alias
14611host=$host
14612
14613# An echo program that does not interpret backslashes.
14614echo=$lt_echo
14615
14616# The archiver.
14617AR=$lt_AR
14618AR_FLAGS=$lt_AR_FLAGS
14619
John Criswell47fdd832003-07-14 16:52:07 +000014620# A C compiler.
14621LTCC=$lt_LTCC
14622
14623# A language-specific compiler.
14624CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014625
14626# Is the compiler the GNU C compiler?
14627with_gcc=$GCC
14628
John Criswell47fdd832003-07-14 16:52:07 +000014629# An ERE matcher.
14630EGREP=$lt_EGREP
14631
John Criswell7a73b802003-06-30 21:59:07 +000014632# The linker used to build libraries.
14633LD=$lt_LD
14634
14635# Whether we need hard or soft links.
14636LN_S=$lt_LN_S
14637
14638# A BSD-compatible nm program.
14639NM=$lt_NM
14640
14641# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014642STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014643
14644# Used to examine libraries when file_magic_cmd begins "file"
14645MAGIC_CMD=$MAGIC_CMD
14646
14647# Used on cygwin: DLL creation program.
14648DLLTOOL="$DLLTOOL"
14649
14650# Used on cygwin: object dumper.
14651OBJDUMP="$OBJDUMP"
14652
14653# Used on cygwin: assembler.
14654AS="$AS"
14655
14656# The name of the directory that contains temporary libtool files.
14657objdir=$objdir
14658
14659# How to create reloadable object files.
14660reload_flag=$lt_reload_flag
14661reload_cmds=$lt_reload_cmds
14662
14663# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014664wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014665
14666# Object file suffix (normally "o").
14667objext="$ac_objext"
14668
14669# Old archive suffix (normally "a").
14670libext="$libext"
14671
John Criswell47fdd832003-07-14 16:52:07 +000014672# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014673shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014674
John Criswell7a73b802003-06-30 21:59:07 +000014675# Executable file suffix (normally "").
14676exeext="$exeext"
14677
14678# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014679pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014680pic_mode=$pic_mode
14681
John Criswell47fdd832003-07-14 16:52:07 +000014682# What is the maximum length of a command?
14683max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014684
John Criswell47fdd832003-07-14 16:52:07 +000014685# Does compiler simultaneously support -c and -o options?
14686compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014687
14688# Must we lock files when doing compilation ?
14689need_locks=$lt_need_locks
14690
14691# Do we need the lib prefix for modules?
14692need_lib_prefix=$need_lib_prefix
14693
14694# Do we need a version for libraries?
14695need_version=$need_version
14696
14697# Whether dlopen is supported.
14698dlopen_support=$enable_dlopen
14699
14700# Whether dlopen of programs is supported.
14701dlopen_self=$enable_dlopen_self
14702
14703# Whether dlopen of statically linked programs is supported.
14704dlopen_self_static=$enable_dlopen_self_static
14705
14706# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014707link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014708
14709# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014710no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014711
14712# Compiler flag to allow reflexive dlopens.
14713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14714
14715# Compiler flag to generate shared objects directly from archives.
14716whole_archive_flag_spec=$lt_whole_archive_flag_spec
14717
14718# Compiler flag to generate thread-safe objects.
14719thread_safe_flag_spec=$lt_thread_safe_flag_spec
14720
14721# Library versioning type.
14722version_type=$version_type
14723
14724# Format of library name prefix.
14725libname_spec=$lt_libname_spec
14726
14727# List of archive names. First name is the real one, the rest are links.
14728# The last name is the one that the linker finds with -lNAME.
14729library_names_spec=$lt_library_names_spec
14730
14731# The coded name of the library, if different from the real name.
14732soname_spec=$lt_soname_spec
14733
14734# Commands used to build and install an old-style archive.
14735RANLIB=$lt_RANLIB
14736old_archive_cmds=$lt_old_archive_cmds
14737old_postinstall_cmds=$lt_old_postinstall_cmds
14738old_postuninstall_cmds=$lt_old_postuninstall_cmds
14739
14740# Create an old-style archive from a shared archive.
14741old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14742
14743# Create a temporary old-style archive to link instead of a shared archive.
14744old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14745
14746# Commands used to build and install a shared archive.
14747archive_cmds=$lt_archive_cmds
14748archive_expsym_cmds=$lt_archive_expsym_cmds
14749postinstall_cmds=$lt_postinstall_cmds
14750postuninstall_cmds=$lt_postuninstall_cmds
14751
John Criswell47fdd832003-07-14 16:52:07 +000014752# Commands used to build a loadable module (assumed same as above if empty)
14753module_cmds=$lt_module_cmds
14754module_expsym_cmds=$lt_module_expsym_cmds
14755
John Criswell7a73b802003-06-30 21:59:07 +000014756# Commands to strip libraries.
14757old_striplib=$lt_old_striplib
14758striplib=$lt_striplib
14759
John Criswell47fdd832003-07-14 16:52:07 +000014760# Dependencies to place before the objects being linked to create a
14761# shared library.
14762predep_objects=$lt_predep_objects
14763
14764# Dependencies to place after the objects being linked to create a
14765# shared library.
14766postdep_objects=$lt_postdep_objects
14767
14768# Dependencies to place before the objects being linked to create a
14769# shared library.
14770predeps=$lt_predeps
14771
14772# Dependencies to place after the objects being linked to create a
14773# shared library.
14774postdeps=$lt_postdeps
14775
14776# The library search path used internally by the compiler when linking
14777# a shared library.
14778compiler_lib_search_path=$lt_compiler_lib_search_path
14779
John Criswell7a73b802003-06-30 21:59:07 +000014780# Method to check whether dependent libraries are shared objects.
14781deplibs_check_method=$lt_deplibs_check_method
14782
14783# Command to use when deplibs_check_method == file_magic.
14784file_magic_cmd=$lt_file_magic_cmd
14785
14786# Flag that allows shared libraries with undefined symbols to be built.
14787allow_undefined_flag=$lt_allow_undefined_flag
14788
14789# Flag that forces no undefined symbols.
14790no_undefined_flag=$lt_no_undefined_flag
14791
14792# Commands used to finish a libtool library installation in a directory.
14793finish_cmds=$lt_finish_cmds
14794
14795# Same as above, but a single script fragment to be evaled but not shown.
14796finish_eval=$lt_finish_eval
14797
14798# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014799global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014800
14801# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014802global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014803
14804# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014805global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014806
14807# This is the shared library runtime path variable.
14808runpath_var=$runpath_var
14809
14810# This is the shared library path variable.
14811shlibpath_var=$shlibpath_var
14812
14813# Is shlibpath searched before the hard-coded library search path?
14814shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14815
14816# How to hardcode a shared library path into an executable.
14817hardcode_action=$hardcode_action
14818
14819# Whether we should hardcode library paths into libraries.
14820hardcode_into_libs=$hardcode_into_libs
14821
14822# Flag to hardcode \$libdir into a binary during linking.
14823# This must work even if \$libdir does not exist.
14824hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14825
John Criswell47fdd832003-07-14 16:52:07 +000014826# If ld is used when linking, flag to hardcode \$libdir into
14827# a binary during linking. This must work even if \$libdir does
14828# not exist.
14829hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14830
John Criswell7a73b802003-06-30 21:59:07 +000014831# Whether we need a single -rpath flag with a separated argument.
14832hardcode_libdir_separator=$lt_hardcode_libdir_separator
14833
John Criswell47fdd832003-07-14 16:52:07 +000014834# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014835# resulting binary.
14836hardcode_direct=$hardcode_direct
14837
14838# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14839# resulting binary.
14840hardcode_minus_L=$hardcode_minus_L
14841
14842# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14843# the resulting binary.
14844hardcode_shlibpath_var=$hardcode_shlibpath_var
14845
John Criswell47fdd832003-07-14 16:52:07 +000014846# Set to yes if building a shared library automatically hardcodes DIR into the library
14847# and all subsequent libraries and executables linked against it.
14848hardcode_automatic=$hardcode_automatic
14849
John Criswell7a73b802003-06-30 21:59:07 +000014850# Variables whose values should be saved in libtool wrapper scripts and
14851# restored at relink time.
14852variables_saved_for_relink="$variables_saved_for_relink"
14853
14854# Whether libtool must link a program against all its dependency libraries.
14855link_all_deplibs=$link_all_deplibs
14856
14857# Compile-time system search path for libraries
14858sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14859
14860# Run-time system search path for libraries
14861sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14862
14863# Fix the shell variable \$srcfile for the compiler.
14864fix_srcfile_path="$fix_srcfile_path"
14865
14866# Set to yes if exported symbols are required.
14867always_export_symbols=$always_export_symbols
14868
14869# The commands to list exported symbols.
14870export_symbols_cmds=$lt_export_symbols_cmds
14871
14872# The commands to extract the exported symbol list from a shared archive.
14873extract_expsyms_cmds=$lt_extract_expsyms_cmds
14874
14875# Symbols that should not be listed in the preloaded symbols.
14876exclude_expsyms=$lt_exclude_expsyms
14877
14878# Symbols that must always be exported.
14879include_expsyms=$lt_include_expsyms
14880
14881# ### END LIBTOOL CONFIG
14882
14883__EOF__
14884
John Criswell47fdd832003-07-14 16:52:07 +000014885
John Criswell7a73b802003-06-30 21:59:07 +000014886 case $host_os in
14887 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014888 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014889
14890# AIX sometimes has problems with the GCC collect2 program. For some
14891# reason, if we set the COLLECT_NAMES environment variable, the problems
14892# vanish in a puff of smoke.
14893if test "X${COLLECT_NAMES+set}" != Xset; then
14894 COLLECT_NAMES=
14895 export COLLECT_NAMES
14896fi
14897EOF
14898 ;;
14899 esac
14900
John Criswell7a73b802003-06-30 21:59:07 +000014901 # We use sed instead of cat because bash on DJGPP gets confused if
14902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14903 # text mode, it properly converts lines to CR/LF. This bash problem
14904 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014905 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014906
John Criswell47fdd832003-07-14 16:52:07 +000014907 mv -f "$cfgfile" "$ofile" || \
14908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014909 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014910
14911else
14912 # If there is no Makefile yet, we rely on a make rule to execute
14913 # `config.status --recheck' to rerun these tests and create the
14914 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14916 if test -f "$ltmain_in"; then
14917 test -f Makefile && make "$ltmain"
14918 fi
John Criswell7a73b802003-06-30 21:59:07 +000014919fi
John Criswell7a73b802003-06-30 21:59:07 +000014920
14921
John Criswell47fdd832003-07-14 16:52:07 +000014922ac_ext=c
14923ac_cpp='$CPP $CPPFLAGS'
14924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926ac_compiler_gnu=$ac_cv_c_compiler_gnu
14927
14928CC="$lt_save_CC"
14929
14930
14931# Check whether --with-tags or --without-tags was given.
14932if test "${with_tags+set}" = set; then
14933 withval="$with_tags"
14934 tagnames="$withval"
14935fi;
14936
14937if test -f "$ltmain" && test -n "$tagnames"; then
14938 if test ! -f "${ofile}"; then
14939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14940echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14941 fi
14942
14943 if test -z "$LTCC"; then
14944 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14945 if test -z "$LTCC"; then
14946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14947echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14948 else
14949 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14950echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14951 fi
14952 fi
14953
14954 # Extract list of available tagged configurations in $ofile.
14955 # Note that this assumes the entire list is on one line.
14956 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14957
14958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14959 for tagname in $tagnames; do
14960 IFS="$lt_save_ifs"
14961 # Check whether tagname contains only valid characters
14962 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14963 "") ;;
14964 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14965echo "$as_me: error: invalid tag name: $tagname" >&2;}
14966 { (exit 1); exit 1; }; }
14967 ;;
14968 esac
14969
14970 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14971 then
14972 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14973echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14974 { (exit 1); exit 1; }; }
14975 fi
14976
14977 # Update the list of available tags.
14978 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014979 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014980
14981 case $tagname in
14982 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14985 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014986 ac_ext=cc
14987ac_cpp='$CXXCPP $CPPFLAGS'
14988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14991
14992
14993
14994
14995archive_cmds_need_lc_CXX=no
14996allow_undefined_flag_CXX=
14997always_export_symbols_CXX=no
14998archive_expsym_cmds_CXX=
14999export_dynamic_flag_spec_CXX=
15000hardcode_direct_CXX=no
15001hardcode_libdir_flag_spec_CXX=
15002hardcode_libdir_flag_spec_ld_CXX=
15003hardcode_libdir_separator_CXX=
15004hardcode_minus_L_CXX=no
15005hardcode_automatic_CXX=no
15006module_cmds_CXX=
15007module_expsym_cmds_CXX=
15008link_all_deplibs_CXX=unknown
15009old_archive_cmds_CXX=$old_archive_cmds
15010no_undefined_flag_CXX=
15011whole_archive_flag_spec_CXX=
15012enable_shared_with_static_runtimes_CXX=no
15013
15014# Dependencies to place before and after the object being linked:
15015predep_objects_CXX=
15016postdep_objects_CXX=
15017predeps_CXX=
15018postdeps_CXX=
15019compiler_lib_search_path_CXX=
15020
15021# Source file extension for C++ test sources.
15022ac_ext=cc
15023
15024# Object file extension for compiled C++ test sources.
15025objext=o
15026objext_CXX=$objext
15027
15028# Code to be used in simple compile tests
15029lt_simple_compile_test_code="int some_variable = 0;\n"
15030
15031# Code to be used in simple link tests
15032lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15033
15034# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15035
15036# If no C compiler was specified, use CC.
15037LTCC=${LTCC-"$CC"}
15038
15039# Allow CC to be a program name with arguments.
15040compiler=$CC
15041
15042
15043# Allow CC to be a program name with arguments.
15044lt_save_CC=$CC
15045lt_save_LD=$LD
15046lt_save_GCC=$GCC
15047GCC=$GXX
15048lt_save_with_gnu_ld=$with_gnu_ld
15049lt_save_path_LD=$lt_cv_path_LD
15050if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15051 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15052else
15053 unset lt_cv_prog_gnu_ld
15054fi
15055if test -n "${lt_cv_path_LDCXX+set}"; then
15056 lt_cv_path_LD=$lt_cv_path_LDCXX
15057else
15058 unset lt_cv_path_LD
15059fi
15060test -z "${LDCXX+set}" || LD=$LDCXX
15061CC=${CXX-"c++"}
15062compiler=$CC
15063compiler_CXX=$CC
15064cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15065
15066# We don't want -fno-exception wen compiling C++ code, so set the
15067# no_builtin_flag separately
15068if test "$GXX" = yes; then
15069 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15070else
15071 lt_prog_compiler_no_builtin_flag_CXX=
15072fi
15073
15074if test "$GXX" = yes; then
15075 # Set up default GNU C++ configuration
15076
15077
15078# Check whether --with-gnu-ld or --without-gnu-ld was given.
15079if test "${with_gnu_ld+set}" = set; then
15080 withval="$with_gnu_ld"
15081 test "$withval" = no || with_gnu_ld=yes
15082else
15083 with_gnu_ld=no
15084fi;
15085ac_prog=ld
15086if test "$GCC" = yes; then
15087 # Check if gcc -print-prog-name=ld gives a path.
15088 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15089echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15090 case $host in
15091 *-*-mingw*)
15092 # gcc leaves a trailing carriage return which upsets mingw
15093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15094 *)
15095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15096 esac
15097 case $ac_prog in
15098 # Accept absolute paths.
15099 [\\/]* | ?:[\\/]*)
15100 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015101 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015102 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15104 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15105 done
15106 test -z "$LD" && LD="$ac_prog"
15107 ;;
15108 "")
15109 # If it fails, then pretend we aren't using GCC.
15110 ac_prog=ld
15111 ;;
15112 *)
15113 # If it is relative, then search for the first ld in PATH.
15114 with_gnu_ld=unknown
15115 ;;
15116 esac
15117elif test "$with_gnu_ld" = yes; then
15118 echo "$as_me:$LINENO: checking for GNU ld" >&5
15119echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15120else
15121 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15122echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15123fi
15124if test "${lt_cv_path_LD+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126else
15127 if test -z "$LD"; then
15128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15129 for ac_dir in $PATH; do
15130 IFS="$lt_save_ifs"
15131 test -z "$ac_dir" && ac_dir=.
15132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15133 lt_cv_path_LD="$ac_dir/$ac_prog"
15134 # Check to see if the program is GNU ld. I'd rather use --version,
15135 # but apparently some GNU ld's only accept -v.
15136 # Break only if it was the GNU/non-GNU ld that we prefer.
15137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15138 *GNU* | *'with BFD'*)
15139 test "$with_gnu_ld" != no && break
15140 ;;
15141 *)
15142 test "$with_gnu_ld" != yes && break
15143 ;;
15144 esac
15145 fi
15146 done
15147 IFS="$lt_save_ifs"
15148else
15149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15150fi
15151fi
15152
15153LD="$lt_cv_path_LD"
15154if test -n "$LD"; then
15155 echo "$as_me:$LINENO: result: $LD" >&5
15156echo "${ECHO_T}$LD" >&6
15157else
15158 echo "$as_me:$LINENO: result: no" >&5
15159echo "${ECHO_T}no" >&6
15160fi
15161test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15162echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15163 { (exit 1); exit 1; }; }
15164echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15165echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15166if test "${lt_cv_prog_gnu_ld+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168else
15169 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015170case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015171*GNU* | *'with BFD'*)
15172 lt_cv_prog_gnu_ld=yes
15173 ;;
15174*)
15175 lt_cv_prog_gnu_ld=no
15176 ;;
15177esac
15178fi
15179echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15180echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15181with_gnu_ld=$lt_cv_prog_gnu_ld
15182
15183
15184
15185 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15186 # archiving commands below assume that GNU ld is being used.
15187 if test "$with_gnu_ld" = yes; then
15188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 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'
15190
15191 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15193
15194 # If archive_cmds runs LD, not CC, wlarc should be empty
15195 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15196 # investigate it a little bit more. (MM)
15197 wlarc='${wl}'
15198
15199 # ancient GNU ld didn't support --whole-archive et. al.
15200 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15201 grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203 else
15204 whole_archive_flag_spec_CXX=
15205 fi
15206 else
15207 with_gnu_ld=no
15208 wlarc=
15209
15210 # A generic and very simple default shared library creation
15211 # command for GNU C++ for the case where it uses the native
15212 # linker, instead of GNU ld. If possible, this setting should
15213 # overridden to take advantage of the native linker features on
15214 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015216 fi
15217
15218 # Commands to make compiler produce verbose output that lists
15219 # what "hidden" libraries, object files and flags are used when
15220 # linking a shared library.
15221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15222
15223else
15224 GXX=no
15225 with_gnu_ld=no
15226 wlarc=
15227fi
15228
15229# PORTME: fill in a description of your system's C++ link characteristics
15230echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15231echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15232ld_shlibs_CXX=yes
15233case $host_os in
15234 aix3*)
15235 # FIXME: insert proper C++ library support
15236 ld_shlibs_CXX=no
15237 ;;
15238 aix4* | aix5*)
15239 if test "$host_cpu" = ia64; then
15240 # On IA64, the linker does run time linking by default, so we don't
15241 # have to do anything special.
15242 aix_use_runtimelinking=no
15243 exp_sym_flag='-Bexport'
15244 no_entry_flag=""
15245 else
15246 aix_use_runtimelinking=no
15247
15248 # Test if we are trying to use run time linking or normal
15249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250 # need to do runtime linking.
15251 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15252 for ld_flag in $LDFLAGS; do
15253 case $ld_flag in
15254 *-brtl*)
15255 aix_use_runtimelinking=yes
15256 break
15257 ;;
15258 esac
15259 done
15260 esac
15261
15262 exp_sym_flag='-bexport'
15263 no_entry_flag='-bnoentry'
15264 fi
15265
15266 # When large executables or shared objects are built, AIX ld can
15267 # have problems creating the table of contents. If linking a library
15268 # or program results in "error TOC overflow" add -mminimal-toc to
15269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15271
15272 archive_cmds_CXX=''
15273 hardcode_direct_CXX=yes
15274 hardcode_libdir_separator_CXX=':'
15275 link_all_deplibs_CXX=yes
15276
15277 if test "$GXX" = yes; then
15278 case $host_os in aix4.012|aix4.012.*)
15279 # We only want to do this on AIX 4.2 and lower, the check
15280 # below for broken collect2 doesn't work under 4.3+
15281 collect2name=`${CC} -print-prog-name=collect2`
15282 if test -f "$collect2name" && \
15283 strings "$collect2name" | grep resolve_lib_name >/dev/null
15284 then
15285 # We have reworked collect2
15286 hardcode_direct_CXX=yes
15287 else
15288 # We have old collect2
15289 hardcode_direct_CXX=unsupported
15290 # It fails to find uninstalled libraries when the uninstalled
15291 # path is not listed in the libpath. Setting hardcode_minus_L
15292 # to unsupported forces relinking
15293 hardcode_minus_L_CXX=yes
15294 hardcode_libdir_flag_spec_CXX='-L$libdir'
15295 hardcode_libdir_separator_CXX=
15296 fi
15297 esac
15298 shared_flag='-shared'
15299 else
15300 # not using gcc
15301 if test "$host_cpu" = ia64; then
15302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303 # chokes on -Wl,-G. The following line is correct:
15304 shared_flag='-G'
15305 else
15306 if test "$aix_use_runtimelinking" = yes; then
15307 shared_flag='${wl}-G'
15308 else
15309 shared_flag='${wl}-bM:SRE'
15310 fi
15311 fi
15312 fi
15313
15314 # It seems that -bexpall does not export symbols beginning with
15315 # underscore (_), so it is better to generate a list of symbols to export.
15316 always_export_symbols_CXX=yes
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # Warning - without using the other runtime loading flags (-brtl),
15319 # -berok will link without error, but may produce a broken library.
15320 allow_undefined_flag_CXX='-berok'
15321 # Determine the default libpath from the value encoded in an empty executable.
15322 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015323/* confdefs.h. */
15324_ACEOF
15325cat confdefs.h >>conftest.$ac_ext
15326cat >>conftest.$ac_ext <<_ACEOF
15327/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015328
John Criswell47fdd832003-07-14 16:52:07 +000015329int
15330main ()
15331{
15332
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337rm -f conftest.$ac_objext conftest$ac_exeext
15338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015339 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015346 { ac_try='test -z "$ac_cxx_werror_flag"
15347 || test ! -s conftest.err'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359
15360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15361}'`
15362# Check for a 64-bit object if we didn't find anything.
15363if 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; }
15364}'`; fi
15365else
15366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015367sed 's/^/| /' conftest.$ac_ext >&5
15368
John Criswell47fdd832003-07-14 16:52:07 +000015369fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015370rm -f conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15373
15374 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15375
15376 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"
15377 else
15378 if test "$host_cpu" = ia64; then
15379 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15380 allow_undefined_flag_CXX="-z nodefs"
15381 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"
15382 else
15383 # Determine the default libpath from the value encoded in an empty executable.
15384 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015390
John Criswell47fdd832003-07-14 16:52:07 +000015391int
15392main ()
15393{
15394
15395 ;
15396 return 0;
15397}
15398_ACEOF
15399rm -f conftest.$ac_objext conftest$ac_exeext
15400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015401 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015403 grep -v '^ *+' conftest.er1 >conftest.err
15404 rm -f conftest.er1
15405 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015408 { ac_try='test -z "$ac_cxx_werror_flag"
15409 || test ! -s conftest.err'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421
15422aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15423}'`
15424# Check for a 64-bit object if we didn't find anything.
15425if 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; }
15426}'`; fi
15427else
15428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015429sed 's/^/| /' conftest.$ac_ext >&5
15430
John Criswell47fdd832003-07-14 16:52:07 +000015431fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015432rm -f conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15435
15436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15437 # Warning - without using the other run time loading flags,
15438 # -berok will link without error, but may produce a broken library.
15439 no_undefined_flag_CXX=' ${wl}-bernotok'
15440 allow_undefined_flag_CXX=' ${wl}-berok'
15441 # -bexpall does not export symbols beginning with underscore (_)
15442 always_export_symbols_CXX=yes
15443 # Exported symbols can be pulled into shared objects from archives
15444 whole_archive_flag_spec_CXX=' '
15445 archive_cmds_need_lc_CXX=yes
15446 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015447 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 +000015448 fi
15449 fi
15450 ;;
15451 chorus*)
15452 case $cc_basename in
15453 *)
15454 # FIXME: insert proper C++ library support
15455 ld_shlibs_CXX=no
15456 ;;
15457 esac
15458 ;;
15459
Reid Spencer2706f8c2004-09-19 23:53:36 +000015460
John Criswell47fdd832003-07-14 16:52:07 +000015461 cygwin* | mingw* | pw32*)
15462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15463 # as there is no search path for DLLs.
15464 hardcode_libdir_flag_spec_CXX='-L$libdir'
15465 allow_undefined_flag_CXX=unsupported
15466 always_export_symbols_CXX=no
15467 enable_shared_with_static_runtimes_CXX=yes
15468
15469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15470 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'
15471 # If the export-symbols file already is a .def file (1st line
15472 # is EXPORTS), use it as is; otherwise, prepend...
15473 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15474 cp $export_symbols $output_objdir/$soname.def;
15475 else
15476 echo EXPORTS > $output_objdir/$soname.def;
15477 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015478 fi~
15479 $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 +000015480 else
15481 ld_shlibs_CXX=no
15482 fi
15483 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015484 darwin* | rhapsody*)
15485 case "$host_os" in
15486 rhapsody* | darwin1.[012])
15487 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15488 ;;
15489 *) # Darwin 1.3 on
15490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15491 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15492 else
15493 case ${MACOSX_DEPLOYMENT_TARGET} in
15494 10.[012])
15495 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15496 ;;
15497 10.*)
15498 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15499 ;;
15500 esac
15501 fi
15502 ;;
15503 esac
15504 archive_cmds_need_lc_CXX=no
15505 hardcode_direct_CXX=no
15506 hardcode_automatic_CXX=yes
15507 hardcode_shlibpath_var_CXX=unsupported
15508 whole_archive_flag_spec_CXX=''
15509 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015510
Reid Spencer2706f8c2004-09-19 23:53:36 +000015511 if test "$GXX" = yes ; then
15512 lt_int_apple_cc_single_mod=no
15513 output_verbose_link_cmd='echo'
15514 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15515 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015516 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015517 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015518 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 +000015519 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015520 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 +000015521 fi
15522 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15523 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15524 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015525 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 +000015526 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015527 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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 +000015528 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015529 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 +000015530 else
15531 case "$cc_basename" in
15532 xlc*)
15533 output_verbose_link_cmd='echo'
15534 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'
15535 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15536 # 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 +000015537 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}'
15538 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 +000015539 ;;
15540 *)
15541 ld_shlibs_CXX=no
15542 ;;
15543 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015544 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015545 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015546
15547 dgux*)
15548 case $cc_basename in
15549 ec++)
15550 # FIXME: insert proper C++ library support
15551 ld_shlibs_CXX=no
15552 ;;
15553 ghcx)
15554 # Green Hills C++ Compiler
15555 # FIXME: insert proper C++ library support
15556 ld_shlibs_CXX=no
15557 ;;
15558 *)
15559 # FIXME: insert proper C++ library support
15560 ld_shlibs_CXX=no
15561 ;;
15562 esac
15563 ;;
15564 freebsd12*)
15565 # C++ shared libraries reported to be fairly broken before switch to ELF
15566 ld_shlibs_CXX=no
15567 ;;
15568 freebsd-elf*)
15569 archive_cmds_need_lc_CXX=no
15570 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015571 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015572 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15573 # conventions
15574 ld_shlibs_CXX=yes
15575 ;;
15576 gnu*)
15577 ;;
15578 hpux9*)
15579 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15580 hardcode_libdir_separator_CXX=:
15581 export_dynamic_flag_spec_CXX='${wl}-E'
15582 hardcode_direct_CXX=yes
15583 hardcode_minus_L_CXX=yes # Not in the search PATH,
15584 # but as the default
15585 # location of the library.
15586
15587 case $cc_basename in
15588 CC)
15589 # FIXME: insert proper C++ library support
15590 ld_shlibs_CXX=no
15591 ;;
15592 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015593 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 +000015594 # Commands to make compiler produce verbose output that lists
15595 # what "hidden" libraries, object files and flags are used when
15596 # linking a shared library.
15597 #
15598 # There doesn't appear to be a way to prevent this compiler from
15599 # explicitly linking system object files so we need to strip them
15600 # from the output so that they don't get included in the library
15601 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015602 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 +000015603 ;;
15604 *)
15605 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015606 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 +000015607 else
15608 # FIXME: insert proper C++ library support
15609 ld_shlibs_CXX=no
15610 fi
15611 ;;
15612 esac
15613 ;;
15614 hpux10*|hpux11*)
15615 if test $with_gnu_ld = no; then
15616 case "$host_cpu" in
15617 hppa*64*)
15618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15620 hardcode_libdir_separator_CXX=:
15621 ;;
15622 ia64*)
15623 hardcode_libdir_flag_spec_CXX='-L$libdir'
15624 ;;
15625 *)
15626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_separator_CXX=:
15628 export_dynamic_flag_spec_CXX='${wl}-E'
15629 ;;
15630 esac
15631 fi
15632 case "$host_cpu" in
15633 hppa*64*)
15634 hardcode_direct_CXX=no
15635 hardcode_shlibpath_var_CXX=no
15636 ;;
15637 ia64*)
15638 hardcode_direct_CXX=no
15639 hardcode_shlibpath_var_CXX=no
15640 hardcode_minus_L_CXX=yes # Not in the search PATH,
15641 # but as the default
15642 # location of the library.
15643 ;;
15644 *)
15645 hardcode_direct_CXX=yes
15646 hardcode_minus_L_CXX=yes # Not in the search PATH,
15647 # but as the default
15648 # location of the library.
15649 ;;
15650 esac
15651
15652 case $cc_basename in
15653 CC)
15654 # FIXME: insert proper C++ library support
15655 ld_shlibs_CXX=no
15656 ;;
15657 aCC)
15658 case "$host_cpu" in
15659 hppa*64*|ia64*)
15660 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15661 ;;
15662 *)
15663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15664 ;;
15665 esac
15666 # Commands to make compiler produce verbose output that lists
15667 # what "hidden" libraries, object files and flags are used when
15668 # linking a shared library.
15669 #
15670 # There doesn't appear to be a way to prevent this compiler from
15671 # explicitly linking system object files so we need to strip them
15672 # from the output so that they don't get included in the library
15673 # dependencies.
15674 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'
15675 ;;
15676 *)
15677 if test "$GXX" = yes; then
15678 if test $with_gnu_ld = no; then
15679 case "$host_cpu" in
15680 ia64*|hppa*64*)
15681 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15682 ;;
15683 *)
15684 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'
15685 ;;
15686 esac
15687 fi
15688 else
15689 # FIXME: insert proper C++ library support
15690 ld_shlibs_CXX=no
15691 fi
15692 ;;
15693 esac
15694 ;;
15695 irix5* | irix6*)
15696 case $cc_basename in
15697 CC)
15698 # SGI C++
15699 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'
15700
15701 # Archives containing C++ object files must be created using
15702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15703 # necessary to make sure instantiated templates are included
15704 # in the archive.
15705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15706 ;;
15707 *)
15708 if test "$GXX" = yes; then
15709 if test "$with_gnu_ld" = no; then
15710 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'
15711 else
15712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
15713 fi
15714 fi
15715 link_all_deplibs_CXX=yes
15716 ;;
15717 esac
15718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15719 hardcode_libdir_separator_CXX=:
15720 ;;
15721 linux*)
15722 case $cc_basename in
15723 KCC)
15724 # Kuck and Associates, Inc. (KAI) C++ Compiler
15725
15726 # KCC will only create a shared library if the output file
15727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15728 # to its proper name (with version) after linking.
15729 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'
15730 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'
15731 # Commands to make compiler produce verbose output that lists
15732 # what "hidden" libraries, object files and flags are used when
15733 # linking a shared library.
15734 #
15735 # There doesn't appear to be a way to prevent this compiler from
15736 # explicitly linking system object files so we need to strip them
15737 # from the output so that they don't get included in the library
15738 # dependencies.
15739 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'
15740
15741 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15743
15744 # Archives containing C++ object files must be created using
15745 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15746 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15747 ;;
15748 icpc)
15749 # Intel C++
15750 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015751 # version 8.0 and above of icpc choke on multiply defined symbols
15752 # if we add $predep_objects and $postdep_objects, however 7.1 and
15753 # earlier do not add the objects themselves.
15754 case `$CC -V 2>&1` in
15755 *"Version 7."*)
15756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 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'
15758 ;;
15759 *) # Version 8.0 or newer
15760 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15762 ;;
15763 esac
John Criswell47fdd832003-07-14 16:52:07 +000015764 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015765 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15767 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15768 ;;
15769 cxx)
15770 # Compaq C++
15771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 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'
15773
15774 runpath_var=LD_RUN_PATH
15775 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15776 hardcode_libdir_separator_CXX=:
15777
15778 # Commands to make compiler produce verbose output that lists
15779 # what "hidden" libraries, object files and flags are used when
15780 # linking a shared library.
15781 #
15782 # There doesn't appear to be a way to prevent this compiler from
15783 # explicitly linking system object files so we need to strip them
15784 # from the output so that they don't get included in the library
15785 # dependencies.
15786 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'
15787 ;;
15788 esac
15789 ;;
15790 lynxos*)
15791 # FIXME: insert proper C++ library support
15792 ld_shlibs_CXX=no
15793 ;;
15794 m88k*)
15795 # FIXME: insert proper C++ library support
15796 ld_shlibs_CXX=no
15797 ;;
15798 mvs*)
15799 case $cc_basename in
15800 cxx)
15801 # FIXME: insert proper C++ library support
15802 ld_shlibs_CXX=no
15803 ;;
15804 *)
15805 # FIXME: insert proper C++ library support
15806 ld_shlibs_CXX=no
15807 ;;
15808 esac
15809 ;;
15810 netbsd*)
15811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15812 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15813 wlarc=
15814 hardcode_libdir_flag_spec_CXX='-R$libdir'
15815 hardcode_direct_CXX=yes
15816 hardcode_shlibpath_var_CXX=no
15817 fi
15818 # Workaround some broken pre-1.5 toolchains
15819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15820 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015821 openbsd2*)
15822 # C++ shared libraries are fairly broken
15823 ld_shlibs_CXX=no
15824 ;;
15825 openbsd*)
15826 hardcode_direct_CXX=yes
15827 hardcode_shlibpath_var_CXX=no
15828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15832 export_dynamic_flag_spec_CXX='${wl}-E'
15833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15834 fi
15835 output_verbose_link_cmd='echo'
15836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015837 osf3*)
15838 case $cc_basename in
15839 KCC)
15840 # Kuck and Associates, Inc. (KAI) C++ Compiler
15841
15842 # KCC will only create a shared library if the output file
15843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15844 # to its proper name (with version) after linking.
15845 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'
15846
15847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15848 hardcode_libdir_separator_CXX=:
15849
15850 # Archives containing C++ object files must be created using
15851 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15852 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15853
15854 ;;
15855 RCC)
15856 # Rational C++ 2.4.1
15857 # FIXME: insert proper C++ library support
15858 ld_shlibs_CXX=no
15859 ;;
15860 cxx)
15861 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15862 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'
15863
15864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15865 hardcode_libdir_separator_CXX=:
15866
15867 # Commands to make compiler produce verbose output that lists
15868 # what "hidden" libraries, object files and flags are used when
15869 # linking a shared library.
15870 #
15871 # There doesn't appear to be a way to prevent this compiler from
15872 # explicitly linking system object files so we need to strip them
15873 # from the output so that they don't get included in the library
15874 # dependencies.
15875 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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'
15876 ;;
15877 *)
15878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15879 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15880 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'
15881
15882 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15883 hardcode_libdir_separator_CXX=:
15884
15885 # Commands to make compiler produce verbose output that lists
15886 # what "hidden" libraries, object files and flags are used when
15887 # linking a shared library.
15888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15889
15890 else
15891 # FIXME: insert proper C++ library support
15892 ld_shlibs_CXX=no
15893 fi
15894 ;;
15895 esac
15896 ;;
15897 osf4* | osf5*)
15898 case $cc_basename in
15899 KCC)
15900 # Kuck and Associates, Inc. (KAI) C++ Compiler
15901
15902 # KCC will only create a shared library if the output file
15903 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15904 # to its proper name (with version) after linking.
15905 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'
15906
15907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15908 hardcode_libdir_separator_CXX=:
15909
15910 # Archives containing C++ object files must be created using
15911 # the KAI C++ compiler.
15912 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15913 ;;
15914 RCC)
15915 # Rational C++ 2.4.1
15916 # FIXME: insert proper C++ library support
15917 ld_shlibs_CXX=no
15918 ;;
15919 cxx)
15920 allow_undefined_flag_CXX=' -expect_unresolved \*'
15921 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 +000015922 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15923 echo "-hidden">> $lib.exp~
15924 $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~
15925 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015926
15927 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15928 hardcode_libdir_separator_CXX=:
15929
15930 # Commands to make compiler produce verbose output that lists
15931 # what "hidden" libraries, object files and flags are used when
15932 # linking a shared library.
15933 #
15934 # There doesn't appear to be a way to prevent this compiler from
15935 # explicitly linking system object files so we need to strip them
15936 # from the output so that they don't get included in the library
15937 # dependencies.
15938 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'
15939 ;;
15940 *)
15941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15942 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15943 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'
15944
15945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15946 hardcode_libdir_separator_CXX=:
15947
15948 # Commands to make compiler produce verbose output that lists
15949 # what "hidden" libraries, object files and flags are used when
15950 # linking a shared library.
15951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15952
15953 else
15954 # FIXME: insert proper C++ library support
15955 ld_shlibs_CXX=no
15956 fi
15957 ;;
15958 esac
15959 ;;
15960 psos*)
15961 # FIXME: insert proper C++ library support
15962 ld_shlibs_CXX=no
15963 ;;
15964 sco*)
15965 archive_cmds_need_lc_CXX=no
15966 case $cc_basename in
15967 CC)
15968 # FIXME: insert proper C++ library support
15969 ld_shlibs_CXX=no
15970 ;;
15971 *)
15972 # FIXME: insert proper C++ library support
15973 ld_shlibs_CXX=no
15974 ;;
15975 esac
15976 ;;
15977 sunos4*)
15978 case $cc_basename in
15979 CC)
15980 # Sun C++ 4.x
15981 # FIXME: insert proper C++ library support
15982 ld_shlibs_CXX=no
15983 ;;
15984 lcc)
15985 # Lucid
15986 # FIXME: insert proper C++ library support
15987 ld_shlibs_CXX=no
15988 ;;
15989 *)
15990 # FIXME: insert proper C++ library support
15991 ld_shlibs_CXX=no
15992 ;;
15993 esac
15994 ;;
15995 solaris*)
15996 case $cc_basename in
15997 CC)
15998 # Sun C++ 4.2, 5.x and Centerline C++
15999 no_undefined_flag_CXX=' -zdefs'
16000 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 +000016001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16002 $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 +000016003
16004 hardcode_libdir_flag_spec_CXX='-R$libdir'
16005 hardcode_shlibpath_var_CXX=no
16006 case $host_os in
16007 solaris2.0-5 | solaris2.0-5.*) ;;
16008 *)
16009 # The C++ compiler is used as linker so we must use $wl
16010 # flag to pass the commands to the underlying system
16011 # linker.
16012 # Supported since Solaris 2.6 (maybe 2.5.1?)
16013 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16014 ;;
16015 esac
16016 link_all_deplibs_CXX=yes
16017
16018 # Commands to make compiler produce verbose output that lists
16019 # what "hidden" libraries, object files and flags are used when
16020 # linking a shared library.
16021 #
16022 # There doesn't appear to be a way to prevent this compiler from
16023 # explicitly linking system object files so we need to strip them
16024 # from the output so that they don't get included in the library
16025 # dependencies.
16026 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'
16027
16028 # Archives containing C++ object files must be created using
16029 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16030 # necessary to make sure instantiated templates are included
16031 # in the archive.
16032 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16033 ;;
16034 gcx)
16035 # Green Hills C++ Compiler
16036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16037
16038 # The C++ compiler must be used to create the archive.
16039 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16040 ;;
16041 *)
16042 # GNU C++ compiler with Solaris linker
16043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16044 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16045 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016046 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 +000016047 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16049
John Criswell47fdd832003-07-14 16:52:07 +000016050 # Commands to make compiler produce verbose output that lists
16051 # what "hidden" libraries, object files and flags are used when
16052 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016053 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016054 else
16055 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16056 # platform.
16057 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 +000016058 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059 $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 +000016060
16061 # Commands to make compiler produce verbose output that lists
16062 # what "hidden" libraries, object files and flags are used when
16063 # linking a shared library.
16064 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16065 fi
16066
16067 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16068 fi
16069 ;;
16070 esac
16071 ;;
16072 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16073 archive_cmds_need_lc_CXX=no
16074 ;;
16075 tandem*)
16076 case $cc_basename in
16077 NCC)
16078 # NonStop-UX NCC 3.20
16079 # FIXME: insert proper C++ library support
16080 ld_shlibs_CXX=no
16081 ;;
16082 *)
16083 # FIXME: insert proper C++ library support
16084 ld_shlibs_CXX=no
16085 ;;
16086 esac
16087 ;;
16088 vxworks*)
16089 # FIXME: insert proper C++ library support
16090 ld_shlibs_CXX=no
16091 ;;
16092 *)
16093 # FIXME: insert proper C++ library support
16094 ld_shlibs_CXX=no
16095 ;;
16096esac
16097echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16098echo "${ECHO_T}$ld_shlibs_CXX" >&6
16099test "$ld_shlibs_CXX" = no && can_build_shared=no
16100
16101GCC_CXX="$GXX"
16102LD_CXX="$LD"
16103
John Criswell47fdd832003-07-14 16:52:07 +000016104
16105cat > conftest.$ac_ext <<EOF
16106class Foo
16107{
16108public:
16109 Foo (void) { a = 0; }
16110private:
16111 int a;
16112};
16113EOF
16114
16115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; then
16120 # Parse the compiler output and extract the necessary
16121 # objects, libraries and library flags.
16122
16123 # Sentinel used to keep track of whether or not we are before
16124 # the conftest object file.
16125 pre_test_object_deps_done=no
16126
16127 # The `*' in the case matches for architectures that use `case' in
16128 # $output_verbose_cmd can trigger glob expansion during the loop
16129 # eval without this substitution.
16130 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16131
16132 for p in `eval $output_verbose_link_cmd`; do
16133 case $p in
16134
16135 -L* | -R* | -l*)
16136 # Some compilers place space between "-{L,R}" and the path.
16137 # Remove the space.
16138 if test $p = "-L" \
16139 || test $p = "-R"; then
16140 prev=$p
16141 continue
16142 else
16143 prev=
16144 fi
16145
16146 if test "$pre_test_object_deps_done" = no; then
16147 case $p in
16148 -L* | -R*)
16149 # Internal compiler library paths should come after those
16150 # provided the user. The postdeps already come after the
16151 # user supplied libs so there is no need to process them.
16152 if test -z "$compiler_lib_search_path_CXX"; then
16153 compiler_lib_search_path_CXX="${prev}${p}"
16154 else
16155 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16156 fi
16157 ;;
16158 # The "-l" case would never come before the object being
16159 # linked, so don't bother handling this case.
16160 esac
16161 else
16162 if test -z "$postdeps_CXX"; then
16163 postdeps_CXX="${prev}${p}"
16164 else
16165 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16166 fi
16167 fi
16168 ;;
16169
16170 *.$objext)
16171 # This assumes that the test object file only shows up
16172 # once in the compiler output.
16173 if test "$p" = "conftest.$objext"; then
16174 pre_test_object_deps_done=yes
16175 continue
16176 fi
16177
16178 if test "$pre_test_object_deps_done" = no; then
16179 if test -z "$predep_objects_CXX"; then
16180 predep_objects_CXX="$p"
16181 else
16182 predep_objects_CXX="$predep_objects_CXX $p"
16183 fi
16184 else
16185 if test -z "$postdep_objects_CXX"; then
16186 postdep_objects_CXX="$p"
16187 else
16188 postdep_objects_CXX="$postdep_objects_CXX $p"
16189 fi
16190 fi
16191 ;;
16192
16193 *) ;; # Ignore the rest.
16194
16195 esac
16196 done
16197
16198 # Clean up.
16199 rm -f a.out a.exe
16200else
16201 echo "libtool.m4: error: problem compiling CXX test program"
16202fi
16203
16204$rm -f confest.$objext
16205
16206case " $postdeps_CXX " in
16207*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16208esac
16209
16210lt_prog_compiler_wl_CXX=
16211lt_prog_compiler_pic_CXX=
16212lt_prog_compiler_static_CXX=
16213
16214echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16215echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16216
16217 # C++ specific cases for pic, static, wl, etc.
16218 if test "$GXX" = yes; then
16219 lt_prog_compiler_wl_CXX='-Wl,'
16220 lt_prog_compiler_static_CXX='-static'
16221
16222 case $host_os in
16223 aix*)
16224 # All AIX code is PIC.
16225 if test "$host_cpu" = ia64; then
16226 # AIX 5 now supports IA64 processor
16227 lt_prog_compiler_static_CXX='-Bstatic'
16228 fi
16229 ;;
16230 amigaos*)
16231 # FIXME: we need at least 68020 code to build shared libraries, but
16232 # adding the `-m68020' flag to GCC prevents building anything better,
16233 # like `-m68040'.
16234 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16235 ;;
16236 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16237 # PIC is the default for these OSes.
16238 ;;
16239 mingw* | os2* | pw32*)
16240 # This hack is so that the source file can tell whether it is being
16241 # built for inclusion in a dll (and should export symbols for example).
16242 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16243 ;;
16244 darwin* | rhapsody*)
16245 # PIC is the default on this platform
16246 # Common symbols not allowed in MH_DYLIB files
16247 lt_prog_compiler_pic_CXX='-fno-common'
16248 ;;
16249 *djgpp*)
16250 # DJGPP does not support shared libraries at all
16251 lt_prog_compiler_pic_CXX=
16252 ;;
16253 sysv4*MP*)
16254 if test -d /usr/nec; then
16255 lt_prog_compiler_pic_CXX=-Kconform_pic
16256 fi
16257 ;;
16258 hpux*)
16259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16260 # not for PA HP-UX.
16261 case "$host_cpu" in
16262 hppa*64*|ia64*)
16263 ;;
16264 *)
16265 lt_prog_compiler_pic_CXX='-fPIC'
16266 ;;
16267 esac
16268 ;;
16269 *)
16270 lt_prog_compiler_pic_CXX='-fPIC'
16271 ;;
16272 esac
16273 else
16274 case $host_os in
16275 aix4* | aix5*)
16276 # All AIX code is PIC.
16277 if test "$host_cpu" = ia64; then
16278 # AIX 5 now supports IA64 processor
16279 lt_prog_compiler_static_CXX='-Bstatic'
16280 else
16281 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16282 fi
16283 ;;
16284 chorus*)
16285 case $cc_basename in
16286 cxch68)
16287 # Green Hills C++ Compiler
16288 # _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"
16289 ;;
16290 esac
16291 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016292 darwin*)
16293 # PIC is the default on this platform
16294 # Common symbols not allowed in MH_DYLIB files
16295 case "$cc_basename" in
16296 xlc*)
16297 lt_prog_compiler_pic_CXX='-qnocommon'
16298 lt_prog_compiler_wl_CXX='-Wl,'
16299 ;;
16300 esac
16301 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016302 dgux*)
16303 case $cc_basename in
16304 ec++)
16305 lt_prog_compiler_pic_CXX='-KPIC'
16306 ;;
16307 ghcx)
16308 # Green Hills C++ Compiler
16309 lt_prog_compiler_pic_CXX='-pic'
16310 ;;
16311 *)
16312 ;;
16313 esac
16314 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016315 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016316 # FreeBSD uses GNU C++
16317 ;;
16318 hpux9* | hpux10* | hpux11*)
16319 case $cc_basename in
16320 CC)
16321 lt_prog_compiler_wl_CXX='-Wl,'
16322 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16323 if test "$host_cpu" != ia64; then
16324 lt_prog_compiler_pic_CXX='+Z'
16325 fi
16326 ;;
16327 aCC)
16328 lt_prog_compiler_wl_CXX='-Wl,'
16329 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16330 case "$host_cpu" in
16331 hppa*64*|ia64*)
16332 # +Z the default
16333 ;;
16334 *)
16335 lt_prog_compiler_pic_CXX='+Z'
16336 ;;
16337 esac
16338 ;;
16339 *)
16340 ;;
16341 esac
16342 ;;
16343 irix5* | irix6* | nonstopux*)
16344 case $cc_basename in
16345 CC)
16346 lt_prog_compiler_wl_CXX='-Wl,'
16347 lt_prog_compiler_static_CXX='-non_shared'
16348 # CC pic flag -KPIC is the default.
16349 ;;
16350 *)
16351 ;;
16352 esac
16353 ;;
16354 linux*)
16355 case $cc_basename in
16356 KCC)
16357 # KAI C++ Compiler
16358 lt_prog_compiler_wl_CXX='--backend -Wl,'
16359 lt_prog_compiler_pic_CXX='-fPIC'
16360 ;;
16361 icpc)
16362 # Intel C++
16363 lt_prog_compiler_wl_CXX='-Wl,'
16364 lt_prog_compiler_pic_CXX='-KPIC'
16365 lt_prog_compiler_static_CXX='-static'
16366 ;;
16367 cxx)
16368 # Compaq C++
16369 # Make sure the PIC flag is empty. It appears that all Alpha
16370 # Linux and Compaq Tru64 Unix objects are PIC.
16371 lt_prog_compiler_pic_CXX=
16372 lt_prog_compiler_static_CXX='-non_shared'
16373 ;;
16374 *)
16375 ;;
16376 esac
16377 ;;
16378 lynxos*)
16379 ;;
16380 m88k*)
16381 ;;
16382 mvs*)
16383 case $cc_basename in
16384 cxx)
16385 lt_prog_compiler_pic_CXX='-W c,exportall'
16386 ;;
16387 *)
16388 ;;
16389 esac
16390 ;;
16391 netbsd*)
16392 ;;
16393 osf3* | osf4* | osf5*)
16394 case $cc_basename in
16395 KCC)
16396 lt_prog_compiler_wl_CXX='--backend -Wl,'
16397 ;;
16398 RCC)
16399 # Rational C++ 2.4.1
16400 lt_prog_compiler_pic_CXX='-pic'
16401 ;;
16402 cxx)
16403 # Digital/Compaq C++
16404 lt_prog_compiler_wl_CXX='-Wl,'
16405 # Make sure the PIC flag is empty. It appears that all Alpha
16406 # Linux and Compaq Tru64 Unix objects are PIC.
16407 lt_prog_compiler_pic_CXX=
16408 lt_prog_compiler_static_CXX='-non_shared'
16409 ;;
16410 *)
16411 ;;
16412 esac
16413 ;;
16414 psos*)
16415 ;;
16416 sco*)
16417 case $cc_basename in
16418 CC)
16419 lt_prog_compiler_pic_CXX='-fPIC'
16420 ;;
16421 *)
16422 ;;
16423 esac
16424 ;;
16425 solaris*)
16426 case $cc_basename in
16427 CC)
16428 # Sun C++ 4.2, 5.x and Centerline C++
16429 lt_prog_compiler_pic_CXX='-KPIC'
16430 lt_prog_compiler_static_CXX='-Bstatic'
16431 lt_prog_compiler_wl_CXX='-Qoption ld '
16432 ;;
16433 gcx)
16434 # Green Hills C++ Compiler
16435 lt_prog_compiler_pic_CXX='-PIC'
16436 ;;
16437 *)
16438 ;;
16439 esac
16440 ;;
16441 sunos4*)
16442 case $cc_basename in
16443 CC)
16444 # Sun C++ 4.x
16445 lt_prog_compiler_pic_CXX='-pic'
16446 lt_prog_compiler_static_CXX='-Bstatic'
16447 ;;
16448 lcc)
16449 # Lucid
16450 lt_prog_compiler_pic_CXX='-pic'
16451 ;;
16452 *)
16453 ;;
16454 esac
16455 ;;
16456 tandem*)
16457 case $cc_basename in
16458 NCC)
16459 # NonStop-UX NCC 3.20
16460 lt_prog_compiler_pic_CXX='-KPIC'
16461 ;;
16462 *)
16463 ;;
16464 esac
16465 ;;
16466 unixware*)
16467 ;;
16468 vxworks*)
16469 ;;
16470 *)
16471 lt_prog_compiler_can_build_shared_CXX=no
16472 ;;
16473 esac
16474 fi
16475
16476echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16477echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16478
16479#
16480# Check to make sure the PIC flag actually works.
16481#
16482if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016483
16484echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016485echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16486if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488else
16489 lt_prog_compiler_pic_works_CXX=no
16490 ac_outfile=conftest.$ac_objext
16491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16492 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16493 # Insert the option either (1) after the last *FLAGS variable, or
16494 # (2) before a word containing "conftest.", or (3) at the end.
16495 # Note that $ac_compile itself does not contain backslashes and begins
16496 # with a dollar sign (not a hyphen), so the echo should work correctly.
16497 # The option is referenced via a variable to avoid confusing sed.
16498 lt_compile=`echo "$ac_compile" | $SED \
16499 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16501 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000016502 (eval echo "\"\$as_me:16502: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016503 (eval "$lt_compile" 2>conftest.err)
16504 ac_status=$?
16505 cat conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000016506 echo "$as_me:16506: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016507 if (exit $ac_status) && test -s "$ac_outfile"; then
16508 # The compiler can only warn and ignore the option if not recognized
16509 # So say no if there are warnings
16510 if test ! -s conftest.err; then
16511 lt_prog_compiler_pic_works_CXX=yes
16512 fi
16513 fi
16514 $rm conftest*
16515
16516fi
16517echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16518echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16519
16520if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16521 case $lt_prog_compiler_pic_CXX in
16522 "" | " "*) ;;
16523 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16524 esac
16525else
16526 lt_prog_compiler_pic_CXX=
16527 lt_prog_compiler_can_build_shared_CXX=no
16528fi
16529
16530fi
16531case "$host_os" in
16532 # For platforms which do not support PIC, -DPIC is meaningless:
16533 *djgpp*)
16534 lt_prog_compiler_pic_CXX=
16535 ;;
16536 *)
16537 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16538 ;;
16539esac
16540
16541echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16542echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16543if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546 lt_cv_prog_compiler_c_o_CXX=no
16547 $rm -r conftest 2>/dev/null
16548 mkdir conftest
16549 cd conftest
16550 mkdir out
16551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552
John Criswell47fdd832003-07-14 16:52:07 +000016553 lt_compiler_flag="-o out/conftest2.$ac_objext"
16554 # Insert the option either (1) after the last *FLAGS variable, or
16555 # (2) before a word containing "conftest.", or (3) at the end.
16556 # Note that $ac_compile itself does not contain backslashes and begins
16557 # with a dollar sign (not a hyphen), so the echo should work correctly.
16558 lt_compile=`echo "$ac_compile" | $SED \
16559 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000016562 (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016563 (eval "$lt_compile" 2>out/conftest.err)
16564 ac_status=$?
16565 cat out/conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000016566 echo "$as_me:16566: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16568 then
16569 # The compiler can only warn and ignore the option if not recognized
16570 # So say no if there are warnings
16571 if test ! -s out/conftest.err; then
16572 lt_cv_prog_compiler_c_o_CXX=yes
16573 fi
16574 fi
16575 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016576 $rm conftest*
16577 # SGI C++ compiler will create directory out/ii_files/ for
16578 # template instantiation
16579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16580 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016581 cd ..
16582 rmdir conftest
16583 $rm conftest*
16584
16585fi
16586echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16587echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16588
16589
16590hard_links="nottested"
16591if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16592 # do not overwrite the value of need_locks provided by the user
16593 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16594echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16595 hard_links=yes
16596 $rm conftest*
16597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16598 touch conftest.a
16599 ln conftest.a conftest.b 2>&5 || hard_links=no
16600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601 echo "$as_me:$LINENO: result: $hard_links" >&5
16602echo "${ECHO_T}$hard_links" >&6
16603 if test "$hard_links" = no; then
16604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16605echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16606 need_locks=warn
16607 fi
16608else
16609 need_locks=no
16610fi
16611
16612echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16614
16615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16616 case $host_os in
16617 aix4* | aix5*)
16618 # If we're using GNU nm, then we don't want the "-C" option.
16619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16621 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'
16622 else
16623 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'
16624 fi
16625 ;;
16626 pw32*)
16627 export_symbols_cmds_CXX="$ltdll_cmds"
16628 ;;
16629 cygwin* | mingw*)
16630 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16631 ;;
16632 *)
16633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16634 ;;
16635 esac
16636
16637echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16638echo "${ECHO_T}$ld_shlibs_CXX" >&6
16639test "$ld_shlibs_CXX" = no && can_build_shared=no
16640
16641variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16642if test "$GCC" = yes; then
16643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16644fi
16645
16646#
16647# Do we need to explicitly link libc?
16648#
16649case "x$archive_cmds_need_lc_CXX" in
16650x|xyes)
16651 # Assume -lc should be added
16652 archive_cmds_need_lc_CXX=yes
16653
16654 if test "$enable_shared" = yes && test "$GCC" = yes; then
16655 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016656 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016657 # FIXME: we may have to deal with multi-command sequences.
16658 ;;
16659 '$CC '*)
16660 # Test whether the compiler implicitly links with -lc since on some
16661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16662 # to ld, don't add -lc before -lgcc.
16663 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16664echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16665 $rm conftest*
16666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16667
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669 (eval $ac_compile) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } 2>conftest.err; then
16673 soname=conftest
16674 lib=conftest
16675 libobjs=conftest.$ac_objext
16676 deplibs=
16677 wl=$lt_prog_compiler_wl_CXX
16678 compiler_flags=-v
16679 linker_flags=-v
16680 verstring=
16681 output_objdir=.
16682 libname=conftest
16683 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16684 allow_undefined_flag_CXX=
16685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16686 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }
16690 then
16691 archive_cmds_need_lc_CXX=no
16692 else
16693 archive_cmds_need_lc_CXX=yes
16694 fi
16695 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16696 else
16697 cat conftest.err 1>&5
16698 fi
16699 $rm conftest*
16700 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16701echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16702 ;;
16703 esac
16704 fi
16705 ;;
16706esac
16707
John Criswell47fdd832003-07-14 16:52:07 +000016708echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16710library_names_spec=
16711libname_spec='lib$name'
16712soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016713shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016714postinstall_cmds=
16715postuninstall_cmds=
16716finish_cmds=
16717finish_eval=
16718shlibpath_var=
16719shlibpath_overrides_runpath=unknown
16720version_type=none
16721dynamic_linker="$host_os ld.so"
16722sys_lib_dlsearch_path_spec="/lib /usr/lib"
16723if test "$GCC" = yes; then
16724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16726 # if the path contains ";" then we assume it to be the separator
16727 # otherwise default to the standard path separator (i.e. ":") - it is
16728 # assumed that no part of a normal pathname contains ";" but that should
16729 # okay in the real world where ";" in dirpaths is itself problematic.
16730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16731 else
16732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16733 fi
16734else
16735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16736fi
16737need_lib_prefix=unknown
16738hardcode_into_libs=no
16739
16740# when you set need_version to no, make sure it does not cause -set_version
16741# flags to be left without arguments
16742need_version=unknown
16743
16744case $host_os in
16745aix3*)
16746 version_type=linux
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16748 shlibpath_var=LIBPATH
16749
16750 # AIX 3 has no versioning support, so we append a major version to the name.
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 ;;
16753
16754aix4* | aix5*)
16755 version_type=linux
16756 need_lib_prefix=no
16757 need_version=no
16758 hardcode_into_libs=yes
16759 if test "$host_cpu" = ia64; then
16760 # AIX 5 supports IA64
16761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 else
16764 # With GCC up to 2.95.x, collect2 would create an import file
16765 # for dependence libraries. The import file would start with
16766 # the line `#! .'. This would cause the generated library to
16767 # depend on `.', always an invalid library. This was fixed in
16768 # development snapshots of GCC prior to 3.0.
16769 case $host_os in
16770 aix4 | aix4.[01] | aix4.[01].*)
16771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16772 echo ' yes '
16773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16774 :
16775 else
16776 can_build_shared=no
16777 fi
16778 ;;
16779 esac
16780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16781 # soname into executable. Probably we can add versioning support to
16782 # collect2, so additional links can be useful in future.
16783 if test "$aix_use_runtimelinking" = yes; then
16784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16785 # instead of lib<name>.a to let people know that these are not
16786 # typical AIX shared libraries.
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 else
16789 # We preserve .a as extension for shared libraries through AIX4.2
16790 # and later when we are not doing run time linking.
16791 library_names_spec='${libname}${release}.a $libname.a'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 fi
16794 shlibpath_var=LIBPATH
16795 fi
16796 ;;
16797
16798amigaos*)
16799 library_names_spec='$libname.ixlibrary $libname.a'
16800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016801 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 +000016802 ;;
16803
16804beos*)
16805 library_names_spec='${libname}${shared_ext}'
16806 dynamic_linker="$host_os ld.so"
16807 shlibpath_var=LIBRARY_PATH
16808 ;;
16809
Reid Spencer2706f8c2004-09-19 23:53:36 +000016810bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016811 version_type=linux
16812 need_version=no
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16819 # the default ld.so.conf also contains /usr/contrib/lib and
16820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16821 # libtool to hard-code these into programs
16822 ;;
16823
16824cygwin* | mingw* | pw32*)
16825 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016826 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016827 need_version=no
16828 need_lib_prefix=no
16829
16830 case $GCC,$host_os in
16831 yes,cygwin* | yes,mingw* | yes,pw32*)
16832 library_names_spec='$libname.dll.a'
16833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016834 postinstall_cmds='base_file=`basename \${file}`~
16835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16836 dldir=$destdir/`dirname \$dlpath`~
16837 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016838 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16840 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016841 $rm \$dlpath'
16842 shlibpath_overrides_runpath=yes
16843
16844 case $host_os in
16845 cygwin*)
16846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16847 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 +000016848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016849 ;;
16850 mingw*)
16851 # MinGW DLLs use traditional 'lib' prefix
16852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16855 # It is most probably a Windows format PATH printed by
16856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16857 # path with ; separators, and with drive letters. We can handle the
16858 # drive letters (cygwin fileutils understands them), so leave them,
16859 # especially as we might pass files found there to a mingw objdump,
16860 # which wouldn't understand a cygwinified path. Ahh.
16861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16862 else
16863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16864 fi
16865 ;;
16866 pw32*)
16867 # pw32 DLLs use 'pw' prefix rather than 'lib'
16868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16869 ;;
16870 esac
16871 ;;
16872
16873 *)
16874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16875 ;;
16876 esac
16877 dynamic_linker='Win32 ld.exe'
16878 # FIXME: first we should search . and the directory the executable is in
16879 shlibpath_var=PATH
16880 ;;
16881
16882darwin* | rhapsody*)
16883 dynamic_linker="$host_os dyld"
16884 version_type=darwin
16885 need_lib_prefix=no
16886 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016888 soname_spec='${libname}${release}${major}$shared_ext'
16889 shlibpath_overrides_runpath=yes
16890 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016891 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893 if test "$GCC" = yes; then
16894 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"`
16895 else
16896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016897 fi
16898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16899 ;;
16900
16901dgux*)
16902 version_type=linux
16903 need_lib_prefix=no
16904 need_version=no
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16906 soname_spec='${libname}${release}${shared_ext}$major'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 ;;
16909
16910freebsd1*)
16911 dynamic_linker=no
16912 ;;
16913
Reid Spencer2706f8c2004-09-19 23:53:36 +000016914kfreebsd*-gnu)
16915 version_type=linux
16916 need_lib_prefix=no
16917 need_version=no
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=no
16922 hardcode_into_libs=yes
16923 dynamic_linker='GNU ld.so'
16924 ;;
16925
John Criswell47fdd832003-07-14 16:52:07 +000016926freebsd*)
16927 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16928 version_type=freebsd-$objformat
16929 case $version_type in
16930 freebsd-elf*)
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16932 need_version=no
16933 need_lib_prefix=no
16934 ;;
16935 freebsd-*)
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16937 need_version=yes
16938 ;;
16939 esac
16940 shlibpath_var=LD_LIBRARY_PATH
16941 case $host_os in
16942 freebsd2*)
16943 shlibpath_overrides_runpath=yes
16944 ;;
16945 freebsd3.01* | freebsdelf3.01*)
16946 shlibpath_overrides_runpath=yes
16947 hardcode_into_libs=yes
16948 ;;
16949 *) # from 3.2 on
16950 shlibpath_overrides_runpath=no
16951 hardcode_into_libs=yes
16952 ;;
16953 esac
16954 ;;
16955
16956gnu*)
16957 version_type=linux
16958 need_lib_prefix=no
16959 need_version=no
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 hardcode_into_libs=yes
16964 ;;
16965
16966hpux9* | hpux10* | hpux11*)
16967 # Give a soname corresponding to the major version so that dld.sl refuses to
16968 # link against other versions.
16969 version_type=sunos
16970 need_lib_prefix=no
16971 need_version=no
16972 case "$host_cpu" in
16973 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016975 hardcode_into_libs=yes
16976 dynamic_linker="$host_os dld.so"
16977 shlibpath_var=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 if test "X$HPUX_IA64_MODE" = X32; then
16982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16983 else
16984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16985 fi
16986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16987 ;;
16988 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016989 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016990 hardcode_into_libs=yes
16991 dynamic_linker="$host_os dld.sl"
16992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16998 ;;
16999 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017001 dynamic_linker="$host_os dld.sl"
17002 shlibpath_var=SHLIB_PATH
17003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 ;;
17007 esac
17008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17009 postinstall_cmds='chmod 555 $lib'
17010 ;;
17011
17012irix5* | irix6* | nonstopux*)
17013 case $host_os in
17014 nonstopux*) version_type=nonstopux ;;
17015 *)
17016 if test "$lt_cv_prog_gnu_ld" = yes; then
17017 version_type=linux
17018 else
17019 version_type=irix
17020 fi ;;
17021 esac
17022 need_lib_prefix=no
17023 need_version=no
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17026 case $host_os in
17027 irix5* | nonstopux*)
17028 libsuff= shlibsuff=
17029 ;;
17030 *)
17031 case $LD in # libtool.m4 will add one of these switches to LD
17032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17033 libsuff= shlibsuff= libmagic=32-bit;;
17034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17035 libsuff=32 shlibsuff=N32 libmagic=N32;;
17036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17038 *) libsuff= shlibsuff= libmagic=never-match;;
17039 esac
17040 ;;
17041 esac
17042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17043 shlibpath_overrides_runpath=no
17044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17046 hardcode_into_libs=yes
17047 ;;
17048
17049# No shared lib support for Linux oldld, aout, or coff.
17050linux*oldld* | linux*aout* | linux*coff*)
17051 dynamic_linker=no
17052 ;;
17053
17054# This must be Linux ELF.
17055linux*)
17056 version_type=linux
17057 need_lib_prefix=no
17058 need_version=no
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 shlibpath_overrides_runpath=no
17064 # This implies no fast_install, which is unacceptable.
17065 # Some rework will be needed to allow for fast_install
17066 # before this can be enabled.
17067 hardcode_into_libs=yes
17068
Reid Spencer2706f8c2004-09-19 23:53:36 +000017069 # Append ld.so.conf contents to the search path
17070 if test -f /etc/ld.so.conf; then
17071 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17073 fi
17074
John Criswell47fdd832003-07-14 16:52:07 +000017075 # We used to test for /lib/ld.so.1 and disable shared libraries on
17076 # powerpc, because MkLinux only supported shared libraries with the
17077 # GNU dynamic linker. Since this was broken with cross compilers,
17078 # most powerpc-linux boxes support dynamic linking these days and
17079 # people can always --disable-shared, the test was removed, and we
17080 # assume the GNU/Linux dynamic linker is in use.
17081 dynamic_linker='GNU/Linux ld.so'
17082 ;;
17083
Reid Spencer2706f8c2004-09-19 23:53:36 +000017084knetbsd*-gnu)
17085 version_type=linux
17086 need_lib_prefix=no
17087 need_version=no
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=no
17092 hardcode_into_libs=yes
17093 dynamic_linker='GNU ld.so'
17094 ;;
17095
John Criswell47fdd832003-07-14 16:52:07 +000017096netbsd*)
17097 version_type=sunos
17098 need_lib_prefix=no
17099 need_version=no
17100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17103 dynamic_linker='NetBSD (a.out) ld.so'
17104 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017106 soname_spec='${libname}${release}${shared_ext}$major'
17107 dynamic_linker='NetBSD ld.elf_so'
17108 fi
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17111 hardcode_into_libs=yes
17112 ;;
17113
17114newsos6)
17115 version_type=linux
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes
17119 ;;
17120
Reid Spencer2706f8c2004-09-19 23:53:36 +000017121nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017122 version_type=linux
17123 need_lib_prefix=no
17124 need_version=no
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 shlibpath_overrides_runpath=yes
17129 ;;
17130
17131openbsd*)
17132 version_type=sunos
17133 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017134 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17139 case $host_os in
17140 openbsd2.[89] | openbsd2.[89].*)
17141 shlibpath_overrides_runpath=no
17142 ;;
17143 *)
17144 shlibpath_overrides_runpath=yes
17145 ;;
17146 esac
17147 else
17148 shlibpath_overrides_runpath=yes
17149 fi
17150 ;;
17151
17152os2*)
17153 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017154 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017155 need_lib_prefix=no
17156 library_names_spec='$libname${shared_ext} $libname.a'
17157 dynamic_linker='OS/2 ld.exe'
17158 shlibpath_var=LIBPATH
17159 ;;
17160
17161osf3* | osf4* | osf5*)
17162 version_type=osf
17163 need_lib_prefix=no
17164 need_version=no
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17170 ;;
17171
17172sco3.2v5*)
17173 version_type=osf
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 ;;
17178
17179solaris*)
17180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=yes
17187 hardcode_into_libs=yes
17188 # ldd complains unless libraries are executable
17189 postinstall_cmds='chmod +x $lib'
17190 ;;
17191
17192sunos4*)
17193 version_type=sunos
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 if test "$with_gnu_ld" = yes; then
17199 need_lib_prefix=no
17200 fi
17201 need_version=yes
17202 ;;
17203
17204sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17205 version_type=linux
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 case $host_vendor in
17210 sni)
17211 shlibpath_overrides_runpath=no
17212 need_lib_prefix=no
17213 export_dynamic_flag_spec='${wl}-Blargedynsym'
17214 runpath_var=LD_RUN_PATH
17215 ;;
17216 siemens)
17217 need_lib_prefix=no
17218 ;;
17219 motorola)
17220 need_lib_prefix=no
17221 need_version=no
17222 shlibpath_overrides_runpath=no
17223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17224 ;;
17225 esac
17226 ;;
17227
17228sysv4*MP*)
17229 if test -d /usr/nec ;then
17230 version_type=linux
17231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17232 soname_spec='$libname${shared_ext}.$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 fi
17235 ;;
17236
17237uts4*)
17238 version_type=linux
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 ;;
17243
17244*)
17245 dynamic_linker=no
17246 ;;
17247esac
17248echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17249echo "${ECHO_T}$dynamic_linker" >&6
17250test "$dynamic_linker" = no && can_build_shared=no
17251
Reid Spencer2706f8c2004-09-19 23:53:36 +000017252echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17253echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17254hardcode_action_CXX=
17255if test -n "$hardcode_libdir_flag_spec_CXX" || \
17256 test -n "$runpath_var_CXX" || \
17257 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17258
17259 # We can hardcode non-existant directories.
17260 if test "$hardcode_direct_CXX" != no &&
17261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17262 # have to relink, otherwise we might link with an installed library
17263 # when we should be linking with a yet-to-be-installed one
17264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17265 test "$hardcode_minus_L_CXX" != no; then
17266 # Linking always hardcodes the temporary library directory.
17267 hardcode_action_CXX=relink
17268 else
17269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17270 hardcode_action_CXX=immediate
17271 fi
17272else
17273 # We cannot hardcode anything, or else we can only hardcode existing
17274 # directories.
17275 hardcode_action_CXX=unsupported
17276fi
17277echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17278echo "${ECHO_T}$hardcode_action_CXX" >&6
17279
17280if test "$hardcode_action_CXX" = relink; then
17281 # Fast installation is not supported
17282 enable_fast_install=no
17283elif test "$shlibpath_overrides_runpath" = yes ||
17284 test "$enable_shared" = no; then
17285 # Fast installation is not necessary
17286 enable_fast_install=needless
17287fi
17288
17289striplib=
17290old_striplib=
17291echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17292echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17293if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17295 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17296 echo "$as_me:$LINENO: result: yes" >&5
17297echo "${ECHO_T}yes" >&6
17298else
17299# FIXME - insert some real tests, host_os isn't really good enough
17300 case $host_os in
17301 darwin*)
17302 if test -n "$STRIP" ; then
17303 striplib="$STRIP -x"
17304 echo "$as_me:$LINENO: result: yes" >&5
17305echo "${ECHO_T}yes" >&6
17306 else
17307 echo "$as_me:$LINENO: result: no" >&5
17308echo "${ECHO_T}no" >&6
17309fi
17310 ;;
17311 *)
17312 echo "$as_me:$LINENO: result: no" >&5
17313echo "${ECHO_T}no" >&6
17314 ;;
17315 esac
17316fi
17317
John Criswell47fdd832003-07-14 16:52:07 +000017318if test "x$enable_dlopen" != xyes; then
17319 enable_dlopen=unknown
17320 enable_dlopen_self=unknown
17321 enable_dlopen_self_static=unknown
17322else
17323 lt_cv_dlopen=no
17324 lt_cv_dlopen_libs=
17325
17326 case $host_os in
17327 beos*)
17328 lt_cv_dlopen="load_add_on"
17329 lt_cv_dlopen_libs=
17330 lt_cv_dlopen_self=yes
17331 ;;
17332
17333 mingw* | pw32*)
17334 lt_cv_dlopen="LoadLibrary"
17335 lt_cv_dlopen_libs=
17336 ;;
17337
17338 cygwin*)
17339 lt_cv_dlopen="dlopen"
17340 lt_cv_dlopen_libs=
17341 ;;
17342
17343 darwin*)
17344 # if libdl is installed we need to link against it
17345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17346echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17347if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349else
17350 ac_check_lib_save_LIBS=$LIBS
17351LIBS="-ldl $LIBS"
17352cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017353/* confdefs.h. */
17354_ACEOF
17355cat confdefs.h >>conftest.$ac_ext
17356cat >>conftest.$ac_ext <<_ACEOF
17357/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017358
17359/* Override any gcc2 internal prototype to avoid an error. */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363/* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017366int
17367main ()
17368{
17369dlopen ();
17370 ;
17371 return 0;
17372}
17373_ACEOF
17374rm -f conftest.$ac_objext conftest$ac_exeext
17375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017376 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017383 { ac_try='test -z "$ac_cxx_werror_flag"
17384 || test ! -s conftest.err'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_lib_dl_dlopen=yes
17397else
17398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017399sed 's/^/| /' conftest.$ac_ext >&5
17400
John Criswell47fdd832003-07-14 16:52:07 +000017401ac_cv_lib_dl_dlopen=no
17402fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017405LIBS=$ac_check_lib_save_LIBS
17406fi
17407echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17408echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17409if test $ac_cv_lib_dl_dlopen = yes; then
17410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17411else
17412
17413 lt_cv_dlopen="dyld"
17414 lt_cv_dlopen_libs=
17415 lt_cv_dlopen_self=yes
17416
17417fi
17418
17419 ;;
17420
17421 *)
17422 echo "$as_me:$LINENO: checking for shl_load" >&5
17423echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17424if test "${ac_cv_func_shl_load+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426else
17427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435#define shl_load innocuous_shl_load
17436
John Criswell47fdd832003-07-14 16:52:07 +000017437/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017438 which can conflict with char shl_load (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441
John Criswell0c38eaf2003-09-10 15:17:25 +000017442#ifdef __STDC__
17443# include <limits.h>
17444#else
17445# include <assert.h>
17446#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017447
17448#undef shl_load
17449
John Criswell47fdd832003-07-14 16:52:07 +000017450/* Override any gcc2 internal prototype to avoid an error. */
17451#ifdef __cplusplus
17452extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017453{
John Criswell47fdd832003-07-14 16:52:07 +000017454#endif
17455/* We use char because int might match the return type of a gcc2
17456 builtin and then its argument prototype would still apply. */
17457char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017458/* The GNU C library defines this for functions which it implements
17459 to always fail with ENOSYS. Some functions are actually named
17460 something starting with __ and the normal name is an alias. */
17461#if defined (__stub_shl_load) || defined (__stub___shl_load)
17462choke me
17463#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017464char (*f) () = shl_load;
17465#endif
17466#ifdef __cplusplus
17467}
John Criswell47fdd832003-07-14 16:52:07 +000017468#endif
17469
John Criswell0c38eaf2003-09-10 15:17:25 +000017470int
17471main ()
17472{
17473return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017474 ;
17475 return 0;
17476}
17477_ACEOF
17478rm -f conftest.$ac_objext conftest$ac_exeext
17479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017480 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017487 { ac_try='test -z "$ac_cxx_werror_flag"
17488 || test ! -s conftest.err'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_func_shl_load=yes
17501else
17502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017503sed 's/^/| /' conftest.$ac_ext >&5
17504
John Criswell47fdd832003-07-14 16:52:07 +000017505ac_cv_func_shl_load=no
17506fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017507rm -f conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017509fi
17510echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17511echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17512if test $ac_cv_func_shl_load = yes; then
17513 lt_cv_dlopen="shl_load"
17514else
17515 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17516echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17517if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17519else
17520 ac_check_lib_save_LIBS=$LIBS
17521LIBS="-ldld $LIBS"
17522cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017528
17529/* Override any gcc2 internal prototype to avoid an error. */
17530#ifdef __cplusplus
17531extern "C"
17532#endif
17533/* We use char because int might match the return type of a gcc2
17534 builtin and then its argument prototype would still apply. */
17535char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017536int
17537main ()
17538{
17539shl_load ();
17540 ;
17541 return 0;
17542}
17543_ACEOF
17544rm -f conftest.$ac_objext conftest$ac_exeext
17545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017546 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017547 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017553 { ac_try='test -z "$ac_cxx_werror_flag"
17554 || test ! -s conftest.err'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_lib_dld_shl_load=yes
17567else
17568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017569sed 's/^/| /' conftest.$ac_ext >&5
17570
John Criswell47fdd832003-07-14 16:52:07 +000017571ac_cv_lib_dld_shl_load=no
17572fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017573rm -f conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017575LIBS=$ac_check_lib_save_LIBS
17576fi
17577echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17578echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17579if test $ac_cv_lib_dld_shl_load = yes; then
17580 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17581else
17582 echo "$as_me:$LINENO: checking for dlopen" >&5
17583echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17584if test "${ac_cv_func_dlopen+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586else
17587 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017593/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595#define dlopen innocuous_dlopen
17596
John Criswell47fdd832003-07-14 16:52:07 +000017597/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017598 which can conflict with char dlopen (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601
John Criswell0c38eaf2003-09-10 15:17:25 +000017602#ifdef __STDC__
17603# include <limits.h>
17604#else
17605# include <assert.h>
17606#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017607
17608#undef dlopen
17609
John Criswell47fdd832003-07-14 16:52:07 +000017610/* Override any gcc2 internal prototype to avoid an error. */
17611#ifdef __cplusplus
17612extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017613{
John Criswell47fdd832003-07-14 16:52:07 +000017614#endif
17615/* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17617char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017618/* The GNU C library defines this for functions which it implements
17619 to always fail with ENOSYS. Some functions are actually named
17620 something starting with __ and the normal name is an alias. */
17621#if defined (__stub_dlopen) || defined (__stub___dlopen)
17622choke me
17623#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017624char (*f) () = dlopen;
17625#endif
17626#ifdef __cplusplus
17627}
John Criswell47fdd832003-07-14 16:52:07 +000017628#endif
17629
John Criswell0c38eaf2003-09-10 15:17:25 +000017630int
17631main ()
17632{
17633return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest.$ac_objext conftest$ac_exeext
17639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017647 { ac_try='test -z "$ac_cxx_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_func_dlopen=yes
17661else
17662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017663sed 's/^/| /' conftest.$ac_ext >&5
17664
John Criswell47fdd832003-07-14 16:52:07 +000017665ac_cv_func_dlopen=no
17666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017667rm -f conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017669fi
17670echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17671echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17672if test $ac_cv_func_dlopen = yes; then
17673 lt_cv_dlopen="dlopen"
17674else
17675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17676echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17677if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679else
17680 ac_check_lib_save_LIBS=$LIBS
17681LIBS="-ldl $LIBS"
17682cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017688
17689/* Override any gcc2 internal prototype to avoid an error. */
17690#ifdef __cplusplus
17691extern "C"
17692#endif
17693/* We use char because int might match the return type of a gcc2
17694 builtin and then its argument prototype would still apply. */
17695char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017696int
17697main ()
17698{
17699dlopen ();
17700 ;
17701 return 0;
17702}
17703_ACEOF
17704rm -f conftest.$ac_objext conftest$ac_exeext
17705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017706 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017713 { ac_try='test -z "$ac_cxx_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_lib_dl_dlopen=yes
17727else
17728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017729sed 's/^/| /' conftest.$ac_ext >&5
17730
John Criswell47fdd832003-07-14 16:52:07 +000017731ac_cv_lib_dl_dlopen=no
17732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017733rm -f conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017735LIBS=$ac_check_lib_save_LIBS
17736fi
17737echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17738echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17739if test $ac_cv_lib_dl_dlopen = yes; then
17740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17741else
17742 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17743echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17744if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746else
17747 ac_check_lib_save_LIBS=$LIBS
17748LIBS="-lsvld $LIBS"
17749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017750/* confdefs.h. */
17751_ACEOF
17752cat confdefs.h >>conftest.$ac_ext
17753cat >>conftest.$ac_ext <<_ACEOF
17754/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017755
17756/* Override any gcc2 internal prototype to avoid an error. */
17757#ifdef __cplusplus
17758extern "C"
17759#endif
17760/* We use char because int might match the return type of a gcc2
17761 builtin and then its argument prototype would still apply. */
17762char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017763int
17764main ()
17765{
17766dlopen ();
17767 ;
17768 return 0;
17769}
17770_ACEOF
17771rm -f conftest.$ac_objext conftest$ac_exeext
17772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017773 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017780 { ac_try='test -z "$ac_cxx_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_lib_svld_dlopen=yes
17794else
17795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017796sed 's/^/| /' conftest.$ac_ext >&5
17797
John Criswell47fdd832003-07-14 16:52:07 +000017798ac_cv_lib_svld_dlopen=no
17799fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017800rm -f conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017802LIBS=$ac_check_lib_save_LIBS
17803fi
17804echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17805echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17806if test $ac_cv_lib_svld_dlopen = yes; then
17807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17808else
17809 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17810echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17811if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 ac_check_lib_save_LIBS=$LIBS
17815LIBS="-ldld $LIBS"
17816cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017822
17823/* Override any gcc2 internal prototype to avoid an error. */
17824#ifdef __cplusplus
17825extern "C"
17826#endif
17827/* We use char because int might match the return type of a gcc2
17828 builtin and then its argument prototype would still apply. */
17829char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017830int
17831main ()
17832{
17833dld_link ();
17834 ;
17835 return 0;
17836}
17837_ACEOF
17838rm -f conftest.$ac_objext conftest$ac_exeext
17839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017840 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017841 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017847 { ac_try='test -z "$ac_cxx_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_lib_dld_dld_link=yes
17861else
17862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017863sed 's/^/| /' conftest.$ac_ext >&5
17864
John Criswell47fdd832003-07-14 16:52:07 +000017865ac_cv_lib_dld_dld_link=no
17866fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017867rm -f conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017869LIBS=$ac_check_lib_save_LIBS
17870fi
17871echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17872echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17873if test $ac_cv_lib_dld_dld_link = yes; then
17874 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17875fi
17876
17877
17878fi
17879
17880
17881fi
17882
17883
17884fi
17885
17886
17887fi
17888
17889
17890fi
17891
17892 ;;
17893 esac
17894
17895 if test "x$lt_cv_dlopen" != xno; then
17896 enable_dlopen=yes
17897 else
17898 enable_dlopen=no
17899 fi
17900
17901 case $lt_cv_dlopen in
17902 dlopen)
17903 save_CPPFLAGS="$CPPFLAGS"
17904 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17905
17906 save_LDFLAGS="$LDFLAGS"
17907 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17908
17909 save_LIBS="$LIBS"
17910 LIBS="$lt_cv_dlopen_libs $LIBS"
17911
17912 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17913echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17914if test "${lt_cv_dlopen_self+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916else
17917 if test "$cross_compiling" = yes; then :
17918 lt_cv_dlopen_self=cross
17919else
17920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17921 lt_status=$lt_dlunknown
17922 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +000017923#line 17923 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017924#include "confdefs.h"
17925
17926#if HAVE_DLFCN_H
17927#include <dlfcn.h>
17928#endif
17929
17930#include <stdio.h>
17931
17932#ifdef RTLD_GLOBAL
17933# define LT_DLGLOBAL RTLD_GLOBAL
17934#else
17935# ifdef DL_GLOBAL
17936# define LT_DLGLOBAL DL_GLOBAL
17937# else
17938# define LT_DLGLOBAL 0
17939# endif
17940#endif
17941
17942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17943 find out it does not work in some platform. */
17944#ifndef LT_DLLAZY_OR_NOW
17945# ifdef RTLD_LAZY
17946# define LT_DLLAZY_OR_NOW RTLD_LAZY
17947# else
17948# ifdef DL_LAZY
17949# define LT_DLLAZY_OR_NOW DL_LAZY
17950# else
17951# ifdef RTLD_NOW
17952# define LT_DLLAZY_OR_NOW RTLD_NOW
17953# else
17954# ifdef DL_NOW
17955# define LT_DLLAZY_OR_NOW DL_NOW
17956# else
17957# define LT_DLLAZY_OR_NOW 0
17958# endif
17959# endif
17960# endif
17961# endif
17962#endif
17963
17964#ifdef __cplusplus
17965extern "C" void exit (int);
17966#endif
17967
17968void fnord() { int i=42;}
17969int main ()
17970{
17971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17972 int status = $lt_dlunknown;
17973
17974 if (self)
17975 {
17976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978 /* dlclose (self); */
17979 }
17980
17981 exit (status);
17982}
17983EOF
17984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17989 (./conftest; exit; ) 2>/dev/null
17990 lt_status=$?
17991 case x$lt_status in
17992 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17993 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17994 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17995 esac
17996 else :
17997 # compilation failed
17998 lt_cv_dlopen_self=no
17999 fi
18000fi
18001rm -fr conftest*
18002
18003
18004fi
18005echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18006echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18007
18008 if test "x$lt_cv_dlopen_self" = xyes; then
18009 LDFLAGS="$LDFLAGS $link_static_flag"
18010 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18011echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18012if test "${lt_cv_dlopen_self_static+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014else
18015 if test "$cross_compiling" = yes; then :
18016 lt_cv_dlopen_self_static=cross
18017else
18018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18019 lt_status=$lt_dlunknown
18020 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +000018021#line 18021 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018022#include "confdefs.h"
18023
18024#if HAVE_DLFCN_H
18025#include <dlfcn.h>
18026#endif
18027
18028#include <stdio.h>
18029
18030#ifdef RTLD_GLOBAL
18031# define LT_DLGLOBAL RTLD_GLOBAL
18032#else
18033# ifdef DL_GLOBAL
18034# define LT_DLGLOBAL DL_GLOBAL
18035# else
18036# define LT_DLGLOBAL 0
18037# endif
18038#endif
18039
18040/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18041 find out it does not work in some platform. */
18042#ifndef LT_DLLAZY_OR_NOW
18043# ifdef RTLD_LAZY
18044# define LT_DLLAZY_OR_NOW RTLD_LAZY
18045# else
18046# ifdef DL_LAZY
18047# define LT_DLLAZY_OR_NOW DL_LAZY
18048# else
18049# ifdef RTLD_NOW
18050# define LT_DLLAZY_OR_NOW RTLD_NOW
18051# else
18052# ifdef DL_NOW
18053# define LT_DLLAZY_OR_NOW DL_NOW
18054# else
18055# define LT_DLLAZY_OR_NOW 0
18056# endif
18057# endif
18058# endif
18059# endif
18060#endif
18061
18062#ifdef __cplusplus
18063extern "C" void exit (int);
18064#endif
18065
18066void fnord() { int i=42;}
18067int main ()
18068{
18069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18070 int status = $lt_dlunknown;
18071
18072 if (self)
18073 {
18074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18076 /* dlclose (self); */
18077 }
18078
18079 exit (status);
18080}
18081EOF
18082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083 (eval $ac_link) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18087 (./conftest; exit; ) 2>/dev/null
18088 lt_status=$?
18089 case x$lt_status in
18090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18092 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18093 esac
18094 else :
18095 # compilation failed
18096 lt_cv_dlopen_self_static=no
18097 fi
18098fi
18099rm -fr conftest*
18100
18101
18102fi
18103echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18104echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18105 fi
18106
18107 CPPFLAGS="$save_CPPFLAGS"
18108 LDFLAGS="$save_LDFLAGS"
18109 LIBS="$save_LIBS"
18110 ;;
18111 esac
18112
18113 case $lt_cv_dlopen_self in
18114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18115 *) enable_dlopen_self=unknown ;;
18116 esac
18117
18118 case $lt_cv_dlopen_self_static in
18119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18120 *) enable_dlopen_self_static=unknown ;;
18121 esac
18122fi
18123
18124
18125# The else clause should only fire when bootstrapping the
18126# libtool distribution, otherwise you forgot to ship ltmain.sh
18127# with your package, and you will get complaints that there are
18128# no rules to generate ltmain.sh.
18129if test -f "$ltmain"; then
18130 # See if we are running on zsh, and set the options which allow our commands through
18131 # without removal of \ escapes.
18132 if test -n "${ZSH_VERSION+set}" ; then
18133 setopt NO_GLOB_SUBST
18134 fi
18135 # Now quote all the things that may contain metacharacters while being
18136 # careful not to overquote the AC_SUBSTed values. We take copies of the
18137 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018138 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18139 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018140 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18141 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18142 deplibs_check_method reload_flag reload_cmds need_locks \
18143 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18144 lt_cv_sys_global_symbol_to_c_name_address \
18145 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18146 old_postinstall_cmds old_postuninstall_cmds \
18147 compiler_CXX \
18148 CC_CXX \
18149 LD_CXX \
18150 lt_prog_compiler_wl_CXX \
18151 lt_prog_compiler_pic_CXX \
18152 lt_prog_compiler_static_CXX \
18153 lt_prog_compiler_no_builtin_flag_CXX \
18154 export_dynamic_flag_spec_CXX \
18155 thread_safe_flag_spec_CXX \
18156 whole_archive_flag_spec_CXX \
18157 enable_shared_with_static_runtimes_CXX \
18158 old_archive_cmds_CXX \
18159 old_archive_from_new_cmds_CXX \
18160 predep_objects_CXX \
18161 postdep_objects_CXX \
18162 predeps_CXX \
18163 postdeps_CXX \
18164 compiler_lib_search_path_CXX \
18165 archive_cmds_CXX \
18166 archive_expsym_cmds_CXX \
18167 postinstall_cmds_CXX \
18168 postuninstall_cmds_CXX \
18169 old_archive_from_expsyms_cmds_CXX \
18170 allow_undefined_flag_CXX \
18171 no_undefined_flag_CXX \
18172 export_symbols_cmds_CXX \
18173 hardcode_libdir_flag_spec_CXX \
18174 hardcode_libdir_flag_spec_ld_CXX \
18175 hardcode_libdir_separator_CXX \
18176 hardcode_automatic_CXX \
18177 module_cmds_CXX \
18178 module_expsym_cmds_CXX \
18179 lt_cv_prog_compiler_c_o_CXX \
18180 exclude_expsyms_CXX \
18181 include_expsyms_CXX; do
18182
18183 case $var in
18184 old_archive_cmds_CXX | \
18185 old_archive_from_new_cmds_CXX | \
18186 archive_cmds_CXX | \
18187 archive_expsym_cmds_CXX | \
18188 module_cmds_CXX | \
18189 module_expsym_cmds_CXX | \
18190 old_archive_from_expsyms_cmds_CXX | \
18191 export_symbols_cmds_CXX | \
18192 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18193 postinstall_cmds | postuninstall_cmds | \
18194 old_postinstall_cmds | old_postuninstall_cmds | \
18195 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18196 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018197 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 +000018198 ;;
18199 *)
18200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18201 ;;
18202 esac
18203 done
18204
18205 case $lt_echo in
18206 *'\$0 --fallback-echo"')
18207 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18208 ;;
18209 esac
18210
18211cfgfile="$ofile"
18212
18213 cat <<__EOF__ >> "$cfgfile"
18214# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18215
18216# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18217
18218# Shell to use when invoking shell scripts.
18219SHELL=$lt_SHELL
18220
18221# Whether or not to build shared libraries.
18222build_libtool_libs=$enable_shared
18223
18224# Whether or not to build static libraries.
18225build_old_libs=$enable_static
18226
18227# Whether or not to add -lc for building shared libraries.
18228build_libtool_need_lc=$archive_cmds_need_lc_CXX
18229
18230# Whether or not to disallow shared libs when runtime libs are static
18231allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18232
18233# Whether or not to optimize for fast installation.
18234fast_install=$enable_fast_install
18235
18236# The host system.
18237host_alias=$host_alias
18238host=$host
18239
18240# An echo program that does not interpret backslashes.
18241echo=$lt_echo
18242
18243# The archiver.
18244AR=$lt_AR
18245AR_FLAGS=$lt_AR_FLAGS
18246
18247# A C compiler.
18248LTCC=$lt_LTCC
18249
18250# A language-specific compiler.
18251CC=$lt_compiler_CXX
18252
18253# Is the compiler the GNU C compiler?
18254with_gcc=$GCC_CXX
18255
18256# An ERE matcher.
18257EGREP=$lt_EGREP
18258
18259# The linker used to build libraries.
18260LD=$lt_LD_CXX
18261
18262# Whether we need hard or soft links.
18263LN_S=$lt_LN_S
18264
18265# A BSD-compatible nm program.
18266NM=$lt_NM
18267
18268# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018269STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018270
18271# Used to examine libraries when file_magic_cmd begins "file"
18272MAGIC_CMD=$MAGIC_CMD
18273
18274# Used on cygwin: DLL creation program.
18275DLLTOOL="$DLLTOOL"
18276
18277# Used on cygwin: object dumper.
18278OBJDUMP="$OBJDUMP"
18279
18280# Used on cygwin: assembler.
18281AS="$AS"
18282
18283# The name of the directory that contains temporary libtool files.
18284objdir=$objdir
18285
18286# How to create reloadable object files.
18287reload_flag=$lt_reload_flag
18288reload_cmds=$lt_reload_cmds
18289
18290# How to pass a linker flag through the compiler.
18291wl=$lt_lt_prog_compiler_wl_CXX
18292
18293# Object file suffix (normally "o").
18294objext="$ac_objext"
18295
18296# Old archive suffix (normally "a").
18297libext="$libext"
18298
18299# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018300shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018301
18302# Executable file suffix (normally "").
18303exeext="$exeext"
18304
18305# Additional compiler flags for building library objects.
18306pic_flag=$lt_lt_prog_compiler_pic_CXX
18307pic_mode=$pic_mode
18308
18309# What is the maximum length of a command?
18310max_cmd_len=$lt_cv_sys_max_cmd_len
18311
18312# Does compiler simultaneously support -c and -o options?
18313compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18314
18315# Must we lock files when doing compilation ?
18316need_locks=$lt_need_locks
18317
18318# Do we need the lib prefix for modules?
18319need_lib_prefix=$need_lib_prefix
18320
18321# Do we need a version for libraries?
18322need_version=$need_version
18323
18324# Whether dlopen is supported.
18325dlopen_support=$enable_dlopen
18326
18327# Whether dlopen of programs is supported.
18328dlopen_self=$enable_dlopen_self
18329
18330# Whether dlopen of statically linked programs is supported.
18331dlopen_self_static=$enable_dlopen_self_static
18332
18333# Compiler flag to prevent dynamic linking.
18334link_static_flag=$lt_lt_prog_compiler_static_CXX
18335
18336# Compiler flag to turn off builtin functions.
18337no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18338
18339# Compiler flag to allow reflexive dlopens.
18340export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18341
18342# Compiler flag to generate shared objects directly from archives.
18343whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18344
18345# Compiler flag to generate thread-safe objects.
18346thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18347
18348# Library versioning type.
18349version_type=$version_type
18350
18351# Format of library name prefix.
18352libname_spec=$lt_libname_spec
18353
18354# List of archive names. First name is the real one, the rest are links.
18355# The last name is the one that the linker finds with -lNAME.
18356library_names_spec=$lt_library_names_spec
18357
18358# The coded name of the library, if different from the real name.
18359soname_spec=$lt_soname_spec
18360
18361# Commands used to build and install an old-style archive.
18362RANLIB=$lt_RANLIB
18363old_archive_cmds=$lt_old_archive_cmds_CXX
18364old_postinstall_cmds=$lt_old_postinstall_cmds
18365old_postuninstall_cmds=$lt_old_postuninstall_cmds
18366
18367# Create an old-style archive from a shared archive.
18368old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18369
18370# Create a temporary old-style archive to link instead of a shared archive.
18371old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18372
18373# Commands used to build and install a shared archive.
18374archive_cmds=$lt_archive_cmds_CXX
18375archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18376postinstall_cmds=$lt_postinstall_cmds
18377postuninstall_cmds=$lt_postuninstall_cmds
18378
18379# Commands used to build a loadable module (assumed same as above if empty)
18380module_cmds=$lt_module_cmds_CXX
18381module_expsym_cmds=$lt_module_expsym_cmds_CXX
18382
18383# Commands to strip libraries.
18384old_striplib=$lt_old_striplib
18385striplib=$lt_striplib
18386
18387# Dependencies to place before the objects being linked to create a
18388# shared library.
18389predep_objects=$lt_predep_objects_CXX
18390
18391# Dependencies to place after the objects being linked to create a
18392# shared library.
18393postdep_objects=$lt_postdep_objects_CXX
18394
18395# Dependencies to place before the objects being linked to create a
18396# shared library.
18397predeps=$lt_predeps_CXX
18398
18399# Dependencies to place after the objects being linked to create a
18400# shared library.
18401postdeps=$lt_postdeps_CXX
18402
18403# The library search path used internally by the compiler when linking
18404# a shared library.
18405compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18406
18407# Method to check whether dependent libraries are shared objects.
18408deplibs_check_method=$lt_deplibs_check_method
18409
18410# Command to use when deplibs_check_method == file_magic.
18411file_magic_cmd=$lt_file_magic_cmd
18412
18413# Flag that allows shared libraries with undefined symbols to be built.
18414allow_undefined_flag=$lt_allow_undefined_flag_CXX
18415
18416# Flag that forces no undefined symbols.
18417no_undefined_flag=$lt_no_undefined_flag_CXX
18418
18419# Commands used to finish a libtool library installation in a directory.
18420finish_cmds=$lt_finish_cmds
18421
18422# Same as above, but a single script fragment to be evaled but not shown.
18423finish_eval=$lt_finish_eval
18424
18425# Take the output of nm and produce a listing of raw symbols and C names.
18426global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18427
18428# Transform the output of nm in a proper C declaration
18429global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18430
18431# Transform the output of nm in a C name address pair
18432global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18433
18434# This is the shared library runtime path variable.
18435runpath_var=$runpath_var
18436
18437# This is the shared library path variable.
18438shlibpath_var=$shlibpath_var
18439
18440# Is shlibpath searched before the hard-coded library search path?
18441shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18442
18443# How to hardcode a shared library path into an executable.
18444hardcode_action=$hardcode_action_CXX
18445
18446# Whether we should hardcode library paths into libraries.
18447hardcode_into_libs=$hardcode_into_libs
18448
18449# Flag to hardcode \$libdir into a binary during linking.
18450# This must work even if \$libdir does not exist.
18451hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18452
18453# If ld is used when linking, flag to hardcode \$libdir into
18454# a binary during linking. This must work even if \$libdir does
18455# not exist.
18456hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18457
18458# Whether we need a single -rpath flag with a separated argument.
18459hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18460
18461# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18462# resulting binary.
18463hardcode_direct=$hardcode_direct_CXX
18464
18465# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18466# resulting binary.
18467hardcode_minus_L=$hardcode_minus_L_CXX
18468
18469# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18470# the resulting binary.
18471hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18472
18473# Set to yes if building a shared library automatically hardcodes DIR into the library
18474# and all subsequent libraries and executables linked against it.
18475hardcode_automatic=$hardcode_automatic_CXX
18476
18477# Variables whose values should be saved in libtool wrapper scripts and
18478# restored at relink time.
18479variables_saved_for_relink="$variables_saved_for_relink"
18480
18481# Whether libtool must link a program against all its dependency libraries.
18482link_all_deplibs=$link_all_deplibs_CXX
18483
18484# Compile-time system search path for libraries
18485sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18486
18487# Run-time system search path for libraries
18488sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18489
18490# Fix the shell variable \$srcfile for the compiler.
18491fix_srcfile_path="$fix_srcfile_path_CXX"
18492
18493# Set to yes if exported symbols are required.
18494always_export_symbols=$always_export_symbols_CXX
18495
18496# The commands to list exported symbols.
18497export_symbols_cmds=$lt_export_symbols_cmds_CXX
18498
18499# The commands to extract the exported symbol list from a shared archive.
18500extract_expsyms_cmds=$lt_extract_expsyms_cmds
18501
18502# Symbols that should not be listed in the preloaded symbols.
18503exclude_expsyms=$lt_exclude_expsyms_CXX
18504
18505# Symbols that must always be exported.
18506include_expsyms=$lt_include_expsyms_CXX
18507
18508# ### END LIBTOOL TAG CONFIG: $tagname
18509
18510__EOF__
18511
18512
18513else
18514 # If there is no Makefile yet, we rely on a make rule to execute
18515 # `config.status --recheck' to rerun these tests and create the
18516 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018517 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18518 if test -f "$ltmain_in"; then
18519 test -f Makefile && make "$ltmain"
18520 fi
John Criswell47fdd832003-07-14 16:52:07 +000018521fi
18522
18523
18524ac_ext=c
18525ac_cpp='$CPP $CPPFLAGS'
18526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530CC=$lt_save_CC
18531LDCXX=$LD
18532LD=$lt_save_LD
18533GCC=$lt_save_GCC
18534with_gnu_ldcxx=$with_gnu_ld
18535with_gnu_ld=$lt_save_with_gnu_ld
18536lt_cv_path_LDCXX=$lt_cv_path_LD
18537lt_cv_path_LD=$lt_save_path_LD
18538lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18539lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18540
18541 else
18542 tagname=""
18543 fi
18544 ;;
18545
18546 F77)
18547 if test -n "$F77" && test "X$F77" != "Xno"; then
18548
18549ac_ext=f
18550ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18551ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18553
18554
18555archive_cmds_need_lc_F77=no
18556allow_undefined_flag_F77=
18557always_export_symbols_F77=no
18558archive_expsym_cmds_F77=
18559export_dynamic_flag_spec_F77=
18560hardcode_direct_F77=no
18561hardcode_libdir_flag_spec_F77=
18562hardcode_libdir_flag_spec_ld_F77=
18563hardcode_libdir_separator_F77=
18564hardcode_minus_L_F77=no
18565hardcode_automatic_F77=no
18566module_cmds_F77=
18567module_expsym_cmds_F77=
18568link_all_deplibs_F77=unknown
18569old_archive_cmds_F77=$old_archive_cmds
18570no_undefined_flag_F77=
18571whole_archive_flag_spec_F77=
18572enable_shared_with_static_runtimes_F77=no
18573
18574# Source file extension for f77 test sources.
18575ac_ext=f
18576
18577# Object file extension for compiled f77 test sources.
18578objext=o
18579objext_F77=$objext
18580
18581# Code to be used in simple compile tests
18582lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18583
18584# Code to be used in simple link tests
18585lt_simple_link_test_code=" program t\n end\n"
18586
18587# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18588
18589# If no C compiler was specified, use CC.
18590LTCC=${LTCC-"$CC"}
18591
18592# Allow CC to be a program name with arguments.
18593compiler=$CC
18594
18595
18596# Allow CC to be a program name with arguments.
18597lt_save_CC="$CC"
18598CC=${F77-"f77"}
18599compiler=$CC
18600compiler_F77=$CC
18601cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18602
18603echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18604echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18605echo "$as_me:$LINENO: result: $can_build_shared" >&5
18606echo "${ECHO_T}$can_build_shared" >&6
18607
18608echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18609echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18610test "$can_build_shared" = "no" && enable_shared=no
18611
18612# On AIX, shared libraries and static libraries use the same namespace, and
18613# are all built from PIC.
18614case "$host_os" in
18615aix3*)
18616 test "$enable_shared" = yes && enable_static=no
18617 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018619 postinstall_cmds='$RANLIB $lib'
18620 fi
18621 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018622aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018623 test "$enable_shared" = yes && enable_static=no
18624 ;;
18625esac
18626echo "$as_me:$LINENO: result: $enable_shared" >&5
18627echo "${ECHO_T}$enable_shared" >&6
18628
18629echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18630echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18631# Make sure either enable_shared or enable_static is yes.
18632test "$enable_shared" = yes || enable_static=yes
18633echo "$as_me:$LINENO: result: $enable_static" >&5
18634echo "${ECHO_T}$enable_static" >&6
18635
18636test "$ld_shlibs_F77" = no && can_build_shared=no
18637
18638GCC_F77="$G77"
18639LD_F77="$LD"
18640
18641lt_prog_compiler_wl_F77=
18642lt_prog_compiler_pic_F77=
18643lt_prog_compiler_static_F77=
18644
18645echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18646echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18647
18648 if test "$GCC" = yes; then
18649 lt_prog_compiler_wl_F77='-Wl,'
18650 lt_prog_compiler_static_F77='-static'
18651
18652 case $host_os in
18653 aix*)
18654 # All AIX code is PIC.
18655 if test "$host_cpu" = ia64; then
18656 # AIX 5 now supports IA64 processor
18657 lt_prog_compiler_static_F77='-Bstatic'
18658 fi
18659 ;;
18660
18661 amigaos*)
18662 # FIXME: we need at least 68020 code to build shared libraries, but
18663 # adding the `-m68020' flag to GCC prevents building anything better,
18664 # like `-m68040'.
18665 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18666 ;;
18667
18668 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18669 # PIC is the default for these OSes.
18670 ;;
18671
18672 mingw* | pw32* | os2*)
18673 # This hack is so that the source file can tell whether it is being
18674 # built for inclusion in a dll (and should export symbols for example).
18675 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18676 ;;
18677
18678 darwin* | rhapsody*)
18679 # PIC is the default on this platform
18680 # Common symbols not allowed in MH_DYLIB files
18681 lt_prog_compiler_pic_F77='-fno-common'
18682 ;;
18683
18684 msdosdjgpp*)
18685 # Just because we use GCC doesn't mean we suddenly get shared libraries
18686 # on systems that don't support them.
18687 lt_prog_compiler_can_build_shared_F77=no
18688 enable_shared=no
18689 ;;
18690
18691 sysv4*MP*)
18692 if test -d /usr/nec; then
18693 lt_prog_compiler_pic_F77=-Kconform_pic
18694 fi
18695 ;;
18696
18697 hpux*)
18698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18699 # not for PA HP-UX.
18700 case "$host_cpu" in
18701 hppa*64*|ia64*)
18702 # +Z the default
18703 ;;
18704 *)
18705 lt_prog_compiler_pic_F77='-fPIC'
18706 ;;
18707 esac
18708 ;;
18709
18710 *)
18711 lt_prog_compiler_pic_F77='-fPIC'
18712 ;;
18713 esac
18714 else
18715 # PORTME Check for flag to pass linker flags through the system compiler.
18716 case $host_os in
18717 aix*)
18718 lt_prog_compiler_wl_F77='-Wl,'
18719 if test "$host_cpu" = ia64; then
18720 # AIX 5 now supports IA64 processor
18721 lt_prog_compiler_static_F77='-Bstatic'
18722 else
18723 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18724 fi
18725 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018726 darwin*)
18727 # PIC is the default on this platform
18728 # Common symbols not allowed in MH_DYLIB files
18729 case "$cc_basename" in
18730 xlc*)
18731 lt_prog_compiler_pic_F77='-qnocommon'
18732 lt_prog_compiler_wl_F77='-Wl,'
18733 ;;
18734 esac
18735 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018736
18737 mingw* | pw32* | os2*)
18738 # This hack is so that the source file can tell whether it is being
18739 # built for inclusion in a dll (and should export symbols for example).
18740 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18741 ;;
18742
18743 hpux9* | hpux10* | hpux11*)
18744 lt_prog_compiler_wl_F77='-Wl,'
18745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18746 # not for PA HP-UX.
18747 case "$host_cpu" in
18748 hppa*64*|ia64*)
18749 # +Z the default
18750 ;;
18751 *)
18752 lt_prog_compiler_pic_F77='+Z'
18753 ;;
18754 esac
18755 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18756 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18757 ;;
18758
18759 irix5* | irix6* | nonstopux*)
18760 lt_prog_compiler_wl_F77='-Wl,'
18761 # PIC (with -KPIC) is the default.
18762 lt_prog_compiler_static_F77='-non_shared'
18763 ;;
18764
18765 newsos6)
18766 lt_prog_compiler_pic_F77='-KPIC'
18767 lt_prog_compiler_static_F77='-Bstatic'
18768 ;;
18769
18770 linux*)
18771 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018772 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018773 lt_prog_compiler_wl_F77='-Wl,'
18774 lt_prog_compiler_pic_F77='-KPIC'
18775 lt_prog_compiler_static_F77='-static'
18776 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018777 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018778 lt_prog_compiler_wl_F77='-Wl,'
18779 # All Alpha code is PIC.
18780 lt_prog_compiler_static_F77='-non_shared'
18781 ;;
18782 esac
18783 ;;
18784
18785 osf3* | osf4* | osf5*)
18786 lt_prog_compiler_wl_F77='-Wl,'
18787 # All OSF/1 code is PIC.
18788 lt_prog_compiler_static_F77='-non_shared'
18789 ;;
18790
18791 sco3.2v5*)
18792 lt_prog_compiler_pic_F77='-Kpic'
18793 lt_prog_compiler_static_F77='-dn'
18794 ;;
18795
18796 solaris*)
18797 lt_prog_compiler_wl_F77='-Wl,'
18798 lt_prog_compiler_pic_F77='-KPIC'
18799 lt_prog_compiler_static_F77='-Bstatic'
18800 ;;
18801
18802 sunos4*)
18803 lt_prog_compiler_wl_F77='-Qoption ld '
18804 lt_prog_compiler_pic_F77='-PIC'
18805 lt_prog_compiler_static_F77='-Bstatic'
18806 ;;
18807
18808 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18809 lt_prog_compiler_wl_F77='-Wl,'
18810 lt_prog_compiler_pic_F77='-KPIC'
18811 lt_prog_compiler_static_F77='-Bstatic'
18812 ;;
18813
18814 sysv4*MP*)
18815 if test -d /usr/nec ;then
18816 lt_prog_compiler_pic_F77='-Kconform_pic'
18817 lt_prog_compiler_static_F77='-Bstatic'
18818 fi
18819 ;;
18820
18821 uts4*)
18822 lt_prog_compiler_pic_F77='-pic'
18823 lt_prog_compiler_static_F77='-Bstatic'
18824 ;;
18825
18826 *)
18827 lt_prog_compiler_can_build_shared_F77=no
18828 ;;
18829 esac
18830 fi
18831
18832echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18833echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18834
18835#
18836# Check to make sure the PIC flag actually works.
18837#
18838if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018839
18840echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018841echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18842if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
18845 lt_prog_compiler_pic_works_F77=no
18846 ac_outfile=conftest.$ac_objext
18847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18848 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18849 # Insert the option either (1) after the last *FLAGS variable, or
18850 # (2) before a word containing "conftest.", or (3) at the end.
18851 # Note that $ac_compile itself does not contain backslashes and begins
18852 # with a dollar sign (not a hyphen), so the echo should work correctly.
18853 # The option is referenced via a variable to avoid confusing sed.
18854 lt_compile=`echo "$ac_compile" | $SED \
18855 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18857 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000018858 (eval echo "\"\$as_me:18858: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018859 (eval "$lt_compile" 2>conftest.err)
18860 ac_status=$?
18861 cat conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000018862 echo "$as_me:18862: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018863 if (exit $ac_status) && test -s "$ac_outfile"; then
18864 # The compiler can only warn and ignore the option if not recognized
18865 # So say no if there are warnings
18866 if test ! -s conftest.err; then
18867 lt_prog_compiler_pic_works_F77=yes
18868 fi
18869 fi
18870 $rm conftest*
18871
18872fi
18873echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18874echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18875
18876if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18877 case $lt_prog_compiler_pic_F77 in
18878 "" | " "*) ;;
18879 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18880 esac
18881else
18882 lt_prog_compiler_pic_F77=
18883 lt_prog_compiler_can_build_shared_F77=no
18884fi
18885
18886fi
18887case "$host_os" in
18888 # For platforms which do not support PIC, -DPIC is meaningless:
18889 *djgpp*)
18890 lt_prog_compiler_pic_F77=
18891 ;;
18892 *)
18893 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18894 ;;
18895esac
18896
18897echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18898echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18899if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901else
18902 lt_cv_prog_compiler_c_o_F77=no
18903 $rm -r conftest 2>/dev/null
18904 mkdir conftest
18905 cd conftest
18906 mkdir out
18907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18908
John Criswell47fdd832003-07-14 16:52:07 +000018909 lt_compiler_flag="-o out/conftest2.$ac_objext"
18910 # Insert the option either (1) after the last *FLAGS variable, or
18911 # (2) before a word containing "conftest.", or (3) at the end.
18912 # Note that $ac_compile itself does not contain backslashes and begins
18913 # with a dollar sign (not a hyphen), so the echo should work correctly.
18914 lt_compile=`echo "$ac_compile" | $SED \
18915 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18917 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000018918 (eval echo "\"\$as_me:18918: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018919 (eval "$lt_compile" 2>out/conftest.err)
18920 ac_status=$?
18921 cat out/conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000018922 echo "$as_me:18922: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18924 then
18925 # The compiler can only warn and ignore the option if not recognized
18926 # So say no if there are warnings
18927 if test ! -s out/conftest.err; then
18928 lt_cv_prog_compiler_c_o_F77=yes
18929 fi
18930 fi
18931 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018932 $rm conftest*
18933 # SGI C++ compiler will create directory out/ii_files/ for
18934 # template instantiation
18935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18936 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018937 cd ..
18938 rmdir conftest
18939 $rm conftest*
18940
18941fi
18942echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18943echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18944
18945
18946hard_links="nottested"
18947if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18948 # do not overwrite the value of need_locks provided by the user
18949 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18950echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18951 hard_links=yes
18952 $rm conftest*
18953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18954 touch conftest.a
18955 ln conftest.a conftest.b 2>&5 || hard_links=no
18956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18957 echo "$as_me:$LINENO: result: $hard_links" >&5
18958echo "${ECHO_T}$hard_links" >&6
18959 if test "$hard_links" = no; then
18960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18961echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18962 need_locks=warn
18963 fi
18964else
18965 need_locks=no
18966fi
18967
18968echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18969echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18970
18971 runpath_var=
18972 allow_undefined_flag_F77=
18973 enable_shared_with_static_runtimes_F77=no
18974 archive_cmds_F77=
18975 archive_expsym_cmds_F77=
18976 old_archive_From_new_cmds_F77=
18977 old_archive_from_expsyms_cmds_F77=
18978 export_dynamic_flag_spec_F77=
18979 whole_archive_flag_spec_F77=
18980 thread_safe_flag_spec_F77=
18981 hardcode_libdir_flag_spec_F77=
18982 hardcode_libdir_flag_spec_ld_F77=
18983 hardcode_libdir_separator_F77=
18984 hardcode_direct_F77=no
18985 hardcode_minus_L_F77=no
18986 hardcode_shlibpath_var_F77=unsupported
18987 link_all_deplibs_F77=unknown
18988 hardcode_automatic_F77=no
18989 module_cmds_F77=
18990 module_expsym_cmds_F77=
18991 always_export_symbols_F77=no
18992 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18993 # include_expsyms should be a list of space-separated symbols to be *always*
18994 # included in the symbol list
18995 include_expsyms_F77=
18996 # exclude_expsyms can be an extended regexp of symbols to exclude
18997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18999 # as well as any symbol that contains `d'.
19000 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19002 # platforms (ab)use it in PIC code, but their linkers get confused if
19003 # the symbol is explicitly referenced. Since portable code cannot
19004 # rely on this symbol name, it's probably fine to never include it in
19005 # preloaded symbol tables.
19006 extract_expsyms_cmds=
19007
19008 case $host_os in
19009 cygwin* | mingw* | pw32*)
19010 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19011 # When not using gcc, we currently assume that we are using
19012 # Microsoft Visual C++.
19013 if test "$GCC" != yes; then
19014 with_gnu_ld=no
19015 fi
19016 ;;
19017 openbsd*)
19018 with_gnu_ld=no
19019 ;;
19020 esac
19021
19022 ld_shlibs_F77=yes
19023 if test "$with_gnu_ld" = yes; then
19024 # If archive_cmds runs LD, not CC, wlarc should be empty
19025 wlarc='${wl}'
19026
19027 # See if GNU ld supports shared libraries.
19028 case $host_os in
19029 aix3* | aix4* | aix5*)
19030 # On AIX/PPC, the GNU linker is very broken
19031 if test "$host_cpu" != ia64; then
19032 ld_shlibs_F77=no
19033 cat <<EOF 1>&2
19034
19035*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19036*** to be unable to reliably create shared libraries on AIX.
19037*** Therefore, libtool is disabling shared libraries support. If you
19038*** really care for shared libraries, you may want to modify your PATH
19039*** so that a non-GNU linker is found, and then restart.
19040
19041EOF
19042 fi
19043 ;;
19044
19045 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019046 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 +000019047 hardcode_libdir_flag_spec_F77='-L$libdir'
19048 hardcode_minus_L_F77=yes
19049
19050 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19051 # that the semantics of dynamic libraries on AmigaOS, at least up
19052 # to version 4, is to share data among multiple programs linked
19053 # with the same dynamic library. Since this doesn't match the
19054 # behavior of shared libraries on other platforms, we can't use
19055 # them.
19056 ld_shlibs_F77=no
19057 ;;
19058
19059 beos*)
19060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19061 allow_undefined_flag_F77=unsupported
19062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19063 # support --undefined. This deserves some investigation. FIXME
19064 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19065 else
19066 ld_shlibs_F77=no
19067 fi
19068 ;;
19069
19070 cygwin* | mingw* | pw32*)
19071 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19072 # as there is no search path for DLLs.
19073 hardcode_libdir_flag_spec_F77='-L$libdir'
19074 allow_undefined_flag_F77=unsupported
19075 always_export_symbols_F77=no
19076 enable_shared_with_static_runtimes_F77=yes
19077 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19078
19079 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19080 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19081 # If the export-symbols file already is a .def file (1st line
19082 # is EXPORTS), use it as is; otherwise, prepend...
19083 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19084 cp $export_symbols $output_objdir/$soname.def;
19085 else
19086 echo EXPORTS > $output_objdir/$soname.def;
19087 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019088 fi~
19089 $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 +000019090 else
19091 ld_shlibs=no
19092 fi
19093 ;;
19094
19095 netbsd*)
19096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19097 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19098 wlarc=
19099 else
19100 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19101 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19102 fi
19103 ;;
19104
19105 solaris* | sysv5*)
19106 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19107 ld_shlibs_F77=no
19108 cat <<EOF 1>&2
19109
19110*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19111*** create shared libraries on Solaris systems. Therefore, libtool
19112*** is disabling shared libraries support. We urge you to upgrade GNU
19113*** binutils to release 2.9.1 or newer. Another option is to modify
19114*** your PATH or compiler configuration so that the native linker is
19115*** used, and then restart.
19116
19117EOF
19118 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19119 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19120 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19121 else
19122 ld_shlibs_F77=no
19123 fi
19124 ;;
19125
19126 sunos4*)
19127 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19128 wlarc=
19129 hardcode_direct_F77=yes
19130 hardcode_shlibpath_var_F77=no
19131 ;;
19132
Reid Spencer2706f8c2004-09-19 23:53:36 +000019133 linux*)
19134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19135 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19136 archive_cmds_F77="$tmp_archive_cmds"
19137 supports_anon_versioning=no
19138 case `$LD -v 2>/dev/null` in
19139 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19142 *\ 2.11.*) ;; # other 2.11 versions
19143 *) supports_anon_versioning=yes ;;
19144 esac
19145 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019146 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19147cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19148$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019149 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19150 else
19151 archive_expsym_cmds_F77="$tmp_archive_cmds"
19152 fi
19153 else
19154 ld_shlibs_F77=no
19155 fi
19156 ;;
19157
John Criswell47fdd832003-07-14 16:52:07 +000019158 *)
19159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19160 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19162 else
19163 ld_shlibs_F77=no
19164 fi
19165 ;;
19166 esac
19167
19168 if test "$ld_shlibs_F77" = yes; then
19169 runpath_var=LD_RUN_PATH
19170 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19171 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19172 # ancient GNU ld didn't support --whole-archive et. al.
19173 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19174 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19175 else
19176 whole_archive_flag_spec_F77=
19177 fi
19178 fi
19179 else
19180 # PORTME fill in a description of your system's linker (not GNU ld)
19181 case $host_os in
19182 aix3*)
19183 allow_undefined_flag_F77=unsupported
19184 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019185 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 +000019186 # Note: this linker hardcodes the directories in LIBPATH if there
19187 # are no directories specified by -L.
19188 hardcode_minus_L_F77=yes
19189 if test "$GCC" = yes && test -z "$link_static_flag"; then
19190 # Neither direct hardcoding nor static linking is supported with a
19191 # broken collect2.
19192 hardcode_direct_F77=unsupported
19193 fi
19194 ;;
19195
19196 aix4* | aix5*)
19197 if test "$host_cpu" = ia64; then
19198 # On IA64, the linker does run time linking by default, so we don't
19199 # have to do anything special.
19200 aix_use_runtimelinking=no
19201 exp_sym_flag='-Bexport'
19202 no_entry_flag=""
19203 else
19204 # If we're using GNU nm, then we don't want the "-C" option.
19205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19206 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19207 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'
19208 else
19209 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'
19210 fi
19211 aix_use_runtimelinking=no
19212
19213 # Test if we are trying to use run time linking or normal
19214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19215 # need to do runtime linking.
19216 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19217 for ld_flag in $LDFLAGS; do
19218 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19219 aix_use_runtimelinking=yes
19220 break
19221 fi
19222 done
19223 esac
19224
19225 exp_sym_flag='-bexport'
19226 no_entry_flag='-bnoentry'
19227 fi
19228
19229 # When large executables or shared objects are built, AIX ld can
19230 # have problems creating the table of contents. If linking a library
19231 # or program results in "error TOC overflow" add -mminimal-toc to
19232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19234
19235 archive_cmds_F77=''
19236 hardcode_direct_F77=yes
19237 hardcode_libdir_separator_F77=':'
19238 link_all_deplibs_F77=yes
19239
19240 if test "$GCC" = yes; then
19241 case $host_os in aix4.012|aix4.012.*)
19242 # We only want to do this on AIX 4.2 and lower, the check
19243 # below for broken collect2 doesn't work under 4.3+
19244 collect2name=`${CC} -print-prog-name=collect2`
19245 if test -f "$collect2name" && \
19246 strings "$collect2name" | grep resolve_lib_name >/dev/null
19247 then
19248 # We have reworked collect2
19249 hardcode_direct_F77=yes
19250 else
19251 # We have old collect2
19252 hardcode_direct_F77=unsupported
19253 # It fails to find uninstalled libraries when the uninstalled
19254 # path is not listed in the libpath. Setting hardcode_minus_L
19255 # to unsupported forces relinking
19256 hardcode_minus_L_F77=yes
19257 hardcode_libdir_flag_spec_F77='-L$libdir'
19258 hardcode_libdir_separator_F77=
19259 fi
19260 esac
19261 shared_flag='-shared'
19262 else
19263 # not using gcc
19264 if test "$host_cpu" = ia64; then
19265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19266 # chokes on -Wl,-G. The following line is correct:
19267 shared_flag='-G'
19268 else
19269 if test "$aix_use_runtimelinking" = yes; then
19270 shared_flag='${wl}-G'
19271 else
19272 shared_flag='${wl}-bM:SRE'
19273 fi
19274 fi
19275 fi
19276
19277 # It seems that -bexpall does not export symbols beginning with
19278 # underscore (_), so it is better to generate a list of symbols to export.
19279 always_export_symbols_F77=yes
19280 if test "$aix_use_runtimelinking" = yes; then
19281 # Warning - without using the other runtime loading flags (-brtl),
19282 # -berok will link without error, but may produce a broken library.
19283 allow_undefined_flag_F77='-berok'
19284 # Determine the default libpath from the value encoded in an empty executable.
19285 cat >conftest.$ac_ext <<_ACEOF
19286 program main
19287
19288 end
19289_ACEOF
19290rm -f conftest.$ac_objext conftest$ac_exeext
19291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019292 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019299 { ac_try='test -z "$ac_f77_werror_flag"
19300 || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312
19313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19314}'`
19315# Check for a 64-bit object if we didn't find anything.
19316if 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; }
19317}'`; fi
19318else
19319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019320sed 's/^/| /' conftest.$ac_ext >&5
19321
John Criswell47fdd832003-07-14 16:52:07 +000019322fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019323rm -f conftest.err conftest.$ac_objext \
19324 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19326
19327 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19328 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"
19329 else
19330 if test "$host_cpu" = ia64; then
19331 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19332 allow_undefined_flag_F77="-z nodefs"
19333 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"
19334 else
19335 # Determine the default libpath from the value encoded in an empty executable.
19336 cat >conftest.$ac_ext <<_ACEOF
19337 program main
19338
19339 end
19340_ACEOF
19341rm -f conftest.$ac_objext conftest$ac_exeext
19342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019343 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019350 { ac_try='test -z "$ac_f77_werror_flag"
19351 || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19363
19364aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19365}'`
19366# Check for a 64-bit object if we didn't find anything.
19367if 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; }
19368}'`; fi
19369else
19370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019371sed 's/^/| /' conftest.$ac_ext >&5
19372
John Criswell47fdd832003-07-14 16:52:07 +000019373fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019374rm -f conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019376if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19377
19378 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19379 # Warning - without using the other run time loading flags,
19380 # -berok will link without error, but may produce a broken library.
19381 no_undefined_flag_F77=' ${wl}-bernotok'
19382 allow_undefined_flag_F77=' ${wl}-berok'
19383 # -bexpall does not export symbols beginning with underscore (_)
19384 always_export_symbols_F77=yes
19385 # Exported symbols can be pulled into shared objects from archives
19386 whole_archive_flag_spec_F77=' '
19387 archive_cmds_need_lc_F77=yes
19388 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019389 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 +000019390 fi
19391 fi
19392 ;;
19393
19394 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019395 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 +000019396 hardcode_libdir_flag_spec_F77='-L$libdir'
19397 hardcode_minus_L_F77=yes
19398 # see comment about different semantics on the GNU ld section
19399 ld_shlibs_F77=no
19400 ;;
19401
Reid Spencer2706f8c2004-09-19 23:53:36 +000019402 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019403 export_dynamic_flag_spec_F77=-rdynamic
19404 ;;
19405
19406 cygwin* | mingw* | pw32*)
19407 # When not using gcc, we currently assume that we are using
19408 # Microsoft Visual C++.
19409 # hardcode_libdir_flag_spec is actually meaningless, as there is
19410 # no search path for DLLs.
19411 hardcode_libdir_flag_spec_F77=' '
19412 allow_undefined_flag_F77=unsupported
19413 # Tell ltmain to make .lib files, not .a files.
19414 libext=lib
19415 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019416 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019417 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019418 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 +000019419 # The linker will automatically build a .lib file if we build a DLL.
19420 old_archive_From_new_cmds_F77='true'
19421 # FIXME: Should let the user specify the lib program.
19422 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19423 fix_srcfile_path='`cygpath -w "$srcfile"`'
19424 enable_shared_with_static_runtimes_F77=yes
19425 ;;
19426
19427 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019428 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019429 rhapsody* | darwin1.[012])
19430 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19431 ;;
19432 *) # Darwin 1.3 on
19433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19434 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19435 else
19436 case ${MACOSX_DEPLOYMENT_TARGET} in
19437 10.[012])
19438 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19439 ;;
19440 10.*)
19441 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19442 ;;
19443 esac
19444 fi
19445 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019446 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019447 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019448 hardcode_direct_F77=no
19449 hardcode_automatic_F77=yes
19450 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019451 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019452 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019453 if test "$GCC" = yes ; then
19454 output_verbose_link_cmd='echo'
19455 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19456 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19457 # 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 +000019458 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}'
19459 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 +000019460 else
19461 case "$cc_basename" in
19462 xlc*)
19463 output_verbose_link_cmd='echo'
19464 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19465 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19466 # 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 +000019467 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}'
19468 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 +000019469 ;;
19470 *)
19471 ld_shlibs_F77=no
19472 ;;
19473 esac
John Criswell47fdd832003-07-14 16:52:07 +000019474 fi
19475 ;;
19476
19477 dgux*)
19478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19479 hardcode_libdir_flag_spec_F77='-L$libdir'
19480 hardcode_shlibpath_var_F77=no
19481 ;;
19482
19483 freebsd1*)
19484 ld_shlibs_F77=no
19485 ;;
19486
19487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19488 # support. Future versions do this automatically, but an explicit c++rt0.o
19489 # does not break anything, and helps significantly (at the cost of a little
19490 # extra space).
19491 freebsd2.2*)
19492 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19493 hardcode_libdir_flag_spec_F77='-R$libdir'
19494 hardcode_direct_F77=yes
19495 hardcode_shlibpath_var_F77=no
19496 ;;
19497
19498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19499 freebsd2*)
19500 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19501 hardcode_direct_F77=yes
19502 hardcode_minus_L_F77=yes
19503 hardcode_shlibpath_var_F77=no
19504 ;;
19505
19506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019507 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019508 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19509 hardcode_libdir_flag_spec_F77='-R$libdir'
19510 hardcode_direct_F77=yes
19511 hardcode_shlibpath_var_F77=no
19512 ;;
19513
19514 hpux9*)
19515 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019516 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 +000019517 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019518 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 +000019519 fi
19520 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_F77=:
19522 hardcode_direct_F77=yes
19523
19524 # hardcode_minus_L: Not really in the search PATH,
19525 # but as the default location of the library.
19526 hardcode_minus_L_F77=yes
19527 export_dynamic_flag_spec_F77='${wl}-E'
19528 ;;
19529
19530 hpux10* | hpux11*)
19531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19532 case "$host_cpu" in
19533 hppa*64*|ia64*)
19534 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 ;;
19536 *)
19537 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19538 ;;
19539 esac
19540 else
19541 case "$host_cpu" in
19542 hppa*64*|ia64*)
19543 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19544 ;;
19545 *)
19546 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19547 ;;
19548 esac
19549 fi
19550 if test "$with_gnu_ld" = no; then
19551 case "$host_cpu" in
19552 hppa*64*)
19553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19554 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19555 hardcode_libdir_separator_F77=:
19556 hardcode_direct_F77=no
19557 hardcode_shlibpath_var_F77=no
19558 ;;
19559 ia64*)
19560 hardcode_libdir_flag_spec_F77='-L$libdir'
19561 hardcode_direct_F77=no
19562 hardcode_shlibpath_var_F77=no
19563
19564 # hardcode_minus_L: Not really in the search PATH,
19565 # but as the default location of the library.
19566 hardcode_minus_L_F77=yes
19567 ;;
19568 *)
19569 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19570 hardcode_libdir_separator_F77=:
19571 hardcode_direct_F77=yes
19572 export_dynamic_flag_spec_F77='${wl}-E'
19573
19574 # hardcode_minus_L: Not really in the search PATH,
19575 # but as the default location of the library.
19576 hardcode_minus_L_F77=yes
19577 ;;
19578 esac
19579 fi
19580 ;;
19581
19582 irix5* | irix6* | nonstopux*)
19583 if test "$GCC" = yes; then
19584 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'
19585 else
19586 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'
19587 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19588 fi
19589 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19590 hardcode_libdir_separator_F77=:
19591 link_all_deplibs_F77=yes
19592 ;;
19593
19594 netbsd*)
19595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19597 else
19598 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19599 fi
19600 hardcode_libdir_flag_spec_F77='-R$libdir'
19601 hardcode_direct_F77=yes
19602 hardcode_shlibpath_var_F77=no
19603 ;;
19604
19605 newsos6)
19606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19607 hardcode_direct_F77=yes
19608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19609 hardcode_libdir_separator_F77=:
19610 hardcode_shlibpath_var_F77=no
19611 ;;
19612
19613 openbsd*)
19614 hardcode_direct_F77=yes
19615 hardcode_shlibpath_var_F77=no
19616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019618 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 +000019619 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19620 export_dynamic_flag_spec_F77='${wl}-E'
19621 else
19622 case $host_os in
19623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19625 hardcode_libdir_flag_spec_F77='-R$libdir'
19626 ;;
19627 *)
19628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19629 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19630 ;;
19631 esac
19632 fi
19633 ;;
19634
19635 os2*)
19636 hardcode_libdir_flag_spec_F77='-L$libdir'
19637 hardcode_minus_L_F77=yes
19638 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019639 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 +000019640 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19641 ;;
19642
19643 osf3*)
19644 if test "$GCC" = yes; then
19645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19646 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'
19647 else
19648 allow_undefined_flag_F77=' -expect_unresolved \*'
19649 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'
19650 fi
19651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19652 hardcode_libdir_separator_F77=:
19653 ;;
19654
19655 osf4* | osf5*) # as osf3* with the addition of -msym flag
19656 if test "$GCC" = yes; then
19657 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19658 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'
19659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19660 else
19661 allow_undefined_flag_F77=' -expect_unresolved \*'
19662 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 +000019663 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~
19664 $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'
19665
John Criswell47fdd832003-07-14 16:52:07 +000019666 # Both c and cxx compiler support -rpath directly
19667 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19668 fi
19669 hardcode_libdir_separator_F77=:
19670 ;;
19671
19672 sco3.2v5*)
19673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19674 hardcode_shlibpath_var_F77=no
19675 export_dynamic_flag_spec_F77='${wl}-Bexport'
19676 runpath_var=LD_RUN_PATH
19677 hardcode_runpath_var=yes
19678 ;;
19679
19680 solaris*)
19681 no_undefined_flag_F77=' -z text'
19682 if test "$GCC" = yes; then
19683 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019684 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19685 $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 +000019686 else
19687 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019688 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19689 $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 +000019690 fi
19691 hardcode_libdir_flag_spec_F77='-R$libdir'
19692 hardcode_shlibpath_var_F77=no
19693 case $host_os in
19694 solaris2.[0-5] | solaris2.[0-5].*) ;;
19695 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19696 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19697 esac
19698 link_all_deplibs_F77=yes
19699 ;;
19700
19701 sunos4*)
19702 if test "x$host_vendor" = xsequent; then
19703 # Use $CC to link under sequent, because it throws in some extra .o
19704 # files that make .init and .fini sections work.
19705 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19706 else
19707 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19708 fi
19709 hardcode_libdir_flag_spec_F77='-L$libdir'
19710 hardcode_direct_F77=yes
19711 hardcode_minus_L_F77=yes
19712 hardcode_shlibpath_var_F77=no
19713 ;;
19714
19715 sysv4)
19716 case $host_vendor in
19717 sni)
19718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_direct_F77=yes # is this really true???
19720 ;;
19721 siemens)
19722 ## LD is ld it makes a PLAMLIB
19723 ## CC just makes a GrossModule.
19724 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19725 reload_cmds_F77='$CC -r -o $output$reload_objs'
19726 hardcode_direct_F77=no
19727 ;;
19728 motorola)
19729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19731 ;;
19732 esac
19733 runpath_var='LD_RUN_PATH'
19734 hardcode_shlibpath_var_F77=no
19735 ;;
19736
19737 sysv4.3*)
19738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19739 hardcode_shlibpath_var_F77=no
19740 export_dynamic_flag_spec_F77='-Bexport'
19741 ;;
19742
19743 sysv4*MP*)
19744 if test -d /usr/nec; then
19745 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19746 hardcode_shlibpath_var_F77=no
19747 runpath_var=LD_RUN_PATH
19748 hardcode_runpath_var=yes
19749 ld_shlibs_F77=yes
19750 fi
19751 ;;
19752
19753 sysv4.2uw2*)
19754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755 hardcode_direct_F77=yes
19756 hardcode_minus_L_F77=no
19757 hardcode_shlibpath_var_F77=no
19758 hardcode_runpath_var=yes
19759 runpath_var=LD_RUN_PATH
19760 ;;
19761
19762 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19763 no_undefined_flag_F77='${wl}-z ${wl}text'
19764 if test "$GCC" = yes; then
19765 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19766 else
19767 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 fi
19769 runpath_var='LD_RUN_PATH'
19770 hardcode_shlibpath_var_F77=no
19771 ;;
19772
19773 sysv5*)
19774 no_undefined_flag_F77=' -z text'
19775 # $CC -shared without GNU ld will not create a library from C++
19776 # object files and a static libstdc++, better avoid it by now
19777 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19779 $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 +000019780 hardcode_libdir_flag_spec_F77=
19781 hardcode_shlibpath_var_F77=no
19782 runpath_var='LD_RUN_PATH'
19783 ;;
19784
19785 uts4*)
19786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787 hardcode_libdir_flag_spec_F77='-L$libdir'
19788 hardcode_shlibpath_var_F77=no
19789 ;;
19790
19791 *)
19792 ld_shlibs_F77=no
19793 ;;
19794 esac
19795 fi
19796
19797echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19798echo "${ECHO_T}$ld_shlibs_F77" >&6
19799test "$ld_shlibs_F77" = no && can_build_shared=no
19800
19801variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19802if test "$GCC" = yes; then
19803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19804fi
19805
19806#
19807# Do we need to explicitly link libc?
19808#
19809case "x$archive_cmds_need_lc_F77" in
19810x|xyes)
19811 # Assume -lc should be added
19812 archive_cmds_need_lc_F77=yes
19813
19814 if test "$enable_shared" = yes && test "$GCC" = yes; then
19815 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019816 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019817 # FIXME: we may have to deal with multi-command sequences.
19818 ;;
19819 '$CC '*)
19820 # Test whether the compiler implicitly links with -lc since on some
19821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19822 # to ld, don't add -lc before -lgcc.
19823 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19824echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19825 $rm conftest*
19826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19827
19828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829 (eval $ac_compile) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } 2>conftest.err; then
19833 soname=conftest
19834 lib=conftest
19835 libobjs=conftest.$ac_objext
19836 deplibs=
19837 wl=$lt_prog_compiler_wl_F77
19838 compiler_flags=-v
19839 linker_flags=-v
19840 verstring=
19841 output_objdir=.
19842 libname=conftest
19843 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19844 allow_undefined_flag_F77=
19845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19846 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }
19850 then
19851 archive_cmds_need_lc_F77=no
19852 else
19853 archive_cmds_need_lc_F77=yes
19854 fi
19855 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19856 else
19857 cat conftest.err 1>&5
19858 fi
19859 $rm conftest*
19860 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19861echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19862 ;;
19863 esac
19864 fi
19865 ;;
19866esac
19867
John Criswell47fdd832003-07-14 16:52:07 +000019868echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19869echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19870library_names_spec=
19871libname_spec='lib$name'
19872soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019873shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019874postinstall_cmds=
19875postuninstall_cmds=
19876finish_cmds=
19877finish_eval=
19878shlibpath_var=
19879shlibpath_overrides_runpath=unknown
19880version_type=none
19881dynamic_linker="$host_os ld.so"
19882sys_lib_dlsearch_path_spec="/lib /usr/lib"
19883if test "$GCC" = yes; then
19884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19886 # if the path contains ";" then we assume it to be the separator
19887 # otherwise default to the standard path separator (i.e. ":") - it is
19888 # assumed that no part of a normal pathname contains ";" but that should
19889 # okay in the real world where ";" in dirpaths is itself problematic.
19890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19891 else
19892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19893 fi
19894else
19895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19896fi
19897need_lib_prefix=unknown
19898hardcode_into_libs=no
19899
19900# when you set need_version to no, make sure it does not cause -set_version
19901# flags to be left without arguments
19902need_version=unknown
19903
19904case $host_os in
19905aix3*)
19906 version_type=linux
19907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19908 shlibpath_var=LIBPATH
19909
19910 # AIX 3 has no versioning support, so we append a major version to the name.
19911 soname_spec='${libname}${release}${shared_ext}$major'
19912 ;;
19913
19914aix4* | aix5*)
19915 version_type=linux
19916 need_lib_prefix=no
19917 need_version=no
19918 hardcode_into_libs=yes
19919 if test "$host_cpu" = ia64; then
19920 # AIX 5 supports IA64
19921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19922 shlibpath_var=LD_LIBRARY_PATH
19923 else
19924 # With GCC up to 2.95.x, collect2 would create an import file
19925 # for dependence libraries. The import file would start with
19926 # the line `#! .'. This would cause the generated library to
19927 # depend on `.', always an invalid library. This was fixed in
19928 # development snapshots of GCC prior to 3.0.
19929 case $host_os in
19930 aix4 | aix4.[01] | aix4.[01].*)
19931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19932 echo ' yes '
19933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19934 :
19935 else
19936 can_build_shared=no
19937 fi
19938 ;;
19939 esac
19940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19941 # soname into executable. Probably we can add versioning support to
19942 # collect2, so additional links can be useful in future.
19943 if test "$aix_use_runtimelinking" = yes; then
19944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19945 # instead of lib<name>.a to let people know that these are not
19946 # typical AIX shared libraries.
19947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19948 else
19949 # We preserve .a as extension for shared libraries through AIX4.2
19950 # and later when we are not doing run time linking.
19951 library_names_spec='${libname}${release}.a $libname.a'
19952 soname_spec='${libname}${release}${shared_ext}$major'
19953 fi
19954 shlibpath_var=LIBPATH
19955 fi
19956 ;;
19957
19958amigaos*)
19959 library_names_spec='$libname.ixlibrary $libname.a'
19960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019961 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 +000019962 ;;
19963
19964beos*)
19965 library_names_spec='${libname}${shared_ext}'
19966 dynamic_linker="$host_os ld.so"
19967 shlibpath_var=LIBRARY_PATH
19968 ;;
19969
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019971 version_type=linux
19972 need_version=no
19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19974 soname_spec='${libname}${release}${shared_ext}$major'
19975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19976 shlibpath_var=LD_LIBRARY_PATH
19977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19979 # the default ld.so.conf also contains /usr/contrib/lib and
19980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19981 # libtool to hard-code these into programs
19982 ;;
19983
19984cygwin* | mingw* | pw32*)
19985 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019986 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019987 need_version=no
19988 need_lib_prefix=no
19989
19990 case $GCC,$host_os in
19991 yes,cygwin* | yes,mingw* | yes,pw32*)
19992 library_names_spec='$libname.dll.a'
19993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019994 postinstall_cmds='base_file=`basename \${file}`~
19995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19996 dldir=$destdir/`dirname \$dlpath`~
19997 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000019998 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20000 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020001 $rm \$dlpath'
20002 shlibpath_overrides_runpath=yes
20003
20004 case $host_os in
20005 cygwin*)
20006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20007 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 +000020008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020009 ;;
20010 mingw*)
20011 # MinGW DLLs use traditional 'lib' prefix
20012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20014 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20015 # It is most probably a Windows format PATH printed by
20016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20017 # path with ; separators, and with drive letters. We can handle the
20018 # drive letters (cygwin fileutils understands them), so leave them,
20019 # especially as we might pass files found there to a mingw objdump,
20020 # which wouldn't understand a cygwinified path. Ahh.
20021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022 else
20023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20024 fi
20025 ;;
20026 pw32*)
20027 # pw32 DLLs use 'pw' prefix rather than 'lib'
20028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20029 ;;
20030 esac
20031 ;;
20032
20033 *)
20034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20035 ;;
20036 esac
20037 dynamic_linker='Win32 ld.exe'
20038 # FIXME: first we should search . and the directory the executable is in
20039 shlibpath_var=PATH
20040 ;;
20041
20042darwin* | rhapsody*)
20043 dynamic_linker="$host_os dyld"
20044 version_type=darwin
20045 need_lib_prefix=no
20046 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020047 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020048 soname_spec='${libname}${release}${major}$shared_ext'
20049 shlibpath_overrides_runpath=yes
20050 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020051 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020052 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020053 if test "$GCC" = yes; then
20054 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"`
20055 else
20056 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020057 fi
20058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20059 ;;
20060
20061dgux*)
20062 version_type=linux
20063 need_lib_prefix=no
20064 need_version=no
20065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20067 shlibpath_var=LD_LIBRARY_PATH
20068 ;;
20069
20070freebsd1*)
20071 dynamic_linker=no
20072 ;;
20073
Reid Spencer2706f8c2004-09-19 23:53:36 +000020074kfreebsd*-gnu)
20075 version_type=linux
20076 need_lib_prefix=no
20077 need_version=no
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20079 soname_spec='${libname}${release}${shared_ext}$major'
20080 shlibpath_var=LD_LIBRARY_PATH
20081 shlibpath_overrides_runpath=no
20082 hardcode_into_libs=yes
20083 dynamic_linker='GNU ld.so'
20084 ;;
20085
John Criswell47fdd832003-07-14 16:52:07 +000020086freebsd*)
20087 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20088 version_type=freebsd-$objformat
20089 case $version_type in
20090 freebsd-elf*)
20091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20092 need_version=no
20093 need_lib_prefix=no
20094 ;;
20095 freebsd-*)
20096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20097 need_version=yes
20098 ;;
20099 esac
20100 shlibpath_var=LD_LIBRARY_PATH
20101 case $host_os in
20102 freebsd2*)
20103 shlibpath_overrides_runpath=yes
20104 ;;
20105 freebsd3.01* | freebsdelf3.01*)
20106 shlibpath_overrides_runpath=yes
20107 hardcode_into_libs=yes
20108 ;;
20109 *) # from 3.2 on
20110 shlibpath_overrides_runpath=no
20111 hardcode_into_libs=yes
20112 ;;
20113 esac
20114 ;;
20115
20116gnu*)
20117 version_type=linux
20118 need_lib_prefix=no
20119 need_version=no
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 hardcode_into_libs=yes
20124 ;;
20125
20126hpux9* | hpux10* | hpux11*)
20127 # Give a soname corresponding to the major version so that dld.sl refuses to
20128 # link against other versions.
20129 version_type=sunos
20130 need_lib_prefix=no
20131 need_version=no
20132 case "$host_cpu" in
20133 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020134 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020135 hardcode_into_libs=yes
20136 dynamic_linker="$host_os dld.so"
20137 shlibpath_var=LD_LIBRARY_PATH
20138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 if test "X$HPUX_IA64_MODE" = X32; then
20142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20143 else
20144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20145 fi
20146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20147 ;;
20148 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020149 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020150 hardcode_into_libs=yes
20151 dynamic_linker="$host_os dld.sl"
20152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155 soname_spec='${libname}${release}${shared_ext}$major'
20156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20158 ;;
20159 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020160 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020161 dynamic_linker="$host_os dld.sl"
20162 shlibpath_var=SHLIB_PATH
20163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 soname_spec='${libname}${release}${shared_ext}$major'
20166 ;;
20167 esac
20168 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20169 postinstall_cmds='chmod 555 $lib'
20170 ;;
20171
20172irix5* | irix6* | nonstopux*)
20173 case $host_os in
20174 nonstopux*) version_type=nonstopux ;;
20175 *)
20176 if test "$lt_cv_prog_gnu_ld" = yes; then
20177 version_type=linux
20178 else
20179 version_type=irix
20180 fi ;;
20181 esac
20182 need_lib_prefix=no
20183 need_version=no
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20186 case $host_os in
20187 irix5* | nonstopux*)
20188 libsuff= shlibsuff=
20189 ;;
20190 *)
20191 case $LD in # libtool.m4 will add one of these switches to LD
20192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20193 libsuff= shlibsuff= libmagic=32-bit;;
20194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20195 libsuff=32 shlibsuff=N32 libmagic=N32;;
20196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20198 *) libsuff= shlibsuff= libmagic=never-match;;
20199 esac
20200 ;;
20201 esac
20202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20203 shlibpath_overrides_runpath=no
20204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20206 hardcode_into_libs=yes
20207 ;;
20208
20209# No shared lib support for Linux oldld, aout, or coff.
20210linux*oldld* | linux*aout* | linux*coff*)
20211 dynamic_linker=no
20212 ;;
20213
20214# This must be Linux ELF.
20215linux*)
20216 version_type=linux
20217 need_lib_prefix=no
20218 need_version=no
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20220 soname_spec='${libname}${release}${shared_ext}$major'
20221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20222 shlibpath_var=LD_LIBRARY_PATH
20223 shlibpath_overrides_runpath=no
20224 # This implies no fast_install, which is unacceptable.
20225 # Some rework will be needed to allow for fast_install
20226 # before this can be enabled.
20227 hardcode_into_libs=yes
20228
Reid Spencer2706f8c2004-09-19 23:53:36 +000020229 # Append ld.so.conf contents to the search path
20230 if test -f /etc/ld.so.conf; then
20231 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20233 fi
20234
John Criswell47fdd832003-07-14 16:52:07 +000020235 # We used to test for /lib/ld.so.1 and disable shared libraries on
20236 # powerpc, because MkLinux only supported shared libraries with the
20237 # GNU dynamic linker. Since this was broken with cross compilers,
20238 # most powerpc-linux boxes support dynamic linking these days and
20239 # people can always --disable-shared, the test was removed, and we
20240 # assume the GNU/Linux dynamic linker is in use.
20241 dynamic_linker='GNU/Linux ld.so'
20242 ;;
20243
Reid Spencer2706f8c2004-09-19 23:53:36 +000020244knetbsd*-gnu)
20245 version_type=linux
20246 need_lib_prefix=no
20247 need_version=no
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20249 soname_spec='${libname}${release}${shared_ext}$major'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 shlibpath_overrides_runpath=no
20252 hardcode_into_libs=yes
20253 dynamic_linker='GNU ld.so'
20254 ;;
20255
John Criswell47fdd832003-07-14 16:52:07 +000020256netbsd*)
20257 version_type=sunos
20258 need_lib_prefix=no
20259 need_version=no
20260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20263 dynamic_linker='NetBSD (a.out) ld.so'
20264 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020266 soname_spec='${libname}${release}${shared_ext}$major'
20267 dynamic_linker='NetBSD ld.elf_so'
20268 fi
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=yes
20271 hardcode_into_libs=yes
20272 ;;
20273
20274newsos6)
20275 version_type=linux
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=yes
20279 ;;
20280
Reid Spencer2706f8c2004-09-19 23:53:36 +000020281nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020282 version_type=linux
20283 need_lib_prefix=no
20284 need_version=no
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 shlibpath_overrides_runpath=yes
20289 ;;
20290
20291openbsd*)
20292 version_type=sunos
20293 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020294 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20297 shlibpath_var=LD_LIBRARY_PATH
20298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20299 case $host_os in
20300 openbsd2.[89] | openbsd2.[89].*)
20301 shlibpath_overrides_runpath=no
20302 ;;
20303 *)
20304 shlibpath_overrides_runpath=yes
20305 ;;
20306 esac
20307 else
20308 shlibpath_overrides_runpath=yes
20309 fi
20310 ;;
20311
20312os2*)
20313 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020314 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020315 need_lib_prefix=no
20316 library_names_spec='$libname${shared_ext} $libname.a'
20317 dynamic_linker='OS/2 ld.exe'
20318 shlibpath_var=LIBPATH
20319 ;;
20320
20321osf3* | osf4* | osf5*)
20322 version_type=osf
20323 need_lib_prefix=no
20324 need_version=no
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20330 ;;
20331
20332sco3.2v5*)
20333 version_type=osf
20334 soname_spec='${libname}${release}${shared_ext}$major'
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 shlibpath_var=LD_LIBRARY_PATH
20337 ;;
20338
20339solaris*)
20340 version_type=linux
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=yes
20347 hardcode_into_libs=yes
20348 # ldd complains unless libraries are executable
20349 postinstall_cmds='chmod +x $lib'
20350 ;;
20351
20352sunos4*)
20353 version_type=sunos
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=yes
20358 if test "$with_gnu_ld" = yes; then
20359 need_lib_prefix=no
20360 fi
20361 need_version=yes
20362 ;;
20363
20364sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20365 version_type=linux
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 shlibpath_var=LD_LIBRARY_PATH
20369 case $host_vendor in
20370 sni)
20371 shlibpath_overrides_runpath=no
20372 need_lib_prefix=no
20373 export_dynamic_flag_spec='${wl}-Blargedynsym'
20374 runpath_var=LD_RUN_PATH
20375 ;;
20376 siemens)
20377 need_lib_prefix=no
20378 ;;
20379 motorola)
20380 need_lib_prefix=no
20381 need_version=no
20382 shlibpath_overrides_runpath=no
20383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20384 ;;
20385 esac
20386 ;;
20387
20388sysv4*MP*)
20389 if test -d /usr/nec ;then
20390 version_type=linux
20391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20392 soname_spec='$libname${shared_ext}.$major'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 fi
20395 ;;
20396
20397uts4*)
20398 version_type=linux
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 ;;
20403
20404*)
20405 dynamic_linker=no
20406 ;;
20407esac
20408echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20409echo "${ECHO_T}$dynamic_linker" >&6
20410test "$dynamic_linker" = no && can_build_shared=no
20411
Reid Spencer2706f8c2004-09-19 23:53:36 +000020412echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20413echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20414hardcode_action_F77=
20415if test -n "$hardcode_libdir_flag_spec_F77" || \
20416 test -n "$runpath_var_F77" || \
20417 test "X$hardcode_automatic_F77" = "Xyes" ; then
20418
20419 # We can hardcode non-existant directories.
20420 if test "$hardcode_direct_F77" != no &&
20421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20422 # have to relink, otherwise we might link with an installed library
20423 # when we should be linking with a yet-to-be-installed one
20424 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20425 test "$hardcode_minus_L_F77" != no; then
20426 # Linking always hardcodes the temporary library directory.
20427 hardcode_action_F77=relink
20428 else
20429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20430 hardcode_action_F77=immediate
20431 fi
20432else
20433 # We cannot hardcode anything, or else we can only hardcode existing
20434 # directories.
20435 hardcode_action_F77=unsupported
20436fi
20437echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20438echo "${ECHO_T}$hardcode_action_F77" >&6
20439
20440if test "$hardcode_action_F77" = relink; then
20441 # Fast installation is not supported
20442 enable_fast_install=no
20443elif test "$shlibpath_overrides_runpath" = yes ||
20444 test "$enable_shared" = no; then
20445 # Fast installation is not necessary
20446 enable_fast_install=needless
20447fi
20448
20449striplib=
20450old_striplib=
20451echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20452echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20453if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20454 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20455 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20456 echo "$as_me:$LINENO: result: yes" >&5
20457echo "${ECHO_T}yes" >&6
20458else
20459# FIXME - insert some real tests, host_os isn't really good enough
20460 case $host_os in
20461 darwin*)
20462 if test -n "$STRIP" ; then
20463 striplib="$STRIP -x"
20464 echo "$as_me:$LINENO: result: yes" >&5
20465echo "${ECHO_T}yes" >&6
20466 else
20467 echo "$as_me:$LINENO: result: no" >&5
20468echo "${ECHO_T}no" >&6
20469fi
20470 ;;
20471 *)
20472 echo "$as_me:$LINENO: result: no" >&5
20473echo "${ECHO_T}no" >&6
20474 ;;
20475 esac
20476fi
20477
20478
John Criswell47fdd832003-07-14 16:52:07 +000020479
20480# The else clause should only fire when bootstrapping the
20481# libtool distribution, otherwise you forgot to ship ltmain.sh
20482# with your package, and you will get complaints that there are
20483# no rules to generate ltmain.sh.
20484if test -f "$ltmain"; then
20485 # See if we are running on zsh, and set the options which allow our commands through
20486 # without removal of \ escapes.
20487 if test -n "${ZSH_VERSION+set}" ; then
20488 setopt NO_GLOB_SUBST
20489 fi
20490 # Now quote all the things that may contain metacharacters while being
20491 # careful not to overquote the AC_SUBSTed values. We take copies of the
20492 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20494 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20497 deplibs_check_method reload_flag reload_cmds need_locks \
20498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20499 lt_cv_sys_global_symbol_to_c_name_address \
20500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20501 old_postinstall_cmds old_postuninstall_cmds \
20502 compiler_F77 \
20503 CC_F77 \
20504 LD_F77 \
20505 lt_prog_compiler_wl_F77 \
20506 lt_prog_compiler_pic_F77 \
20507 lt_prog_compiler_static_F77 \
20508 lt_prog_compiler_no_builtin_flag_F77 \
20509 export_dynamic_flag_spec_F77 \
20510 thread_safe_flag_spec_F77 \
20511 whole_archive_flag_spec_F77 \
20512 enable_shared_with_static_runtimes_F77 \
20513 old_archive_cmds_F77 \
20514 old_archive_from_new_cmds_F77 \
20515 predep_objects_F77 \
20516 postdep_objects_F77 \
20517 predeps_F77 \
20518 postdeps_F77 \
20519 compiler_lib_search_path_F77 \
20520 archive_cmds_F77 \
20521 archive_expsym_cmds_F77 \
20522 postinstall_cmds_F77 \
20523 postuninstall_cmds_F77 \
20524 old_archive_from_expsyms_cmds_F77 \
20525 allow_undefined_flag_F77 \
20526 no_undefined_flag_F77 \
20527 export_symbols_cmds_F77 \
20528 hardcode_libdir_flag_spec_F77 \
20529 hardcode_libdir_flag_spec_ld_F77 \
20530 hardcode_libdir_separator_F77 \
20531 hardcode_automatic_F77 \
20532 module_cmds_F77 \
20533 module_expsym_cmds_F77 \
20534 lt_cv_prog_compiler_c_o_F77 \
20535 exclude_expsyms_F77 \
20536 include_expsyms_F77; do
20537
20538 case $var in
20539 old_archive_cmds_F77 | \
20540 old_archive_from_new_cmds_F77 | \
20541 archive_cmds_F77 | \
20542 archive_expsym_cmds_F77 | \
20543 module_cmds_F77 | \
20544 module_expsym_cmds_F77 | \
20545 old_archive_from_expsyms_cmds_F77 | \
20546 export_symbols_cmds_F77 | \
20547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20548 postinstall_cmds | postuninstall_cmds | \
20549 old_postinstall_cmds | old_postuninstall_cmds | \
20550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20551 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020552 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 +000020553 ;;
20554 *)
20555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20556 ;;
20557 esac
20558 done
20559
20560 case $lt_echo in
20561 *'\$0 --fallback-echo"')
20562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20563 ;;
20564 esac
20565
20566cfgfile="$ofile"
20567
20568 cat <<__EOF__ >> "$cfgfile"
20569# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20570
20571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20572
20573# Shell to use when invoking shell scripts.
20574SHELL=$lt_SHELL
20575
20576# Whether or not to build shared libraries.
20577build_libtool_libs=$enable_shared
20578
20579# Whether or not to build static libraries.
20580build_old_libs=$enable_static
20581
20582# Whether or not to add -lc for building shared libraries.
20583build_libtool_need_lc=$archive_cmds_need_lc_F77
20584
20585# Whether or not to disallow shared libs when runtime libs are static
20586allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20587
20588# Whether or not to optimize for fast installation.
20589fast_install=$enable_fast_install
20590
20591# The host system.
20592host_alias=$host_alias
20593host=$host
20594
20595# An echo program that does not interpret backslashes.
20596echo=$lt_echo
20597
20598# The archiver.
20599AR=$lt_AR
20600AR_FLAGS=$lt_AR_FLAGS
20601
20602# A C compiler.
20603LTCC=$lt_LTCC
20604
20605# A language-specific compiler.
20606CC=$lt_compiler_F77
20607
20608# Is the compiler the GNU C compiler?
20609with_gcc=$GCC_F77
20610
20611# An ERE matcher.
20612EGREP=$lt_EGREP
20613
20614# The linker used to build libraries.
20615LD=$lt_LD_F77
20616
20617# Whether we need hard or soft links.
20618LN_S=$lt_LN_S
20619
20620# A BSD-compatible nm program.
20621NM=$lt_NM
20622
20623# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020624STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020625
20626# Used to examine libraries when file_magic_cmd begins "file"
20627MAGIC_CMD=$MAGIC_CMD
20628
20629# Used on cygwin: DLL creation program.
20630DLLTOOL="$DLLTOOL"
20631
20632# Used on cygwin: object dumper.
20633OBJDUMP="$OBJDUMP"
20634
20635# Used on cygwin: assembler.
20636AS="$AS"
20637
20638# The name of the directory that contains temporary libtool files.
20639objdir=$objdir
20640
20641# How to create reloadable object files.
20642reload_flag=$lt_reload_flag
20643reload_cmds=$lt_reload_cmds
20644
20645# How to pass a linker flag through the compiler.
20646wl=$lt_lt_prog_compiler_wl_F77
20647
20648# Object file suffix (normally "o").
20649objext="$ac_objext"
20650
20651# Old archive suffix (normally "a").
20652libext="$libext"
20653
20654# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020655shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020656
20657# Executable file suffix (normally "").
20658exeext="$exeext"
20659
20660# Additional compiler flags for building library objects.
20661pic_flag=$lt_lt_prog_compiler_pic_F77
20662pic_mode=$pic_mode
20663
20664# What is the maximum length of a command?
20665max_cmd_len=$lt_cv_sys_max_cmd_len
20666
20667# Does compiler simultaneously support -c and -o options?
20668compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20669
20670# Must we lock files when doing compilation ?
20671need_locks=$lt_need_locks
20672
20673# Do we need the lib prefix for modules?
20674need_lib_prefix=$need_lib_prefix
20675
20676# Do we need a version for libraries?
20677need_version=$need_version
20678
20679# Whether dlopen is supported.
20680dlopen_support=$enable_dlopen
20681
20682# Whether dlopen of programs is supported.
20683dlopen_self=$enable_dlopen_self
20684
20685# Whether dlopen of statically linked programs is supported.
20686dlopen_self_static=$enable_dlopen_self_static
20687
20688# Compiler flag to prevent dynamic linking.
20689link_static_flag=$lt_lt_prog_compiler_static_F77
20690
20691# Compiler flag to turn off builtin functions.
20692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20693
20694# Compiler flag to allow reflexive dlopens.
20695export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20696
20697# Compiler flag to generate shared objects directly from archives.
20698whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20699
20700# Compiler flag to generate thread-safe objects.
20701thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20702
20703# Library versioning type.
20704version_type=$version_type
20705
20706# Format of library name prefix.
20707libname_spec=$lt_libname_spec
20708
20709# List of archive names. First name is the real one, the rest are links.
20710# The last name is the one that the linker finds with -lNAME.
20711library_names_spec=$lt_library_names_spec
20712
20713# The coded name of the library, if different from the real name.
20714soname_spec=$lt_soname_spec
20715
20716# Commands used to build and install an old-style archive.
20717RANLIB=$lt_RANLIB
20718old_archive_cmds=$lt_old_archive_cmds_F77
20719old_postinstall_cmds=$lt_old_postinstall_cmds
20720old_postuninstall_cmds=$lt_old_postuninstall_cmds
20721
20722# Create an old-style archive from a shared archive.
20723old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20724
20725# Create a temporary old-style archive to link instead of a shared archive.
20726old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20727
20728# Commands used to build and install a shared archive.
20729archive_cmds=$lt_archive_cmds_F77
20730archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20731postinstall_cmds=$lt_postinstall_cmds
20732postuninstall_cmds=$lt_postuninstall_cmds
20733
20734# Commands used to build a loadable module (assumed same as above if empty)
20735module_cmds=$lt_module_cmds_F77
20736module_expsym_cmds=$lt_module_expsym_cmds_F77
20737
20738# Commands to strip libraries.
20739old_striplib=$lt_old_striplib
20740striplib=$lt_striplib
20741
20742# Dependencies to place before the objects being linked to create a
20743# shared library.
20744predep_objects=$lt_predep_objects_F77
20745
20746# Dependencies to place after the objects being linked to create a
20747# shared library.
20748postdep_objects=$lt_postdep_objects_F77
20749
20750# Dependencies to place before the objects being linked to create a
20751# shared library.
20752predeps=$lt_predeps_F77
20753
20754# Dependencies to place after the objects being linked to create a
20755# shared library.
20756postdeps=$lt_postdeps_F77
20757
20758# The library search path used internally by the compiler when linking
20759# a shared library.
20760compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20761
20762# Method to check whether dependent libraries are shared objects.
20763deplibs_check_method=$lt_deplibs_check_method
20764
20765# Command to use when deplibs_check_method == file_magic.
20766file_magic_cmd=$lt_file_magic_cmd
20767
20768# Flag that allows shared libraries with undefined symbols to be built.
20769allow_undefined_flag=$lt_allow_undefined_flag_F77
20770
20771# Flag that forces no undefined symbols.
20772no_undefined_flag=$lt_no_undefined_flag_F77
20773
20774# Commands used to finish a libtool library installation in a directory.
20775finish_cmds=$lt_finish_cmds
20776
20777# Same as above, but a single script fragment to be evaled but not shown.
20778finish_eval=$lt_finish_eval
20779
20780# Take the output of nm and produce a listing of raw symbols and C names.
20781global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20782
20783# Transform the output of nm in a proper C declaration
20784global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20785
20786# Transform the output of nm in a C name address pair
20787global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20788
20789# This is the shared library runtime path variable.
20790runpath_var=$runpath_var
20791
20792# This is the shared library path variable.
20793shlibpath_var=$shlibpath_var
20794
20795# Is shlibpath searched before the hard-coded library search path?
20796shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20797
20798# How to hardcode a shared library path into an executable.
20799hardcode_action=$hardcode_action_F77
20800
20801# Whether we should hardcode library paths into libraries.
20802hardcode_into_libs=$hardcode_into_libs
20803
20804# Flag to hardcode \$libdir into a binary during linking.
20805# This must work even if \$libdir does not exist.
20806hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20807
20808# If ld is used when linking, flag to hardcode \$libdir into
20809# a binary during linking. This must work even if \$libdir does
20810# not exist.
20811hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20812
20813# Whether we need a single -rpath flag with a separated argument.
20814hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20815
20816# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20817# resulting binary.
20818hardcode_direct=$hardcode_direct_F77
20819
20820# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20821# resulting binary.
20822hardcode_minus_L=$hardcode_minus_L_F77
20823
20824# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20825# the resulting binary.
20826hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20827
20828# Set to yes if building a shared library automatically hardcodes DIR into the library
20829# and all subsequent libraries and executables linked against it.
20830hardcode_automatic=$hardcode_automatic_F77
20831
20832# Variables whose values should be saved in libtool wrapper scripts and
20833# restored at relink time.
20834variables_saved_for_relink="$variables_saved_for_relink"
20835
20836# Whether libtool must link a program against all its dependency libraries.
20837link_all_deplibs=$link_all_deplibs_F77
20838
20839# Compile-time system search path for libraries
20840sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20841
20842# Run-time system search path for libraries
20843sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20844
20845# Fix the shell variable \$srcfile for the compiler.
20846fix_srcfile_path="$fix_srcfile_path_F77"
20847
20848# Set to yes if exported symbols are required.
20849always_export_symbols=$always_export_symbols_F77
20850
20851# The commands to list exported symbols.
20852export_symbols_cmds=$lt_export_symbols_cmds_F77
20853
20854# The commands to extract the exported symbol list from a shared archive.
20855extract_expsyms_cmds=$lt_extract_expsyms_cmds
20856
20857# Symbols that should not be listed in the preloaded symbols.
20858exclude_expsyms=$lt_exclude_expsyms_F77
20859
20860# Symbols that must always be exported.
20861include_expsyms=$lt_include_expsyms_F77
20862
20863# ### END LIBTOOL TAG CONFIG: $tagname
20864
20865__EOF__
20866
20867
20868else
20869 # If there is no Makefile yet, we rely on a make rule to execute
20870 # `config.status --recheck' to rerun these tests and create the
20871 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020872 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20873 if test -f "$ltmain_in"; then
20874 test -f Makefile && make "$ltmain"
20875 fi
John Criswell47fdd832003-07-14 16:52:07 +000020876fi
20877
20878
20879ac_ext=c
20880ac_cpp='$CPP $CPPFLAGS'
20881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885CC="$lt_save_CC"
20886
20887 else
20888 tagname=""
20889 fi
20890 ;;
20891
20892 GCJ)
20893 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020894 ac_ext=c
20895ac_cpp='$CPP $CPPFLAGS'
20896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020899
20900
20901# Source file extension for Java test sources.
20902ac_ext=java
20903
20904# Object file extension for compiled Java test sources.
20905objext=o
20906objext_GCJ=$objext
20907
20908# Code to be used in simple compile tests
20909lt_simple_compile_test_code="class foo {}\n"
20910
20911# Code to be used in simple link tests
20912lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20913
20914# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20915
20916# If no C compiler was specified, use CC.
20917LTCC=${LTCC-"$CC"}
20918
20919# Allow CC to be a program name with arguments.
20920compiler=$CC
20921
20922
20923# Allow CC to be a program name with arguments.
20924lt_save_CC="$CC"
20925CC=${GCJ-"gcj"}
20926compiler=$CC
20927compiler_GCJ=$CC
20928
20929# GCJ did not exist at the time GCC didn't implicitly link libc in.
20930archive_cmds_need_lc_GCJ=no
20931
John Criswell47fdd832003-07-14 16:52:07 +000020932
20933lt_prog_compiler_no_builtin_flag_GCJ=
20934
20935if test "$GCC" = yes; then
20936 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20937
Reid Spencer2706f8c2004-09-19 23:53:36 +000020938
20939echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020940echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20941if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943else
20944 lt_cv_prog_compiler_rtti_exceptions=no
20945 ac_outfile=conftest.$ac_objext
20946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20947 lt_compiler_flag="-fno-rtti -fno-exceptions"
20948 # Insert the option either (1) after the last *FLAGS variable, or
20949 # (2) before a word containing "conftest.", or (3) at the end.
20950 # Note that $ac_compile itself does not contain backslashes and begins
20951 # with a dollar sign (not a hyphen), so the echo should work correctly.
20952 # The option is referenced via a variable to avoid confusing sed.
20953 lt_compile=`echo "$ac_compile" | $SED \
20954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20956 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000020957 (eval echo "\"\$as_me:20957: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020958 (eval "$lt_compile" 2>conftest.err)
20959 ac_status=$?
20960 cat conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000020961 echo "$as_me:20961: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020962 if (exit $ac_status) && test -s "$ac_outfile"; then
20963 # The compiler can only warn and ignore the option if not recognized
20964 # So say no if there are warnings
20965 if test ! -s conftest.err; then
20966 lt_cv_prog_compiler_rtti_exceptions=yes
20967 fi
20968 fi
20969 $rm conftest*
20970
20971fi
20972echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20973echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20974
20975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20976 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20977else
20978 :
20979fi
20980
20981fi
20982
20983lt_prog_compiler_wl_GCJ=
20984lt_prog_compiler_pic_GCJ=
20985lt_prog_compiler_static_GCJ=
20986
20987echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20988echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20989
20990 if test "$GCC" = yes; then
20991 lt_prog_compiler_wl_GCJ='-Wl,'
20992 lt_prog_compiler_static_GCJ='-static'
20993
20994 case $host_os in
20995 aix*)
20996 # All AIX code is PIC.
20997 if test "$host_cpu" = ia64; then
20998 # AIX 5 now supports IA64 processor
20999 lt_prog_compiler_static_GCJ='-Bstatic'
21000 fi
21001 ;;
21002
21003 amigaos*)
21004 # FIXME: we need at least 68020 code to build shared libraries, but
21005 # adding the `-m68020' flag to GCC prevents building anything better,
21006 # like `-m68040'.
21007 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21008 ;;
21009
21010 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21011 # PIC is the default for these OSes.
21012 ;;
21013
21014 mingw* | pw32* | os2*)
21015 # This hack is so that the source file can tell whether it is being
21016 # built for inclusion in a dll (and should export symbols for example).
21017 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21018 ;;
21019
21020 darwin* | rhapsody*)
21021 # PIC is the default on this platform
21022 # Common symbols not allowed in MH_DYLIB files
21023 lt_prog_compiler_pic_GCJ='-fno-common'
21024 ;;
21025
21026 msdosdjgpp*)
21027 # Just because we use GCC doesn't mean we suddenly get shared libraries
21028 # on systems that don't support them.
21029 lt_prog_compiler_can_build_shared_GCJ=no
21030 enable_shared=no
21031 ;;
21032
21033 sysv4*MP*)
21034 if test -d /usr/nec; then
21035 lt_prog_compiler_pic_GCJ=-Kconform_pic
21036 fi
21037 ;;
21038
21039 hpux*)
21040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041 # not for PA HP-UX.
21042 case "$host_cpu" in
21043 hppa*64*|ia64*)
21044 # +Z the default
21045 ;;
21046 *)
21047 lt_prog_compiler_pic_GCJ='-fPIC'
21048 ;;
21049 esac
21050 ;;
21051
21052 *)
21053 lt_prog_compiler_pic_GCJ='-fPIC'
21054 ;;
21055 esac
21056 else
21057 # PORTME Check for flag to pass linker flags through the system compiler.
21058 case $host_os in
21059 aix*)
21060 lt_prog_compiler_wl_GCJ='-Wl,'
21061 if test "$host_cpu" = ia64; then
21062 # AIX 5 now supports IA64 processor
21063 lt_prog_compiler_static_GCJ='-Bstatic'
21064 else
21065 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21066 fi
21067 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021068 darwin*)
21069 # PIC is the default on this platform
21070 # Common symbols not allowed in MH_DYLIB files
21071 case "$cc_basename" in
21072 xlc*)
21073 lt_prog_compiler_pic_GCJ='-qnocommon'
21074 lt_prog_compiler_wl_GCJ='-Wl,'
21075 ;;
21076 esac
21077 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021078
21079 mingw* | pw32* | os2*)
21080 # This hack is so that the source file can tell whether it is being
21081 # built for inclusion in a dll (and should export symbols for example).
21082 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21083 ;;
21084
21085 hpux9* | hpux10* | hpux11*)
21086 lt_prog_compiler_wl_GCJ='-Wl,'
21087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21088 # not for PA HP-UX.
21089 case "$host_cpu" in
21090 hppa*64*|ia64*)
21091 # +Z the default
21092 ;;
21093 *)
21094 lt_prog_compiler_pic_GCJ='+Z'
21095 ;;
21096 esac
21097 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21098 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21099 ;;
21100
21101 irix5* | irix6* | nonstopux*)
21102 lt_prog_compiler_wl_GCJ='-Wl,'
21103 # PIC (with -KPIC) is the default.
21104 lt_prog_compiler_static_GCJ='-non_shared'
21105 ;;
21106
21107 newsos6)
21108 lt_prog_compiler_pic_GCJ='-KPIC'
21109 lt_prog_compiler_static_GCJ='-Bstatic'
21110 ;;
21111
21112 linux*)
21113 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021114 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021115 lt_prog_compiler_wl_GCJ='-Wl,'
21116 lt_prog_compiler_pic_GCJ='-KPIC'
21117 lt_prog_compiler_static_GCJ='-static'
21118 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021119 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021120 lt_prog_compiler_wl_GCJ='-Wl,'
21121 # All Alpha code is PIC.
21122 lt_prog_compiler_static_GCJ='-non_shared'
21123 ;;
21124 esac
21125 ;;
21126
21127 osf3* | osf4* | osf5*)
21128 lt_prog_compiler_wl_GCJ='-Wl,'
21129 # All OSF/1 code is PIC.
21130 lt_prog_compiler_static_GCJ='-non_shared'
21131 ;;
21132
21133 sco3.2v5*)
21134 lt_prog_compiler_pic_GCJ='-Kpic'
21135 lt_prog_compiler_static_GCJ='-dn'
21136 ;;
21137
21138 solaris*)
21139 lt_prog_compiler_wl_GCJ='-Wl,'
21140 lt_prog_compiler_pic_GCJ='-KPIC'
21141 lt_prog_compiler_static_GCJ='-Bstatic'
21142 ;;
21143
21144 sunos4*)
21145 lt_prog_compiler_wl_GCJ='-Qoption ld '
21146 lt_prog_compiler_pic_GCJ='-PIC'
21147 lt_prog_compiler_static_GCJ='-Bstatic'
21148 ;;
21149
21150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21151 lt_prog_compiler_wl_GCJ='-Wl,'
21152 lt_prog_compiler_pic_GCJ='-KPIC'
21153 lt_prog_compiler_static_GCJ='-Bstatic'
21154 ;;
21155
21156 sysv4*MP*)
21157 if test -d /usr/nec ;then
21158 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21159 lt_prog_compiler_static_GCJ='-Bstatic'
21160 fi
21161 ;;
21162
21163 uts4*)
21164 lt_prog_compiler_pic_GCJ='-pic'
21165 lt_prog_compiler_static_GCJ='-Bstatic'
21166 ;;
21167
21168 *)
21169 lt_prog_compiler_can_build_shared_GCJ=no
21170 ;;
21171 esac
21172 fi
21173
21174echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21175echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21176
21177#
21178# Check to make sure the PIC flag actually works.
21179#
21180if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021181
21182echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021183echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21184if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186else
21187 lt_prog_compiler_pic_works_GCJ=no
21188 ac_outfile=conftest.$ac_objext
21189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21190 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21191 # Insert the option either (1) after the last *FLAGS variable, or
21192 # (2) before a word containing "conftest.", or (3) at the end.
21193 # Note that $ac_compile itself does not contain backslashes and begins
21194 # with a dollar sign (not a hyphen), so the echo should work correctly.
21195 # The option is referenced via a variable to avoid confusing sed.
21196 lt_compile=`echo "$ac_compile" | $SED \
21197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21199 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000021200 (eval echo "\"\$as_me:21200: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021201 (eval "$lt_compile" 2>conftest.err)
21202 ac_status=$?
21203 cat conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000021204 echo "$as_me:21204: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021205 if (exit $ac_status) && test -s "$ac_outfile"; then
21206 # The compiler can only warn and ignore the option if not recognized
21207 # So say no if there are warnings
21208 if test ! -s conftest.err; then
21209 lt_prog_compiler_pic_works_GCJ=yes
21210 fi
21211 fi
21212 $rm conftest*
21213
21214fi
21215echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21216echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21217
21218if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21219 case $lt_prog_compiler_pic_GCJ in
21220 "" | " "*) ;;
21221 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21222 esac
21223else
21224 lt_prog_compiler_pic_GCJ=
21225 lt_prog_compiler_can_build_shared_GCJ=no
21226fi
21227
21228fi
21229case "$host_os" in
21230 # For platforms which do not support PIC, -DPIC is meaningless:
21231 *djgpp*)
21232 lt_prog_compiler_pic_GCJ=
21233 ;;
21234 *)
21235 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21236 ;;
21237esac
21238
21239echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21240echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21241if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21243else
21244 lt_cv_prog_compiler_c_o_GCJ=no
21245 $rm -r conftest 2>/dev/null
21246 mkdir conftest
21247 cd conftest
21248 mkdir out
21249 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21250
John Criswell47fdd832003-07-14 16:52:07 +000021251 lt_compiler_flag="-o out/conftest2.$ac_objext"
21252 # Insert the option either (1) after the last *FLAGS variable, or
21253 # (2) before a word containing "conftest.", or (3) at the end.
21254 # Note that $ac_compile itself does not contain backslashes and begins
21255 # with a dollar sign (not a hyphen), so the echo should work correctly.
21256 lt_compile=`echo "$ac_compile" | $SED \
21257 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21259 -e 's:$: $lt_compiler_flag:'`
Misha Brukman1edb1902005-03-17 20:56:22 +000021260 (eval echo "\"\$as_me:21260: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021261 (eval "$lt_compile" 2>out/conftest.err)
21262 ac_status=$?
21263 cat out/conftest.err >&5
Misha Brukman1edb1902005-03-17 20:56:22 +000021264 echo "$as_me:21264: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21266 then
21267 # The compiler can only warn and ignore the option if not recognized
21268 # So say no if there are warnings
21269 if test ! -s out/conftest.err; then
21270 lt_cv_prog_compiler_c_o_GCJ=yes
21271 fi
21272 fi
21273 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021274 $rm conftest*
21275 # SGI C++ compiler will create directory out/ii_files/ for
21276 # template instantiation
21277 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21278 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021279 cd ..
21280 rmdir conftest
21281 $rm conftest*
21282
21283fi
21284echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21285echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21286
21287
21288hard_links="nottested"
21289if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21290 # do not overwrite the value of need_locks provided by the user
21291 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21292echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21293 hard_links=yes
21294 $rm conftest*
21295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21296 touch conftest.a
21297 ln conftest.a conftest.b 2>&5 || hard_links=no
21298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299 echo "$as_me:$LINENO: result: $hard_links" >&5
21300echo "${ECHO_T}$hard_links" >&6
21301 if test "$hard_links" = no; then
21302 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21303echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21304 need_locks=warn
21305 fi
21306else
21307 need_locks=no
21308fi
21309
21310echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21311echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21312
21313 runpath_var=
21314 allow_undefined_flag_GCJ=
21315 enable_shared_with_static_runtimes_GCJ=no
21316 archive_cmds_GCJ=
21317 archive_expsym_cmds_GCJ=
21318 old_archive_From_new_cmds_GCJ=
21319 old_archive_from_expsyms_cmds_GCJ=
21320 export_dynamic_flag_spec_GCJ=
21321 whole_archive_flag_spec_GCJ=
21322 thread_safe_flag_spec_GCJ=
21323 hardcode_libdir_flag_spec_GCJ=
21324 hardcode_libdir_flag_spec_ld_GCJ=
21325 hardcode_libdir_separator_GCJ=
21326 hardcode_direct_GCJ=no
21327 hardcode_minus_L_GCJ=no
21328 hardcode_shlibpath_var_GCJ=unsupported
21329 link_all_deplibs_GCJ=unknown
21330 hardcode_automatic_GCJ=no
21331 module_cmds_GCJ=
21332 module_expsym_cmds_GCJ=
21333 always_export_symbols_GCJ=no
21334 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21335 # include_expsyms should be a list of space-separated symbols to be *always*
21336 # included in the symbol list
21337 include_expsyms_GCJ=
21338 # exclude_expsyms can be an extended regexp of symbols to exclude
21339 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21340 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21341 # as well as any symbol that contains `d'.
21342 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21343 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21344 # platforms (ab)use it in PIC code, but their linkers get confused if
21345 # the symbol is explicitly referenced. Since portable code cannot
21346 # rely on this symbol name, it's probably fine to never include it in
21347 # preloaded symbol tables.
21348 extract_expsyms_cmds=
21349
21350 case $host_os in
21351 cygwin* | mingw* | pw32*)
21352 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21353 # When not using gcc, we currently assume that we are using
21354 # Microsoft Visual C++.
21355 if test "$GCC" != yes; then
21356 with_gnu_ld=no
21357 fi
21358 ;;
21359 openbsd*)
21360 with_gnu_ld=no
21361 ;;
21362 esac
21363
21364 ld_shlibs_GCJ=yes
21365 if test "$with_gnu_ld" = yes; then
21366 # If archive_cmds runs LD, not CC, wlarc should be empty
21367 wlarc='${wl}'
21368
21369 # See if GNU ld supports shared libraries.
21370 case $host_os in
21371 aix3* | aix4* | aix5*)
21372 # On AIX/PPC, the GNU linker is very broken
21373 if test "$host_cpu" != ia64; then
21374 ld_shlibs_GCJ=no
21375 cat <<EOF 1>&2
21376
21377*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21378*** to be unable to reliably create shared libraries on AIX.
21379*** Therefore, libtool is disabling shared libraries support. If you
21380*** really care for shared libraries, you may want to modify your PATH
21381*** so that a non-GNU linker is found, and then restart.
21382
21383EOF
21384 fi
21385 ;;
21386
21387 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021388 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 +000021389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21390 hardcode_minus_L_GCJ=yes
21391
21392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21393 # that the semantics of dynamic libraries on AmigaOS, at least up
21394 # to version 4, is to share data among multiple programs linked
21395 # with the same dynamic library. Since this doesn't match the
21396 # behavior of shared libraries on other platforms, we can't use
21397 # them.
21398 ld_shlibs_GCJ=no
21399 ;;
21400
21401 beos*)
21402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21403 allow_undefined_flag_GCJ=unsupported
21404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21405 # support --undefined. This deserves some investigation. FIXME
21406 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21407 else
21408 ld_shlibs_GCJ=no
21409 fi
21410 ;;
21411
21412 cygwin* | mingw* | pw32*)
21413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21414 # as there is no search path for DLLs.
21415 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21416 allow_undefined_flag_GCJ=unsupported
21417 always_export_symbols_GCJ=no
21418 enable_shared_with_static_runtimes_GCJ=yes
21419 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21420
21421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21422 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21423 # If the export-symbols file already is a .def file (1st line
21424 # is EXPORTS), use it as is; otherwise, prepend...
21425 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21426 cp $export_symbols $output_objdir/$soname.def;
21427 else
21428 echo EXPORTS > $output_objdir/$soname.def;
21429 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021430 fi~
21431 $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 +000021432 else
21433 ld_shlibs=no
21434 fi
21435 ;;
21436
21437 netbsd*)
21438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21439 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21440 wlarc=
21441 else
21442 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21443 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21444 fi
21445 ;;
21446
21447 solaris* | sysv5*)
21448 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21449 ld_shlibs_GCJ=no
21450 cat <<EOF 1>&2
21451
21452*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21453*** create shared libraries on Solaris systems. Therefore, libtool
21454*** is disabling shared libraries support. We urge you to upgrade GNU
21455*** binutils to release 2.9.1 or newer. Another option is to modify
21456*** your PATH or compiler configuration so that the native linker is
21457*** used, and then restart.
21458
21459EOF
21460 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21463 else
21464 ld_shlibs_GCJ=no
21465 fi
21466 ;;
21467
21468 sunos4*)
21469 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21470 wlarc=
21471 hardcode_direct_GCJ=yes
21472 hardcode_shlibpath_var_GCJ=no
21473 ;;
21474
Reid Spencer2706f8c2004-09-19 23:53:36 +000021475 linux*)
21476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21477 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21478 archive_cmds_GCJ="$tmp_archive_cmds"
21479 supports_anon_versioning=no
21480 case `$LD -v 2>/dev/null` in
21481 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21482 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21483 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21484 *\ 2.11.*) ;; # other 2.11 versions
21485 *) supports_anon_versioning=yes ;;
21486 esac
21487 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021488 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21489cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21490$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021491 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21492 else
21493 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21494 fi
21495 else
21496 ld_shlibs_GCJ=no
21497 fi
21498 ;;
21499
John Criswell47fdd832003-07-14 16:52:07 +000021500 *)
21501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21503 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21504 else
21505 ld_shlibs_GCJ=no
21506 fi
21507 ;;
21508 esac
21509
21510 if test "$ld_shlibs_GCJ" = yes; then
21511 runpath_var=LD_RUN_PATH
21512 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21513 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21514 # ancient GNU ld didn't support --whole-archive et. al.
21515 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21516 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21517 else
21518 whole_archive_flag_spec_GCJ=
21519 fi
21520 fi
21521 else
21522 # PORTME fill in a description of your system's linker (not GNU ld)
21523 case $host_os in
21524 aix3*)
21525 allow_undefined_flag_GCJ=unsupported
21526 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021527 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 +000021528 # Note: this linker hardcodes the directories in LIBPATH if there
21529 # are no directories specified by -L.
21530 hardcode_minus_L_GCJ=yes
21531 if test "$GCC" = yes && test -z "$link_static_flag"; then
21532 # Neither direct hardcoding nor static linking is supported with a
21533 # broken collect2.
21534 hardcode_direct_GCJ=unsupported
21535 fi
21536 ;;
21537
21538 aix4* | aix5*)
21539 if test "$host_cpu" = ia64; then
21540 # On IA64, the linker does run time linking by default, so we don't
21541 # have to do anything special.
21542 aix_use_runtimelinking=no
21543 exp_sym_flag='-Bexport'
21544 no_entry_flag=""
21545 else
21546 # If we're using GNU nm, then we don't want the "-C" option.
21547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21548 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21549 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'
21550 else
21551 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'
21552 fi
21553 aix_use_runtimelinking=no
21554
21555 # Test if we are trying to use run time linking or normal
21556 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21557 # need to do runtime linking.
21558 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21559 for ld_flag in $LDFLAGS; do
21560 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21561 aix_use_runtimelinking=yes
21562 break
21563 fi
21564 done
21565 esac
21566
21567 exp_sym_flag='-bexport'
21568 no_entry_flag='-bnoentry'
21569 fi
21570
21571 # When large executables or shared objects are built, AIX ld can
21572 # have problems creating the table of contents. If linking a library
21573 # or program results in "error TOC overflow" add -mminimal-toc to
21574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21576
21577 archive_cmds_GCJ=''
21578 hardcode_direct_GCJ=yes
21579 hardcode_libdir_separator_GCJ=':'
21580 link_all_deplibs_GCJ=yes
21581
21582 if test "$GCC" = yes; then
21583 case $host_os in aix4.012|aix4.012.*)
21584 # We only want to do this on AIX 4.2 and lower, the check
21585 # below for broken collect2 doesn't work under 4.3+
21586 collect2name=`${CC} -print-prog-name=collect2`
21587 if test -f "$collect2name" && \
21588 strings "$collect2name" | grep resolve_lib_name >/dev/null
21589 then
21590 # We have reworked collect2
21591 hardcode_direct_GCJ=yes
21592 else
21593 # We have old collect2
21594 hardcode_direct_GCJ=unsupported
21595 # It fails to find uninstalled libraries when the uninstalled
21596 # path is not listed in the libpath. Setting hardcode_minus_L
21597 # to unsupported forces relinking
21598 hardcode_minus_L_GCJ=yes
21599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21600 hardcode_libdir_separator_GCJ=
21601 fi
21602 esac
21603 shared_flag='-shared'
21604 else
21605 # not using gcc
21606 if test "$host_cpu" = ia64; then
21607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21608 # chokes on -Wl,-G. The following line is correct:
21609 shared_flag='-G'
21610 else
21611 if test "$aix_use_runtimelinking" = yes; then
21612 shared_flag='${wl}-G'
21613 else
21614 shared_flag='${wl}-bM:SRE'
21615 fi
21616 fi
21617 fi
21618
21619 # It seems that -bexpall does not export symbols beginning with
21620 # underscore (_), so it is better to generate a list of symbols to export.
21621 always_export_symbols_GCJ=yes
21622 if test "$aix_use_runtimelinking" = yes; then
21623 # Warning - without using the other runtime loading flags (-brtl),
21624 # -berok will link without error, but may produce a broken library.
21625 allow_undefined_flag_GCJ='-berok'
21626 # Determine the default libpath from the value encoded in an empty executable.
21627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021633
John Criswell47fdd832003-07-14 16:52:07 +000021634int
21635main ()
21636{
21637
21638 ;
21639 return 0;
21640}
21641_ACEOF
21642rm -f conftest.$ac_objext conftest$ac_exeext
21643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021644 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021646 grep -v '^ *+' conftest.er1 >conftest.err
21647 rm -f conftest.er1
21648 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021651 { ac_try='test -z "$ac_c_werror_flag"
21652 || test ! -s conftest.err'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; } &&
21658 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664
21665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21666}'`
21667# Check for a 64-bit object if we didn't find anything.
21668if 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; }
21669}'`; fi
21670else
21671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021672sed 's/^/| /' conftest.$ac_ext >&5
21673
John Criswell47fdd832003-07-14 16:52:07 +000021674fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021675rm -f conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21678
21679 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21680 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"
21681 else
21682 if test "$host_cpu" = ia64; then
21683 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21684 allow_undefined_flag_GCJ="-z nodefs"
21685 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"
21686 else
21687 # Determine the default libpath from the value encoded in an empty executable.
21688 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021694
John Criswell47fdd832003-07-14 16:52:07 +000021695int
21696main ()
21697{
21698
21699 ;
21700 return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext conftest$ac_exeext
21704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021705 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021712 { ac_try='test -z "$ac_c_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725
21726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21727}'`
21728# Check for a 64-bit object if we didn't find anything.
21729if 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; }
21730}'`; fi
21731else
21732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021733sed 's/^/| /' conftest.$ac_ext >&5
21734
John Criswell47fdd832003-07-14 16:52:07 +000021735fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021736rm -f conftest.err conftest.$ac_objext \
21737 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21739
21740 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21741 # Warning - without using the other run time loading flags,
21742 # -berok will link without error, but may produce a broken library.
21743 no_undefined_flag_GCJ=' ${wl}-bernotok'
21744 allow_undefined_flag_GCJ=' ${wl}-berok'
21745 # -bexpall does not export symbols beginning with underscore (_)
21746 always_export_symbols_GCJ=yes
21747 # Exported symbols can be pulled into shared objects from archives
21748 whole_archive_flag_spec_GCJ=' '
21749 archive_cmds_need_lc_GCJ=yes
21750 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021751 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 +000021752 fi
21753 fi
21754 ;;
21755
21756 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021757 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 +000021758 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21759 hardcode_minus_L_GCJ=yes
21760 # see comment about different semantics on the GNU ld section
21761 ld_shlibs_GCJ=no
21762 ;;
21763
Reid Spencer2706f8c2004-09-19 23:53:36 +000021764 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021765 export_dynamic_flag_spec_GCJ=-rdynamic
21766 ;;
21767
21768 cygwin* | mingw* | pw32*)
21769 # When not using gcc, we currently assume that we are using
21770 # Microsoft Visual C++.
21771 # hardcode_libdir_flag_spec is actually meaningless, as there is
21772 # no search path for DLLs.
21773 hardcode_libdir_flag_spec_GCJ=' '
21774 allow_undefined_flag_GCJ=unsupported
21775 # Tell ltmain to make .lib files, not .a files.
21776 libext=lib
21777 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021778 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021779 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021780 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 +000021781 # The linker will automatically build a .lib file if we build a DLL.
21782 old_archive_From_new_cmds_GCJ='true'
21783 # FIXME: Should let the user specify the lib program.
21784 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21785 fix_srcfile_path='`cygpath -w "$srcfile"`'
21786 enable_shared_with_static_runtimes_GCJ=yes
21787 ;;
21788
21789 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021790 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021791 rhapsody* | darwin1.[012])
21792 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21793 ;;
21794 *) # Darwin 1.3 on
21795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21796 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21797 else
21798 case ${MACOSX_DEPLOYMENT_TARGET} in
21799 10.[012])
21800 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21801 ;;
21802 10.*)
21803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21804 ;;
21805 esac
21806 fi
21807 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021808 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021810 hardcode_direct_GCJ=no
21811 hardcode_automatic_GCJ=yes
21812 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021813 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021814 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021815 if test "$GCC" = yes ; then
21816 output_verbose_link_cmd='echo'
21817 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21819 # 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 +000021820 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}'
21821 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 +000021822 else
21823 case "$cc_basename" in
21824 xlc*)
21825 output_verbose_link_cmd='echo'
21826 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21827 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21828 # 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 +000021829 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}'
21830 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 +000021831 ;;
21832 *)
21833 ld_shlibs_GCJ=no
21834 ;;
21835 esac
John Criswell47fdd832003-07-14 16:52:07 +000021836 fi
21837 ;;
21838
21839 dgux*)
21840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21842 hardcode_shlibpath_var_GCJ=no
21843 ;;
21844
21845 freebsd1*)
21846 ld_shlibs_GCJ=no
21847 ;;
21848
21849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21850 # support. Future versions do this automatically, but an explicit c++rt0.o
21851 # does not break anything, and helps significantly (at the cost of a little
21852 # extra space).
21853 freebsd2.2*)
21854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21855 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21856 hardcode_direct_GCJ=yes
21857 hardcode_shlibpath_var_GCJ=no
21858 ;;
21859
21860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21861 freebsd2*)
21862 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21863 hardcode_direct_GCJ=yes
21864 hardcode_minus_L_GCJ=yes
21865 hardcode_shlibpath_var_GCJ=no
21866 ;;
21867
21868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021869 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021870 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21871 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21872 hardcode_direct_GCJ=yes
21873 hardcode_shlibpath_var_GCJ=no
21874 ;;
21875
21876 hpux9*)
21877 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021878 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 +000021879 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021880 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 +000021881 fi
21882 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21883 hardcode_libdir_separator_GCJ=:
21884 hardcode_direct_GCJ=yes
21885
21886 # hardcode_minus_L: Not really in the search PATH,
21887 # but as the default location of the library.
21888 hardcode_minus_L_GCJ=yes
21889 export_dynamic_flag_spec_GCJ='${wl}-E'
21890 ;;
21891
21892 hpux10* | hpux11*)
21893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21894 case "$host_cpu" in
21895 hppa*64*|ia64*)
21896 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21897 ;;
21898 *)
21899 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21900 ;;
21901 esac
21902 else
21903 case "$host_cpu" in
21904 hppa*64*|ia64*)
21905 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21906 ;;
21907 *)
21908 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21909 ;;
21910 esac
21911 fi
21912 if test "$with_gnu_ld" = no; then
21913 case "$host_cpu" in
21914 hppa*64*)
21915 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21916 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21917 hardcode_libdir_separator_GCJ=:
21918 hardcode_direct_GCJ=no
21919 hardcode_shlibpath_var_GCJ=no
21920 ;;
21921 ia64*)
21922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21923 hardcode_direct_GCJ=no
21924 hardcode_shlibpath_var_GCJ=no
21925
21926 # hardcode_minus_L: Not really in the search PATH,
21927 # but as the default location of the library.
21928 hardcode_minus_L_GCJ=yes
21929 ;;
21930 *)
21931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21932 hardcode_libdir_separator_GCJ=:
21933 hardcode_direct_GCJ=yes
21934 export_dynamic_flag_spec_GCJ='${wl}-E'
21935
21936 # hardcode_minus_L: Not really in the search PATH,
21937 # but as the default location of the library.
21938 hardcode_minus_L_GCJ=yes
21939 ;;
21940 esac
21941 fi
21942 ;;
21943
21944 irix5* | irix6* | nonstopux*)
21945 if test "$GCC" = yes; then
21946 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'
21947 else
21948 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'
21949 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21950 fi
21951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21952 hardcode_libdir_separator_GCJ=:
21953 link_all_deplibs_GCJ=yes
21954 ;;
21955
21956 netbsd*)
21957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21958 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21959 else
21960 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21961 fi
21962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21963 hardcode_direct_GCJ=yes
21964 hardcode_shlibpath_var_GCJ=no
21965 ;;
21966
21967 newsos6)
21968 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21969 hardcode_direct_GCJ=yes
21970 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21971 hardcode_libdir_separator_GCJ=:
21972 hardcode_shlibpath_var_GCJ=no
21973 ;;
21974
21975 openbsd*)
21976 hardcode_direct_GCJ=yes
21977 hardcode_shlibpath_var_GCJ=no
21978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21979 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021980 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 +000021981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21982 export_dynamic_flag_spec_GCJ='${wl}-E'
21983 else
21984 case $host_os in
21985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21986 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21987 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21988 ;;
21989 *)
21990 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21992 ;;
21993 esac
21994 fi
21995 ;;
21996
21997 os2*)
21998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21999 hardcode_minus_L_GCJ=yes
22000 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022001 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 +000022002 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22003 ;;
22004
22005 osf3*)
22006 if test "$GCC" = yes; then
22007 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22008 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'
22009 else
22010 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22011 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'
22012 fi
22013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22014 hardcode_libdir_separator_GCJ=:
22015 ;;
22016
22017 osf4* | osf5*) # as osf3* with the addition of -msym flag
22018 if test "$GCC" = yes; then
22019 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22020 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'
22021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22022 else
22023 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22024 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 +000022025 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~
22026 $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'
22027
John Criswell47fdd832003-07-14 16:52:07 +000022028 # Both c and cxx compiler support -rpath directly
22029 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22030 fi
22031 hardcode_libdir_separator_GCJ=:
22032 ;;
22033
22034 sco3.2v5*)
22035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22036 hardcode_shlibpath_var_GCJ=no
22037 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22038 runpath_var=LD_RUN_PATH
22039 hardcode_runpath_var=yes
22040 ;;
22041
22042 solaris*)
22043 no_undefined_flag_GCJ=' -z text'
22044 if test "$GCC" = yes; then
22045 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022046 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22047 $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 +000022048 else
22049 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022050 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22051 $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 +000022052 fi
22053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22054 hardcode_shlibpath_var_GCJ=no
22055 case $host_os in
22056 solaris2.[0-5] | solaris2.[0-5].*) ;;
22057 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22058 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22059 esac
22060 link_all_deplibs_GCJ=yes
22061 ;;
22062
22063 sunos4*)
22064 if test "x$host_vendor" = xsequent; then
22065 # Use $CC to link under sequent, because it throws in some extra .o
22066 # files that make .init and .fini sections work.
22067 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22068 else
22069 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22070 fi
22071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22072 hardcode_direct_GCJ=yes
22073 hardcode_minus_L_GCJ=yes
22074 hardcode_shlibpath_var_GCJ=no
22075 ;;
22076
22077 sysv4)
22078 case $host_vendor in
22079 sni)
22080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22081 hardcode_direct_GCJ=yes # is this really true???
22082 ;;
22083 siemens)
22084 ## LD is ld it makes a PLAMLIB
22085 ## CC just makes a GrossModule.
22086 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22087 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22088 hardcode_direct_GCJ=no
22089 ;;
22090 motorola)
22091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22093 ;;
22094 esac
22095 runpath_var='LD_RUN_PATH'
22096 hardcode_shlibpath_var_GCJ=no
22097 ;;
22098
22099 sysv4.3*)
22100 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22101 hardcode_shlibpath_var_GCJ=no
22102 export_dynamic_flag_spec_GCJ='-Bexport'
22103 ;;
22104
22105 sysv4*MP*)
22106 if test -d /usr/nec; then
22107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22108 hardcode_shlibpath_var_GCJ=no
22109 runpath_var=LD_RUN_PATH
22110 hardcode_runpath_var=yes
22111 ld_shlibs_GCJ=yes
22112 fi
22113 ;;
22114
22115 sysv4.2uw2*)
22116 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117 hardcode_direct_GCJ=yes
22118 hardcode_minus_L_GCJ=no
22119 hardcode_shlibpath_var_GCJ=no
22120 hardcode_runpath_var=yes
22121 runpath_var=LD_RUN_PATH
22122 ;;
22123
22124 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22125 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22126 if test "$GCC" = yes; then
22127 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22128 else
22129 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22130 fi
22131 runpath_var='LD_RUN_PATH'
22132 hardcode_shlibpath_var_GCJ=no
22133 ;;
22134
22135 sysv5*)
22136 no_undefined_flag_GCJ=' -z text'
22137 # $CC -shared without GNU ld will not create a library from C++
22138 # object files and a static libstdc++, better avoid it by now
22139 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022140 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22141 $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 +000022142 hardcode_libdir_flag_spec_GCJ=
22143 hardcode_shlibpath_var_GCJ=no
22144 runpath_var='LD_RUN_PATH'
22145 ;;
22146
22147 uts4*)
22148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22150 hardcode_shlibpath_var_GCJ=no
22151 ;;
22152
22153 *)
22154 ld_shlibs_GCJ=no
22155 ;;
22156 esac
22157 fi
22158
22159echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22160echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22161test "$ld_shlibs_GCJ" = no && can_build_shared=no
22162
22163variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22164if test "$GCC" = yes; then
22165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22166fi
22167
22168#
22169# Do we need to explicitly link libc?
22170#
22171case "x$archive_cmds_need_lc_GCJ" in
22172x|xyes)
22173 # Assume -lc should be added
22174 archive_cmds_need_lc_GCJ=yes
22175
22176 if test "$enable_shared" = yes && test "$GCC" = yes; then
22177 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022178 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022179 # FIXME: we may have to deal with multi-command sequences.
22180 ;;
22181 '$CC '*)
22182 # Test whether the compiler implicitly links with -lc since on some
22183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22184 # to ld, don't add -lc before -lgcc.
22185 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22186echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22187 $rm conftest*
22188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22189
22190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191 (eval $ac_compile) 2>&5
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } 2>conftest.err; then
22195 soname=conftest
22196 lib=conftest
22197 libobjs=conftest.$ac_objext
22198 deplibs=
22199 wl=$lt_prog_compiler_wl_GCJ
22200 compiler_flags=-v
22201 linker_flags=-v
22202 verstring=
22203 output_objdir=.
22204 libname=conftest
22205 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22206 allow_undefined_flag_GCJ=
22207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22208 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }
22212 then
22213 archive_cmds_need_lc_GCJ=no
22214 else
22215 archive_cmds_need_lc_GCJ=yes
22216 fi
22217 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22218 else
22219 cat conftest.err 1>&5
22220 fi
22221 $rm conftest*
22222 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22223echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22224 ;;
22225 esac
22226 fi
22227 ;;
22228esac
22229
John Criswell47fdd832003-07-14 16:52:07 +000022230echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22231echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22232library_names_spec=
22233libname_spec='lib$name'
22234soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022235shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022236postinstall_cmds=
22237postuninstall_cmds=
22238finish_cmds=
22239finish_eval=
22240shlibpath_var=
22241shlibpath_overrides_runpath=unknown
22242version_type=none
22243dynamic_linker="$host_os ld.so"
22244sys_lib_dlsearch_path_spec="/lib /usr/lib"
22245if test "$GCC" = yes; then
22246 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22247 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22248 # if the path contains ";" then we assume it to be the separator
22249 # otherwise default to the standard path separator (i.e. ":") - it is
22250 # assumed that no part of a normal pathname contains ";" but that should
22251 # okay in the real world where ";" in dirpaths is itself problematic.
22252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22253 else
22254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22255 fi
22256else
22257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22258fi
22259need_lib_prefix=unknown
22260hardcode_into_libs=no
22261
22262# when you set need_version to no, make sure it does not cause -set_version
22263# flags to be left without arguments
22264need_version=unknown
22265
22266case $host_os in
22267aix3*)
22268 version_type=linux
22269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22270 shlibpath_var=LIBPATH
22271
22272 # AIX 3 has no versioning support, so we append a major version to the name.
22273 soname_spec='${libname}${release}${shared_ext}$major'
22274 ;;
22275
22276aix4* | aix5*)
22277 version_type=linux
22278 need_lib_prefix=no
22279 need_version=no
22280 hardcode_into_libs=yes
22281 if test "$host_cpu" = ia64; then
22282 # AIX 5 supports IA64
22283 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22284 shlibpath_var=LD_LIBRARY_PATH
22285 else
22286 # With GCC up to 2.95.x, collect2 would create an import file
22287 # for dependence libraries. The import file would start with
22288 # the line `#! .'. This would cause the generated library to
22289 # depend on `.', always an invalid library. This was fixed in
22290 # development snapshots of GCC prior to 3.0.
22291 case $host_os in
22292 aix4 | aix4.[01] | aix4.[01].*)
22293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22294 echo ' yes '
22295 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22296 :
22297 else
22298 can_build_shared=no
22299 fi
22300 ;;
22301 esac
22302 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22303 # soname into executable. Probably we can add versioning support to
22304 # collect2, so additional links can be useful in future.
22305 if test "$aix_use_runtimelinking" = yes; then
22306 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22307 # instead of lib<name>.a to let people know that these are not
22308 # typical AIX shared libraries.
22309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22310 else
22311 # We preserve .a as extension for shared libraries through AIX4.2
22312 # and later when we are not doing run time linking.
22313 library_names_spec='${libname}${release}.a $libname.a'
22314 soname_spec='${libname}${release}${shared_ext}$major'
22315 fi
22316 shlibpath_var=LIBPATH
22317 fi
22318 ;;
22319
22320amigaos*)
22321 library_names_spec='$libname.ixlibrary $libname.a'
22322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022323 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 +000022324 ;;
22325
22326beos*)
22327 library_names_spec='${libname}${shared_ext}'
22328 dynamic_linker="$host_os ld.so"
22329 shlibpath_var=LIBRARY_PATH
22330 ;;
22331
Reid Spencer2706f8c2004-09-19 23:53:36 +000022332bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022333 version_type=linux
22334 need_version=no
22335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22336 soname_spec='${libname}${release}${shared_ext}$major'
22337 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22338 shlibpath_var=LD_LIBRARY_PATH
22339 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22340 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22341 # the default ld.so.conf also contains /usr/contrib/lib and
22342 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22343 # libtool to hard-code these into programs
22344 ;;
22345
22346cygwin* | mingw* | pw32*)
22347 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022348 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022349 need_version=no
22350 need_lib_prefix=no
22351
22352 case $GCC,$host_os in
22353 yes,cygwin* | yes,mingw* | yes,pw32*)
22354 library_names_spec='$libname.dll.a'
22355 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022356 postinstall_cmds='base_file=`basename \${file}`~
22357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22358 dldir=$destdir/`dirname \$dlpath`~
22359 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022360 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22362 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022363 $rm \$dlpath'
22364 shlibpath_overrides_runpath=yes
22365
22366 case $host_os in
22367 cygwin*)
22368 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22369 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 +000022370 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022371 ;;
22372 mingw*)
22373 # MinGW DLLs use traditional 'lib' prefix
22374 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22376 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22377 # It is most probably a Windows format PATH printed by
22378 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22379 # path with ; separators, and with drive letters. We can handle the
22380 # drive letters (cygwin fileutils understands them), so leave them,
22381 # especially as we might pass files found there to a mingw objdump,
22382 # which wouldn't understand a cygwinified path. Ahh.
22383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22384 else
22385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22386 fi
22387 ;;
22388 pw32*)
22389 # pw32 DLLs use 'pw' prefix rather than 'lib'
22390 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22391 ;;
22392 esac
22393 ;;
22394
22395 *)
22396 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22397 ;;
22398 esac
22399 dynamic_linker='Win32 ld.exe'
22400 # FIXME: first we should search . and the directory the executable is in
22401 shlibpath_var=PATH
22402 ;;
22403
22404darwin* | rhapsody*)
22405 dynamic_linker="$host_os dyld"
22406 version_type=darwin
22407 need_lib_prefix=no
22408 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022409 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022410 soname_spec='${libname}${release}${major}$shared_ext'
22411 shlibpath_overrides_runpath=yes
22412 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022413 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022414 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022415 if test "$GCC" = yes; then
22416 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"`
22417 else
22418 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022419 fi
22420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22421 ;;
22422
22423dgux*)
22424 version_type=linux
22425 need_lib_prefix=no
22426 need_version=no
22427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22428 soname_spec='${libname}${release}${shared_ext}$major'
22429 shlibpath_var=LD_LIBRARY_PATH
22430 ;;
22431
22432freebsd1*)
22433 dynamic_linker=no
22434 ;;
22435
Reid Spencer2706f8c2004-09-19 23:53:36 +000022436kfreebsd*-gnu)
22437 version_type=linux
22438 need_lib_prefix=no
22439 need_version=no
22440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22441 soname_spec='${libname}${release}${shared_ext}$major'
22442 shlibpath_var=LD_LIBRARY_PATH
22443 shlibpath_overrides_runpath=no
22444 hardcode_into_libs=yes
22445 dynamic_linker='GNU ld.so'
22446 ;;
22447
John Criswell47fdd832003-07-14 16:52:07 +000022448freebsd*)
22449 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22450 version_type=freebsd-$objformat
22451 case $version_type in
22452 freebsd-elf*)
22453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22454 need_version=no
22455 need_lib_prefix=no
22456 ;;
22457 freebsd-*)
22458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22459 need_version=yes
22460 ;;
22461 esac
22462 shlibpath_var=LD_LIBRARY_PATH
22463 case $host_os in
22464 freebsd2*)
22465 shlibpath_overrides_runpath=yes
22466 ;;
22467 freebsd3.01* | freebsdelf3.01*)
22468 shlibpath_overrides_runpath=yes
22469 hardcode_into_libs=yes
22470 ;;
22471 *) # from 3.2 on
22472 shlibpath_overrides_runpath=no
22473 hardcode_into_libs=yes
22474 ;;
22475 esac
22476 ;;
22477
22478gnu*)
22479 version_type=linux
22480 need_lib_prefix=no
22481 need_version=no
22482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 hardcode_into_libs=yes
22486 ;;
22487
22488hpux9* | hpux10* | hpux11*)
22489 # Give a soname corresponding to the major version so that dld.sl refuses to
22490 # link against other versions.
22491 version_type=sunos
22492 need_lib_prefix=no
22493 need_version=no
22494 case "$host_cpu" in
22495 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022496 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022497 hardcode_into_libs=yes
22498 dynamic_linker="$host_os dld.so"
22499 shlibpath_var=LD_LIBRARY_PATH
22500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22502 soname_spec='${libname}${release}${shared_ext}$major'
22503 if test "X$HPUX_IA64_MODE" = X32; then
22504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22505 else
22506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22507 fi
22508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22509 ;;
22510 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022512 hardcode_into_libs=yes
22513 dynamic_linker="$host_os dld.sl"
22514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22517 soname_spec='${libname}${release}${shared_ext}$major'
22518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22520 ;;
22521 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022522 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022523 dynamic_linker="$host_os dld.sl"
22524 shlibpath_var=SHLIB_PATH
22525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22527 soname_spec='${libname}${release}${shared_ext}$major'
22528 ;;
22529 esac
22530 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22531 postinstall_cmds='chmod 555 $lib'
22532 ;;
22533
22534irix5* | irix6* | nonstopux*)
22535 case $host_os in
22536 nonstopux*) version_type=nonstopux ;;
22537 *)
22538 if test "$lt_cv_prog_gnu_ld" = yes; then
22539 version_type=linux
22540 else
22541 version_type=irix
22542 fi ;;
22543 esac
22544 need_lib_prefix=no
22545 need_version=no
22546 soname_spec='${libname}${release}${shared_ext}$major'
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22548 case $host_os in
22549 irix5* | nonstopux*)
22550 libsuff= shlibsuff=
22551 ;;
22552 *)
22553 case $LD in # libtool.m4 will add one of these switches to LD
22554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22555 libsuff= shlibsuff= libmagic=32-bit;;
22556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22557 libsuff=32 shlibsuff=N32 libmagic=N32;;
22558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22559 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22560 *) libsuff= shlibsuff= libmagic=never-match;;
22561 esac
22562 ;;
22563 esac
22564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22565 shlibpath_overrides_runpath=no
22566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22568 hardcode_into_libs=yes
22569 ;;
22570
22571# No shared lib support for Linux oldld, aout, or coff.
22572linux*oldld* | linux*aout* | linux*coff*)
22573 dynamic_linker=no
22574 ;;
22575
22576# This must be Linux ELF.
22577linux*)
22578 version_type=linux
22579 need_lib_prefix=no
22580 need_version=no
22581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22582 soname_spec='${libname}${release}${shared_ext}$major'
22583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22584 shlibpath_var=LD_LIBRARY_PATH
22585 shlibpath_overrides_runpath=no
22586 # This implies no fast_install, which is unacceptable.
22587 # Some rework will be needed to allow for fast_install
22588 # before this can be enabled.
22589 hardcode_into_libs=yes
22590
Reid Spencer2706f8c2004-09-19 23:53:36 +000022591 # Append ld.so.conf contents to the search path
22592 if test -f /etc/ld.so.conf; then
22593 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22595 fi
22596
John Criswell47fdd832003-07-14 16:52:07 +000022597 # We used to test for /lib/ld.so.1 and disable shared libraries on
22598 # powerpc, because MkLinux only supported shared libraries with the
22599 # GNU dynamic linker. Since this was broken with cross compilers,
22600 # most powerpc-linux boxes support dynamic linking these days and
22601 # people can always --disable-shared, the test was removed, and we
22602 # assume the GNU/Linux dynamic linker is in use.
22603 dynamic_linker='GNU/Linux ld.so'
22604 ;;
22605
Reid Spencer2706f8c2004-09-19 23:53:36 +000022606knetbsd*-gnu)
22607 version_type=linux
22608 need_lib_prefix=no
22609 need_version=no
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22611 soname_spec='${libname}${release}${shared_ext}$major'
22612 shlibpath_var=LD_LIBRARY_PATH
22613 shlibpath_overrides_runpath=no
22614 hardcode_into_libs=yes
22615 dynamic_linker='GNU ld.so'
22616 ;;
22617
John Criswell47fdd832003-07-14 16:52:07 +000022618netbsd*)
22619 version_type=sunos
22620 need_lib_prefix=no
22621 need_version=no
22622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22625 dynamic_linker='NetBSD (a.out) ld.so'
22626 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022628 soname_spec='${libname}${release}${shared_ext}$major'
22629 dynamic_linker='NetBSD ld.elf_so'
22630 fi
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=yes
22633 hardcode_into_libs=yes
22634 ;;
22635
22636newsos6)
22637 version_type=linux
22638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22639 shlibpath_var=LD_LIBRARY_PATH
22640 shlibpath_overrides_runpath=yes
22641 ;;
22642
Reid Spencer2706f8c2004-09-19 23:53:36 +000022643nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022644 version_type=linux
22645 need_lib_prefix=no
22646 need_version=no
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 shlibpath_var=LD_LIBRARY_PATH
22650 shlibpath_overrides_runpath=yes
22651 ;;
22652
22653openbsd*)
22654 version_type=sunos
22655 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022656 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22659 shlibpath_var=LD_LIBRARY_PATH
22660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22661 case $host_os in
22662 openbsd2.[89] | openbsd2.[89].*)
22663 shlibpath_overrides_runpath=no
22664 ;;
22665 *)
22666 shlibpath_overrides_runpath=yes
22667 ;;
22668 esac
22669 else
22670 shlibpath_overrides_runpath=yes
22671 fi
22672 ;;
22673
22674os2*)
22675 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022676 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022677 need_lib_prefix=no
22678 library_names_spec='$libname${shared_ext} $libname.a'
22679 dynamic_linker='OS/2 ld.exe'
22680 shlibpath_var=LIBPATH
22681 ;;
22682
22683osf3* | osf4* | osf5*)
22684 version_type=osf
22685 need_lib_prefix=no
22686 need_version=no
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22692 ;;
22693
22694sco3.2v5*)
22695 version_type=osf
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 ;;
22700
22701solaris*)
22702 version_type=linux
22703 need_lib_prefix=no
22704 need_version=no
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 shlibpath_overrides_runpath=yes
22709 hardcode_into_libs=yes
22710 # ldd complains unless libraries are executable
22711 postinstall_cmds='chmod +x $lib'
22712 ;;
22713
22714sunos4*)
22715 version_type=sunos
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22718 shlibpath_var=LD_LIBRARY_PATH
22719 shlibpath_overrides_runpath=yes
22720 if test "$with_gnu_ld" = yes; then
22721 need_lib_prefix=no
22722 fi
22723 need_version=yes
22724 ;;
22725
22726sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22727 version_type=linux
22728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 shlibpath_var=LD_LIBRARY_PATH
22731 case $host_vendor in
22732 sni)
22733 shlibpath_overrides_runpath=no
22734 need_lib_prefix=no
22735 export_dynamic_flag_spec='${wl}-Blargedynsym'
22736 runpath_var=LD_RUN_PATH
22737 ;;
22738 siemens)
22739 need_lib_prefix=no
22740 ;;
22741 motorola)
22742 need_lib_prefix=no
22743 need_version=no
22744 shlibpath_overrides_runpath=no
22745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22746 ;;
22747 esac
22748 ;;
22749
22750sysv4*MP*)
22751 if test -d /usr/nec ;then
22752 version_type=linux
22753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22754 soname_spec='$libname${shared_ext}.$major'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 fi
22757 ;;
22758
22759uts4*)
22760 version_type=linux
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 ;;
22765
22766*)
22767 dynamic_linker=no
22768 ;;
22769esac
22770echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22771echo "${ECHO_T}$dynamic_linker" >&6
22772test "$dynamic_linker" = no && can_build_shared=no
22773
Reid Spencer2706f8c2004-09-19 23:53:36 +000022774echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22775echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22776hardcode_action_GCJ=
22777if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22778 test -n "$runpath_var_GCJ" || \
22779 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22780
22781 # We can hardcode non-existant directories.
22782 if test "$hardcode_direct_GCJ" != no &&
22783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22784 # have to relink, otherwise we might link with an installed library
22785 # when we should be linking with a yet-to-be-installed one
22786 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22787 test "$hardcode_minus_L_GCJ" != no; then
22788 # Linking always hardcodes the temporary library directory.
22789 hardcode_action_GCJ=relink
22790 else
22791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22792 hardcode_action_GCJ=immediate
22793 fi
22794else
22795 # We cannot hardcode anything, or else we can only hardcode existing
22796 # directories.
22797 hardcode_action_GCJ=unsupported
22798fi
22799echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22800echo "${ECHO_T}$hardcode_action_GCJ" >&6
22801
22802if test "$hardcode_action_GCJ" = relink; then
22803 # Fast installation is not supported
22804 enable_fast_install=no
22805elif test "$shlibpath_overrides_runpath" = yes ||
22806 test "$enable_shared" = no; then
22807 # Fast installation is not necessary
22808 enable_fast_install=needless
22809fi
22810
22811striplib=
22812old_striplib=
22813echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22814echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22815if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22818 echo "$as_me:$LINENO: result: yes" >&5
22819echo "${ECHO_T}yes" >&6
22820else
22821# FIXME - insert some real tests, host_os isn't really good enough
22822 case $host_os in
22823 darwin*)
22824 if test -n "$STRIP" ; then
22825 striplib="$STRIP -x"
22826 echo "$as_me:$LINENO: result: yes" >&5
22827echo "${ECHO_T}yes" >&6
22828 else
22829 echo "$as_me:$LINENO: result: no" >&5
22830echo "${ECHO_T}no" >&6
22831fi
22832 ;;
22833 *)
22834 echo "$as_me:$LINENO: result: no" >&5
22835echo "${ECHO_T}no" >&6
22836 ;;
22837 esac
22838fi
22839
John Criswell47fdd832003-07-14 16:52:07 +000022840if test "x$enable_dlopen" != xyes; then
22841 enable_dlopen=unknown
22842 enable_dlopen_self=unknown
22843 enable_dlopen_self_static=unknown
22844else
22845 lt_cv_dlopen=no
22846 lt_cv_dlopen_libs=
22847
22848 case $host_os in
22849 beos*)
22850 lt_cv_dlopen="load_add_on"
22851 lt_cv_dlopen_libs=
22852 lt_cv_dlopen_self=yes
22853 ;;
22854
22855 mingw* | pw32*)
22856 lt_cv_dlopen="LoadLibrary"
22857 lt_cv_dlopen_libs=
22858 ;;
22859
22860 cygwin*)
22861 lt_cv_dlopen="dlopen"
22862 lt_cv_dlopen_libs=
22863 ;;
22864
22865 darwin*)
22866 # if libdl is installed we need to link against it
22867 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22868echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22869if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22871else
22872 ac_check_lib_save_LIBS=$LIBS
22873LIBS="-ldl $LIBS"
22874cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022875/* confdefs.h. */
22876_ACEOF
22877cat confdefs.h >>conftest.$ac_ext
22878cat >>conftest.$ac_ext <<_ACEOF
22879/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022880
22881/* Override any gcc2 internal prototype to avoid an error. */
22882#ifdef __cplusplus
22883extern "C"
22884#endif
22885/* We use char because int might match the return type of a gcc2
22886 builtin and then its argument prototype would still apply. */
22887char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022888int
22889main ()
22890{
22891dlopen ();
22892 ;
22893 return 0;
22894}
22895_ACEOF
22896rm -f conftest.$ac_objext conftest$ac_exeext
22897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022898 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022899 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022900 grep -v '^ *+' conftest.er1 >conftest.err
22901 rm -f conftest.er1
22902 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022905 { ac_try='test -z "$ac_c_werror_flag"
22906 || test ! -s conftest.err'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_lib_dl_dlopen=yes
22919else
22920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022921sed 's/^/| /' conftest.$ac_ext >&5
22922
John Criswell47fdd832003-07-14 16:52:07 +000022923ac_cv_lib_dl_dlopen=no
22924fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022925rm -f conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022927LIBS=$ac_check_lib_save_LIBS
22928fi
22929echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22930echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22931if test $ac_cv_lib_dl_dlopen = yes; then
22932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22933else
22934
22935 lt_cv_dlopen="dyld"
22936 lt_cv_dlopen_libs=
22937 lt_cv_dlopen_self=yes
22938
22939fi
22940
22941 ;;
22942
22943 *)
22944 echo "$as_me:$LINENO: checking for shl_load" >&5
22945echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22946if test "${ac_cv_func_shl_load+set}" = set; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22948else
22949 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022950/* confdefs.h. */
22951_ACEOF
22952cat confdefs.h >>conftest.$ac_ext
22953cat >>conftest.$ac_ext <<_ACEOF
22954/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22957#define shl_load innocuous_shl_load
22958
John Criswell47fdd832003-07-14 16:52:07 +000022959/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022960 which can conflict with char shl_load (); below.
22961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963
John Criswell0c38eaf2003-09-10 15:17:25 +000022964#ifdef __STDC__
22965# include <limits.h>
22966#else
22967# include <assert.h>
22968#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022969
22970#undef shl_load
22971
John Criswell47fdd832003-07-14 16:52:07 +000022972/* Override any gcc2 internal prototype to avoid an error. */
22973#ifdef __cplusplus
22974extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022975{
John Criswell47fdd832003-07-14 16:52:07 +000022976#endif
22977/* We use char because int might match the return type of a gcc2
22978 builtin and then its argument prototype would still apply. */
22979char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022980/* The GNU C library defines this for functions which it implements
22981 to always fail with ENOSYS. Some functions are actually named
22982 something starting with __ and the normal name is an alias. */
22983#if defined (__stub_shl_load) || defined (__stub___shl_load)
22984choke me
22985#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022986char (*f) () = shl_load;
22987#endif
22988#ifdef __cplusplus
22989}
John Criswell47fdd832003-07-14 16:52:07 +000022990#endif
22991
John Criswell0c38eaf2003-09-10 15:17:25 +000022992int
22993main ()
22994{
22995return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022996 ;
22997 return 0;
22998}
22999_ACEOF
23000rm -f conftest.$ac_objext conftest$ac_exeext
23001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023002 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023003 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
23006 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023009 { ac_try='test -z "$ac_c_werror_flag"
23010 || test ! -s conftest.err'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; }; then
23022 ac_cv_func_shl_load=yes
23023else
23024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023025sed 's/^/| /' conftest.$ac_ext >&5
23026
John Criswell47fdd832003-07-14 16:52:07 +000023027ac_cv_func_shl_load=no
23028fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023029rm -f conftest.err conftest.$ac_objext \
23030 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023031fi
23032echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23033echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23034if test $ac_cv_func_shl_load = yes; then
23035 lt_cv_dlopen="shl_load"
23036else
23037 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23038echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23039if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23041else
23042 ac_check_lib_save_LIBS=$LIBS
23043LIBS="-ldld $LIBS"
23044cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023045/* confdefs.h. */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023050
23051/* Override any gcc2 internal prototype to avoid an error. */
23052#ifdef __cplusplus
23053extern "C"
23054#endif
23055/* We use char because int might match the return type of a gcc2
23056 builtin and then its argument prototype would still apply. */
23057char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023058int
23059main ()
23060{
23061shl_load ();
23062 ;
23063 return 0;
23064}
23065_ACEOF
23066rm -f conftest.$ac_objext conftest$ac_exeext
23067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023068 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023075 { ac_try='test -z "$ac_c_werror_flag"
23076 || test ! -s conftest.err'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 ac_cv_lib_dld_shl_load=yes
23089else
23090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023091sed 's/^/| /' conftest.$ac_ext >&5
23092
John Criswell47fdd832003-07-14 16:52:07 +000023093ac_cv_lib_dld_shl_load=no
23094fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023095rm -f conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023097LIBS=$ac_check_lib_save_LIBS
23098fi
23099echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23100echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23101if test $ac_cv_lib_dld_shl_load = yes; then
23102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23103else
23104 echo "$as_me:$LINENO: checking for dlopen" >&5
23105echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23106if test "${ac_cv_func_dlopen+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23108else
23109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023110/* confdefs.h. */
23111_ACEOF
23112cat confdefs.h >>conftest.$ac_ext
23113cat >>conftest.$ac_ext <<_ACEOF
23114/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23117#define dlopen innocuous_dlopen
23118
John Criswell47fdd832003-07-14 16:52:07 +000023119/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023120 which can conflict with char dlopen (); below.
23121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23122 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023123
John Criswell0c38eaf2003-09-10 15:17:25 +000023124#ifdef __STDC__
23125# include <limits.h>
23126#else
23127# include <assert.h>
23128#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023129
23130#undef dlopen
23131
John Criswell47fdd832003-07-14 16:52:07 +000023132/* Override any gcc2 internal prototype to avoid an error. */
23133#ifdef __cplusplus
23134extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023135{
John Criswell47fdd832003-07-14 16:52:07 +000023136#endif
23137/* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23139char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023140/* The GNU C library defines this for functions which it implements
23141 to always fail with ENOSYS. Some functions are actually named
23142 something starting with __ and the normal name is an alias. */
23143#if defined (__stub_dlopen) || defined (__stub___dlopen)
23144choke me
23145#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023146char (*f) () = dlopen;
23147#endif
23148#ifdef __cplusplus
23149}
John Criswell47fdd832003-07-14 16:52:07 +000023150#endif
23151
John Criswell0c38eaf2003-09-10 15:17:25 +000023152int
23153main ()
23154{
23155return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext conftest$ac_exeext
23161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023162 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 ac_cv_func_dlopen=yes
23183else
23184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023185sed 's/^/| /' conftest.$ac_ext >&5
23186
John Criswell47fdd832003-07-14 16:52:07 +000023187ac_cv_func_dlopen=no
23188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023189rm -f conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023191fi
23192echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23193echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23194if test $ac_cv_func_dlopen = yes; then
23195 lt_cv_dlopen="dlopen"
23196else
23197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23198echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23199if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23201else
23202 ac_check_lib_save_LIBS=$LIBS
23203LIBS="-ldl $LIBS"
23204cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023210
23211/* Override any gcc2 internal prototype to avoid an error. */
23212#ifdef __cplusplus
23213extern "C"
23214#endif
23215/* We use char because int might match the return type of a gcc2
23216 builtin and then its argument prototype would still apply. */
23217char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023218int
23219main ()
23220{
23221dlopen ();
23222 ;
23223 return 0;
23224}
23225_ACEOF
23226rm -f conftest.$ac_objext conftest$ac_exeext
23227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023228 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_cv_lib_dl_dlopen=yes
23249else
23250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023251sed 's/^/| /' conftest.$ac_ext >&5
23252
John Criswell47fdd832003-07-14 16:52:07 +000023253ac_cv_lib_dl_dlopen=no
23254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023255rm -f conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023257LIBS=$ac_check_lib_save_LIBS
23258fi
23259echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23260echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23261if test $ac_cv_lib_dl_dlopen = yes; then
23262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23263else
23264 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23265echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23266if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23268else
23269 ac_check_lib_save_LIBS=$LIBS
23270LIBS="-lsvld $LIBS"
23271cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023272/* confdefs.h. */
23273_ACEOF
23274cat confdefs.h >>conftest.$ac_ext
23275cat >>conftest.$ac_ext <<_ACEOF
23276/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023277
23278/* Override any gcc2 internal prototype to avoid an error. */
23279#ifdef __cplusplus
23280extern "C"
23281#endif
23282/* We use char because int might match the return type of a gcc2
23283 builtin and then its argument prototype would still apply. */
23284char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023285int
23286main ()
23287{
23288dlopen ();
23289 ;
23290 return 0;
23291}
23292_ACEOF
23293rm -f conftest.$ac_objext conftest$ac_exeext
23294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023295 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023302 { ac_try='test -z "$ac_c_werror_flag"
23303 || test ! -s conftest.err'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; } &&
23309 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; }; then
23315 ac_cv_lib_svld_dlopen=yes
23316else
23317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023318sed 's/^/| /' conftest.$ac_ext >&5
23319
John Criswell47fdd832003-07-14 16:52:07 +000023320ac_cv_lib_svld_dlopen=no
23321fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023322rm -f conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023324LIBS=$ac_check_lib_save_LIBS
23325fi
23326echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23327echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23328if test $ac_cv_lib_svld_dlopen = yes; then
23329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23330else
23331 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23332echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23333if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335else
23336 ac_check_lib_save_LIBS=$LIBS
23337LIBS="-ldld $LIBS"
23338cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023344
23345/* Override any gcc2 internal prototype to avoid an error. */
23346#ifdef __cplusplus
23347extern "C"
23348#endif
23349/* We use char because int might match the return type of a gcc2
23350 builtin and then its argument prototype would still apply. */
23351char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023352int
23353main ()
23354{
23355dld_link ();
23356 ;
23357 return 0;
23358}
23359_ACEOF
23360rm -f conftest.$ac_objext conftest$ac_exeext
23361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023362 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023364 grep -v '^ *+' conftest.er1 >conftest.err
23365 rm -f conftest.er1
23366 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023369 { ac_try='test -z "$ac_c_werror_flag"
23370 || test ! -s conftest.err'
23371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 ac_cv_lib_dld_dld_link=yes
23383else
23384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023385sed 's/^/| /' conftest.$ac_ext >&5
23386
John Criswell47fdd832003-07-14 16:52:07 +000023387ac_cv_lib_dld_dld_link=no
23388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023389rm -f conftest.err conftest.$ac_objext \
23390 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023391LIBS=$ac_check_lib_save_LIBS
23392fi
23393echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23394echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23395if test $ac_cv_lib_dld_dld_link = yes; then
23396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23397fi
23398
23399
23400fi
23401
23402
23403fi
23404
23405
23406fi
23407
23408
23409fi
23410
23411
23412fi
23413
23414 ;;
23415 esac
23416
23417 if test "x$lt_cv_dlopen" != xno; then
23418 enable_dlopen=yes
23419 else
23420 enable_dlopen=no
23421 fi
23422
23423 case $lt_cv_dlopen in
23424 dlopen)
23425 save_CPPFLAGS="$CPPFLAGS"
23426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23427
23428 save_LDFLAGS="$LDFLAGS"
23429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23430
23431 save_LIBS="$LIBS"
23432 LIBS="$lt_cv_dlopen_libs $LIBS"
23433
23434 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23435echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23436if test "${lt_cv_dlopen_self+set}" = set; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23438else
23439 if test "$cross_compiling" = yes; then :
23440 lt_cv_dlopen_self=cross
23441else
23442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23443 lt_status=$lt_dlunknown
23444 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +000023445#line 23445 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023446#include "confdefs.h"
23447
23448#if HAVE_DLFCN_H
23449#include <dlfcn.h>
23450#endif
23451
23452#include <stdio.h>
23453
23454#ifdef RTLD_GLOBAL
23455# define LT_DLGLOBAL RTLD_GLOBAL
23456#else
23457# ifdef DL_GLOBAL
23458# define LT_DLGLOBAL DL_GLOBAL
23459# else
23460# define LT_DLGLOBAL 0
23461# endif
23462#endif
23463
23464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23465 find out it does not work in some platform. */
23466#ifndef LT_DLLAZY_OR_NOW
23467# ifdef RTLD_LAZY
23468# define LT_DLLAZY_OR_NOW RTLD_LAZY
23469# else
23470# ifdef DL_LAZY
23471# define LT_DLLAZY_OR_NOW DL_LAZY
23472# else
23473# ifdef RTLD_NOW
23474# define LT_DLLAZY_OR_NOW RTLD_NOW
23475# else
23476# ifdef DL_NOW
23477# define LT_DLLAZY_OR_NOW DL_NOW
23478# else
23479# define LT_DLLAZY_OR_NOW 0
23480# endif
23481# endif
23482# endif
23483# endif
23484#endif
23485
23486#ifdef __cplusplus
23487extern "C" void exit (int);
23488#endif
23489
23490void fnord() { int i=42;}
23491int main ()
23492{
23493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23494 int status = $lt_dlunknown;
23495
23496 if (self)
23497 {
23498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23499 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23500 /* dlclose (self); */
23501 }
23502
23503 exit (status);
23504}
23505EOF
23506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23507 (eval $ac_link) 2>&5
23508 ac_status=$?
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23511 (./conftest; exit; ) 2>/dev/null
23512 lt_status=$?
23513 case x$lt_status in
23514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23516 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23517 esac
23518 else :
23519 # compilation failed
23520 lt_cv_dlopen_self=no
23521 fi
23522fi
23523rm -fr conftest*
23524
23525
23526fi
23527echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23528echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23529
23530 if test "x$lt_cv_dlopen_self" = xyes; then
23531 LDFLAGS="$LDFLAGS $link_static_flag"
23532 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23533echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23534if test "${lt_cv_dlopen_self_static+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23536else
23537 if test "$cross_compiling" = yes; then :
23538 lt_cv_dlopen_self_static=cross
23539else
23540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23541 lt_status=$lt_dlunknown
23542 cat > conftest.$ac_ext <<EOF
Misha Brukman1edb1902005-03-17 20:56:22 +000023543#line 23543 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023544#include "confdefs.h"
23545
23546#if HAVE_DLFCN_H
23547#include <dlfcn.h>
23548#endif
23549
23550#include <stdio.h>
23551
23552#ifdef RTLD_GLOBAL
23553# define LT_DLGLOBAL RTLD_GLOBAL
23554#else
23555# ifdef DL_GLOBAL
23556# define LT_DLGLOBAL DL_GLOBAL
23557# else
23558# define LT_DLGLOBAL 0
23559# endif
23560#endif
23561
23562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23563 find out it does not work in some platform. */
23564#ifndef LT_DLLAZY_OR_NOW
23565# ifdef RTLD_LAZY
23566# define LT_DLLAZY_OR_NOW RTLD_LAZY
23567# else
23568# ifdef DL_LAZY
23569# define LT_DLLAZY_OR_NOW DL_LAZY
23570# else
23571# ifdef RTLD_NOW
23572# define LT_DLLAZY_OR_NOW RTLD_NOW
23573# else
23574# ifdef DL_NOW
23575# define LT_DLLAZY_OR_NOW DL_NOW
23576# else
23577# define LT_DLLAZY_OR_NOW 0
23578# endif
23579# endif
23580# endif
23581# endif
23582#endif
23583
23584#ifdef __cplusplus
23585extern "C" void exit (int);
23586#endif
23587
23588void fnord() { int i=42;}
23589int main ()
23590{
23591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23592 int status = $lt_dlunknown;
23593
23594 if (self)
23595 {
23596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23598 /* dlclose (self); */
23599 }
23600
23601 exit (status);
23602}
23603EOF
23604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23605 (eval $ac_link) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23609 (./conftest; exit; ) 2>/dev/null
23610 lt_status=$?
23611 case x$lt_status in
23612 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23613 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23614 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23615 esac
23616 else :
23617 # compilation failed
23618 lt_cv_dlopen_self_static=no
23619 fi
23620fi
23621rm -fr conftest*
23622
23623
23624fi
23625echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23626echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23627 fi
23628
23629 CPPFLAGS="$save_CPPFLAGS"
23630 LDFLAGS="$save_LDFLAGS"
23631 LIBS="$save_LIBS"
23632 ;;
23633 esac
23634
23635 case $lt_cv_dlopen_self in
23636 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23637 *) enable_dlopen_self=unknown ;;
23638 esac
23639
23640 case $lt_cv_dlopen_self_static in
23641 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23642 *) enable_dlopen_self_static=unknown ;;
23643 esac
23644fi
23645
23646
23647# The else clause should only fire when bootstrapping the
23648# libtool distribution, otherwise you forgot to ship ltmain.sh
23649# with your package, and you will get complaints that there are
23650# no rules to generate ltmain.sh.
23651if test -f "$ltmain"; then
23652 # See if we are running on zsh, and set the options which allow our commands through
23653 # without removal of \ escapes.
23654 if test -n "${ZSH_VERSION+set}" ; then
23655 setopt NO_GLOB_SUBST
23656 fi
23657 # Now quote all the things that may contain metacharacters while being
23658 # careful not to overquote the AC_SUBSTed values. We take copies of the
23659 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023660 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23661 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023662 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23663 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23664 deplibs_check_method reload_flag reload_cmds need_locks \
23665 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23666 lt_cv_sys_global_symbol_to_c_name_address \
23667 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23668 old_postinstall_cmds old_postuninstall_cmds \
23669 compiler_GCJ \
23670 CC_GCJ \
23671 LD_GCJ \
23672 lt_prog_compiler_wl_GCJ \
23673 lt_prog_compiler_pic_GCJ \
23674 lt_prog_compiler_static_GCJ \
23675 lt_prog_compiler_no_builtin_flag_GCJ \
23676 export_dynamic_flag_spec_GCJ \
23677 thread_safe_flag_spec_GCJ \
23678 whole_archive_flag_spec_GCJ \
23679 enable_shared_with_static_runtimes_GCJ \
23680 old_archive_cmds_GCJ \
23681 old_archive_from_new_cmds_GCJ \
23682 predep_objects_GCJ \
23683 postdep_objects_GCJ \
23684 predeps_GCJ \
23685 postdeps_GCJ \
23686 compiler_lib_search_path_GCJ \
23687 archive_cmds_GCJ \
23688 archive_expsym_cmds_GCJ \
23689 postinstall_cmds_GCJ \
23690 postuninstall_cmds_GCJ \
23691 old_archive_from_expsyms_cmds_GCJ \
23692 allow_undefined_flag_GCJ \
23693 no_undefined_flag_GCJ \
23694 export_symbols_cmds_GCJ \
23695 hardcode_libdir_flag_spec_GCJ \
23696 hardcode_libdir_flag_spec_ld_GCJ \
23697 hardcode_libdir_separator_GCJ \
23698 hardcode_automatic_GCJ \
23699 module_cmds_GCJ \
23700 module_expsym_cmds_GCJ \
23701 lt_cv_prog_compiler_c_o_GCJ \
23702 exclude_expsyms_GCJ \
23703 include_expsyms_GCJ; do
23704
23705 case $var in
23706 old_archive_cmds_GCJ | \
23707 old_archive_from_new_cmds_GCJ | \
23708 archive_cmds_GCJ | \
23709 archive_expsym_cmds_GCJ | \
23710 module_cmds_GCJ | \
23711 module_expsym_cmds_GCJ | \
23712 old_archive_from_expsyms_cmds_GCJ | \
23713 export_symbols_cmds_GCJ | \
23714 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23715 postinstall_cmds | postuninstall_cmds | \
23716 old_postinstall_cmds | old_postuninstall_cmds | \
23717 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23718 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023719 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 +000023720 ;;
23721 *)
23722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23723 ;;
23724 esac
23725 done
23726
23727 case $lt_echo in
23728 *'\$0 --fallback-echo"')
23729 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23730 ;;
23731 esac
23732
23733cfgfile="$ofile"
23734
23735 cat <<__EOF__ >> "$cfgfile"
23736# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23737
23738# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23739
23740# Shell to use when invoking shell scripts.
23741SHELL=$lt_SHELL
23742
23743# Whether or not to build shared libraries.
23744build_libtool_libs=$enable_shared
23745
23746# Whether or not to build static libraries.
23747build_old_libs=$enable_static
23748
23749# Whether or not to add -lc for building shared libraries.
23750build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23751
23752# Whether or not to disallow shared libs when runtime libs are static
23753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23754
23755# Whether or not to optimize for fast installation.
23756fast_install=$enable_fast_install
23757
23758# The host system.
23759host_alias=$host_alias
23760host=$host
23761
23762# An echo program that does not interpret backslashes.
23763echo=$lt_echo
23764
23765# The archiver.
23766AR=$lt_AR
23767AR_FLAGS=$lt_AR_FLAGS
23768
23769# A C compiler.
23770LTCC=$lt_LTCC
23771
23772# A language-specific compiler.
23773CC=$lt_compiler_GCJ
23774
23775# Is the compiler the GNU C compiler?
23776with_gcc=$GCC_GCJ
23777
23778# An ERE matcher.
23779EGREP=$lt_EGREP
23780
23781# The linker used to build libraries.
23782LD=$lt_LD_GCJ
23783
23784# Whether we need hard or soft links.
23785LN_S=$lt_LN_S
23786
23787# A BSD-compatible nm program.
23788NM=$lt_NM
23789
23790# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023791STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023792
23793# Used to examine libraries when file_magic_cmd begins "file"
23794MAGIC_CMD=$MAGIC_CMD
23795
23796# Used on cygwin: DLL creation program.
23797DLLTOOL="$DLLTOOL"
23798
23799# Used on cygwin: object dumper.
23800OBJDUMP="$OBJDUMP"
23801
23802# Used on cygwin: assembler.
23803AS="$AS"
23804
23805# The name of the directory that contains temporary libtool files.
23806objdir=$objdir
23807
23808# How to create reloadable object files.
23809reload_flag=$lt_reload_flag
23810reload_cmds=$lt_reload_cmds
23811
23812# How to pass a linker flag through the compiler.
23813wl=$lt_lt_prog_compiler_wl_GCJ
23814
23815# Object file suffix (normally "o").
23816objext="$ac_objext"
23817
23818# Old archive suffix (normally "a").
23819libext="$libext"
23820
23821# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023822shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023823
23824# Executable file suffix (normally "").
23825exeext="$exeext"
23826
23827# Additional compiler flags for building library objects.
23828pic_flag=$lt_lt_prog_compiler_pic_GCJ
23829pic_mode=$pic_mode
23830
23831# What is the maximum length of a command?
23832max_cmd_len=$lt_cv_sys_max_cmd_len
23833
23834# Does compiler simultaneously support -c and -o options?
23835compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23836
23837# Must we lock files when doing compilation ?
23838need_locks=$lt_need_locks
23839
23840# Do we need the lib prefix for modules?
23841need_lib_prefix=$need_lib_prefix
23842
23843# Do we need a version for libraries?
23844need_version=$need_version
23845
23846# Whether dlopen is supported.
23847dlopen_support=$enable_dlopen
23848
23849# Whether dlopen of programs is supported.
23850dlopen_self=$enable_dlopen_self
23851
23852# Whether dlopen of statically linked programs is supported.
23853dlopen_self_static=$enable_dlopen_self_static
23854
23855# Compiler flag to prevent dynamic linking.
23856link_static_flag=$lt_lt_prog_compiler_static_GCJ
23857
23858# Compiler flag to turn off builtin functions.
23859no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23860
23861# Compiler flag to allow reflexive dlopens.
23862export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23863
23864# Compiler flag to generate shared objects directly from archives.
23865whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23866
23867# Compiler flag to generate thread-safe objects.
23868thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23869
23870# Library versioning type.
23871version_type=$version_type
23872
23873# Format of library name prefix.
23874libname_spec=$lt_libname_spec
23875
23876# List of archive names. First name is the real one, the rest are links.
23877# The last name is the one that the linker finds with -lNAME.
23878library_names_spec=$lt_library_names_spec
23879
23880# The coded name of the library, if different from the real name.
23881soname_spec=$lt_soname_spec
23882
23883# Commands used to build and install an old-style archive.
23884RANLIB=$lt_RANLIB
23885old_archive_cmds=$lt_old_archive_cmds_GCJ
23886old_postinstall_cmds=$lt_old_postinstall_cmds
23887old_postuninstall_cmds=$lt_old_postuninstall_cmds
23888
23889# Create an old-style archive from a shared archive.
23890old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23891
23892# Create a temporary old-style archive to link instead of a shared archive.
23893old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23894
23895# Commands used to build and install a shared archive.
23896archive_cmds=$lt_archive_cmds_GCJ
23897archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23898postinstall_cmds=$lt_postinstall_cmds
23899postuninstall_cmds=$lt_postuninstall_cmds
23900
23901# Commands used to build a loadable module (assumed same as above if empty)
23902module_cmds=$lt_module_cmds_GCJ
23903module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23904
23905# Commands to strip libraries.
23906old_striplib=$lt_old_striplib
23907striplib=$lt_striplib
23908
23909# Dependencies to place before the objects being linked to create a
23910# shared library.
23911predep_objects=$lt_predep_objects_GCJ
23912
23913# Dependencies to place after the objects being linked to create a
23914# shared library.
23915postdep_objects=$lt_postdep_objects_GCJ
23916
23917# Dependencies to place before the objects being linked to create a
23918# shared library.
23919predeps=$lt_predeps_GCJ
23920
23921# Dependencies to place after the objects being linked to create a
23922# shared library.
23923postdeps=$lt_postdeps_GCJ
23924
23925# The library search path used internally by the compiler when linking
23926# a shared library.
23927compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23928
23929# Method to check whether dependent libraries are shared objects.
23930deplibs_check_method=$lt_deplibs_check_method
23931
23932# Command to use when deplibs_check_method == file_magic.
23933file_magic_cmd=$lt_file_magic_cmd
23934
23935# Flag that allows shared libraries with undefined symbols to be built.
23936allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23937
23938# Flag that forces no undefined symbols.
23939no_undefined_flag=$lt_no_undefined_flag_GCJ
23940
23941# Commands used to finish a libtool library installation in a directory.
23942finish_cmds=$lt_finish_cmds
23943
23944# Same as above, but a single script fragment to be evaled but not shown.
23945finish_eval=$lt_finish_eval
23946
23947# Take the output of nm and produce a listing of raw symbols and C names.
23948global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23949
23950# Transform the output of nm in a proper C declaration
23951global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23952
23953# Transform the output of nm in a C name address pair
23954global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23955
23956# This is the shared library runtime path variable.
23957runpath_var=$runpath_var
23958
23959# This is the shared library path variable.
23960shlibpath_var=$shlibpath_var
23961
23962# Is shlibpath searched before the hard-coded library search path?
23963shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23964
23965# How to hardcode a shared library path into an executable.
23966hardcode_action=$hardcode_action_GCJ
23967
23968# Whether we should hardcode library paths into libraries.
23969hardcode_into_libs=$hardcode_into_libs
23970
23971# Flag to hardcode \$libdir into a binary during linking.
23972# This must work even if \$libdir does not exist.
23973hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23974
23975# If ld is used when linking, flag to hardcode \$libdir into
23976# a binary during linking. This must work even if \$libdir does
23977# not exist.
23978hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23979
23980# Whether we need a single -rpath flag with a separated argument.
23981hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23982
23983# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23984# resulting binary.
23985hardcode_direct=$hardcode_direct_GCJ
23986
23987# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23988# resulting binary.
23989hardcode_minus_L=$hardcode_minus_L_GCJ
23990
23991# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23992# the resulting binary.
23993hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23994
23995# Set to yes if building a shared library automatically hardcodes DIR into the library
23996# and all subsequent libraries and executables linked against it.
23997hardcode_automatic=$hardcode_automatic_GCJ
23998
23999# Variables whose values should be saved in libtool wrapper scripts and
24000# restored at relink time.
24001variables_saved_for_relink="$variables_saved_for_relink"
24002
24003# Whether libtool must link a program against all its dependency libraries.
24004link_all_deplibs=$link_all_deplibs_GCJ
24005
24006# Compile-time system search path for libraries
24007sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24008
24009# Run-time system search path for libraries
24010sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24011
24012# Fix the shell variable \$srcfile for the compiler.
24013fix_srcfile_path="$fix_srcfile_path_GCJ"
24014
24015# Set to yes if exported symbols are required.
24016always_export_symbols=$always_export_symbols_GCJ
24017
24018# The commands to list exported symbols.
24019export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24020
24021# The commands to extract the exported symbol list from a shared archive.
24022extract_expsyms_cmds=$lt_extract_expsyms_cmds
24023
24024# Symbols that should not be listed in the preloaded symbols.
24025exclude_expsyms=$lt_exclude_expsyms_GCJ
24026
24027# Symbols that must always be exported.
24028include_expsyms=$lt_include_expsyms_GCJ
24029
24030# ### END LIBTOOL TAG CONFIG: $tagname
24031
24032__EOF__
24033
24034
24035else
24036 # If there is no Makefile yet, we rely on a make rule to execute
24037 # `config.status --recheck' to rerun these tests and create the
24038 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24040 if test -f "$ltmain_in"; then
24041 test -f Makefile && make "$ltmain"
24042 fi
John Criswell47fdd832003-07-14 16:52:07 +000024043fi
24044
24045
24046ac_ext=c
24047ac_cpp='$CPP $CPPFLAGS'
24048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24050ac_compiler_gnu=$ac_cv_c_compiler_gnu
24051
24052CC="$lt_save_CC"
24053
24054 else
24055 tagname=""
24056 fi
24057 ;;
24058
24059 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024060 ac_ext=c
24061ac_cpp='$CPP $CPPFLAGS'
24062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24064ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024065
24066
24067# Source file extension for RC test sources.
24068ac_ext=rc
24069
24070# Object file extension for compiled RC test sources.
24071objext=o
24072objext_RC=$objext
24073
24074# Code to be used in simple compile tests
24075lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24076
24077# Code to be used in simple link tests
24078lt_simple_link_test_code="$lt_simple_compile_test_code"
24079
24080# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24081
24082# If no C compiler was specified, use CC.
24083LTCC=${LTCC-"$CC"}
24084
24085# Allow CC to be a program name with arguments.
24086compiler=$CC
24087
24088
24089# Allow CC to be a program name with arguments.
24090lt_save_CC="$CC"
24091CC=${RC-"windres"}
24092compiler=$CC
24093compiler_RC=$CC
24094lt_cv_prog_compiler_c_o_RC=yes
24095
24096# The else clause should only fire when bootstrapping the
24097# libtool distribution, otherwise you forgot to ship ltmain.sh
24098# with your package, and you will get complaints that there are
24099# no rules to generate ltmain.sh.
24100if test -f "$ltmain"; then
24101 # See if we are running on zsh, and set the options which allow our commands through
24102 # without removal of \ escapes.
24103 if test -n "${ZSH_VERSION+set}" ; then
24104 setopt NO_GLOB_SUBST
24105 fi
24106 # Now quote all the things that may contain metacharacters while being
24107 # careful not to overquote the AC_SUBSTed values. We take copies of the
24108 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024109 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24110 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024111 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24112 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24113 deplibs_check_method reload_flag reload_cmds need_locks \
24114 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24115 lt_cv_sys_global_symbol_to_c_name_address \
24116 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24117 old_postinstall_cmds old_postuninstall_cmds \
24118 compiler_RC \
24119 CC_RC \
24120 LD_RC \
24121 lt_prog_compiler_wl_RC \
24122 lt_prog_compiler_pic_RC \
24123 lt_prog_compiler_static_RC \
24124 lt_prog_compiler_no_builtin_flag_RC \
24125 export_dynamic_flag_spec_RC \
24126 thread_safe_flag_spec_RC \
24127 whole_archive_flag_spec_RC \
24128 enable_shared_with_static_runtimes_RC \
24129 old_archive_cmds_RC \
24130 old_archive_from_new_cmds_RC \
24131 predep_objects_RC \
24132 postdep_objects_RC \
24133 predeps_RC \
24134 postdeps_RC \
24135 compiler_lib_search_path_RC \
24136 archive_cmds_RC \
24137 archive_expsym_cmds_RC \
24138 postinstall_cmds_RC \
24139 postuninstall_cmds_RC \
24140 old_archive_from_expsyms_cmds_RC \
24141 allow_undefined_flag_RC \
24142 no_undefined_flag_RC \
24143 export_symbols_cmds_RC \
24144 hardcode_libdir_flag_spec_RC \
24145 hardcode_libdir_flag_spec_ld_RC \
24146 hardcode_libdir_separator_RC \
24147 hardcode_automatic_RC \
24148 module_cmds_RC \
24149 module_expsym_cmds_RC \
24150 lt_cv_prog_compiler_c_o_RC \
24151 exclude_expsyms_RC \
24152 include_expsyms_RC; do
24153
24154 case $var in
24155 old_archive_cmds_RC | \
24156 old_archive_from_new_cmds_RC | \
24157 archive_cmds_RC | \
24158 archive_expsym_cmds_RC | \
24159 module_cmds_RC | \
24160 module_expsym_cmds_RC | \
24161 old_archive_from_expsyms_cmds_RC | \
24162 export_symbols_cmds_RC | \
24163 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24164 postinstall_cmds | postuninstall_cmds | \
24165 old_postinstall_cmds | old_postuninstall_cmds | \
24166 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24167 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024168 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 +000024169 ;;
24170 *)
24171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24172 ;;
24173 esac
24174 done
24175
24176 case $lt_echo in
24177 *'\$0 --fallback-echo"')
24178 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24179 ;;
24180 esac
24181
24182cfgfile="$ofile"
24183
24184 cat <<__EOF__ >> "$cfgfile"
24185# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24186
24187# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24188
24189# Shell to use when invoking shell scripts.
24190SHELL=$lt_SHELL
24191
24192# Whether or not to build shared libraries.
24193build_libtool_libs=$enable_shared
24194
24195# Whether or not to build static libraries.
24196build_old_libs=$enable_static
24197
24198# Whether or not to add -lc for building shared libraries.
24199build_libtool_need_lc=$archive_cmds_need_lc_RC
24200
24201# Whether or not to disallow shared libs when runtime libs are static
24202allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24203
24204# Whether or not to optimize for fast installation.
24205fast_install=$enable_fast_install
24206
24207# The host system.
24208host_alias=$host_alias
24209host=$host
24210
24211# An echo program that does not interpret backslashes.
24212echo=$lt_echo
24213
24214# The archiver.
24215AR=$lt_AR
24216AR_FLAGS=$lt_AR_FLAGS
24217
24218# A C compiler.
24219LTCC=$lt_LTCC
24220
24221# A language-specific compiler.
24222CC=$lt_compiler_RC
24223
24224# Is the compiler the GNU C compiler?
24225with_gcc=$GCC_RC
24226
24227# An ERE matcher.
24228EGREP=$lt_EGREP
24229
24230# The linker used to build libraries.
24231LD=$lt_LD_RC
24232
24233# Whether we need hard or soft links.
24234LN_S=$lt_LN_S
24235
24236# A BSD-compatible nm program.
24237NM=$lt_NM
24238
24239# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024240STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024241
24242# Used to examine libraries when file_magic_cmd begins "file"
24243MAGIC_CMD=$MAGIC_CMD
24244
24245# Used on cygwin: DLL creation program.
24246DLLTOOL="$DLLTOOL"
24247
24248# Used on cygwin: object dumper.
24249OBJDUMP="$OBJDUMP"
24250
24251# Used on cygwin: assembler.
24252AS="$AS"
24253
24254# The name of the directory that contains temporary libtool files.
24255objdir=$objdir
24256
24257# How to create reloadable object files.
24258reload_flag=$lt_reload_flag
24259reload_cmds=$lt_reload_cmds
24260
24261# How to pass a linker flag through the compiler.
24262wl=$lt_lt_prog_compiler_wl_RC
24263
24264# Object file suffix (normally "o").
24265objext="$ac_objext"
24266
24267# Old archive suffix (normally "a").
24268libext="$libext"
24269
24270# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024271shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024272
24273# Executable file suffix (normally "").
24274exeext="$exeext"
24275
24276# Additional compiler flags for building library objects.
24277pic_flag=$lt_lt_prog_compiler_pic_RC
24278pic_mode=$pic_mode
24279
24280# What is the maximum length of a command?
24281max_cmd_len=$lt_cv_sys_max_cmd_len
24282
24283# Does compiler simultaneously support -c and -o options?
24284compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24285
24286# Must we lock files when doing compilation ?
24287need_locks=$lt_need_locks
24288
24289# Do we need the lib prefix for modules?
24290need_lib_prefix=$need_lib_prefix
24291
24292# Do we need a version for libraries?
24293need_version=$need_version
24294
24295# Whether dlopen is supported.
24296dlopen_support=$enable_dlopen
24297
24298# Whether dlopen of programs is supported.
24299dlopen_self=$enable_dlopen_self
24300
24301# Whether dlopen of statically linked programs is supported.
24302dlopen_self_static=$enable_dlopen_self_static
24303
24304# Compiler flag to prevent dynamic linking.
24305link_static_flag=$lt_lt_prog_compiler_static_RC
24306
24307# Compiler flag to turn off builtin functions.
24308no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24309
24310# Compiler flag to allow reflexive dlopens.
24311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24312
24313# Compiler flag to generate shared objects directly from archives.
24314whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24315
24316# Compiler flag to generate thread-safe objects.
24317thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24318
24319# Library versioning type.
24320version_type=$version_type
24321
24322# Format of library name prefix.
24323libname_spec=$lt_libname_spec
24324
24325# List of archive names. First name is the real one, the rest are links.
24326# The last name is the one that the linker finds with -lNAME.
24327library_names_spec=$lt_library_names_spec
24328
24329# The coded name of the library, if different from the real name.
24330soname_spec=$lt_soname_spec
24331
24332# Commands used to build and install an old-style archive.
24333RANLIB=$lt_RANLIB
24334old_archive_cmds=$lt_old_archive_cmds_RC
24335old_postinstall_cmds=$lt_old_postinstall_cmds
24336old_postuninstall_cmds=$lt_old_postuninstall_cmds
24337
24338# Create an old-style archive from a shared archive.
24339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24340
24341# Create a temporary old-style archive to link instead of a shared archive.
24342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24343
24344# Commands used to build and install a shared archive.
24345archive_cmds=$lt_archive_cmds_RC
24346archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24347postinstall_cmds=$lt_postinstall_cmds
24348postuninstall_cmds=$lt_postuninstall_cmds
24349
24350# Commands used to build a loadable module (assumed same as above if empty)
24351module_cmds=$lt_module_cmds_RC
24352module_expsym_cmds=$lt_module_expsym_cmds_RC
24353
24354# Commands to strip libraries.
24355old_striplib=$lt_old_striplib
24356striplib=$lt_striplib
24357
24358# Dependencies to place before the objects being linked to create a
24359# shared library.
24360predep_objects=$lt_predep_objects_RC
24361
24362# Dependencies to place after the objects being linked to create a
24363# shared library.
24364postdep_objects=$lt_postdep_objects_RC
24365
24366# Dependencies to place before the objects being linked to create a
24367# shared library.
24368predeps=$lt_predeps_RC
24369
24370# Dependencies to place after the objects being linked to create a
24371# shared library.
24372postdeps=$lt_postdeps_RC
24373
24374# The library search path used internally by the compiler when linking
24375# a shared library.
24376compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24377
24378# Method to check whether dependent libraries are shared objects.
24379deplibs_check_method=$lt_deplibs_check_method
24380
24381# Command to use when deplibs_check_method == file_magic.
24382file_magic_cmd=$lt_file_magic_cmd
24383
24384# Flag that allows shared libraries with undefined symbols to be built.
24385allow_undefined_flag=$lt_allow_undefined_flag_RC
24386
24387# Flag that forces no undefined symbols.
24388no_undefined_flag=$lt_no_undefined_flag_RC
24389
24390# Commands used to finish a libtool library installation in a directory.
24391finish_cmds=$lt_finish_cmds
24392
24393# Same as above, but a single script fragment to be evaled but not shown.
24394finish_eval=$lt_finish_eval
24395
24396# Take the output of nm and produce a listing of raw symbols and C names.
24397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24398
24399# Transform the output of nm in a proper C declaration
24400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24401
24402# Transform the output of nm in a C name address pair
24403global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24404
24405# This is the shared library runtime path variable.
24406runpath_var=$runpath_var
24407
24408# This is the shared library path variable.
24409shlibpath_var=$shlibpath_var
24410
24411# Is shlibpath searched before the hard-coded library search path?
24412shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24413
24414# How to hardcode a shared library path into an executable.
24415hardcode_action=$hardcode_action_RC
24416
24417# Whether we should hardcode library paths into libraries.
24418hardcode_into_libs=$hardcode_into_libs
24419
24420# Flag to hardcode \$libdir into a binary during linking.
24421# This must work even if \$libdir does not exist.
24422hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24423
24424# If ld is used when linking, flag to hardcode \$libdir into
24425# a binary during linking. This must work even if \$libdir does
24426# not exist.
24427hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24428
24429# Whether we need a single -rpath flag with a separated argument.
24430hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24431
24432# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24433# resulting binary.
24434hardcode_direct=$hardcode_direct_RC
24435
24436# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24437# resulting binary.
24438hardcode_minus_L=$hardcode_minus_L_RC
24439
24440# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24441# the resulting binary.
24442hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24443
24444# Set to yes if building a shared library automatically hardcodes DIR into the library
24445# and all subsequent libraries and executables linked against it.
24446hardcode_automatic=$hardcode_automatic_RC
24447
24448# Variables whose values should be saved in libtool wrapper scripts and
24449# restored at relink time.
24450variables_saved_for_relink="$variables_saved_for_relink"
24451
24452# Whether libtool must link a program against all its dependency libraries.
24453link_all_deplibs=$link_all_deplibs_RC
24454
24455# Compile-time system search path for libraries
24456sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24457
24458# Run-time system search path for libraries
24459sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24460
24461# Fix the shell variable \$srcfile for the compiler.
24462fix_srcfile_path="$fix_srcfile_path_RC"
24463
24464# Set to yes if exported symbols are required.
24465always_export_symbols=$always_export_symbols_RC
24466
24467# The commands to list exported symbols.
24468export_symbols_cmds=$lt_export_symbols_cmds_RC
24469
24470# The commands to extract the exported symbol list from a shared archive.
24471extract_expsyms_cmds=$lt_extract_expsyms_cmds
24472
24473# Symbols that should not be listed in the preloaded symbols.
24474exclude_expsyms=$lt_exclude_expsyms_RC
24475
24476# Symbols that must always be exported.
24477include_expsyms=$lt_include_expsyms_RC
24478
24479# ### END LIBTOOL TAG CONFIG: $tagname
24480
24481__EOF__
24482
24483
24484else
24485 # If there is no Makefile yet, we rely on a make rule to execute
24486 # `config.status --recheck' to rerun these tests and create the
24487 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024488 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24489 if test -f "$ltmain_in"; then
24490 test -f Makefile && make "$ltmain"
24491 fi
John Criswell47fdd832003-07-14 16:52:07 +000024492fi
24493
24494
24495ac_ext=c
24496ac_cpp='$CPP $CPPFLAGS'
24497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24499ac_compiler_gnu=$ac_cv_c_compiler_gnu
24500
24501CC="$lt_save_CC"
24502
24503 ;;
24504
24505 *)
24506 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24507echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24508 { (exit 1); exit 1; }; }
24509 ;;
24510 esac
24511
24512 # Append the new tag name to the list of available tags.
24513 if test -n "$tagname" ; then
24514 available_tags="$available_tags $tagname"
24515 fi
24516 fi
24517 done
24518 IFS="$lt_save_ifs"
24519
24520 # Now substitute the updated list of available tags.
24521 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24522 mv "${ofile}T" "$ofile"
24523 chmod +x "$ofile"
24524 else
24525 rm -f "${ofile}T"
24526 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24527echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24528 { (exit 1); exit 1; }; }
24529 fi
24530fi
John Criswell7a73b802003-06-30 21:59:07 +000024531
24532
24533
24534# This can be used to rebuild libtool when needed
24535LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24536
24537# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024538LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024539
24540# Prevent multiple expansion
24541
24542
24543
John Criswell47fdd832003-07-14 16:52:07 +000024544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024561
Reid Spencer582a23c2004-12-29 07:07:57 +000024562if test "$lt_cv_dlopen_self" = "yes" ; then
24563
24564cat >>confdefs.h <<\_ACEOF
24565#define CAN_DLOPEN_SELF 1
24566_ACEOF
24567
24568fi
24569
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024570etags_version=`$ETAGS --version 2>&1`
24571case "$etags_version" in
24572 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24573 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24574 *) ETAGSFLAGS="" ;;
24575esac
24576ETAGSFLAGS=$ETAGSFLAGS
24577
24578
Reid Spencer7931a782004-12-27 06:15:02 +000024579if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024580 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24581set dummy llvm-gcc; ac_word=$2
24582echo "$as_me:$LINENO: checking for $ac_word" >&5
24583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24584if test "${ac_cv_path_LLVMGCC+set}" = set; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24586else
24587 case $LLVMGCC in
24588 [\\/]* | ?:[\\/]*)
24589 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24590 ;;
24591 *)
24592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24593for as_dir in $PATH
24594do
24595 IFS=$as_save_IFS
24596 test -z "$as_dir" && as_dir=.
24597 for ac_exec_ext in '' $ac_executable_extensions; do
24598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24599 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24601 break 2
24602 fi
24603done
24604done
24605
24606 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24607 ;;
24608esac
24609fi
24610LLVMGCC=$ac_cv_path_LLVMGCC
24611
24612if test -n "$LLVMGCC"; then
24613 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24614echo "${ECHO_T}$LLVMGCC" >&6
24615else
24616 echo "$as_me:$LINENO: result: no" >&5
24617echo "${ECHO_T}no" >&6
24618fi
24619
24620 # Extract the first word of "llvm-g++", so it can be a program name with args.
24621set dummy llvm-g++; ac_word=$2
24622echo "$as_me:$LINENO: checking for $ac_word" >&5
24623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24624if test "${ac_cv_path_LLVMGXX+set}" = set; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24626else
24627 case $LLVMGXX in
24628 [\\/]* | ?:[\\/]*)
24629 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24630 ;;
24631 *)
24632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24633for as_dir in $PATH
24634do
24635 IFS=$as_save_IFS
24636 test -z "$as_dir" && as_dir=.
24637 for ac_exec_ext in '' $ac_executable_extensions; do
24638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24639 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24641 break 2
24642 fi
24643done
24644done
24645
24646 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24647 ;;
24648esac
24649fi
24650LLVMGXX=$ac_cv_path_LLVMGXX
24651
24652if test -n "$LLVMGXX"; then
24653 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24654echo "${ECHO_T}$LLVMGXX" >&6
24655else
24656 echo "$as_me:$LINENO: result: no" >&5
24657echo "${ECHO_T}no" >&6
24658fi
24659
24660else
24661 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24662 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24663 LLVMGCC=$LLVMGCC
24664
24665 LLVMGXX=$LLVMGXX
24666
24667fi
24668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024669echo "$as_me:$LINENO: checking tool compatibility" >&5
24670echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24671
Reid Spencer86901802004-12-08 23:07:27 +000024672ICC=no
24673IXX=no
24674case $CC in
24675 icc*|icpc*)
24676 ICC=yes
24677 IXX=yes
24678 ;;
24679 *)
24680 ;;
24681esac
24682
24683if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024684then
Reid Spencer86901802004-12-08 23:07:27 +000024685 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24686echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024687 { (exit 1); exit 1; }; }
24688fi
24689
Reid Spencer86901802004-12-08 23:07:27 +000024690if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024691then
Reid Spencer86901802004-12-08 23:07:27 +000024692 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24693echo "$as_me: error: g++|icc required but not found" >&2;}
24694 { (exit 1); exit 1; }; }
24695fi
24696
24697if test "$GCC" = "yes"
24698then
24699 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24700 if test "$gccmajor" -lt "3"
24701 then
24702 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024703echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24704 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024705 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024706fi
24707
24708if test -z "$llvm_cv_gnu_make_command"
24709then
24710 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24711echo "$as_me: error: GNU Make required but not found" >&2;}
24712 { (exit 1); exit 1; }; }
24713fi
24714
24715echo "$as_me:$LINENO: result: ok" >&5
24716echo "${ECHO_T}ok" >&6
24717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024718
John Criswell7a73b802003-06-30 21:59:07 +000024719
John Criswell7a73b802003-06-30 21:59:07 +000024720echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24721echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24722if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24724else
24725 ac_check_lib_save_LIBS=$LIBS
24726LIBS="-lelf $LIBS"
24727cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024728/* confdefs.h. */
24729_ACEOF
24730cat confdefs.h >>conftest.$ac_ext
24731cat >>conftest.$ac_ext <<_ACEOF
24732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024733
24734/* Override any gcc2 internal prototype to avoid an error. */
24735#ifdef __cplusplus
24736extern "C"
24737#endif
24738/* We use char because int might match the return type of a gcc2
24739 builtin and then its argument prototype would still apply. */
24740char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024741int
24742main ()
24743{
24744elf_begin ();
24745 ;
24746 return 0;
24747}
24748_ACEOF
24749rm -f conftest.$ac_objext conftest$ac_exeext
24750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024751 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024753 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1
24755 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024758 { ac_try='test -z "$ac_c_werror_flag"
24759 || test ! -s conftest.err'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; } &&
24765 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; }; then
24771 ac_cv_lib_elf_elf_begin=yes
24772else
24773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024774sed 's/^/| /' conftest.$ac_ext >&5
24775
John Criswell7a73b802003-06-30 21:59:07 +000024776ac_cv_lib_elf_elf_begin=no
24777fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024778rm -f conftest.err conftest.$ac_objext \
24779 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024780LIBS=$ac_check_lib_save_LIBS
24781fi
24782echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24783echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24784if test $ac_cv_lib_elf_elf_begin = yes; then
24785 cat >>confdefs.h <<_ACEOF
24786#define HAVE_LIBELF 1
24787_ACEOF
24788
24789 LIBS="-lelf $LIBS"
24790
24791fi
24792
24793
Reid Spencer17795972004-11-18 09:47:37 +000024794echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24795echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24796if test "${ac_cv_search_lt_dlopen+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24798else
24799 ac_func_search_save_LIBS=$LIBS
24800ac_cv_search_lt_dlopen=no
24801cat >conftest.$ac_ext <<_ACEOF
24802/* confdefs.h. */
24803_ACEOF
24804cat confdefs.h >>conftest.$ac_ext
24805cat >>conftest.$ac_ext <<_ACEOF
24806/* end confdefs.h. */
24807
24808/* Override any gcc2 internal prototype to avoid an error. */
24809#ifdef __cplusplus
24810extern "C"
24811#endif
24812/* We use char because int might match the return type of a gcc2
24813 builtin and then its argument prototype would still apply. */
24814char lt_dlopen ();
24815int
24816main ()
24817{
24818lt_dlopen ();
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823rm -f conftest.$ac_objext conftest$ac_exeext
24824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825 (eval $ac_link) 2>conftest.er1
24826 ac_status=$?
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } &&
24832 { ac_try='test -z "$ac_c_werror_flag"
24833 || test ! -s conftest.err'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } &&
24839 { ac_try='test -s conftest$ac_exeext'
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; }; then
24845 ac_cv_search_lt_dlopen="none required"
24846else
24847 echo "$as_me: failed program was:" >&5
24848sed 's/^/| /' conftest.$ac_ext >&5
24849
24850fi
24851rm -f conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
24853if test "$ac_cv_search_lt_dlopen" = no; then
24854 for ac_lib in ltdl; do
24855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24856 cat >conftest.$ac_ext <<_ACEOF
24857/* confdefs.h. */
24858_ACEOF
24859cat confdefs.h >>conftest.$ac_ext
24860cat >>conftest.$ac_ext <<_ACEOF
24861/* end confdefs.h. */
24862
24863/* Override any gcc2 internal prototype to avoid an error. */
24864#ifdef __cplusplus
24865extern "C"
24866#endif
24867/* We use char because int might match the return type of a gcc2
24868 builtin and then its argument prototype would still apply. */
24869char lt_dlopen ();
24870int
24871main ()
24872{
24873lt_dlopen ();
24874 ;
24875 return 0;
24876}
24877_ACEOF
24878rm -f conftest.$ac_objext conftest$ac_exeext
24879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24880 (eval $ac_link) 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } &&
24887 { ac_try='test -z "$ac_c_werror_flag"
24888 || test ! -s conftest.err'
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest$ac_exeext'
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; }; then
24900 ac_cv_search_lt_dlopen="-l$ac_lib"
24901break
24902else
24903 echo "$as_me: failed program was:" >&5
24904sed 's/^/| /' conftest.$ac_ext >&5
24905
24906fi
24907rm -f conftest.err conftest.$ac_objext \
24908 conftest$ac_exeext conftest.$ac_ext
24909 done
24910fi
24911LIBS=$ac_func_search_save_LIBS
24912fi
24913echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24914echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24915if test "$ac_cv_search_lt_dlopen" != no; then
24916 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24917
24918cat >>confdefs.h <<\_ACEOF
24919#define HAVE_LT_DLOPEN 1
24920_ACEOF
24921
24922else
24923 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24924 not be available" >&5
24925echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24926 not be available" >&2;}
24927fi
24928
24929
John Criswell7a73b802003-06-30 21:59:07 +000024930echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24931echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24932if test "${ac_cv_search_dlopen+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24934else
24935 ac_func_search_save_LIBS=$LIBS
24936ac_cv_search_dlopen=no
24937cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024938/* confdefs.h. */
24939_ACEOF
24940cat confdefs.h >>conftest.$ac_ext
24941cat >>conftest.$ac_ext <<_ACEOF
24942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024943
24944/* Override any gcc2 internal prototype to avoid an error. */
24945#ifdef __cplusplus
24946extern "C"
24947#endif
24948/* We use char because int might match the return type of a gcc2
24949 builtin and then its argument prototype would still apply. */
24950char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024951int
24952main ()
24953{
24954dlopen ();
24955 ;
24956 return 0;
24957}
24958_ACEOF
24959rm -f conftest.$ac_objext conftest$ac_exeext
24960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024961 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024962 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024963 grep -v '^ *+' conftest.er1 >conftest.err
24964 rm -f conftest.er1
24965 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024968 { ac_try='test -z "$ac_c_werror_flag"
24969 || test ! -s conftest.err'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 ac_cv_search_dlopen="none required"
24982else
24983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024984sed 's/^/| /' conftest.$ac_ext >&5
24985
John Criswell7a73b802003-06-30 21:59:07 +000024986fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024987rm -f conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024989if test "$ac_cv_search_dlopen" = no; then
24990 for ac_lib in dl; do
24991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24992 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024993/* confdefs.h. */
24994_ACEOF
24995cat confdefs.h >>conftest.$ac_ext
24996cat >>conftest.$ac_ext <<_ACEOF
24997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024998
24999/* Override any gcc2 internal prototype to avoid an error. */
25000#ifdef __cplusplus
25001extern "C"
25002#endif
25003/* We use char because int might match the return type of a gcc2
25004 builtin and then its argument prototype would still apply. */
25005char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025006int
25007main ()
25008{
25009dlopen ();
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014rm -f conftest.$ac_objext conftest$ac_exeext
25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025016 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025017 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_cv_search_dlopen="-l$ac_lib"
25037break
25038else
25039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025040sed 's/^/| /' conftest.$ac_ext >&5
25041
John Criswell7a73b802003-06-30 21:59:07 +000025042fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025043rm -f conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025045 done
25046fi
25047LIBS=$ac_func_search_save_LIBS
25048fi
25049echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25050echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25051if test "$ac_cv_search_dlopen" != no; then
25052 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025053
25054cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025055#define HAVE_DLOPEN 1
25056_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025057
25058else
Brian Gaekec45be042003-10-07 06:01:34 +000025059 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25060echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025061fi
25062
25063
25064echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25065echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25066if test "${ac_cv_search_mallinfo+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068else
25069 ac_func_search_save_LIBS=$LIBS
25070ac_cv_search_mallinfo=no
25071cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025072/* confdefs.h. */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025077
25078/* Override any gcc2 internal prototype to avoid an error. */
25079#ifdef __cplusplus
25080extern "C"
25081#endif
25082/* We use char because int might match the return type of a gcc2
25083 builtin and then its argument prototype would still apply. */
25084char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025085int
25086main ()
25087{
25088mallinfo ();
25089 ;
25090 return 0;
25091}
25092_ACEOF
25093rm -f conftest.$ac_objext conftest$ac_exeext
25094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025095 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025097 grep -v '^ *+' conftest.er1 >conftest.err
25098 rm -f conftest.er1
25099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025102 { ac_try='test -z "$ac_c_werror_flag"
25103 || test ! -s conftest.err'
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 ac_cv_search_mallinfo="none required"
25116else
25117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025118sed 's/^/| /' conftest.$ac_ext >&5
25119
John Criswell7a73b802003-06-30 21:59:07 +000025120fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025121rm -f conftest.err conftest.$ac_objext \
25122 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025123if test "$ac_cv_search_mallinfo" = no; then
25124 for ac_lib in malloc; do
25125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25126 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025127/* confdefs.h. */
25128_ACEOF
25129cat confdefs.h >>conftest.$ac_ext
25130cat >>conftest.$ac_ext <<_ACEOF
25131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025132
25133/* Override any gcc2 internal prototype to avoid an error. */
25134#ifdef __cplusplus
25135extern "C"
25136#endif
25137/* We use char because int might match the return type of a gcc2
25138 builtin and then its argument prototype would still apply. */
25139char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025140int
25141main ()
25142{
25143mallinfo ();
25144 ;
25145 return 0;
25146}
25147_ACEOF
25148rm -f conftest.$ac_objext conftest$ac_exeext
25149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025150 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025152 grep -v '^ *+' conftest.er1 >conftest.err
25153 rm -f conftest.er1
25154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025157 { ac_try='test -z "$ac_c_werror_flag"
25158 || test ! -s conftest.err'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25161 ac_status=$?
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; } &&
25164 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; }; then
25170 ac_cv_search_mallinfo="-l$ac_lib"
25171break
25172else
25173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025174sed 's/^/| /' conftest.$ac_ext >&5
25175
John Criswell7a73b802003-06-30 21:59:07 +000025176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025177rm -f conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025179 done
25180fi
25181LIBS=$ac_func_search_save_LIBS
25182fi
25183echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25184echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25185if test "$ac_cv_search_mallinfo" != no; then
25186 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025187
25188cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025189#define HAVE_MALLINFO 1
25190_ACEOF
25191
25192fi
25193
25194
Brian Gaeke5f268f72003-12-05 19:29:01 +000025195echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25196echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25197if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25199else
25200 ac_func_search_save_LIBS=$LIBS
25201ac_cv_search_pthread_mutex_lock=no
25202cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025203/* confdefs.h. */
25204_ACEOF
25205cat confdefs.h >>conftest.$ac_ext
25206cat >>conftest.$ac_ext <<_ACEOF
25207/* end confdefs.h. */
25208
25209/* Override any gcc2 internal prototype to avoid an error. */
25210#ifdef __cplusplus
25211extern "C"
25212#endif
25213/* We use char because int might match the return type of a gcc2
25214 builtin and then its argument prototype would still apply. */
25215char pthread_mutex_lock ();
25216int
25217main ()
25218{
25219pthread_mutex_lock ();
25220 ;
25221 return 0;
25222}
25223_ACEOF
25224rm -f conftest.$ac_objext conftest$ac_exeext
25225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025226 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025228 grep -v '^ *+' conftest.er1 >conftest.err
25229 rm -f conftest.er1
25230 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025233 { ac_try='test -z "$ac_c_werror_flag"
25234 || test ! -s conftest.err'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; } &&
25240 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; }; then
25246 ac_cv_search_pthread_mutex_lock="none required"
25247else
25248 echo "$as_me: failed program was:" >&5
25249sed 's/^/| /' conftest.$ac_ext >&5
25250
25251fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025252rm -f conftest.err conftest.$ac_objext \
25253 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025254if test "$ac_cv_search_pthread_mutex_lock" = no; then
25255 for ac_lib in pthread; do
25256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25257 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025258/* confdefs.h. */
25259_ACEOF
25260cat confdefs.h >>conftest.$ac_ext
25261cat >>conftest.$ac_ext <<_ACEOF
25262/* end confdefs.h. */
25263
25264/* Override any gcc2 internal prototype to avoid an error. */
25265#ifdef __cplusplus
25266extern "C"
25267#endif
25268/* We use char because int might match the return type of a gcc2
25269 builtin and then its argument prototype would still apply. */
25270char pthread_mutex_lock ();
25271int
25272main ()
25273{
25274pthread_mutex_lock ();
25275 ;
25276 return 0;
25277}
25278_ACEOF
25279rm -f conftest.$ac_objext conftest$ac_exeext
25280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025281 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025282 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 grep -v '^ *+' conftest.er1 >conftest.err
25284 rm -f conftest.er1
25285 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025288 { ac_try='test -z "$ac_c_werror_flag"
25289 || test ! -s conftest.err'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25302break
25303else
25304 echo "$as_me: failed program was:" >&5
25305sed 's/^/| /' conftest.$ac_ext >&5
25306
25307fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025308rm -f conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025310 done
25311fi
25312LIBS=$ac_func_search_save_LIBS
25313fi
25314echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25315echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25316if test "$ac_cv_search_pthread_mutex_lock" != no; then
25317 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025318
John Criswell40468462004-09-24 21:19:06 +000025319cat >>confdefs.h <<\_ACEOF
25320#define HAVE_PTHREAD_MUTEX_LOCK 1
25321_ACEOF
25322
25323fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025324
Brian Gaekec9a410c2004-02-23 21:30:37 +000025325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025326
Reid Spencer59473af2004-12-25 07:31:29 +000025327
25328
25329
25330
25331
25332ac_header_dirent=no
25333for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25334 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25335echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25336echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25337if eval "test \"\${$as_ac_Header+set}\" = set"; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25339else
25340 cat >conftest.$ac_ext <<_ACEOF
25341/* confdefs.h. */
25342_ACEOF
25343cat confdefs.h >>conftest.$ac_ext
25344cat >>conftest.$ac_ext <<_ACEOF
25345/* end confdefs.h. */
25346#include <sys/types.h>
25347#include <$ac_hdr>
25348
25349int
25350main ()
25351{
25352if ((DIR *) 0)
25353return 0;
25354 ;
25355 return 0;
25356}
25357_ACEOF
25358rm -f conftest.$ac_objext
25359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360 (eval $ac_compile) 2>conftest.er1
25361 ac_status=$?
25362 grep -v '^ *+' conftest.er1 >conftest.err
25363 rm -f conftest.er1
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } &&
25367 { ac_try='test -z "$ac_c_werror_flag"
25368 || test ! -s conftest.err'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25371 ac_status=$?
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; } &&
25374 { ac_try='test -s conftest.$ac_objext'
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25377 ac_status=$?
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; }; then
25380 eval "$as_ac_Header=yes"
25381else
25382 echo "$as_me: failed program was:" >&5
25383sed 's/^/| /' conftest.$ac_ext >&5
25384
25385eval "$as_ac_Header=no"
25386fi
25387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25388fi
25389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25391if test `eval echo '${'$as_ac_Header'}'` = yes; then
25392 cat >>confdefs.h <<_ACEOF
25393#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25394_ACEOF
25395
25396ac_header_dirent=$ac_hdr; break
25397fi
25398
25399done
25400# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25401if test $ac_header_dirent = dirent.h; then
25402 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25403echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25404if test "${ac_cv_search_opendir+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25406else
25407 ac_func_search_save_LIBS=$LIBS
25408ac_cv_search_opendir=no
25409cat >conftest.$ac_ext <<_ACEOF
25410/* confdefs.h. */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h. */
25415
25416/* Override any gcc2 internal prototype to avoid an error. */
25417#ifdef __cplusplus
25418extern "C"
25419#endif
25420/* We use char because int might match the return type of a gcc2
25421 builtin and then its argument prototype would still apply. */
25422char opendir ();
25423int
25424main ()
25425{
25426opendir ();
25427 ;
25428 return 0;
25429}
25430_ACEOF
25431rm -f conftest.$ac_objext conftest$ac_exeext
25432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25433 (eval $ac_link) 2>conftest.er1
25434 ac_status=$?
25435 grep -v '^ *+' conftest.er1 >conftest.err
25436 rm -f conftest.er1
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } &&
25440 { ac_try='test -z "$ac_c_werror_flag"
25441 || test ! -s conftest.err'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; } &&
25447 { ac_try='test -s conftest$ac_exeext'
25448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449 (eval $ac_try) 2>&5
25450 ac_status=$?
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; }; then
25453 ac_cv_search_opendir="none required"
25454else
25455 echo "$as_me: failed program was:" >&5
25456sed 's/^/| /' conftest.$ac_ext >&5
25457
25458fi
25459rm -f conftest.err conftest.$ac_objext \
25460 conftest$ac_exeext conftest.$ac_ext
25461if test "$ac_cv_search_opendir" = no; then
25462 for ac_lib in dir; do
25463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25464 cat >conftest.$ac_ext <<_ACEOF
25465/* confdefs.h. */
25466_ACEOF
25467cat confdefs.h >>conftest.$ac_ext
25468cat >>conftest.$ac_ext <<_ACEOF
25469/* end confdefs.h. */
25470
25471/* Override any gcc2 internal prototype to avoid an error. */
25472#ifdef __cplusplus
25473extern "C"
25474#endif
25475/* We use char because int might match the return type of a gcc2
25476 builtin and then its argument prototype would still apply. */
25477char opendir ();
25478int
25479main ()
25480{
25481opendir ();
25482 ;
25483 return 0;
25484}
25485_ACEOF
25486rm -f conftest.$ac_objext conftest$ac_exeext
25487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25488 (eval $ac_link) 2>conftest.er1
25489 ac_status=$?
25490 grep -v '^ *+' conftest.er1 >conftest.err
25491 rm -f conftest.er1
25492 cat conftest.err >&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } &&
25495 { ac_try='test -z "$ac_c_werror_flag"
25496 || test ! -s conftest.err'
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; } &&
25502 { ac_try='test -s conftest$ac_exeext'
25503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25504 (eval $ac_try) 2>&5
25505 ac_status=$?
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; }; then
25508 ac_cv_search_opendir="-l$ac_lib"
25509break
25510else
25511 echo "$as_me: failed program was:" >&5
25512sed 's/^/| /' conftest.$ac_ext >&5
25513
25514fi
25515rm -f conftest.err conftest.$ac_objext \
25516 conftest$ac_exeext conftest.$ac_ext
25517 done
25518fi
25519LIBS=$ac_func_search_save_LIBS
25520fi
25521echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25522echo "${ECHO_T}$ac_cv_search_opendir" >&6
25523if test "$ac_cv_search_opendir" != no; then
25524 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25525
25526fi
25527
25528else
25529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25530echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25531if test "${ac_cv_search_opendir+set}" = set; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25533else
25534 ac_func_search_save_LIBS=$LIBS
25535ac_cv_search_opendir=no
25536cat >conftest.$ac_ext <<_ACEOF
25537/* confdefs.h. */
25538_ACEOF
25539cat confdefs.h >>conftest.$ac_ext
25540cat >>conftest.$ac_ext <<_ACEOF
25541/* end confdefs.h. */
25542
25543/* Override any gcc2 internal prototype to avoid an error. */
25544#ifdef __cplusplus
25545extern "C"
25546#endif
25547/* We use char because int might match the return type of a gcc2
25548 builtin and then its argument prototype would still apply. */
25549char opendir ();
25550int
25551main ()
25552{
25553opendir ();
25554 ;
25555 return 0;
25556}
25557_ACEOF
25558rm -f conftest.$ac_objext conftest$ac_exeext
25559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25560 (eval $ac_link) 2>conftest.er1
25561 ac_status=$?
25562 grep -v '^ *+' conftest.er1 >conftest.err
25563 rm -f conftest.er1
25564 cat conftest.err >&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); } &&
25567 { ac_try='test -z "$ac_c_werror_flag"
25568 || test ! -s conftest.err'
25569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; } &&
25574 { ac_try='test -s conftest$ac_exeext'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; }; then
25580 ac_cv_search_opendir="none required"
25581else
25582 echo "$as_me: failed program was:" >&5
25583sed 's/^/| /' conftest.$ac_ext >&5
25584
25585fi
25586rm -f conftest.err conftest.$ac_objext \
25587 conftest$ac_exeext conftest.$ac_ext
25588if test "$ac_cv_search_opendir" = no; then
25589 for ac_lib in x; do
25590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25591 cat >conftest.$ac_ext <<_ACEOF
25592/* confdefs.h. */
25593_ACEOF
25594cat confdefs.h >>conftest.$ac_ext
25595cat >>conftest.$ac_ext <<_ACEOF
25596/* end confdefs.h. */
25597
25598/* Override any gcc2 internal prototype to avoid an error. */
25599#ifdef __cplusplus
25600extern "C"
25601#endif
25602/* We use char because int might match the return type of a gcc2
25603 builtin and then its argument prototype would still apply. */
25604char opendir ();
25605int
25606main ()
25607{
25608opendir ();
25609 ;
25610 return 0;
25611}
25612_ACEOF
25613rm -f conftest.$ac_objext conftest$ac_exeext
25614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25615 (eval $ac_link) 2>conftest.er1
25616 ac_status=$?
25617 grep -v '^ *+' conftest.er1 >conftest.err
25618 rm -f conftest.er1
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } &&
25622 { ac_try='test -z "$ac_c_werror_flag"
25623 || test ! -s conftest.err'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; } &&
25629 { ac_try='test -s conftest$ac_exeext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25632 ac_status=$?
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_cv_search_opendir="-l$ac_lib"
25636break
25637else
25638 echo "$as_me: failed program was:" >&5
25639sed 's/^/| /' conftest.$ac_ext >&5
25640
25641fi
25642rm -f conftest.err conftest.$ac_objext \
25643 conftest$ac_exeext conftest.$ac_ext
25644 done
25645fi
25646LIBS=$ac_func_search_save_LIBS
25647fi
25648echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25649echo "${ECHO_T}$ac_cv_search_opendir" >&6
25650if test "$ac_cv_search_opendir" != no; then
25651 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25652
25653fi
25654
25655fi
25656
25657echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25658echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25659if test "${ac_cv_header_mmap_anon+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25661else
25662 ac_ext=c
25663ac_cpp='$CPP $CPPFLAGS'
25664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25666ac_compiler_gnu=$ac_cv_c_compiler_gnu
25667
25668 cat >conftest.$ac_ext <<_ACEOF
25669/* confdefs.h. */
25670_ACEOF
25671cat confdefs.h >>conftest.$ac_ext
25672cat >>conftest.$ac_ext <<_ACEOF
25673/* end confdefs.h. */
25674#include <sys/mman.h>
25675#include <unistd.h>
25676#include <fcntl.h>
25677int
25678main ()
25679{
25680mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25681 ;
25682 return 0;
25683}
25684_ACEOF
25685rm -f conftest.$ac_objext
25686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25687 (eval $ac_compile) 2>conftest.er1
25688 ac_status=$?
25689 grep -v '^ *+' conftest.er1 >conftest.err
25690 rm -f conftest.er1
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } &&
25694 { ac_try='test -z "$ac_c_werror_flag"
25695 || test ! -s conftest.err'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; } &&
25701 { ac_try='test -s conftest.$ac_objext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 ac_cv_header_mmap_anon=yes
25708else
25709 echo "$as_me: failed program was:" >&5
25710sed 's/^/| /' conftest.$ac_ext >&5
25711
25712ac_cv_header_mmap_anon=no
25713fi
25714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25715 ac_ext=c
25716ac_cpp='$CPP $CPPFLAGS'
25717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719ac_compiler_gnu=$ac_cv_c_compiler_gnu
25720
25721
25722fi
25723echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25724echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25725if test "$ac_cv_header_mmap_anon" = yes; then
25726
25727cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025728#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025729_ACEOF
25730
25731fi
25732
25733echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25734echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25735if test "${ac_cv_header_stat_broken+set}" = set; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25737else
25738 cat >conftest.$ac_ext <<_ACEOF
25739/* confdefs.h. */
25740_ACEOF
25741cat confdefs.h >>conftest.$ac_ext
25742cat >>conftest.$ac_ext <<_ACEOF
25743/* end confdefs.h. */
25744#include <sys/types.h>
25745#include <sys/stat.h>
25746
25747#if defined(S_ISBLK) && defined(S_IFDIR)
25748# if S_ISBLK (S_IFDIR)
25749You lose.
25750# endif
25751#endif
25752
25753#if defined(S_ISBLK) && defined(S_IFCHR)
25754# if S_ISBLK (S_IFCHR)
25755You lose.
25756# endif
25757#endif
25758
25759#if defined(S_ISLNK) && defined(S_IFREG)
25760# if S_ISLNK (S_IFREG)
25761You lose.
25762# endif
25763#endif
25764
25765#if defined(S_ISSOCK) && defined(S_IFREG)
25766# if S_ISSOCK (S_IFREG)
25767You lose.
25768# endif
25769#endif
25770
25771_ACEOF
25772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25773 $EGREP "You lose" >/dev/null 2>&1; then
25774 ac_cv_header_stat_broken=yes
25775else
25776 ac_cv_header_stat_broken=no
25777fi
25778rm -f conftest*
25779
25780fi
25781echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25782echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25783if test $ac_cv_header_stat_broken = yes; then
25784
25785cat >>confdefs.h <<\_ACEOF
25786#define STAT_MACROS_BROKEN 1
25787_ACEOF
25788
25789fi
25790
John Criswell7a73b802003-06-30 21:59:07 +000025791echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25792echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25793if test "${ac_cv_header_stdc+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25795else
25796 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025797/* confdefs.h. */
25798_ACEOF
25799cat confdefs.h >>conftest.$ac_ext
25800cat >>conftest.$ac_ext <<_ACEOF
25801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025802#include <stdlib.h>
25803#include <stdarg.h>
25804#include <string.h>
25805#include <float.h>
25806
John Criswell0c38eaf2003-09-10 15:17:25 +000025807int
25808main ()
25809{
25810
25811 ;
25812 return 0;
25813}
John Criswell7a73b802003-06-30 21:59:07 +000025814_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025815rm -f conftest.$ac_objext
25816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025817 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025818 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025819 grep -v '^ *+' conftest.er1 >conftest.err
25820 rm -f conftest.er1
25821 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025823 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025824 { ac_try='test -z "$ac_c_werror_flag"
25825 || test ! -s conftest.err'
25826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); }; } &&
25831 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025837 ac_cv_header_stdc=yes
25838else
25839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025840sed 's/^/| /' conftest.$ac_ext >&5
25841
25842ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025843fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025845
25846if test $ac_cv_header_stdc = yes; then
25847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25848 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025849/* confdefs.h. */
25850_ACEOF
25851cat confdefs.h >>conftest.$ac_ext
25852cat >>conftest.$ac_ext <<_ACEOF
25853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025854#include <string.h>
25855
25856_ACEOF
25857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025858 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025859 :
25860else
25861 ac_cv_header_stdc=no
25862fi
25863rm -f conftest*
25864
25865fi
25866
25867if test $ac_cv_header_stdc = yes; then
25868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25869 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025870/* confdefs.h. */
25871_ACEOF
25872cat confdefs.h >>conftest.$ac_ext
25873cat >>conftest.$ac_ext <<_ACEOF
25874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025875#include <stdlib.h>
25876
25877_ACEOF
25878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025879 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025880 :
25881else
25882 ac_cv_header_stdc=no
25883fi
25884rm -f conftest*
25885
25886fi
25887
25888if test $ac_cv_header_stdc = yes; then
25889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25890 if test "$cross_compiling" = yes; then
25891 :
25892else
25893 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025894/* confdefs.h. */
25895_ACEOF
25896cat confdefs.h >>conftest.$ac_ext
25897cat >>conftest.$ac_ext <<_ACEOF
25898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025899#include <ctype.h>
25900#if ((' ' & 0x0FF) == 0x020)
25901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25903#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025904# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025905 (('a' <= (c) && (c) <= 'i') \
25906 || ('j' <= (c) && (c) <= 'r') \
25907 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25909#endif
25910
25911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25912int
25913main ()
25914{
25915 int i;
25916 for (i = 0; i < 256; i++)
25917 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025918 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025919 exit(2);
25920 exit (0);
25921}
25922_ACEOF
25923rm -f conftest$ac_exeext
25924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925 (eval $ac_link) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; }; then
25934 :
25935else
25936 echo "$as_me: program exited with status $ac_status" >&5
25937echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025938sed 's/^/| /' conftest.$ac_ext >&5
25939
John Criswell7a73b802003-06-30 21:59:07 +000025940( exit $ac_status )
25941ac_cv_header_stdc=no
25942fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025944fi
25945fi
25946fi
25947echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25948echo "${ECHO_T}$ac_cv_header_stdc" >&6
25949if test $ac_cv_header_stdc = yes; then
25950
25951cat >>confdefs.h <<\_ACEOF
25952#define STDC_HEADERS 1
25953_ACEOF
25954
25955fi
25956
25957echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25958echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25959if test "${ac_cv_header_sys_wait_h+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961else
25962 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025963/* confdefs.h. */
25964_ACEOF
25965cat confdefs.h >>conftest.$ac_ext
25966cat >>conftest.$ac_ext <<_ACEOF
25967/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025968#include <sys/types.h>
25969#include <sys/wait.h>
25970#ifndef WEXITSTATUS
25971# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25972#endif
25973#ifndef WIFEXITED
25974# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25975#endif
25976
John Criswell7a73b802003-06-30 21:59:07 +000025977int
25978main ()
25979{
25980 int s;
25981 wait (&s);
25982 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25983 ;
25984 return 0;
25985}
25986_ACEOF
25987rm -f conftest.$ac_objext
25988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025989 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025990 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025991 grep -v '^ *+' conftest.er1 >conftest.err
25992 rm -f conftest.er1
25993 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025996 { ac_try='test -z "$ac_c_werror_flag"
25997 || test ! -s conftest.err'
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; } &&
26003 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005 (eval $ac_try) 2>&5
26006 ac_status=$?
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; }; then
26009 ac_cv_header_sys_wait_h=yes
26010else
26011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026012sed 's/^/| /' conftest.$ac_ext >&5
26013
John Criswell7a73b802003-06-30 21:59:07 +000026014ac_cv_header_sys_wait_h=no
26015fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026017fi
26018echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26019echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26020if test $ac_cv_header_sys_wait_h = yes; then
26021
26022cat >>confdefs.h <<\_ACEOF
26023#define HAVE_SYS_WAIT_H 1
26024_ACEOF
26025
26026fi
26027
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026028echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26029echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26030if test "${ac_cv_header_time+set}" = set; then
26031 echo $ECHO_N "(cached) $ECHO_C" >&6
26032else
26033 cat >conftest.$ac_ext <<_ACEOF
26034/* confdefs.h. */
26035_ACEOF
26036cat confdefs.h >>conftest.$ac_ext
26037cat >>conftest.$ac_ext <<_ACEOF
26038/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026039#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026040#include <sys/time.h>
26041#include <time.h>
26042
26043int
26044main ()
26045{
26046if ((struct tm *) 0)
26047return 0;
26048 ;
26049 return 0;
26050}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026051_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026052rm -f conftest.$ac_objext
26053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26054 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026055 ac_status=$?
26056 grep -v '^ *+' conftest.er1 >conftest.err
26057 rm -f conftest.er1
26058 cat conftest.err >&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026060 (exit $ac_status); } &&
26061 { ac_try='test -z "$ac_c_werror_flag"
26062 || test ! -s conftest.err'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; } &&
26068 { ac_try='test -s conftest.$ac_objext'
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26071 ac_status=$?
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; }; then
26074 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026075else
26076 echo "$as_me: failed program was:" >&5
26077sed 's/^/| /' conftest.$ac_ext >&5
26078
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026079ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026080fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26082fi
26083echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26084echo "${ECHO_T}$ac_cv_header_time" >&6
26085if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026086
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026087cat >>confdefs.h <<\_ACEOF
26088#define TIME_WITH_SYS_TIME 1
26089_ACEOF
26090
26091fi
26092
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026093
Reid Spencer59473af2004-12-25 07:31:29 +000026094
26095
26096
26097
26098
26099
26100for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26101do
26102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26103if eval "test \"\${$as_ac_Header+set}\" = set"; then
26104 echo "$as_me:$LINENO: checking for $ac_header" >&5
26105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26106if eval "test \"\${$as_ac_Header+set}\" = set"; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26108fi
26109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26111else
26112 # Is the header compilable?
26113echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26115cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026121$ac_includes_default
26122#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026123_ACEOF
26124rm -f conftest.$ac_objext
26125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26126 (eval $ac_compile) 2>conftest.er1
26127 ac_status=$?
26128 grep -v '^ *+' conftest.er1 >conftest.err
26129 rm -f conftest.er1
26130 cat conftest.err >&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } &&
26133 { ac_try='test -z "$ac_c_werror_flag"
26134 || test ! -s conftest.err'
26135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); }; } &&
26140 { ac_try='test -s conftest.$ac_objext'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026146 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026147else
26148 echo "$as_me: failed program was:" >&5
26149sed 's/^/| /' conftest.$ac_ext >&5
26150
Reid Spencer59473af2004-12-25 07:31:29 +000026151ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026152fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26155echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026156
Reid Spencer59473af2004-12-25 07:31:29 +000026157# Is the header present?
26158echo "$as_me:$LINENO: checking $ac_header presence" >&5
26159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26160cat >conftest.$ac_ext <<_ACEOF
26161/* confdefs.h. */
26162_ACEOF
26163cat confdefs.h >>conftest.$ac_ext
26164cat >>conftest.$ac_ext <<_ACEOF
26165/* end confdefs.h. */
26166#include <$ac_header>
26167_ACEOF
26168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26170 ac_status=$?
26171 grep -v '^ *+' conftest.er1 >conftest.err
26172 rm -f conftest.er1
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } >/dev/null; then
26176 if test -s conftest.err; then
26177 ac_cpp_err=$ac_c_preproc_warn_flag
26178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26179 else
26180 ac_cpp_err=
26181 fi
26182else
26183 ac_cpp_err=yes
26184fi
26185if test -z "$ac_cpp_err"; then
26186 ac_header_preproc=yes
26187else
26188 echo "$as_me: failed program was:" >&5
26189sed 's/^/| /' conftest.$ac_ext >&5
26190
26191 ac_header_preproc=no
26192fi
26193rm -f conftest.err conftest.$ac_ext
26194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26195echo "${ECHO_T}$ac_header_preproc" >&6
26196
26197# So? What about this header?
26198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26199 yes:no: )
26200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26204 ac_header_preproc=yes
26205 ;;
26206 no:yes:* )
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26219 (
26220 cat <<\_ASBOX
26221## ----------------------------------- ##
26222## Report this to llvmbugs@cs.uiuc.edu ##
26223## ----------------------------------- ##
26224_ASBOX
26225 ) |
26226 sed "s/^/$as_me: WARNING: /" >&2
26227 ;;
26228esac
26229echo "$as_me:$LINENO: checking for $ac_header" >&5
26230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26231if eval "test \"\${$as_ac_Header+set}\" = set"; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234 eval "$as_ac_Header=\$ac_header_preproc"
26235fi
26236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026238
26239fi
Reid Spencer59473af2004-12-25 07:31:29 +000026240if test `eval echo '${'$as_ac_Header'}'` = yes; then
26241 cat >>confdefs.h <<_ACEOF
26242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026243_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026244
26245fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026246
Reid Spencer59473af2004-12-25 07:31:29 +000026247done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026248
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026249
26250
Reid Spencer59473af2004-12-25 07:31:29 +000026251
26252
26253
26254
26255for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26256do
26257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26258if eval "test \"\${$as_ac_Header+set}\" = set"; then
26259 echo "$as_me:$LINENO: checking for $ac_header" >&5
26260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26261if eval "test \"\${$as_ac_Header+set}\" = set"; then
26262 echo $ECHO_N "(cached) $ECHO_C" >&6
26263fi
26264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26266else
26267 # Is the header compilable?
26268echo "$as_me:$LINENO: checking $ac_header usability" >&5
26269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26270cat >conftest.$ac_ext <<_ACEOF
26271/* confdefs.h. */
26272_ACEOF
26273cat confdefs.h >>conftest.$ac_ext
26274cat >>conftest.$ac_ext <<_ACEOF
26275/* end confdefs.h. */
26276$ac_includes_default
26277#include <$ac_header>
26278_ACEOF
26279rm -f conftest.$ac_objext
26280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26281 (eval $ac_compile) 2>conftest.er1
26282 ac_status=$?
26283 grep -v '^ *+' conftest.er1 >conftest.err
26284 rm -f conftest.er1
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } &&
26288 { ac_try='test -z "$ac_c_werror_flag"
26289 || test ! -s conftest.err'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26292 ac_status=$?
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; } &&
26295 { ac_try='test -s conftest.$ac_objext'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26298 ac_status=$?
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; }; then
26301 ac_header_compiler=yes
26302else
26303 echo "$as_me: failed program was:" >&5
26304sed 's/^/| /' conftest.$ac_ext >&5
26305
26306ac_header_compiler=no
26307fi
26308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26310echo "${ECHO_T}$ac_header_compiler" >&6
26311
26312# Is the header present?
26313echo "$as_me:$LINENO: checking $ac_header presence" >&5
26314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26315cat >conftest.$ac_ext <<_ACEOF
26316/* confdefs.h. */
26317_ACEOF
26318cat confdefs.h >>conftest.$ac_ext
26319cat >>conftest.$ac_ext <<_ACEOF
26320/* end confdefs.h. */
26321#include <$ac_header>
26322_ACEOF
26323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26325 ac_status=$?
26326 grep -v '^ *+' conftest.er1 >conftest.err
26327 rm -f conftest.er1
26328 cat conftest.err >&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } >/dev/null; then
26331 if test -s conftest.err; then
26332 ac_cpp_err=$ac_c_preproc_warn_flag
26333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26334 else
26335 ac_cpp_err=
26336 fi
26337else
26338 ac_cpp_err=yes
26339fi
26340if test -z "$ac_cpp_err"; then
26341 ac_header_preproc=yes
26342else
26343 echo "$as_me: failed program was:" >&5
26344sed 's/^/| /' conftest.$ac_ext >&5
26345
26346 ac_header_preproc=no
26347fi
26348rm -f conftest.err conftest.$ac_ext
26349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26350echo "${ECHO_T}$ac_header_preproc" >&6
26351
26352# So? What about this header?
26353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26354 yes:no: )
26355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26359 ac_header_preproc=yes
26360 ;;
26361 no:yes:* )
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26374 (
26375 cat <<\_ASBOX
26376## ----------------------------------- ##
26377## Report this to llvmbugs@cs.uiuc.edu ##
26378## ----------------------------------- ##
26379_ASBOX
26380 ) |
26381 sed "s/^/$as_me: WARNING: /" >&2
26382 ;;
26383esac
26384echo "$as_me:$LINENO: checking for $ac_header" >&5
26385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26386if eval "test \"\${$as_ac_Header+set}\" = set"; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26388else
26389 eval "$as_ac_Header=\$ac_header_preproc"
26390fi
26391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26393
26394fi
26395if test `eval echo '${'$as_ac_Header'}'` = yes; then
26396 cat >>confdefs.h <<_ACEOF
26397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26398_ACEOF
26399
26400fi
26401
26402done
26403
26404
26405
26406
26407
26408
26409for 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 +000026410do
26411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26412if eval "test \"\${$as_ac_Header+set}\" = set"; then
26413 echo "$as_me:$LINENO: checking for $ac_header" >&5
26414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26415if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026416 echo $ECHO_N "(cached) $ECHO_C" >&6
26417fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026420else
26421 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026422echo "$as_me:$LINENO: checking $ac_header usability" >&5
26423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026424cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026425/* confdefs.h. */
26426_ACEOF
26427cat confdefs.h >>conftest.$ac_ext
26428cat >>conftest.$ac_ext <<_ACEOF
26429/* end confdefs.h. */
26430$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026431#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026432_ACEOF
26433rm -f conftest.$ac_objext
26434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026435 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026437 grep -v '^ *+' conftest.er1 >conftest.err
26438 rm -f conftest.er1
26439 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026442 { ac_try='test -z "$ac_c_werror_flag"
26443 || test ! -s conftest.err'
26444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445 (eval $ac_try) 2>&5
26446 ac_status=$?
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); }; } &&
26449 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 ac_header_compiler=yes
26456else
26457 echo "$as_me: failed program was:" >&5
26458sed 's/^/| /' conftest.$ac_ext >&5
26459
26460ac_header_compiler=no
26461fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26464echo "${ECHO_T}$ac_header_compiler" >&6
26465
26466# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026467echo "$as_me:$LINENO: checking $ac_header presence" >&5
26468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026469cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026470/* confdefs.h. */
26471_ACEOF
26472cat confdefs.h >>conftest.$ac_ext
26473cat >>conftest.$ac_ext <<_ACEOF
26474/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026475#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026476_ACEOF
26477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26479 ac_status=$?
26480 grep -v '^ *+' conftest.er1 >conftest.err
26481 rm -f conftest.er1
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } >/dev/null; then
26485 if test -s conftest.err; then
26486 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026488 else
26489 ac_cpp_err=
26490 fi
26491else
26492 ac_cpp_err=yes
26493fi
26494if test -z "$ac_cpp_err"; then
26495 ac_header_preproc=yes
26496else
26497 echo "$as_me: failed program was:" >&5
26498sed 's/^/| /' conftest.$ac_ext >&5
26499
26500 ac_header_preproc=no
26501fi
26502rm -f conftest.err conftest.$ac_ext
26503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26504echo "${ECHO_T}$ac_header_preproc" >&6
26505
26506# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26508 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026513 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026514 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026515 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026528 (
26529 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026530## ----------------------------------- ##
26531## Report this to llvmbugs@cs.uiuc.edu ##
26532## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026533_ASBOX
26534 ) |
26535 sed "s/^/$as_me: WARNING: /" >&2
26536 ;;
26537esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026538echo "$as_me:$LINENO: checking for $ac_header" >&5
26539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26540if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026541 echo $ECHO_N "(cached) $ECHO_C" >&6
26542else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026543 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026544fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026547
26548fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026549if test `eval echo '${'$as_ac_Header'}'` = yes; then
26550 cat >>confdefs.h <<_ACEOF
26551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026552_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026553
26554fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026555
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026556done
26557
John Criswell7ed43ad2004-07-19 16:12:29 +000026558
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026559
Reid Spencer8085cff2005-01-16 02:58:39 +000026560for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26561do
26562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26563if eval "test \"\${$as_ac_Header+set}\" = set"; then
26564 echo "$as_me:$LINENO: checking for $ac_header" >&5
26565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26566if eval "test \"\${$as_ac_Header+set}\" = set"; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26568fi
26569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26571else
26572 # Is the header compilable?
26573echo "$as_me:$LINENO: checking $ac_header usability" >&5
26574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26575cat >conftest.$ac_ext <<_ACEOF
26576/* confdefs.h. */
26577_ACEOF
26578cat confdefs.h >>conftest.$ac_ext
26579cat >>conftest.$ac_ext <<_ACEOF
26580/* end confdefs.h. */
26581$ac_includes_default
26582#include <$ac_header>
26583_ACEOF
26584rm -f conftest.$ac_objext
26585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586 (eval $ac_compile) 2>conftest.er1
26587 ac_status=$?
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } &&
26593 { ac_try='test -z "$ac_c_werror_flag"
26594 || test ! -s conftest.err'
26595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26596 (eval $ac_try) 2>&5
26597 ac_status=$?
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); }; } &&
26600 { ac_try='test -s conftest.$ac_objext'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 ac_header_compiler=yes
26607else
26608 echo "$as_me: failed program was:" >&5
26609sed 's/^/| /' conftest.$ac_ext >&5
26610
26611ac_header_compiler=no
26612fi
26613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26615echo "${ECHO_T}$ac_header_compiler" >&6
26616
26617# Is the header present?
26618echo "$as_me:$LINENO: checking $ac_header presence" >&5
26619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26620cat >conftest.$ac_ext <<_ACEOF
26621/* confdefs.h. */
26622_ACEOF
26623cat confdefs.h >>conftest.$ac_ext
26624cat >>conftest.$ac_ext <<_ACEOF
26625/* end confdefs.h. */
26626#include <$ac_header>
26627_ACEOF
26628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26630 ac_status=$?
26631 grep -v '^ *+' conftest.er1 >conftest.err
26632 rm -f conftest.er1
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } >/dev/null; then
26636 if test -s conftest.err; then
26637 ac_cpp_err=$ac_c_preproc_warn_flag
26638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26639 else
26640 ac_cpp_err=
26641 fi
26642else
26643 ac_cpp_err=yes
26644fi
26645if test -z "$ac_cpp_err"; then
26646 ac_header_preproc=yes
26647else
26648 echo "$as_me: failed program was:" >&5
26649sed 's/^/| /' conftest.$ac_ext >&5
26650
26651 ac_header_preproc=no
26652fi
26653rm -f conftest.err conftest.$ac_ext
26654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26655echo "${ECHO_T}$ac_header_preproc" >&6
26656
26657# So? What about this header?
26658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26659 yes:no: )
26660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26664 ac_header_preproc=yes
26665 ;;
26666 no:yes:* )
26667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26679 (
26680 cat <<\_ASBOX
26681## ----------------------------------- ##
26682## Report this to llvmbugs@cs.uiuc.edu ##
26683## ----------------------------------- ##
26684_ASBOX
26685 ) |
26686 sed "s/^/$as_me: WARNING: /" >&2
26687 ;;
26688esac
26689echo "$as_me:$LINENO: checking for $ac_header" >&5
26690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26691if eval "test \"\${$as_ac_Header+set}\" = set"; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26693else
26694 eval "$as_ac_Header=\$ac_header_preproc"
26695fi
26696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26698
26699fi
26700if test `eval echo '${'$as_ac_Header'}'` = yes; then
26701 cat >>confdefs.h <<_ACEOF
26702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26703_ACEOF
26704
26705fi
26706
26707done
26708
26709
26710
John Criswell7a73b802003-06-30 21:59:07 +000026711echo "$as_me:$LINENO: checking for pid_t" >&5
26712echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26713if test "${ac_cv_type_pid_t+set}" = set; then
26714 echo $ECHO_N "(cached) $ECHO_C" >&6
26715else
26716 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026717/* confdefs.h. */
26718_ACEOF
26719cat confdefs.h >>conftest.$ac_ext
26720cat >>conftest.$ac_ext <<_ACEOF
26721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026722$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026723int
26724main ()
26725{
26726if ((pid_t *) 0)
26727 return 0;
26728if (sizeof (pid_t))
26729 return 0;
26730 ;
26731 return 0;
26732}
26733_ACEOF
26734rm -f conftest.$ac_objext
26735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026736 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026738 grep -v '^ *+' conftest.er1 >conftest.err
26739 rm -f conftest.er1
26740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026743 { ac_try='test -z "$ac_c_werror_flag"
26744 || test ! -s conftest.err'
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26747 ac_status=$?
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; } &&
26750 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752 (eval $ac_try) 2>&5
26753 ac_status=$?
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); }; }; then
26756 ac_cv_type_pid_t=yes
26757else
26758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026759sed 's/^/| /' conftest.$ac_ext >&5
26760
John Criswell7a73b802003-06-30 21:59:07 +000026761ac_cv_type_pid_t=no
26762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026764fi
26765echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26766echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26767if test $ac_cv_type_pid_t = yes; then
26768 :
26769else
26770
26771cat >>confdefs.h <<_ACEOF
26772#define pid_t int
26773_ACEOF
26774
26775fi
26776
26777echo "$as_me:$LINENO: checking for size_t" >&5
26778echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26779if test "${ac_cv_type_size_t+set}" = set; then
26780 echo $ECHO_N "(cached) $ECHO_C" >&6
26781else
26782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026783/* confdefs.h. */
26784_ACEOF
26785cat confdefs.h >>conftest.$ac_ext
26786cat >>conftest.$ac_ext <<_ACEOF
26787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026788$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026789int
26790main ()
26791{
26792if ((size_t *) 0)
26793 return 0;
26794if (sizeof (size_t))
26795 return 0;
26796 ;
26797 return 0;
26798}
26799_ACEOF
26800rm -f conftest.$ac_objext
26801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026802 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026804 grep -v '^ *+' conftest.er1 >conftest.err
26805 rm -f conftest.er1
26806 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026809 { ac_try='test -z "$ac_c_werror_flag"
26810 || test ! -s conftest.err'
26811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26812 (eval $ac_try) 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); }; } &&
26816 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
26822 ac_cv_type_size_t=yes
26823else
26824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026825sed 's/^/| /' conftest.$ac_ext >&5
26826
John Criswell7a73b802003-06-30 21:59:07 +000026827ac_cv_type_size_t=no
26828fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026830fi
26831echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26832echo "${ECHO_T}$ac_cv_type_size_t" >&6
26833if test $ac_cv_type_size_t = yes; then
26834 :
26835else
26836
26837cat >>confdefs.h <<_ACEOF
26838#define size_t unsigned
26839_ACEOF
26840
26841fi
26842
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026843echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26844echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26845if test "${ac_cv_type_signal+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26847else
26848 cat >conftest.$ac_ext <<_ACEOF
26849/* confdefs.h. */
26850_ACEOF
26851cat confdefs.h >>conftest.$ac_ext
26852cat >>conftest.$ac_ext <<_ACEOF
26853/* end confdefs.h. */
26854#include <sys/types.h>
26855#include <signal.h>
26856#ifdef signal
26857# undef signal
26858#endif
26859#ifdef __cplusplus
26860extern "C" void (*signal (int, void (*)(int)))(int);
26861#else
26862void (*signal ()) ();
26863#endif
26864
26865int
26866main ()
26867{
26868int i;
26869 ;
26870 return 0;
26871}
26872_ACEOF
26873rm -f conftest.$ac_objext
26874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26875 (eval $ac_compile) 2>conftest.er1
26876 ac_status=$?
26877 grep -v '^ *+' conftest.er1 >conftest.err
26878 rm -f conftest.er1
26879 cat conftest.err >&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } &&
26882 { ac_try='test -z "$ac_c_werror_flag"
26883 || test ! -s conftest.err'
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; } &&
26889 { ac_try='test -s conftest.$ac_objext'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; }; then
26895 ac_cv_type_signal=void
26896else
26897 echo "$as_me: failed program was:" >&5
26898sed 's/^/| /' conftest.$ac_ext >&5
26899
26900ac_cv_type_signal=int
26901fi
26902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903fi
26904echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26905echo "${ECHO_T}$ac_cv_type_signal" >&6
26906
26907cat >>confdefs.h <<_ACEOF
26908#define RETSIGTYPE $ac_cv_type_signal
26909_ACEOF
26910
26911
26912echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26913echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26914if test "${ac_cv_struct_tm+set}" = set; then
26915 echo $ECHO_N "(cached) $ECHO_C" >&6
26916else
26917 cat >conftest.$ac_ext <<_ACEOF
26918/* confdefs.h. */
26919_ACEOF
26920cat confdefs.h >>conftest.$ac_ext
26921cat >>conftest.$ac_ext <<_ACEOF
26922/* end confdefs.h. */
26923#include <sys/types.h>
26924#include <time.h>
26925
26926int
26927main ()
26928{
26929struct tm *tp; tp->tm_sec;
26930 ;
26931 return 0;
26932}
26933_ACEOF
26934rm -f conftest.$ac_objext
26935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26936 (eval $ac_compile) 2>conftest.er1
26937 ac_status=$?
26938 grep -v '^ *+' conftest.er1 >conftest.err
26939 rm -f conftest.er1
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
26943 { ac_try='test -z "$ac_c_werror_flag"
26944 || test ! -s conftest.err'
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26947 ac_status=$?
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest.$ac_objext'
26951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952 (eval $ac_try) 2>&5
26953 ac_status=$?
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); }; }; then
26956 ac_cv_struct_tm=time.h
26957else
26958 echo "$as_me: failed program was:" >&5
26959sed 's/^/| /' conftest.$ac_ext >&5
26960
26961ac_cv_struct_tm=sys/time.h
26962fi
26963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26964fi
26965echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26966echo "${ECHO_T}$ac_cv_struct_tm" >&6
26967if test $ac_cv_struct_tm = sys/time.h; then
26968
26969cat >>confdefs.h <<\_ACEOF
26970#define TM_IN_SYS_TIME 1
26971_ACEOF
26972
26973fi
26974
John Criswell7a73b802003-06-30 21:59:07 +000026975echo "$as_me:$LINENO: checking for int64_t" >&5
26976echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26977if test "${ac_cv_type_int64_t+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26979else
26980 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026981/* confdefs.h. */
26982_ACEOF
26983cat confdefs.h >>conftest.$ac_ext
26984cat >>conftest.$ac_ext <<_ACEOF
26985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026986$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026987int
26988main ()
26989{
26990if ((int64_t *) 0)
26991 return 0;
26992if (sizeof (int64_t))
26993 return 0;
26994 ;
26995 return 0;
26996}
26997_ACEOF
26998rm -f conftest.$ac_objext
26999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027000 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027002 grep -v '^ *+' conftest.er1 >conftest.err
27003 rm -f conftest.er1
27004 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027007 { ac_try='test -z "$ac_c_werror_flag"
27008 || test ! -s conftest.err'
27009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010 (eval $ac_try) 2>&5
27011 ac_status=$?
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; } &&
27014 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27017 ac_status=$?
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27020 ac_cv_type_int64_t=yes
27021else
27022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027023sed 's/^/| /' conftest.$ac_ext >&5
27024
John Criswell7a73b802003-06-30 21:59:07 +000027025ac_cv_type_int64_t=no
27026fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027028fi
27029echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27030echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27031if test $ac_cv_type_int64_t = yes; then
27032
27033cat >>confdefs.h <<_ACEOF
27034#define HAVE_INT64_T 1
27035_ACEOF
27036
27037
27038else
27039 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27040echo "$as_me: error: Type int64_t required but not found" >&2;}
27041 { (exit 1); exit 1; }; }
27042fi
27043
27044echo "$as_me:$LINENO: checking for uint64_t" >&5
27045echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27046if test "${ac_cv_type_uint64_t+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27048else
27049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027050/* confdefs.h. */
27051_ACEOF
27052cat confdefs.h >>conftest.$ac_ext
27053cat >>conftest.$ac_ext <<_ACEOF
27054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027055$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027056int
27057main ()
27058{
27059if ((uint64_t *) 0)
27060 return 0;
27061if (sizeof (uint64_t))
27062 return 0;
27063 ;
27064 return 0;
27065}
27066_ACEOF
27067rm -f conftest.$ac_objext
27068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027069 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027070 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027071 grep -v '^ *+' conftest.er1 >conftest.err
27072 rm -f conftest.er1
27073 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027076 { ac_try='test -z "$ac_c_werror_flag"
27077 || test ! -s conftest.err'
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_type_uint64_t=yes
27090else
27091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027092sed 's/^/| /' conftest.$ac_ext >&5
27093
John Criswell7a73b802003-06-30 21:59:07 +000027094ac_cv_type_uint64_t=no
27095fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027097fi
27098echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27099echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27100if test $ac_cv_type_uint64_t = yes; then
27101
27102cat >>confdefs.h <<_ACEOF
27103#define HAVE_UINT64_T 1
27104_ACEOF
27105
27106
27107else
Misha Brukmanceca9042004-09-02 23:02:30 +000027108 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027109echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27110if test "${ac_cv_type_u_int64_t+set}" = set; then
27111 echo $ECHO_N "(cached) $ECHO_C" >&6
27112else
27113 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027114/* confdefs.h. */
27115_ACEOF
27116cat confdefs.h >>conftest.$ac_ext
27117cat >>conftest.$ac_ext <<_ACEOF
27118/* end confdefs.h. */
27119$ac_includes_default
27120int
27121main ()
27122{
27123if ((u_int64_t *) 0)
27124 return 0;
27125if (sizeof (u_int64_t))
27126 return 0;
27127 ;
27128 return 0;
27129}
27130_ACEOF
27131rm -f conftest.$ac_objext
27132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027133 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027140 { ac_try='test -z "$ac_c_werror_flag"
27141 || test ! -s conftest.err'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; }; then
27153 ac_cv_type_u_int64_t=yes
27154else
27155 echo "$as_me: failed program was:" >&5
27156sed 's/^/| /' conftest.$ac_ext >&5
27157
27158ac_cv_type_u_int64_t=no
27159fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027161fi
27162echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27163echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27164if test $ac_cv_type_u_int64_t = yes; then
27165
27166cat >>confdefs.h <<_ACEOF
27167#define HAVE_U_INT64_T 1
27168_ACEOF
27169
27170
Misha Brukmanceca9042004-09-02 23:02:30 +000027171else
27172 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27173echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27174 { (exit 1); exit 1; }; }
27175fi
27176
John Criswell679ff312004-09-02 18:44:44 +000027177fi
27178
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027179
27180
27181
27182
27183
27184
27185
27186
Reid Spencerab5eaea2004-12-20 00:59:04 +000027187for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27188do
27189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27190echo "$as_me:$LINENO: checking for $ac_func" >&5
27191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27192if eval "test \"\${$as_ac_var+set}\" = set"; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
27194else
27195 cat >conftest.$ac_ext <<_ACEOF
27196/* confdefs.h. */
27197_ACEOF
27198cat confdefs.h >>conftest.$ac_ext
27199cat >>conftest.$ac_ext <<_ACEOF
27200/* end confdefs.h. */
27201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27203#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027204
Reid Spencerab5eaea2004-12-20 00:59:04 +000027205/* System header to define __stub macros and hopefully few prototypes,
27206 which can conflict with char $ac_func (); below.
27207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208 <limits.h> exists even on freestanding compilers. */
27209
27210#ifdef __STDC__
27211# include <limits.h>
27212#else
27213# include <assert.h>
27214#endif
27215
27216#undef $ac_func
27217
27218/* Override any gcc2 internal prototype to avoid an error. */
27219#ifdef __cplusplus
27220extern "C"
27221{
27222#endif
27223/* We use char because int might match the return type of a gcc2
27224 builtin and then its argument prototype would still apply. */
27225char $ac_func ();
27226/* The GNU C library defines this for functions which it implements
27227 to always fail with ENOSYS. Some functions are actually named
27228 something starting with __ and the normal name is an alias. */
27229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27230choke me
27231#else
27232char (*f) () = $ac_func;
27233#endif
27234#ifdef __cplusplus
27235}
27236#endif
27237
27238int
27239main ()
27240{
27241return f != $ac_func;
27242 ;
27243 return 0;
27244}
27245_ACEOF
27246rm -f conftest.$ac_objext conftest$ac_exeext
27247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248 (eval $ac_link) 2>conftest.er1
27249 ac_status=$?
27250 grep -v '^ *+' conftest.er1 >conftest.err
27251 rm -f conftest.er1
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest$ac_exeext'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 eval "$as_ac_var=yes"
27269else
27270 echo "$as_me: failed program was:" >&5
27271sed 's/^/| /' conftest.$ac_ext >&5
27272
27273eval "$as_ac_var=no"
27274fi
27275rm -f conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
27277fi
27278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27280if test `eval echo '${'$as_ac_var'}'` = yes; then
27281 cat >>confdefs.h <<_ACEOF
27282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27283_ACEOF
27284
27285fi
27286done
27287
27288
27289
27290
27291for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027292do
27293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27294echo "$as_me:$LINENO: checking for $ac_func" >&5
27295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27296if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027297 echo $ECHO_N "(cached) $ECHO_C" >&6
27298else
27299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027300/* confdefs.h. */
27301_ACEOF
27302cat confdefs.h >>conftest.$ac_ext
27303cat >>conftest.$ac_ext <<_ACEOF
27304/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27307#define $ac_func innocuous_$ac_func
27308
27309/* System header to define __stub macros and hopefully few prototypes,
27310 which can conflict with char $ac_func (); below.
27311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27312 <limits.h> exists even on freestanding compilers. */
27313
27314#ifdef __STDC__
27315# include <limits.h>
27316#else
27317# include <assert.h>
27318#endif
27319
27320#undef $ac_func
27321
27322/* Override any gcc2 internal prototype to avoid an error. */
27323#ifdef __cplusplus
27324extern "C"
27325{
27326#endif
27327/* We use char because int might match the return type of a gcc2
27328 builtin and then its argument prototype would still apply. */
27329char $ac_func ();
27330/* The GNU C library defines this for functions which it implements
27331 to always fail with ENOSYS. Some functions are actually named
27332 something starting with __ and the normal name is an alias. */
27333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27334choke me
27335#else
27336char (*f) () = $ac_func;
27337#endif
27338#ifdef __cplusplus
27339}
27340#endif
John Criswell7a73b802003-06-30 21:59:07 +000027341
John Criswell7a73b802003-06-30 21:59:07 +000027342int
27343main ()
27344{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027345return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027346 ;
27347 return 0;
27348}
27349_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027350rm -f conftest.$ac_objext conftest$ac_exeext
27351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27352 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027353 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027354 grep -v '^ *+' conftest.er1 >conftest.err
27355 rm -f conftest.er1
27356 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027359 { ac_try='test -z "$ac_c_werror_flag"
27360 || test ! -s conftest.err'
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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027366 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027372 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027373else
27374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027375sed 's/^/| /' conftest.$ac_ext >&5
27376
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027377eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027378fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027379rm -f conftest.err conftest.$ac_objext \
27380 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027381fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27384if test `eval echo '${'$as_ac_var'}'` = yes; then
27385 cat >>confdefs.h <<_ACEOF
27386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027387_ACEOF
27388
27389fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027390done
John Criswell7a73b802003-06-30 21:59:07 +000027391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027392
27393
27394
Reid Spencer6af3d262004-12-15 04:01:48 +000027395
27396
Reid Spencer59473af2004-12-25 07:31:29 +000027397
Reid Spencerba46ca32004-12-31 05:49:15 +000027398for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027399do
27400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27401echo "$as_me:$LINENO: checking for $ac_func" >&5
27402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27403if eval "test \"\${$as_ac_var+set}\" = set"; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405else
27406 cat >conftest.$ac_ext <<_ACEOF
27407/* confdefs.h. */
27408_ACEOF
27409cat confdefs.h >>conftest.$ac_ext
27410cat >>conftest.$ac_ext <<_ACEOF
27411/* end confdefs.h. */
27412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27414#define $ac_func innocuous_$ac_func
27415
27416/* System header to define __stub macros and hopefully few prototypes,
27417 which can conflict with char $ac_func (); below.
27418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27419 <limits.h> exists even on freestanding compilers. */
27420
27421#ifdef __STDC__
27422# include <limits.h>
27423#else
27424# include <assert.h>
27425#endif
27426
27427#undef $ac_func
27428
27429/* Override any gcc2 internal prototype to avoid an error. */
27430#ifdef __cplusplus
27431extern "C"
27432{
27433#endif
27434/* We use char because int might match the return type of a gcc2
27435 builtin and then its argument prototype would still apply. */
27436char $ac_func ();
27437/* The GNU C library defines this for functions which it implements
27438 to always fail with ENOSYS. Some functions are actually named
27439 something starting with __ and the normal name is an alias. */
27440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27441choke me
27442#else
27443char (*f) () = $ac_func;
27444#endif
27445#ifdef __cplusplus
27446}
27447#endif
27448
27449int
27450main ()
27451{
27452return f != $ac_func;
27453 ;
27454 return 0;
27455}
27456_ACEOF
27457rm -f conftest.$ac_objext conftest$ac_exeext
27458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459 (eval $ac_link) 2>conftest.er1
27460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try='test -z "$ac_c_werror_flag"
27467 || test ! -s conftest.err'
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest$ac_exeext'
27474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; }; then
27479 eval "$as_ac_var=yes"
27480else
27481 echo "$as_me: failed program was:" >&5
27482sed 's/^/| /' conftest.$ac_ext >&5
27483
27484eval "$as_ac_var=no"
27485fi
27486rm -f conftest.err conftest.$ac_objext \
27487 conftest$ac_exeext conftest.$ac_ext
27488fi
27489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27491if test `eval echo '${'$as_ac_var'}'` = yes; then
27492 cat >>confdefs.h <<_ACEOF
27493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27494_ACEOF
27495
27496fi
27497done
27498
27499
Reid Spencerba46ca32004-12-31 05:49:15 +000027500
27501
27502for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027503do
27504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27505echo "$as_me:$LINENO: checking for $ac_func" >&5
27506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27507if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027508 echo $ECHO_N "(cached) $ECHO_C" >&6
27509else
27510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027511/* confdefs.h. */
27512_ACEOF
27513cat confdefs.h >>conftest.$ac_ext
27514cat >>conftest.$ac_ext <<_ACEOF
27515/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27518#define $ac_func innocuous_$ac_func
27519
27520/* System header to define __stub macros and hopefully few prototypes,
27521 which can conflict with char $ac_func (); below.
27522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27523 <limits.h> exists even on freestanding compilers. */
27524
27525#ifdef __STDC__
27526# include <limits.h>
27527#else
27528# include <assert.h>
27529#endif
27530
27531#undef $ac_func
27532
27533/* Override any gcc2 internal prototype to avoid an error. */
27534#ifdef __cplusplus
27535extern "C"
27536{
27537#endif
27538/* We use char because int might match the return type of a gcc2
27539 builtin and then its argument prototype would still apply. */
27540char $ac_func ();
27541/* The GNU C library defines this for functions which it implements
27542 to always fail with ENOSYS. Some functions are actually named
27543 something starting with __ and the normal name is an alias. */
27544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27545choke me
27546#else
27547char (*f) () = $ac_func;
27548#endif
27549#ifdef __cplusplus
27550}
27551#endif
John Criswell7a73b802003-06-30 21:59:07 +000027552
John Criswell7a73b802003-06-30 21:59:07 +000027553int
27554main ()
27555{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027556return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027557 ;
27558 return 0;
27559}
27560_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027561rm -f conftest.$ac_objext conftest$ac_exeext
27562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27563 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027570 { ac_try='test -z "$ac_c_werror_flag"
27571 || test ! -s conftest.err'
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027577 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027583 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027584else
27585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027586sed 's/^/| /' conftest.$ac_ext >&5
27587
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027588eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027589fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027590rm -f conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027592fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27594echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27595if test `eval echo '${'$as_ac_var'}'` = yes; then
27596 cat >>confdefs.h <<_ACEOF
27597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027598_ACEOF
27599
27600fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027601done
John Criswell7a73b802003-06-30 21:59:07 +000027602
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027603echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27604echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027605if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027606 echo $ECHO_N "(cached) $ECHO_C" >&6
27607else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027608 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027609ac_cpp='$CPP $CPPFLAGS'
27610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27612ac_compiler_gnu=$ac_cv_c_compiler_gnu
27613
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027614 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027615 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027616else
27617 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027618
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027619 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027624
John Criswella0137d32003-10-13 16:22:01 +000027625#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027626#include <stdlib.h>
27627
John Criswella0137d32003-10-13 16:22:01 +000027628int
27629main ()
27630{
27631
Reid Spencer2706f8c2004-09-19 23:53:36 +000027632volatile double A, B;
27633char Buffer[100];
27634A = 1;
27635A /= 10.0;
27636sprintf(Buffer, "%a", A);
27637B = atof(Buffer);
27638if (A != B)
27639 return (1);
27640if (A != 0x1.999999999999ap-4)
27641 return (1);
27642return (0);
John Criswella0137d32003-10-13 16:22:01 +000027643 ;
27644 return 0;
27645}
27646_ACEOF
27647rm -f conftest$ac_exeext
27648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27649 (eval $ac_link) 2>&5
27650 ac_status=$?
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027658 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027659else
27660 echo "$as_me: program exited with status $ac_status" >&5
27661echo "$as_me: failed program was:" >&5
27662sed 's/^/| /' conftest.$ac_ext >&5
27663
27664( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027665llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027668fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027669 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027670ac_cpp='$CPP $CPPFLAGS'
27671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27673ac_compiler_gnu=$ac_cv_c_compiler_gnu
27674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027675fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027676echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27677echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27678 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027679
27680cat >>confdefs.h <<\_ACEOF
27681#define HAVE_PRINTF_A 1
27682_ACEOF
27683
Reid Spencer2706f8c2004-09-19 23:53:36 +000027684 fi
John Criswella0137d32003-10-13 16:22:01 +000027685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027686# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27687# for constant arguments. Useless!
27688echo "$as_me:$LINENO: checking for working alloca.h" >&5
27689echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27690if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027691 echo $ECHO_N "(cached) $ECHO_C" >&6
27692else
John Criswell0021c312004-02-13 21:57:29 +000027693 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027694/* confdefs.h. */
27695_ACEOF
27696cat confdefs.h >>conftest.$ac_ext
27697cat >>conftest.$ac_ext <<_ACEOF
27698/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027699#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027700int
27701main ()
27702{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027703char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027704 ;
27705 return 0;
27706}
27707_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027708rm -f conftest.$ac_objext conftest$ac_exeext
27709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27710 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027712 grep -v '^ *+' conftest.er1 >conftest.err
27713 rm -f conftest.er1
27714 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027717 { ac_try='test -z "$ac_c_werror_flag"
27718 || test ! -s conftest.err'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027724 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027730 ac_cv_working_alloca_h=yes
27731else
27732 echo "$as_me: failed program was:" >&5
27733sed 's/^/| /' conftest.$ac_ext >&5
27734
27735ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027736fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027737rm -f conftest.err conftest.$ac_objext \
27738 conftest$ac_exeext conftest.$ac_ext
27739fi
27740echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27741echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27742if test $ac_cv_working_alloca_h = yes; then
27743
27744cat >>confdefs.h <<\_ACEOF
27745#define HAVE_ALLOCA_H 1
27746_ACEOF
27747
27748fi
27749
27750echo "$as_me:$LINENO: checking for alloca" >&5
27751echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27752if test "${ac_cv_func_alloca_works+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27754else
27755 cat >conftest.$ac_ext <<_ACEOF
27756/* confdefs.h. */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h. */
27761#ifdef __GNUC__
27762# define alloca __builtin_alloca
27763#else
27764# ifdef _MSC_VER
27765# include <malloc.h>
27766# define alloca _alloca
27767# else
27768# if HAVE_ALLOCA_H
27769# include <alloca.h>
27770# else
27771# ifdef _AIX
27772 #pragma alloca
27773# else
27774# ifndef alloca /* predefined by HP cc +Olibcalls */
27775char *alloca ();
27776# endif
27777# endif
27778# endif
27779# endif
27780#endif
27781
27782int
27783main ()
27784{
27785char *p = (char *) alloca (1);
27786 ;
27787 return 0;
27788}
27789_ACEOF
27790rm -f conftest.$ac_objext conftest$ac_exeext
27791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27792 (eval $ac_link) 2>conftest.er1
27793 ac_status=$?
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } &&
27799 { ac_try='test -z "$ac_c_werror_flag"
27800 || test ! -s conftest.err'
27801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802 (eval $ac_try) 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try='test -s conftest$ac_exeext'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 ac_cv_func_alloca_works=yes
27813else
27814 echo "$as_me: failed program was:" >&5
27815sed 's/^/| /' conftest.$ac_ext >&5
27816
27817ac_cv_func_alloca_works=no
27818fi
27819rm -f conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27821fi
27822echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27824
27825if test $ac_cv_func_alloca_works = yes; then
27826
27827cat >>confdefs.h <<\_ACEOF
27828#define HAVE_ALLOCA 1
27829_ACEOF
27830
27831else
27832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27833# that cause trouble. Some versions do not even contain alloca or
27834# contain a buggy version. If you still want to use their alloca,
27835# use ar to extract alloca.o from them instead of compiling alloca.c.
27836
27837ALLOCA=alloca.$ac_objext
27838
27839cat >>confdefs.h <<\_ACEOF
27840#define C_ALLOCA 1
27841_ACEOF
27842
27843
27844echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27846if test "${ac_cv_os_cray+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27848else
27849 cat >conftest.$ac_ext <<_ACEOF
27850/* confdefs.h. */
27851_ACEOF
27852cat confdefs.h >>conftest.$ac_ext
27853cat >>conftest.$ac_ext <<_ACEOF
27854/* end confdefs.h. */
27855#if defined(CRAY) && ! defined(CRAY2)
27856webecray
27857#else
27858wenotbecray
27859#endif
27860
27861_ACEOF
27862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27863 $EGREP "webecray" >/dev/null 2>&1; then
27864 ac_cv_os_cray=yes
27865else
27866 ac_cv_os_cray=no
27867fi
27868rm -f conftest*
27869
27870fi
27871echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27872echo "${ECHO_T}$ac_cv_os_cray" >&6
27873if test $ac_cv_os_cray = yes; then
27874 for ac_func in _getb67 GETB67 getb67; do
27875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27876echo "$as_me:$LINENO: checking for $ac_func" >&5
27877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27878if eval "test \"\${$as_ac_var+set}\" = set"; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880else
27881 cat >conftest.$ac_ext <<_ACEOF
27882/* confdefs.h. */
27883_ACEOF
27884cat confdefs.h >>conftest.$ac_ext
27885cat >>conftest.$ac_ext <<_ACEOF
27886/* end confdefs.h. */
27887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27889#define $ac_func innocuous_$ac_func
27890
27891/* System header to define __stub macros and hopefully few prototypes,
27892 which can conflict with char $ac_func (); below.
27893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894 <limits.h> exists even on freestanding compilers. */
27895
27896#ifdef __STDC__
27897# include <limits.h>
27898#else
27899# include <assert.h>
27900#endif
27901
27902#undef $ac_func
27903
27904/* Override any gcc2 internal prototype to avoid an error. */
27905#ifdef __cplusplus
27906extern "C"
27907{
27908#endif
27909/* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27911char $ac_func ();
27912/* The GNU C library defines this for functions which it implements
27913 to always fail with ENOSYS. Some functions are actually named
27914 something starting with __ and the normal name is an alias. */
27915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27916choke me
27917#else
27918char (*f) () = $ac_func;
27919#endif
27920#ifdef __cplusplus
27921}
27922#endif
27923
27924int
27925main ()
27926{
27927return f != $ac_func;
27928 ;
27929 return 0;
27930}
27931_ACEOF
27932rm -f conftest.$ac_objext conftest$ac_exeext
27933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
27935 ac_status=$?
27936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27945 ac_status=$?
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 eval "$as_ac_var=yes"
27955else
27956 echo "$as_me: failed program was:" >&5
27957sed 's/^/| /' conftest.$ac_ext >&5
27958
27959eval "$as_ac_var=no"
27960fi
27961rm -f conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
27963fi
27964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27966if test `eval echo '${'$as_ac_var'}'` = yes; then
27967
27968cat >>confdefs.h <<_ACEOF
27969#define CRAY_STACKSEG_END $ac_func
27970_ACEOF
27971
27972 break
27973fi
27974
27975 done
27976fi
27977
27978echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27979echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27980if test "${ac_cv_c_stack_direction+set}" = set; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27982else
27983 if test "$cross_compiling" = yes; then
27984 ac_cv_c_stack_direction=0
27985else
27986 cat >conftest.$ac_ext <<_ACEOF
27987/* confdefs.h. */
27988_ACEOF
27989cat confdefs.h >>conftest.$ac_ext
27990cat >>conftest.$ac_ext <<_ACEOF
27991/* end confdefs.h. */
27992int
27993find_stack_direction ()
27994{
27995 static char *addr = 0;
27996 auto char dummy;
27997 if (addr == 0)
27998 {
27999 addr = &dummy;
28000 return find_stack_direction ();
28001 }
John Criswell0021c312004-02-13 21:57:29 +000028002 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028003 return (&dummy > addr) ? 1 : -1;
28004}
John Criswell0021c312004-02-13 21:57:29 +000028005
John Criswell0021c312004-02-13 21:57:29 +000028006int
28007main ()
28008{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028009 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028010}
28011_ACEOF
28012rm -f conftest$ac_exeext
28013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28014 (eval $ac_link) 2>&5
28015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019 (eval $ac_try) 2>&5
28020 ac_status=$?
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028023 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028024else
28025 echo "$as_me: program exited with status $ac_status" >&5
28026echo "$as_me: failed program was:" >&5
28027sed 's/^/| /' conftest.$ac_ext >&5
28028
28029( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028030ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028031fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028033fi
28034fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028035echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28036echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28037
28038cat >>confdefs.h <<_ACEOF
28039#define STACK_DIRECTION $ac_cv_c_stack_direction
28040_ACEOF
28041
28042
John Criswell0021c312004-02-13 21:57:29 +000028043fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028044
28045
28046echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28047echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28048if test "${ac_cv_func_rand48+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28050else
28051 ac_ext=cc
28052ac_cpp='$CXXCPP $CPPFLAGS'
28053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28056
28057 cat >conftest.$ac_ext <<_ACEOF
28058/* confdefs.h. */
28059_ACEOF
28060cat confdefs.h >>conftest.$ac_ext
28061cat >>conftest.$ac_ext <<_ACEOF
28062/* end confdefs.h. */
28063#include <stdlib.h>
28064int
28065main ()
28066{
28067srand48(0);lrand48();drand48();
28068 ;
28069 return 0;
28070}
28071_ACEOF
28072rm -f conftest.$ac_objext
28073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074 (eval $ac_compile) 2>conftest.er1
28075 ac_status=$?
28076 grep -v '^ *+' conftest.er1 >conftest.err
28077 rm -f conftest.er1
28078 cat conftest.err >&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } &&
28081 { ac_try='test -z "$ac_cxx_werror_flag"
28082 || test ! -s conftest.err'
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest.$ac_objext'
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_func_rand48=yes
28095else
28096 echo "$as_me: failed program was:" >&5
28097sed 's/^/| /' conftest.$ac_ext >&5
28098
28099ac_cv_func_rand48=no
28100fi
28101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28102 ac_ext=c
28103ac_cpp='$CPP $CPPFLAGS'
28104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28106ac_compiler_gnu=$ac_cv_c_compiler_gnu
28107
28108fi
28109echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28110echo "${ECHO_T}$ac_cv_func_rand48" >&6
28111
28112if test "$ac_cv_func_rand48" = "yes" ; then
28113
28114cat >>confdefs.h <<\_ACEOF
28115#define HAVE_RAND48 1
28116_ACEOF
28117
28118fi
John Criswell0021c312004-02-13 21:57:29 +000028119
28120
John Criswell7a73b802003-06-30 21:59:07 +000028121echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28122echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28123if test "${ac_cv_cxx_namespaces+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28125else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028126 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028127ac_cpp='$CXXCPP $CPPFLAGS'
28128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28131
28132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028133/* confdefs.h. */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028138namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028139int
28140main ()
28141{
28142using namespace Outer::Inner; return i;
28143 ;
28144 return 0;
28145}
28146_ACEOF
28147rm -f conftest.$ac_objext
28148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028149 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028151 grep -v '^ *+' conftest.er1 >conftest.err
28152 rm -f conftest.er1
28153 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028156 { ac_try='test -z "$ac_cxx_werror_flag"
28157 || test ! -s conftest.err'
28158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159 (eval $ac_try) 2>&5
28160 ac_status=$?
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; } &&
28163 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28166 ac_status=$?
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; }; then
28169 ac_cv_cxx_namespaces=yes
28170else
28171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028172sed 's/^/| /' conftest.$ac_ext >&5
28173
John Criswell7a73b802003-06-30 21:59:07 +000028174ac_cv_cxx_namespaces=no
28175fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028177 ac_ext=c
28178ac_cpp='$CPP $CPPFLAGS'
28179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181ac_compiler_gnu=$ac_cv_c_compiler_gnu
28182
28183
28184fi
28185echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28186echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28187if test "$ac_cv_cxx_namespaces" = yes; then
28188
28189cat >>confdefs.h <<\_ACEOF
28190#define HAVE_NAMESPACES
28191_ACEOF
28192
28193fi
28194
Brian Gaeke90583492003-11-10 03:06:28 +000028195echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28196echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28197if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028198 echo $ECHO_N "(cached) $ECHO_C" >&6
28199else
28200
John Criswell7a73b802003-06-30 21:59:07 +000028201 ac_ext=cc
28202ac_cpp='$CXXCPP $CPPFLAGS'
28203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28206
28207 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028208/* confdefs.h. */
28209_ACEOF
28210cat confdefs.h >>conftest.$ac_ext
28211cat >>conftest.$ac_ext <<_ACEOF
28212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028213#include <ext/hash_map>
28214#ifdef HAVE_NAMESPACES
28215using namespace std;
28216#endif
John Criswell7a73b802003-06-30 21:59:07 +000028217int
28218main ()
28219{
Brian Gaeke90583492003-11-10 03:06:28 +000028220hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028221 ;
28222 return 0;
28223}
28224_ACEOF
28225rm -f conftest.$ac_objext
28226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028227 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028229 grep -v '^ *+' conftest.er1 >conftest.err
28230 rm -f conftest.er1
28231 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028234 { ac_try='test -z "$ac_cxx_werror_flag"
28235 || test ! -s conftest.err'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28238 ac_status=$?
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28244 ac_status=$?
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028247 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028248else
28249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028250sed 's/^/| /' conftest.$ac_ext >&5
28251
Brian Gaeke90583492003-11-10 03:06:28 +000028252ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028253fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028255 ac_ext=c
28256ac_cpp='$CPP $CPPFLAGS'
28257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259ac_compiler_gnu=$ac_cv_c_compiler_gnu
28260
John Criswell7a73b802003-06-30 21:59:07 +000028261fi
Brian Gaeke90583492003-11-10 03:06:28 +000028262echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28263echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028264 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28265 then
John Criswell9f011862004-09-24 18:28:00 +000028266
28267cat >>confdefs.h <<\_ACEOF
28268#define HAVE_STD_EXT_HASH_MAP 1
28269_ACEOF
28270
28271 else
28272
28273cat >>confdefs.h <<\_ACEOF
28274#define HAVE_STD_EXT_HASH_MAP 0
28275_ACEOF
28276
Brian Gaeke90583492003-11-10 03:06:28 +000028277 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028278
Brian Gaeke90583492003-11-10 03:06:28 +000028279 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28280echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28281if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283else
28284
Brian Gaeke90583492003-11-10 03:06:28 +000028285 ac_ext=cc
28286ac_cpp='$CXXCPP $CPPFLAGS'
28287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28290
28291 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028292/* confdefs.h. */
28293_ACEOF
28294cat confdefs.h >>conftest.$ac_ext
28295cat >>conftest.$ac_ext <<_ACEOF
28296/* end confdefs.h. */
28297#include <ext/hash_map>
28298#ifdef HAVE_NAMESPACES
28299using namespace __gnu_cxx;
28300#endif
28301int
28302main ()
28303{
28304hash_map<int,int> t;
28305 ;
28306 return 0;
28307}
28308_ACEOF
28309rm -f conftest.$ac_objext
28310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028311 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028312 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028313 grep -v '^ *+' conftest.er1 >conftest.err
28314 rm -f conftest.er1
28315 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028318 { ac_try='test -z "$ac_cxx_werror_flag"
28319 || test ! -s conftest.err'
28320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 (eval $ac_try) 2>&5
28322 ac_status=$?
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); }; } &&
28325 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327 (eval $ac_try) 2>&5
28328 ac_status=$?
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); }; }; then
28331 ac_cv_cxx_have_gnu_ext_hash_map=yes
28332else
28333 echo "$as_me: failed program was:" >&5
28334sed 's/^/| /' conftest.$ac_ext >&5
28335
28336ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028337fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028339 ac_ext=c
28340ac_cpp='$CPP $CPPFLAGS'
28341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28343ac_compiler_gnu=$ac_cv_c_compiler_gnu
28344
28345fi
28346echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28347echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028348 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28349 then
John Criswell9f011862004-09-24 18:28:00 +000028350
28351cat >>confdefs.h <<\_ACEOF
28352#define HAVE_GNU_EXT_HASH_MAP 1
28353_ACEOF
28354
28355 else
28356
28357cat >>confdefs.h <<\_ACEOF
28358#define HAVE_GNU_EXT_HASH_MAP 0
28359_ACEOF
28360
Brian Gaeke90583492003-11-10 03:06:28 +000028361 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028362
Brian Gaeke90583492003-11-10 03:06:28 +000028363 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28364echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28365if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28366 echo $ECHO_N "(cached) $ECHO_C" >&6
28367else
John Criswell7a73b802003-06-30 21:59:07 +000028368
Brian Gaeke90583492003-11-10 03:06:28 +000028369 ac_ext=cc
28370ac_cpp='$CXXCPP $CPPFLAGS'
28371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28374
28375 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028376/* confdefs.h. */
28377_ACEOF
28378cat confdefs.h >>conftest.$ac_ext
28379cat >>conftest.$ac_ext <<_ACEOF
28380/* end confdefs.h. */
28381#include <hash_map>
28382int
28383main ()
28384{
28385hash_map<int,int> t;
28386 ;
28387 return 0;
28388}
28389_ACEOF
28390rm -f conftest.$ac_objext
28391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028392 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028394 grep -v '^ *+' conftest.er1 >conftest.err
28395 rm -f conftest.er1
28396 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028399 { ac_try='test -z "$ac_cxx_werror_flag"
28400 || test ! -s conftest.err'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408 (eval $ac_try) 2>&5
28409 ac_status=$?
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; }; then
28412 ac_cv_cxx_have_global_hash_map=yes
28413else
28414 echo "$as_me: failed program was:" >&5
28415sed 's/^/| /' conftest.$ac_ext >&5
28416
28417ac_cv_cxx_have_global_hash_map=no
28418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028420 ac_ext=c
28421ac_cpp='$CPP $CPPFLAGS'
28422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424ac_compiler_gnu=$ac_cv_c_compiler_gnu
28425
28426fi
28427echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28428echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028429 if test "$ac_cv_cxx_have_global_hash_map" = yes
28430 then
John Criswell9f011862004-09-24 18:28:00 +000028431
28432cat >>confdefs.h <<\_ACEOF
28433#define HAVE_GLOBAL_HASH_MAP 1
28434_ACEOF
28435
28436 else
28437
28438cat >>confdefs.h <<\_ACEOF
28439#define HAVE_GLOBAL_HASH_MAP 0
28440_ACEOF
28441
Brian Gaeke90583492003-11-10 03:06:28 +000028442 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028443
Brian Gaeke90583492003-11-10 03:06:28 +000028444echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28445echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28446if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028447 echo $ECHO_N "(cached) $ECHO_C" >&6
28448else
28449
John Criswell7a73b802003-06-30 21:59:07 +000028450 ac_ext=cc
28451ac_cpp='$CXXCPP $CPPFLAGS'
28452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455
28456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028462#include <ext/hash_set>
28463#ifdef HAVE_NAMESPACES
28464using namespace std;
28465#endif
John Criswell7a73b802003-06-30 21:59:07 +000028466int
28467main ()
28468{
Brian Gaeke90583492003-11-10 03:06:28 +000028469hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028470 ;
28471 return 0;
28472}
28473_ACEOF
28474rm -f conftest.$ac_objext
28475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028476 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028478 grep -v '^ *+' conftest.er1 >conftest.err
28479 rm -f conftest.er1
28480 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028483 { ac_try='test -z "$ac_cxx_werror_flag"
28484 || test ! -s conftest.err'
28485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; } &&
28490 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028496 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028497else
28498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028499sed 's/^/| /' conftest.$ac_ext >&5
28500
Brian Gaeke90583492003-11-10 03:06:28 +000028501ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028502fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028504 ac_ext=c
28505ac_cpp='$CPP $CPPFLAGS'
28506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508ac_compiler_gnu=$ac_cv_c_compiler_gnu
28509
28510fi
28511echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28512echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028513 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28514 then
John Criswell9f011862004-09-24 18:28:00 +000028515
28516cat >>confdefs.h <<\_ACEOF
28517#define HAVE_STD_EXT_HASH_SET 1
28518_ACEOF
28519
28520 else
28521
28522cat >>confdefs.h <<\_ACEOF
28523#define HAVE_STD_EXT_HASH_SET 0
28524_ACEOF
28525
Brian Gaeke90583492003-11-10 03:06:28 +000028526 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028527
Brian Gaeke90583492003-11-10 03:06:28 +000028528 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28529echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28530if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28532else
28533
Brian Gaeke90583492003-11-10 03:06:28 +000028534 ac_ext=cc
28535ac_cpp='$CXXCPP $CPPFLAGS'
28536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28539
John Criswell7a73b802003-06-30 21:59:07 +000028540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028541/* confdefs.h. */
28542_ACEOF
28543cat confdefs.h >>conftest.$ac_ext
28544cat >>conftest.$ac_ext <<_ACEOF
28545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028546#include <ext/hash_set>
28547#ifdef HAVE_NAMESPACES
28548using namespace __gnu_cxx;
28549#endif
John Criswell7a73b802003-06-30 21:59:07 +000028550int
28551main ()
28552{
Brian Gaeke90583492003-11-10 03:06:28 +000028553hash_set<int> t;
28554 ;
28555 return 0;
28556}
28557_ACEOF
28558rm -f conftest.$ac_objext
28559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028560 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028561 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028562 grep -v '^ *+' conftest.er1 >conftest.err
28563 rm -f conftest.er1
28564 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028567 { ac_try='test -z "$ac_cxx_werror_flag"
28568 || test ! -s conftest.err'
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_cv_cxx_have_gnu_ext_hash_set=yes
28581else
28582 echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585ac_cv_cxx_have_gnu_ext_hash_set=no
28586fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028588 ac_ext=c
28589ac_cpp='$CPP $CPPFLAGS'
28590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28592ac_compiler_gnu=$ac_cv_c_compiler_gnu
28593
28594fi
28595echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28596echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028597 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28598 then
John Criswell9f011862004-09-24 18:28:00 +000028599
28600cat >>confdefs.h <<\_ACEOF
28601#define HAVE_GNU_EXT_HASH_SET 1
28602_ACEOF
28603
28604 else
28605
28606cat >>confdefs.h <<\_ACEOF
28607#define HAVE_GNU_EXT_HASH_SET 0
28608_ACEOF
28609
Brian Gaeke90583492003-11-10 03:06:28 +000028610 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028611
Brian Gaeke90583492003-11-10 03:06:28 +000028612 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28613echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28614if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28615 echo $ECHO_N "(cached) $ECHO_C" >&6
28616else
28617
Brian Gaeke90583492003-11-10 03:06:28 +000028618 ac_ext=cc
28619ac_cpp='$CXXCPP $CPPFLAGS'
28620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28623
28624 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028625/* confdefs.h. */
28626_ACEOF
28627cat confdefs.h >>conftest.$ac_ext
28628cat >>conftest.$ac_ext <<_ACEOF
28629/* end confdefs.h. */
28630#include <hash_set>
28631int
28632main ()
28633{
John Criswell7a73b802003-06-30 21:59:07 +000028634hash_set<int> t; return 0;
28635 ;
28636 return 0;
28637}
28638_ACEOF
28639rm -f conftest.$ac_objext
28640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028641 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028642 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028643 grep -v '^ *+' conftest.er1 >conftest.err
28644 rm -f conftest.er1
28645 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028648 { ac_try='test -z "$ac_cxx_werror_flag"
28649 || test ! -s conftest.err'
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28652 ac_status=$?
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; } &&
28655 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657 (eval $ac_try) 2>&5
28658 ac_status=$?
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028661 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028662else
28663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028664sed 's/^/| /' conftest.$ac_ext >&5
28665
Brian Gaeke90583492003-11-10 03:06:28 +000028666ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028667fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028669 ac_ext=c
28670ac_cpp='$CPP $CPPFLAGS'
28671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28673ac_compiler_gnu=$ac_cv_c_compiler_gnu
28674
John Criswell7a73b802003-06-30 21:59:07 +000028675fi
Brian Gaeke90583492003-11-10 03:06:28 +000028676echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28677echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028678 if test "$ac_cv_cxx_have_global_hash_set" = yes
28679 then
John Criswell9f011862004-09-24 18:28:00 +000028680
28681cat >>confdefs.h <<\_ACEOF
28682#define HAVE_GLOBAL_HASH_SET 1
28683_ACEOF
28684
28685 else
28686
28687cat >>confdefs.h <<\_ACEOF
28688#define HAVE_GLOBAL_HASH_SET 0
28689_ACEOF
28690
Brian Gaeke90583492003-11-10 03:06:28 +000028691 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028692
John Criswell7a73b802003-06-30 21:59:07 +000028693echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28694echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28695if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28697else
28698
John Criswell7a73b802003-06-30 21:59:07 +000028699 ac_ext=cc
28700ac_cpp='$CXXCPP $CPPFLAGS'
28701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28704
28705 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028706/* confdefs.h. */
28707_ACEOF
28708cat confdefs.h >>conftest.$ac_ext
28709cat >>conftest.$ac_ext <<_ACEOF
28710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028711#include <iterator>
28712#ifdef HAVE_NAMESPACES
28713using namespace std;
28714#endif
John Criswell7a73b802003-06-30 21:59:07 +000028715int
28716main ()
28717{
28718iterator<int,int,int> t; return 0;
28719 ;
28720 return 0;
28721}
28722_ACEOF
28723rm -f conftest.$ac_objext
28724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028725 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028727 grep -v '^ *+' conftest.er1 >conftest.err
28728 rm -f conftest.er1
28729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028732 { ac_try='test -z "$ac_cxx_werror_flag"
28733 || test ! -s conftest.err'
28734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28735 (eval $ac_try) 2>&5
28736 ac_status=$?
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); }; } &&
28739 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741 (eval $ac_try) 2>&5
28742 ac_status=$?
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; }; then
28745 ac_cv_cxx_have_std_iterator=yes
28746else
28747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028748sed 's/^/| /' conftest.$ac_ext >&5
28749
John Criswell7a73b802003-06-30 21:59:07 +000028750ac_cv_cxx_have_std_iterator=no
28751fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028753 ac_ext=c
28754ac_cpp='$CPP $CPPFLAGS'
28755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757ac_compiler_gnu=$ac_cv_c_compiler_gnu
28758
28759
28760fi
28761echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28762echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028763if test "$ac_cv_cxx_have_std_iterator" = yes
28764then
John Criswell40468462004-09-24 21:19:06 +000028765
28766cat >>confdefs.h <<\_ACEOF
28767#define HAVE_STD_ITERATOR 1
28768_ACEOF
28769
28770else
28771
28772cat >>confdefs.h <<\_ACEOF
28773#define HAVE_STD_ITERATOR 0
28774_ACEOF
28775
John Criswell7a73b802003-06-30 21:59:07 +000028776fi
28777
28778echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28779echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28780if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28782else
28783
John Criswell7a73b802003-06-30 21:59:07 +000028784 ac_ext=cc
28785ac_cpp='$CXXCPP $CPPFLAGS'
28786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28789
28790 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028791/* confdefs.h. */
28792_ACEOF
28793cat confdefs.h >>conftest.$ac_ext
28794cat >>conftest.$ac_ext <<_ACEOF
28795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028796#include <iterator>
28797#ifdef HAVE_NAMESPACES
28798using namespace std;
28799#endif
John Criswell7a73b802003-06-30 21:59:07 +000028800int
28801main ()
28802{
John Criswellc78022e2003-07-29 19:11:58 +000028803bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028804 ;
28805 return 0;
28806}
28807_ACEOF
28808rm -f conftest.$ac_objext
28809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028810 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028812 grep -v '^ *+' conftest.er1 >conftest.err
28813 rm -f conftest.er1
28814 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028817 { ac_try='test -z "$ac_cxx_werror_flag"
28818 || test ! -s conftest.err'
28819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820 (eval $ac_try) 2>&5
28821 ac_status=$?
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); }; } &&
28824 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826 (eval $ac_try) 2>&5
28827 ac_status=$?
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; }; then
28830 ac_cv_cxx_have_bi_iterator=yes
28831else
28832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028833sed 's/^/| /' conftest.$ac_ext >&5
28834
John Criswell7a73b802003-06-30 21:59:07 +000028835ac_cv_cxx_have_bi_iterator=no
28836fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028838 ac_ext=c
28839ac_cpp='$CPP $CPPFLAGS'
28840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842ac_compiler_gnu=$ac_cv_c_compiler_gnu
28843
28844
28845fi
28846echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28847echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028848if test "$ac_cv_cxx_have_bi_iterator" = yes
28849then
John Criswell40468462004-09-24 21:19:06 +000028850
28851cat >>confdefs.h <<\_ACEOF
28852#define HAVE_BI_ITERATOR 1
28853_ACEOF
28854
28855else
28856
28857cat >>confdefs.h <<\_ACEOF
28858#define HAVE_BI_ITERATOR 0
28859_ACEOF
28860
John Criswell7a73b802003-06-30 21:59:07 +000028861fi
28862
28863echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28864echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28865if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28866 echo $ECHO_N "(cached) $ECHO_C" >&6
28867else
28868
John Criswell7a73b802003-06-30 21:59:07 +000028869 ac_ext=cc
28870ac_cpp='$CXXCPP $CPPFLAGS'
28871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28874
28875 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028876/* confdefs.h. */
28877_ACEOF
28878cat confdefs.h >>conftest.$ac_ext
28879cat >>conftest.$ac_ext <<_ACEOF
28880/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028881#include <iterator>
28882#ifdef HAVE_NAMESPACES
28883using namespace std;
28884#endif
John Criswell7a73b802003-06-30 21:59:07 +000028885int
28886main ()
28887{
John Criswellc78022e2003-07-29 19:11:58 +000028888forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028889 ;
28890 return 0;
28891}
28892_ACEOF
28893rm -f conftest.$ac_objext
28894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028895 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028897 grep -v '^ *+' conftest.er1 >conftest.err
28898 rm -f conftest.er1
28899 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028902 { ac_try='test -z "$ac_cxx_werror_flag"
28903 || test ! -s conftest.err'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; } &&
28909 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 ac_cv_cxx_have_fwd_iterator=yes
28916else
28917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028918sed 's/^/| /' conftest.$ac_ext >&5
28919
John Criswell7a73b802003-06-30 21:59:07 +000028920ac_cv_cxx_have_fwd_iterator=no
28921fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028923 ac_ext=c
28924ac_cpp='$CPP $CPPFLAGS'
28925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28927ac_compiler_gnu=$ac_cv_c_compiler_gnu
28928
28929
28930fi
28931echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28932echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028933if test "$ac_cv_cxx_have_fwd_iterator" = yes
28934then
John Criswell40468462004-09-24 21:19:06 +000028935
28936cat >>confdefs.h <<\_ACEOF
28937#define HAVE_FWD_ITERATOR 1
28938_ACEOF
28939
28940else
28941
28942cat >>confdefs.h <<\_ACEOF
28943#define HAVE_FWD_ITERATOR 0
28944_ACEOF
28945
John Criswell7a73b802003-06-30 21:59:07 +000028946fi
28947
28948
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028949echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28950echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28951if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
28953else
28954 ac_ext=cc
28955ac_cpp='$CXXCPP $CPPFLAGS'
28956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28959
Reid Spencerabec8f92004-10-27 23:03:44 +000028960 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028961/* confdefs.h. */
28962_ACEOF
28963cat confdefs.h >>conftest.$ac_ext
28964cat >>conftest.$ac_ext <<_ACEOF
28965/* end confdefs.h. */
28966#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028967int
28968main ()
28969{
28970float f; isnan(f);
28971 ;
28972 return 0;
28973}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028974_ACEOF
28975rm -f conftest.$ac_objext
28976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028977 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028978 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028979 grep -v '^ *+' conftest.er1 >conftest.err
28980 rm -f conftest.er1
28981 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028984 { ac_try='test -z "$ac_cxx_werror_flag"
28985 || test ! -s conftest.err'
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_func_isnan_in_math_h=yes
28998else
28999 echo "$as_me: failed program was:" >&5
29000sed 's/^/| /' conftest.$ac_ext >&5
29001
29002ac_cv_func_isnan_in_math_h=no
29003fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029005 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029006ac_cpp='$CPP $CPPFLAGS'
29007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29009ac_compiler_gnu=$ac_cv_c_compiler_gnu
29010
29011fi
29012echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29013echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029014
29015
29016if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029017
29018cat >>confdefs.h <<\_ACEOF
29019#define HAVE_ISNAN_IN_MATH_H 1
29020_ACEOF
29021
Reid Spencerabec8f92004-10-27 23:03:44 +000029022fi
29023
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029024echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29025echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29026if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29028else
29029 ac_ext=cc
29030ac_cpp='$CXXCPP $CPPFLAGS'
29031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29034
Reid Spencerabec8f92004-10-27 23:03:44 +000029035 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029036/* confdefs.h. */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h. */
29041#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029042int
29043main ()
29044{
29045float f; isnan(f);
29046 ;
29047 return 0;
29048}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029049_ACEOF
29050rm -f conftest.$ac_objext
29051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029052 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029054 grep -v '^ *+' conftest.er1 >conftest.err
29055 rm -f conftest.er1
29056 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029059 { ac_try='test -z "$ac_cxx_werror_flag"
29060 || test ! -s conftest.err'
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29063 ac_status=$?
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; } &&
29066 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068 (eval $ac_try) 2>&5
29069 ac_status=$?
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; }; then
29072 ac_cv_func_isnan_in_cmath=yes
29073else
29074 echo "$as_me: failed program was:" >&5
29075sed 's/^/| /' conftest.$ac_ext >&5
29076
29077ac_cv_func_isnan_in_cmath=no
29078fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029080 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029081ac_cpp='$CPP $CPPFLAGS'
29082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29084ac_compiler_gnu=$ac_cv_c_compiler_gnu
29085
29086fi
29087echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29088echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029089
29090if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029091
29092cat >>confdefs.h <<\_ACEOF
29093#define HAVE_ISNAN_IN_CMATH 1
29094_ACEOF
29095
Reid Spencerabec8f92004-10-27 23:03:44 +000029096fi
29097
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029098echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29099echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29100if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29102else
29103 ac_ext=cc
29104ac_cpp='$CXXCPP $CPPFLAGS'
29105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29108
Reid Spencerabec8f92004-10-27 23:03:44 +000029109 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029110/* confdefs.h. */
29111_ACEOF
29112cat confdefs.h >>conftest.$ac_ext
29113cat >>conftest.$ac_ext <<_ACEOF
29114/* end confdefs.h. */
29115#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029116int
29117main ()
29118{
29119float f; std::isnan(f);
29120 ;
29121 return 0;
29122}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029123_ACEOF
29124rm -f conftest.$ac_objext
29125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029126 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029127 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029128 grep -v '^ *+' conftest.er1 >conftest.err
29129 rm -f conftest.er1
29130 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029133 { ac_try='test -z "$ac_cxx_werror_flag"
29134 || test ! -s conftest.err'
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; } &&
29140 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; }; then
29146 ac_cv_func_std_isnan_in_cmath=yes
29147else
29148 echo "$as_me: failed program was:" >&5
29149sed 's/^/| /' conftest.$ac_ext >&5
29150
29151ac_cv_func_std_isnan_in_cmath=no
29152fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029154 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029155ac_cpp='$CPP $CPPFLAGS'
29156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29158ac_compiler_gnu=$ac_cv_c_compiler_gnu
29159
29160fi
29161echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29162echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029163
29164if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029165
29166cat >>confdefs.h <<\_ACEOF
29167#define HAVE_STD_ISNAN_IN_CMATH 1
29168_ACEOF
29169
Reid Spencerabec8f92004-10-27 23:03:44 +000029170fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029171
29172
Brian Gaeke52a551d2004-07-21 03:14:12 +000029173echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29174echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29175if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29177else
29178 ac_ext=cc
29179ac_cpp='$CXXCPP $CPPFLAGS'
29180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29183
Reid Spencerabec8f92004-10-27 23:03:44 +000029184 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029185/* confdefs.h. */
29186_ACEOF
29187cat confdefs.h >>conftest.$ac_ext
29188cat >>conftest.$ac_ext <<_ACEOF
29189/* end confdefs.h. */
29190#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029191int
29192main ()
29193{
29194float f; isinf(f);
29195 ;
29196 return 0;
29197}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029198_ACEOF
29199rm -f conftest.$ac_objext
29200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029201 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029203 grep -v '^ *+' conftest.er1 >conftest.err
29204 rm -f conftest.er1
29205 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029208 { ac_try='test -z "$ac_cxx_werror_flag"
29209 || test ! -s conftest.err'
29210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29212 ac_status=$?
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; } &&
29215 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
29221 ac_cv_func_isinf_in_math_h=yes
29222else
29223 echo "$as_me: failed program was:" >&5
29224sed 's/^/| /' conftest.$ac_ext >&5
29225
29226ac_cv_func_isinf_in_math_h=no
29227fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029229 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029230ac_cpp='$CPP $CPPFLAGS'
29231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233ac_compiler_gnu=$ac_cv_c_compiler_gnu
29234
29235fi
29236echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29237echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029238
29239if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029240
29241cat >>confdefs.h <<\_ACEOF
29242#define HAVE_ISINF_IN_MATH_H 1
29243_ACEOF
29244
Reid Spencerabec8f92004-10-27 23:03:44 +000029245fi
29246
Brian Gaeke52a551d2004-07-21 03:14:12 +000029247echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29248echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29249if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29250 echo $ECHO_N "(cached) $ECHO_C" >&6
29251else
29252 ac_ext=cc
29253ac_cpp='$CXXCPP $CPPFLAGS'
29254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29257
Reid Spencerabec8f92004-10-27 23:03:44 +000029258 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029259/* confdefs.h. */
29260_ACEOF
29261cat confdefs.h >>conftest.$ac_ext
29262cat >>conftest.$ac_ext <<_ACEOF
29263/* end confdefs.h. */
29264#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029265int
29266main ()
29267{
29268float f; isinf(f);
29269 ;
29270 return 0;
29271}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029272_ACEOF
29273rm -f conftest.$ac_objext
29274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029275 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029277 grep -v '^ *+' conftest.er1 >conftest.err
29278 rm -f conftest.er1
29279 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029282 { ac_try='test -z "$ac_cxx_werror_flag"
29283 || test ! -s conftest.err'
29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29292 ac_status=$?
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
29295 ac_cv_func_isinf_in_cmath=yes
29296else
29297 echo "$as_me: failed program was:" >&5
29298sed 's/^/| /' conftest.$ac_ext >&5
29299
29300ac_cv_func_isinf_in_cmath=no
29301fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029303 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029304ac_cpp='$CPP $CPPFLAGS'
29305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29307ac_compiler_gnu=$ac_cv_c_compiler_gnu
29308
29309fi
29310echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29311echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029312
29313if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029314
29315cat >>confdefs.h <<\_ACEOF
29316#define HAVE_ISINF_IN_CMATH 1
29317_ACEOF
29318
Reid Spencerabec8f92004-10-27 23:03:44 +000029319fi
29320
Brian Gaeke52a551d2004-07-21 03:14:12 +000029321echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29322echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29323if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29325else
29326 ac_ext=cc
29327ac_cpp='$CXXCPP $CPPFLAGS'
29328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29331
Reid Spencerabec8f92004-10-27 23:03:44 +000029332 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029333/* confdefs.h. */
29334_ACEOF
29335cat confdefs.h >>conftest.$ac_ext
29336cat >>conftest.$ac_ext <<_ACEOF
29337/* end confdefs.h. */
29338#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029339int
29340main ()
29341{
29342float f; std::isinf(f)}
29343 ;
29344 return 0;
29345}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029346_ACEOF
29347rm -f conftest.$ac_objext
29348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029349 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029350 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029351 grep -v '^ *+' conftest.er1 >conftest.err
29352 rm -f conftest.er1
29353 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356 { ac_try='test -z "$ac_cxx_werror_flag"
29357 || test ! -s conftest.err'
29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29360 ac_status=$?
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; } &&
29363 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365 (eval $ac_try) 2>&5
29366 ac_status=$?
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
29369 ac_cv_func_std_isinf_in_cmath=yes
29370else
29371 echo "$as_me: failed program was:" >&5
29372sed 's/^/| /' conftest.$ac_ext >&5
29373
29374ac_cv_func_std_isinf_in_cmath=no
29375fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029377 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029378ac_cpp='$CPP $CPPFLAGS'
29379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29381ac_compiler_gnu=$ac_cv_c_compiler_gnu
29382
29383fi
29384echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29385echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029386
29387if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029388
29389cat >>confdefs.h <<\_ACEOF
29390#define HAVE_STD_ISINF_IN_CMATH 1
29391_ACEOF
29392
Reid Spencerabec8f92004-10-27 23:03:44 +000029393fi
29394
Brian Gaeked59a6472004-07-21 03:33:58 +000029395echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29396echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29397if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399else
29400 ac_ext=cc
29401ac_cpp='$CXXCPP $CPPFLAGS'
29402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405
Reid Spencerabec8f92004-10-27 23:03:44 +000029406 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
29412#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029413int
29414main ()
29415{
29416float f; finite(f);
29417 ;
29418 return 0;
29419}
Brian Gaeked59a6472004-07-21 03:33:58 +000029420_ACEOF
29421rm -f conftest.$ac_objext
29422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029423 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029430 { ac_try='test -z "$ac_cxx_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29434 ac_status=$?
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29440 ac_status=$?
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29443 ac_cv_func_finite_in_ieeefp_h=yes
29444else
29445 echo "$as_me: failed program was:" >&5
29446sed 's/^/| /' conftest.$ac_ext >&5
29447
29448ac_cv_func_finite_in_ieeefp_h=no
29449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029451 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029452ac_cpp='$CPP $CPPFLAGS'
29453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455ac_compiler_gnu=$ac_cv_c_compiler_gnu
29456
29457fi
29458echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29459echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029460
Brian Gaeke6802b552004-10-28 05:06:45 +000029461if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029462
29463cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029464#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029465_ACEOF
29466
Reid Spencerabec8f92004-10-27 23:03:44 +000029467fi
29468
29469
29470
John Criswell7a73b802003-06-30 21:59:07 +000029471
29472
29473for ac_header in stdlib.h unistd.h
29474do
29475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29476if eval "test \"\${$as_ac_Header+set}\" = set"; then
29477 echo "$as_me:$LINENO: checking for $ac_header" >&5
29478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29479if eval "test \"\${$as_ac_Header+set}\" = set"; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29481fi
29482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29484else
29485 # Is the header compilable?
29486echo "$as_me:$LINENO: checking $ac_header usability" >&5
29487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29488cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029489/* confdefs.h. */
29490_ACEOF
29491cat confdefs.h >>conftest.$ac_ext
29492cat >>conftest.$ac_ext <<_ACEOF
29493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029494$ac_includes_default
29495#include <$ac_header>
29496_ACEOF
29497rm -f conftest.$ac_objext
29498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029499 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029501 grep -v '^ *+' conftest.er1 >conftest.err
29502 rm -f conftest.er1
29503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_header_compiler=yes
29520else
29521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029522sed 's/^/| /' conftest.$ac_ext >&5
29523
John Criswell7a73b802003-06-30 21:59:07 +000029524ac_header_compiler=no
29525fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528echo "${ECHO_T}$ac_header_compiler" >&6
29529
29530# Is the header present?
29531echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29533cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029534/* confdefs.h. */
29535_ACEOF
29536cat confdefs.h >>conftest.$ac_ext
29537cat >>conftest.$ac_ext <<_ACEOF
29538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029539#include <$ac_header>
29540_ACEOF
29541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29543 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029544 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029545 rm -f conftest.er1
29546 cat conftest.err >&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } >/dev/null; then
29549 if test -s conftest.err; then
29550 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029552 else
29553 ac_cpp_err=
29554 fi
29555else
29556 ac_cpp_err=yes
29557fi
29558if test -z "$ac_cpp_err"; then
29559 ac_header_preproc=yes
29560else
29561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029562sed 's/^/| /' conftest.$ac_ext >&5
29563
John Criswell7a73b802003-06-30 21:59:07 +000029564 ac_header_preproc=no
29565fi
29566rm -f conftest.err conftest.$ac_ext
29567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568echo "${ECHO_T}$ac_header_preproc" >&6
29569
29570# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29572 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29577 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029578 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029579 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29583echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29587echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029592 (
29593 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029594## ----------------------------------- ##
29595## Report this to llvmbugs@cs.uiuc.edu ##
29596## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029597_ASBOX
29598 ) |
29599 sed "s/^/$as_me: WARNING: /" >&2
29600 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029601esac
29602echo "$as_me:$LINENO: checking for $ac_header" >&5
29603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29604if eval "test \"\${$as_ac_Header+set}\" = set"; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29606else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029607 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029608fi
29609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29611
29612fi
29613if test `eval echo '${'$as_ac_Header'}'` = yes; then
29614 cat >>confdefs.h <<_ACEOF
29615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29616_ACEOF
29617
29618fi
29619
29620done
29621
29622
29623for ac_func in getpagesize
29624do
29625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29626echo "$as_me:$LINENO: checking for $ac_func" >&5
29627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29628if eval "test \"\${$as_ac_var+set}\" = set"; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
29630else
29631 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029632/* confdefs.h. */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29639#define $ac_func innocuous_$ac_func
29640
John Criswell7a73b802003-06-30 21:59:07 +000029641/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029642 which can conflict with char $ac_func (); below.
29643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29644 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029645
John Criswell0c38eaf2003-09-10 15:17:25 +000029646#ifdef __STDC__
29647# include <limits.h>
29648#else
29649# include <assert.h>
29650#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029651
29652#undef $ac_func
29653
John Criswell7a73b802003-06-30 21:59:07 +000029654/* Override any gcc2 internal prototype to avoid an error. */
29655#ifdef __cplusplus
29656extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029657{
John Criswell7a73b802003-06-30 21:59:07 +000029658#endif
29659/* We use char because int might match the return type of a gcc2
29660 builtin and then its argument prototype would still apply. */
29661char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029662/* The GNU C library defines this for functions which it implements
29663 to always fail with ENOSYS. Some functions are actually named
29664 something starting with __ and the normal name is an alias. */
29665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29666choke me
29667#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029668char (*f) () = $ac_func;
29669#endif
29670#ifdef __cplusplus
29671}
John Criswell7a73b802003-06-30 21:59:07 +000029672#endif
29673
John Criswell0c38eaf2003-09-10 15:17:25 +000029674int
29675main ()
29676{
29677return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029678 ;
29679 return 0;
29680}
29681_ACEOF
29682rm -f conftest.$ac_objext conftest$ac_exeext
29683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029684 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029685 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029686 grep -v '^ *+' conftest.er1 >conftest.err
29687 rm -f conftest.er1
29688 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029691 { ac_try='test -z "$ac_c_werror_flag"
29692 || test ! -s conftest.err'
29693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694 (eval $ac_try) 2>&5
29695 ac_status=$?
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; } &&
29698 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29704 eval "$as_ac_var=yes"
29705else
29706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029707sed 's/^/| /' conftest.$ac_ext >&5
29708
John Criswell7a73b802003-06-30 21:59:07 +000029709eval "$as_ac_var=no"
29710fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029711rm -f conftest.err conftest.$ac_objext \
29712 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029713fi
29714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29716if test `eval echo '${'$as_ac_var'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29719_ACEOF
29720
29721fi
29722done
29723
29724echo "$as_me:$LINENO: checking for working mmap" >&5
29725echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29726if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728else
29729 if test "$cross_compiling" = yes; then
29730 ac_cv_func_mmap_fixed_mapped=no
29731else
29732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029733/* confdefs.h. */
29734_ACEOF
29735cat confdefs.h >>conftest.$ac_ext
29736cat >>conftest.$ac_ext <<_ACEOF
29737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029738$ac_includes_default
29739/* malloc might have been renamed as rpl_malloc. */
29740#undef malloc
29741
29742/* Thanks to Mike Haertel and Jim Avera for this test.
29743 Here is a matrix of mmap possibilities:
29744 mmap private not fixed
29745 mmap private fixed at somewhere currently unmapped
29746 mmap private fixed at somewhere already mapped
29747 mmap shared not fixed
29748 mmap shared fixed at somewhere currently unmapped
29749 mmap shared fixed at somewhere already mapped
29750 For private mappings, we should verify that changes cannot be read()
29751 back from the file, nor mmap's back from the file at a different
29752 address. (There have been systems where private was not correctly
29753 implemented like the infamous i386 svr4.0, and systems where the
29754 VM page cache was not coherent with the file system buffer cache
29755 like early versions of FreeBSD and possibly contemporary NetBSD.)
29756 For shared mappings, we should conversely verify that changes get
29757 propagated back to all the places they're supposed to be.
29758
29759 Grep wants private fixed already mapped.
29760 The main things grep needs to know about mmap are:
29761 * does it exist and is it safe to write into the mmap'd area
29762 * how to use it (BSD variants) */
29763
29764#include <fcntl.h>
29765#include <sys/mman.h>
29766
29767#if !STDC_HEADERS && !HAVE_STDLIB_H
29768char *malloc ();
29769#endif
29770
29771/* This mess was copied from the GNU getpagesize.h. */
29772#if !HAVE_GETPAGESIZE
29773/* Assume that all systems that can run configure have sys/param.h. */
29774# if !HAVE_SYS_PARAM_H
29775# define HAVE_SYS_PARAM_H 1
29776# endif
29777
29778# ifdef _SC_PAGESIZE
29779# define getpagesize() sysconf(_SC_PAGESIZE)
29780# else /* no _SC_PAGESIZE */
29781# if HAVE_SYS_PARAM_H
29782# include <sys/param.h>
29783# ifdef EXEC_PAGESIZE
29784# define getpagesize() EXEC_PAGESIZE
29785# else /* no EXEC_PAGESIZE */
29786# ifdef NBPG
29787# define getpagesize() NBPG * CLSIZE
29788# ifndef CLSIZE
29789# define CLSIZE 1
29790# endif /* no CLSIZE */
29791# else /* no NBPG */
29792# ifdef NBPC
29793# define getpagesize() NBPC
29794# else /* no NBPC */
29795# ifdef PAGESIZE
29796# define getpagesize() PAGESIZE
29797# endif /* PAGESIZE */
29798# endif /* no NBPC */
29799# endif /* no NBPG */
29800# endif /* no EXEC_PAGESIZE */
29801# else /* no HAVE_SYS_PARAM_H */
29802# define getpagesize() 8192 /* punt totally */
29803# endif /* no HAVE_SYS_PARAM_H */
29804# endif /* no _SC_PAGESIZE */
29805
29806#endif /* no HAVE_GETPAGESIZE */
29807
29808int
29809main ()
29810{
29811 char *data, *data2, *data3;
29812 int i, pagesize;
29813 int fd;
29814
29815 pagesize = getpagesize ();
29816
29817 /* First, make a file with some known garbage in it. */
29818 data = (char *) malloc (pagesize);
29819 if (!data)
29820 exit (1);
29821 for (i = 0; i < pagesize; ++i)
29822 *(data + i) = rand ();
29823 umask (0);
29824 fd = creat ("conftest.mmap", 0600);
29825 if (fd < 0)
29826 exit (1);
29827 if (write (fd, data, pagesize) != pagesize)
29828 exit (1);
29829 close (fd);
29830
29831 /* Next, try to mmap the file at a fixed address which already has
29832 something else allocated at it. If we can, also make sure that
29833 we see the same garbage. */
29834 fd = open ("conftest.mmap", O_RDWR);
29835 if (fd < 0)
29836 exit (1);
29837 data2 = (char *) malloc (2 * pagesize);
29838 if (!data2)
29839 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029840 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029841 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029842 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029843 exit (1);
29844 for (i = 0; i < pagesize; ++i)
29845 if (*(data + i) != *(data2 + i))
29846 exit (1);
29847
29848 /* Finally, make sure that changes to the mapped area do not
29849 percolate back to the file as seen by read(). (This is a bug on
29850 some variants of i386 svr4.0.) */
29851 for (i = 0; i < pagesize; ++i)
29852 *(data2 + i) = *(data2 + i) + 1;
29853 data3 = (char *) malloc (pagesize);
29854 if (!data3)
29855 exit (1);
29856 if (read (fd, data3, pagesize) != pagesize)
29857 exit (1);
29858 for (i = 0; i < pagesize; ++i)
29859 if (*(data + i) != *(data3 + i))
29860 exit (1);
29861 close (fd);
29862 exit (0);
29863}
29864_ACEOF
29865rm -f conftest$ac_exeext
29866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29867 (eval $ac_link) 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29873 ac_status=$?
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; }; then
29876 ac_cv_func_mmap_fixed_mapped=yes
29877else
29878 echo "$as_me: program exited with status $ac_status" >&5
29879echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029880sed 's/^/| /' conftest.$ac_ext >&5
29881
John Criswell7a73b802003-06-30 21:59:07 +000029882( exit $ac_status )
29883ac_cv_func_mmap_fixed_mapped=no
29884fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029885rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029886fi
29887fi
29888echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29889echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29890if test $ac_cv_func_mmap_fixed_mapped = yes; then
29891
29892cat >>confdefs.h <<\_ACEOF
29893#define HAVE_MMAP 1
29894_ACEOF
29895
29896fi
29897rm -f conftest.mmap
29898
29899echo "$as_me:$LINENO: checking for mmap of files" >&5
29900echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29901if test "${ac_cv_func_mmap_file+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029904 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029905ac_cpp='$CPP $CPPFLAGS'
29906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909
29910 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029911 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029912else
29913 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029914
Reid Spencer777ce172004-09-20 04:09:56 +000029915 /* confdefs.h. */
29916_ACEOF
29917cat confdefs.h >>conftest.$ac_ext
29918cat >>conftest.$ac_ext <<_ACEOF
29919/* end confdefs.h. */
29920
John Criswell7a73b802003-06-30 21:59:07 +000029921#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029922#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029923#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029924
29925int
29926main ()
29927{
John Criswell7a73b802003-06-30 21:59:07 +000029928
29929 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029930 fd = creat ("foo",0777);
29931 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29932 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029933 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029934 ;
29935 return 0;
29936}
John Criswell7a73b802003-06-30 21:59:07 +000029937_ACEOF
29938rm -f conftest$ac_exeext
29939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29940 (eval $ac_link) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29946 ac_status=$?
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29949 ac_cv_func_mmap_file=yes
29950else
29951 echo "$as_me: program exited with status $ac_status" >&5
29952echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029953sed 's/^/| /' conftest.$ac_ext >&5
29954
John Criswell7a73b802003-06-30 21:59:07 +000029955( exit $ac_status )
29956ac_cv_func_mmap_file=no
29957fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029959fi
29960 ac_ext=c
29961ac_cpp='$CPP $CPPFLAGS'
29962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29964ac_compiler_gnu=$ac_cv_c_compiler_gnu
29965
29966
29967fi
29968echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29969echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29970if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029971
29972cat >>confdefs.h <<\_ACEOF
29973#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029974_ACEOF
29975
29976 MMAP_FILE=yes
29977
29978fi
29979
Reid Spencer7931a782004-12-27 06:15:02 +000029980echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29981echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29982if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29984else
Reid Spencer582a23c2004-12-29 07:07:57 +000029985 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000029986 ac_cv_need_dev_zero_for_mmap=yes
29987 else
29988 ac_cv_need_dev_zero_for_mmap=no
29989 fi
29990
29991fi
29992echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29993echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29994if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29995
29996cat >>confdefs.h <<\_ACEOF
29997#define NEED_DEV_ZERO_FOR_MMAP 1
29998_ACEOF
29999
30000fi
John Criswell7a73b802003-06-30 21:59:07 +000030001echo "$as_me:$LINENO: checking for mprotect" >&5
30002echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30003if test "${ac_cv_func_mprotect+set}" = set; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30005else
30006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030007/* confdefs.h. */
30008_ACEOF
30009cat confdefs.h >>conftest.$ac_ext
30010cat >>conftest.$ac_ext <<_ACEOF
30011/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030012/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30014#define mprotect innocuous_mprotect
30015
John Criswell7a73b802003-06-30 21:59:07 +000030016/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030017 which can conflict with char mprotect (); below.
30018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30019 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030020
John Criswell0c38eaf2003-09-10 15:17:25 +000030021#ifdef __STDC__
30022# include <limits.h>
30023#else
30024# include <assert.h>
30025#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030026
30027#undef mprotect
30028
John Criswell7a73b802003-06-30 21:59:07 +000030029/* Override any gcc2 internal prototype to avoid an error. */
30030#ifdef __cplusplus
30031extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030032{
John Criswell7a73b802003-06-30 21:59:07 +000030033#endif
30034/* We use char because int might match the return type of a gcc2
30035 builtin and then its argument prototype would still apply. */
30036char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030037/* The GNU C library defines this for functions which it implements
30038 to always fail with ENOSYS. Some functions are actually named
30039 something starting with __ and the normal name is an alias. */
30040#if defined (__stub_mprotect) || defined (__stub___mprotect)
30041choke me
30042#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030043char (*f) () = mprotect;
30044#endif
30045#ifdef __cplusplus
30046}
John Criswell7a73b802003-06-30 21:59:07 +000030047#endif
30048
John Criswell0c38eaf2003-09-10 15:17:25 +000030049int
30050main ()
30051{
30052return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030053 ;
30054 return 0;
30055}
30056_ACEOF
30057rm -f conftest.$ac_objext conftest$ac_exeext
30058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030059 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030061 grep -v '^ *+' conftest.er1 >conftest.err
30062 rm -f conftest.er1
30063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030066 { ac_try='test -z "$ac_c_werror_flag"
30067 || test ! -s conftest.err'
30068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; } &&
30073 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075 (eval $ac_try) 2>&5
30076 ac_status=$?
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
30079 ac_cv_func_mprotect=yes
30080else
30081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030082sed 's/^/| /' conftest.$ac_ext >&5
30083
John Criswell7a73b802003-06-30 21:59:07 +000030084ac_cv_func_mprotect=no
30085fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030086rm -f conftest.err conftest.$ac_objext \
30087 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030088fi
30089echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30090echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30091if test $ac_cv_func_mprotect = yes; then
30092 :
30093else
30094 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30095echo "$as_me: error: Function mprotect() required but not found" >&2;}
30096 { (exit 1); exit 1; }; }
30097fi
30098
30099
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030100if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030101then
Reid Spencer582a23c2004-12-29 07:07:57 +000030102 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30103echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030104fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030105if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030106then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030107 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30108echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030109fi
John Criswell7a73b802003-06-30 21:59:07 +000030110
30111
Brian Gaekef3b24102003-11-16 18:38:14 +000030112echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30113echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030114if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30116else
30117 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030118if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030119 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030120 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030121 if test $? -eq 0 ; then
30122 llvm_cv_llvmgcc_sanity="yes"
30123 fi
30124 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030125fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030126fi
30127echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30128echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30129
30130if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030131 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030132 LLVMCC1=$llvmcc1path
30133
Reid Spencer502935f2004-12-22 05:56:56 +000030134 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030135 LLVMCC1PLUS=$llvmcc1pluspath
30136
Reid Spencer502935f2004-12-22 05:56:56 +000030137 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30138 LLVMGCCDIR=$llvmgccdir
30139
Brian Gaekef3b24102003-11-16 18:38:14 +000030140fi
30141
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030142SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030143
30144
Reid Spencere9de0912004-08-20 09:03:57 +000030145# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030146# information into substitutions that will end up in Makefile.config.in
30147# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030148eval LLVM_PREFIX="${prefix}";
30149eval LLVM_BINDIR="${prefix}/bin";
30150eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030151eval LLVM_DATADIR="${prefix}/share/llvm";
30152eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30153eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030154eval LLVM_INCLUDEDIR="${prefix}/include";
30155eval LLVM_INFODIR="${prefix}/info";
30156eval LLVM_MANDIR="${prefix}/man";
30157LLVM_CONFIGTIME=`date`
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030169# Place the various directores into the config.h file as #defines so that we
30170# can know about the installation paths within LLVM.
30171
Reid Spencere9de0912004-08-20 09:03:57 +000030172cat >>confdefs.h <<_ACEOF
30173#define LLVM_PREFIX "$LLVM_PREFIX"
30174_ACEOF
30175
30176
30177cat >>confdefs.h <<_ACEOF
30178#define LLVM_BINDIR "$LLVM_BINDIR"
30179_ACEOF
30180
30181
30182cat >>confdefs.h <<_ACEOF
30183#define LLVM_LIBDIR "$LLVM_LIBDIR"
30184_ACEOF
30185
30186
30187cat >>confdefs.h <<_ACEOF
30188#define LLVM_DATADIR "$LLVM_DATADIR"
30189_ACEOF
30190
30191
30192cat >>confdefs.h <<_ACEOF
30193#define LLVM_DATADIR "$LLVM_DOCSDIR"
30194_ACEOF
30195
30196
30197cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030198#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030199_ACEOF
30200
30201
30202cat >>confdefs.h <<_ACEOF
30203#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30204_ACEOF
30205
30206
30207cat >>confdefs.h <<_ACEOF
30208#define LLVM_INFODIR "$LLVM_INFODIR"
30209_ACEOF
30210
30211
30212cat >>confdefs.h <<_ACEOF
30213#define LLVM_MANDIR "$LLVM_MANDIR"
30214_ACEOF
30215
30216
30217cat >>confdefs.h <<_ACEOF
30218#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30219_ACEOF
30220
30221
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030222
30223 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30224
30225
30226 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30227
30228 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30229
30230 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30231
30232 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30233
30234 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30235
30236
30237 ac_config_files="$ac_config_files Makefile.config"
30238
30239
30240 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30241
30242
Reid Spencer1f319422004-11-29 04:56:35 +000030243 ac_config_files="$ac_config_files docs/doxygen.cfg"
30244
30245
Reid Spencerc0682832005-02-24 19:05:19 +000030246 ac_config_commands="$ac_config_commands setup"
30247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030248 ac_config_commands="$ac_config_commands Makefile"
30249
30250
30251 ac_config_commands="$ac_config_commands Makefile.common"
30252
30253
30254 ac_config_commands="$ac_config_commands examples/Makefile"
30255
30256
30257 ac_config_commands="$ac_config_commands lib/Makefile"
30258
30259
30260 ac_config_commands="$ac_config_commands runtime/Makefile"
30261
30262
30263 ac_config_commands="$ac_config_commands test/Makefile"
30264
30265
30266 ac_config_commands="$ac_config_commands test/Makefile.tests"
30267
30268
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030269 ac_config_commands="$ac_config_commands tools/Makefile"
30270
30271
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030272 ac_config_commands="$ac_config_commands utils/Makefile"
30273
30274
30275 ac_config_commands="$ac_config_commands projects/Makefile"
30276
30277
30278
John Criswell7a73b802003-06-30 21:59:07 +000030279cat >confcache <<\_ACEOF
30280# This file is a shell script that caches the results of configure
30281# tests run on this system so they can be shared between configure
30282# scripts and configure runs, see configure's option --config-cache.
30283# It is not useful on other systems. If it contains results you don't
30284# want to keep, you may remove or edit it.
30285#
30286# config.status only pays attention to the cache file if you give it
30287# the --recheck option to rerun configure.
30288#
John Criswell0c38eaf2003-09-10 15:17:25 +000030289# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030290# loading this file, other *unset* `ac_cv_foo' will be assigned the
30291# following values.
30292
30293_ACEOF
30294
30295# The following way of writing the cache mishandles newlines in values,
30296# but we know of no workaround that is simple, portable, and efficient.
30297# So, don't put newlines in cache variables' values.
30298# Ultrix sh set writes to stderr and can't be redirected directly,
30299# and sets the high bit in the cache file unless we assign to the vars.
30300{
30301 (set) 2>&1 |
30302 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30303 *ac_space=\ *)
30304 # `set' does not quote correctly, so add quotes (double-quote
30305 # substitution turns \\\\ into \\, and sed turns \\ into \).
30306 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030307 "s/'/'\\\\''/g;
30308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030309 ;;
30310 *)
30311 # `set' quotes correctly as required by POSIX, so do not add quotes.
30312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030313 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030314 ;;
30315 esac;
30316} |
30317 sed '
30318 t clear
30319 : clear
30320 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30321 t end
30322 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30323 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030324if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030325 if test -w $cache_file; then
30326 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30327 cat confcache >$cache_file
30328 else
30329 echo "not updating unwritable cache $cache_file"
30330 fi
30331fi
30332rm -f confcache
30333
30334test "x$prefix" = xNONE && prefix=$ac_default_prefix
30335# Let make expand exec_prefix.
30336test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30337
30338# VPATH may cause trouble with some makes, so we remove $(srcdir),
30339# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30340# trailing colons and then remove the whole line if VPATH becomes empty
30341# (actually we leave an empty line to preserve line numbers).
30342if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030343 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030344s/:*\$(srcdir):*/:/;
30345s/:*\${srcdir}:*/:/;
30346s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030347s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030348s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030349s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030350}'
30351fi
30352
30353DEFS=-DHAVE_CONFIG_H
30354
John Criswell0c38eaf2003-09-10 15:17:25 +000030355ac_libobjs=
30356ac_ltlibobjs=
30357for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30358 # 1. Remove the extension, and $U if already installed.
30359 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030360 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030361 # 2. Add them.
30362 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30363 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30364done
30365LIBOBJS=$ac_libobjs
30366
30367LTLIBOBJS=$ac_ltlibobjs
30368
30369
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030370if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30371 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30372Usually this means the macro was only invoked conditionally." >&5
30373echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30374Usually this means the macro was only invoked conditionally." >&2;}
30375 { (exit 1); exit 1; }; }
30376fi
30377if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30378 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30379Usually this means the macro was only invoked conditionally." >&5
30380echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30381Usually this means the macro was only invoked conditionally." >&2;}
30382 { (exit 1); exit 1; }; }
30383fi
John Criswell7a73b802003-06-30 21:59:07 +000030384
30385: ${CONFIG_STATUS=./config.status}
30386ac_clean_files_save=$ac_clean_files
30387ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30388{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30389echo "$as_me: creating $CONFIG_STATUS" >&6;}
30390cat >$CONFIG_STATUS <<_ACEOF
30391#! $SHELL
30392# Generated by $as_me.
30393# Run this file to recreate the current configuration.
30394# Compiler output produced by configure, useful for debugging
30395# configure, is in config.log if it exists.
30396
30397debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030398ac_cs_recheck=false
30399ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030400SHELL=\${CONFIG_SHELL-$SHELL}
30401_ACEOF
30402
30403cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030404## --------------------- ##
30405## M4sh Initialization. ##
30406## --------------------- ##
30407
30408# Be Bourne compatible
30409if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30410 emulate sh
30411 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030412 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30413 # is contrary to our usage. Disable this feature.
30414 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030415elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30416 set -o posix
30417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030418DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030419
John Criswell7a73b802003-06-30 21:59:07 +000030420# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030421if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030422 as_unset=unset
30423else
30424 as_unset=false
30425fi
30426
John Criswell0c38eaf2003-09-10 15:17:25 +000030427
30428# Work around bugs in pre-3.0 UWIN ksh.
30429$as_unset ENV MAIL MAILPATH
30430PS1='$ '
30431PS2='> '
30432PS4='+ '
30433
30434# NLS nuisances.
30435for as_var in \
30436 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30437 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30438 LC_TELEPHONE LC_TIME
30439do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030440 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030441 eval $as_var=C; export $as_var
30442 else
30443 $as_unset $as_var
30444 fi
30445done
30446
30447# Required to use basename.
30448if expr a : '\(a\)' >/dev/null 2>&1; then
30449 as_expr=expr
30450else
30451 as_expr=false
30452fi
30453
30454if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30455 as_basename=basename
30456else
30457 as_basename=false
30458fi
John Criswell7a73b802003-06-30 21:59:07 +000030459
30460
30461# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030462as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30464 X"$0" : 'X\(//\)$' \| \
30465 X"$0" : 'X\(/\)$' \| \
30466 . : '\(.\)' 2>/dev/null ||
30467echo X/"$0" |
30468 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30469 /^X\/\(\/\/\)$/{ s//\1/; q; }
30470 /^X\/\(\/\).*/{ s//\1/; q; }
30471 s/.*/./; q'`
30472
John Criswell0c38eaf2003-09-10 15:17:25 +000030473
John Criswell7a73b802003-06-30 21:59:07 +000030474# PATH needs CR, and LINENO needs CR and PATH.
30475# Avoid depending upon Character Ranges.
30476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30479as_cr_digits='0123456789'
30480as_cr_alnum=$as_cr_Letters$as_cr_digits
30481
30482# The user is always right.
30483if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030484 echo "#! /bin/sh" >conf$$.sh
30485 echo "exit 0" >>conf$$.sh
30486 chmod +x conf$$.sh
30487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030488 PATH_SEPARATOR=';'
30489 else
30490 PATH_SEPARATOR=:
30491 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030492 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030493fi
30494
30495
30496 as_lineno_1=$LINENO
30497 as_lineno_2=$LINENO
30498 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30499 test "x$as_lineno_1" != "x$as_lineno_2" &&
30500 test "x$as_lineno_3" = "x$as_lineno_2" || {
30501 # Find who we are. Look in the path if we contain no path at all
30502 # relative or not.
30503 case $0 in
30504 *[\\/]* ) as_myself=$0 ;;
30505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30506for as_dir in $PATH
30507do
30508 IFS=$as_save_IFS
30509 test -z "$as_dir" && as_dir=.
30510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30511done
30512
30513 ;;
30514 esac
30515 # We did not find ourselves, most probably we were run as `sh COMMAND'
30516 # in which case we are not to be found in the path.
30517 if test "x$as_myself" = x; then
30518 as_myself=$0
30519 fi
30520 if test ! -f "$as_myself"; then
30521 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30522echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30523 { (exit 1); exit 1; }; }
30524 fi
30525 case $CONFIG_SHELL in
30526 '')
30527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30528for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30529do
30530 IFS=$as_save_IFS
30531 test -z "$as_dir" && as_dir=.
30532 for as_base in sh bash ksh sh5; do
30533 case $as_dir in
30534 /*)
30535 if ("$as_dir/$as_base" -c '
30536 as_lineno_1=$LINENO
30537 as_lineno_2=$LINENO
30538 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30539 test "x$as_lineno_1" != "x$as_lineno_2" &&
30540 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030541 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30542 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030543 CONFIG_SHELL=$as_dir/$as_base
30544 export CONFIG_SHELL
30545 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30546 fi;;
30547 esac
30548 done
30549done
30550;;
30551 esac
30552
30553 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30554 # uniformly replaced by the line number. The first 'sed' inserts a
30555 # line-number line before each line; the second 'sed' does the real
30556 # work. The second script uses 'N' to pair each line-number line
30557 # with the numbered line, and appends trailing '-' during
30558 # substitution so that $LINENO is not a special case at line end.
30559 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30560 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30561 sed '=' <$as_myself |
30562 sed '
30563 N
30564 s,$,-,
30565 : loop
30566 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30567 t loop
30568 s,-$,,
30569 s,^['$as_cr_digits']*\n,,
30570 ' >$as_me.lineno &&
30571 chmod +x $as_me.lineno ||
30572 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30573echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30574 { (exit 1); exit 1; }; }
30575
30576 # Don't try to exec as it changes $[0], causing all sort of problems
30577 # (the dirname of $[0] is not the place where we might find the
30578 # original and so on. Autoconf is especially sensible to this).
30579 . ./$as_me.lineno
30580 # Exit status is that of the last command.
30581 exit
30582}
30583
30584
30585case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30586 *c*,-n*) ECHO_N= ECHO_C='
30587' ECHO_T=' ' ;;
30588 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30589 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30590esac
30591
30592if expr a : '\(a\)' >/dev/null 2>&1; then
30593 as_expr=expr
30594else
30595 as_expr=false
30596fi
30597
30598rm -f conf$$ conf$$.exe conf$$.file
30599echo >conf$$.file
30600if ln -s conf$$.file conf$$ 2>/dev/null; then
30601 # We could just check for DJGPP; but this test a) works b) is more generic
30602 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30603 if test -f conf$$.exe; then
30604 # Don't use ln at all; we don't have any links
30605 as_ln_s='cp -p'
30606 else
30607 as_ln_s='ln -s'
30608 fi
30609elif ln conf$$.file conf$$ 2>/dev/null; then
30610 as_ln_s=ln
30611else
30612 as_ln_s='cp -p'
30613fi
30614rm -f conf$$ conf$$.exe conf$$.file
30615
John Criswell0c38eaf2003-09-10 15:17:25 +000030616if mkdir -p . 2>/dev/null; then
30617 as_mkdir_p=:
30618else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030619 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030620 as_mkdir_p=false
30621fi
30622
John Criswell7a73b802003-06-30 21:59:07 +000030623as_executable_p="test -f"
30624
30625# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030626as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030627
30628# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030629as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030630
30631
30632# IFS
30633# We need space, tab and new line, in precisely that order.
30634as_nl='
30635'
30636IFS=" $as_nl"
30637
30638# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030639$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030640
30641exec 6>&1
30642
30643# Open the log real soon, to keep \$[0] and so on meaningful, and to
30644# report actual input values of CONFIG_FILES etc. instead of their
30645# values after options handling. Logging --version etc. is OK.
30646exec 5>>config.log
30647{
30648 echo
30649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30650## Running $as_me. ##
30651_ASBOX
30652} >&5
30653cat >&5 <<_CSEOF
30654
Reid Spencer78ba11d2005-02-16 16:21:00 +000030655This file was extended by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030656generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030657
30658 CONFIG_FILES = $CONFIG_FILES
30659 CONFIG_HEADERS = $CONFIG_HEADERS
30660 CONFIG_LINKS = $CONFIG_LINKS
30661 CONFIG_COMMANDS = $CONFIG_COMMANDS
30662 $ $0 $@
30663
30664_CSEOF
30665echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30666echo >&5
30667_ACEOF
30668
30669# Files that config.status was made for.
30670if test -n "$ac_config_files"; then
30671 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30672fi
30673
30674if test -n "$ac_config_headers"; then
30675 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30676fi
30677
30678if test -n "$ac_config_links"; then
30679 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30680fi
30681
30682if test -n "$ac_config_commands"; then
30683 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30684fi
30685
30686cat >>$CONFIG_STATUS <<\_ACEOF
30687
30688ac_cs_usage="\
30689\`$as_me' instantiates files from templates according to the
30690current configuration.
30691
30692Usage: $0 [OPTIONS] [FILE]...
30693
30694 -h, --help print this help, then exit
30695 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030696 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030697 -d, --debug don't remove temporary files
30698 --recheck update $as_me by reconfiguring in the same conditions
30699 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030700 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030701 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030702 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030703
30704Configuration files:
30705$config_files
30706
30707Configuration headers:
30708$config_headers
30709
John Criswellc764fbc2003-09-06 15:17:13 +000030710Configuration commands:
30711$config_commands
30712
John Criswell7a73b802003-06-30 21:59:07 +000030713Report bugs to <bug-autoconf@gnu.org>."
30714_ACEOF
30715
30716cat >>$CONFIG_STATUS <<_ACEOF
30717ac_cs_version="\\
Reid Spencer78ba11d2005-02-16 16:21:00 +000030718llvm config.status 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030719configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030720 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30721
Reid Spencer2706f8c2004-09-19 23:53:36 +000030722Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030723This config.status script is free software; the Free Software Foundation
30724gives unlimited permission to copy, distribute and modify it."
30725srcdir=$srcdir
30726INSTALL="$INSTALL"
30727_ACEOF
30728
30729cat >>$CONFIG_STATUS <<\_ACEOF
30730# If no file are specified by the user, then we need to provide default
30731# value. By we need to know if files were specified by the user.
30732ac_need_defaults=:
30733while test $# != 0
30734do
30735 case $1 in
30736 --*=*)
30737 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30738 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030739 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030740 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030741 -*)
30742 ac_option=$1
30743 ac_optarg=$2
30744 ac_shift=shift
30745 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030746 *) # This is not an option, so the user has probably given explicit
30747 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030748 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030749 ac_need_defaults=false;;
30750 esac
30751
John Criswell0c38eaf2003-09-10 15:17:25 +000030752 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030753 # Handling of the options.
30754_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030755cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30757 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030758 --version | --vers* | -V )
30759 echo "$ac_cs_version"; exit 0 ;;
30760 --he | --h)
30761 # Conflict between --help and --header
30762 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30763Try \`$0 --help' for more information." >&5
30764echo "$as_me: error: ambiguous option: $1
30765Try \`$0 --help' for more information." >&2;}
30766 { (exit 1); exit 1; }; };;
30767 --help | --hel | -h )
30768 echo "$ac_cs_usage"; exit 0 ;;
30769 --debug | --d* | -d )
30770 debug=: ;;
30771 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030772 $ac_shift
30773 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030774 ac_need_defaults=false;;
30775 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030776 $ac_shift
30777 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030778 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30781 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030782
30783 # This is an error.
30784 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30785Try \`$0 --help' for more information." >&5
30786echo "$as_me: error: unrecognized option: $1
30787Try \`$0 --help' for more information." >&2;}
30788 { (exit 1); exit 1; }; } ;;
30789
30790 *) ac_config_targets="$ac_config_targets $1" ;;
30791
30792 esac
30793 shift
30794done
30795
John Criswell0c38eaf2003-09-10 15:17:25 +000030796ac_configure_extra_args=
30797
30798if $ac_cs_silent; then
30799 exec 6>/dev/null
30800 ac_configure_extra_args="$ac_configure_extra_args --silent"
30801fi
30802
30803_ACEOF
30804cat >>$CONFIG_STATUS <<_ACEOF
30805if \$ac_cs_recheck; then
30806 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30807 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30808fi
30809
John Criswell7a73b802003-06-30 21:59:07 +000030810_ACEOF
30811
John Criswellc764fbc2003-09-06 15:17:13 +000030812cat >>$CONFIG_STATUS <<_ACEOF
30813#
30814# INIT-COMMANDS section.
30815#
John Criswell7a73b802003-06-30 21:59:07 +000030816
Reid Spencerc0682832005-02-24 19:05:19 +000030817llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000030818
30819_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030820
30821
30822
30823cat >>$CONFIG_STATUS <<\_ACEOF
30824for ac_config_target in $ac_config_targets
30825do
30826 case "$ac_config_target" in
30827 # Handling of arguments.
30828 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030829 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30830 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30831 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30832 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030833 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000030834 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030835 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30836 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030837 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030838 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030839 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030840 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30841 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030842 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030843 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030844 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030845 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030846 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030847 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30848 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030849 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30850 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30852echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30853 { (exit 1); exit 1; }; };;
30854 esac
30855done
30856
30857# If the user did not use the arguments to specify the items to instantiate,
30858# then the envvar interface is used. Set only those that are not.
30859# We use the long form for the default assignment because of an extremely
30860# bizarre bug on SunOS 4.1.3.
30861if $ac_need_defaults; then
30862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030865fi
30866
John Criswell0c38eaf2003-09-10 15:17:25 +000030867# Have a temporary directory for convenience. Make it in the build tree
30868# simply because there is no reason to put it here, and in addition,
30869# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030870# Create a temporary directory, and hook for its removal unless debugging.
30871$debug ||
30872{
30873 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30874 trap '{ (exit 1); exit 1; }' 1 2 13 15
30875}
30876
30877# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030878
John Criswell7a73b802003-06-30 21:59:07 +000030879{
John Criswell0c38eaf2003-09-10 15:17:25 +000030880 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030881 test -n "$tmp" && test -d "$tmp"
30882} ||
30883{
John Criswell0c38eaf2003-09-10 15:17:25 +000030884 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030885 (umask 077 && mkdir $tmp)
30886} ||
30887{
John Criswell0c38eaf2003-09-10 15:17:25 +000030888 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030889 { (exit 1); exit 1; }
30890}
30891
30892_ACEOF
30893
30894cat >>$CONFIG_STATUS <<_ACEOF
30895
30896#
30897# CONFIG_FILES section.
30898#
30899
30900# No need to generate the scripts if there are no CONFIG_FILES.
30901# This happens for instance when ./config.status config.h
30902if test -n "\$CONFIG_FILES"; then
30903 # Protect against being on the right side of a sed subst in config.status.
30904 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30905 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30906s,@SHELL@,$SHELL,;t t
30907s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30908s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30909s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30910s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30911s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30912s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30913s,@exec_prefix@,$exec_prefix,;t t
30914s,@prefix@,$prefix,;t t
30915s,@program_transform_name@,$program_transform_name,;t t
30916s,@bindir@,$bindir,;t t
30917s,@sbindir@,$sbindir,;t t
30918s,@libexecdir@,$libexecdir,;t t
30919s,@datadir@,$datadir,;t t
30920s,@sysconfdir@,$sysconfdir,;t t
30921s,@sharedstatedir@,$sharedstatedir,;t t
30922s,@localstatedir@,$localstatedir,;t t
30923s,@libdir@,$libdir,;t t
30924s,@includedir@,$includedir,;t t
30925s,@oldincludedir@,$oldincludedir,;t t
30926s,@infodir@,$infodir,;t t
30927s,@mandir@,$mandir,;t t
30928s,@build_alias@,$build_alias,;t t
30929s,@host_alias@,$host_alias,;t t
30930s,@target_alias@,$target_alias,;t t
30931s,@DEFS@,$DEFS,;t t
30932s,@ECHO_C@,$ECHO_C,;t t
30933s,@ECHO_N@,$ECHO_N,;t t
30934s,@ECHO_T@,$ECHO_T,;t t
30935s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030936s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030937s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030938s,@build@,$build,;t t
30939s,@build_cpu@,$build_cpu,;t t
30940s,@build_vendor@,$build_vendor,;t t
30941s,@build_os@,$build_os,;t t
30942s,@host@,$host,;t t
30943s,@host_cpu@,$host_cpu,;t t
30944s,@host_vendor@,$host_vendor,;t t
30945s,@host_os@,$host_os,;t t
30946s,@target@,$target,;t t
30947s,@target_cpu@,$target_cpu,;t t
30948s,@target_vendor@,$target_vendor,;t t
30949s,@target_os@,$target_os,;t t
30950s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000030951s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30952s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000030953s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030954s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030955s,@CC@,$CC,;t t
30956s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030957s,@LDFLAGS@,$LDFLAGS,;t t
30958s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030959s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030960s,@EXEEXT@,$EXEEXT,;t t
30961s,@OBJEXT@,$OBJEXT,;t t
30962s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30963s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030964s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030965s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030966s,@CXX@,$CXX,;t t
30967s,@CXXFLAGS@,$CXXFLAGS,;t t
30968s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030969s,@LEX@,$LEX,;t t
30970s,@LEXLIB@,$LEXLIB,;t t
30971s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030972s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030973s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030974s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030975s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030976s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030977s,@CMP@,$CMP,;t t
30978s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030979s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030980s,@FIND@,$FIND,;t t
30981s,@GREP@,$GREP,;t t
30982s,@MKDIR@,$MKDIR,;t t
30983s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030984s,@RANLIB@,$RANLIB,;t t
30985s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030986s,@RM@,$RM,;t t
30987s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030988s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030989s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30990s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30991s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030992s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030993s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030994s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030995s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030996s,@GROFF@,$GROFF,;t t
30997s,@GZIP@,$GZIP,;t t
30998s,@POD2HTML@,$POD2HTML,;t t
30999s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031000s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031001s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031002s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031003s,@EGREP@,$EGREP,;t t
31004s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31005s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31006s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31007s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31008s,@LIBADD_DL@,$LIBADD_DL,;t t
31009s,@ECHO@,$ECHO,;t t
31010s,@AR@,$AR,;t t
31011s,@ac_ct_AR@,$ac_ct_AR,;t t
31012s,@STRIP@,$STRIP,;t t
31013s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31014s,@CXXCPP@,$CXXCPP,;t t
31015s,@F77@,$F77,;t t
31016s,@FFLAGS@,$FFLAGS,;t t
31017s,@ac_ct_F77@,$ac_ct_F77,;t t
31018s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031019s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031020s,@LLVMGCC@,$LLVMGCC,;t t
31021s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031022s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031023s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031024s,@LLVMCC1@,$LLVMCC1,;t t
31025s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031026s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031027s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031028s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31029s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31030s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31031s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31032s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31033s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31034s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31035s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31036s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31037s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031038s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031039s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031040CEOF
31041
31042_ACEOF
31043
31044 cat >>$CONFIG_STATUS <<\_ACEOF
31045 # Split the substitutions into bite-sized pieces for seds with
31046 # small command number limits, like on Digital OSF/1 and HP-UX.
31047 ac_max_sed_lines=48
31048 ac_sed_frag=1 # Number of current file.
31049 ac_beg=1 # First line for current file.
31050 ac_end=$ac_max_sed_lines # Line after last line for current file.
31051 ac_more_lines=:
31052 ac_sed_cmds=
31053 while $ac_more_lines; do
31054 if test $ac_beg -gt 1; then
31055 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31056 else
31057 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31058 fi
31059 if test ! -s $tmp/subs.frag; then
31060 ac_more_lines=false
31061 else
31062 # The purpose of the label and of the branching condition is to
31063 # speed up the sed processing (if there are no `@' at all, there
31064 # is no need to browse any of the substitutions).
31065 # These are the two extra sed commands mentioned above.
31066 (echo ':t
31067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31068 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031069 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031070 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031071 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031072 fi
31073 ac_sed_frag=`expr $ac_sed_frag + 1`
31074 ac_beg=$ac_end
31075 ac_end=`expr $ac_end + $ac_max_sed_lines`
31076 fi
31077 done
31078 if test -z "$ac_sed_cmds"; then
31079 ac_sed_cmds=cat
31080 fi
31081fi # test -n "$CONFIG_FILES"
31082
31083_ACEOF
31084cat >>$CONFIG_STATUS <<\_ACEOF
31085for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31087 case $ac_file in
31088 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031089 cat >$tmp/stdin
31090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031094 * ) ac_file_in=$ac_file.in ;;
31095 esac
31096
31097 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031100 X"$ac_file" : 'X\(//\)[^/]' \| \
31101 X"$ac_file" : 'X\(//\)$' \| \
31102 X"$ac_file" : 'X\(/\)' \| \
31103 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031104echo X"$ac_file" |
31105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31107 /^X\(\/\/\)$/{ s//\1/; q; }
31108 /^X\(\/\).*/{ s//\1/; q; }
31109 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031110 { if $as_mkdir_p; then
31111 mkdir -p "$ac_dir"
31112 else
31113 as_dir="$ac_dir"
31114 as_dirs=
31115 while test ! -d "$as_dir"; do
31116 as_dirs="$as_dir $as_dirs"
31117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031119 X"$as_dir" : 'X\(//\)[^/]' \| \
31120 X"$as_dir" : 'X\(//\)$' \| \
31121 X"$as_dir" : 'X\(/\)' \| \
31122 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031123echo X"$as_dir" |
31124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31126 /^X\(\/\/\)$/{ s//\1/; q; }
31127 /^X\(\/\).*/{ s//\1/; q; }
31128 s/.*/./; q'`
31129 done
31130 test ! -n "$as_dirs" || mkdir $as_dirs
31131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31133 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031134
31135 ac_builddir=.
31136
31137if test "$ac_dir" != .; then
31138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31139 # A "../" for each directory in $ac_dir_suffix.
31140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31141else
31142 ac_dir_suffix= ac_top_builddir=
31143fi
31144
31145case $srcdir in
31146 .) # No --srcdir option. We are building in place.
31147 ac_srcdir=.
31148 if test -z "$ac_top_builddir"; then
31149 ac_top_srcdir=.
31150 else
31151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31152 fi ;;
31153 [\\/]* | ?:[\\/]* ) # Absolute path.
31154 ac_srcdir=$srcdir$ac_dir_suffix;
31155 ac_top_srcdir=$srcdir ;;
31156 *) # Relative path.
31157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31159esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031160
31161# Do not use `cd foo && pwd` to compute absolute paths, because
31162# the directories may not exist.
31163case `pwd` in
31164.) ac_abs_builddir="$ac_dir";;
31165*)
31166 case "$ac_dir" in
31167 .) ac_abs_builddir=`pwd`;;
31168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31170 esac;;
31171esac
31172case $ac_abs_builddir in
31173.) ac_abs_top_builddir=${ac_top_builddir}.;;
31174*)
31175 case ${ac_top_builddir}. in
31176 .) ac_abs_top_builddir=$ac_abs_builddir;;
31177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31179 esac;;
31180esac
31181case $ac_abs_builddir in
31182.) ac_abs_srcdir=$ac_srcdir;;
31183*)
31184 case $ac_srcdir in
31185 .) ac_abs_srcdir=$ac_abs_builddir;;
31186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31188 esac;;
31189esac
31190case $ac_abs_builddir in
31191.) ac_abs_top_srcdir=$ac_top_srcdir;;
31192*)
31193 case $ac_top_srcdir in
31194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31197 esac;;
31198esac
John Criswell7a73b802003-06-30 21:59:07 +000031199
31200
31201 case $INSTALL in
31202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31203 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31204 esac
31205
31206 if test x"$ac_file" != x-; then
31207 { echo "$as_me:$LINENO: creating $ac_file" >&5
31208echo "$as_me: creating $ac_file" >&6;}
31209 rm -f "$ac_file"
31210 fi
31211 # Let's still pretend it is `configure' which instantiates (i.e., don't
31212 # use $as_me), people would be surprised to read:
31213 # /* config.h. Generated by config.status. */
31214 if test x"$ac_file" = x-; then
31215 configure_input=
31216 else
31217 configure_input="$ac_file. "
31218 fi
31219 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031220 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031221
31222 # First look for the input files in the build tree, otherwise in the
31223 # src tree.
31224 ac_file_inputs=`IFS=:
31225 for f in $ac_file_in; do
31226 case $f in
31227 -) echo $tmp/stdin ;;
31228 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031229 # Absolute (can't be DOS-style, as IFS=:)
31230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031231echo "$as_me: error: cannot find input file: $f" >&2;}
31232 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031233 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031234 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031235 if test -f "$f"; then
31236 # Build tree
31237 echo "$f"
31238 elif test -f "$srcdir/$f"; then
31239 # Source tree
31240 echo "$srcdir/$f"
31241 else
31242 # /dev/null tree
31243 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031244echo "$as_me: error: cannot find input file: $f" >&2;}
31245 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031246 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031247 esac
31248 done` || { (exit 1); exit 1; }
31249_ACEOF
31250cat >>$CONFIG_STATUS <<_ACEOF
31251 sed "$ac_vpsub
31252$extrasub
31253_ACEOF
31254cat >>$CONFIG_STATUS <<\_ACEOF
31255:t
31256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31257s,@configure_input@,$configure_input,;t t
31258s,@srcdir@,$ac_srcdir,;t t
31259s,@abs_srcdir@,$ac_abs_srcdir,;t t
31260s,@top_srcdir@,$ac_top_srcdir,;t t
31261s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31262s,@builddir@,$ac_builddir,;t t
31263s,@abs_builddir@,$ac_abs_builddir,;t t
31264s,@top_builddir@,$ac_top_builddir,;t t
31265s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31266s,@INSTALL@,$ac_INSTALL,;t t
31267" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31268 rm -f $tmp/stdin
31269 if test x"$ac_file" != x-; then
31270 mv $tmp/out $ac_file
31271 else
31272 cat $tmp/out
31273 rm -f $tmp/out
31274 fi
31275
31276done
31277_ACEOF
31278cat >>$CONFIG_STATUS <<\_ACEOF
31279
31280#
31281# CONFIG_HEADER section.
31282#
31283
31284# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31285# NAME is the cpp macro being defined and VALUE is the value it is being given.
31286#
31287# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031288ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31289ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031290ac_dC=' '
31291ac_dD=',;t'
31292# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031293ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031294ac_uB='$,\1#\2define\3'
31295ac_uC=' '
31296ac_uD=',;t'
31297
31298for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31300 case $ac_file in
31301 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031302 cat >$tmp/stdin
31303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031307 * ) ac_file_in=$ac_file.in ;;
31308 esac
31309
31310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31311echo "$as_me: creating $ac_file" >&6;}
31312
31313 # First look for the input files in the build tree, otherwise in the
31314 # src tree.
31315 ac_file_inputs=`IFS=:
31316 for f in $ac_file_in; do
31317 case $f in
31318 -) echo $tmp/stdin ;;
31319 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031320 # Absolute (can't be DOS-style, as IFS=:)
31321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031322echo "$as_me: error: cannot find input file: $f" >&2;}
31323 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031324 # Do quote $f, to prevent DOS paths from being IFS'd.
31325 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031326 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031327 if test -f "$f"; then
31328 # Build tree
31329 echo "$f"
31330 elif test -f "$srcdir/$f"; then
31331 # Source tree
31332 echo "$srcdir/$f"
31333 else
31334 # /dev/null tree
31335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031336echo "$as_me: error: cannot find input file: $f" >&2;}
31337 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031338 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031339 esac
31340 done` || { (exit 1); exit 1; }
31341 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031343
31344_ACEOF
31345
31346# Transform confdefs.h into two sed scripts, `conftest.defines' and
31347# `conftest.undefs', that substitutes the proper values into
31348# config.h.in to produce config.h. The first handles `#define'
31349# templates, and the second `#undef' templates.
31350# And first: Protect against being on the right side of a sed subst in
31351# config.status. Protect against being in an unquoted here document
31352# in config.status.
31353rm -f conftest.defines conftest.undefs
31354# Using a here document instead of a string reduces the quoting nightmare.
31355# Putting comments in sed scripts is not portable.
31356#
31357# `end' is used to avoid that the second main sed command (meant for
31358# 0-ary CPP macros) applies to n-ary macro definitions.
31359# See the Autoconf documentation for `clear'.
31360cat >confdef2sed.sed <<\_ACEOF
31361s/[\\&,]/\\&/g
31362s,[\\$`],\\&,g
31363t clear
31364: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031365s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031366t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031367s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031368: end
31369_ACEOF
31370# If some macros were called several times there might be several times
31371# the same #defines, which is useless. Nevertheless, we may not want to
31372# sort them, since we want the *last* AC-DEFINE to be honored.
31373uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31374sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31375rm -f confdef2sed.sed
31376
31377# This sed command replaces #undef with comments. This is necessary, for
31378# example, in the case of _POSIX_SOURCE, which is predefined and required
31379# on some systems where configure will not decide to define it.
31380cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031381s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031382_ACEOF
31383
31384# Break up conftest.defines because some shells have a limit on the size
31385# of here documents, and old seds have small limits too (100 cmds).
31386echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031387echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031388echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31389echo ' :' >>$CONFIG_STATUS
31390rm -f conftest.tail
31391while grep . conftest.defines >/dev/null
31392do
31393 # Write a limited-size here document to $tmp/defines.sed.
31394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31395 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031397 # Work around the forget-to-reset-the-flag bug.
31398 echo 't clr' >>$CONFIG_STATUS
31399 echo ': clr' >>$CONFIG_STATUS
31400 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31401 echo 'CEOF
31402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31403 rm -f $tmp/in
31404 mv $tmp/out $tmp/in
31405' >>$CONFIG_STATUS
31406 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31407 rm -f conftest.defines
31408 mv conftest.tail conftest.defines
31409done
31410rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031411echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031412echo >>$CONFIG_STATUS
31413
31414# Break up conftest.undefs because some shells have a limit on the size
31415# of here documents, and old seds have small limits too (100 cmds).
31416echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31417rm -f conftest.tail
31418while grep . conftest.undefs >/dev/null
31419do
31420 # Write a limited-size here document to $tmp/undefs.sed.
31421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31422 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031424 # Work around the forget-to-reset-the-flag bug.
31425 echo 't clr' >>$CONFIG_STATUS
31426 echo ': clr' >>$CONFIG_STATUS
31427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31428 echo 'CEOF
31429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31430 rm -f $tmp/in
31431 mv $tmp/out $tmp/in
31432' >>$CONFIG_STATUS
31433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31434 rm -f conftest.undefs
31435 mv conftest.tail conftest.undefs
31436done
31437rm -f conftest.undefs
31438
31439cat >>$CONFIG_STATUS <<\_ACEOF
31440 # Let's still pretend it is `configure' which instantiates (i.e., don't
31441 # use $as_me), people would be surprised to read:
31442 # /* config.h. Generated by config.status. */
31443 if test x"$ac_file" = x-; then
31444 echo "/* Generated by configure. */" >$tmp/config.h
31445 else
31446 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31447 fi
31448 cat $tmp/in >>$tmp/config.h
31449 rm -f $tmp/in
31450 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031451 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31453echo "$as_me: $ac_file is unchanged" >&6;}
31454 else
31455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031457 X"$ac_file" : 'X\(//\)[^/]' \| \
31458 X"$ac_file" : 'X\(//\)$' \| \
31459 X"$ac_file" : 'X\(/\)' \| \
31460 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031461echo X"$ac_file" |
31462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31464 /^X\(\/\/\)$/{ s//\1/; q; }
31465 /^X\(\/\).*/{ s//\1/; q; }
31466 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031467 { if $as_mkdir_p; then
31468 mkdir -p "$ac_dir"
31469 else
31470 as_dir="$ac_dir"
31471 as_dirs=
31472 while test ! -d "$as_dir"; do
31473 as_dirs="$as_dir $as_dirs"
31474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031476 X"$as_dir" : 'X\(//\)[^/]' \| \
31477 X"$as_dir" : 'X\(//\)$' \| \
31478 X"$as_dir" : 'X\(/\)' \| \
31479 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031480echo X"$as_dir" |
31481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31483 /^X\(\/\/\)$/{ s//\1/; q; }
31484 /^X\(\/\).*/{ s//\1/; q; }
31485 s/.*/./; q'`
31486 done
31487 test ! -n "$as_dirs" || mkdir $as_dirs
31488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31489echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31490 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031491
31492 rm -f $ac_file
31493 mv $tmp/config.h $ac_file
31494 fi
31495 else
31496 cat $tmp/config.h
31497 rm -f $tmp/config.h
31498 fi
31499done
31500_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031501cat >>$CONFIG_STATUS <<\_ACEOF
31502
31503#
31504# CONFIG_COMMANDS section.
31505#
31506for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31507 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31508 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31509 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31510$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031511 X"$ac_dest" : 'X\(//\)[^/]' \| \
31512 X"$ac_dest" : 'X\(//\)$' \| \
31513 X"$ac_dest" : 'X\(/\)' \| \
31514 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031515echo X"$ac_dest" |
31516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31518 /^X\(\/\/\)$/{ s//\1/; q; }
31519 /^X\(\/\).*/{ s//\1/; q; }
31520 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031521 { if $as_mkdir_p; then
31522 mkdir -p "$ac_dir"
31523 else
31524 as_dir="$ac_dir"
31525 as_dirs=
31526 while test ! -d "$as_dir"; do
31527 as_dirs="$as_dir $as_dirs"
31528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31529$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31530 X"$as_dir" : 'X\(//\)[^/]' \| \
31531 X"$as_dir" : 'X\(//\)$' \| \
31532 X"$as_dir" : 'X\(/\)' \| \
31533 . : '\(.\)' 2>/dev/null ||
31534echo X"$as_dir" |
31535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31537 /^X\(\/\/\)$/{ s//\1/; q; }
31538 /^X\(\/\).*/{ s//\1/; q; }
31539 s/.*/./; q'`
31540 done
31541 test ! -n "$as_dirs" || mkdir $as_dirs
31542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31543echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31544 { (exit 1); exit 1; }; }; }
31545
John Criswellc764fbc2003-09-06 15:17:13 +000031546 ac_builddir=.
31547
31548if test "$ac_dir" != .; then
31549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31550 # A "../" for each directory in $ac_dir_suffix.
31551 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31552else
31553 ac_dir_suffix= ac_top_builddir=
31554fi
31555
31556case $srcdir in
31557 .) # No --srcdir option. We are building in place.
31558 ac_srcdir=.
31559 if test -z "$ac_top_builddir"; then
31560 ac_top_srcdir=.
31561 else
31562 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31563 fi ;;
31564 [\\/]* | ?:[\\/]* ) # Absolute path.
31565 ac_srcdir=$srcdir$ac_dir_suffix;
31566 ac_top_srcdir=$srcdir ;;
31567 *) # Relative path.
31568 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31569 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31570esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031571
31572# Do not use `cd foo && pwd` to compute absolute paths, because
31573# the directories may not exist.
31574case `pwd` in
31575.) ac_abs_builddir="$ac_dir";;
31576*)
31577 case "$ac_dir" in
31578 .) ac_abs_builddir=`pwd`;;
31579 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31580 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31581 esac;;
31582esac
31583case $ac_abs_builddir in
31584.) ac_abs_top_builddir=${ac_top_builddir}.;;
31585*)
31586 case ${ac_top_builddir}. in
31587 .) ac_abs_top_builddir=$ac_abs_builddir;;
31588 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31589 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31590 esac;;
31591esac
31592case $ac_abs_builddir in
31593.) ac_abs_srcdir=$ac_srcdir;;
31594*)
31595 case $ac_srcdir in
31596 .) ac_abs_srcdir=$ac_abs_builddir;;
31597 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31598 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31599 esac;;
31600esac
31601case $ac_abs_builddir in
31602.) ac_abs_top_srcdir=$ac_top_srcdir;;
31603*)
31604 case $ac_top_srcdir in
31605 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31606 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31607 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31608 esac;;
31609esac
John Criswellc764fbc2003-09-06 15:17:13 +000031610
31611
31612 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31613echo "$as_me: executing $ac_dest commands" >&6;}
31614 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031615 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31617 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31619 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31621 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31623 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31624 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31625 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31626 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31627 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31628 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31629 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31630 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31631 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31632 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31633 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31634 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031635 esac
31636done
31637_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031638
31639cat >>$CONFIG_STATUS <<\_ACEOF
31640
31641{ (exit 0); exit 0; }
31642_ACEOF
31643chmod +x $CONFIG_STATUS
31644ac_clean_files=$ac_clean_files_save
31645
31646
31647# configure is writing to config.log, and then calls config.status.
31648# config.status does its own redirection, appending to config.log.
31649# Unfortunately, on DOS this fails, as config.log is still kept open
31650# by configure, so config.status won't be able to write to it; its
31651# output is simply discarded. So we exec the FD to /dev/null,
31652# effectively closing config.log, so it can be properly (re)opened and
31653# appended to by config.status. When coming back to configure, we
31654# need to make the FD available again.
31655if test "$no_create" != yes; then
31656 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031657 ac_config_status_args=
31658 test "$silent" = yes &&
31659 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031660 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031662 exec 5>>config.log
31663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31664 # would make configure fail if this is the last instruction.
31665 $ac_cs_success || { (exit 1); exit 1; }
31666fi
31667
John Criswell12399a12003-09-30 15:55:44 +000031668#
31669# CONFIG_SUBDIRS section.
31670#
31671if test "$no_recursion" != yes; then
31672
31673 # Remove --cache-file and --srcdir arguments so they do not pile up.
31674 ac_sub_configure_args=
31675 ac_prev=
31676 for ac_arg in $ac_configure_args; do
31677 if test -n "$ac_prev"; then
31678 ac_prev=
31679 continue
31680 fi
31681 case $ac_arg in
31682 -cache-file | --cache-file | --cache-fil | --cache-fi \
31683 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31684 ac_prev=cache_file ;;
31685 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31686 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31687 | --c=*)
31688 ;;
31689 --config-cache | -C)
31690 ;;
31691 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31692 ac_prev=srcdir ;;
31693 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31694 ;;
31695 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31696 ac_prev=prefix ;;
31697 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31698 ;;
31699 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31700 esac
31701 done
31702
31703 # Always prepend --prefix to ensure using the same prefix
31704 # in subdir configurations.
31705 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31706
31707 ac_popdir=`pwd`
31708 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31709
31710 # Do not complain, so a configure script can configure whichever
31711 # parts of a large source tree are present.
31712 test -d $srcdir/$ac_dir || continue
31713
31714 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31715echo "$as_me: configuring in $ac_dir" >&6;}
31716 { if $as_mkdir_p; then
31717 mkdir -p "$ac_dir"
31718 else
31719 as_dir="$ac_dir"
31720 as_dirs=
31721 while test ! -d "$as_dir"; do
31722 as_dirs="$as_dir $as_dirs"
31723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031725 X"$as_dir" : 'X\(//\)[^/]' \| \
31726 X"$as_dir" : 'X\(//\)$' \| \
31727 X"$as_dir" : 'X\(/\)' \| \
31728 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031729echo X"$as_dir" |
31730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31732 /^X\(\/\/\)$/{ s//\1/; q; }
31733 /^X\(\/\).*/{ s//\1/; q; }
31734 s/.*/./; q'`
31735 done
31736 test ! -n "$as_dirs" || mkdir $as_dirs
31737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31739 { (exit 1); exit 1; }; }; }
31740
31741 ac_builddir=.
31742
31743if test "$ac_dir" != .; then
31744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31745 # A "../" for each directory in $ac_dir_suffix.
31746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31747else
31748 ac_dir_suffix= ac_top_builddir=
31749fi
31750
31751case $srcdir in
31752 .) # No --srcdir option. We are building in place.
31753 ac_srcdir=.
31754 if test -z "$ac_top_builddir"; then
31755 ac_top_srcdir=.
31756 else
31757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31758 fi ;;
31759 [\\/]* | ?:[\\/]* ) # Absolute path.
31760 ac_srcdir=$srcdir$ac_dir_suffix;
31761 ac_top_srcdir=$srcdir ;;
31762 *) # Relative path.
31763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31765esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031766
31767# Do not use `cd foo && pwd` to compute absolute paths, because
31768# the directories may not exist.
31769case `pwd` in
31770.) ac_abs_builddir="$ac_dir";;
31771*)
31772 case "$ac_dir" in
31773 .) ac_abs_builddir=`pwd`;;
31774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31776 esac;;
31777esac
31778case $ac_abs_builddir in
31779.) ac_abs_top_builddir=${ac_top_builddir}.;;
31780*)
31781 case ${ac_top_builddir}. in
31782 .) ac_abs_top_builddir=$ac_abs_builddir;;
31783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31785 esac;;
31786esac
31787case $ac_abs_builddir in
31788.) ac_abs_srcdir=$ac_srcdir;;
31789*)
31790 case $ac_srcdir in
31791 .) ac_abs_srcdir=$ac_abs_builddir;;
31792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31794 esac;;
31795esac
31796case $ac_abs_builddir in
31797.) ac_abs_top_srcdir=$ac_top_srcdir;;
31798*)
31799 case $ac_top_srcdir in
31800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31803 esac;;
31804esac
John Criswell12399a12003-09-30 15:55:44 +000031805
31806
31807 cd $ac_dir
31808
31809 # Check for guested configure; otherwise get Cygnus style configure.
31810 if test -f $ac_srcdir/configure.gnu; then
31811 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31812 elif test -f $ac_srcdir/configure; then
31813 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31814 elif test -f $ac_srcdir/configure.in; then
31815 ac_sub_configure=$ac_configure
31816 else
31817 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31818echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31819 ac_sub_configure=
31820 fi
31821
31822 # The recursion is here.
31823 if test -n "$ac_sub_configure"; then
31824 # Make the cache file name correct relative to the subdirectory.
31825 case $cache_file in
31826 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31827 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031828 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031829 esac
31830
31831 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31832echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31833 # The eval makes quoting arguments work.
31834 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031835 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31836 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031837echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31838 { (exit 1); exit 1; }; }
31839 fi
31840
31841 cd $ac_popdir
31842 done
31843fi
31844
Brian Gaekef3b24102003-11-16 18:38:14 +000031845
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031846if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031847 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31848echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031849 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31850echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31851 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31852echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31853 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31854echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31855 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31856echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031857fi