blob: dacda5d8c71955b2cae50df86b7301c88f8a6a92 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer4a415862004-11-25 20:21:53 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ifGNUmake FIND GREP MKDIR MV RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOT ETAGS PYTHON QMTEST RUNTEST ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell47fdd832003-07-14 16:52:07 +00001039 --enable-shared[=PKGS]
1040 build shared libraries [default=yes]
1041 --enable-static[=PKGS]
1042 build static libraries [default=yes]
1043 --enable-fast-install[=PKGS]
1044 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001045 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001046
1047Optional Packages:
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell47fdd832003-07-14 16:52:07 +00001051 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052 --with-pic try to use only PIC/non-PIC objects [default=use
1053 both]
1054 --with-tags[=TAGS]
1055 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001056
1057Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001058 CC C compiler command
1059 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001064 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001067 CXXCPP C++ preprocessor
1068 F77 Fortran 77 compiler command
1069 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001070
1071Use these variables to override the choices made by `configure' or to help
1072it to find libraries and programs with nonstandard names/locations.
1073
1074Report bugs to <llvmbugs@cs.uiuc.edu>.
1075_ACEOF
1076fi
1077
1078if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1080 ac_popdir=`pwd`
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1083 ac_builddir=.
1084
1085if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089else
1090 ac_dir_suffix= ac_top_builddir=
1091fi
1092
1093case $srcdir in
1094 .) # No --srcdir option. We are building in place.
1095 ac_srcdir=.
1096 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=.
1098 else
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 fi ;;
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1104 *) # Relative path.
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001108
1109# Do not use `cd foo && pwd` to compute absolute paths, because
1110# the directories may not exist.
1111case `pwd` in
1112.) ac_abs_builddir="$ac_dir";;
1113*)
1114 case "$ac_dir" in
1115 .) ac_abs_builddir=`pwd`;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122*)
1123 case ${ac_top_builddir}. in
1124 .) ac_abs_top_builddir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_srcdir=$ac_srcdir;;
1131*)
1132 case $ac_srcdir in
1133 .) ac_abs_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140*)
1141 case $ac_top_srcdir in
1142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 esac;;
1146esac
John Criswell7a73b802003-06-30 21:59:07 +00001147
1148 cd $ac_dir
1149 # Check for guested configure; otherwise get Cygnus style configure.
1150 if test -f $ac_srcdir/configure.gnu; then
1151 echo
1152 $SHELL $ac_srcdir/configure.gnu --help=recursive
1153 elif test -f $ac_srcdir/configure; then
1154 echo
1155 $SHELL $ac_srcdir/configure --help=recursive
1156 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001157 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001158 echo
1159 $ac_configure --help
1160 else
1161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 fi
1163 cd $ac_popdir
1164 done
1165fi
1166
1167test -n "$ac_init_help" && exit 0
1168if $ac_init_version; then
1169 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001170llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001171generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001172
Reid Spencer2706f8c2004-09-19 23:53:36 +00001173Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001174This configure script is free software; the Free Software Foundation
1175gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001176
1177$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001178_ACEOF
1179 exit 0
1180fi
1181exec 5>config.log
1182cat >&5 <<_ACEOF
1183This file contains any messages produced by compilers while
1184running configure, to aid debugging if configure makes a mistake.
1185
Reid Spencerabec8f92004-10-27 23:03:44 +00001186It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001187generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001188
1189 $ $0 $@
1190
1191_ACEOF
1192{
1193cat <<_ASUNAME
1194## --------- ##
1195## Platform. ##
1196## --------- ##
1197
1198hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202uname -v = `(uname -v) 2>/dev/null || echo unknown`
1203
1204/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1206
1207/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1208/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1209/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1211/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1212/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1213/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214
1215_ASUNAME
1216
1217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218for as_dir in $PATH
1219do
1220 IFS=$as_save_IFS
1221 test -z "$as_dir" && as_dir=.
1222 echo "PATH: $as_dir"
1223done
1224
1225} >&5
1226
1227cat >&5 <<_ACEOF
1228
1229
1230## ----------- ##
1231## Core tests. ##
1232## ----------- ##
1233
1234_ACEOF
1235
1236
1237# Keep a trace of the command line.
1238# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001239# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001240# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001241# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001242ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001243ac_configure_args0=
1244ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001245ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001246ac_must_keep_next=false
1247for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001248do
John Criswell0c38eaf2003-09-10 15:17:25 +00001249 for ac_arg
1250 do
1251 case $ac_arg in
1252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254 | -silent | --silent | --silen | --sile | --sil)
1255 continue ;;
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 esac
1259 case $ac_pass in
1260 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1261 2)
1262 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001264 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001265 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001266 case $ac_arg in
1267 *=* | --config-cache | -C | -disable-* | --disable-* \
1268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270 | -with-* | --with-* | -without-* | --without-* | --x)
1271 case "$ac_configure_args0 " in
1272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1273 esac
1274 ;;
1275 -* ) ac_must_keep_next=true ;;
1276 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001277 fi
1278 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279 # Get rid of the leading space.
1280 ac_sep=" "
1281 ;;
1282 esac
1283 done
John Criswell7a73b802003-06-30 21:59:07 +00001284done
John Criswell0c38eaf2003-09-10 15:17:25 +00001285$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286$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 +00001287
1288# When interrupted or exit'd, cleanup temporary files, and complete
1289# config.log. We remove comments because anyway the quotes in there
1290# would cause problems or look ugly.
1291# WARNING: Be sure not to use single quotes in there, as some shells,
1292# such as our DU 5.0 friend, will then `close' the trap.
1293trap 'exit_status=$?
1294 # Save into config.log some information that might help in debugging.
1295 {
1296 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001297
John Criswell7a73b802003-06-30 21:59:07 +00001298 cat <<\_ASBOX
1299## ---------------- ##
1300## Cache variables. ##
1301## ---------------- ##
1302_ASBOX
1303 echo
1304 # The following way of writing the cache mishandles newlines in values,
1305{
1306 (set) 2>&1 |
1307 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1308 *ac_space=\ *)
1309 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001310 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001312 ;;
1313 *)
1314 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001316 ;;
1317 esac;
1318}
1319 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001320
1321 cat <<\_ASBOX
1322## ----------------- ##
1323## Output variables. ##
1324## ----------------- ##
1325_ASBOX
1326 echo
1327 for ac_var in $ac_subst_vars
1328 do
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1331 done | sort
1332 echo
1333
1334 if test -n "$ac_subst_files"; then
1335 cat <<\_ASBOX
1336## ------------- ##
1337## Output files. ##
1338## ------------- ##
1339_ASBOX
1340 echo
1341 for ac_var in $ac_subst_files
1342 do
1343 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001344 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001345 done | sort
1346 echo
1347 fi
1348
John Criswell7a73b802003-06-30 21:59:07 +00001349 if test -s confdefs.h; then
1350 cat <<\_ASBOX
1351## ----------- ##
1352## confdefs.h. ##
1353## ----------- ##
1354_ASBOX
1355 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001356 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001357 echo
1358 fi
1359 test "$ac_signal" != 0 &&
1360 echo "$as_me: caught signal $ac_signal"
1361 echo "$as_me: exit $exit_status"
1362 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001363 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001364 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1365 exit $exit_status
1366 ' 0
1367for ac_signal in 1 2 13 15; do
1368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369done
1370ac_signal=0
1371
1372# confdefs.h avoids OS command line length limits that DEFS can exceed.
1373rm -rf conftest* confdefs.h
1374# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375echo >confdefs.h
1376
1377# Predefined preprocessor variables.
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_NAME "$PACKAGE_NAME"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_VERSION "$PACKAGE_VERSION"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_STRING "$PACKAGE_STRING"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401_ACEOF
1402
1403
1404# Let the site file select an alternate cache file if it wants to.
1405# Prefer explicitly selected file to automatically selected ones.
1406if test -z "$CONFIG_SITE"; then
1407 if test "x$prefix" != xNONE; then
1408 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1409 else
1410 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411 fi
1412fi
1413for ac_site_file in $CONFIG_SITE; do
1414 if test -r "$ac_site_file"; then
1415 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416echo "$as_me: loading site script $ac_site_file" >&6;}
1417 sed 's/^/| /' "$ac_site_file" >&5
1418 . "$ac_site_file"
1419 fi
1420done
1421
1422if test -r "$cache_file"; then
1423 # Some versions of bash will fail to source /dev/null (special
1424 # files actually), so we avoid doing that.
1425 if test -f "$cache_file"; then
1426 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427echo "$as_me: loading cache $cache_file" >&6;}
1428 case $cache_file in
1429 [\\/]* | ?:[\\/]* ) . $cache_file;;
1430 *) . ./$cache_file;;
1431 esac
1432 fi
1433else
1434 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435echo "$as_me: creating cache $cache_file" >&6;}
1436 >$cache_file
1437fi
1438
1439# Check that the precious variables saved in the cache have kept the same
1440# value.
1441ac_cache_corrupted=false
1442for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001443 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445 eval ac_new_set=\$ac_env_${ac_var}_set
1446 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447 eval ac_new_val="\$ac_env_${ac_var}_value"
1448 case $ac_old_set,$ac_new_set in
1449 set,)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1453 ,set)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,);;
1458 *)
1459 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001460 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001461echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001462 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001463echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001467 fi;;
1468 esac
1469 # Pass precious variables to config.status.
1470 if test "$ac_new_set" = set; then
1471 case $ac_new_val in
1472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 *) ac_arg=$ac_var=$ac_new_val ;;
1475 esac
1476 case " $ac_configure_args " in
1477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1478 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479 esac
1480 fi
1481done
1482if $ac_cache_corrupted; then
1483 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487 { (exit 1); exit 1; }; }
1488fi
1489
1490ac_ext=c
1491ac_cpp='$CPP $CPPFLAGS'
1492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
John Criswell0c38eaf2003-09-10 15:17:25 +00001522
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001523LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1524
1525
1526
1527
1528
1529
1530
John Criswell7a73b802003-06-30 21:59:07 +00001531ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001532for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001533 if test -f $ac_dir/install-sh; then
1534 ac_aux_dir=$ac_dir
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1536 break
1537 elif 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/shtool; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1544 break
1545 fi
1546done
1547if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1549echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001550 { (exit 1); exit 1; }; }
1551fi
1552ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
John Criswell392aaa32003-07-22 19:18:09 +00001556
Reid Spencer2706f8c2004-09-19 23:53:36 +00001557if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1559 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001560echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1561 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 fi
John Criswell93e1c722003-09-15 17:04:06 +00001563fi
1564
John Criswell33a911a2003-11-25 20:36:46 +00001565for i in `ls ${srcdir}/projects`
1566do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001567 if test -d ${srcdir}/projects/${i} ; then
1568 case ${i} in
1569 "CVS") ;;
1570 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001571
Reid Spencer4d68ba22004-09-07 16:35:45 +00001572subdirs="$subdirs projects/sample"
1573 ;;
1574 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001575
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576subdirs="$subdirs projects/Stacker"
1577 ;;
1578 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001579
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580subdirs="$subdirs projects/llvm-test"
1581 ;;
1582 "llvm-reopt")
1583
1584subdirs="$subdirs projects/llvm-reopt"
1585;;
1586 "llvm-gcc")
1587
1588subdirs="$subdirs projects/llvm-gcc"
1589 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001590 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001591
Reid Spencer641f7ef2004-09-20 22:14:56 +00001592subdirs="$subdirs projects/Java"
1593 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594 "llvm-tv")
1595
1596subdirs="$subdirs projects/llvm-tv"
1597 ;;
1598 "llvm-fefw")
1599
1600subdirs="$subdirs projects/llvm-fefw"
1601 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001602 "poolalloc")
1603
1604subdirs="$subdirs projects/poolalloc"
1605 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001606 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001607 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1608echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001609 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001610 esac
John Criswell33a911a2003-11-25 20:36:46 +00001611 fi
1612done
John Criswell559a6c12003-09-30 16:31:48 +00001613
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615# Make sure we can run config.sub.
1616$ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621echo "$as_me:$LINENO: checking build system type" >&5
1622echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 ac_cv_build_alias=$build_alias
1627test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640echo "${ECHO_T}$ac_cv_build" >&6
1641build=$ac_cv_build
1642build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647echo "$as_me:$LINENO: checking host system type" >&5
1648echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 ac_cv_host_alias=$host_alias
1653test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1659
1660fi
1661echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662echo "${ECHO_T}$ac_cv_host" >&6
1663host=$ac_cv_host
1664host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669echo "$as_me:$LINENO: checking target system type" >&5
1670echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674 ac_cv_target_alias=$target_alias
1675test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684echo "${ECHO_T}$ac_cv_target" >&6
1685target=$ac_cv_target
1686target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691# The aliases save the names the user supplied, while $host etc.
1692# will get canonicalized.
1693test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1695 NONENONEs,x,x, &&
1696 program_prefix=${target_alias}-
1697
Reid Spencer73fb5482004-08-31 14:20:36 +00001698echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1699echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001700if test "${llvm_cv_platform_type+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702else
1703 case $build in
1704 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1705 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1706 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1707 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1708 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1709 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1710 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1711 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1712 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1713 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001714esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001715fi
1716echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1717echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001718
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001719if test "$llvm_cv_platform_type" = "Unknown" ; then
1720 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1721echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001722 { (exit 1); exit 1; }; }
1723fi
1724
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001725OS=$llvm_cv_platform_type
1726
1727
Reid Spenceredd01b92004-11-25 06:03:14 +00001728 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001729
1730
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001731case $target in
1732 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1733
1734 ;;
1735esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001736
1737echo "$as_me:$LINENO: checking target architecture" >&5
1738echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001739if test "${llvm_cv_target_arch+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742 case $target in
1743 i*86-*) llvm_cv_target_arch="x86" ;;
1744 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1745 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1746 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001747esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001748fi
1749echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1750echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001751
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001752if test "$llvm_cv_target_arch" = "Unknown" ; then
1753 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1754echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1755fi
John Criswell76595452003-07-01 22:07:39 +00001756
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001757ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001758
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001760ac_ext=c
1761ac_cpp='$CPP $CPPFLAGS'
1762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001765if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1767set dummy ${ac_tool_prefix}gcc; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775else
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1786 fi
1787done
1788done
1789
1790fi
1791fi
1792CC=$ac_cv_prog_CC
1793if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795echo "${ECHO_T}$CC" >&6
1796else
1797 echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$ac_cv_prog_CC"; then
1803 ac_ct_CC=$CC
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805set dummy gcc; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1824 fi
1825done
1826done
1827
1828fi
1829fi
1830ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833echo "${ECHO_T}$ac_ct_CC" >&6
1834else
1835 echo "$as_me:$LINENO: result: no" >&5
1836echo "${ECHO_T}no" >&6
1837fi
1838
1839 CC=$ac_ct_CC
1840else
1841 CC="$ac_cv_prog_CC"
1842fi
1843
1844if test -z "$CC"; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1847set dummy ${ac_tool_prefix}cc; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1855else
1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in $PATH
1858do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC="${ac_tool_prefix}cc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867done
1868done
1869
1870fi
1871fi
1872CC=$ac_cv_prog_CC
1873if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875echo "${ECHO_T}$CC" >&6
1876else
1877 echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881fi
1882if test -z "$ac_cv_prog_CC"; then
1883 ac_ct_CC=$CC
1884 # Extract the first word of "cc", so it can be a program name with args.
1885set dummy cc; ac_word=$2
1886echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="cc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905done
1906done
1907
1908fi
1909fi
1910ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913echo "${ECHO_T}$ac_ct_CC" >&6
1914else
1915 echo "$as_me:$LINENO: result: no" >&5
1916echo "${ECHO_T}no" >&6
1917fi
1918
1919 CC=$ac_ct_CC
1920else
1921 CC="$ac_cv_prog_CC"
1922fi
1923
1924fi
1925if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935else
1936 ac_prog_rejected=no
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1946 continue
1947 fi
1948 ac_cv_prog_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952done
1953done
1954
1955if test $ac_prog_rejected = yes; then
1956 # We found a bogon in the path, so make sure we never use it.
1957 set dummy $ac_cv_prog_CC
1958 shift
1959 if test $# != 0; then
1960 # We chose a different compiler from the bogus one.
1961 # However, it has the same basename, so the bogon will be chosen
1962 # first if we set CC to just the basename; use the full file name.
1963 shift
1964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 fi
1966fi
1967fi
1968fi
1969CC=$ac_cv_prog_CC
1970if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972echo "${ECHO_T}$CC" >&6
1973else
1974 echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978fi
1979if test -z "$CC"; then
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001982 do
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001987if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004done
2005done
2006
2007fi
2008fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002013else
2014 echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002018 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002019 done
2020fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021if test -z "$CC"; then
2022 ac_ct_CC=$CC
2023 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002042 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048
2049fi
2050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002055else
2056 echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002061done
John Criswell7a73b802003-06-30 21:59:07 +00002062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 CC=$ac_ct_CC
2064fi
2065
John Criswell7a73b802003-06-30 21:59:07 +00002066fi
2067
2068
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2074
John Criswell7a73b802003-06-30 21:59:07 +00002075# Provide some information about the compiler.
2076echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002078ac_compiler=`set X $ac_compile; echo $2`
2079{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080 (eval $ac_compiler --version </dev/null >&5) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085 (eval $ac_compiler -v </dev/null >&5) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090 (eval $ac_compiler -V </dev/null >&5) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2094
2095cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002096/* confdefs.h. */
2097_ACEOF
2098cat confdefs.h >>conftest.$ac_ext
2099cat >>conftest.$ac_ext <<_ACEOF
2100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002101
John Criswell7a73b802003-06-30 21:59:07 +00002102int
2103main ()
2104{
2105
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002111ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002112# Try to create an executable without -o first, disregard a.out.
2113# It will help us diagnose broken compilers, and finding out an intuition
2114# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002115echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002117ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119 (eval $ac_link_default) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 # Find the output, starting from the most likely. This scheme is
2124# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125# resort.
2126
2127# Be careful to initialize this variable, since it used to be cached.
2128# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002130# b.out is created by i960 compilers.
2131for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132do
2133 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002134 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002136 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002137 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002138 # This is the source file.
2139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002140 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002141 # We found the default executable, but exeext='' is most
2142 # certainly right.
2143 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002144 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 # FIXME: I believe we export ac_cv_exeext for Libtool,
2147 # but it would be cool to find out if it's true. Does anybody
2148 # maintain Libtool? --akim.
2149 export ac_cv_exeext
2150 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002151 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002152 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002153 esac
2154done
2155else
2156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002157sed 's/^/| /' conftest.$ac_ext >&5
2158
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002159{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002160See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002161echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002162See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002163 { (exit 77); exit 77; }; }
2164fi
2165
2166ac_exeext=$ac_cv_exeext
2167echo "$as_me:$LINENO: result: $ac_file" >&5
2168echo "${ECHO_T}$ac_file" >&6
2169
2170# Check the compiler produces executables we can run. If not, either
2171# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002172echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002174# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175# If not cross compiling, check that we can run a simple program.
2176if test "$cross_compiling" != yes; then
2177 if { ac_try='./$ac_file'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 cross_compiling=no
2184 else
2185 if test "$cross_compiling" = maybe; then
2186 cross_compiling=yes
2187 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002189If you meant to cross compile, use \`--host'.
2190See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002194 { (exit 1); exit 1; }; }
2195 fi
2196 fi
2197fi
2198echo "$as_me:$LINENO: result: yes" >&5
2199echo "${ECHO_T}yes" >&6
2200
John Criswell0c38eaf2003-09-10 15:17:25 +00002201rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002202ac_clean_files=$ac_clean_files_save
2203# Check the compiler produces executables we can run. If not, either
2204# the compiler is broken, or we cross compile.
2205echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208echo "${ECHO_T}$cross_compiling" >&6
2209
2210echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213 (eval $ac_link) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2219# work properly (i.e., refer to `conftest.exe'), while it won't with
2220# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002221for ac_file in conftest.exe conftest conftest.*; do
2222 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002223 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002226 export ac_cv_exeext
2227 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002228 * ) break;;
2229 esac
2230done
2231else
John Criswell0c38eaf2003-09-10 15:17:25 +00002232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002236 { (exit 1); exit 1; }; }
2237fi
2238
2239rm -f conftest$ac_cv_exeext
2240echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241echo "${ECHO_T}$ac_cv_exeext" >&6
2242
2243rm -f conftest.$ac_ext
2244EXEEXT=$ac_cv_exeext
2245ac_exeext=$EXEEXT
2246echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248if test "${ac_cv_objext+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002252/* confdefs.h. */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002257
John Criswell7a73b802003-06-30 21:59:07 +00002258int
2259main ()
2260{
2261
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.o conftest.obj
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276 break;;
2277 esac
2278done
2279else
2280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002281sed 's/^/| /' conftest.$ac_ext >&5
2282
2283{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of object files: cannot compile
2286See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002287 { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291fi
2292echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293echo "${ECHO_T}$ac_cv_objext" >&6
2294OBJEXT=$ac_cv_objext
2295ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002296echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002307
John Criswell7a73b802003-06-30 21:59:07 +00002308int
2309main ()
2310{
2311#ifndef __GNUC__
2312 choke me
2313#endif
2314
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319rm -f conftest.$ac_objext
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002321 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002322 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002328 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 ac_compiler_gnu=yes
2342else
2343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002344sed 's/^/| /' conftest.$ac_ext >&5
2345
John Criswell7a73b802003-06-30 21:59:07 +00002346ac_compiler_gnu=no
2347fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002350
2351fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354GCC=`test $ac_compiler_gnu = yes && echo yes`
2355ac_test_CFLAGS=${CFLAGS+set}
2356ac_save_CFLAGS=$CFLAGS
2357CFLAGS="-g"
2358echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002364/* confdefs.h. */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002369
John Criswell7a73b802003-06-30 21:59:07 +00002370int
2371main ()
2372{
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002380 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002401else
2402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002403sed 's/^/| /' conftest.$ac_ext >&5
2404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002408fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS=$ac_save_CFLAGS
2413elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2415 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002416 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002418 fi
2419else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 if test "$GCC" = yes; then
2421 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002422 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002424 fi
2425fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431 ac_cv_prog_cc_stdc=no
2432ac_save_CC=$CC
2433cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h. */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h. */
2439#include <stdarg.h>
2440#include <stdio.h>
2441#include <sys/types.h>
2442#include <sys/stat.h>
2443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2444struct buf { int x; };
2445FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446static char *e (p, i)
2447 char **p;
2448 int i;
2449{
2450 return p[i];
2451}
2452static char *f (char * (*g) (char **, int), char **p, ...)
2453{
2454 char *s;
2455 va_list v;
2456 va_start (v,p);
2457 s = g (p, va_arg (v,int));
2458 va_end (v);
2459 return s;
2460}
2461
2462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2463 function prototypes and stuff, but not '\xHH' hex character constants.
2464 These don't provoke an error unfortunately, instead are silently treated
2465 as 'x'. The following induces an error, until -std1 is added to get
2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2467 array size at least. It's necessary to write '\x00'==0 to get something
2468 that's true only with -std1. */
2469int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470
2471int test (int i, double x);
2472struct s1 {int (*f) (int a);};
2473struct s2 {int (*f) (double a);};
2474int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475int argc;
2476char **argv;
2477int
2478main ()
2479{
2480return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485# Don't try gcc -ansi; that turns off useful extensions and
2486# breaks some systems' header files.
2487# AIX -qlanglvl=ansi
2488# Ultrix and OSF/1 -std1
2489# HP-UX 10.20 and later -Ae
2490# HP-UX older versions -Aa -D_HPUX_SOURCE
2491# SVR4 -Xc -D__EXTENSIONS__
2492for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493do
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2518break
2519else
2520 echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523fi
2524rm -f conftest.err conftest.$ac_objext
2525done
2526rm -f conftest.$ac_ext conftest.$ac_objext
2527CC=$ac_save_CC
2528
2529fi
2530
2531case "x$ac_cv_prog_cc_stdc" in
2532 x|xno)
2533 echo "$as_me:$LINENO: result: none needed" >&5
2534echo "${ECHO_T}none needed" >&6 ;;
2535 *)
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2539esac
2540
2541# Some people use a C++ compiler to compile C. Since we use `exit',
2542# in C++ we need to declare it. In case someone uses the same compiler
2543# for both compiling C and C++ we need to have the C++ compiler decide
2544# the declaration of exit, since it's the most demanding environment.
2545cat >conftest.$ac_ext <<_ACEOF
2546#ifndef __cplusplus
2547 choke me
2548#endif
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
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); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002573 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002574 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575 'extern "C" void std::exit (int); using std::exit;' \
2576 'extern "C" void exit (int) throw ();' \
2577 'extern "C" void exit (int);' \
2578 'void exit (int);'
2579do
2580 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002581/* confdefs.h. */
2582_ACEOF
2583cat confdefs.h >>conftest.$ac_ext
2584cat >>conftest.$ac_ext <<_ACEOF
2585/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002586$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002587#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002588int
2589main ()
2590{
2591exit (42);
2592 ;
2593 return 0;
2594}
2595_ACEOF
2596rm -f conftest.$ac_objext
2597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002598 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 :
2619else
2620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002621sed 's/^/| /' conftest.$ac_ext >&5
2622
John Criswell7a73b802003-06-30 21:59:07 +00002623continue
2624fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002632$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002633int
2634main ()
2635{
2636exit (42);
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002643 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002644 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 break
2664else
2665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002666sed 's/^/| /' conftest.$ac_ext >&5
2667
John Criswell7a73b802003-06-30 21:59:07 +00002668fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002670done
2671rm -f conftest*
2672if test -n "$ac_declaration"; then
2673 echo '#ifdef __cplusplus' >>confdefs.h
2674 echo $ac_declaration >>confdefs.h
2675 echo '#endif' >>confdefs.h
2676fi
2677
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678else
2679 echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682fi
2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684ac_ext=c
2685ac_cpp='$CPP $CPPFLAGS'
2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689
2690
2691echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2692echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2693if test "${ac_cv_c_bigendian+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 # See if sys/param.h defines the BYTE_ORDER macro.
2697cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
2703#include <sys/types.h>
2704#include <sys/param.h>
2705
2706int
2707main ()
2708{
2709#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2710 bogus endian macros
2711#endif
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 # It does; now see whether it defined to BIG_ENDIAN or not.
2740cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746#include <sys/types.h>
2747#include <sys/param.h>
2748
2749int
2750main ()
2751{
2752#if BYTE_ORDER != BIG_ENDIAN
2753 not big endian
2754#endif
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 ac_cv_c_bigendian=yes
2783else
2784 echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787ac_cv_c_bigendian=no
2788fi
2789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790else
2791 echo "$as_me: failed program was:" >&5
2792sed 's/^/| /' conftest.$ac_ext >&5
2793
2794# It does not; compile a test program.
2795if test "$cross_compiling" = yes; then
2796 # try to guess the endianness by grepping values into an object file
2797 ac_cv_c_bigendian=unknown
2798 cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h. */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h. */
2804short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2805short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2806void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2807short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2808short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2809void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2810int
2811main ()
2812{
2813 _ascii (); _ebcdic ();
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext
2819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2841 ac_cv_c_bigendian=yes
2842fi
2843if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2844 if test "$ac_cv_c_bigendian" = unknown; then
2845 ac_cv_c_bigendian=no
2846 else
2847 # finding both strings is unlikely to happen, but who knows?
2848 ac_cv_c_bigendian=unknown
2849 fi
2850fi
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855fi
2856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857else
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864int
2865main ()
2866{
2867 /* Are we little or big endian? From Harbison&Steele. */
2868 union
2869 {
2870 long l;
2871 char c[sizeof (long)];
2872 } u;
2873 u.l = 1;
2874 exit (u.c[sizeof (long) - 1] == 1);
2875}
2876_ACEOF
2877rm -f conftest$ac_exeext
2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879 (eval $ac_link) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 ac_cv_c_bigendian=no
2889else
2890 echo "$as_me: program exited with status $ac_status" >&5
2891echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894( exit $ac_status )
2895ac_cv_c_bigendian=yes
2896fi
2897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2898fi
2899fi
2900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901fi
2902echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2903echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2904case $ac_cv_c_bigendian in
2905 yes)
2906 ENDIAN=big
2907 ;;
2908 no)
2909 ENDIAN=little
2910 ;;
2911 *)
2912 { { echo "$as_me:$LINENO: error: unknown endianness
2913presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2914echo "$as_me: error: unknown endianness
2915presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2916 { (exit 1); exit 1; }; } ;;
2917esac
2918
2919
2920
2921# Check whether --enable-optimized or --disable-optimized was given.
2922if test "${enable_optimized+set}" = set; then
2923 enableval="$enable_optimized"
2924
2925else
2926 enableval=no
2927fi;
2928if test ${enableval} = "no" ; then
2929 ENABLE_OPTIMIZED=
2930
2931else
2932 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2933
2934fi
2935
2936# Check whether --enable-jit or --disable-jit was given.
2937if test "${enable_jit+set}" = set; then
2938 enableval="$enable_jit"
2939
2940else
2941 enableval=default
2942fi;
2943if test ${enableval} = "no"
2944then
2945 JIT=
2946
2947else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002948 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002949 x86) JIT=TARGET_HAS_JIT=1
2950 ;;
2951 Sparc) JIT=TARGET_HAS_JIT=1
2952 ;;
2953 PowerPC) JIT=TARGET_HAS_JIT=1
2954 ;;
2955 *) JIT=
2956 ;;
2957 esac
2958fi
2959
2960
2961# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2962if test "${with_llvmgccdir+set}" = set; then
2963 withval="$with_llvmgccdir"
2964 LLVMGCCDIR=$withval
2965
2966fi;
2967
2968if test "x$LLVMGCCDIR" = x ; then
2969 case "$llvm_cv_platform_type" in
2970 Linux)
2971 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2972 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2973
2974 fi
2975 ;;
2976 SunOS)
2977 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2978 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2979
2980 fi
2981 ;;
2982 esac
2983fi
2984
2985
2986ac_ext=c
2987ac_cpp='$CPP $CPPFLAGS'
2988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2992echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2993# On Suns, sometimes $CPP names a directory.
2994if test -n "$CPP" && test -d "$CPP"; then
2995 CPP=
2996fi
2997if test -z "$CPP"; then
2998 if test "${ac_cv_prog_CPP+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 # Double quotes because CPP needs to be expanded
3002 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3003 do
3004 ac_preproc_ok=false
3005for ac_c_preproc_warn_flag in '' yes
3006do
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#ifdef __STDC__
3020# include <limits.h>
3021#else
3022# include <assert.h>
3023#endif
3024 Syntax error
3025_ACEOF
3026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037 else
3038 ac_cpp_err=
3039 fi
3040else
3041 ac_cpp_err=yes
3042fi
3043if test -z "$ac_cpp_err"; then
3044 :
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 # Broken: fails on valid input.
3050continue
3051fi
3052rm -f conftest.err conftest.$ac_ext
3053
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062#include <ac_nonexistent.h>
3063_ACEOF
3064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 else
3076 ac_cpp_err=
3077 fi
3078else
3079 ac_cpp_err=yes
3080fi
3081if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3083continue
3084else
3085 echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 # Passes both tests.
3089ac_preproc_ok=:
3090break
3091fi
3092rm -f conftest.err conftest.$ac_ext
3093
3094done
3095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096rm -f conftest.err conftest.$ac_ext
3097if $ac_preproc_ok; then
3098 break
3099fi
3100
3101 done
3102 ac_cv_prog_CPP=$CPP
3103
3104fi
3105 CPP=$ac_cv_prog_CPP
3106else
3107 ac_cv_prog_CPP=$CPP
3108fi
3109echo "$as_me:$LINENO: result: $CPP" >&5
3110echo "${ECHO_T}$CPP" >&6
3111ac_preproc_ok=false
3112for ac_c_preproc_warn_flag in '' yes
3113do
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#ifdef __STDC__
3127# include <limits.h>
3128#else
3129# include <assert.h>
3130#endif
3131 Syntax error
3132_ACEOF
3133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144 else
3145 ac_cpp_err=
3146 fi
3147else
3148 ac_cpp_err=yes
3149fi
3150if test -z "$ac_cpp_err"; then
3151 :
3152else
3153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 # Broken: fails on valid input.
3157continue
3158fi
3159rm -f conftest.err conftest.$ac_ext
3160
3161 # OK, works on sane cases. Now check whether non-existent headers
3162 # can be detected and how.
3163 cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h. */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h. */
3169#include <ac_nonexistent.h>
3170_ACEOF
3171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null; then
3179 if test -s conftest.err; then
3180 ac_cpp_err=$ac_c_preproc_warn_flag
3181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3182 else
3183 ac_cpp_err=
3184 fi
3185else
3186 ac_cpp_err=yes
3187fi
3188if test -z "$ac_cpp_err"; then
3189 # Broken: success on invalid input.
3190continue
3191else
3192 echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 # Passes both tests.
3196ac_preproc_ok=:
3197break
3198fi
3199rm -f conftest.err conftest.$ac_ext
3200
3201done
3202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203rm -f conftest.err conftest.$ac_ext
3204if $ac_preproc_ok; then
3205 :
3206else
3207 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3208See \`config.log' for more details." >&5
3209echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3210See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3212fi
3213
John Criswell7a73b802003-06-30 21:59:07 +00003214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225if test -n "$ac_tool_prefix"; then
3226 for ac_prog in gcc
3227 do
3228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232if test "${ac_cv_prog_CC+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249done
3250done
3251
3252fi
3253fi
3254CC=$ac_cv_prog_CC
3255if test -n "$CC"; then
3256 echo "$as_me:$LINENO: result: $CC" >&5
3257echo "${ECHO_T}$CC" >&6
3258else
3259 echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263 test -n "$CC" && break
3264 done
3265fi
3266if test -z "$CC"; then
3267 ac_ct_CC=$CC
3268 for ac_prog in gcc
3269do
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271set dummy $ac_prog; ac_word=$2
3272echo "$as_me:$LINENO: checking for $ac_word" >&5
3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291done
3292done
3293
3294fi
3295fi
3296ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297if test -n "$ac_ct_CC"; then
3298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3299echo "${ECHO_T}$ac_ct_CC" >&6
3300else
3301 echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303fi
3304
3305 test -n "$ac_ct_CC" && break
3306done
3307
3308 CC=$ac_ct_CC
3309fi
3310
3311
John Criswell0c38eaf2003-09-10 15:17:25 +00003312test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3313See \`config.log' for more details." >&5
3314echo "$as_me: error: no acceptable C compiler found in \$PATH
3315See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003316 { (exit 1); exit 1; }; }
3317
3318# Provide some information about the compiler.
3319echo "$as_me:$LINENO:" \
3320 "checking for C compiler version" >&5
3321ac_compiler=`set X $ac_compile; echo $2`
3322{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3323 (eval $ac_compiler --version </dev/null >&5) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }
3327{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3328 (eval $ac_compiler -v </dev/null >&5) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }
3332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3333 (eval $ac_compiler -V </dev/null >&5) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3337
3338echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3339echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3340if test "${ac_cv_c_compiler_gnu+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003349
John Criswell7a73b802003-06-30 21:59:07 +00003350int
3351main ()
3352{
3353#ifndef __GNUC__
3354 choke me
3355#endif
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361rm -f conftest.$ac_objext
3362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003363 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003370 { ac_try='test -z "$ac_c_werror_flag"
3371 || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_compiler_gnu=yes
3384else
3385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003386sed 's/^/| /' conftest.$ac_ext >&5
3387
John Criswell7a73b802003-06-30 21:59:07 +00003388ac_compiler_gnu=no
3389fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003391ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3395echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3396GCC=`test $ac_compiler_gnu = yes && echo yes`
3397ac_test_CFLAGS=${CFLAGS+set}
3398ac_save_CFLAGS=$CFLAGS
3399CFLAGS="-g"
3400echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3401echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3402if test "${ac_cv_prog_cc_g+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003411
John Criswell7a73b802003-06-30 21:59:07 +00003412int
3413main ()
3414{
3415
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
3421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003422 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_g=yes
3443else
3444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003445sed 's/^/| /' conftest.$ac_ext >&5
3446
John Criswell7a73b802003-06-30 21:59:07 +00003447ac_cv_prog_cc_g=no
3448fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003450fi
3451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3453if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3457 CFLAGS="-g -O2"
3458 else
3459 CFLAGS="-g"
3460 fi
3461else
3462 if test "$GCC" = yes; then
3463 CFLAGS="-O2"
3464 else
3465 CFLAGS=
3466 fi
3467fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3470if test "${ac_cv_prog_cc_stdc+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 ac_cv_prog_cc_stdc=no
3474ac_save_CC=$CC
3475cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <stdarg.h>
3482#include <stdio.h>
3483#include <sys/types.h>
3484#include <sys/stat.h>
3485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3486struct buf { int x; };
3487FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488static char *e (p, i)
3489 char **p;
3490 int i;
3491{
3492 return p[i];
3493}
3494static char *f (char * (*g) (char **, int), char **p, ...)
3495{
3496 char *s;
3497 va_list v;
3498 va_start (v,p);
3499 s = g (p, va_arg (v,int));
3500 va_end (v);
3501 return s;
3502}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003503
3504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3505 function prototypes and stuff, but not '\xHH' hex character constants.
3506 These don't provoke an error unfortunately, instead are silently treated
3507 as 'x'. The following induces an error, until -std1 is added to get
3508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3509 array size at least. It's necessary to write '\x00'==0 to get something
3510 that's true only with -std1. */
3511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512
John Criswell0c38eaf2003-09-10 15:17:25 +00003513int test (int i, double x);
3514struct s1 {int (*f) (int a);};
3515struct s2 {int (*f) (double a);};
3516int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3517int argc;
3518char **argv;
3519int
3520main ()
3521{
3522return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523 ;
3524 return 0;
3525}
3526_ACEOF
3527# Don't try gcc -ansi; that turns off useful extensions and
3528# breaks some systems' header files.
3529# AIX -qlanglvl=ansi
3530# Ultrix and OSF/1 -std1
3531# HP-UX 10.20 and later -Ae
3532# HP-UX older versions -Aa -D_HPUX_SOURCE
3533# SVR4 -Xc -D__EXTENSIONS__
3534for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3535do
3536 CC="$ac_save_CC $ac_arg"
3537 rm -f conftest.$ac_objext
3538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003539 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003546 { ac_try='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_prog_cc_stdc=$ac_arg
3560break
3561else
3562 echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003566rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003567done
3568rm -f conftest.$ac_ext conftest.$ac_objext
3569CC=$ac_save_CC
3570
3571fi
3572
3573case "x$ac_cv_prog_cc_stdc" in
3574 x|xno)
3575 echo "$as_me:$LINENO: result: none needed" >&5
3576echo "${ECHO_T}none needed" >&6 ;;
3577 *)
3578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3579echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3580 CC="$CC $ac_cv_prog_cc_stdc" ;;
3581esac
3582
John Criswell7a73b802003-06-30 21:59:07 +00003583# Some people use a C++ compiler to compile C. Since we use `exit',
3584# in C++ we need to declare it. In case someone uses the same compiler
3585# for both compiling C and C++ we need to have the C++ compiler decide
3586# the declaration of exit, since it's the most demanding environment.
3587cat >conftest.$ac_ext <<_ACEOF
3588#ifndef __cplusplus
3589 choke me
3590#endif
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003594 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003609 { (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); }; }; then
3614 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003615 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003616 'extern "C" void std::exit (int) throw (); using std::exit;' \
3617 'extern "C" void std::exit (int); using std::exit;' \
3618 'extern "C" void exit (int) throw ();' \
3619 'extern "C" void exit (int);' \
3620 'void exit (int);'
3621do
3622 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003628$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003629#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003630int
3631main ()
3632{
3633exit (42);
3634 ;
3635 return 0;
3636}
3637_ACEOF
3638rm -f conftest.$ac_objext
3639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003640 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003647 { ac_try='test -z "$ac_c_werror_flag"
3648 || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 :
3661else
3662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003663sed 's/^/| /' conftest.$ac_ext >&5
3664
John Criswell7a73b802003-06-30 21:59:07 +00003665continue
3666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003674$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003675int
3676main ()
3677{
3678exit (42);
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683rm -f conftest.$ac_objext
3684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003685 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003692 { ac_try='test -z "$ac_c_werror_flag"
3693 || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 break
3706else
3707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003708sed 's/^/| /' conftest.$ac_ext >&5
3709
John Criswell7a73b802003-06-30 21:59:07 +00003710fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003712done
3713rm -f conftest*
3714if test -n "$ac_declaration"; then
3715 echo '#ifdef __cplusplus' >>confdefs.h
3716 echo $ac_declaration >>confdefs.h
3717 echo '#endif' >>confdefs.h
3718fi
3719
3720else
3721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003722sed 's/^/| /' conftest.$ac_ext >&5
3723
John Criswell7a73b802003-06-30 21:59:07 +00003724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003726ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003732ac_ext=cc
3733ac_cpp='$CXXCPP $CPPFLAGS'
3734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3737if test -n "$ac_tool_prefix"; then
3738 for ac_prog in $CCC g++
3739 do
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742echo "$as_me:$LINENO: checking for $ac_word" >&5
3743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003747 if test -n "$CXX"; then
3748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003752do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761done
3762done
3763
3764fi
3765fi
3766CXX=$ac_cv_prog_CXX
3767if test -n "$CXX"; then
3768 echo "$as_me:$LINENO: result: $CXX" >&5
3769echo "${ECHO_T}$CXX" >&6
3770else
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
3773fi
3774
3775 test -n "$CXX" && break
3776 done
3777fi
3778if test -z "$CXX"; then
3779 ac_ct_CXX=$CXX
3780 for ac_prog in $CCC g++
3781do
3782 # Extract the first word of "$ac_prog", so it can be a program name with args.
3783set dummy $ac_prog; ac_word=$2
3784echo "$as_me:$LINENO: checking for $ac_word" >&5
3785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 if test -n "$ac_ct_CXX"; then
3790 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_CXX="$ac_prog"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803done
3804done
3805
3806fi
3807fi
3808ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3809if test -n "$ac_ct_CXX"; then
3810 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3811echo "${ECHO_T}$ac_ct_CXX" >&6
3812else
3813 echo "$as_me:$LINENO: result: no" >&5
3814echo "${ECHO_T}no" >&6
3815fi
3816
3817 test -n "$ac_ct_CXX" && break
3818done
3819test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3820
3821 CXX=$ac_ct_CXX
3822fi
3823
3824
3825# Provide some information about the compiler.
3826echo "$as_me:$LINENO:" \
3827 "checking for C++ compiler version" >&5
3828ac_compiler=`set X $ac_compile; echo $2`
3829{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3830 (eval $ac_compiler --version </dev/null >&5) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }
3834{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3835 (eval $ac_compiler -v </dev/null >&5) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }
3839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3840 (eval $ac_compiler -V </dev/null >&5) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }
3844
3845echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3846echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3847if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
John Criswell7a73b802003-06-30 21:59:07 +00003850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003856
3857int
3858main ()
3859{
3860#ifndef __GNUC__
3861 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003862#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003863
3864 ;
3865 return 0;
3866}
John Criswell7a73b802003-06-30 21:59:07 +00003867_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003868rm -f conftest.$ac_objext
3869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003871 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003872 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003876 (exit $ac_status); } &&
3877 { ac_try='test -z "$ac_cxx_werror_flag"
3878 || test ! -s conftest.err'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; } &&
3884 { ac_try='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 (eval $ac_try) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_compiler_gnu=yes
3891else
3892 echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895ac_compiler_gnu=no
3896fi
3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3899
3900fi
3901echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3902echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3903GXX=`test $ac_compiler_gnu = yes && echo yes`
3904ac_test_CXXFLAGS=${CXXFLAGS+set}
3905ac_save_CXXFLAGS=$CXXFLAGS
3906CXXFLAGS="-g"
3907echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3908echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3909if test "${ac_cv_prog_cxx_g+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912 cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h. */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h. */
3918
3919int
3920main ()
3921{
3922
3923 ;
3924 return 0;
3925}
3926_ACEOF
3927rm -f conftest.$ac_objext
3928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_cxx_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_prog_cxx_g=yes
3950else
3951 echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954ac_cv_prog_cxx_g=no
3955fi
3956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3957fi
3958echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3959echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3960if test "$ac_test_CXXFLAGS" = set; then
3961 CXXFLAGS=$ac_save_CXXFLAGS
3962elif test $ac_cv_prog_cxx_g = yes; then
3963 if test "$GXX" = yes; then
3964 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003965 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003966 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003967 fi
3968else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003969 if test "$GXX" = yes; then
3970 CXXFLAGS="-O2"
3971 else
3972 CXXFLAGS=
3973 fi
John Criswell7a73b802003-06-30 21:59:07 +00003974fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003975for ac_declaration in \
3976 '' \
3977 'extern "C" void std::exit (int) throw (); using std::exit;' \
3978 'extern "C" void std::exit (int); using std::exit;' \
3979 'extern "C" void exit (int) throw ();' \
3980 'extern "C" void exit (int);' \
3981 'void exit (int);'
3982do
3983 cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h. */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h. */
3989$ac_declaration
3990#include <stdlib.h>
3991int
3992main ()
3993{
3994exit (42);
3995 ;
3996 return 0;
3997}
3998_ACEOF
3999rm -f conftest.$ac_objext
4000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_cxx_werror_flag"
4009 || test ! -s conftest.err'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004021 :
4022else
4023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004024sed 's/^/| /' conftest.$ac_ext >&5
4025
John Criswell7a73b802003-06-30 21:59:07 +00004026continue
4027fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004029 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004035$ac_declaration
4036int
4037main ()
4038{
4039exit (42);
4040 ;
4041 return 0;
4042}
John Criswell7a73b802003-06-30 21:59:07 +00004043_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004044rm -f conftest.$ac_objext
4045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004047 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004048 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_cxx_werror_flag"
4054 || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004066 break
John Criswell7a73b802003-06-30 21:59:07 +00004067else
4068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004069sed 's/^/| /' conftest.$ac_ext >&5
4070
John Criswell7a73b802003-06-30 21:59:07 +00004071fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004073done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004074rm -f conftest*
4075if test -n "$ac_declaration"; then
4076 echo '#ifdef __cplusplus' >>confdefs.h
4077 echo $ac_declaration >>confdefs.h
4078 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004079fi
4080
4081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
John Criswell7a73b802003-06-30 21:59:07 +00004087echo "$as_me:$LINENO: checking " >&5
4088echo $ECHO_N "checking ... $ECHO_C" >&6
4089if test "${ac_cv_has_flex+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092 for ac_prog in flex lex
4093do
4094 # Extract the first word of "$ac_prog", so it can be a program name with args.
4095set dummy $ac_prog; ac_word=$2
4096echo "$as_me:$LINENO: checking for $ac_word" >&5
4097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098if test "${ac_cv_prog_LEX+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101 if test -n "$LEX"; then
4102 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_LEX="$ac_prog"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115done
4116done
4117
4118fi
4119fi
4120LEX=$ac_cv_prog_LEX
4121if test -n "$LEX"; then
4122 echo "$as_me:$LINENO: result: $LEX" >&5
4123echo "${ECHO_T}$LEX" >&6
4124else
4125 echo "$as_me:$LINENO: result: no" >&5
4126echo "${ECHO_T}no" >&6
4127fi
4128
4129 test -n "$LEX" && break
4130done
4131test -n "$LEX" || LEX=":"
4132
4133if test -z "$LEXLIB"
4134then
4135 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4136echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4137if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 ac_check_lib_save_LIBS=$LIBS
4141LIBS="-lfl $LIBS"
4142cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004148
4149/* Override any gcc2 internal prototype to avoid an error. */
4150#ifdef __cplusplus
4151extern "C"
4152#endif
4153/* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004156int
4157main ()
4158{
4159yywrap ();
4160 ;
4161 return 0;
4162}
4163_ACEOF
4164rm -f conftest.$ac_objext conftest$ac_exeext
4165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004166 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004167 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004173 { ac_try='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_lib_fl_yywrap=yes
4187else
4188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004189sed 's/^/| /' conftest.$ac_ext >&5
4190
John Criswell7a73b802003-06-30 21:59:07 +00004191ac_cv_lib_fl_yywrap=no
4192fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004193rm -f conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004195LIBS=$ac_check_lib_save_LIBS
4196fi
4197echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4198echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4199if test $ac_cv_lib_fl_yywrap = yes; then
4200 LEXLIB="-lfl"
4201else
4202 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4203echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4204if test "${ac_cv_lib_l_yywrap+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-ll $LIBS"
4209cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004210/* confdefs.h. */
4211_ACEOF
4212cat confdefs.h >>conftest.$ac_ext
4213cat >>conftest.$ac_ext <<_ACEOF
4214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004215
4216/* Override any gcc2 internal prototype to avoid an error. */
4217#ifdef __cplusplus
4218extern "C"
4219#endif
4220/* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004223int
4224main ()
4225{
4226yywrap ();
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext conftest$ac_exeext
4232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004233 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004234 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004240 { ac_try='test -z "$ac_c_werror_flag"
4241 || test ! -s conftest.err'
4242 { (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); }; } &&
4247 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_lib_l_yywrap=yes
4254else
4255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004256sed 's/^/| /' conftest.$ac_ext >&5
4257
John Criswell7a73b802003-06-30 21:59:07 +00004258ac_cv_lib_l_yywrap=no
4259fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004260rm -f conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004262LIBS=$ac_check_lib_save_LIBS
4263fi
4264echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4265echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4266if test $ac_cv_lib_l_yywrap = yes; then
4267 LEXLIB="-ll"
4268fi
4269
4270fi
4271
4272fi
4273
4274if test "x$LEX" != "x:"; then
4275 echo "$as_me:$LINENO: checking lex output file root" >&5
4276echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4277if test "${ac_cv_prog_lex_root+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 # The minimal lex program is just a single line: %%. But some broken lexes
4281# (Solaris, I think it was) want two %% lines, so accommodate them.
4282cat >conftest.l <<_ACEOF
4283%%
4284%%
4285_ACEOF
4286{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4287 (eval $LEX conftest.l) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }
4291if test -f lex.yy.c; then
4292 ac_cv_prog_lex_root=lex.yy
4293elif test -f lexyy.c; then
4294 ac_cv_prog_lex_root=lexyy
4295else
4296 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4297echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4298 { (exit 1); exit 1; }; }
4299fi
4300fi
4301echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4302echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4303rm -f conftest.l
4304LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4305
4306echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4307echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4308if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 # POSIX says lex can declare yytext either as a pointer or an array; the
4312# default is implementation-dependent. Figure out which it is, since
4313# not all implementations provide the %pointer and %array declarations.
4314ac_cv_prog_lex_yytext_pointer=no
4315echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4316ac_save_LIBS=$LIBS
4317LIBS="$LIBS $LEXLIB"
4318cat >conftest.$ac_ext <<_ACEOF
4319`cat $LEX_OUTPUT_ROOT.c`
4320_ACEOF
4321rm -f conftest.$ac_objext conftest$ac_exeext
4322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004323 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004330 { ac_try='test -z "$ac_c_werror_flag"
4331 || test ! -s conftest.err'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_prog_lex_yytext_pointer=yes
4344else
4345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004346sed 's/^/| /' conftest.$ac_ext >&5
4347
John Criswell7a73b802003-06-30 21:59:07 +00004348fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004349rm -f conftest.err conftest.$ac_objext \
4350 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004351LIBS=$ac_save_LIBS
4352rm -f "${LEX_OUTPUT_ROOT}.c"
4353
4354fi
4355echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4356echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4357if test $ac_cv_prog_lex_yytext_pointer = yes; then
4358
4359cat >>confdefs.h <<\_ACEOF
4360#define YYTEXT_POINTER 1
4361_ACEOF
4362
4363fi
4364
4365fi
4366
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4369echo "${ECHO_T}$ac_cv_has_flex" >&6
4370if test "$LEX" != "flex"; then
4371 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4372echo "$as_me: error: flex not found but required" >&2;}
4373 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004374else
4375 FLEX=flex
4376
John Criswell7a73b802003-06-30 21:59:07 +00004377fi
4378
4379echo "$as_me:$LINENO: checking " >&5
4380echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004381if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 for ac_prog in 'bison -y' byacc
4385do
4386 # Extract the first word of "$ac_prog", so it can be a program name with args.
4387set dummy $ac_prog; ac_word=$2
4388echo "$as_me:$LINENO: checking for $ac_word" >&5
4389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390if test "${ac_cv_prog_YACC+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 if test -n "$YACC"; then
4394 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4395else
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_YACC="$ac_prog"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4406 fi
4407done
4408done
4409
4410fi
4411fi
4412YACC=$ac_cv_prog_YACC
4413if test -n "$YACC"; then
4414 echo "$as_me:$LINENO: result: $YACC" >&5
4415echo "${ECHO_T}$YACC" >&6
4416else
4417 echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6
4419fi
4420
4421 test -n "$YACC" && break
4422done
4423test -n "$YACC" || YACC="yacc"
4424
4425
4426fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004427echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4428echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004429if test "$YACC" != "bison -y"; then
4430 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4431echo "$as_me: error: bison not found but required" >&2;}
4432 { (exit 1); exit 1; }; }
4433else
Brian Gaeke12810632004-01-13 06:52:10 +00004434 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004435
4436fi
4437
Reid Spencer17795972004-11-18 09:47:37 +00004438
4439
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004440
John Criswell7a73b802003-06-30 21:59:07 +00004441# Check whether --enable-shared or --disable-shared was given.
4442if test "${enable_shared+set}" = set; then
4443 enableval="$enable_shared"
4444 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00004445 case $enableval in
4446 yes) enable_shared=yes ;;
4447 no) enable_shared=no ;;
4448 *)
4449 enable_shared=no
4450 # Look at the argument we got. We use all the common list separators.
4451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4452 for pkg in $enableval; do
4453 IFS="$lt_save_ifs"
4454 if test "X$pkg" = "X$p"; then
4455 enable_shared=yes
4456 fi
4457 done
4458 IFS="$lt_save_ifs"
4459 ;;
4460 esac
John Criswell7a73b802003-06-30 21:59:07 +00004461else
4462 enable_shared=yes
4463fi;
John Criswell47fdd832003-07-14 16:52:07 +00004464
John Criswell7a73b802003-06-30 21:59:07 +00004465# Check whether --enable-static or --disable-static was given.
4466if test "${enable_static+set}" = set; then
4467 enableval="$enable_static"
4468 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00004469 case $enableval in
4470 yes) enable_static=yes ;;
4471 no) enable_static=no ;;
4472 *)
4473 enable_static=no
4474 # Look at the argument we got. We use all the common list separators.
4475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4476 for pkg in $enableval; do
4477 IFS="$lt_save_ifs"
4478 if test "X$pkg" = "X$p"; then
4479 enable_static=yes
4480 fi
4481 done
4482 IFS="$lt_save_ifs"
4483 ;;
4484 esac
John Criswell7a73b802003-06-30 21:59:07 +00004485else
4486 enable_static=yes
4487fi;
John Criswell47fdd832003-07-14 16:52:07 +00004488
John Criswell7a73b802003-06-30 21:59:07 +00004489# Check whether --enable-fast-install or --disable-fast-install was given.
4490if test "${enable_fast_install+set}" = set; then
4491 enableval="$enable_fast_install"
4492 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00004493 case $enableval in
4494 yes) enable_fast_install=yes ;;
4495 no) enable_fast_install=no ;;
4496 *)
4497 enable_fast_install=no
4498 # Look at the argument we got. We use all the common list separators.
4499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4500 for pkg in $enableval; do
4501 IFS="$lt_save_ifs"
4502 if test "X$pkg" = "X$p"; then
4503 enable_fast_install=yes
4504 fi
4505 done
4506 IFS="$lt_save_ifs"
4507 ;;
4508 esac
John Criswell7a73b802003-06-30 21:59:07 +00004509else
4510 enable_fast_install=yes
4511fi;
John Criswell47fdd832003-07-14 16:52:07 +00004512
4513echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4514echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4515if test "${lt_cv_path_SED+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518 # Loop through the user's path and test for sed and gsed.
4519# Then use that list of sed's as ones to test for truncation.
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for lt_ac_prog in sed gsed; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4528 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4529 fi
4530 done
4531 done
4532done
4533lt_ac_max=0
4534lt_ac_count=0
4535# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4536# along with /bin/sed that truncates output.
4537for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4538 test ! -f $lt_ac_sed && break
4539 cat /dev/null > conftest.in
4540 lt_ac_count=0
4541 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4542 # Check for GNU sed and select it if it is found.
4543 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4544 lt_cv_path_SED=$lt_ac_sed
4545 break
4546 fi
4547 while true; do
4548 cat conftest.in conftest.in >conftest.tmp
4549 mv conftest.tmp conftest.in
4550 cp conftest.in conftest.nl
4551 echo >>conftest.nl
4552 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4553 cmp -s conftest.out conftest.nl || break
4554 # 10000 chars as input seems more than enough
4555 test $lt_ac_count -gt 10 && break
4556 lt_ac_count=`expr $lt_ac_count + 1`
4557 if test $lt_ac_count -gt $lt_ac_max; then
4558 lt_ac_max=$lt_ac_count
4559 lt_cv_path_SED=$lt_ac_sed
4560 fi
4561 done
4562done
John Criswell47fdd832003-07-14 16:52:07 +00004563
John Criswell7a73b802003-06-30 21:59:07 +00004564fi
4565
Reid Spencer2706f8c2004-09-19 23:53:36 +00004566SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00004567echo "$as_me:$LINENO: result: $SED" >&5
4568echo "${ECHO_T}$SED" >&6
4569
4570echo "$as_me:$LINENO: checking for egrep" >&5
4571echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4572if test "${ac_cv_prog_egrep+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4576 then ac_cv_prog_egrep='grep -E'
4577 else ac_cv_prog_egrep='egrep'
4578 fi
4579fi
4580echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4581echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4582 EGREP=$ac_cv_prog_egrep
4583
4584
John Criswell7a73b802003-06-30 21:59:07 +00004585
4586# Check whether --with-gnu-ld or --without-gnu-ld was given.
4587if test "${with_gnu_ld+set}" = set; then
4588 withval="$with_gnu_ld"
4589 test "$withval" = no || with_gnu_ld=yes
4590else
4591 with_gnu_ld=no
4592fi;
4593ac_prog=ld
4594if test "$GCC" = yes; then
4595 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004596 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4597echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004598 case $host in
4599 *-*-mingw*)
4600 # gcc leaves a trailing carriage return which upsets mingw
4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4602 *)
4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4604 esac
4605 case $ac_prog in
4606 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004607 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004608 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004609 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00004610 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004612 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004613 done
4614 test -z "$LD" && LD="$ac_prog"
4615 ;;
4616 "")
4617 # If it fails, then pretend we aren't using GCC.
4618 ac_prog=ld
4619 ;;
4620 *)
4621 # If it is relative, then search for the first ld in PATH.
4622 with_gnu_ld=unknown
4623 ;;
4624 esac
4625elif test "$with_gnu_ld" = yes; then
4626 echo "$as_me:$LINENO: checking for GNU ld" >&5
4627echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4628else
4629 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4630echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4631fi
4632if test "${lt_cv_path_LD+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004637 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004638 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004639 test -z "$ac_dir" && ac_dir=.
4640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4641 lt_cv_path_LD="$ac_dir/$ac_prog"
4642 # Check to see if the program is GNU ld. I'd rather use --version,
4643 # but apparently some GNU ld's only accept -v.
4644 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4646 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004647 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004648 ;;
4649 *)
John Criswell7a73b802003-06-30 21:59:07 +00004650 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004651 ;;
4652 esac
John Criswell7a73b802003-06-30 21:59:07 +00004653 fi
4654 done
John Criswell47fdd832003-07-14 16:52:07 +00004655 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004656else
4657 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4658fi
4659fi
4660
4661LD="$lt_cv_path_LD"
4662if test -n "$LD"; then
4663 echo "$as_me:$LINENO: result: $LD" >&5
4664echo "${ECHO_T}$LD" >&6
4665else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668fi
4669test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4670echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4671 { (exit 1); exit 1; }; }
4672echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4673echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4674if test "${lt_cv_prog_gnu_ld+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00004678case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00004679*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004680 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004681 ;;
4682*)
John Criswell7a73b802003-06-30 21:59:07 +00004683 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004684 ;;
4685esac
John Criswell7a73b802003-06-30 21:59:07 +00004686fi
4687echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4688echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4689with_gnu_ld=$lt_cv_prog_gnu_ld
4690
4691
4692echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4693echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4694if test "${lt_cv_ld_reload_flag+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697 lt_cv_ld_reload_flag='-r'
4698fi
4699echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4700echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4701reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004702case $reload_flag in
4703"" | " "*) ;;
4704*) reload_flag=" $reload_flag" ;;
4705esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00004706reload_cmds='$LD$reload_flag -o $output$reload_objs'
4707case $host_os in
4708 darwin*)
4709 if test "$GCC" = yes; then
4710 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4711 else
4712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4713 fi
4714 ;;
4715esac
John Criswell7a73b802003-06-30 21:59:07 +00004716
4717echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4718echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4719if test "${lt_cv_path_NM+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 if test -n "$NM"; then
4723 # Let the user override the test.
4724 lt_cv_path_NM="$NM"
4725else
John Criswell47fdd832003-07-14 16:52:07 +00004726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004727 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004728 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004729 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004730 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4731 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004732 # Check to see if the nm accepts a BSD-compat flag.
4733 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4734 # nm: unknown option "B" ignored
4735 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004736 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4737 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004738 lt_cv_path_NM="$tmp_nm -B"
4739 break
John Criswell47fdd832003-07-14 16:52:07 +00004740 ;;
4741 *)
4742 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4743 */dev/null*)
4744 lt_cv_path_NM="$tmp_nm -p"
4745 break
4746 ;;
4747 *)
4748 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4749 continue # so that we can try to find one that supports BSD flags
4750 ;;
4751 esac
4752 esac
John Criswell7a73b802003-06-30 21:59:07 +00004753 fi
4754 done
John Criswell47fdd832003-07-14 16:52:07 +00004755 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004756 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4757fi
4758fi
John Criswell47fdd832003-07-14 16:52:07 +00004759echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4760echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004761NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004762
4763echo "$as_me:$LINENO: checking whether ln -s works" >&5
4764echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4765LN_S=$as_ln_s
4766if test "$LN_S" = "ln -s"; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769else
4770 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4771echo "${ECHO_T}no, using $LN_S" >&6
4772fi
4773
John Criswell47fdd832003-07-14 16:52:07 +00004774echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4775echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004776if test "${lt_cv_deplibs_check_method+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779 lt_cv_file_magic_cmd='$MAGIC_CMD'
4780lt_cv_file_magic_test_file=
4781lt_cv_deplibs_check_method='unknown'
4782# Need to set the preceding variable on all platforms that support
4783# interlibrary dependencies.
4784# 'none' -- dependencies not supported.
4785# `unknown' -- same as none, but documents that we really don't know.
4786# 'pass_all' -- all dependencies passed with no checks.
4787# 'test_compile' -- check by making test program.
4788# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004789# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004790# If you have `file' or equivalent on your system and you're not sure
4791# whether `pass_all' will *always* work, you probably want this one.
4792
4793case $host_os in
4794aix4* | aix5*)
4795 lt_cv_deplibs_check_method=pass_all
4796 ;;
4797
4798beos*)
4799 lt_cv_deplibs_check_method=pass_all
4800 ;;
4801
Reid Spencer2706f8c2004-09-19 23:53:36 +00004802bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00004803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4804 lt_cv_file_magic_cmd='/usr/bin/file -L'
4805 lt_cv_file_magic_test_file=/shlib/libc.so
4806 ;;
4807
Reid Spencer2706f8c2004-09-19 23:53:36 +00004808cygwin*)
4809 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00004810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004811 lt_cv_file_magic_cmd='func_win32_libid'
4812 ;;
4813
4814mingw* | pw32*)
4815 # Base MSYS/MinGW do not provide the 'file' command needed by
4816 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4817 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4818 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004819 ;;
4820
4821darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004822 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004823 ;;
4824
Reid Spencer2706f8c2004-09-19 23:53:36 +00004825freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4827 case $host_cpu in
4828 i*86 )
4829 # Not sure whether the presence of OpenBSD here was a mistake.
4830 # Let's accept both of them until this is cleared up.
4831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4832 lt_cv_file_magic_cmd=/usr/bin/file
4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4834 ;;
4835 esac
4836 else
4837 lt_cv_deplibs_check_method=pass_all
4838 fi
4839 ;;
4840
4841gnu*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
4844
John Criswell47fdd832003-07-14 16:52:07 +00004845hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004846 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004847 case "$host_cpu" in
4848 ia64*)
4849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4850 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4851 ;;
4852 hppa*64*)
4853 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]'
4854 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4855 ;;
4856 *)
4857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4858 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4859 ;;
4860 esac
John Criswell7a73b802003-06-30 21:59:07 +00004861 ;;
4862
John Criswell47fdd832003-07-14 16:52:07 +00004863irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004864 case $LD in
4865 *-32|*"-32 ") libmagic=32-bit;;
4866 *-n32|*"-n32 ") libmagic=N32;;
4867 *-64|*"-64 ") libmagic=64-bit;;
4868 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004869 esac
John Criswell7a73b802003-06-30 21:59:07 +00004870 lt_cv_deplibs_check_method=pass_all
4871 ;;
4872
4873# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004874linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004875 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004876 ;;
4877
4878netbsd*)
4879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004881 else
John Criswell47fdd832003-07-14 16:52:07 +00004882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004883 fi
4884 ;;
4885
4886newos6*)
4887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4888 lt_cv_file_magic_cmd=/usr/bin/file
4889 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4890 ;;
4891
Reid Spencer2706f8c2004-09-19 23:53:36 +00004892nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004893 lt_cv_deplibs_check_method=unknown
4894 ;;
4895
John Criswell7a73b802003-06-30 21:59:07 +00004896openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004899 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004901 fi
4902 ;;
4903
4904osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004905 lt_cv_deplibs_check_method=pass_all
4906 ;;
4907
4908sco3.2v5*)
4909 lt_cv_deplibs_check_method=pass_all
4910 ;;
4911
4912solaris*)
4913 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004914 ;;
4915
John Criswell7a73b802003-06-30 21:59:07 +00004916sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4917 case $host_vendor in
4918 motorola)
4919 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]'
4920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4921 ;;
4922 ncr)
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925 sequent)
4926 lt_cv_file_magic_cmd='/bin/file'
4927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4928 ;;
4929 sni)
4930 lt_cv_file_magic_cmd='/bin/file'
4931 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4932 lt_cv_file_magic_test_file=/lib/libc.so
4933 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004934 siemens)
4935 lt_cv_deplibs_check_method=pass_all
4936 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004937 esac
4938 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004939
4940sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004943esac
4944
4945fi
4946echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4947echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4948file_magic_cmd=$lt_cv_file_magic_cmd
4949deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004950test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004951
4952
4953
4954
John Criswell47fdd832003-07-14 16:52:07 +00004955# If no C compiler was specified, use CC.
4956LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004957
John Criswell47fdd832003-07-14 16:52:07 +00004958# Allow CC to be a program name with arguments.
4959compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004960
John Criswell47fdd832003-07-14 16:52:07 +00004961# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4962if test "${enable_libtool_lock+set}" = set; then
4963 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004964
John Criswell47fdd832003-07-14 16:52:07 +00004965fi;
4966test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004967
John Criswell47fdd832003-07-14 16:52:07 +00004968# Some flags need to be propagated to the compiler or linker for good
4969# libtool support.
4970case $host in
4971ia64-*-hpux*)
4972 # Find out which ABI we are using.
4973 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004979 case `/usr/bin/file conftest.$ac_objext` in
4980 *ELF-32*)
4981 HPUX_IA64_MODE="32"
4982 ;;
4983 *ELF-64*)
4984 HPUX_IA64_MODE="64"
4985 ;;
4986 esac
4987 fi
4988 rm -rf conftest*
4989 ;;
4990*-*-irix6*)
4991 # Find out which ABI we are using.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004992 echo '#line 4992 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004997 (exit $ac_status); }; then
4998 if test "$lt_cv_prog_gnu_ld" = yes; then
4999 case `/usr/bin/file conftest.$ac_objext` in
5000 *32-bit*)
5001 LD="${LD-ld} -melf32bsmip"
5002 ;;
5003 *N32*)
5004 LD="${LD-ld} -melf32bmipn32"
5005 ;;
5006 *64-bit*)
5007 LD="${LD-ld} -melf64bmip"
5008 ;;
5009 esac
5010 else
5011 case `/usr/bin/file conftest.$ac_objext` in
5012 *32-bit*)
5013 LD="${LD-ld} -32"
5014 ;;
5015 *N32*)
5016 LD="${LD-ld} -n32"
5017 ;;
5018 *64-bit*)
5019 LD="${LD-ld} -64"
5020 ;;
5021 esac
5022 fi
5023 fi
5024 rm -rf conftest*
5025 ;;
John Criswell7a73b802003-06-30 21:59:07 +00005026
John Criswell47fdd832003-07-14 16:52:07 +00005027x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5028 # Find out which ABI we are using.
5029 echo 'int i;' > conftest.$ac_ext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; then
5035 case "`/usr/bin/file conftest.o`" in
5036 *32-bit*)
5037 case $host in
5038 x86_64-*linux*)
5039 LD="${LD-ld} -m elf_i386"
5040 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005041 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00005042 LD="${LD-ld} -m elf32ppclinux"
5043 ;;
5044 s390x-*linux*)
5045 LD="${LD-ld} -m elf_s390"
5046 ;;
5047 sparc64-*linux*)
5048 LD="${LD-ld} -m elf32_sparc"
5049 ;;
5050 esac
5051 ;;
5052 *64-bit*)
5053 case $host in
5054 x86_64-*linux*)
5055 LD="${LD-ld} -m elf_x86_64"
5056 ;;
5057 ppc*-*linux*|powerpc*-*linux*)
5058 LD="${LD-ld} -m elf64ppc"
5059 ;;
5060 s390*-*linux*)
5061 LD="${LD-ld} -m elf64_s390"
5062 ;;
5063 sparc*-*linux*)
5064 LD="${LD-ld} -m elf64_sparc"
5065 ;;
5066 esac
5067 ;;
5068 esac
5069 fi
5070 rm -rf conftest*
5071 ;;
5072
5073*-*-sco3.2v5*)
5074 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5075 SAVE_CFLAGS="$CFLAGS"
5076 CFLAGS="$CFLAGS -belf"
5077 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5078echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5079if test "${lt_cv_cc_needs_belf+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082 ac_ext=c
5083ac_cpp='$CPP $CPPFLAGS'
5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005094
John Criswell47fdd832003-07-14 16:52:07 +00005095_ACEOF
5096rm -f conftest.$ac_objext conftest$ac_exeext
5097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005098 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005104 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00005119else
John Criswell47fdd832003-07-14 16:52:07 +00005120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005121sed 's/^/| /' conftest.$ac_ext >&5
5122
John Criswell47fdd832003-07-14 16:52:07 +00005123lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00005124fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005125rm -f conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005127 ac_ext=c
5128ac_cpp='$CPP $CPPFLAGS'
5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
John Criswell7a73b802003-06-30 21:59:07 +00005133fi
John Criswell47fdd832003-07-14 16:52:07 +00005134echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5135echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5136 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5137 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5138 CFLAGS="$SAVE_CFLAGS"
5139 fi
5140 ;;
5141
5142esac
5143
5144need_locks="$enable_libtool_lock"
5145
John Criswell7a73b802003-06-30 21:59:07 +00005146
5147
5148echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5149echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5150if test "${ac_cv_header_stdc+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005154/* confdefs.h. */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005159#include <stdlib.h>
5160#include <stdarg.h>
5161#include <string.h>
5162#include <float.h>
5163
John Criswell0c38eaf2003-09-10 15:17:25 +00005164int
5165main ()
5166{
5167
5168 ;
5169 return 0;
5170}
John Criswell7a73b802003-06-30 21:59:07 +00005171_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005172rm -f conftest.$ac_objext
5173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005174 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005180 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005181 { ac_try='test -z "$ac_c_werror_flag"
5182 || test ! -s conftest.err'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005194 ac_cv_header_stdc=yes
5195else
5196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005200fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005202
5203if test $ac_cv_header_stdc = yes; then
5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005211#include <string.h>
5212
5213_ACEOF
5214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005215 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005216 :
5217else
5218 ac_cv_header_stdc=no
5219fi
5220rm -f conftest*
5221
5222fi
5223
5224if test $ac_cv_header_stdc = yes; then
5225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005232#include <stdlib.h>
5233
5234_ACEOF
5235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005236 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005237 :
5238else
5239 ac_cv_header_stdc=no
5240fi
5241rm -f conftest*
5242
5243fi
5244
5245if test $ac_cv_header_stdc = yes; then
5246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247 if test "$cross_compiling" = yes; then
5248 :
5249else
5250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005251/* confdefs.h. */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005256#include <ctype.h>
5257#if ((' ' & 0x0FF) == 0x020)
5258# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5259# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5260#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005261# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005262 (('a' <= (c) && (c) <= 'i') \
5263 || ('j' <= (c) && (c) <= 'r') \
5264 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005265# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5266#endif
5267
5268#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5269int
5270main ()
5271{
5272 int i;
5273 for (i = 0; i < 256; i++)
5274 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005275 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005276 exit(2);
5277 exit (0);
5278}
5279_ACEOF
5280rm -f conftest$ac_exeext
5281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 :
5292else
5293 echo "$as_me: program exited with status $ac_status" >&5
5294echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005295sed 's/^/| /' conftest.$ac_ext >&5
5296
John Criswell7a73b802003-06-30 21:59:07 +00005297( exit $ac_status )
5298ac_cv_header_stdc=no
5299fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005301fi
5302fi
5303fi
5304echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5305echo "${ECHO_T}$ac_cv_header_stdc" >&6
5306if test $ac_cv_header_stdc = yes; then
5307
5308cat >>confdefs.h <<\_ACEOF
5309#define STDC_HEADERS 1
5310_ACEOF
5311
5312fi
5313
5314# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005325 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00005326do
5327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328echo "$as_me:$LINENO: checking for $ac_header" >&5
5329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005334/* confdefs.h. */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005339$ac_includes_default
5340
5341#include <$ac_header>
5342_ACEOF
5343rm -f conftest.$ac_objext
5344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005345 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005352 { ac_try='test -z "$ac_c_werror_flag"
5353 || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00005360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 eval "$as_ac_Header=yes"
5366else
5367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005368sed 's/^/| /' conftest.$ac_ext >&5
5369
John Criswell7a73b802003-06-30 21:59:07 +00005370eval "$as_ac_Header=no"
5371fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005373fi
5374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5376if test `eval echo '${'$as_ac_Header'}'` = yes; then
5377 cat >>confdefs.h <<_ACEOF
5378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379_ACEOF
5380
5381fi
5382
5383done
5384
5385
5386
5387for ac_header in dlfcn.h
5388do
5389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00005390if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00005392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5393if eval "test \"\${$as_ac_Header+set}\" = set"; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00005395fi
5396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005398else
Brian Gaeke0a621332004-09-08 20:38:05 +00005399 # Is the header compilable?
5400echo "$as_me:$LINENO: checking $ac_header usability" >&5
5401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5402cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005408$ac_includes_default
5409#include <$ac_header>
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005413 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005420 { ac_try='test -z "$ac_c_werror_flag"
5421 || test ! -s conftest.err'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; } &&
5427 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00005428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00005433 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00005434else
5435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005436sed 's/^/| /' conftest.$ac_ext >&5
5437
Brian Gaeke0a621332004-09-08 20:38:05 +00005438ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00005439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00005441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5442echo "${ECHO_T}$ac_header_compiler" >&6
5443
5444# Is the header present?
5445echo "$as_me:$LINENO: checking $ac_header presence" >&5
5446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5447cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00005448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
5453#include <$ac_header>
5454_ACEOF
5455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } >/dev/null; then
5463 if test -s conftest.err; then
5464 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00005466 else
5467 ac_cpp_err=
5468 fi
5469else
5470 ac_cpp_err=yes
5471fi
5472if test -z "$ac_cpp_err"; then
5473 ac_header_preproc=yes
5474else
5475 echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_header_preproc=no
5479fi
5480rm -f conftest.err conftest.$ac_ext
5481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5482echo "${ECHO_T}$ac_header_preproc" >&6
5483
5484# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5486 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00005487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00005489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5491 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00005492 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005493 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00005494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00005496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00005502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00005504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00005506 (
5507 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00005508## ----------------------------------- ##
5509## Report this to llvmbugs@cs.uiuc.edu ##
5510## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00005511_ASBOX
5512 ) |
5513 sed "s/^/$as_me: WARNING: /" >&2
5514 ;;
5515esac
5516echo "$as_me:$LINENO: checking for $ac_header" >&5
5517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005521 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00005522fi
5523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00005525
5526fi
John Criswell7a73b802003-06-30 21:59:07 +00005527if test `eval echo '${'$as_ac_Header'}'` = yes; then
5528 cat >>confdefs.h <<_ACEOF
5529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5530_ACEOF
5531
5532fi
5533
5534done
5535
Reid Spencer2706f8c2004-09-19 23:53:36 +00005536
5537
5538if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5540 (test "X$CXX" != "Xg++"))) ; then
5541 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00005542ac_cpp='$CXXCPP $CPPFLAGS'
5543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5546echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5547echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5548if test -z "$CXXCPP"; then
5549 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
John Criswell47fdd832003-07-14 16:52:07 +00005552 # Double quotes because CXXCPP needs to be expanded
5553 for CXXCPP in "$CXX -E" "/lib/cpp"
5554 do
5555 ac_preproc_ok=false
5556for ac_cxx_preproc_warn_flag in '' yes
5557do
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h. */
5570#ifdef __STDC__
5571# include <limits.h>
5572#else
5573# include <assert.h>
5574#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00005575 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00005576_ACEOF
5577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5579 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005580 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } >/dev/null; then
5585 if test -s conftest.err; then
5586 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00005588 else
John Criswell47fdd832003-07-14 16:52:07 +00005589 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00005590 fi
John Criswell47fdd832003-07-14 16:52:07 +00005591else
5592 ac_cpp_err=yes
5593fi
5594if test -z "$ac_cpp_err"; then
5595 :
5596else
5597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005598sed 's/^/| /' conftest.$ac_ext >&5
5599
John Criswell47fdd832003-07-14 16:52:07 +00005600 # Broken: fails on valid input.
5601continue
5602fi
5603rm -f conftest.err conftest.$ac_ext
5604
5605 # OK, works on sane cases. Now check whether non-existent headers
5606 # can be detected and how.
5607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005613#include <ac_nonexistent.h>
5614_ACEOF
5615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5617 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005618 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null; then
5623 if test -s conftest.err; then
5624 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005625 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005626 else
5627 ac_cpp_err=
5628 fi
5629else
5630 ac_cpp_err=yes
5631fi
5632if test -z "$ac_cpp_err"; then
5633 # Broken: success on invalid input.
5634continue
5635else
5636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005637sed 's/^/| /' conftest.$ac_ext >&5
5638
John Criswell47fdd832003-07-14 16:52:07 +00005639 # Passes both tests.
5640ac_preproc_ok=:
5641break
5642fi
5643rm -f conftest.err conftest.$ac_ext
5644
5645done
5646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647rm -f conftest.err conftest.$ac_ext
5648if $ac_preproc_ok; then
5649 break
John Criswell7a73b802003-06-30 21:59:07 +00005650fi
5651
John Criswell47fdd832003-07-14 16:52:07 +00005652 done
5653 ac_cv_prog_CXXCPP=$CXXCPP
5654
5655fi
5656 CXXCPP=$ac_cv_prog_CXXCPP
5657else
5658 ac_cv_prog_CXXCPP=$CXXCPP
5659fi
5660echo "$as_me:$LINENO: result: $CXXCPP" >&5
5661echo "${ECHO_T}$CXXCPP" >&6
5662ac_preproc_ok=false
5663for ac_cxx_preproc_warn_flag in '' yes
5664do
5665 # Use a header file that comes with gcc, so configuring glibc
5666 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5668 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005669 # On the NeXT, cc -E runs the code through the compiler's parser,
5670 # not just through cpp. "Syntax error" is here to catch this case.
5671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677#ifdef __STDC__
5678# include <limits.h>
5679#else
5680# include <assert.h>
5681#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00005682 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00005683_ACEOF
5684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5686 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005687 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } >/dev/null; then
5692 if test -s conftest.err; then
5693 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005695 else
5696 ac_cpp_err=
5697 fi
5698else
5699 ac_cpp_err=yes
5700fi
5701if test -z "$ac_cpp_err"; then
5702 :
5703else
5704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005705sed 's/^/| /' conftest.$ac_ext >&5
5706
John Criswell47fdd832003-07-14 16:52:07 +00005707 # Broken: fails on valid input.
5708continue
5709fi
5710rm -f conftest.err conftest.$ac_ext
5711
5712 # OK, works on sane cases. Now check whether non-existent headers
5713 # can be detected and how.
5714 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005720#include <ac_nonexistent.h>
5721_ACEOF
5722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5724 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005725 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } >/dev/null; then
5730 if test -s conftest.err; then
5731 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005733 else
5734 ac_cpp_err=
5735 fi
5736else
5737 ac_cpp_err=yes
5738fi
5739if test -z "$ac_cpp_err"; then
5740 # Broken: success on invalid input.
5741continue
5742else
5743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005744sed 's/^/| /' conftest.$ac_ext >&5
5745
John Criswell47fdd832003-07-14 16:52:07 +00005746 # Passes both tests.
5747ac_preproc_ok=:
5748break
5749fi
5750rm -f conftest.err conftest.$ac_ext
5751
5752done
5753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754rm -f conftest.err conftest.$ac_ext
5755if $ac_preproc_ok; then
5756 :
5757else
John Criswell0c38eaf2003-09-10 15:17:25 +00005758 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5759See \`config.log' for more details." >&5
5760echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5761See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005762 { (exit 1); exit 1; }; }
5763fi
5764
5765ac_ext=cc
5766ac_cpp='$CXXCPP $CPPFLAGS'
5767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5770
Reid Spencer2706f8c2004-09-19 23:53:36 +00005771fi
5772
John Criswell47fdd832003-07-14 16:52:07 +00005773
5774ac_ext=f
5775ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5776ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5778if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005779 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 +00005780 do
5781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5782set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5783echo "$as_me:$LINENO: checking for $ac_word" >&5
5784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785if test "${ac_cv_prog_F77+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 if test -n "$F77"; then
5789 ac_cv_prog_F77="$F77" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803done
5804
5805fi
5806fi
5807F77=$ac_cv_prog_F77
5808if test -n "$F77"; then
5809 echo "$as_me:$LINENO: result: $F77" >&5
5810echo "${ECHO_T}$F77" >&6
5811else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814fi
5815
5816 test -n "$F77" && break
5817 done
5818fi
5819if test -z "$F77"; then
5820 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005821 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 +00005822do
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824set dummy $ac_prog; ac_word=$2
5825echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 if test -n "$ac_ct_F77"; then
5831 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_ac_ct_F77="$ac_prog"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845done
5846
5847fi
5848fi
5849ac_ct_F77=$ac_cv_prog_ac_ct_F77
5850if test -n "$ac_ct_F77"; then
5851 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5852echo "${ECHO_T}$ac_ct_F77" >&6
5853else
5854 echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
5856fi
5857
5858 test -n "$ac_ct_F77" && break
5859done
5860
5861 F77=$ac_ct_F77
5862fi
5863
5864
5865# Provide some information about the compiler.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00005866echo "$as_me:5866:" \
John Criswell47fdd832003-07-14 16:52:07 +00005867 "checking for Fortran 77 compiler version" >&5
5868ac_compiler=`set X $ac_compile; echo $2`
5869{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5870 (eval $ac_compiler --version </dev/null >&5) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }
5874{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5875 (eval $ac_compiler -v </dev/null >&5) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5879{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5880 (eval $ac_compiler -V </dev/null >&5) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005884rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005885
5886# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005887# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005888ac_save_ext=$ac_ext
5889ac_ext=F
5890echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5891echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5892if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 cat >conftest.$ac_ext <<_ACEOF
5896 program main
5897#ifndef __GNUC__
5898 choke me
5899#endif
5900
5901 end
5902_ACEOF
5903rm -f conftest.$ac_objext
5904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005905 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005912 { ac_try='test -z "$ac_f77_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_compiler_gnu=yes
5926else
5927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005928sed 's/^/| /' conftest.$ac_ext >&5
5929
John Criswell47fdd832003-07-14 16:52:07 +00005930ac_compiler_gnu=no
5931fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005933ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5934
5935fi
5936echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5937echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5938ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005939ac_test_FFLAGS=${FFLAGS+set}
5940ac_save_FFLAGS=$FFLAGS
5941FFLAGS=
5942echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5943echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5944if test "${ac_cv_prog_f77_g+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 FFLAGS=-g
5948cat >conftest.$ac_ext <<_ACEOF
5949 program main
5950
5951 end
5952_ACEOF
5953rm -f conftest.$ac_objext
5954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005955 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005962 { ac_try='test -z "$ac_f77_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_cv_prog_f77_g=yes
5976else
5977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005978sed 's/^/| /' conftest.$ac_ext >&5
5979
John Criswell47fdd832003-07-14 16:52:07 +00005980ac_cv_prog_f77_g=no
5981fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005983
5984fi
5985echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5986echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5987if test "$ac_test_FFLAGS" = set; then
5988 FFLAGS=$ac_save_FFLAGS
5989elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005990 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005991 FFLAGS="-g -O2"
5992 else
5993 FFLAGS="-g"
5994 fi
5995else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005996 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005997 FFLAGS="-O2"
5998 else
5999 FFLAGS=
6000 fi
6001fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006002
6003G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00006004ac_ext=c
6005ac_cpp='$CPP $CPPFLAGS'
6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011
6012# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6013
6014# find the maximum length of command line arguments
6015echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6016echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6017if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00006021 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00006022
6023 case $build_os in
6024 msdosdjgpp*)
6025 # On DJGPP, this test can blow up pretty badly due to problems in libc
6026 # (any single argument exceeding 2000 bytes causes a buffer overrun
6027 # during glob expansion). Even if it were fixed, the result of this
6028 # check would be larger than it should be.
6029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6030 ;;
6031
6032 gnu*)
6033 # Under GNU Hurd, this test is not required because there is
6034 # no limit to the length of command line arguments.
6035 # Libtool will interpret -1 as no limit whatsoever
6036 lt_cv_sys_max_cmd_len=-1;
6037 ;;
6038
6039 cygwin* | mingw*)
6040 # On Win9x/ME, this test blows up -- it succeeds, but takes
6041 # about 5 minutes as the teststring grows exponentially.
6042 # Worse, since 9x/ME are not pre-emptively multitasking,
6043 # you end up with a "frozen" computer, even though with patience
6044 # the test eventually succeeds (with a max line length of 256k).
6045 # Instead, let's just punt: use the minimum linelength reported by
6046 # all of the supported platforms: 8192 (on NT/2K/XP).
6047 lt_cv_sys_max_cmd_len=8192;
6048 ;;
6049
Reid Spencer2706f8c2004-09-19 23:53:36 +00006050 amigaos*)
6051 # On AmigaOS with pdksh, this test takes hours, literally.
6052 # So we just punt and use a minimum line length of 8192.
6053 lt_cv_sys_max_cmd_len=8192;
6054 ;;
6055
6056 netbsd* | freebsd* | openbsd* | darwin* )
6057 # This has been around since 386BSD, at least. Likely further.
6058 if test -x /sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6060 elif test -x /usr/sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6062 else
6063 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6064 fi
6065 # And add a safety zone
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 ;;
6068
John Criswell47fdd832003-07-14 16:52:07 +00006069 *)
6070 # If test is not a shell built-in, we'll probably end up computing a
6071 # maximum length that is only half of the actual maximum length, but
6072 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6075 = "XX$teststring") >/dev/null 2>&1 &&
6076 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00006077 lt_cv_sys_max_cmd_len=$new_result &&
6078 test $i != 17 # 1/2 MB should be enough
6079 do
6080 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00006081 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00006082 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00006083 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00006084 # Add a significant safety factor because C++ compilers can tack on massive
6085 # amounts of additional arguments before passing them to the linker.
6086 # It appears as though 1/2 is a usable value.
6087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6088 ;;
6089 esac
6090
6091fi
6092
6093if test -n $lt_cv_sys_max_cmd_len ; then
6094 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6095echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6096else
6097 echo "$as_me:$LINENO: result: none" >&5
6098echo "${ECHO_T}none" >&6
6099fi
6100
6101
6102
6103
6104# Check for command to grab the raw symbol name followed by C symbol from nm.
6105echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6106echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6107if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110
6111# These are sane defaults that work on at least a few old systems.
6112# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6113
6114# Character class describing NM global symbol codes.
6115symcode='[BCDEGRST]'
6116
6117# Regexp to match symbols that can be accessed directly from C.
6118sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6119
6120# Transform the above into a raw symbol and a C symbol.
6121symxfrm='\1 \2\3 \3'
6122
6123# Transform an extracted symbol line into a proper C declaration
6124lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6125
6126# Transform an extracted symbol line into symbol name and symbol address
6127lt_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'"
6128
6129# Define system-specific variables.
6130case $host_os in
6131aix*)
6132 symcode='[BCDT]'
6133 ;;
6134cygwin* | mingw* | pw32*)
6135 symcode='[ABCDGISTW]'
6136 ;;
6137hpux*) # Its linker distinguishes data from code symbols
6138 if test "$host_cpu" = ia64; then
6139 symcode='[ABCDEGRST]'
6140 fi
6141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142 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'"
6143 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006144linux*)
6145 if test "$host_cpu" = ia64; then
6146 symcode='[ABCDGIRSTW]'
6147 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6148 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'"
6149 fi
6150 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006151irix* | nonstopux*)
6152 symcode='[BCDEGRST]'
6153 ;;
6154osf*)
6155 symcode='[BCDEGQRST]'
6156 ;;
6157solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006158 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00006159 ;;
6160sysv4)
6161 symcode='[DFNSTU]'
6162 ;;
6163esac
6164
6165# Handle CRLF in mingw tool chain
6166opt_cr=
6167case $build_os in
6168mingw*)
6169 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6170 ;;
6171esac
6172
6173# If we're using GNU nm, then use its standard symbol codes.
6174case `$NM -V 2>&1` in
6175*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006176 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00006177esac
6178
6179# Try without a prefix undercore, then with it.
6180for ac_symprfx in "" "_"; do
6181
6182 # Write the raw and C identifiers.
6183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6184
6185 # Check to see that the pipe works correctly.
6186 pipe_works=no
6187
6188 rm -f conftest*
6189 cat > conftest.$ac_ext <<EOF
6190#ifdef __cplusplus
6191extern "C" {
6192#endif
6193char nm_test_var;
6194void nm_test_func(){}
6195#ifdef __cplusplus
6196}
6197#endif
6198int main(){nm_test_var='a';nm_test_func();return(0);}
6199EOF
6200
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; then
6206 # Now try to grab the symbols.
6207 nlist=conftest.nm
6208 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6209 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && test -s "$nlist"; then
6213 # Try sorting and uniquifying the output.
6214 if sort "$nlist" | uniq > "$nlist"T; then
6215 mv -f "$nlist"T "$nlist"
6216 else
6217 rm -f "$nlist"T
6218 fi
6219
6220 # Make sure that we snagged all the symbols we need.
6221 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6222 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6223 cat <<EOF > conftest.$ac_ext
6224#ifdef __cplusplus
6225extern "C" {
6226#endif
6227
6228EOF
6229 # Now generate the symbol file.
6230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6231
6232 cat <<EOF >> conftest.$ac_ext
6233#if defined (__STDC__) && __STDC__
6234# define lt_ptr_t void *
6235#else
6236# define lt_ptr_t char *
6237# define const
6238#endif
6239
6240/* The mapping between symbol names and symbols. */
6241const struct {
6242 const char *name;
6243 lt_ptr_t address;
6244}
6245lt_preloaded_symbols[] =
6246{
6247EOF
6248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6249 cat <<\EOF >> conftest.$ac_ext
6250 {0, (lt_ptr_t) 0}
6251};
6252
6253#ifdef __cplusplus
6254}
6255#endif
6256EOF
6257 # Now try linking the two files.
6258 mv conftest.$ac_objext conftstm.$ac_objext
6259 lt_save_LIBS="$LIBS"
6260 lt_save_CFLAGS="$CFLAGS"
6261 LIBS="conftstm.$ac_objext"
6262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6268 pipe_works=yes
6269 fi
6270 LIBS="$lt_save_LIBS"
6271 CFLAGS="$lt_save_CFLAGS"
6272 else
6273 echo "cannot find nm_test_func in $nlist" >&5
6274 fi
6275 else
6276 echo "cannot find nm_test_var in $nlist" >&5
6277 fi
6278 else
6279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6280 fi
6281 else
6282 echo "$progname: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6284 fi
6285 rm -f conftest* conftst*
6286
6287 # Do not use the global_symbol_pipe unless it works.
6288 if test "$pipe_works" = yes; then
6289 break
6290 else
6291 lt_cv_sys_global_symbol_pipe=
6292 fi
6293done
6294
6295fi
6296
6297if test -z "$lt_cv_sys_global_symbol_pipe"; then
6298 lt_cv_sys_global_symbol_to_cdecl=
6299fi
6300if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6301 echo "$as_me:$LINENO: result: failed" >&5
6302echo "${ECHO_T}failed" >&6
6303else
6304 echo "$as_me:$LINENO: result: ok" >&5
6305echo "${ECHO_T}ok" >&6
6306fi
6307
6308echo "$as_me:$LINENO: checking for objdir" >&5
6309echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6310if test "${lt_cv_objdir+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313 rm -f .libs 2>/dev/null
6314mkdir .libs 2>/dev/null
6315if test -d .libs; then
6316 lt_cv_objdir=.libs
6317else
6318 # MS-DOS does not allow filenames that begin with a dot.
6319 lt_cv_objdir=_libs
6320fi
6321rmdir .libs 2>/dev/null
6322fi
6323echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6324echo "${ECHO_T}$lt_cv_objdir" >&6
6325objdir=$lt_cv_objdir
6326
6327
6328
6329
6330
6331case $host_os in
6332aix3*)
6333 # AIX sometimes has problems with the GCC collect2 program. For some
6334 # reason, if we set the COLLECT_NAMES environment variable, the problems
6335 # vanish in a puff of smoke.
6336 if test "X${COLLECT_NAMES+set}" != Xset; then
6337 COLLECT_NAMES=
6338 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00006339 fi
6340 ;;
6341esac
6342
John Criswell47fdd832003-07-14 16:52:07 +00006343# Sed substitution that helps us do robust quoting. It backslashifies
6344# metacharacters that are still active within double-quoted strings.
6345Xsed='sed -e s/^X//'
6346sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6347
6348# Same as above, but do not quote variable references.
6349double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6350
6351# Sed substitution to delay expansion of an escaped shell variable in a
6352# double_quote_subst'ed string.
6353delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6354
6355# Sed substitution to avoid accidental globbing in evaled expressions
6356no_glob_subst='s/\*/\\\*/g'
6357
6358# Constants:
6359rm="rm -f"
6360
6361# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00006362default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00006363can_build_shared=yes
6364
6365# All known linkers require a `.a' archive for static linking (except M$VC,
6366# which needs '.lib').
6367libext=a
6368ltmain="$ac_aux_dir/ltmain.sh"
6369ofile="$default_ofile"
6370with_gnu_ld="$lt_cv_prog_gnu_ld"
6371
6372if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}ar; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_AR+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 if test -n "$AR"; then
6381 ac_cv_prog_AR="$AR" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_AR="${ac_tool_prefix}ar"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395done
6396
6397fi
6398fi
6399AR=$ac_cv_prog_AR
6400if test -n "$AR"; then
6401 echo "$as_me:$LINENO: result: $AR" >&5
6402echo "${ECHO_T}$AR" >&6
6403else
6404 echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408fi
6409if test -z "$ac_cv_prog_AR"; then
6410 ac_ct_AR=$AR
6411 # Extract the first word of "ar", so it can be a program name with args.
6412set dummy ar; ac_word=$2
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 if test -n "$ac_ct_AR"; then
6419 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_AR="ar"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434
6435 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6436fi
6437fi
6438ac_ct_AR=$ac_cv_prog_ac_ct_AR
6439if test -n "$ac_ct_AR"; then
6440 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6441echo "${ECHO_T}$ac_ct_AR" >&6
6442else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445fi
6446
6447 AR=$ac_ct_AR
6448else
6449 AR="$ac_cv_prog_AR"
6450fi
6451
John Criswell7a73b802003-06-30 21:59:07 +00006452if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6454set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6455echo "$as_me:$LINENO: checking for $ac_word" >&5
6456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6457if test "${ac_cv_prog_RANLIB+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460 if test -n "$RANLIB"; then
6461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474done
6475done
6476
6477fi
6478fi
6479RANLIB=$ac_cv_prog_RANLIB
6480if test -n "$RANLIB"; then
6481 echo "$as_me:$LINENO: result: $RANLIB" >&5
6482echo "${ECHO_T}$RANLIB" >&6
6483else
6484 echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486fi
6487
6488fi
6489if test -z "$ac_cv_prog_RANLIB"; then
6490 ac_ct_RANLIB=$RANLIB
6491 # Extract the first word of "ranlib", so it can be a program name with args.
6492set dummy ranlib; ac_word=$2
6493echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498 if test -n "$ac_ct_RANLIB"; then
6499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_ac_ct_RANLIB="ranlib"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512done
6513done
6514
6515 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6516fi
6517fi
6518ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6519if test -n "$ac_ct_RANLIB"; then
6520 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6521echo "${ECHO_T}$ac_ct_RANLIB" >&6
6522else
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
6525fi
6526
6527 RANLIB=$ac_ct_RANLIB
6528else
6529 RANLIB="$ac_cv_prog_RANLIB"
6530fi
6531
6532if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6534set dummy ${ac_tool_prefix}strip; ac_word=$2
6535echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537if test "${ac_cv_prog_STRIP+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 if test -n "$STRIP"; then
6541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554done
6555done
6556
6557fi
6558fi
6559STRIP=$ac_cv_prog_STRIP
6560if test -n "$STRIP"; then
6561 echo "$as_me:$LINENO: result: $STRIP" >&5
6562echo "${ECHO_T}$STRIP" >&6
6563else
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
6566fi
6567
6568fi
6569if test -z "$ac_cv_prog_STRIP"; then
6570 ac_ct_STRIP=$STRIP
6571 # Extract the first word of "strip", so it can be a program name with args.
6572set dummy strip; ac_word=$2
6573echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6575if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 if test -n "$ac_ct_STRIP"; then
6579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_STRIP="strip"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592done
6593done
6594
6595 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6596fi
6597fi
6598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6599if test -n "$ac_ct_STRIP"; then
6600 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6601echo "${ECHO_T}$ac_ct_STRIP" >&6
6602else
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605fi
6606
6607 STRIP=$ac_ct_STRIP
6608else
6609 STRIP="$ac_cv_prog_STRIP"
6610fi
6611
6612
John Criswell7a73b802003-06-30 21:59:07 +00006613old_CC="$CC"
6614old_CFLAGS="$CFLAGS"
6615
6616# Set sane defaults for various variables
6617test -z "$AR" && AR=ar
6618test -z "$AR_FLAGS" && AR_FLAGS=cru
6619test -z "$AS" && AS=as
6620test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00006621test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00006622test -z "$DLLTOOL" && DLLTOOL=dlltool
6623test -z "$LD" && LD=ld
6624test -z "$LN_S" && LN_S="ln -s"
6625test -z "$MAGIC_CMD" && MAGIC_CMD=file
6626test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00006627test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00006628test -z "$OBJDUMP" && OBJDUMP=objdump
6629test -z "$RANLIB" && RANLIB=:
6630test -z "$STRIP" && STRIP=:
6631test -z "$ac_objext" && ac_objext=o
6632
John Criswell7a73b802003-06-30 21:59:07 +00006633# Determine commands to create old-style static archives.
6634old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6635old_postinstall_cmds='chmod 644 $oldlib'
6636old_postuninstall_cmds=
6637
6638if test -n "$RANLIB"; then
6639 case $host_os in
6640 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006641 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00006642 ;;
6643 *)
Reid Spencer177dbe22004-10-13 01:01:03 +00006644 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00006645 ;;
6646 esac
Reid Spencer177dbe22004-10-13 01:01:03 +00006647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00006648fi
6649
Reid Spencer2706f8c2004-09-19 23:53:36 +00006650cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6651
John Criswell47fdd832003-07-14 16:52:07 +00006652# Only perform the check for file, if the check method requires it
6653case $deplibs_check_method in
6654file_magic*)
6655 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6656 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6657echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6658if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006660else
John Criswell47fdd832003-07-14 16:52:07 +00006661 case $MAGIC_CMD in
6662[\\/*] | ?:[\\/]*)
6663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6664 ;;
6665*)
6666 lt_save_MAGIC_CMD="$MAGIC_CMD"
6667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6669 for ac_dir in $ac_dummy; do
6670 IFS="$lt_save_ifs"
6671 test -z "$ac_dir" && ac_dir=.
6672 if test -f $ac_dir/${ac_tool_prefix}file; then
6673 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6674 if test -n "$file_magic_test_file"; then
6675 case $deplibs_check_method in
6676 "file_magic "*)
6677 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6680 $EGREP "$file_magic_regex" > /dev/null; then
6681 :
6682 else
6683 cat <<EOF 1>&2
6684
6685*** Warning: the command libtool uses to detect shared libraries,
6686*** $file_magic_cmd, produces output that libtool cannot recognize.
6687*** The result is that libtool may fail to recognize shared libraries
6688*** as such. This will affect the creation of libtool libraries that
6689*** depend on shared libraries, but programs linked with such libtool
6690*** libraries will work regardless of this problem. Nevertheless, you
6691*** may want to report the problem to your system manager and/or to
6692*** bug-libtool@gnu.org
6693
6694EOF
6695 fi ;;
6696 esac
6697 fi
6698 break
6699 fi
6700 done
6701 IFS="$lt_save_ifs"
6702 MAGIC_CMD="$lt_save_MAGIC_CMD"
6703 ;;
6704esac
John Criswell7a73b802003-06-30 21:59:07 +00006705fi
John Criswell7a73b802003-06-30 21:59:07 +00006706
John Criswell47fdd832003-07-14 16:52:07 +00006707MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6708if test -n "$MAGIC_CMD"; then
6709 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6710echo "${ECHO_T}$MAGIC_CMD" >&6
6711else
6712 echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
6714fi
John Criswell7a73b802003-06-30 21:59:07 +00006715
John Criswell47fdd832003-07-14 16:52:07 +00006716if test -z "$lt_cv_path_MAGIC_CMD"; then
6717 if test -n "$ac_tool_prefix"; then
6718 echo "$as_me:$LINENO: checking for file" >&5
6719echo $ECHO_N "checking for file... $ECHO_C" >&6
6720if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 case $MAGIC_CMD in
6724[\\/*] | ?:[\\/]*)
6725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6726 ;;
6727*)
6728 lt_save_MAGIC_CMD="$MAGIC_CMD"
6729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6731 for ac_dir in $ac_dummy; do
6732 IFS="$lt_save_ifs"
6733 test -z "$ac_dir" && ac_dir=.
6734 if test -f $ac_dir/file; then
6735 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6736 if test -n "$file_magic_test_file"; then
6737 case $deplibs_check_method in
6738 "file_magic "*)
6739 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6742 $EGREP "$file_magic_regex" > /dev/null; then
6743 :
6744 else
6745 cat <<EOF 1>&2
6746
6747*** Warning: the command libtool uses to detect shared libraries,
6748*** $file_magic_cmd, produces output that libtool cannot recognize.
6749*** The result is that libtool may fail to recognize shared libraries
6750*** as such. This will affect the creation of libtool libraries that
6751*** depend on shared libraries, but programs linked with such libtool
6752*** libraries will work regardless of this problem. Nevertheless, you
6753*** may want to report the problem to your system manager and/or to
6754*** bug-libtool@gnu.org
6755
6756EOF
6757 fi ;;
6758 esac
6759 fi
6760 break
6761 fi
6762 done
6763 IFS="$lt_save_ifs"
6764 MAGIC_CMD="$lt_save_MAGIC_CMD"
6765 ;;
6766esac
6767fi
6768
6769MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6770if test -n "$MAGIC_CMD"; then
6771 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6772echo "${ECHO_T}$MAGIC_CMD" >&6
6773else
6774 echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6
6776fi
6777
6778 else
6779 MAGIC_CMD=:
6780 fi
6781fi
6782
6783 fi
6784 ;;
6785esac
6786
Reid Spencer17795972004-11-18 09:47:37 +00006787enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +00006788enable_win32_dll=no
6789
6790# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6791if test "${enable_libtool_lock+set}" = set; then
6792 enableval="$enable_libtool_lock"
6793
6794fi;
6795test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6796
John Criswell7a73b802003-06-30 21:59:07 +00006797
6798# Check whether --with-pic or --without-pic was given.
6799if test "${with_pic+set}" = set; then
6800 withval="$with_pic"
6801 pic_mode="$withval"
6802else
6803 pic_mode=default
6804fi;
6805test -z "$pic_mode" && pic_mode=default
6806
John Criswell47fdd832003-07-14 16:52:07 +00006807# Use C for the default configuration in the libtool script
6808tagname=
6809lt_save_CC="$CC"
6810ac_ext=c
6811ac_cpp='$CPP $CPPFLAGS'
6812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
6816
6817# Source file extension for C test sources.
6818ac_ext=c
6819
6820# Object file extension for compiled C test sources.
6821objext=o
6822objext=$objext
6823
6824# Code to be used in simple compile tests
6825lt_simple_compile_test_code="int some_variable = 0;\n"
6826
6827# Code to be used in simple link tests
6828lt_simple_link_test_code='int main(){return(0);}\n'
6829
6830
6831# If no C compiler was specified, use CC.
6832LTCC=${LTCC-"$CC"}
6833
6834# Allow CC to be a program name with arguments.
6835compiler=$CC
6836
6837
6838#
6839# Check for any special shared library compilation flags.
6840#
6841lt_prog_cc_shlib=
6842if test "$GCC" = no; then
6843 case $host_os in
6844 sco3.2v5*)
6845 lt_prog_cc_shlib='-belf'
6846 ;;
6847 esac
6848fi
6849if test -n "$lt_prog_cc_shlib"; then
6850 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6851echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6852 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6853 else
6854 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6855echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6856 lt_cv_prog_cc_can_build_shared=no
6857 fi
6858fi
6859
6860
6861#
6862# Check to make sure the static flag actually works.
6863#
6864echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6865echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6866if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
John Criswell47fdd832003-07-14 16:52:07 +00006869 lt_prog_compiler_static_works=no
6870 save_LDFLAGS="$LDFLAGS"
6871 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6872 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6874 # The compiler can only warn and ignore the option if not recognized
6875 # So say no if there are warnings
6876 if test -s conftest.err; then
6877 # Append any errors to the config.log.
6878 cat conftest.err 1>&5
6879 else
6880 lt_prog_compiler_static_works=yes
6881 fi
6882 fi
6883 $rm conftest*
6884 LDFLAGS="$save_LDFLAGS"
6885
6886fi
6887echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6888echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6889
6890if test x"$lt_prog_compiler_static_works" = xyes; then
6891 :
6892else
6893 lt_prog_compiler_static=
6894fi
6895
6896
6897
John Criswell47fdd832003-07-14 16:52:07 +00006898
6899lt_prog_compiler_no_builtin_flag=
6900
6901if test "$GCC" = yes; then
6902 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6903
Reid Spencer2706f8c2004-09-19 23:53:36 +00006904
6905echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006906echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6907if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910 lt_cv_prog_compiler_rtti_exceptions=no
6911 ac_outfile=conftest.$ac_objext
6912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6913 lt_compiler_flag="-fno-rtti -fno-exceptions"
6914 # Insert the option either (1) after the last *FLAGS variable, or
6915 # (2) before a word containing "conftest.", or (3) at the end.
6916 # Note that $ac_compile itself does not contain backslashes and begins
6917 # with a dollar sign (not a hyphen), so the echo should work correctly.
6918 # The option is referenced via a variable to avoid confusing sed.
6919 lt_compile=`echo "$ac_compile" | $SED \
6920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6922 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00006923 (eval echo "\"\$as_me:6923: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006924 (eval "$lt_compile" 2>conftest.err)
6925 ac_status=$?
6926 cat conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00006927 echo "$as_me:6927: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006928 if (exit $ac_status) && test -s "$ac_outfile"; then
6929 # The compiler can only warn and ignore the option if not recognized
6930 # So say no if there are warnings
6931 if test ! -s conftest.err; then
6932 lt_cv_prog_compiler_rtti_exceptions=yes
6933 fi
6934 fi
6935 $rm conftest*
6936
6937fi
6938echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6939echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6940
6941if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6943else
6944 :
6945fi
6946
6947fi
6948
6949lt_prog_compiler_wl=
6950lt_prog_compiler_pic=
6951lt_prog_compiler_static=
6952
6953echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006955
6956 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006959
6960 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006961 aix*)
6962 # All AIX code is PIC.
6963 if test "$host_cpu" = ia64; then
6964 # AIX 5 now supports IA64 processor
6965 lt_prog_compiler_static='-Bstatic'
6966 fi
John Criswell7a73b802003-06-30 21:59:07 +00006967 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006968
John Criswell7a73b802003-06-30 21:59:07 +00006969 amigaos*)
6970 # FIXME: we need at least 68020 code to build shared libraries, but
6971 # adding the `-m68020' flag to GCC prevents building anything better,
6972 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006973 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006974 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006975
6976 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006977 # PIC is the default for these OSes.
6978 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006979
6980 mingw* | pw32* | os2*)
6981 # This hack is so that the source file can tell whether it is being
6982 # built for inclusion in a dll (and should export symbols for example).
6983 lt_prog_compiler_pic='-DDLL_EXPORT'
6984 ;;
6985
John Criswell7a73b802003-06-30 21:59:07 +00006986 darwin* | rhapsody*)
6987 # PIC is the default on this platform
6988 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006989 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006990 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006991
6992 msdosdjgpp*)
6993 # Just because we use GCC doesn't mean we suddenly get shared libraries
6994 # on systems that don't support them.
6995 lt_prog_compiler_can_build_shared=no
6996 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006997 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006998
John Criswell7a73b802003-06-30 21:59:07 +00006999 sysv4*MP*)
7000 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00007001 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00007002 fi
7003 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007004
7005 hpux*)
7006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7007 # not for PA HP-UX.
7008 case "$host_cpu" in
7009 hppa*64*|ia64*)
7010 # +Z the default
7011 ;;
7012 *)
7013 lt_prog_compiler_pic='-fPIC'
7014 ;;
7015 esac
7016 ;;
7017
John Criswell7a73b802003-06-30 21:59:07 +00007018 *)
John Criswell47fdd832003-07-14 16:52:07 +00007019 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00007020 ;;
7021 esac
7022 else
John Criswell47fdd832003-07-14 16:52:07 +00007023 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00007024 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007025 aix*)
7026 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00007027 if test "$host_cpu" = ia64; then
7028 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00007029 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007030 else
John Criswell47fdd832003-07-14 16:52:07 +00007031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00007032 fi
7033 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00007034 darwin*)
7035 # PIC is the default on this platform
7036 # Common symbols not allowed in MH_DYLIB files
7037 case "$cc_basename" in
7038 xlc*)
7039 lt_prog_compiler_pic='-qnocommon'
7040 lt_prog_compiler_wl='-Wl,'
7041 ;;
7042 esac
7043 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007044
John Criswell47fdd832003-07-14 16:52:07 +00007045 mingw* | pw32* | os2*)
7046 # This hack is so that the source file can tell whether it is being
7047 # built for inclusion in a dll (and should export symbols for example).
7048 lt_prog_compiler_pic='-DDLL_EXPORT'
7049 ;;
7050
John Criswell7a73b802003-06-30 21:59:07 +00007051 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00007052 lt_prog_compiler_wl='-Wl,'
7053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7054 # not for PA HP-UX.
7055 case "$host_cpu" in
7056 hppa*64*|ia64*)
7057 # +Z the default
7058 ;;
7059 *)
7060 lt_prog_compiler_pic='+Z'
7061 ;;
7062 esac
7063 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7064 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00007065 ;;
7066
John Criswell47fdd832003-07-14 16:52:07 +00007067 irix5* | irix6* | nonstopux*)
7068 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00007069 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00007070 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00007071 ;;
7072
7073 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00007074 lt_prog_compiler_pic='-KPIC'
7075 lt_prog_compiler_static='-Bstatic'
7076 ;;
7077
7078 linux*)
7079 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007080 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00007081 lt_prog_compiler_wl='-Wl,'
7082 lt_prog_compiler_pic='-KPIC'
7083 lt_prog_compiler_static='-static'
7084 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00007085 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00007086 lt_prog_compiler_wl='-Wl,'
7087 # All Alpha code is PIC.
7088 lt_prog_compiler_static='-non_shared'
7089 ;;
7090 esac
John Criswell7a73b802003-06-30 21:59:07 +00007091 ;;
7092
7093 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00007094 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00007095 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00007096 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00007097 ;;
7098
7099 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00007100 lt_prog_compiler_pic='-Kpic'
7101 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00007102 ;;
7103
7104 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00007105 lt_prog_compiler_wl='-Wl,'
7106 lt_prog_compiler_pic='-KPIC'
7107 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007108 ;;
7109
7110 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00007111 lt_prog_compiler_wl='-Qoption ld '
7112 lt_prog_compiler_pic='-PIC'
7113 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007114 ;;
7115
7116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00007117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007120 ;;
7121
7122 sysv4*MP*)
7123 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00007124 lt_prog_compiler_pic='-Kconform_pic'
7125 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007126 fi
7127 ;;
7128
John Criswell47fdd832003-07-14 16:52:07 +00007129 uts4*)
7130 lt_prog_compiler_pic='-pic'
7131 lt_prog_compiler_static='-Bstatic'
7132 ;;
7133
John Criswell7a73b802003-06-30 21:59:07 +00007134 *)
John Criswell47fdd832003-07-14 16:52:07 +00007135 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007136 ;;
7137 esac
7138 fi
7139
John Criswell47fdd832003-07-14 16:52:07 +00007140echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7141echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007142
John Criswell47fdd832003-07-14 16:52:07 +00007143#
7144# Check to make sure the PIC flag actually works.
7145#
7146if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00007147
7148echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00007149echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7150if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00007151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
John Criswell47fdd832003-07-14 16:52:07 +00007153 lt_prog_compiler_pic_works=no
7154 ac_outfile=conftest.$ac_objext
7155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7157 # Insert the option either (1) after the last *FLAGS variable, or
7158 # (2) before a word containing "conftest.", or (3) at the end.
7159 # Note that $ac_compile itself does not contain backslashes and begins
7160 # with a dollar sign (not a hyphen), so the echo should work correctly.
7161 # The option is referenced via a variable to avoid confusing sed.
7162 lt_compile=`echo "$ac_compile" | $SED \
7163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7165 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00007166 (eval echo "\"\$as_me:7166: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00007167 (eval "$lt_compile" 2>conftest.err)
7168 ac_status=$?
7169 cat conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00007170 echo "$as_me:7170: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00007171 if (exit $ac_status) && test -s "$ac_outfile"; then
7172 # The compiler can only warn and ignore the option if not recognized
7173 # So say no if there are warnings
7174 if test ! -s conftest.err; then
7175 lt_prog_compiler_pic_works=yes
7176 fi
7177 fi
7178 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00007179
John Criswell47fdd832003-07-14 16:52:07 +00007180fi
7181echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7182echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007183
John Criswell47fdd832003-07-14 16:52:07 +00007184if test x"$lt_prog_compiler_pic_works" = xyes; then
7185 case $lt_prog_compiler_pic in
7186 "" | " "*) ;;
7187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7188 esac
John Criswell7a73b802003-06-30 21:59:07 +00007189else
John Criswell47fdd832003-07-14 16:52:07 +00007190 lt_prog_compiler_pic=
7191 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007192fi
7193
John Criswell7a73b802003-06-30 21:59:07 +00007194fi
John Criswell47fdd832003-07-14 16:52:07 +00007195case "$host_os" in
7196 # For platforms which do not support PIC, -DPIC is meaningless:
7197 *djgpp*)
7198 lt_prog_compiler_pic=
7199 ;;
7200 *)
7201 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7202 ;;
7203esac
John Criswell7a73b802003-06-30 21:59:07 +00007204
John Criswell7a73b802003-06-30 21:59:07 +00007205echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7206echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00007207if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00007208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209else
John Criswell47fdd832003-07-14 16:52:07 +00007210 lt_cv_prog_compiler_c_o=no
7211 $rm -r conftest 2>/dev/null
7212 mkdir conftest
7213 cd conftest
7214 mkdir out
7215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00007216
John Criswell47fdd832003-07-14 16:52:07 +00007217 lt_compiler_flag="-o out/conftest2.$ac_objext"
7218 # Insert the option either (1) after the last *FLAGS variable, or
7219 # (2) before a word containing "conftest.", or (3) at the end.
7220 # Note that $ac_compile itself does not contain backslashes and begins
7221 # with a dollar sign (not a hyphen), so the echo should work correctly.
7222 lt_compile=`echo "$ac_compile" | $SED \
7223 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7225 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00007226 (eval echo "\"\$as_me:7226: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00007227 (eval "$lt_compile" 2>out/conftest.err)
7228 ac_status=$?
7229 cat out/conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00007230 echo "$as_me:7230: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00007231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7232 then
7233 # The compiler can only warn and ignore the option if not recognized
7234 # So say no if there are warnings
7235 if test ! -s out/conftest.err; then
7236 lt_cv_prog_compiler_c_o=yes
7237 fi
7238 fi
7239 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00007240 $rm conftest*
7241 # SGI C++ compiler will create directory out/ii_files/ for
7242 # template instantiation
7243 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7244 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00007245 cd ..
7246 rmdir conftest
7247 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00007248
7249fi
John Criswell47fdd832003-07-14 16:52:07 +00007250echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7251echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007252
John Criswell7a73b802003-06-30 21:59:07 +00007253
John Criswell7a73b802003-06-30 21:59:07 +00007254hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00007255if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00007256 # do not overwrite the value of need_locks provided by the user
7257 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7258echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7259 hard_links=yes
7260 $rm conftest*
7261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7262 touch conftest.a
7263 ln conftest.a conftest.b 2>&5 || hard_links=no
7264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7265 echo "$as_me:$LINENO: result: $hard_links" >&5
7266echo "${ECHO_T}$hard_links" >&6
7267 if test "$hard_links" = no; then
7268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7269echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7270 need_locks=warn
7271 fi
7272else
7273 need_locks=no
7274fi
John Criswell7a73b802003-06-30 21:59:07 +00007275
John Criswell47fdd832003-07-14 16:52:07 +00007276echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7277echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7278
7279 runpath_var=
7280 allow_undefined_flag=
7281 enable_shared_with_static_runtimes=no
7282 archive_cmds=
7283 archive_expsym_cmds=
7284 old_archive_From_new_cmds=
7285 old_archive_from_expsyms_cmds=
7286 export_dynamic_flag_spec=
7287 whole_archive_flag_spec=
7288 thread_safe_flag_spec=
7289 hardcode_libdir_flag_spec=
7290 hardcode_libdir_flag_spec_ld=
7291 hardcode_libdir_separator=
7292 hardcode_direct=no
7293 hardcode_minus_L=no
7294 hardcode_shlibpath_var=unsupported
7295 link_all_deplibs=unknown
7296 hardcode_automatic=no
7297 module_cmds=
7298 module_expsym_cmds=
7299 always_export_symbols=no
7300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7301 # include_expsyms should be a list of space-separated symbols to be *always*
7302 # included in the symbol list
7303 include_expsyms=
7304 # exclude_expsyms can be an extended regexp of symbols to exclude
7305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7307 # as well as any symbol that contains `d'.
7308 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7310 # platforms (ab)use it in PIC code, but their linkers get confused if
7311 # the symbol is explicitly referenced. Since portable code cannot
7312 # rely on this symbol name, it's probably fine to never include it in
7313 # preloaded symbol tables.
7314 extract_expsyms_cmds=
7315
7316 case $host_os in
7317 cygwin* | mingw* | pw32*)
7318 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7319 # When not using gcc, we currently assume that we are using
7320 # Microsoft Visual C++.
7321 if test "$GCC" != yes; then
7322 with_gnu_ld=no
7323 fi
7324 ;;
7325 openbsd*)
7326 with_gnu_ld=no
7327 ;;
7328 esac
7329
7330 ld_shlibs=yes
7331 if test "$with_gnu_ld" = yes; then
7332 # If archive_cmds runs LD, not CC, wlarc should be empty
7333 wlarc='${wl}'
7334
7335 # See if GNU ld supports shared libraries.
7336 case $host_os in
7337 aix3* | aix4* | aix5*)
7338 # On AIX/PPC, the GNU linker is very broken
7339 if test "$host_cpu" != ia64; then
7340 ld_shlibs=no
7341 cat <<EOF 1>&2
7342
7343*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7344*** to be unable to reliably create shared libraries on AIX.
7345*** Therefore, libtool is disabling shared libraries support. If you
7346*** really care for shared libraries, you may want to modify your PATH
7347*** so that a non-GNU linker is found, and then restart.
7348
7349EOF
7350 fi
7351 ;;
7352
7353 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00007354 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 +00007355 hardcode_libdir_flag_spec='-L$libdir'
7356 hardcode_minus_L=yes
7357
7358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7359 # that the semantics of dynamic libraries on AmigaOS, at least up
7360 # to version 4, is to share data among multiple programs linked
7361 # with the same dynamic library. Since this doesn't match the
7362 # behavior of shared libraries on other platforms, we can't use
7363 # them.
7364 ld_shlibs=no
7365 ;;
7366
7367 beos*)
7368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7369 allow_undefined_flag=unsupported
7370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7371 # support --undefined. This deserves some investigation. FIXME
7372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7373 else
7374 ld_shlibs=no
7375 fi
7376 ;;
7377
7378 cygwin* | mingw* | pw32*)
7379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7380 # as there is no search path for DLLs.
7381 hardcode_libdir_flag_spec='-L$libdir'
7382 allow_undefined_flag=unsupported
7383 always_export_symbols=no
7384 enable_shared_with_static_runtimes=yes
7385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7386
7387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7389 # If the export-symbols file already is a .def file (1st line
7390 # is EXPORTS), use it as is; otherwise, prepend...
7391 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7392 cp $export_symbols $output_objdir/$soname.def;
7393 else
7394 echo EXPORTS > $output_objdir/$soname.def;
7395 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00007396 fi~
7397 $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 +00007398 else
7399 ld_shlibs=no
7400 fi
7401 ;;
7402
7403 netbsd*)
7404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7406 wlarc=
7407 else
7408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7410 fi
7411 ;;
7412
7413 solaris* | sysv5*)
7414 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7415 ld_shlibs=no
7416 cat <<EOF 1>&2
7417
7418*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7419*** create shared libraries on Solaris systems. Therefore, libtool
7420*** is disabling shared libraries support. We urge you to upgrade GNU
7421*** binutils to release 2.9.1 or newer. Another option is to modify
7422*** your PATH or compiler configuration so that the native linker is
7423*** used, and then restart.
7424
7425EOF
7426 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7429 else
7430 ld_shlibs=no
7431 fi
7432 ;;
7433
7434 sunos4*)
7435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7436 wlarc=
7437 hardcode_direct=yes
7438 hardcode_shlibpath_var=no
7439 ;;
7440
Reid Spencer2706f8c2004-09-19 23:53:36 +00007441 linux*)
7442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7443 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7444 archive_cmds="$tmp_archive_cmds"
7445 supports_anon_versioning=no
7446 case `$LD -v 2>/dev/null` in
7447 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7450 *\ 2.11.*) ;; # other 2.11 versions
7451 *) supports_anon_versioning=yes ;;
7452 esac
7453 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007454 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7455cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7456$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +00007457 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7458 else
7459 archive_expsym_cmds="$tmp_archive_cmds"
7460 fi
7461 else
7462 ld_shlibs=no
7463 fi
7464 ;;
7465
John Criswell47fdd832003-07-14 16:52:07 +00007466 *)
7467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7470 else
7471 ld_shlibs=no
7472 fi
7473 ;;
7474 esac
7475
7476 if test "$ld_shlibs" = yes; then
7477 runpath_var=LD_RUN_PATH
7478 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7479 export_dynamic_flag_spec='${wl}--export-dynamic'
7480 # ancient GNU ld didn't support --whole-archive et. al.
7481 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7482 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7483 else
7484 whole_archive_flag_spec=
7485 fi
7486 fi
7487 else
7488 # PORTME fill in a description of your system's linker (not GNU ld)
7489 case $host_os in
7490 aix3*)
7491 allow_undefined_flag=unsupported
7492 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +00007493 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 +00007494 # Note: this linker hardcodes the directories in LIBPATH if there
7495 # are no directories specified by -L.
7496 hardcode_minus_L=yes
7497 if test "$GCC" = yes && test -z "$link_static_flag"; then
7498 # Neither direct hardcoding nor static linking is supported with a
7499 # broken collect2.
7500 hardcode_direct=unsupported
7501 fi
7502 ;;
7503
7504 aix4* | aix5*)
7505 if test "$host_cpu" = ia64; then
7506 # On IA64, the linker does run time linking by default, so we don't
7507 # have to do anything special.
7508 aix_use_runtimelinking=no
7509 exp_sym_flag='-Bexport'
7510 no_entry_flag=""
7511 else
7512 # If we're using GNU nm, then we don't want the "-C" option.
7513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7514 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7515 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'
7516 else
7517 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'
7518 fi
7519 aix_use_runtimelinking=no
7520
7521 # Test if we are trying to use run time linking or normal
7522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7523 # need to do runtime linking.
7524 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7525 for ld_flag in $LDFLAGS; do
7526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7527 aix_use_runtimelinking=yes
7528 break
7529 fi
7530 done
7531 esac
7532
7533 exp_sym_flag='-bexport'
7534 no_entry_flag='-bnoentry'
7535 fi
7536
7537 # When large executables or shared objects are built, AIX ld can
7538 # have problems creating the table of contents. If linking a library
7539 # or program results in "error TOC overflow" add -mminimal-toc to
7540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7542
7543 archive_cmds=''
7544 hardcode_direct=yes
7545 hardcode_libdir_separator=':'
7546 link_all_deplibs=yes
7547
7548 if test "$GCC" = yes; then
7549 case $host_os in aix4.012|aix4.012.*)
7550 # We only want to do this on AIX 4.2 and lower, the check
7551 # below for broken collect2 doesn't work under 4.3+
7552 collect2name=`${CC} -print-prog-name=collect2`
7553 if test -f "$collect2name" && \
7554 strings "$collect2name" | grep resolve_lib_name >/dev/null
7555 then
7556 # We have reworked collect2
7557 hardcode_direct=yes
7558 else
7559 # We have old collect2
7560 hardcode_direct=unsupported
7561 # It fails to find uninstalled libraries when the uninstalled
7562 # path is not listed in the libpath. Setting hardcode_minus_L
7563 # to unsupported forces relinking
7564 hardcode_minus_L=yes
7565 hardcode_libdir_flag_spec='-L$libdir'
7566 hardcode_libdir_separator=
7567 fi
7568 esac
7569 shared_flag='-shared'
7570 else
7571 # not using gcc
7572 if test "$host_cpu" = ia64; then
7573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7574 # chokes on -Wl,-G. The following line is correct:
7575 shared_flag='-G'
7576 else
7577 if test "$aix_use_runtimelinking" = yes; then
7578 shared_flag='${wl}-G'
7579 else
7580 shared_flag='${wl}-bM:SRE'
7581 fi
7582 fi
7583 fi
7584
7585 # It seems that -bexpall does not export symbols beginning with
7586 # underscore (_), so it is better to generate a list of symbols to export.
7587 always_export_symbols=yes
7588 if test "$aix_use_runtimelinking" = yes; then
7589 # Warning - without using the other runtime loading flags (-brtl),
7590 # -berok will link without error, but may produce a broken library.
7591 allow_undefined_flag='-berok'
7592 # Determine the default libpath from the value encoded in an empty executable.
7593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007599
John Criswell7a73b802003-06-30 21:59:07 +00007600int
7601main ()
7602{
John Criswell47fdd832003-07-14 16:52:07 +00007603
John Criswell7a73b802003-06-30 21:59:07 +00007604 ;
7605 return 0;
7606}
7607_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00007608rm -f conftest.$ac_objext conftest$ac_exeext
7609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00007610 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00007611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00007615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00007617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00007625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007630
John Criswell47fdd832003-07-14 16:52:07 +00007631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7632}'`
7633# Check for a 64-bit object if we didn't find anything.
7634if 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; }
7635}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007636else
7637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007638sed 's/^/| /' conftest.$ac_ext >&5
7639
John Criswell7a73b802003-06-30 21:59:07 +00007640fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00007641rm -f conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007644
John Criswell47fdd832003-07-14 16:52:07 +00007645 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7646 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"
7647 else
7648 if test "$host_cpu" = ia64; then
7649 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7650 allow_undefined_flag="-z nodefs"
7651 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"
7652 else
7653 # Determine the default libpath from the value encoded in an empty executable.
7654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007655/* confdefs.h. */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007660
John Criswell47fdd832003-07-14 16:52:07 +00007661int
7662main ()
7663{
John Criswell7a73b802003-06-30 21:59:07 +00007664
John Criswell47fdd832003-07-14 16:52:07 +00007665 ;
7666 return 0;
7667}
7668_ACEOF
7669rm -f conftest.$ac_objext conftest$ac_exeext
7670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00007671 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00007672 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00007676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00007678 { ac_try='test -z "$ac_c_werror_flag"
7679 || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 (eval $ac_try) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00007686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007691
John Criswell47fdd832003-07-14 16:52:07 +00007692aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7693}'`
7694# Check for a 64-bit object if we didn't find anything.
7695if 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; }
7696}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007697else
John Criswell47fdd832003-07-14 16:52:07 +00007698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007699sed 's/^/| /' conftest.$ac_ext >&5
7700
John Criswell47fdd832003-07-14 16:52:07 +00007701fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00007702rm -f conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007704if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007705
John Criswell47fdd832003-07-14 16:52:07 +00007706 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7707 # Warning - without using the other run time loading flags,
7708 # -berok will link without error, but may produce a broken library.
7709 no_undefined_flag=' ${wl}-bernotok'
7710 allow_undefined_flag=' ${wl}-berok'
7711 # -bexpall does not export symbols beginning with underscore (_)
7712 always_export_symbols=yes
7713 # Exported symbols can be pulled into shared objects from archives
7714 whole_archive_flag_spec=' '
7715 archive_cmds_need_lc=yes
7716 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00007717 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 +00007718 fi
7719 fi
John Criswell7a73b802003-06-30 21:59:07 +00007720 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007721
7722 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00007723 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 +00007724 hardcode_libdir_flag_spec='-L$libdir'
7725 hardcode_minus_L=yes
7726 # see comment about different semantics on the GNU ld section
7727 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007728 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007729
Reid Spencer2706f8c2004-09-19 23:53:36 +00007730 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00007731 export_dynamic_flag_spec=-rdynamic
7732 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007733
John Criswell47fdd832003-07-14 16:52:07 +00007734 cygwin* | mingw* | pw32*)
7735 # When not using gcc, we currently assume that we are using
7736 # Microsoft Visual C++.
7737 # hardcode_libdir_flag_spec is actually meaningless, as there is
7738 # no search path for DLLs.
7739 hardcode_libdir_flag_spec=' '
7740 allow_undefined_flag=unsupported
7741 # Tell ltmain to make .lib files, not .a files.
7742 libext=lib
7743 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007744 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00007745 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +00007746 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +00007747 # The linker will automatically build a .lib file if we build a DLL.
7748 old_archive_From_new_cmds='true'
7749 # FIXME: Should let the user specify the lib program.
7750 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7751 fix_srcfile_path='`cygpath -w "$srcfile"`'
7752 enable_shared_with_static_runtimes=yes
7753 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007754
John Criswell47fdd832003-07-14 16:52:07 +00007755 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00007756 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007757 rhapsody* | darwin1.[012])
7758 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7759 ;;
7760 *) # Darwin 1.3 on
7761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7763 else
7764 case ${MACOSX_DEPLOYMENT_TARGET} in
7765 10.[012])
7766 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7767 ;;
7768 10.*)
7769 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7770 ;;
7771 esac
7772 fi
7773 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007774 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00007775 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00007776 hardcode_direct=no
7777 hardcode_automatic=yes
7778 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00007779 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00007780 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00007781 if test "$GCC" = yes ; then
7782 output_verbose_link_cmd='echo'
7783 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7784 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7785 # 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 +00007786 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}'
7787 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 +00007788 else
7789 case "$cc_basename" in
7790 xlc*)
7791 output_verbose_link_cmd='echo'
7792 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7793 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7794 # 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 +00007795 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}'
7796 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 +00007797 ;;
7798 *)
7799 ld_shlibs=no
7800 ;;
7801 esac
John Criswell7a73b802003-06-30 21:59:07 +00007802 fi
John Criswell47fdd832003-07-14 16:52:07 +00007803 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007804
John Criswell47fdd832003-07-14 16:52:07 +00007805 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007807 hardcode_libdir_flag_spec='-L$libdir'
7808 hardcode_shlibpath_var=no
7809 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007810
John Criswell47fdd832003-07-14 16:52:07 +00007811 freebsd1*)
7812 ld_shlibs=no
7813 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007814
John Criswell47fdd832003-07-14 16:52:07 +00007815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7816 # support. Future versions do this automatically, but an explicit c++rt0.o
7817 # does not break anything, and helps significantly (at the cost of a little
7818 # extra space).
7819 freebsd2.2*)
7820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7821 hardcode_libdir_flag_spec='-R$libdir'
7822 hardcode_direct=yes
7823 hardcode_shlibpath_var=no
7824 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007825
John Criswell47fdd832003-07-14 16:52:07 +00007826 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7827 freebsd2*)
7828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7829 hardcode_direct=yes
7830 hardcode_minus_L=yes
7831 hardcode_shlibpath_var=no
7832 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007833
John Criswell47fdd832003-07-14 16:52:07 +00007834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007835 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007836 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7837 hardcode_libdir_flag_spec='-R$libdir'
7838 hardcode_direct=yes
7839 hardcode_shlibpath_var=no
7840 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007841
John Criswell47fdd832003-07-14 16:52:07 +00007842 hpux9*)
7843 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007844 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 +00007845 else
Reid Spencer177dbe22004-10-13 01:01:03 +00007846 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 +00007847 fi
7848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7849 hardcode_libdir_separator=:
7850 hardcode_direct=yes
7851
7852 # hardcode_minus_L: Not really in the search PATH,
7853 # but as the default location of the library.
7854 hardcode_minus_L=yes
7855 export_dynamic_flag_spec='${wl}-E'
7856 ;;
7857
7858 hpux10* | hpux11*)
7859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7860 case "$host_cpu" in
7861 hppa*64*|ia64*)
7862 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7863 ;;
7864 *)
7865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7866 ;;
7867 esac
7868 else
7869 case "$host_cpu" in
7870 hppa*64*|ia64*)
7871 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7872 ;;
7873 *)
7874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7875 ;;
7876 esac
7877 fi
7878 if test "$with_gnu_ld" = no; then
7879 case "$host_cpu" in
7880 hppa*64*)
7881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7882 hardcode_libdir_flag_spec_ld='+b $libdir'
7883 hardcode_libdir_separator=:
7884 hardcode_direct=no
7885 hardcode_shlibpath_var=no
7886 ;;
7887 ia64*)
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 hardcode_direct=no
7890 hardcode_shlibpath_var=no
7891
7892 # hardcode_minus_L: Not really in the search PATH,
7893 # but as the default location of the library.
7894 hardcode_minus_L=yes
7895 ;;
7896 *)
7897 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7898 hardcode_libdir_separator=:
7899 hardcode_direct=yes
7900 export_dynamic_flag_spec='${wl}-E'
7901
7902 # hardcode_minus_L: Not really in the search PATH,
7903 # but as the default location of the library.
7904 hardcode_minus_L=yes
7905 ;;
7906 esac
7907 fi
7908 ;;
7909
7910 irix5* | irix6* | nonstopux*)
7911 if test "$GCC" = yes; then
7912 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'
7913 else
7914 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'
7915 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7916 fi
7917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7918 hardcode_libdir_separator=:
7919 link_all_deplibs=yes
7920 ;;
7921
7922 netbsd*)
7923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7925 else
7926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7927 fi
7928 hardcode_libdir_flag_spec='-R$libdir'
7929 hardcode_direct=yes
7930 hardcode_shlibpath_var=no
7931 ;;
7932
7933 newsos6)
7934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7935 hardcode_direct=yes
7936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7937 hardcode_libdir_separator=:
7938 hardcode_shlibpath_var=no
7939 ;;
7940
7941 openbsd*)
7942 hardcode_direct=yes
7943 hardcode_shlibpath_var=no
7944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007946 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 +00007947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7948 export_dynamic_flag_spec='${wl}-E'
7949 else
7950 case $host_os in
7951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7953 hardcode_libdir_flag_spec='-R$libdir'
7954 ;;
7955 *)
7956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7958 ;;
7959 esac
7960 fi
7961 ;;
7962
7963 os2*)
7964 hardcode_libdir_flag_spec='-L$libdir'
7965 hardcode_minus_L=yes
7966 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +00007967 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 +00007968 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7969 ;;
7970
7971 osf3*)
7972 if test "$GCC" = yes; then
7973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7974 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'
7975 else
7976 allow_undefined_flag=' -expect_unresolved \*'
7977 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'
7978 fi
7979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7980 hardcode_libdir_separator=:
7981 ;;
7982
7983 osf4* | osf5*) # as osf3* with the addition of -msym flag
7984 if test "$GCC" = yes; then
7985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7986 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'
7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7988 else
7989 allow_undefined_flag=' -expect_unresolved \*'
7990 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 +00007991 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7992 $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'
7993
John Criswell47fdd832003-07-14 16:52:07 +00007994 # Both c and cxx compiler support -rpath directly
7995 hardcode_libdir_flag_spec='-rpath $libdir'
7996 fi
7997 hardcode_libdir_separator=:
7998 ;;
7999
8000 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00008001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8002 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00008003 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00008004 runpath_var=LD_RUN_PATH
8005 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00008006 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008007
John Criswell47fdd832003-07-14 16:52:07 +00008008 solaris*)
8009 no_undefined_flag=' -z text'
8010 if test "$GCC" = yes; then
8011 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00008012 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8013 $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 +00008014 else
8015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00008016 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8017 $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 +00008018 fi
8019 hardcode_libdir_flag_spec='-R$libdir'
8020 hardcode_shlibpath_var=no
8021 case $host_os in
8022 solaris2.[0-5] | solaris2.[0-5].*) ;;
8023 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8025 esac
8026 link_all_deplibs=yes
8027 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008028
John Criswell47fdd832003-07-14 16:52:07 +00008029 sunos4*)
8030 if test "x$host_vendor" = xsequent; then
8031 # Use $CC to link under sequent, because it throws in some extra .o
8032 # files that make .init and .fini sections work.
8033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8034 else
8035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8036 fi
8037 hardcode_libdir_flag_spec='-L$libdir'
8038 hardcode_direct=yes
8039 hardcode_minus_L=yes
8040 hardcode_shlibpath_var=no
8041 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008042
John Criswell47fdd832003-07-14 16:52:07 +00008043 sysv4)
8044 case $host_vendor in
8045 sni)
8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_direct=yes # is this really true???
8048 ;;
8049 siemens)
8050 ## LD is ld it makes a PLAMLIB
8051 ## CC just makes a GrossModule.
8052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8053 reload_cmds='$CC -r -o $output$reload_objs'
8054 hardcode_direct=no
8055 ;;
8056 motorola)
8057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8059 ;;
8060 esac
8061 runpath_var='LD_RUN_PATH'
8062 hardcode_shlibpath_var=no
8063 ;;
8064
8065 sysv4.3*)
8066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067 hardcode_shlibpath_var=no
8068 export_dynamic_flag_spec='-Bexport'
8069 ;;
8070
8071 sysv4*MP*)
8072 if test -d /usr/nec; then
8073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8074 hardcode_shlibpath_var=no
8075 runpath_var=LD_RUN_PATH
8076 hardcode_runpath_var=yes
8077 ld_shlibs=yes
8078 fi
8079 ;;
8080
8081 sysv4.2uw2*)
8082 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8083 hardcode_direct=yes
8084 hardcode_minus_L=no
8085 hardcode_shlibpath_var=no
8086 hardcode_runpath_var=yes
8087 runpath_var=LD_RUN_PATH
8088 ;;
8089
8090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8091 no_undefined_flag='${wl}-z ${wl}text'
8092 if test "$GCC" = yes; then
8093 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8094 else
8095 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8096 fi
8097 runpath_var='LD_RUN_PATH'
8098 hardcode_shlibpath_var=no
8099 ;;
8100
8101 sysv5*)
8102 no_undefined_flag=' -z text'
8103 # $CC -shared without GNU ld will not create a library from C++
8104 # object files and a static libstdc++, better avoid it by now
8105 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00008106 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8107 $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 +00008108 hardcode_libdir_flag_spec=
8109 hardcode_shlibpath_var=no
8110 runpath_var='LD_RUN_PATH'
8111 ;;
8112
8113 uts4*)
8114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8115 hardcode_libdir_flag_spec='-L$libdir'
8116 hardcode_shlibpath_var=no
8117 ;;
8118
8119 *)
8120 ld_shlibs=no
8121 ;;
8122 esac
8123 fi
8124
John Criswell7a73b802003-06-30 21:59:07 +00008125echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8126echo "${ECHO_T}$ld_shlibs" >&6
8127test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008128
John Criswell47fdd832003-07-14 16:52:07 +00008129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8130if test "$GCC" = yes; then
8131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8132fi
8133
8134#
8135# Do we need to explicitly link libc?
8136#
8137case "x$archive_cmds_need_lc" in
8138x|xyes)
8139 # Assume -lc should be added
8140 archive_cmds_need_lc=yes
8141
8142 if test "$enable_shared" = yes && test "$GCC" = yes; then
8143 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00008144 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00008145 # FIXME: we may have to deal with multi-command sequences.
8146 ;;
8147 '$CC '*)
8148 # Test whether the compiler implicitly links with -lc since on some
8149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8150 # to ld, don't add -lc before -lgcc.
8151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8152echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8153 $rm conftest*
8154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8155
8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157 (eval $ac_compile) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } 2>conftest.err; then
8161 soname=conftest
8162 lib=conftest
8163 libobjs=conftest.$ac_objext
8164 deplibs=
8165 wl=$lt_prog_compiler_wl
8166 compiler_flags=-v
8167 linker_flags=-v
8168 verstring=
8169 output_objdir=.
8170 libname=conftest
8171 lt_save_allow_undefined_flag=$allow_undefined_flag
8172 allow_undefined_flag=
8173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8174 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }
8178 then
8179 archive_cmds_need_lc=no
8180 else
8181 archive_cmds_need_lc=yes
8182 fi
8183 allow_undefined_flag=$lt_save_allow_undefined_flag
8184 else
8185 cat conftest.err 1>&5
8186 fi
8187 $rm conftest*
8188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8189echo "${ECHO_T}$archive_cmds_need_lc" >&6
8190 ;;
8191 esac
8192 fi
8193 ;;
8194esac
8195
John Criswell7a73b802003-06-30 21:59:07 +00008196echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8197echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8198library_names_spec=
8199libname_spec='lib$name'
8200soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00008201shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00008202postinstall_cmds=
8203postuninstall_cmds=
8204finish_cmds=
8205finish_eval=
8206shlibpath_var=
8207shlibpath_overrides_runpath=unknown
8208version_type=none
8209dynamic_linker="$host_os ld.so"
8210sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00008211if test "$GCC" = yes; then
8212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8214 # if the path contains ";" then we assume it to be the separator
8215 # otherwise default to the standard path separator (i.e. ":") - it is
8216 # assumed that no part of a normal pathname contains ";" but that should
8217 # okay in the real world where ";" in dirpaths is itself problematic.
8218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8219 else
8220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8221 fi
8222else
8223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8224fi
8225need_lib_prefix=unknown
8226hardcode_into_libs=no
8227
8228# when you set need_version to no, make sure it does not cause -set_version
8229# flags to be left without arguments
8230need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00008231
8232case $host_os in
8233aix3*)
8234 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008236 shlibpath_var=LIBPATH
8237
John Criswell47fdd832003-07-14 16:52:07 +00008238 # AIX 3 has no versioning support, so we append a major version to the name.
8239 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008240 ;;
8241
8242aix4* | aix5*)
8243 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008244 need_lib_prefix=no
8245 need_version=no
8246 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008247 if test "$host_cpu" = ia64; then
8248 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00008249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008250 shlibpath_var=LD_LIBRARY_PATH
8251 else
8252 # With GCC up to 2.95.x, collect2 would create an import file
8253 # for dependence libraries. The import file would start with
8254 # the line `#! .'. This would cause the generated library to
8255 # depend on `.', always an invalid library. This was fixed in
8256 # development snapshots of GCC prior to 3.0.
8257 case $host_os in
8258 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00008259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8260 echo ' yes '
8261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8262 :
8263 else
8264 can_build_shared=no
8265 fi
8266 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008267 esac
John Criswell47fdd832003-07-14 16:52:07 +00008268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8269 # soname into executable. Probably we can add versioning support to
8270 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00008271 if test "$aix_use_runtimelinking" = yes; then
8272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8273 # instead of lib<name>.a to let people know that these are not
8274 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008276 else
8277 # We preserve .a as extension for shared libraries through AIX4.2
8278 # and later when we are not doing run time linking.
8279 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00008280 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008281 fi
8282 shlibpath_var=LIBPATH
8283 fi
8284 ;;
8285
8286amigaos*)
8287 library_names_spec='$libname.ixlibrary $libname.a'
8288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008289 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 +00008290 ;;
8291
8292beos*)
John Criswell47fdd832003-07-14 16:52:07 +00008293 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008294 dynamic_linker="$host_os ld.so"
8295 shlibpath_var=LIBRARY_PATH
8296 ;;
8297
Reid Spencer2706f8c2004-09-19 23:53:36 +00008298bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00008299 version_type=linux
8300 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8304 shlibpath_var=LD_LIBRARY_PATH
8305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00008307 # the default ld.so.conf also contains /usr/contrib/lib and
8308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8309 # libtool to hard-code these into programs
8310 ;;
8311
8312cygwin* | mingw* | pw32*)
8313 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00008314 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008315 need_version=no
8316 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008317
John Criswell7a73b802003-06-30 21:59:07 +00008318 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00008319 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008320 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00008321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +00008322 postinstall_cmds='base_file=`basename \${file}`~
8323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8324 dldir=$destdir/`dirname \$dlpath`~
8325 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00008326 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +00008327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8328 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +00008329 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00008330 shlibpath_overrides_runpath=yes
8331
8332 case $host_os in
8333 cygwin*)
8334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8335 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 +00008336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00008337 ;;
8338 mingw*)
8339 # MinGW DLLs use traditional 'lib' prefix
8340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8343 # It is most probably a Windows format PATH printed by
8344 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8345 # path with ; separators, and with drive letters. We can handle the
8346 # drive letters (cygwin fileutils understands them), so leave them,
8347 # especially as we might pass files found there to a mingw objdump,
8348 # which wouldn't understand a cygwinified path. Ahh.
8349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8350 else
8351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8352 fi
8353 ;;
8354 pw32*)
8355 # pw32 DLLs use 'pw' prefix rather than 'lib'
8356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8357 ;;
8358 esac
John Criswell7a73b802003-06-30 21:59:07 +00008359 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008360
John Criswell7a73b802003-06-30 21:59:07 +00008361 *)
John Criswell47fdd832003-07-14 16:52:07 +00008362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00008363 ;;
8364 esac
8365 dynamic_linker='Win32 ld.exe'
8366 # FIXME: first we should search . and the directory the executable is in
8367 shlibpath_var=PATH
8368 ;;
8369
8370darwin* | rhapsody*)
8371 dynamic_linker="$host_os dyld"
8372 version_type=darwin
8373 need_lib_prefix=no
8374 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00008375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00008376 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00008377 shlibpath_overrides_runpath=yes
8378 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00008379 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00008380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008381 if test "$GCC" = yes; then
8382 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"`
8383 else
8384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00008385 fi
8386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8387 ;;
8388
8389dgux*)
8390 version_type=linux
8391 need_lib_prefix=no
8392 need_version=no
8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8394 soname_spec='${libname}${release}${shared_ext}$major'
8395 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00008396 ;;
8397
8398freebsd1*)
8399 dynamic_linker=no
8400 ;;
8401
Reid Spencer2706f8c2004-09-19 23:53:36 +00008402kfreebsd*-gnu)
8403 version_type=linux
8404 need_lib_prefix=no
8405 need_version=no
8406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8407 soname_spec='${libname}${release}${shared_ext}$major'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 shlibpath_overrides_runpath=no
8410 hardcode_into_libs=yes
8411 dynamic_linker='GNU ld.so'
8412 ;;
8413
John Criswell7a73b802003-06-30 21:59:07 +00008414freebsd*)
8415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8416 version_type=freebsd-$objformat
8417 case $version_type in
8418 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00008419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008420 need_version=no
8421 need_lib_prefix=no
8422 ;;
8423 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00008424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008425 need_version=yes
8426 ;;
8427 esac
8428 shlibpath_var=LD_LIBRARY_PATH
8429 case $host_os in
8430 freebsd2*)
8431 shlibpath_overrides_runpath=yes
8432 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008433 freebsd3.01* | freebsdelf3.01*)
8434 shlibpath_overrides_runpath=yes
8435 hardcode_into_libs=yes
8436 ;;
8437 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00008438 shlibpath_overrides_runpath=no
8439 hardcode_into_libs=yes
8440 ;;
8441 esac
8442 ;;
8443
8444gnu*)
8445 version_type=linux
8446 need_lib_prefix=no
8447 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8449 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008450 shlibpath_var=LD_LIBRARY_PATH
8451 hardcode_into_libs=yes
8452 ;;
8453
8454hpux9* | hpux10* | hpux11*)
8455 # Give a soname corresponding to the major version so that dld.sl refuses to
8456 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00008457 version_type=sunos
8458 need_lib_prefix=no
8459 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008460 case "$host_cpu" in
8461 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00008462 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00008463 hardcode_into_libs=yes
8464 dynamic_linker="$host_os dld.so"
8465 shlibpath_var=LD_LIBRARY_PATH
8466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8468 soname_spec='${libname}${release}${shared_ext}$major'
8469 if test "X$HPUX_IA64_MODE" = X32; then
8470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8471 else
8472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8473 fi
8474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8475 ;;
8476 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00008477 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00008478 hardcode_into_libs=yes
8479 dynamic_linker="$host_os dld.sl"
8480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8486 ;;
8487 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00008488 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00008489 dynamic_linker="$host_os dld.sl"
8490 shlibpath_var=SHLIB_PATH
8491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8493 soname_spec='${libname}${release}${shared_ext}$major'
8494 ;;
8495 esac
John Criswell7a73b802003-06-30 21:59:07 +00008496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8497 postinstall_cmds='chmod 555 $lib'
8498 ;;
8499
John Criswell47fdd832003-07-14 16:52:07 +00008500irix5* | irix6* | nonstopux*)
8501 case $host_os in
8502 nonstopux*) version_type=nonstopux ;;
8503 *)
8504 if test "$lt_cv_prog_gnu_ld" = yes; then
8505 version_type=linux
8506 else
8507 version_type=irix
8508 fi ;;
8509 esac
John Criswell7a73b802003-06-30 21:59:07 +00008510 need_lib_prefix=no
8511 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008512 soname_spec='${libname}${release}${shared_ext}$major'
8513 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 +00008514 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00008515 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00008516 libsuff= shlibsuff=
8517 ;;
8518 *)
8519 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00008520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8521 libsuff= shlibsuff= libmagic=32-bit;;
8522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8523 libsuff=32 shlibsuff=N32 libmagic=N32;;
8524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00008526 *) libsuff= shlibsuff= libmagic=never-match;;
8527 esac
8528 ;;
8529 esac
8530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8531 shlibpath_overrides_runpath=no
8532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00008534 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008535 ;;
8536
8537# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00008538linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00008539 dynamic_linker=no
8540 ;;
8541
8542# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00008543linux*)
John Criswell7a73b802003-06-30 21:59:07 +00008544 version_type=linux
8545 need_lib_prefix=no
8546 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=no
8552 # This implies no fast_install, which is unacceptable.
8553 # Some rework will be needed to allow for fast_install
8554 # before this can be enabled.
8555 hardcode_into_libs=yes
8556
Reid Spencer2706f8c2004-09-19 23:53:36 +00008557 # Append ld.so.conf contents to the search path
8558 if test -f /etc/ld.so.conf; then
8559 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8561 fi
8562
John Criswell7a73b802003-06-30 21:59:07 +00008563 # We used to test for /lib/ld.so.1 and disable shared libraries on
8564 # powerpc, because MkLinux only supported shared libraries with the
8565 # GNU dynamic linker. Since this was broken with cross compilers,
8566 # most powerpc-linux boxes support dynamic linking these days and
8567 # people can always --disable-shared, the test was removed, and we
8568 # assume the GNU/Linux dynamic linker is in use.
8569 dynamic_linker='GNU/Linux ld.so'
8570 ;;
8571
Reid Spencer2706f8c2004-09-19 23:53:36 +00008572knetbsd*-gnu)
8573 version_type=linux
8574 need_lib_prefix=no
8575 need_version=no
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8577 soname_spec='${libname}${release}${shared_ext}$major'
8578 shlibpath_var=LD_LIBRARY_PATH
8579 shlibpath_overrides_runpath=no
8580 hardcode_into_libs=yes
8581 dynamic_linker='GNU ld.so'
8582 ;;
8583
John Criswell7a73b802003-06-30 21:59:07 +00008584netbsd*)
8585 version_type=sunos
8586 need_lib_prefix=no
8587 need_version=no
8588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00008589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8591 dynamic_linker='NetBSD (a.out) ld.so'
8592 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00008594 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008595 dynamic_linker='NetBSD ld.elf_so'
8596 fi
8597 shlibpath_var=LD_LIBRARY_PATH
8598 shlibpath_overrides_runpath=yes
8599 hardcode_into_libs=yes
8600 ;;
8601
8602newsos6)
8603 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 shlibpath_var=LD_LIBRARY_PATH
8606 shlibpath_overrides_runpath=yes
8607 ;;
8608
Reid Spencer2706f8c2004-09-19 23:53:36 +00008609nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00008610 version_type=linux
8611 need_lib_prefix=no
8612 need_version=no
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008615 shlibpath_var=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath=yes
8617 ;;
8618
8619openbsd*)
8620 version_type=sunos
8621 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00008622 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00008626 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 +00008627 case $host_os in
8628 openbsd2.[89] | openbsd2.[89].*)
8629 shlibpath_overrides_runpath=no
8630 ;;
8631 *)
8632 shlibpath_overrides_runpath=yes
8633 ;;
8634 esac
John Criswell7a73b802003-06-30 21:59:07 +00008635 else
8636 shlibpath_overrides_runpath=yes
8637 fi
John Criswell7a73b802003-06-30 21:59:07 +00008638 ;;
8639
8640os2*)
8641 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00008642 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008643 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008644 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008645 dynamic_linker='OS/2 ld.exe'
8646 shlibpath_var=LIBPATH
8647 ;;
8648
8649osf3* | osf4* | osf5*)
8650 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008651 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008652 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008653 soname_spec='${libname}${release}${shared_ext}$major'
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008655 shlibpath_var=LD_LIBRARY_PATH
8656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8658 ;;
8659
8660sco3.2v5*)
8661 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008662 soname_spec='${libname}${release}${shared_ext}$major'
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008664 shlibpath_var=LD_LIBRARY_PATH
8665 ;;
8666
8667solaris*)
8668 version_type=linux
8669 need_lib_prefix=no
8670 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008673 shlibpath_var=LD_LIBRARY_PATH
8674 shlibpath_overrides_runpath=yes
8675 hardcode_into_libs=yes
8676 # ldd complains unless libraries are executable
8677 postinstall_cmds='chmod +x $lib'
8678 ;;
8679
8680sunos4*)
8681 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8684 shlibpath_var=LD_LIBRARY_PATH
8685 shlibpath_overrides_runpath=yes
8686 if test "$with_gnu_ld" = yes; then
8687 need_lib_prefix=no
8688 fi
8689 need_version=yes
8690 ;;
8691
8692sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8693 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008696 shlibpath_var=LD_LIBRARY_PATH
8697 case $host_vendor in
8698 sni)
8699 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008700 need_lib_prefix=no
8701 export_dynamic_flag_spec='${wl}-Blargedynsym'
8702 runpath_var=LD_RUN_PATH
8703 ;;
8704 siemens)
8705 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008706 ;;
8707 motorola)
8708 need_lib_prefix=no
8709 need_version=no
8710 shlibpath_overrides_runpath=no
8711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8712 ;;
8713 esac
8714 ;;
8715
John Criswell7a73b802003-06-30 21:59:07 +00008716sysv4*MP*)
8717 if test -d /usr/nec ;then
8718 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8720 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008721 shlibpath_var=LD_LIBRARY_PATH
8722 fi
8723 ;;
8724
John Criswell47fdd832003-07-14 16:52:07 +00008725uts4*)
8726 version_type=linux
8727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8728 soname_spec='${libname}${release}${shared_ext}$major'
8729 shlibpath_var=LD_LIBRARY_PATH
8730 ;;
8731
John Criswell7a73b802003-06-30 21:59:07 +00008732*)
8733 dynamic_linker=no
8734 ;;
8735esac
8736echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8737echo "${ECHO_T}$dynamic_linker" >&6
8738test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008739
Reid Spencer2706f8c2004-09-19 23:53:36 +00008740echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8741echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8742hardcode_action=
8743if test -n "$hardcode_libdir_flag_spec" || \
8744 test -n "$runpath_var" || \
8745 test "X$hardcode_automatic" = "Xyes" ; then
8746
8747 # We can hardcode non-existant directories.
8748 if test "$hardcode_direct" != no &&
8749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8750 # have to relink, otherwise we might link with an installed library
8751 # when we should be linking with a yet-to-be-installed one
8752 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8753 test "$hardcode_minus_L" != no; then
8754 # Linking always hardcodes the temporary library directory.
8755 hardcode_action=relink
8756 else
8757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8758 hardcode_action=immediate
8759 fi
8760else
8761 # We cannot hardcode anything, or else we can only hardcode existing
8762 # directories.
8763 hardcode_action=unsupported
8764fi
8765echo "$as_me:$LINENO: result: $hardcode_action" >&5
8766echo "${ECHO_T}$hardcode_action" >&6
8767
8768if test "$hardcode_action" = relink; then
8769 # Fast installation is not supported
8770 enable_fast_install=no
8771elif test "$shlibpath_overrides_runpath" = yes ||
8772 test "$enable_shared" = no; then
8773 # Fast installation is not necessary
8774 enable_fast_install=needless
8775fi
8776
8777striplib=
8778old_striplib=
8779echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8780echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8781if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8784 echo "$as_me:$LINENO: result: yes" >&5
8785echo "${ECHO_T}yes" >&6
8786else
8787# FIXME - insert some real tests, host_os isn't really good enough
8788 case $host_os in
8789 darwin*)
8790 if test -n "$STRIP" ; then
8791 striplib="$STRIP -x"
8792 echo "$as_me:$LINENO: result: yes" >&5
8793echo "${ECHO_T}yes" >&6
8794 else
8795 echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6
8797fi
8798 ;;
8799 *)
8800 echo "$as_me:$LINENO: result: no" >&5
8801echo "${ECHO_T}no" >&6
8802 ;;
8803 esac
8804fi
8805
John Criswell7a73b802003-06-30 21:59:07 +00008806if test "x$enable_dlopen" != xyes; then
8807 enable_dlopen=unknown
8808 enable_dlopen_self=unknown
8809 enable_dlopen_self_static=unknown
8810else
8811 lt_cv_dlopen=no
8812 lt_cv_dlopen_libs=
8813
8814 case $host_os in
8815 beos*)
8816 lt_cv_dlopen="load_add_on"
8817 lt_cv_dlopen_libs=
8818 lt_cv_dlopen_self=yes
8819 ;;
8820
John Criswell47fdd832003-07-14 16:52:07 +00008821 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008822 lt_cv_dlopen="LoadLibrary"
8823 lt_cv_dlopen_libs=
8824 ;;
8825
John Criswell47fdd832003-07-14 16:52:07 +00008826 cygwin*)
8827 lt_cv_dlopen="dlopen"
8828 lt_cv_dlopen_libs=
8829 ;;
8830
8831 darwin*)
8832 # if libdl is installed we need to link against it
8833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8835if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837else
8838 ac_check_lib_save_LIBS=$LIBS
8839LIBS="-ldl $LIBS"
8840cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008841/* confdefs.h. */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008846
8847/* Override any gcc2 internal prototype to avoid an error. */
8848#ifdef __cplusplus
8849extern "C"
8850#endif
8851/* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008854int
8855main ()
8856{
8857dlopen ();
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext conftest$ac_exeext
8863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008864 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_dl_dlopen=yes
8885else
8886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008887sed 's/^/| /' conftest.$ac_ext >&5
8888
John Criswell47fdd832003-07-14 16:52:07 +00008889ac_cv_lib_dl_dlopen=no
8890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008891rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008893LIBS=$ac_check_lib_save_LIBS
8894fi
8895echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8896echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8897if test $ac_cv_lib_dl_dlopen = yes; then
8898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8899else
8900
8901 lt_cv_dlopen="dyld"
8902 lt_cv_dlopen_libs=
8903 lt_cv_dlopen_self=yes
8904
8905fi
8906
8907 ;;
8908
John Criswell7a73b802003-06-30 21:59:07 +00008909 *)
8910 echo "$as_me:$LINENO: checking for shl_load" >&5
8911echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8912if test "${ac_cv_func_shl_load+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008921/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8923#define shl_load innocuous_shl_load
8924
John Criswell7a73b802003-06-30 21:59:07 +00008925/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008926 which can conflict with char shl_load (); below.
8927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8928 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008929
John Criswell0c38eaf2003-09-10 15:17:25 +00008930#ifdef __STDC__
8931# include <limits.h>
8932#else
8933# include <assert.h>
8934#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008935
8936#undef shl_load
8937
John Criswell7a73b802003-06-30 21:59:07 +00008938/* Override any gcc2 internal prototype to avoid an error. */
8939#ifdef __cplusplus
8940extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008941{
John Criswell7a73b802003-06-30 21:59:07 +00008942#endif
8943/* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8945char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008946/* The GNU C library defines this for functions which it implements
8947 to always fail with ENOSYS. Some functions are actually named
8948 something starting with __ and the normal name is an alias. */
8949#if defined (__stub_shl_load) || defined (__stub___shl_load)
8950choke me
8951#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008952char (*f) () = shl_load;
8953#endif
8954#ifdef __cplusplus
8955}
John Criswell7a73b802003-06-30 21:59:07 +00008956#endif
8957
John Criswell0c38eaf2003-09-10 15:17:25 +00008958int
8959main ()
8960{
8961return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008962 ;
8963 return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008968 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_func_shl_load=yes
8989else
8990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008991sed 's/^/| /' conftest.$ac_ext >&5
8992
John Criswell7a73b802003-06-30 21:59:07 +00008993ac_cv_func_shl_load=no
8994fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008995rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008997fi
8998echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8999echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9000if test $ac_cv_func_shl_load = yes; then
9001 lt_cv_dlopen="shl_load"
9002else
9003 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9004echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9005if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 ac_check_lib_save_LIBS=$LIBS
9009LIBS="-ldld $LIBS"
9010cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009016
9017/* Override any gcc2 internal prototype to avoid an error. */
9018#ifdef __cplusplus
9019extern "C"
9020#endif
9021/* We use char because int might match the return type of a gcc2
9022 builtin and then its argument prototype would still apply. */
9023char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00009024int
9025main ()
9026{
9027shl_load ();
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext conftest$ac_exeext
9033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009034 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009035 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_dld_shl_load=yes
9055else
9056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009057sed 's/^/| /' conftest.$ac_ext >&5
9058
John Criswell7a73b802003-06-30 21:59:07 +00009059ac_cv_lib_dld_shl_load=no
9060fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009061rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009063LIBS=$ac_check_lib_save_LIBS
9064fi
9065echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9066echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9067if test $ac_cv_lib_dld_shl_load = yes; then
9068 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9069else
9070 echo "$as_me:$LINENO: checking for dlopen" >&5
9071echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9072if test "${ac_cv_func_dlopen+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009076/* confdefs.h. */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00009081/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9083#define dlopen innocuous_dlopen
9084
John Criswell7a73b802003-06-30 21:59:07 +00009085/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00009086 which can conflict with char dlopen (); below.
9087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00009089
John Criswell0c38eaf2003-09-10 15:17:25 +00009090#ifdef __STDC__
9091# include <limits.h>
9092#else
9093# include <assert.h>
9094#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00009095
9096#undef dlopen
9097
John Criswell7a73b802003-06-30 21:59:07 +00009098/* Override any gcc2 internal prototype to avoid an error. */
9099#ifdef __cplusplus
9100extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00009101{
John Criswell7a73b802003-06-30 21:59:07 +00009102#endif
9103/* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00009106/* The GNU C library defines this for functions which it implements
9107 to always fail with ENOSYS. Some functions are actually named
9108 something starting with __ and the normal name is an alias. */
9109#if defined (__stub_dlopen) || defined (__stub___dlopen)
9110choke me
9111#else
John Criswell0c38eaf2003-09-10 15:17:25 +00009112char (*f) () = dlopen;
9113#endif
9114#ifdef __cplusplus
9115}
John Criswell7a73b802003-06-30 21:59:07 +00009116#endif
9117
John Criswell0c38eaf2003-09-10 15:17:25 +00009118int
9119main ()
9120{
9121return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00009122 ;
9123 return 0;
9124}
9125_ACEOF
9126rm -f conftest.$ac_objext conftest$ac_exeext
9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009128 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009129 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009135 { ac_try='test -z "$ac_c_werror_flag"
9136 || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_func_dlopen=yes
9149else
9150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009151sed 's/^/| /' conftest.$ac_ext >&5
9152
John Criswell7a73b802003-06-30 21:59:07 +00009153ac_cv_func_dlopen=no
9154fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009155rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009157fi
9158echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9159echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9160if test $ac_cv_func_dlopen = yes; then
9161 lt_cv_dlopen="dlopen"
9162else
9163 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9164echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9165if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168 ac_check_lib_save_LIBS=$LIBS
9169LIBS="-ldl $LIBS"
9170cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009171/* confdefs.h. */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009176
9177/* Override any gcc2 internal prototype to avoid an error. */
9178#ifdef __cplusplus
9179extern "C"
9180#endif
9181/* We use char because int might match the return type of a gcc2
9182 builtin and then its argument prototype would still apply. */
9183char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00009184int
9185main ()
9186{
9187dlopen ();
9188 ;
9189 return 0;
9190}
9191_ACEOF
9192rm -f conftest.$ac_objext conftest$ac_exeext
9193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009194 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009195 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_dl_dlopen=yes
9215else
9216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009217sed 's/^/| /' conftest.$ac_ext >&5
9218
John Criswell7a73b802003-06-30 21:59:07 +00009219ac_cv_lib_dl_dlopen=no
9220fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009221rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009223LIBS=$ac_check_lib_save_LIBS
9224fi
9225echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9226echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9227if test $ac_cv_lib_dl_dlopen = yes; then
9228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9229else
9230 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9231echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9232if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235 ac_check_lib_save_LIBS=$LIBS
9236LIBS="-lsvld $LIBS"
9237cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009243
9244/* Override any gcc2 internal prototype to avoid an error. */
9245#ifdef __cplusplus
9246extern "C"
9247#endif
9248/* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00009251int
9252main ()
9253{
9254dlopen ();
9255 ;
9256 return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext conftest$ac_exeext
9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009261 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009268 { ac_try='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 (eval $ac_try) 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_lib_svld_dlopen=yes
9282else
9283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009284sed 's/^/| /' conftest.$ac_ext >&5
9285
John Criswell7a73b802003-06-30 21:59:07 +00009286ac_cv_lib_svld_dlopen=no
9287fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009288rm -f conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009290LIBS=$ac_check_lib_save_LIBS
9291fi
9292echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9293echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9294if test $ac_cv_lib_svld_dlopen = yes; then
9295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9296else
9297 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9298echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9299if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302 ac_check_lib_save_LIBS=$LIBS
9303LIBS="-ldld $LIBS"
9304cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009305/* confdefs.h. */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
9309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009310
9311/* Override any gcc2 internal prototype to avoid an error. */
9312#ifdef __cplusplus
9313extern "C"
9314#endif
9315/* We use char because int might match the return type of a gcc2
9316 builtin and then its argument prototype would still apply. */
9317char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00009318int
9319main ()
9320{
9321dld_link ();
9322 ;
9323 return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext conftest$ac_exeext
9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009328 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_lib_dld_dld_link=yes
9349else
9350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009351sed 's/^/| /' conftest.$ac_ext >&5
9352
John Criswell7a73b802003-06-30 21:59:07 +00009353ac_cv_lib_dld_dld_link=no
9354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009355rm -f conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009357LIBS=$ac_check_lib_save_LIBS
9358fi
9359echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9360echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9361if test $ac_cv_lib_dld_dld_link = yes; then
9362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9363fi
9364
9365
9366fi
9367
9368
9369fi
9370
9371
9372fi
9373
9374
9375fi
9376
9377
9378fi
9379
9380 ;;
9381 esac
9382
9383 if test "x$lt_cv_dlopen" != xno; then
9384 enable_dlopen=yes
9385 else
9386 enable_dlopen=no
9387 fi
9388
9389 case $lt_cv_dlopen in
9390 dlopen)
9391 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00009392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00009393
9394 save_LDFLAGS="$LDFLAGS"
9395 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9396
9397 save_LIBS="$LIBS"
9398 LIBS="$lt_cv_dlopen_libs $LIBS"
9399
9400 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9401echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9402if test "${lt_cv_dlopen_self+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 if test "$cross_compiling" = yes; then :
9406 lt_cv_dlopen_self=cross
9407else
John Criswell47fdd832003-07-14 16:52:07 +00009408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00009409 lt_status=$lt_dlunknown
9410 cat > conftest.$ac_ext <<EOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00009411#line 9411 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00009412#include "confdefs.h"
9413
9414#if HAVE_DLFCN_H
9415#include <dlfcn.h>
9416#endif
9417
9418#include <stdio.h>
9419
9420#ifdef RTLD_GLOBAL
9421# define LT_DLGLOBAL RTLD_GLOBAL
9422#else
9423# ifdef DL_GLOBAL
9424# define LT_DLGLOBAL DL_GLOBAL
9425# else
9426# define LT_DLGLOBAL 0
9427# endif
9428#endif
9429
9430/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9431 find out it does not work in some platform. */
9432#ifndef LT_DLLAZY_OR_NOW
9433# ifdef RTLD_LAZY
9434# define LT_DLLAZY_OR_NOW RTLD_LAZY
9435# else
9436# ifdef DL_LAZY
9437# define LT_DLLAZY_OR_NOW DL_LAZY
9438# else
9439# ifdef RTLD_NOW
9440# define LT_DLLAZY_OR_NOW RTLD_NOW
9441# else
9442# ifdef DL_NOW
9443# define LT_DLLAZY_OR_NOW DL_NOW
9444# else
9445# define LT_DLLAZY_OR_NOW 0
9446# endif
9447# endif
9448# endif
9449# endif
9450#endif
9451
9452#ifdef __cplusplus
9453extern "C" void exit (int);
9454#endif
9455
9456void fnord() { int i=42;}
9457int main ()
9458{
9459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9460 int status = $lt_dlunknown;
9461
9462 if (self)
9463 {
9464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9466 /* dlclose (self); */
9467 }
9468
9469 exit (status);
9470}
9471EOF
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9477 (./conftest; exit; ) 2>/dev/null
9478 lt_status=$?
9479 case x$lt_status in
9480 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9481 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9482 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9483 esac
9484 else :
9485 # compilation failed
9486 lt_cv_dlopen_self=no
9487 fi
9488fi
9489rm -fr conftest*
9490
9491
9492fi
9493echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9494echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9495
9496 if test "x$lt_cv_dlopen_self" = xyes; then
9497 LDFLAGS="$LDFLAGS $link_static_flag"
9498 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9499echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9500if test "${lt_cv_dlopen_self_static+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503 if test "$cross_compiling" = yes; then :
9504 lt_cv_dlopen_self_static=cross
9505else
John Criswell47fdd832003-07-14 16:52:07 +00009506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00009507 lt_status=$lt_dlunknown
9508 cat > conftest.$ac_ext <<EOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00009509#line 9509 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00009510#include "confdefs.h"
9511
9512#if HAVE_DLFCN_H
9513#include <dlfcn.h>
9514#endif
9515
9516#include <stdio.h>
9517
9518#ifdef RTLD_GLOBAL
9519# define LT_DLGLOBAL RTLD_GLOBAL
9520#else
9521# ifdef DL_GLOBAL
9522# define LT_DLGLOBAL DL_GLOBAL
9523# else
9524# define LT_DLGLOBAL 0
9525# endif
9526#endif
9527
9528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9529 find out it does not work in some platform. */
9530#ifndef LT_DLLAZY_OR_NOW
9531# ifdef RTLD_LAZY
9532# define LT_DLLAZY_OR_NOW RTLD_LAZY
9533# else
9534# ifdef DL_LAZY
9535# define LT_DLLAZY_OR_NOW DL_LAZY
9536# else
9537# ifdef RTLD_NOW
9538# define LT_DLLAZY_OR_NOW RTLD_NOW
9539# else
9540# ifdef DL_NOW
9541# define LT_DLLAZY_OR_NOW DL_NOW
9542# else
9543# define LT_DLLAZY_OR_NOW 0
9544# endif
9545# endif
9546# endif
9547# endif
9548#endif
9549
9550#ifdef __cplusplus
9551extern "C" void exit (int);
9552#endif
9553
9554void fnord() { int i=42;}
9555int main ()
9556{
9557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9558 int status = $lt_dlunknown;
9559
9560 if (self)
9561 {
9562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9564 /* dlclose (self); */
9565 }
9566
9567 exit (status);
9568}
9569EOF
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9575 (./conftest; exit; ) 2>/dev/null
9576 lt_status=$?
9577 case x$lt_status in
9578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9580 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9581 esac
9582 else :
9583 # compilation failed
9584 lt_cv_dlopen_self_static=no
9585 fi
9586fi
9587rm -fr conftest*
9588
9589
9590fi
9591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9592echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9593 fi
9594
9595 CPPFLAGS="$save_CPPFLAGS"
9596 LDFLAGS="$save_LDFLAGS"
9597 LIBS="$save_LIBS"
9598 ;;
9599 esac
9600
9601 case $lt_cv_dlopen_self in
9602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9603 *) enable_dlopen_self=unknown ;;
9604 esac
9605
9606 case $lt_cv_dlopen_self_static in
9607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9608 *) enable_dlopen_self_static=unknown ;;
9609 esac
9610fi
9611
9612
John Criswell47fdd832003-07-14 16:52:07 +00009613# Report which librarie types wil actually be built
9614echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9615echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9616echo "$as_me:$LINENO: result: $can_build_shared" >&5
9617echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00009618
John Criswell47fdd832003-07-14 16:52:07 +00009619echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9620echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9621test "$can_build_shared" = "no" && enable_shared=no
9622
9623# On AIX, shared libraries and static libraries use the same namespace, and
9624# are all built from PIC.
9625case "$host_os" in
9626aix3*)
9627 test "$enable_shared" = yes && enable_static=no
9628 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00009630 postinstall_cmds='$RANLIB $lib'
9631 fi
9632 ;;
9633
Reid Spencer2706f8c2004-09-19 23:53:36 +00009634aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00009635 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9636 test "$enable_shared" = yes && enable_static=no
9637 fi
John Criswell7a73b802003-06-30 21:59:07 +00009638 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009639esac
9640echo "$as_me:$LINENO: result: $enable_shared" >&5
9641echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00009642
John Criswell47fdd832003-07-14 16:52:07 +00009643echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9644echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9645# Make sure either enable_shared or enable_static is yes.
9646test "$enable_shared" = yes || enable_static=yes
9647echo "$as_me:$LINENO: result: $enable_static" >&5
9648echo "${ECHO_T}$enable_static" >&6
9649
9650# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00009651# libtool distribution, otherwise you forgot to ship ltmain.sh
9652# with your package, and you will get complaints that there are
9653# no rules to generate ltmain.sh.
9654if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00009655 # See if we are running on zsh, and set the options which allow our commands through
9656 # without removal of \ escapes.
9657 if test -n "${ZSH_VERSION+set}" ; then
9658 setopt NO_GLOB_SUBST
9659 fi
John Criswell7a73b802003-06-30 21:59:07 +00009660 # Now quote all the things that may contain metacharacters while being
9661 # careful not to overquote the AC_SUBSTed values. We take copies of the
9662 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9664 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00009665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9667 deplibs_check_method reload_flag reload_cmds need_locks \
9668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9669 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00009670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00009671 old_postinstall_cmds old_postuninstall_cmds \
9672 compiler \
9673 CC \
9674 LD \
9675 lt_prog_compiler_wl \
9676 lt_prog_compiler_pic \
9677 lt_prog_compiler_static \
9678 lt_prog_compiler_no_builtin_flag \
9679 export_dynamic_flag_spec \
9680 thread_safe_flag_spec \
9681 whole_archive_flag_spec \
9682 enable_shared_with_static_runtimes \
9683 old_archive_cmds \
9684 old_archive_from_new_cmds \
9685 predep_objects \
9686 postdep_objects \
9687 predeps \
9688 postdeps \
9689 compiler_lib_search_path \
9690 archive_cmds \
9691 archive_expsym_cmds \
9692 postinstall_cmds \
9693 postuninstall_cmds \
9694 old_archive_from_expsyms_cmds \
9695 allow_undefined_flag \
9696 no_undefined_flag \
9697 export_symbols_cmds \
9698 hardcode_libdir_flag_spec \
9699 hardcode_libdir_flag_spec_ld \
9700 hardcode_libdir_separator \
9701 hardcode_automatic \
9702 module_cmds \
9703 module_expsym_cmds \
9704 lt_cv_prog_compiler_c_o \
9705 exclude_expsyms \
9706 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00009707
9708 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00009709 old_archive_cmds | \
9710 old_archive_from_new_cmds | \
9711 archive_cmds | \
9712 archive_expsym_cmds | \
9713 module_cmds | \
9714 module_expsym_cmds | \
9715 old_archive_from_expsyms_cmds | \
9716 export_symbols_cmds | \
9717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00009718 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00009719 old_postinstall_cmds | old_postuninstall_cmds | \
9720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00009721 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009722 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 +00009723 ;;
9724 *)
9725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9726 ;;
9727 esac
9728 done
9729
John Criswell47fdd832003-07-14 16:52:07 +00009730 case $lt_echo in
9731 *'\$0 --fallback-echo"')
9732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9733 ;;
9734 esac
9735
9736cfgfile="${ofile}T"
9737 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9738 $rm -f "$cfgfile"
9739 { echo "$as_me:$LINENO: creating $ofile" >&5
9740echo "$as_me: creating $ofile" >&6;}
9741
9742 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009743#! $SHELL
9744
John Criswell47fdd832003-07-14 16:52:07 +00009745# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00009746# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9747# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9748#
John Criswell47fdd832003-07-14 16:52:07 +00009749# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9750# Free Software Foundation, Inc.
9751#
9752# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00009753# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9754#
9755# This program is free software; you can redistribute it and/or modify
9756# it under the terms of the GNU General Public License as published by
9757# the Free Software Foundation; either version 2 of the License, or
9758# (at your option) any later version.
9759#
9760# This program is distributed in the hope that it will be useful, but
9761# WITHOUT ANY WARRANTY; without even the implied warranty of
9762# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9763# General Public License for more details.
9764#
9765# You should have received a copy of the GNU General Public License
9766# along with this program; if not, write to the Free Software
9767# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9768#
9769# As a special exception to the GNU General Public License, if you
9770# distribute this file as part of a program that contains a
9771# configuration script generated by Autoconf, you may include it under
9772# the same distribution terms that you use for the rest of that program.
9773
John Criswell47fdd832003-07-14 16:52:07 +00009774# A sed program that does not truncate output.
9775SED=$lt_SED
9776
John Criswell7a73b802003-06-30 21:59:07 +00009777# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00009778Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00009779
9780# The HP-UX ksh and POSIX shell print the target directory to stdout
9781# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009782(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00009783
John Criswell47fdd832003-07-14 16:52:07 +00009784# The names of the tagged configurations supported by this script.
9785available_tags=
9786
John Criswell7a73b802003-06-30 21:59:07 +00009787# ### BEGIN LIBTOOL CONFIG
9788
9789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9790
9791# Shell to use when invoking shell scripts.
9792SHELL=$lt_SHELL
9793
9794# Whether or not to build shared libraries.
9795build_libtool_libs=$enable_shared
9796
9797# Whether or not to build static libraries.
9798build_old_libs=$enable_static
9799
9800# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009801build_libtool_need_lc=$archive_cmds_need_lc
9802
9803# Whether or not to disallow shared libs when runtime libs are static
9804allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009805
9806# Whether or not to optimize for fast installation.
9807fast_install=$enable_fast_install
9808
9809# The host system.
9810host_alias=$host_alias
9811host=$host
9812
9813# An echo program that does not interpret backslashes.
9814echo=$lt_echo
9815
9816# The archiver.
9817AR=$lt_AR
9818AR_FLAGS=$lt_AR_FLAGS
9819
John Criswell47fdd832003-07-14 16:52:07 +00009820# A C compiler.
9821LTCC=$lt_LTCC
9822
9823# A language-specific compiler.
9824CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009825
9826# Is the compiler the GNU C compiler?
9827with_gcc=$GCC
9828
John Criswell47fdd832003-07-14 16:52:07 +00009829# An ERE matcher.
9830EGREP=$lt_EGREP
9831
John Criswell7a73b802003-06-30 21:59:07 +00009832# The linker used to build libraries.
9833LD=$lt_LD
9834
9835# Whether we need hard or soft links.
9836LN_S=$lt_LN_S
9837
9838# A BSD-compatible nm program.
9839NM=$lt_NM
9840
9841# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009842STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009843
9844# Used to examine libraries when file_magic_cmd begins "file"
9845MAGIC_CMD=$MAGIC_CMD
9846
9847# Used on cygwin: DLL creation program.
9848DLLTOOL="$DLLTOOL"
9849
9850# Used on cygwin: object dumper.
9851OBJDUMP="$OBJDUMP"
9852
9853# Used on cygwin: assembler.
9854AS="$AS"
9855
9856# The name of the directory that contains temporary libtool files.
9857objdir=$objdir
9858
9859# How to create reloadable object files.
9860reload_flag=$lt_reload_flag
9861reload_cmds=$lt_reload_cmds
9862
9863# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009864wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009865
9866# Object file suffix (normally "o").
9867objext="$ac_objext"
9868
9869# Old archive suffix (normally "a").
9870libext="$libext"
9871
John Criswell47fdd832003-07-14 16:52:07 +00009872# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009873shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009874
John Criswell7a73b802003-06-30 21:59:07 +00009875# Executable file suffix (normally "").
9876exeext="$exeext"
9877
9878# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009879pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009880pic_mode=$pic_mode
9881
John Criswell47fdd832003-07-14 16:52:07 +00009882# What is the maximum length of a command?
9883max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009884
John Criswell47fdd832003-07-14 16:52:07 +00009885# Does compiler simultaneously support -c and -o options?
9886compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009887
9888# Must we lock files when doing compilation ?
9889need_locks=$lt_need_locks
9890
9891# Do we need the lib prefix for modules?
9892need_lib_prefix=$need_lib_prefix
9893
9894# Do we need a version for libraries?
9895need_version=$need_version
9896
9897# Whether dlopen is supported.
9898dlopen_support=$enable_dlopen
9899
9900# Whether dlopen of programs is supported.
9901dlopen_self=$enable_dlopen_self
9902
9903# Whether dlopen of statically linked programs is supported.
9904dlopen_self_static=$enable_dlopen_self_static
9905
9906# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009907link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009908
9909# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009911
9912# Compiler flag to allow reflexive dlopens.
9913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9914
9915# Compiler flag to generate shared objects directly from archives.
9916whole_archive_flag_spec=$lt_whole_archive_flag_spec
9917
9918# Compiler flag to generate thread-safe objects.
9919thread_safe_flag_spec=$lt_thread_safe_flag_spec
9920
9921# Library versioning type.
9922version_type=$version_type
9923
9924# Format of library name prefix.
9925libname_spec=$lt_libname_spec
9926
9927# List of archive names. First name is the real one, the rest are links.
9928# The last name is the one that the linker finds with -lNAME.
9929library_names_spec=$lt_library_names_spec
9930
9931# The coded name of the library, if different from the real name.
9932soname_spec=$lt_soname_spec
9933
9934# Commands used to build and install an old-style archive.
9935RANLIB=$lt_RANLIB
9936old_archive_cmds=$lt_old_archive_cmds
9937old_postinstall_cmds=$lt_old_postinstall_cmds
9938old_postuninstall_cmds=$lt_old_postuninstall_cmds
9939
9940# Create an old-style archive from a shared archive.
9941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9942
9943# Create a temporary old-style archive to link instead of a shared archive.
9944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9945
9946# Commands used to build and install a shared archive.
9947archive_cmds=$lt_archive_cmds
9948archive_expsym_cmds=$lt_archive_expsym_cmds
9949postinstall_cmds=$lt_postinstall_cmds
9950postuninstall_cmds=$lt_postuninstall_cmds
9951
John Criswell47fdd832003-07-14 16:52:07 +00009952# Commands used to build a loadable module (assumed same as above if empty)
9953module_cmds=$lt_module_cmds
9954module_expsym_cmds=$lt_module_expsym_cmds
9955
John Criswell7a73b802003-06-30 21:59:07 +00009956# Commands to strip libraries.
9957old_striplib=$lt_old_striplib
9958striplib=$lt_striplib
9959
John Criswell47fdd832003-07-14 16:52:07 +00009960# Dependencies to place before the objects being linked to create a
9961# shared library.
9962predep_objects=$lt_predep_objects
9963
9964# Dependencies to place after the objects being linked to create a
9965# shared library.
9966postdep_objects=$lt_postdep_objects
9967
9968# Dependencies to place before the objects being linked to create a
9969# shared library.
9970predeps=$lt_predeps
9971
9972# Dependencies to place after the objects being linked to create a
9973# shared library.
9974postdeps=$lt_postdeps
9975
9976# The library search path used internally by the compiler when linking
9977# a shared library.
9978compiler_lib_search_path=$lt_compiler_lib_search_path
9979
John Criswell7a73b802003-06-30 21:59:07 +00009980# Method to check whether dependent libraries are shared objects.
9981deplibs_check_method=$lt_deplibs_check_method
9982
9983# Command to use when deplibs_check_method == file_magic.
9984file_magic_cmd=$lt_file_magic_cmd
9985
9986# Flag that allows shared libraries with undefined symbols to be built.
9987allow_undefined_flag=$lt_allow_undefined_flag
9988
9989# Flag that forces no undefined symbols.
9990no_undefined_flag=$lt_no_undefined_flag
9991
9992# Commands used to finish a libtool library installation in a directory.
9993finish_cmds=$lt_finish_cmds
9994
9995# Same as above, but a single script fragment to be evaled but not shown.
9996finish_eval=$lt_finish_eval
9997
9998# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009999global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000010000
10001# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000010002global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000010003
10004# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000010005global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000010006
10007# This is the shared library runtime path variable.
10008runpath_var=$runpath_var
10009
10010# This is the shared library path variable.
10011shlibpath_var=$shlibpath_var
10012
10013# Is shlibpath searched before the hard-coded library search path?
10014shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10015
10016# How to hardcode a shared library path into an executable.
10017hardcode_action=$hardcode_action
10018
10019# Whether we should hardcode library paths into libraries.
10020hardcode_into_libs=$hardcode_into_libs
10021
10022# Flag to hardcode \$libdir into a binary during linking.
10023# This must work even if \$libdir does not exist.
10024hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10025
John Criswell47fdd832003-07-14 16:52:07 +000010026# If ld is used when linking, flag to hardcode \$libdir into
10027# a binary during linking. This must work even if \$libdir does
10028# not exist.
10029hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10030
John Criswell7a73b802003-06-30 21:59:07 +000010031# Whether we need a single -rpath flag with a separated argument.
10032hardcode_libdir_separator=$lt_hardcode_libdir_separator
10033
John Criswell47fdd832003-07-14 16:52:07 +000010034# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000010035# resulting binary.
10036hardcode_direct=$hardcode_direct
10037
10038# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10039# resulting binary.
10040hardcode_minus_L=$hardcode_minus_L
10041
10042# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10043# the resulting binary.
10044hardcode_shlibpath_var=$hardcode_shlibpath_var
10045
John Criswell47fdd832003-07-14 16:52:07 +000010046# Set to yes if building a shared library automatically hardcodes DIR into the library
10047# and all subsequent libraries and executables linked against it.
10048hardcode_automatic=$hardcode_automatic
10049
John Criswell7a73b802003-06-30 21:59:07 +000010050# Variables whose values should be saved in libtool wrapper scripts and
10051# restored at relink time.
10052variables_saved_for_relink="$variables_saved_for_relink"
10053
10054# Whether libtool must link a program against all its dependency libraries.
10055link_all_deplibs=$link_all_deplibs
10056
10057# Compile-time system search path for libraries
10058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10059
10060# Run-time system search path for libraries
10061sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10062
10063# Fix the shell variable \$srcfile for the compiler.
10064fix_srcfile_path="$fix_srcfile_path"
10065
10066# Set to yes if exported symbols are required.
10067always_export_symbols=$always_export_symbols
10068
10069# The commands to list exported symbols.
10070export_symbols_cmds=$lt_export_symbols_cmds
10071
10072# The commands to extract the exported symbol list from a shared archive.
10073extract_expsyms_cmds=$lt_extract_expsyms_cmds
10074
10075# Symbols that should not be listed in the preloaded symbols.
10076exclude_expsyms=$lt_exclude_expsyms
10077
10078# Symbols that must always be exported.
10079include_expsyms=$lt_include_expsyms
10080
10081# ### END LIBTOOL CONFIG
10082
10083__EOF__
10084
John Criswell47fdd832003-07-14 16:52:07 +000010085
John Criswell7a73b802003-06-30 21:59:07 +000010086 case $host_os in
10087 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000010088 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000010089
10090# AIX sometimes has problems with the GCC collect2 program. For some
10091# reason, if we set the COLLECT_NAMES environment variable, the problems
10092# vanish in a puff of smoke.
10093if test "X${COLLECT_NAMES+set}" != Xset; then
10094 COLLECT_NAMES=
10095 export COLLECT_NAMES
10096fi
10097EOF
10098 ;;
10099 esac
10100
John Criswell7a73b802003-06-30 21:59:07 +000010101 # We use sed instead of cat because bash on DJGPP gets confused if
10102 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10103 # text mode, it properly converts lines to CR/LF. This bash problem
10104 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000010105 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000010106
John Criswell47fdd832003-07-14 16:52:07 +000010107 mv -f "$cfgfile" "$ofile" || \
10108 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000010109 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000010110
10111else
10112 # If there is no Makefile yet, we rely on a make rule to execute
10113 # `config.status --recheck' to rerun these tests and create the
10114 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010115 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10116 if test -f "$ltmain_in"; then
10117 test -f Makefile && make "$ltmain"
10118 fi
John Criswell7a73b802003-06-30 21:59:07 +000010119fi
John Criswell7a73b802003-06-30 21:59:07 +000010120
10121
John Criswell47fdd832003-07-14 16:52:07 +000010122ac_ext=c
10123ac_cpp='$CPP $CPPFLAGS'
10124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126ac_compiler_gnu=$ac_cv_c_compiler_gnu
10127
10128CC="$lt_save_CC"
10129
10130
10131# Check whether --with-tags or --without-tags was given.
10132if test "${with_tags+set}" = set; then
10133 withval="$with_tags"
10134 tagnames="$withval"
10135fi;
10136
10137if test -f "$ltmain" && test -n "$tagnames"; then
10138 if test ! -f "${ofile}"; then
10139 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10140echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10141 fi
10142
10143 if test -z "$LTCC"; then
10144 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10145 if test -z "$LTCC"; then
10146 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10147echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10148 else
10149 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10150echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10151 fi
10152 fi
10153
10154 # Extract list of available tagged configurations in $ofile.
10155 # Note that this assumes the entire list is on one line.
10156 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10157
10158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10159 for tagname in $tagnames; do
10160 IFS="$lt_save_ifs"
10161 # Check whether tagname contains only valid characters
10162 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10163 "") ;;
10164 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10165echo "$as_me: error: invalid tag name: $tagname" >&2;}
10166 { (exit 1); exit 1; }; }
10167 ;;
10168 esac
10169
10170 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10171 then
10172 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10173echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10174 { (exit 1); exit 1; }; }
10175 fi
10176
10177 # Update the list of available tags.
10178 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010179 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000010180
10181 case $tagname in
10182 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010183 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10184 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10185 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000010186 ac_ext=cc
10187ac_cpp='$CXXCPP $CPPFLAGS'
10188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10191
10192
10193
10194
10195archive_cmds_need_lc_CXX=no
10196allow_undefined_flag_CXX=
10197always_export_symbols_CXX=no
10198archive_expsym_cmds_CXX=
10199export_dynamic_flag_spec_CXX=
10200hardcode_direct_CXX=no
10201hardcode_libdir_flag_spec_CXX=
10202hardcode_libdir_flag_spec_ld_CXX=
10203hardcode_libdir_separator_CXX=
10204hardcode_minus_L_CXX=no
10205hardcode_automatic_CXX=no
10206module_cmds_CXX=
10207module_expsym_cmds_CXX=
10208link_all_deplibs_CXX=unknown
10209old_archive_cmds_CXX=$old_archive_cmds
10210no_undefined_flag_CXX=
10211whole_archive_flag_spec_CXX=
10212enable_shared_with_static_runtimes_CXX=no
10213
10214# Dependencies to place before and after the object being linked:
10215predep_objects_CXX=
10216postdep_objects_CXX=
10217predeps_CXX=
10218postdeps_CXX=
10219compiler_lib_search_path_CXX=
10220
10221# Source file extension for C++ test sources.
10222ac_ext=cc
10223
10224# Object file extension for compiled C++ test sources.
10225objext=o
10226objext_CXX=$objext
10227
10228# Code to be used in simple compile tests
10229lt_simple_compile_test_code="int some_variable = 0;\n"
10230
10231# Code to be used in simple link tests
10232lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10233
10234# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10235
10236# If no C compiler was specified, use CC.
10237LTCC=${LTCC-"$CC"}
10238
10239# Allow CC to be a program name with arguments.
10240compiler=$CC
10241
10242
10243# Allow CC to be a program name with arguments.
10244lt_save_CC=$CC
10245lt_save_LD=$LD
10246lt_save_GCC=$GCC
10247GCC=$GXX
10248lt_save_with_gnu_ld=$with_gnu_ld
10249lt_save_path_LD=$lt_cv_path_LD
10250if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10252else
10253 unset lt_cv_prog_gnu_ld
10254fi
10255if test -n "${lt_cv_path_LDCXX+set}"; then
10256 lt_cv_path_LD=$lt_cv_path_LDCXX
10257else
10258 unset lt_cv_path_LD
10259fi
10260test -z "${LDCXX+set}" || LD=$LDCXX
10261CC=${CXX-"c++"}
10262compiler=$CC
10263compiler_CXX=$CC
10264cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10265
10266# We don't want -fno-exception wen compiling C++ code, so set the
10267# no_builtin_flag separately
10268if test "$GXX" = yes; then
10269 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10270else
10271 lt_prog_compiler_no_builtin_flag_CXX=
10272fi
10273
10274if test "$GXX" = yes; then
10275 # Set up default GNU C++ configuration
10276
10277
10278# Check whether --with-gnu-ld or --without-gnu-ld was given.
10279if test "${with_gnu_ld+set}" = set; then
10280 withval="$with_gnu_ld"
10281 test "$withval" = no || with_gnu_ld=yes
10282else
10283 with_gnu_ld=no
10284fi;
10285ac_prog=ld
10286if test "$GCC" = yes; then
10287 # Check if gcc -print-prog-name=ld gives a path.
10288 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10289echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10290 case $host in
10291 *-*-mingw*)
10292 # gcc leaves a trailing carriage return which upsets mingw
10293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10294 *)
10295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10296 esac
10297 case $ac_prog in
10298 # Accept absolute paths.
10299 [\\/]* | ?:[\\/]*)
10300 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010301 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000010302 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10303 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10304 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10305 done
10306 test -z "$LD" && LD="$ac_prog"
10307 ;;
10308 "")
10309 # If it fails, then pretend we aren't using GCC.
10310 ac_prog=ld
10311 ;;
10312 *)
10313 # If it is relative, then search for the first ld in PATH.
10314 with_gnu_ld=unknown
10315 ;;
10316 esac
10317elif test "$with_gnu_ld" = yes; then
10318 echo "$as_me:$LINENO: checking for GNU ld" >&5
10319echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10320else
10321 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10322echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10323fi
10324if test "${lt_cv_path_LD+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326else
10327 if test -z "$LD"; then
10328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10329 for ac_dir in $PATH; do
10330 IFS="$lt_save_ifs"
10331 test -z "$ac_dir" && ac_dir=.
10332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10333 lt_cv_path_LD="$ac_dir/$ac_prog"
10334 # Check to see if the program is GNU ld. I'd rather use --version,
10335 # but apparently some GNU ld's only accept -v.
10336 # Break only if it was the GNU/non-GNU ld that we prefer.
10337 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10338 *GNU* | *'with BFD'*)
10339 test "$with_gnu_ld" != no && break
10340 ;;
10341 *)
10342 test "$with_gnu_ld" != yes && break
10343 ;;
10344 esac
10345 fi
10346 done
10347 IFS="$lt_save_ifs"
10348else
10349 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10350fi
10351fi
10352
10353LD="$lt_cv_path_LD"
10354if test -n "$LD"; then
10355 echo "$as_me:$LINENO: result: $LD" >&5
10356echo "${ECHO_T}$LD" >&6
10357else
10358 echo "$as_me:$LINENO: result: no" >&5
10359echo "${ECHO_T}no" >&6
10360fi
10361test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10362echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10363 { (exit 1); exit 1; }; }
10364echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10365echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10366if test "${lt_cv_prog_gnu_ld+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368else
10369 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010370case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000010371*GNU* | *'with BFD'*)
10372 lt_cv_prog_gnu_ld=yes
10373 ;;
10374*)
10375 lt_cv_prog_gnu_ld=no
10376 ;;
10377esac
10378fi
10379echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10380echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10381with_gnu_ld=$lt_cv_prog_gnu_ld
10382
10383
10384
10385 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10386 # archiving commands below assume that GNU ld is being used.
10387 if test "$with_gnu_ld" = yes; then
10388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 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'
10390
10391 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10393
10394 # If archive_cmds runs LD, not CC, wlarc should be empty
10395 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10396 # investigate it a little bit more. (MM)
10397 wlarc='${wl}'
10398
10399 # ancient GNU ld didn't support --whole-archive et. al.
10400 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10401 grep 'no-whole-archive' > /dev/null; then
10402 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10403 else
10404 whole_archive_flag_spec_CXX=
10405 fi
10406 else
10407 with_gnu_ld=no
10408 wlarc=
10409
10410 # A generic and very simple default shared library creation
10411 # command for GNU C++ for the case where it uses the native
10412 # linker, instead of GNU ld. If possible, this setting should
10413 # overridden to take advantage of the native linker features on
10414 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010415 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000010416 fi
10417
10418 # Commands to make compiler produce verbose output that lists
10419 # what "hidden" libraries, object files and flags are used when
10420 # linking a shared library.
10421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10422
10423else
10424 GXX=no
10425 with_gnu_ld=no
10426 wlarc=
10427fi
10428
10429# PORTME: fill in a description of your system's C++ link characteristics
10430echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10431echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10432ld_shlibs_CXX=yes
10433case $host_os in
10434 aix3*)
10435 # FIXME: insert proper C++ library support
10436 ld_shlibs_CXX=no
10437 ;;
10438 aix4* | aix5*)
10439 if test "$host_cpu" = ia64; then
10440 # On IA64, the linker does run time linking by default, so we don't
10441 # have to do anything special.
10442 aix_use_runtimelinking=no
10443 exp_sym_flag='-Bexport'
10444 no_entry_flag=""
10445 else
10446 aix_use_runtimelinking=no
10447
10448 # Test if we are trying to use run time linking or normal
10449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10450 # need to do runtime linking.
10451 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10452 for ld_flag in $LDFLAGS; do
10453 case $ld_flag in
10454 *-brtl*)
10455 aix_use_runtimelinking=yes
10456 break
10457 ;;
10458 esac
10459 done
10460 esac
10461
10462 exp_sym_flag='-bexport'
10463 no_entry_flag='-bnoentry'
10464 fi
10465
10466 # When large executables or shared objects are built, AIX ld can
10467 # have problems creating the table of contents. If linking a library
10468 # or program results in "error TOC overflow" add -mminimal-toc to
10469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10471
10472 archive_cmds_CXX=''
10473 hardcode_direct_CXX=yes
10474 hardcode_libdir_separator_CXX=':'
10475 link_all_deplibs_CXX=yes
10476
10477 if test "$GXX" = yes; then
10478 case $host_os in aix4.012|aix4.012.*)
10479 # We only want to do this on AIX 4.2 and lower, the check
10480 # below for broken collect2 doesn't work under 4.3+
10481 collect2name=`${CC} -print-prog-name=collect2`
10482 if test -f "$collect2name" && \
10483 strings "$collect2name" | grep resolve_lib_name >/dev/null
10484 then
10485 # We have reworked collect2
10486 hardcode_direct_CXX=yes
10487 else
10488 # We have old collect2
10489 hardcode_direct_CXX=unsupported
10490 # It fails to find uninstalled libraries when the uninstalled
10491 # path is not listed in the libpath. Setting hardcode_minus_L
10492 # to unsupported forces relinking
10493 hardcode_minus_L_CXX=yes
10494 hardcode_libdir_flag_spec_CXX='-L$libdir'
10495 hardcode_libdir_separator_CXX=
10496 fi
10497 esac
10498 shared_flag='-shared'
10499 else
10500 # not using gcc
10501 if test "$host_cpu" = ia64; then
10502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10503 # chokes on -Wl,-G. The following line is correct:
10504 shared_flag='-G'
10505 else
10506 if test "$aix_use_runtimelinking" = yes; then
10507 shared_flag='${wl}-G'
10508 else
10509 shared_flag='${wl}-bM:SRE'
10510 fi
10511 fi
10512 fi
10513
10514 # It seems that -bexpall does not export symbols beginning with
10515 # underscore (_), so it is better to generate a list of symbols to export.
10516 always_export_symbols_CXX=yes
10517 if test "$aix_use_runtimelinking" = yes; then
10518 # Warning - without using the other runtime loading flags (-brtl),
10519 # -berok will link without error, but may produce a broken library.
10520 allow_undefined_flag_CXX='-berok'
10521 # Determine the default libpath from the value encoded in an empty executable.
10522 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010528
John Criswell47fdd832003-07-14 16:52:07 +000010529int
10530main ()
10531{
10532
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext conftest$ac_exeext
10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010539 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010546 { ac_try='test -z "$ac_cxx_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000010554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559
10560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10561}'`
10562# Check for a 64-bit object if we didn't find anything.
10563if 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; }
10564}'`; fi
10565else
10566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010567sed 's/^/| /' conftest.$ac_ext >&5
10568
John Criswell47fdd832003-07-14 16:52:07 +000010569fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010570rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10573
10574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10575
10576 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"
10577 else
10578 if test "$host_cpu" = ia64; then
10579 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10580 allow_undefined_flag_CXX="-z nodefs"
10581 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"
10582 else
10583 # Determine the default libpath from the value encoded in an empty executable.
10584 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010590
John Criswell47fdd832003-07-14 16:52:07 +000010591int
10592main ()
10593{
10594
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext conftest$ac_exeext
10600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010601 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010608 { ac_try='test -z "$ac_cxx_werror_flag"
10609 || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000010616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621
10622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10623}'`
10624# Check for a 64-bit object if we didn't find anything.
10625if 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; }
10626}'`; fi
10627else
10628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010629sed 's/^/| /' conftest.$ac_ext >&5
10630
John Criswell47fdd832003-07-14 16:52:07 +000010631fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010632rm -f conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10635
10636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10637 # Warning - without using the other run time loading flags,
10638 # -berok will link without error, but may produce a broken library.
10639 no_undefined_flag_CXX=' ${wl}-bernotok'
10640 allow_undefined_flag_CXX=' ${wl}-berok'
10641 # -bexpall does not export symbols beginning with underscore (_)
10642 always_export_symbols_CXX=yes
10643 # Exported symbols can be pulled into shared objects from archives
10644 whole_archive_flag_spec_CXX=' '
10645 archive_cmds_need_lc_CXX=yes
10646 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000010647 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 +000010648 fi
10649 fi
10650 ;;
10651 chorus*)
10652 case $cc_basename in
10653 *)
10654 # FIXME: insert proper C++ library support
10655 ld_shlibs_CXX=no
10656 ;;
10657 esac
10658 ;;
10659
Reid Spencer2706f8c2004-09-19 23:53:36 +000010660
John Criswell47fdd832003-07-14 16:52:07 +000010661 cygwin* | mingw* | pw32*)
10662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10663 # as there is no search path for DLLs.
10664 hardcode_libdir_flag_spec_CXX='-L$libdir'
10665 allow_undefined_flag_CXX=unsupported
10666 always_export_symbols_CXX=no
10667 enable_shared_with_static_runtimes_CXX=yes
10668
10669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10670 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'
10671 # If the export-symbols file already is a .def file (1st line
10672 # is EXPORTS), use it as is; otherwise, prepend...
10673 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10674 cp $export_symbols $output_objdir/$soname.def;
10675 else
10676 echo EXPORTS > $output_objdir/$soname.def;
10677 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000010678 fi~
10679 $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 +000010680 else
10681 ld_shlibs_CXX=no
10682 fi
10683 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010684 darwin* | rhapsody*)
10685 case "$host_os" in
10686 rhapsody* | darwin1.[012])
10687 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10688 ;;
10689 *) # Darwin 1.3 on
10690 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10691 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10692 else
10693 case ${MACOSX_DEPLOYMENT_TARGET} in
10694 10.[012])
10695 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10696 ;;
10697 10.*)
10698 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10699 ;;
10700 esac
10701 fi
10702 ;;
10703 esac
10704 archive_cmds_need_lc_CXX=no
10705 hardcode_direct_CXX=no
10706 hardcode_automatic_CXX=yes
10707 hardcode_shlibpath_var_CXX=unsupported
10708 whole_archive_flag_spec_CXX=''
10709 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000010710
Reid Spencer2706f8c2004-09-19 23:53:36 +000010711 if test "$GXX" = yes ; then
10712 lt_int_apple_cc_single_mod=no
10713 output_verbose_link_cmd='echo'
10714 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10715 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000010716 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000010717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010718 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 +000010719 else
Reid Spencer177dbe22004-10-13 01:01:03 +000010720 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 +000010721 fi
10722 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10724 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010725 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 +000010726 else
Reid Spencer177dbe22004-10-13 01:01:03 +000010727 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 +000010728 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000010729 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 +000010730 else
10731 case "$cc_basename" in
10732 xlc*)
10733 output_verbose_link_cmd='echo'
10734 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'
10735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10736 # 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 +000010737 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}'
10738 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 +000010739 ;;
10740 *)
10741 ld_shlibs_CXX=no
10742 ;;
10743 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000010744 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010745 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010746
10747 dgux*)
10748 case $cc_basename in
10749 ec++)
10750 # FIXME: insert proper C++ library support
10751 ld_shlibs_CXX=no
10752 ;;
10753 ghcx)
10754 # Green Hills C++ Compiler
10755 # FIXME: insert proper C++ library support
10756 ld_shlibs_CXX=no
10757 ;;
10758 *)
10759 # FIXME: insert proper C++ library support
10760 ld_shlibs_CXX=no
10761 ;;
10762 esac
10763 ;;
10764 freebsd12*)
10765 # C++ shared libraries reported to be fairly broken before switch to ELF
10766 ld_shlibs_CXX=no
10767 ;;
10768 freebsd-elf*)
10769 archive_cmds_need_lc_CXX=no
10770 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010771 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010772 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10773 # conventions
10774 ld_shlibs_CXX=yes
10775 ;;
10776 gnu*)
10777 ;;
10778 hpux9*)
10779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10780 hardcode_libdir_separator_CXX=:
10781 export_dynamic_flag_spec_CXX='${wl}-E'
10782 hardcode_direct_CXX=yes
10783 hardcode_minus_L_CXX=yes # Not in the search PATH,
10784 # but as the default
10785 # location of the library.
10786
10787 case $cc_basename in
10788 CC)
10789 # FIXME: insert proper C++ library support
10790 ld_shlibs_CXX=no
10791 ;;
10792 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000010793 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 +000010794 # Commands to make compiler produce verbose output that lists
10795 # what "hidden" libraries, object files and flags are used when
10796 # linking a shared library.
10797 #
10798 # There doesn't appear to be a way to prevent this compiler from
10799 # explicitly linking system object files so we need to strip them
10800 # from the output so that they don't get included in the library
10801 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010802 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 +000010803 ;;
10804 *)
10805 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010806 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 +000010807 else
10808 # FIXME: insert proper C++ library support
10809 ld_shlibs_CXX=no
10810 fi
10811 ;;
10812 esac
10813 ;;
10814 hpux10*|hpux11*)
10815 if test $with_gnu_ld = no; then
10816 case "$host_cpu" in
10817 hppa*64*)
10818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10819 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10820 hardcode_libdir_separator_CXX=:
10821 ;;
10822 ia64*)
10823 hardcode_libdir_flag_spec_CXX='-L$libdir'
10824 ;;
10825 *)
10826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10827 hardcode_libdir_separator_CXX=:
10828 export_dynamic_flag_spec_CXX='${wl}-E'
10829 ;;
10830 esac
10831 fi
10832 case "$host_cpu" in
10833 hppa*64*)
10834 hardcode_direct_CXX=no
10835 hardcode_shlibpath_var_CXX=no
10836 ;;
10837 ia64*)
10838 hardcode_direct_CXX=no
10839 hardcode_shlibpath_var_CXX=no
10840 hardcode_minus_L_CXX=yes # Not in the search PATH,
10841 # but as the default
10842 # location of the library.
10843 ;;
10844 *)
10845 hardcode_direct_CXX=yes
10846 hardcode_minus_L_CXX=yes # Not in the search PATH,
10847 # but as the default
10848 # location of the library.
10849 ;;
10850 esac
10851
10852 case $cc_basename in
10853 CC)
10854 # FIXME: insert proper C++ library support
10855 ld_shlibs_CXX=no
10856 ;;
10857 aCC)
10858 case "$host_cpu" in
10859 hppa*64*|ia64*)
10860 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10861 ;;
10862 *)
10863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10864 ;;
10865 esac
10866 # Commands to make compiler produce verbose output that lists
10867 # what "hidden" libraries, object files and flags are used when
10868 # linking a shared library.
10869 #
10870 # There doesn't appear to be a way to prevent this compiler from
10871 # explicitly linking system object files so we need to strip them
10872 # from the output so that they don't get included in the library
10873 # dependencies.
10874 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'
10875 ;;
10876 *)
10877 if test "$GXX" = yes; then
10878 if test $with_gnu_ld = no; then
10879 case "$host_cpu" in
10880 ia64*|hppa*64*)
10881 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10882 ;;
10883 *)
10884 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'
10885 ;;
10886 esac
10887 fi
10888 else
10889 # FIXME: insert proper C++ library support
10890 ld_shlibs_CXX=no
10891 fi
10892 ;;
10893 esac
10894 ;;
10895 irix5* | irix6*)
10896 case $cc_basename in
10897 CC)
10898 # SGI C++
10899 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'
10900
10901 # Archives containing C++ object files must be created using
10902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10903 # necessary to make sure instantiated templates are included
10904 # in the archive.
10905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10906 ;;
10907 *)
10908 if test "$GXX" = yes; then
10909 if test "$with_gnu_ld" = no; then
10910 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'
10911 else
10912 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'
10913 fi
10914 fi
10915 link_all_deplibs_CXX=yes
10916 ;;
10917 esac
10918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10919 hardcode_libdir_separator_CXX=:
10920 ;;
10921 linux*)
10922 case $cc_basename in
10923 KCC)
10924 # Kuck and Associates, Inc. (KAI) C++ Compiler
10925
10926 # KCC will only create a shared library if the output file
10927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10928 # to its proper name (with version) after linking.
10929 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'
10930 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'
10931 # Commands to make compiler produce verbose output that lists
10932 # what "hidden" libraries, object files and flags are used when
10933 # linking a shared library.
10934 #
10935 # There doesn't appear to be a way to prevent this compiler from
10936 # explicitly linking system object files so we need to strip them
10937 # from the output so that they don't get included in the library
10938 # dependencies.
10939 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'
10940
10941 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10943
10944 # Archives containing C++ object files must be created using
10945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10947 ;;
10948 icpc)
10949 # Intel C++
10950 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010951 # version 8.0 and above of icpc choke on multiply defined symbols
10952 # if we add $predep_objects and $postdep_objects, however 7.1 and
10953 # earlier do not add the objects themselves.
10954 case `$CC -V 2>&1` in
10955 *"Version 7."*)
10956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10957 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'
10958 ;;
10959 *) # Version 8.0 or newer
10960 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10962 ;;
10963 esac
John Criswell47fdd832003-07-14 16:52:07 +000010964 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010965 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10967 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10968 ;;
10969 cxx)
10970 # Compaq C++
10971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10972 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'
10973
10974 runpath_var=LD_RUN_PATH
10975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10976 hardcode_libdir_separator_CXX=:
10977
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10981 #
10982 # There doesn't appear to be a way to prevent this compiler from
10983 # explicitly linking system object files so we need to strip them
10984 # from the output so that they don't get included in the library
10985 # dependencies.
10986 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'
10987 ;;
10988 esac
10989 ;;
10990 lynxos*)
10991 # FIXME: insert proper C++ library support
10992 ld_shlibs_CXX=no
10993 ;;
10994 m88k*)
10995 # FIXME: insert proper C++ library support
10996 ld_shlibs_CXX=no
10997 ;;
10998 mvs*)
10999 case $cc_basename in
11000 cxx)
11001 # FIXME: insert proper C++ library support
11002 ld_shlibs_CXX=no
11003 ;;
11004 *)
11005 # FIXME: insert proper C++ library support
11006 ld_shlibs_CXX=no
11007 ;;
11008 esac
11009 ;;
11010 netbsd*)
11011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11013 wlarc=
11014 hardcode_libdir_flag_spec_CXX='-R$libdir'
11015 hardcode_direct_CXX=yes
11016 hardcode_shlibpath_var_CXX=no
11017 fi
11018 # Workaround some broken pre-1.5 toolchains
11019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11020 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011021 openbsd2*)
11022 # C++ shared libraries are fairly broken
11023 ld_shlibs_CXX=no
11024 ;;
11025 openbsd*)
11026 hardcode_direct_CXX=yes
11027 hardcode_shlibpath_var_CXX=no
11028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11032 export_dynamic_flag_spec_CXX='${wl}-E'
11033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11034 fi
11035 output_verbose_link_cmd='echo'
11036 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011037 osf3*)
11038 case $cc_basename in
11039 KCC)
11040 # Kuck and Associates, Inc. (KAI) C++ Compiler
11041
11042 # KCC will only create a shared library if the output file
11043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11044 # to its proper name (with version) after linking.
11045 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'
11046
11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048 hardcode_libdir_separator_CXX=:
11049
11050 # Archives containing C++ object files must be created using
11051 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11053
11054 ;;
11055 RCC)
11056 # Rational C++ 2.4.1
11057 # FIXME: insert proper C++ library support
11058 ld_shlibs_CXX=no
11059 ;;
11060 cxx)
11061 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11062 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'
11063
11064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11065 hardcode_libdir_separator_CXX=:
11066
11067 # Commands to make compiler produce verbose output that lists
11068 # what "hidden" libraries, object files and flags are used when
11069 # linking a shared library.
11070 #
11071 # There doesn't appear to be a way to prevent this compiler from
11072 # explicitly linking system object files so we need to strip them
11073 # from the output so that they don't get included in the library
11074 # dependencies.
11075 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'
11076 ;;
11077 *)
11078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11080 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'
11081
11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11083 hardcode_libdir_separator_CXX=:
11084
11085 # Commands to make compiler produce verbose output that lists
11086 # what "hidden" libraries, object files and flags are used when
11087 # linking a shared library.
11088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11089
11090 else
11091 # FIXME: insert proper C++ library support
11092 ld_shlibs_CXX=no
11093 fi
11094 ;;
11095 esac
11096 ;;
11097 osf4* | osf5*)
11098 case $cc_basename in
11099 KCC)
11100 # Kuck and Associates, Inc. (KAI) C++ Compiler
11101
11102 # KCC will only create a shared library if the output file
11103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11104 # to its proper name (with version) after linking.
11105 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'
11106
11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11108 hardcode_libdir_separator_CXX=:
11109
11110 # Archives containing C++ object files must be created using
11111 # the KAI C++ compiler.
11112 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11113 ;;
11114 RCC)
11115 # Rational C++ 2.4.1
11116 # FIXME: insert proper C++ library support
11117 ld_shlibs_CXX=no
11118 ;;
11119 cxx)
11120 allow_undefined_flag_CXX=' -expect_unresolved \*'
11121 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 +000011122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11123 echo "-hidden">> $lib.exp~
11124 $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~
11125 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000011126
11127 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11128 hardcode_libdir_separator_CXX=:
11129
11130 # Commands to make compiler produce verbose output that lists
11131 # what "hidden" libraries, object files and flags are used when
11132 # linking a shared library.
11133 #
11134 # There doesn't appear to be a way to prevent this compiler from
11135 # explicitly linking system object files so we need to strip them
11136 # from the output so that they don't get included in the library
11137 # dependencies.
11138 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'
11139 ;;
11140 *)
11141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11143 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'
11144
11145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11146 hardcode_libdir_separator_CXX=:
11147
11148 # Commands to make compiler produce verbose output that lists
11149 # what "hidden" libraries, object files and flags are used when
11150 # linking a shared library.
11151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11152
11153 else
11154 # FIXME: insert proper C++ library support
11155 ld_shlibs_CXX=no
11156 fi
11157 ;;
11158 esac
11159 ;;
11160 psos*)
11161 # FIXME: insert proper C++ library support
11162 ld_shlibs_CXX=no
11163 ;;
11164 sco*)
11165 archive_cmds_need_lc_CXX=no
11166 case $cc_basename in
11167 CC)
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 *)
11172 # FIXME: insert proper C++ library support
11173 ld_shlibs_CXX=no
11174 ;;
11175 esac
11176 ;;
11177 sunos4*)
11178 case $cc_basename in
11179 CC)
11180 # Sun C++ 4.x
11181 # FIXME: insert proper C++ library support
11182 ld_shlibs_CXX=no
11183 ;;
11184 lcc)
11185 # Lucid
11186 # FIXME: insert proper C++ library support
11187 ld_shlibs_CXX=no
11188 ;;
11189 *)
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11192 ;;
11193 esac
11194 ;;
11195 solaris*)
11196 case $cc_basename in
11197 CC)
11198 # Sun C++ 4.2, 5.x and Centerline C++
11199 no_undefined_flag_CXX=' -zdefs'
11200 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 +000011201 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11202 $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 +000011203
11204 hardcode_libdir_flag_spec_CXX='-R$libdir'
11205 hardcode_shlibpath_var_CXX=no
11206 case $host_os in
11207 solaris2.0-5 | solaris2.0-5.*) ;;
11208 *)
11209 # The C++ compiler is used as linker so we must use $wl
11210 # flag to pass the commands to the underlying system
11211 # linker.
11212 # Supported since Solaris 2.6 (maybe 2.5.1?)
11213 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11214 ;;
11215 esac
11216 link_all_deplibs_CXX=yes
11217
11218 # Commands to make compiler produce verbose output that lists
11219 # what "hidden" libraries, object files and flags are used when
11220 # linking a shared library.
11221 #
11222 # There doesn't appear to be a way to prevent this compiler from
11223 # explicitly linking system object files so we need to strip them
11224 # from the output so that they don't get included in the library
11225 # dependencies.
11226 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'
11227
11228 # Archives containing C++ object files must be created using
11229 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11230 # necessary to make sure instantiated templates are included
11231 # in the archive.
11232 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11233 ;;
11234 gcx)
11235 # Green Hills C++ Compiler
11236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11237
11238 # The C++ compiler must be used to create the archive.
11239 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11240 ;;
11241 *)
11242 # GNU C++ compiler with Solaris linker
11243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11244 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11245 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000011246 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 +000011247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11248 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11249
John Criswell47fdd832003-07-14 16:52:07 +000011250 # Commands to make compiler produce verbose output that lists
11251 # what "hidden" libraries, object files and flags are used when
11252 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000011253 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000011254 else
11255 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11256 # platform.
11257 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 +000011258 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11259 $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 +000011260
11261 # Commands to make compiler produce verbose output that lists
11262 # what "hidden" libraries, object files and flags are used when
11263 # linking a shared library.
11264 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11265 fi
11266
11267 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11268 fi
11269 ;;
11270 esac
11271 ;;
11272 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11273 archive_cmds_need_lc_CXX=no
11274 ;;
11275 tandem*)
11276 case $cc_basename in
11277 NCC)
11278 # NonStop-UX NCC 3.20
11279 # FIXME: insert proper C++ library support
11280 ld_shlibs_CXX=no
11281 ;;
11282 *)
11283 # FIXME: insert proper C++ library support
11284 ld_shlibs_CXX=no
11285 ;;
11286 esac
11287 ;;
11288 vxworks*)
11289 # FIXME: insert proper C++ library support
11290 ld_shlibs_CXX=no
11291 ;;
11292 *)
11293 # FIXME: insert proper C++ library support
11294 ld_shlibs_CXX=no
11295 ;;
11296esac
11297echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11298echo "${ECHO_T}$ld_shlibs_CXX" >&6
11299test "$ld_shlibs_CXX" = no && can_build_shared=no
11300
11301GCC_CXX="$GXX"
11302LD_CXX="$LD"
11303
John Criswell47fdd832003-07-14 16:52:07 +000011304
11305cat > conftest.$ac_ext <<EOF
11306class Foo
11307{
11308public:
11309 Foo (void) { a = 0; }
11310private:
11311 int a;
11312};
11313EOF
11314
11315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11316 (eval $ac_compile) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; then
11320 # Parse the compiler output and extract the necessary
11321 # objects, libraries and library flags.
11322
11323 # Sentinel used to keep track of whether or not we are before
11324 # the conftest object file.
11325 pre_test_object_deps_done=no
11326
11327 # The `*' in the case matches for architectures that use `case' in
11328 # $output_verbose_cmd can trigger glob expansion during the loop
11329 # eval without this substitution.
11330 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11331
11332 for p in `eval $output_verbose_link_cmd`; do
11333 case $p in
11334
11335 -L* | -R* | -l*)
11336 # Some compilers place space between "-{L,R}" and the path.
11337 # Remove the space.
11338 if test $p = "-L" \
11339 || test $p = "-R"; then
11340 prev=$p
11341 continue
11342 else
11343 prev=
11344 fi
11345
11346 if test "$pre_test_object_deps_done" = no; then
11347 case $p in
11348 -L* | -R*)
11349 # Internal compiler library paths should come after those
11350 # provided the user. The postdeps already come after the
11351 # user supplied libs so there is no need to process them.
11352 if test -z "$compiler_lib_search_path_CXX"; then
11353 compiler_lib_search_path_CXX="${prev}${p}"
11354 else
11355 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11356 fi
11357 ;;
11358 # The "-l" case would never come before the object being
11359 # linked, so don't bother handling this case.
11360 esac
11361 else
11362 if test -z "$postdeps_CXX"; then
11363 postdeps_CXX="${prev}${p}"
11364 else
11365 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11366 fi
11367 fi
11368 ;;
11369
11370 *.$objext)
11371 # This assumes that the test object file only shows up
11372 # once in the compiler output.
11373 if test "$p" = "conftest.$objext"; then
11374 pre_test_object_deps_done=yes
11375 continue
11376 fi
11377
11378 if test "$pre_test_object_deps_done" = no; then
11379 if test -z "$predep_objects_CXX"; then
11380 predep_objects_CXX="$p"
11381 else
11382 predep_objects_CXX="$predep_objects_CXX $p"
11383 fi
11384 else
11385 if test -z "$postdep_objects_CXX"; then
11386 postdep_objects_CXX="$p"
11387 else
11388 postdep_objects_CXX="$postdep_objects_CXX $p"
11389 fi
11390 fi
11391 ;;
11392
11393 *) ;; # Ignore the rest.
11394
11395 esac
11396 done
11397
11398 # Clean up.
11399 rm -f a.out a.exe
11400else
11401 echo "libtool.m4: error: problem compiling CXX test program"
11402fi
11403
11404$rm -f confest.$objext
11405
11406case " $postdeps_CXX " in
11407*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11408esac
11409
11410lt_prog_compiler_wl_CXX=
11411lt_prog_compiler_pic_CXX=
11412lt_prog_compiler_static_CXX=
11413
11414echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11415echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11416
11417 # C++ specific cases for pic, static, wl, etc.
11418 if test "$GXX" = yes; then
11419 lt_prog_compiler_wl_CXX='-Wl,'
11420 lt_prog_compiler_static_CXX='-static'
11421
11422 case $host_os in
11423 aix*)
11424 # All AIX code is PIC.
11425 if test "$host_cpu" = ia64; then
11426 # AIX 5 now supports IA64 processor
11427 lt_prog_compiler_static_CXX='-Bstatic'
11428 fi
11429 ;;
11430 amigaos*)
11431 # FIXME: we need at least 68020 code to build shared libraries, but
11432 # adding the `-m68020' flag to GCC prevents building anything better,
11433 # like `-m68040'.
11434 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11435 ;;
11436 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11437 # PIC is the default for these OSes.
11438 ;;
11439 mingw* | os2* | pw32*)
11440 # This hack is so that the source file can tell whether it is being
11441 # built for inclusion in a dll (and should export symbols for example).
11442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11443 ;;
11444 darwin* | rhapsody*)
11445 # PIC is the default on this platform
11446 # Common symbols not allowed in MH_DYLIB files
11447 lt_prog_compiler_pic_CXX='-fno-common'
11448 ;;
11449 *djgpp*)
11450 # DJGPP does not support shared libraries at all
11451 lt_prog_compiler_pic_CXX=
11452 ;;
11453 sysv4*MP*)
11454 if test -d /usr/nec; then
11455 lt_prog_compiler_pic_CXX=-Kconform_pic
11456 fi
11457 ;;
11458 hpux*)
11459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11460 # not for PA HP-UX.
11461 case "$host_cpu" in
11462 hppa*64*|ia64*)
11463 ;;
11464 *)
11465 lt_prog_compiler_pic_CXX='-fPIC'
11466 ;;
11467 esac
11468 ;;
11469 *)
11470 lt_prog_compiler_pic_CXX='-fPIC'
11471 ;;
11472 esac
11473 else
11474 case $host_os in
11475 aix4* | aix5*)
11476 # All AIX code is PIC.
11477 if test "$host_cpu" = ia64; then
11478 # AIX 5 now supports IA64 processor
11479 lt_prog_compiler_static_CXX='-Bstatic'
11480 else
11481 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11482 fi
11483 ;;
11484 chorus*)
11485 case $cc_basename in
11486 cxch68)
11487 # Green Hills C++ Compiler
11488 # _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"
11489 ;;
11490 esac
11491 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011492 darwin*)
11493 # PIC is the default on this platform
11494 # Common symbols not allowed in MH_DYLIB files
11495 case "$cc_basename" in
11496 xlc*)
11497 lt_prog_compiler_pic_CXX='-qnocommon'
11498 lt_prog_compiler_wl_CXX='-Wl,'
11499 ;;
11500 esac
11501 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011502 dgux*)
11503 case $cc_basename in
11504 ec++)
11505 lt_prog_compiler_pic_CXX='-KPIC'
11506 ;;
11507 ghcx)
11508 # Green Hills C++ Compiler
11509 lt_prog_compiler_pic_CXX='-pic'
11510 ;;
11511 *)
11512 ;;
11513 esac
11514 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011515 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000011516 # FreeBSD uses GNU C++
11517 ;;
11518 hpux9* | hpux10* | hpux11*)
11519 case $cc_basename in
11520 CC)
11521 lt_prog_compiler_wl_CXX='-Wl,'
11522 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11523 if test "$host_cpu" != ia64; then
11524 lt_prog_compiler_pic_CXX='+Z'
11525 fi
11526 ;;
11527 aCC)
11528 lt_prog_compiler_wl_CXX='-Wl,'
11529 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11530 case "$host_cpu" in
11531 hppa*64*|ia64*)
11532 # +Z the default
11533 ;;
11534 *)
11535 lt_prog_compiler_pic_CXX='+Z'
11536 ;;
11537 esac
11538 ;;
11539 *)
11540 ;;
11541 esac
11542 ;;
11543 irix5* | irix6* | nonstopux*)
11544 case $cc_basename in
11545 CC)
11546 lt_prog_compiler_wl_CXX='-Wl,'
11547 lt_prog_compiler_static_CXX='-non_shared'
11548 # CC pic flag -KPIC is the default.
11549 ;;
11550 *)
11551 ;;
11552 esac
11553 ;;
11554 linux*)
11555 case $cc_basename in
11556 KCC)
11557 # KAI C++ Compiler
11558 lt_prog_compiler_wl_CXX='--backend -Wl,'
11559 lt_prog_compiler_pic_CXX='-fPIC'
11560 ;;
11561 icpc)
11562 # Intel C++
11563 lt_prog_compiler_wl_CXX='-Wl,'
11564 lt_prog_compiler_pic_CXX='-KPIC'
11565 lt_prog_compiler_static_CXX='-static'
11566 ;;
11567 cxx)
11568 # Compaq C++
11569 # Make sure the PIC flag is empty. It appears that all Alpha
11570 # Linux and Compaq Tru64 Unix objects are PIC.
11571 lt_prog_compiler_pic_CXX=
11572 lt_prog_compiler_static_CXX='-non_shared'
11573 ;;
11574 *)
11575 ;;
11576 esac
11577 ;;
11578 lynxos*)
11579 ;;
11580 m88k*)
11581 ;;
11582 mvs*)
11583 case $cc_basename in
11584 cxx)
11585 lt_prog_compiler_pic_CXX='-W c,exportall'
11586 ;;
11587 *)
11588 ;;
11589 esac
11590 ;;
11591 netbsd*)
11592 ;;
11593 osf3* | osf4* | osf5*)
11594 case $cc_basename in
11595 KCC)
11596 lt_prog_compiler_wl_CXX='--backend -Wl,'
11597 ;;
11598 RCC)
11599 # Rational C++ 2.4.1
11600 lt_prog_compiler_pic_CXX='-pic'
11601 ;;
11602 cxx)
11603 # Digital/Compaq C++
11604 lt_prog_compiler_wl_CXX='-Wl,'
11605 # Make sure the PIC flag is empty. It appears that all Alpha
11606 # Linux and Compaq Tru64 Unix objects are PIC.
11607 lt_prog_compiler_pic_CXX=
11608 lt_prog_compiler_static_CXX='-non_shared'
11609 ;;
11610 *)
11611 ;;
11612 esac
11613 ;;
11614 psos*)
11615 ;;
11616 sco*)
11617 case $cc_basename in
11618 CC)
11619 lt_prog_compiler_pic_CXX='-fPIC'
11620 ;;
11621 *)
11622 ;;
11623 esac
11624 ;;
11625 solaris*)
11626 case $cc_basename in
11627 CC)
11628 # Sun C++ 4.2, 5.x and Centerline C++
11629 lt_prog_compiler_pic_CXX='-KPIC'
11630 lt_prog_compiler_static_CXX='-Bstatic'
11631 lt_prog_compiler_wl_CXX='-Qoption ld '
11632 ;;
11633 gcx)
11634 # Green Hills C++ Compiler
11635 lt_prog_compiler_pic_CXX='-PIC'
11636 ;;
11637 *)
11638 ;;
11639 esac
11640 ;;
11641 sunos4*)
11642 case $cc_basename in
11643 CC)
11644 # Sun C++ 4.x
11645 lt_prog_compiler_pic_CXX='-pic'
11646 lt_prog_compiler_static_CXX='-Bstatic'
11647 ;;
11648 lcc)
11649 # Lucid
11650 lt_prog_compiler_pic_CXX='-pic'
11651 ;;
11652 *)
11653 ;;
11654 esac
11655 ;;
11656 tandem*)
11657 case $cc_basename in
11658 NCC)
11659 # NonStop-UX NCC 3.20
11660 lt_prog_compiler_pic_CXX='-KPIC'
11661 ;;
11662 *)
11663 ;;
11664 esac
11665 ;;
11666 unixware*)
11667 ;;
11668 vxworks*)
11669 ;;
11670 *)
11671 lt_prog_compiler_can_build_shared_CXX=no
11672 ;;
11673 esac
11674 fi
11675
11676echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11677echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11678
11679#
11680# Check to make sure the PIC flag actually works.
11681#
11682if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011683
11684echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11686if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 lt_prog_compiler_pic_works_CXX=no
11690 ac_outfile=conftest.$ac_objext
11691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11693 # Insert the option either (1) after the last *FLAGS variable, or
11694 # (2) before a word containing "conftest.", or (3) at the end.
11695 # Note that $ac_compile itself does not contain backslashes and begins
11696 # with a dollar sign (not a hyphen), so the echo should work correctly.
11697 # The option is referenced via a variable to avoid confusing sed.
11698 lt_compile=`echo "$ac_compile" | $SED \
11699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11701 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011702 (eval echo "\"\$as_me:11702: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011703 (eval "$lt_compile" 2>conftest.err)
11704 ac_status=$?
11705 cat conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011706 echo "$as_me:11706: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011707 if (exit $ac_status) && test -s "$ac_outfile"; then
11708 # The compiler can only warn and ignore the option if not recognized
11709 # So say no if there are warnings
11710 if test ! -s conftest.err; then
11711 lt_prog_compiler_pic_works_CXX=yes
11712 fi
11713 fi
11714 $rm conftest*
11715
11716fi
11717echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11718echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11719
11720if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11721 case $lt_prog_compiler_pic_CXX in
11722 "" | " "*) ;;
11723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11724 esac
11725else
11726 lt_prog_compiler_pic_CXX=
11727 lt_prog_compiler_can_build_shared_CXX=no
11728fi
11729
11730fi
11731case "$host_os" in
11732 # For platforms which do not support PIC, -DPIC is meaningless:
11733 *djgpp*)
11734 lt_prog_compiler_pic_CXX=
11735 ;;
11736 *)
11737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11738 ;;
11739esac
11740
11741echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11743if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 lt_cv_prog_compiler_c_o_CXX=no
11747 $rm -r conftest 2>/dev/null
11748 mkdir conftest
11749 cd conftest
11750 mkdir out
11751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11752
John Criswell47fdd832003-07-14 16:52:07 +000011753 lt_compiler_flag="-o out/conftest2.$ac_objext"
11754 # Insert the option either (1) after the last *FLAGS variable, or
11755 # (2) before a word containing "conftest.", or (3) at the end.
11756 # Note that $ac_compile itself does not contain backslashes and begins
11757 # with a dollar sign (not a hyphen), so the echo should work correctly.
11758 lt_compile=`echo "$ac_compile" | $SED \
11759 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11761 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011762 (eval echo "\"\$as_me:11762: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011763 (eval "$lt_compile" 2>out/conftest.err)
11764 ac_status=$?
11765 cat out/conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011766 echo "$as_me:11766: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11768 then
11769 # The compiler can only warn and ignore the option if not recognized
11770 # So say no if there are warnings
11771 if test ! -s out/conftest.err; then
11772 lt_cv_prog_compiler_c_o_CXX=yes
11773 fi
11774 fi
11775 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000011776 $rm conftest*
11777 # SGI C++ compiler will create directory out/ii_files/ for
11778 # template instantiation
11779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11780 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000011781 cd ..
11782 rmdir conftest
11783 $rm conftest*
11784
11785fi
11786echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11787echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11788
11789
11790hard_links="nottested"
11791if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11792 # do not overwrite the value of need_locks provided by the user
11793 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11794echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11795 hard_links=yes
11796 $rm conftest*
11797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11798 touch conftest.a
11799 ln conftest.a conftest.b 2>&5 || hard_links=no
11800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11801 echo "$as_me:$LINENO: result: $hard_links" >&5
11802echo "${ECHO_T}$hard_links" >&6
11803 if test "$hard_links" = no; then
11804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11805echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11806 need_locks=warn
11807 fi
11808else
11809 need_locks=no
11810fi
11811
11812echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11814
11815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11816 case $host_os in
11817 aix4* | aix5*)
11818 # If we're using GNU nm, then we don't want the "-C" option.
11819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11821 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'
11822 else
11823 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'
11824 fi
11825 ;;
11826 pw32*)
11827 export_symbols_cmds_CXX="$ltdll_cmds"
11828 ;;
11829 cygwin* | mingw*)
11830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11831 ;;
11832 *)
11833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11834 ;;
11835 esac
11836
11837echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11838echo "${ECHO_T}$ld_shlibs_CXX" >&6
11839test "$ld_shlibs_CXX" = no && can_build_shared=no
11840
11841variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11842if test "$GCC" = yes; then
11843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11844fi
11845
11846#
11847# Do we need to explicitly link libc?
11848#
11849case "x$archive_cmds_need_lc_CXX" in
11850x|xyes)
11851 # Assume -lc should be added
11852 archive_cmds_need_lc_CXX=yes
11853
11854 if test "$enable_shared" = yes && test "$GCC" = yes; then
11855 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011856 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011857 # FIXME: we may have to deal with multi-command sequences.
11858 ;;
11859 '$CC '*)
11860 # Test whether the compiler implicitly links with -lc since on some
11861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11862 # to ld, don't add -lc before -lgcc.
11863 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11864echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11865 $rm conftest*
11866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11867
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } 2>conftest.err; then
11873 soname=conftest
11874 lib=conftest
11875 libobjs=conftest.$ac_objext
11876 deplibs=
11877 wl=$lt_prog_compiler_wl_CXX
11878 compiler_flags=-v
11879 linker_flags=-v
11880 verstring=
11881 output_objdir=.
11882 libname=conftest
11883 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11884 allow_undefined_flag_CXX=
11885 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11886 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }
11890 then
11891 archive_cmds_need_lc_CXX=no
11892 else
11893 archive_cmds_need_lc_CXX=yes
11894 fi
11895 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11896 else
11897 cat conftest.err 1>&5
11898 fi
11899 $rm conftest*
11900 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11901echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11902 ;;
11903 esac
11904 fi
11905 ;;
11906esac
11907
John Criswell47fdd832003-07-14 16:52:07 +000011908echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11909echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11910library_names_spec=
11911libname_spec='lib$name'
11912soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011913shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011914postinstall_cmds=
11915postuninstall_cmds=
11916finish_cmds=
11917finish_eval=
11918shlibpath_var=
11919shlibpath_overrides_runpath=unknown
11920version_type=none
11921dynamic_linker="$host_os ld.so"
11922sys_lib_dlsearch_path_spec="/lib /usr/lib"
11923if test "$GCC" = yes; then
11924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11925 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11926 # if the path contains ";" then we assume it to be the separator
11927 # otherwise default to the standard path separator (i.e. ":") - it is
11928 # assumed that no part of a normal pathname contains ";" but that should
11929 # okay in the real world where ";" in dirpaths is itself problematic.
11930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11931 else
11932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933 fi
11934else
11935 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11936fi
11937need_lib_prefix=unknown
11938hardcode_into_libs=no
11939
11940# when you set need_version to no, make sure it does not cause -set_version
11941# flags to be left without arguments
11942need_version=unknown
11943
11944case $host_os in
11945aix3*)
11946 version_type=linux
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11948 shlibpath_var=LIBPATH
11949
11950 # AIX 3 has no versioning support, so we append a major version to the name.
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 ;;
11953
11954aix4* | aix5*)
11955 version_type=linux
11956 need_lib_prefix=no
11957 need_version=no
11958 hardcode_into_libs=yes
11959 if test "$host_cpu" = ia64; then
11960 # AIX 5 supports IA64
11961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 else
11964 # With GCC up to 2.95.x, collect2 would create an import file
11965 # for dependence libraries. The import file would start with
11966 # the line `#! .'. This would cause the generated library to
11967 # depend on `.', always an invalid library. This was fixed in
11968 # development snapshots of GCC prior to 3.0.
11969 case $host_os in
11970 aix4 | aix4.[01] | aix4.[01].*)
11971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11972 echo ' yes '
11973 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11974 :
11975 else
11976 can_build_shared=no
11977 fi
11978 ;;
11979 esac
11980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11981 # soname into executable. Probably we can add versioning support to
11982 # collect2, so additional links can be useful in future.
11983 if test "$aix_use_runtimelinking" = yes; then
11984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11985 # instead of lib<name>.a to let people know that these are not
11986 # typical AIX shared libraries.
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11988 else
11989 # We preserve .a as extension for shared libraries through AIX4.2
11990 # and later when we are not doing run time linking.
11991 library_names_spec='${libname}${release}.a $libname.a'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 fi
11994 shlibpath_var=LIBPATH
11995 fi
11996 ;;
11997
11998amigaos*)
11999 library_names_spec='$libname.ixlibrary $libname.a'
12000 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012001 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 +000012002 ;;
12003
12004beos*)
12005 library_names_spec='${libname}${shared_ext}'
12006 dynamic_linker="$host_os ld.so"
12007 shlibpath_var=LIBRARY_PATH
12008 ;;
12009
Reid Spencer2706f8c2004-09-19 23:53:36 +000012010bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012011 version_type=linux
12012 need_version=no
12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014 soname_spec='${libname}${release}${shared_ext}$major'
12015 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12016 shlibpath_var=LD_LIBRARY_PATH
12017 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12018 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12019 # the default ld.so.conf also contains /usr/contrib/lib and
12020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12021 # libtool to hard-code these into programs
12022 ;;
12023
12024cygwin* | mingw* | pw32*)
12025 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000012026 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012027 need_version=no
12028 need_lib_prefix=no
12029
12030 case $GCC,$host_os in
12031 yes,cygwin* | yes,mingw* | yes,pw32*)
12032 library_names_spec='$libname.dll.a'
12033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000012034 postinstall_cmds='base_file=`basename \${file}`~
12035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12036 dldir=$destdir/`dirname \$dlpath`~
12037 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000012038 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000012039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12040 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000012041 $rm \$dlpath'
12042 shlibpath_overrides_runpath=yes
12043
12044 case $host_os in
12045 cygwin*)
12046 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12047 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 +000012048 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000012049 ;;
12050 mingw*)
12051 # MinGW DLLs use traditional 'lib' prefix
12052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12054 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12055 # It is most probably a Windows format PATH printed by
12056 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12057 # path with ; separators, and with drive letters. We can handle the
12058 # drive letters (cygwin fileutils understands them), so leave them,
12059 # especially as we might pass files found there to a mingw objdump,
12060 # which wouldn't understand a cygwinified path. Ahh.
12061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12062 else
12063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12064 fi
12065 ;;
12066 pw32*)
12067 # pw32 DLLs use 'pw' prefix rather than 'lib'
12068 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12069 ;;
12070 esac
12071 ;;
12072
12073 *)
12074 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12075 ;;
12076 esac
12077 dynamic_linker='Win32 ld.exe'
12078 # FIXME: first we should search . and the directory the executable is in
12079 shlibpath_var=PATH
12080 ;;
12081
12082darwin* | rhapsody*)
12083 dynamic_linker="$host_os dyld"
12084 version_type=darwin
12085 need_lib_prefix=no
12086 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000012087 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000012088 soname_spec='${libname}${release}${major}$shared_ext'
12089 shlibpath_overrides_runpath=yes
12090 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000012091 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000012092 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012093 if test "$GCC" = yes; then
12094 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"`
12095 else
12096 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000012097 fi
12098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12099 ;;
12100
12101dgux*)
12102 version_type=linux
12103 need_lib_prefix=no
12104 need_version=no
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 ;;
12109
12110freebsd1*)
12111 dynamic_linker=no
12112 ;;
12113
Reid Spencer2706f8c2004-09-19 23:53:36 +000012114kfreebsd*-gnu)
12115 version_type=linux
12116 need_lib_prefix=no
12117 need_version=no
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=no
12122 hardcode_into_libs=yes
12123 dynamic_linker='GNU ld.so'
12124 ;;
12125
John Criswell47fdd832003-07-14 16:52:07 +000012126freebsd*)
12127 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12128 version_type=freebsd-$objformat
12129 case $version_type in
12130 freebsd-elf*)
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12132 need_version=no
12133 need_lib_prefix=no
12134 ;;
12135 freebsd-*)
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12137 need_version=yes
12138 ;;
12139 esac
12140 shlibpath_var=LD_LIBRARY_PATH
12141 case $host_os in
12142 freebsd2*)
12143 shlibpath_overrides_runpath=yes
12144 ;;
12145 freebsd3.01* | freebsdelf3.01*)
12146 shlibpath_overrides_runpath=yes
12147 hardcode_into_libs=yes
12148 ;;
12149 *) # from 3.2 on
12150 shlibpath_overrides_runpath=no
12151 hardcode_into_libs=yes
12152 ;;
12153 esac
12154 ;;
12155
12156gnu*)
12157 version_type=linux
12158 need_lib_prefix=no
12159 need_version=no
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 hardcode_into_libs=yes
12164 ;;
12165
12166hpux9* | hpux10* | hpux11*)
12167 # Give a soname corresponding to the major version so that dld.sl refuses to
12168 # link against other versions.
12169 version_type=sunos
12170 need_lib_prefix=no
12171 need_version=no
12172 case "$host_cpu" in
12173 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012174 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000012175 hardcode_into_libs=yes
12176 dynamic_linker="$host_os dld.so"
12177 shlibpath_var=LD_LIBRARY_PATH
12178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180 soname_spec='${libname}${release}${shared_ext}$major'
12181 if test "X$HPUX_IA64_MODE" = X32; then
12182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12183 else
12184 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12185 fi
12186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12187 ;;
12188 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012189 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000012190 hardcode_into_libs=yes
12191 dynamic_linker="$host_os dld.sl"
12192 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12198 ;;
12199 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012200 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000012201 dynamic_linker="$host_os dld.sl"
12202 shlibpath_var=SHLIB_PATH
12203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 ;;
12207 esac
12208 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12209 postinstall_cmds='chmod 555 $lib'
12210 ;;
12211
12212irix5* | irix6* | nonstopux*)
12213 case $host_os in
12214 nonstopux*) version_type=nonstopux ;;
12215 *)
12216 if test "$lt_cv_prog_gnu_ld" = yes; then
12217 version_type=linux
12218 else
12219 version_type=irix
12220 fi ;;
12221 esac
12222 need_lib_prefix=no
12223 need_version=no
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12226 case $host_os in
12227 irix5* | nonstopux*)
12228 libsuff= shlibsuff=
12229 ;;
12230 *)
12231 case $LD in # libtool.m4 will add one of these switches to LD
12232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12233 libsuff= shlibsuff= libmagic=32-bit;;
12234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12235 libsuff=32 shlibsuff=N32 libmagic=N32;;
12236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12238 *) libsuff= shlibsuff= libmagic=never-match;;
12239 esac
12240 ;;
12241 esac
12242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12243 shlibpath_overrides_runpath=no
12244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12246 hardcode_into_libs=yes
12247 ;;
12248
12249# No shared lib support for Linux oldld, aout, or coff.
12250linux*oldld* | linux*aout* | linux*coff*)
12251 dynamic_linker=no
12252 ;;
12253
12254# This must be Linux ELF.
12255linux*)
12256 version_type=linux
12257 need_lib_prefix=no
12258 need_version=no
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec='${libname}${release}${shared_ext}$major'
12261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=no
12264 # This implies no fast_install, which is unacceptable.
12265 # Some rework will be needed to allow for fast_install
12266 # before this can be enabled.
12267 hardcode_into_libs=yes
12268
Reid Spencer2706f8c2004-09-19 23:53:36 +000012269 # Append ld.so.conf contents to the search path
12270 if test -f /etc/ld.so.conf; then
12271 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12273 fi
12274
John Criswell47fdd832003-07-14 16:52:07 +000012275 # We used to test for /lib/ld.so.1 and disable shared libraries on
12276 # powerpc, because MkLinux only supported shared libraries with the
12277 # GNU dynamic linker. Since this was broken with cross compilers,
12278 # most powerpc-linux boxes support dynamic linking these days and
12279 # people can always --disable-shared, the test was removed, and we
12280 # assume the GNU/Linux dynamic linker is in use.
12281 dynamic_linker='GNU/Linux ld.so'
12282 ;;
12283
Reid Spencer2706f8c2004-09-19 23:53:36 +000012284knetbsd*-gnu)
12285 version_type=linux
12286 need_lib_prefix=no
12287 need_version=no
12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12289 soname_spec='${libname}${release}${shared_ext}$major'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 shlibpath_overrides_runpath=no
12292 hardcode_into_libs=yes
12293 dynamic_linker='GNU ld.so'
12294 ;;
12295
John Criswell47fdd832003-07-14 16:52:07 +000012296netbsd*)
12297 version_type=sunos
12298 need_lib_prefix=no
12299 need_version=no
12300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12303 dynamic_linker='NetBSD (a.out) ld.so'
12304 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000012306 soname_spec='${libname}${release}${shared_ext}$major'
12307 dynamic_linker='NetBSD ld.elf_so'
12308 fi
12309 shlibpath_var=LD_LIBRARY_PATH
12310 shlibpath_overrides_runpath=yes
12311 hardcode_into_libs=yes
12312 ;;
12313
12314newsos6)
12315 version_type=linux
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12319 ;;
12320
Reid Spencer2706f8c2004-09-19 23:53:36 +000012321nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000012322 version_type=linux
12323 need_lib_prefix=no
12324 need_version=no
12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 soname_spec='${libname}${release}${shared_ext}$major'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12329 ;;
12330
12331openbsd*)
12332 version_type=sunos
12333 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000012334 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000012335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12337 shlibpath_var=LD_LIBRARY_PATH
12338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12339 case $host_os in
12340 openbsd2.[89] | openbsd2.[89].*)
12341 shlibpath_overrides_runpath=no
12342 ;;
12343 *)
12344 shlibpath_overrides_runpath=yes
12345 ;;
12346 esac
12347 else
12348 shlibpath_overrides_runpath=yes
12349 fi
12350 ;;
12351
12352os2*)
12353 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012354 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012355 need_lib_prefix=no
12356 library_names_spec='$libname${shared_ext} $libname.a'
12357 dynamic_linker='OS/2 ld.exe'
12358 shlibpath_var=LIBPATH
12359 ;;
12360
12361osf3* | osf4* | osf5*)
12362 version_type=osf
12363 need_lib_prefix=no
12364 need_version=no
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12370 ;;
12371
12372sco3.2v5*)
12373 version_type=osf
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 ;;
12378
12379solaris*)
12380 version_type=linux
12381 need_lib_prefix=no
12382 need_version=no
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=yes
12387 hardcode_into_libs=yes
12388 # ldd complains unless libraries are executable
12389 postinstall_cmds='chmod +x $lib'
12390 ;;
12391
12392sunos4*)
12393 version_type=sunos
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=yes
12398 if test "$with_gnu_ld" = yes; then
12399 need_lib_prefix=no
12400 fi
12401 need_version=yes
12402 ;;
12403
12404sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12405 version_type=linux
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 case $host_vendor in
12410 sni)
12411 shlibpath_overrides_runpath=no
12412 need_lib_prefix=no
12413 export_dynamic_flag_spec='${wl}-Blargedynsym'
12414 runpath_var=LD_RUN_PATH
12415 ;;
12416 siemens)
12417 need_lib_prefix=no
12418 ;;
12419 motorola)
12420 need_lib_prefix=no
12421 need_version=no
12422 shlibpath_overrides_runpath=no
12423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12424 ;;
12425 esac
12426 ;;
12427
12428sysv4*MP*)
12429 if test -d /usr/nec ;then
12430 version_type=linux
12431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12432 soname_spec='$libname${shared_ext}.$major'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 fi
12435 ;;
12436
12437uts4*)
12438 version_type=linux
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 ;;
12443
12444*)
12445 dynamic_linker=no
12446 ;;
12447esac
12448echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12449echo "${ECHO_T}$dynamic_linker" >&6
12450test "$dynamic_linker" = no && can_build_shared=no
12451
Reid Spencer2706f8c2004-09-19 23:53:36 +000012452echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12453echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12454hardcode_action_CXX=
12455if test -n "$hardcode_libdir_flag_spec_CXX" || \
12456 test -n "$runpath_var_CXX" || \
12457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12458
12459 # We can hardcode non-existant directories.
12460 if test "$hardcode_direct_CXX" != no &&
12461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12462 # have to relink, otherwise we might link with an installed library
12463 # when we should be linking with a yet-to-be-installed one
12464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12465 test "$hardcode_minus_L_CXX" != no; then
12466 # Linking always hardcodes the temporary library directory.
12467 hardcode_action_CXX=relink
12468 else
12469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12470 hardcode_action_CXX=immediate
12471 fi
12472else
12473 # We cannot hardcode anything, or else we can only hardcode existing
12474 # directories.
12475 hardcode_action_CXX=unsupported
12476fi
12477echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12478echo "${ECHO_T}$hardcode_action_CXX" >&6
12479
12480if test "$hardcode_action_CXX" = relink; then
12481 # Fast installation is not supported
12482 enable_fast_install=no
12483elif test "$shlibpath_overrides_runpath" = yes ||
12484 test "$enable_shared" = no; then
12485 # Fast installation is not necessary
12486 enable_fast_install=needless
12487fi
12488
12489striplib=
12490old_striplib=
12491echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12492echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12493if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12494 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12495 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12496 echo "$as_me:$LINENO: result: yes" >&5
12497echo "${ECHO_T}yes" >&6
12498else
12499# FIXME - insert some real tests, host_os isn't really good enough
12500 case $host_os in
12501 darwin*)
12502 if test -n "$STRIP" ; then
12503 striplib="$STRIP -x"
12504 echo "$as_me:$LINENO: result: yes" >&5
12505echo "${ECHO_T}yes" >&6
12506 else
12507 echo "$as_me:$LINENO: result: no" >&5
12508echo "${ECHO_T}no" >&6
12509fi
12510 ;;
12511 *)
12512 echo "$as_me:$LINENO: result: no" >&5
12513echo "${ECHO_T}no" >&6
12514 ;;
12515 esac
12516fi
12517
John Criswell47fdd832003-07-14 16:52:07 +000012518if test "x$enable_dlopen" != xyes; then
12519 enable_dlopen=unknown
12520 enable_dlopen_self=unknown
12521 enable_dlopen_self_static=unknown
12522else
12523 lt_cv_dlopen=no
12524 lt_cv_dlopen_libs=
12525
12526 case $host_os in
12527 beos*)
12528 lt_cv_dlopen="load_add_on"
12529 lt_cv_dlopen_libs=
12530 lt_cv_dlopen_self=yes
12531 ;;
12532
12533 mingw* | pw32*)
12534 lt_cv_dlopen="LoadLibrary"
12535 lt_cv_dlopen_libs=
12536 ;;
12537
12538 cygwin*)
12539 lt_cv_dlopen="dlopen"
12540 lt_cv_dlopen_libs=
12541 ;;
12542
12543 darwin*)
12544 # if libdl is installed we need to link against it
12545 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12546echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12547if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549else
12550 ac_check_lib_save_LIBS=$LIBS
12551LIBS="-ldl $LIBS"
12552cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012553/* confdefs.h. */
12554_ACEOF
12555cat confdefs.h >>conftest.$ac_ext
12556cat >>conftest.$ac_ext <<_ACEOF
12557/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012558
12559/* Override any gcc2 internal prototype to avoid an error. */
12560#ifdef __cplusplus
12561extern "C"
12562#endif
12563/* We use char because int might match the return type of a gcc2
12564 builtin and then its argument prototype would still apply. */
12565char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012566int
12567main ()
12568{
12569dlopen ();
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574rm -f conftest.$ac_objext conftest$ac_exeext
12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012576 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012583 { ac_try='test -z "$ac_cxx_werror_flag"
12584 || test ! -s conftest.err'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_cv_lib_dl_dlopen=yes
12597else
12598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012599sed 's/^/| /' conftest.$ac_ext >&5
12600
John Criswell47fdd832003-07-14 16:52:07 +000012601ac_cv_lib_dl_dlopen=no
12602fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012603rm -f conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012605LIBS=$ac_check_lib_save_LIBS
12606fi
12607echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12609if test $ac_cv_lib_dl_dlopen = yes; then
12610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12611else
12612
12613 lt_cv_dlopen="dyld"
12614 lt_cv_dlopen_libs=
12615 lt_cv_dlopen_self=yes
12616
12617fi
12618
12619 ;;
12620
12621 *)
12622 echo "$as_me:$LINENO: checking for shl_load" >&5
12623echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12624if test "${ac_cv_func_shl_load+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
12627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012628/* confdefs.h. */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
12632/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012633/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635#define shl_load innocuous_shl_load
12636
John Criswell47fdd832003-07-14 16:52:07 +000012637/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000012638 which can conflict with char shl_load (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012641
John Criswell0c38eaf2003-09-10 15:17:25 +000012642#ifdef __STDC__
12643# include <limits.h>
12644#else
12645# include <assert.h>
12646#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012647
12648#undef shl_load
12649
John Criswell47fdd832003-07-14 16:52:07 +000012650/* Override any gcc2 internal prototype to avoid an error. */
12651#ifdef __cplusplus
12652extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012653{
John Criswell47fdd832003-07-14 16:52:07 +000012654#endif
12655/* We use char because int might match the return type of a gcc2
12656 builtin and then its argument prototype would still apply. */
12657char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000012658/* The GNU C library defines this for functions which it implements
12659 to always fail with ENOSYS. Some functions are actually named
12660 something starting with __ and the normal name is an alias. */
12661#if defined (__stub_shl_load) || defined (__stub___shl_load)
12662choke me
12663#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012664char (*f) () = shl_load;
12665#endif
12666#ifdef __cplusplus
12667}
John Criswell47fdd832003-07-14 16:52:07 +000012668#endif
12669
John Criswell0c38eaf2003-09-10 15:17:25 +000012670int
12671main ()
12672{
12673return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000012674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext conftest$ac_exeext
12679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012680 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012687 { ac_try='test -z "$ac_cxx_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 ac_cv_func_shl_load=yes
12701else
12702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012703sed 's/^/| /' conftest.$ac_ext >&5
12704
John Criswell47fdd832003-07-14 16:52:07 +000012705ac_cv_func_shl_load=no
12706fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012707rm -f conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012709fi
12710echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12711echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12712if test $ac_cv_func_shl_load = yes; then
12713 lt_cv_dlopen="shl_load"
12714else
12715 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12716echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12717if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719else
12720 ac_check_lib_save_LIBS=$LIBS
12721LIBS="-ldld $LIBS"
12722cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012728
12729/* Override any gcc2 internal prototype to avoid an error. */
12730#ifdef __cplusplus
12731extern "C"
12732#endif
12733/* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */
12735char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000012736int
12737main ()
12738{
12739shl_load ();
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext conftest$ac_exeext
12745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012746 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012747 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012753 { ac_try='test -z "$ac_cxx_werror_flag"
12754 || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_cv_lib_dld_shl_load=yes
12767else
12768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012769sed 's/^/| /' conftest.$ac_ext >&5
12770
John Criswell47fdd832003-07-14 16:52:07 +000012771ac_cv_lib_dld_shl_load=no
12772fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012773rm -f conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012775LIBS=$ac_check_lib_save_LIBS
12776fi
12777echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12778echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12779if test $ac_cv_lib_dld_shl_load = yes; then
12780 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12781else
12782 echo "$as_me:$LINENO: checking for dlopen" >&5
12783echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12784if test "${ac_cv_func_dlopen+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012793/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795#define dlopen innocuous_dlopen
12796
John Criswell47fdd832003-07-14 16:52:07 +000012797/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000012798 which can conflict with char dlopen (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012801
John Criswell0c38eaf2003-09-10 15:17:25 +000012802#ifdef __STDC__
12803# include <limits.h>
12804#else
12805# include <assert.h>
12806#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012807
12808#undef dlopen
12809
John Criswell47fdd832003-07-14 16:52:07 +000012810/* Override any gcc2 internal prototype to avoid an error. */
12811#ifdef __cplusplus
12812extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012813{
John Criswell47fdd832003-07-14 16:52:07 +000012814#endif
12815/* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12817char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012818/* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821#if defined (__stub_dlopen) || defined (__stub___dlopen)
12822choke me
12823#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012824char (*f) () = dlopen;
12825#endif
12826#ifdef __cplusplus
12827}
John Criswell47fdd832003-07-14 16:52:07 +000012828#endif
12829
John Criswell0c38eaf2003-09-10 15:17:25 +000012830int
12831main ()
12832{
12833return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012834 ;
12835 return 0;
12836}
12837_ACEOF
12838rm -f conftest.$ac_objext conftest$ac_exeext
12839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012840 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012841 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012847 { ac_try='test -z "$ac_cxx_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_func_dlopen=yes
12861else
12862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012863sed 's/^/| /' conftest.$ac_ext >&5
12864
John Criswell47fdd832003-07-14 16:52:07 +000012865ac_cv_func_dlopen=no
12866fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012867rm -f conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012869fi
12870echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12871echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12872if test $ac_cv_func_dlopen = yes; then
12873 lt_cv_dlopen="dlopen"
12874else
12875 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12876echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12877if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879else
12880 ac_check_lib_save_LIBS=$LIBS
12881LIBS="-ldl $LIBS"
12882cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012888
12889/* Override any gcc2 internal prototype to avoid an error. */
12890#ifdef __cplusplus
12891extern "C"
12892#endif
12893/* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12895char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012896int
12897main ()
12898{
12899dlopen ();
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext conftest$ac_exeext
12905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012906 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012907 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012913 { ac_try='test -z "$ac_cxx_werror_flag"
12914 || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_lib_dl_dlopen=yes
12927else
12928 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012929sed 's/^/| /' conftest.$ac_ext >&5
12930
John Criswell47fdd832003-07-14 16:52:07 +000012931ac_cv_lib_dl_dlopen=no
12932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012933rm -f conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012935LIBS=$ac_check_lib_save_LIBS
12936fi
12937echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12938echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12939if test $ac_cv_lib_dl_dlopen = yes; then
12940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12941else
12942 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12943echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12944if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946else
12947 ac_check_lib_save_LIBS=$LIBS
12948LIBS="-lsvld $LIBS"
12949cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012955
12956/* Override any gcc2 internal prototype to avoid an error. */
12957#ifdef __cplusplus
12958extern "C"
12959#endif
12960/* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012963int
12964main ()
12965{
12966dlopen ();
12967 ;
12968 return 0;
12969}
12970_ACEOF
12971rm -f conftest.$ac_objext conftest$ac_exeext
12972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012973 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012980 { ac_try='test -z "$ac_cxx_werror_flag"
12981 || test ! -s conftest.err'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_lib_svld_dlopen=yes
12994else
12995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012996sed 's/^/| /' conftest.$ac_ext >&5
12997
John Criswell47fdd832003-07-14 16:52:07 +000012998ac_cv_lib_svld_dlopen=no
12999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013000rm -f conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013002LIBS=$ac_check_lib_save_LIBS
13003fi
13004echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13005echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13006if test $ac_cv_lib_svld_dlopen = yes; then
13007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13008else
13009 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13010echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13011if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013else
13014 ac_check_lib_save_LIBS=$LIBS
13015LIBS="-ldld $LIBS"
13016cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013017/* confdefs.h. */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013022
13023/* Override any gcc2 internal prototype to avoid an error. */
13024#ifdef __cplusplus
13025extern "C"
13026#endif
13027/* We use char because int might match the return type of a gcc2
13028 builtin and then its argument prototype would still apply. */
13029char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000013030int
13031main ()
13032{
13033dld_link ();
13034 ;
13035 return 0;
13036}
13037_ACEOF
13038rm -f conftest.$ac_objext conftest$ac_exeext
13039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013040 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013047 { ac_try='test -z "$ac_cxx_werror_flag"
13048 || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_lib_dld_dld_link=yes
13061else
13062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013063sed 's/^/| /' conftest.$ac_ext >&5
13064
John Criswell47fdd832003-07-14 16:52:07 +000013065ac_cv_lib_dld_dld_link=no
13066fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013067rm -f conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013069LIBS=$ac_check_lib_save_LIBS
13070fi
13071echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13072echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13073if test $ac_cv_lib_dld_dld_link = yes; then
13074 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13075fi
13076
13077
13078fi
13079
13080
13081fi
13082
13083
13084fi
13085
13086
13087fi
13088
13089
13090fi
13091
13092 ;;
13093 esac
13094
13095 if test "x$lt_cv_dlopen" != xno; then
13096 enable_dlopen=yes
13097 else
13098 enable_dlopen=no
13099 fi
13100
13101 case $lt_cv_dlopen in
13102 dlopen)
13103 save_CPPFLAGS="$CPPFLAGS"
13104 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13105
13106 save_LDFLAGS="$LDFLAGS"
13107 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13108
13109 save_LIBS="$LIBS"
13110 LIBS="$lt_cv_dlopen_libs $LIBS"
13111
13112 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13113echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13114if test "${lt_cv_dlopen_self+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116else
13117 if test "$cross_compiling" = yes; then :
13118 lt_cv_dlopen_self=cross
13119else
13120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13121 lt_status=$lt_dlunknown
13122 cat > conftest.$ac_ext <<EOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013123#line 13123 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000013124#include "confdefs.h"
13125
13126#if HAVE_DLFCN_H
13127#include <dlfcn.h>
13128#endif
13129
13130#include <stdio.h>
13131
13132#ifdef RTLD_GLOBAL
13133# define LT_DLGLOBAL RTLD_GLOBAL
13134#else
13135# ifdef DL_GLOBAL
13136# define LT_DLGLOBAL DL_GLOBAL
13137# else
13138# define LT_DLGLOBAL 0
13139# endif
13140#endif
13141
13142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13143 find out it does not work in some platform. */
13144#ifndef LT_DLLAZY_OR_NOW
13145# ifdef RTLD_LAZY
13146# define LT_DLLAZY_OR_NOW RTLD_LAZY
13147# else
13148# ifdef DL_LAZY
13149# define LT_DLLAZY_OR_NOW DL_LAZY
13150# else
13151# ifdef RTLD_NOW
13152# define LT_DLLAZY_OR_NOW RTLD_NOW
13153# else
13154# ifdef DL_NOW
13155# define LT_DLLAZY_OR_NOW DL_NOW
13156# else
13157# define LT_DLLAZY_OR_NOW 0
13158# endif
13159# endif
13160# endif
13161# endif
13162#endif
13163
13164#ifdef __cplusplus
13165extern "C" void exit (int);
13166#endif
13167
13168void fnord() { int i=42;}
13169int main ()
13170{
13171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13172 int status = $lt_dlunknown;
13173
13174 if (self)
13175 {
13176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13178 /* dlclose (self); */
13179 }
13180
13181 exit (status);
13182}
13183EOF
13184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13185 (eval $ac_link) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13189 (./conftest; exit; ) 2>/dev/null
13190 lt_status=$?
13191 case x$lt_status in
13192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13194 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13195 esac
13196 else :
13197 # compilation failed
13198 lt_cv_dlopen_self=no
13199 fi
13200fi
13201rm -fr conftest*
13202
13203
13204fi
13205echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13206echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13207
13208 if test "x$lt_cv_dlopen_self" = xyes; then
13209 LDFLAGS="$LDFLAGS $link_static_flag"
13210 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13211echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13212if test "${lt_cv_dlopen_self_static+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214else
13215 if test "$cross_compiling" = yes; then :
13216 lt_cv_dlopen_self_static=cross
13217else
13218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13219 lt_status=$lt_dlunknown
13220 cat > conftest.$ac_ext <<EOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013221#line 13221 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000013222#include "confdefs.h"
13223
13224#if HAVE_DLFCN_H
13225#include <dlfcn.h>
13226#endif
13227
13228#include <stdio.h>
13229
13230#ifdef RTLD_GLOBAL
13231# define LT_DLGLOBAL RTLD_GLOBAL
13232#else
13233# ifdef DL_GLOBAL
13234# define LT_DLGLOBAL DL_GLOBAL
13235# else
13236# define LT_DLGLOBAL 0
13237# endif
13238#endif
13239
13240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13241 find out it does not work in some platform. */
13242#ifndef LT_DLLAZY_OR_NOW
13243# ifdef RTLD_LAZY
13244# define LT_DLLAZY_OR_NOW RTLD_LAZY
13245# else
13246# ifdef DL_LAZY
13247# define LT_DLLAZY_OR_NOW DL_LAZY
13248# else
13249# ifdef RTLD_NOW
13250# define LT_DLLAZY_OR_NOW RTLD_NOW
13251# else
13252# ifdef DL_NOW
13253# define LT_DLLAZY_OR_NOW DL_NOW
13254# else
13255# define LT_DLLAZY_OR_NOW 0
13256# endif
13257# endif
13258# endif
13259# endif
13260#endif
13261
13262#ifdef __cplusplus
13263extern "C" void exit (int);
13264#endif
13265
13266void fnord() { int i=42;}
13267int main ()
13268{
13269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13270 int status = $lt_dlunknown;
13271
13272 if (self)
13273 {
13274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13276 /* dlclose (self); */
13277 }
13278
13279 exit (status);
13280}
13281EOF
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13287 (./conftest; exit; ) 2>/dev/null
13288 lt_status=$?
13289 case x$lt_status in
13290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13292 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13293 esac
13294 else :
13295 # compilation failed
13296 lt_cv_dlopen_self_static=no
13297 fi
13298fi
13299rm -fr conftest*
13300
13301
13302fi
13303echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13304echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13305 fi
13306
13307 CPPFLAGS="$save_CPPFLAGS"
13308 LDFLAGS="$save_LDFLAGS"
13309 LIBS="$save_LIBS"
13310 ;;
13311 esac
13312
13313 case $lt_cv_dlopen_self in
13314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13315 *) enable_dlopen_self=unknown ;;
13316 esac
13317
13318 case $lt_cv_dlopen_self_static in
13319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13320 *) enable_dlopen_self_static=unknown ;;
13321 esac
13322fi
13323
13324
13325# The else clause should only fire when bootstrapping the
13326# libtool distribution, otherwise you forgot to ship ltmain.sh
13327# with your package, and you will get complaints that there are
13328# no rules to generate ltmain.sh.
13329if test -f "$ltmain"; then
13330 # See if we are running on zsh, and set the options which allow our commands through
13331 # without removal of \ escapes.
13332 if test -n "${ZSH_VERSION+set}" ; then
13333 setopt NO_GLOB_SUBST
13334 fi
13335 # Now quote all the things that may contain metacharacters while being
13336 # careful not to overquote the AC_SUBSTed values. We take copies of the
13337 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13339 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000013340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13342 deplibs_check_method reload_flag reload_cmds need_locks \
13343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13344 lt_cv_sys_global_symbol_to_c_name_address \
13345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13346 old_postinstall_cmds old_postuninstall_cmds \
13347 compiler_CXX \
13348 CC_CXX \
13349 LD_CXX \
13350 lt_prog_compiler_wl_CXX \
13351 lt_prog_compiler_pic_CXX \
13352 lt_prog_compiler_static_CXX \
13353 lt_prog_compiler_no_builtin_flag_CXX \
13354 export_dynamic_flag_spec_CXX \
13355 thread_safe_flag_spec_CXX \
13356 whole_archive_flag_spec_CXX \
13357 enable_shared_with_static_runtimes_CXX \
13358 old_archive_cmds_CXX \
13359 old_archive_from_new_cmds_CXX \
13360 predep_objects_CXX \
13361 postdep_objects_CXX \
13362 predeps_CXX \
13363 postdeps_CXX \
13364 compiler_lib_search_path_CXX \
13365 archive_cmds_CXX \
13366 archive_expsym_cmds_CXX \
13367 postinstall_cmds_CXX \
13368 postuninstall_cmds_CXX \
13369 old_archive_from_expsyms_cmds_CXX \
13370 allow_undefined_flag_CXX \
13371 no_undefined_flag_CXX \
13372 export_symbols_cmds_CXX \
13373 hardcode_libdir_flag_spec_CXX \
13374 hardcode_libdir_flag_spec_ld_CXX \
13375 hardcode_libdir_separator_CXX \
13376 hardcode_automatic_CXX \
13377 module_cmds_CXX \
13378 module_expsym_cmds_CXX \
13379 lt_cv_prog_compiler_c_o_CXX \
13380 exclude_expsyms_CXX \
13381 include_expsyms_CXX; do
13382
13383 case $var in
13384 old_archive_cmds_CXX | \
13385 old_archive_from_new_cmds_CXX | \
13386 archive_cmds_CXX | \
13387 archive_expsym_cmds_CXX | \
13388 module_cmds_CXX | \
13389 module_expsym_cmds_CXX | \
13390 old_archive_from_expsyms_cmds_CXX | \
13391 export_symbols_cmds_CXX | \
13392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13393 postinstall_cmds | postuninstall_cmds | \
13394 old_postinstall_cmds | old_postuninstall_cmds | \
13395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13396 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013397 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 +000013398 ;;
13399 *)
13400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13401 ;;
13402 esac
13403 done
13404
13405 case $lt_echo in
13406 *'\$0 --fallback-echo"')
13407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13408 ;;
13409 esac
13410
13411cfgfile="$ofile"
13412
13413 cat <<__EOF__ >> "$cfgfile"
13414# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13415
13416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13417
13418# Shell to use when invoking shell scripts.
13419SHELL=$lt_SHELL
13420
13421# Whether or not to build shared libraries.
13422build_libtool_libs=$enable_shared
13423
13424# Whether or not to build static libraries.
13425build_old_libs=$enable_static
13426
13427# Whether or not to add -lc for building shared libraries.
13428build_libtool_need_lc=$archive_cmds_need_lc_CXX
13429
13430# Whether or not to disallow shared libs when runtime libs are static
13431allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13432
13433# Whether or not to optimize for fast installation.
13434fast_install=$enable_fast_install
13435
13436# The host system.
13437host_alias=$host_alias
13438host=$host
13439
13440# An echo program that does not interpret backslashes.
13441echo=$lt_echo
13442
13443# The archiver.
13444AR=$lt_AR
13445AR_FLAGS=$lt_AR_FLAGS
13446
13447# A C compiler.
13448LTCC=$lt_LTCC
13449
13450# A language-specific compiler.
13451CC=$lt_compiler_CXX
13452
13453# Is the compiler the GNU C compiler?
13454with_gcc=$GCC_CXX
13455
13456# An ERE matcher.
13457EGREP=$lt_EGREP
13458
13459# The linker used to build libraries.
13460LD=$lt_LD_CXX
13461
13462# Whether we need hard or soft links.
13463LN_S=$lt_LN_S
13464
13465# A BSD-compatible nm program.
13466NM=$lt_NM
13467
13468# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000013469STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000013470
13471# Used to examine libraries when file_magic_cmd begins "file"
13472MAGIC_CMD=$MAGIC_CMD
13473
13474# Used on cygwin: DLL creation program.
13475DLLTOOL="$DLLTOOL"
13476
13477# Used on cygwin: object dumper.
13478OBJDUMP="$OBJDUMP"
13479
13480# Used on cygwin: assembler.
13481AS="$AS"
13482
13483# The name of the directory that contains temporary libtool files.
13484objdir=$objdir
13485
13486# How to create reloadable object files.
13487reload_flag=$lt_reload_flag
13488reload_cmds=$lt_reload_cmds
13489
13490# How to pass a linker flag through the compiler.
13491wl=$lt_lt_prog_compiler_wl_CXX
13492
13493# Object file suffix (normally "o").
13494objext="$ac_objext"
13495
13496# Old archive suffix (normally "a").
13497libext="$libext"
13498
13499# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000013500shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000013501
13502# Executable file suffix (normally "").
13503exeext="$exeext"
13504
13505# Additional compiler flags for building library objects.
13506pic_flag=$lt_lt_prog_compiler_pic_CXX
13507pic_mode=$pic_mode
13508
13509# What is the maximum length of a command?
13510max_cmd_len=$lt_cv_sys_max_cmd_len
13511
13512# Does compiler simultaneously support -c and -o options?
13513compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13514
13515# Must we lock files when doing compilation ?
13516need_locks=$lt_need_locks
13517
13518# Do we need the lib prefix for modules?
13519need_lib_prefix=$need_lib_prefix
13520
13521# Do we need a version for libraries?
13522need_version=$need_version
13523
13524# Whether dlopen is supported.
13525dlopen_support=$enable_dlopen
13526
13527# Whether dlopen of programs is supported.
13528dlopen_self=$enable_dlopen_self
13529
13530# Whether dlopen of statically linked programs is supported.
13531dlopen_self_static=$enable_dlopen_self_static
13532
13533# Compiler flag to prevent dynamic linking.
13534link_static_flag=$lt_lt_prog_compiler_static_CXX
13535
13536# Compiler flag to turn off builtin functions.
13537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13538
13539# Compiler flag to allow reflexive dlopens.
13540export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13541
13542# Compiler flag to generate shared objects directly from archives.
13543whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13544
13545# Compiler flag to generate thread-safe objects.
13546thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13547
13548# Library versioning type.
13549version_type=$version_type
13550
13551# Format of library name prefix.
13552libname_spec=$lt_libname_spec
13553
13554# List of archive names. First name is the real one, the rest are links.
13555# The last name is the one that the linker finds with -lNAME.
13556library_names_spec=$lt_library_names_spec
13557
13558# The coded name of the library, if different from the real name.
13559soname_spec=$lt_soname_spec
13560
13561# Commands used to build and install an old-style archive.
13562RANLIB=$lt_RANLIB
13563old_archive_cmds=$lt_old_archive_cmds_CXX
13564old_postinstall_cmds=$lt_old_postinstall_cmds
13565old_postuninstall_cmds=$lt_old_postuninstall_cmds
13566
13567# Create an old-style archive from a shared archive.
13568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13569
13570# Create a temporary old-style archive to link instead of a shared archive.
13571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13572
13573# Commands used to build and install a shared archive.
13574archive_cmds=$lt_archive_cmds_CXX
13575archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13576postinstall_cmds=$lt_postinstall_cmds
13577postuninstall_cmds=$lt_postuninstall_cmds
13578
13579# Commands used to build a loadable module (assumed same as above if empty)
13580module_cmds=$lt_module_cmds_CXX
13581module_expsym_cmds=$lt_module_expsym_cmds_CXX
13582
13583# Commands to strip libraries.
13584old_striplib=$lt_old_striplib
13585striplib=$lt_striplib
13586
13587# Dependencies to place before the objects being linked to create a
13588# shared library.
13589predep_objects=$lt_predep_objects_CXX
13590
13591# Dependencies to place after the objects being linked to create a
13592# shared library.
13593postdep_objects=$lt_postdep_objects_CXX
13594
13595# Dependencies to place before the objects being linked to create a
13596# shared library.
13597predeps=$lt_predeps_CXX
13598
13599# Dependencies to place after the objects being linked to create a
13600# shared library.
13601postdeps=$lt_postdeps_CXX
13602
13603# The library search path used internally by the compiler when linking
13604# a shared library.
13605compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13606
13607# Method to check whether dependent libraries are shared objects.
13608deplibs_check_method=$lt_deplibs_check_method
13609
13610# Command to use when deplibs_check_method == file_magic.
13611file_magic_cmd=$lt_file_magic_cmd
13612
13613# Flag that allows shared libraries with undefined symbols to be built.
13614allow_undefined_flag=$lt_allow_undefined_flag_CXX
13615
13616# Flag that forces no undefined symbols.
13617no_undefined_flag=$lt_no_undefined_flag_CXX
13618
13619# Commands used to finish a libtool library installation in a directory.
13620finish_cmds=$lt_finish_cmds
13621
13622# Same as above, but a single script fragment to be evaled but not shown.
13623finish_eval=$lt_finish_eval
13624
13625# Take the output of nm and produce a listing of raw symbols and C names.
13626global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13627
13628# Transform the output of nm in a proper C declaration
13629global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13630
13631# Transform the output of nm in a C name address pair
13632global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13633
13634# This is the shared library runtime path variable.
13635runpath_var=$runpath_var
13636
13637# This is the shared library path variable.
13638shlibpath_var=$shlibpath_var
13639
13640# Is shlibpath searched before the hard-coded library search path?
13641shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13642
13643# How to hardcode a shared library path into an executable.
13644hardcode_action=$hardcode_action_CXX
13645
13646# Whether we should hardcode library paths into libraries.
13647hardcode_into_libs=$hardcode_into_libs
13648
13649# Flag to hardcode \$libdir into a binary during linking.
13650# This must work even if \$libdir does not exist.
13651hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13652
13653# If ld is used when linking, flag to hardcode \$libdir into
13654# a binary during linking. This must work even if \$libdir does
13655# not exist.
13656hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13657
13658# Whether we need a single -rpath flag with a separated argument.
13659hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13660
13661# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13662# resulting binary.
13663hardcode_direct=$hardcode_direct_CXX
13664
13665# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13666# resulting binary.
13667hardcode_minus_L=$hardcode_minus_L_CXX
13668
13669# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13670# the resulting binary.
13671hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13672
13673# Set to yes if building a shared library automatically hardcodes DIR into the library
13674# and all subsequent libraries and executables linked against it.
13675hardcode_automatic=$hardcode_automatic_CXX
13676
13677# Variables whose values should be saved in libtool wrapper scripts and
13678# restored at relink time.
13679variables_saved_for_relink="$variables_saved_for_relink"
13680
13681# Whether libtool must link a program against all its dependency libraries.
13682link_all_deplibs=$link_all_deplibs_CXX
13683
13684# Compile-time system search path for libraries
13685sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13686
13687# Run-time system search path for libraries
13688sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13689
13690# Fix the shell variable \$srcfile for the compiler.
13691fix_srcfile_path="$fix_srcfile_path_CXX"
13692
13693# Set to yes if exported symbols are required.
13694always_export_symbols=$always_export_symbols_CXX
13695
13696# The commands to list exported symbols.
13697export_symbols_cmds=$lt_export_symbols_cmds_CXX
13698
13699# The commands to extract the exported symbol list from a shared archive.
13700extract_expsyms_cmds=$lt_extract_expsyms_cmds
13701
13702# Symbols that should not be listed in the preloaded symbols.
13703exclude_expsyms=$lt_exclude_expsyms_CXX
13704
13705# Symbols that must always be exported.
13706include_expsyms=$lt_include_expsyms_CXX
13707
13708# ### END LIBTOOL TAG CONFIG: $tagname
13709
13710__EOF__
13711
13712
13713else
13714 # If there is no Makefile yet, we rely on a make rule to execute
13715 # `config.status --recheck' to rerun these tests and create the
13716 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13718 if test -f "$ltmain_in"; then
13719 test -f Makefile && make "$ltmain"
13720 fi
John Criswell47fdd832003-07-14 16:52:07 +000013721fi
13722
13723
13724ac_ext=c
13725ac_cpp='$CPP $CPPFLAGS'
13726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728ac_compiler_gnu=$ac_cv_c_compiler_gnu
13729
13730CC=$lt_save_CC
13731LDCXX=$LD
13732LD=$lt_save_LD
13733GCC=$lt_save_GCC
13734with_gnu_ldcxx=$with_gnu_ld
13735with_gnu_ld=$lt_save_with_gnu_ld
13736lt_cv_path_LDCXX=$lt_cv_path_LD
13737lt_cv_path_LD=$lt_save_path_LD
13738lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13739lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13740
13741 else
13742 tagname=""
13743 fi
13744 ;;
13745
13746 F77)
13747 if test -n "$F77" && test "X$F77" != "Xno"; then
13748
13749ac_ext=f
13750ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13751ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13753
13754
13755archive_cmds_need_lc_F77=no
13756allow_undefined_flag_F77=
13757always_export_symbols_F77=no
13758archive_expsym_cmds_F77=
13759export_dynamic_flag_spec_F77=
13760hardcode_direct_F77=no
13761hardcode_libdir_flag_spec_F77=
13762hardcode_libdir_flag_spec_ld_F77=
13763hardcode_libdir_separator_F77=
13764hardcode_minus_L_F77=no
13765hardcode_automatic_F77=no
13766module_cmds_F77=
13767module_expsym_cmds_F77=
13768link_all_deplibs_F77=unknown
13769old_archive_cmds_F77=$old_archive_cmds
13770no_undefined_flag_F77=
13771whole_archive_flag_spec_F77=
13772enable_shared_with_static_runtimes_F77=no
13773
13774# Source file extension for f77 test sources.
13775ac_ext=f
13776
13777# Object file extension for compiled f77 test sources.
13778objext=o
13779objext_F77=$objext
13780
13781# Code to be used in simple compile tests
13782lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13783
13784# Code to be used in simple link tests
13785lt_simple_link_test_code=" program t\n end\n"
13786
13787# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13788
13789# If no C compiler was specified, use CC.
13790LTCC=${LTCC-"$CC"}
13791
13792# Allow CC to be a program name with arguments.
13793compiler=$CC
13794
13795
13796# Allow CC to be a program name with arguments.
13797lt_save_CC="$CC"
13798CC=${F77-"f77"}
13799compiler=$CC
13800compiler_F77=$CC
13801cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13802
13803echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13804echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13805echo "$as_me:$LINENO: result: $can_build_shared" >&5
13806echo "${ECHO_T}$can_build_shared" >&6
13807
13808echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13809echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13810test "$can_build_shared" = "no" && enable_shared=no
13811
13812# On AIX, shared libraries and static libraries use the same namespace, and
13813# are all built from PIC.
13814case "$host_os" in
13815aix3*)
13816 test "$enable_shared" = yes && enable_static=no
13817 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000013819 postinstall_cmds='$RANLIB $lib'
13820 fi
13821 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013822aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000013823 test "$enable_shared" = yes && enable_static=no
13824 ;;
13825esac
13826echo "$as_me:$LINENO: result: $enable_shared" >&5
13827echo "${ECHO_T}$enable_shared" >&6
13828
13829echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13830echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13831# Make sure either enable_shared or enable_static is yes.
13832test "$enable_shared" = yes || enable_static=yes
13833echo "$as_me:$LINENO: result: $enable_static" >&5
13834echo "${ECHO_T}$enable_static" >&6
13835
13836test "$ld_shlibs_F77" = no && can_build_shared=no
13837
13838GCC_F77="$G77"
13839LD_F77="$LD"
13840
13841lt_prog_compiler_wl_F77=
13842lt_prog_compiler_pic_F77=
13843lt_prog_compiler_static_F77=
13844
13845echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13846echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13847
13848 if test "$GCC" = yes; then
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 lt_prog_compiler_static_F77='-static'
13851
13852 case $host_os in
13853 aix*)
13854 # All AIX code is PIC.
13855 if test "$host_cpu" = ia64; then
13856 # AIX 5 now supports IA64 processor
13857 lt_prog_compiler_static_F77='-Bstatic'
13858 fi
13859 ;;
13860
13861 amigaos*)
13862 # FIXME: we need at least 68020 code to build shared libraries, but
13863 # adding the `-m68020' flag to GCC prevents building anything better,
13864 # like `-m68040'.
13865 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13866 ;;
13867
13868 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13869 # PIC is the default for these OSes.
13870 ;;
13871
13872 mingw* | pw32* | os2*)
13873 # This hack is so that the source file can tell whether it is being
13874 # built for inclusion in a dll (and should export symbols for example).
13875 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13876 ;;
13877
13878 darwin* | rhapsody*)
13879 # PIC is the default on this platform
13880 # Common symbols not allowed in MH_DYLIB files
13881 lt_prog_compiler_pic_F77='-fno-common'
13882 ;;
13883
13884 msdosdjgpp*)
13885 # Just because we use GCC doesn't mean we suddenly get shared libraries
13886 # on systems that don't support them.
13887 lt_prog_compiler_can_build_shared_F77=no
13888 enable_shared=no
13889 ;;
13890
13891 sysv4*MP*)
13892 if test -d /usr/nec; then
13893 lt_prog_compiler_pic_F77=-Kconform_pic
13894 fi
13895 ;;
13896
13897 hpux*)
13898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13899 # not for PA HP-UX.
13900 case "$host_cpu" in
13901 hppa*64*|ia64*)
13902 # +Z the default
13903 ;;
13904 *)
13905 lt_prog_compiler_pic_F77='-fPIC'
13906 ;;
13907 esac
13908 ;;
13909
13910 *)
13911 lt_prog_compiler_pic_F77='-fPIC'
13912 ;;
13913 esac
13914 else
13915 # PORTME Check for flag to pass linker flags through the system compiler.
13916 case $host_os in
13917 aix*)
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_F77='-Bstatic'
13922 else
13923 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13924 fi
13925 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013926 darwin*)
13927 # PIC is the default on this platform
13928 # Common symbols not allowed in MH_DYLIB files
13929 case "$cc_basename" in
13930 xlc*)
13931 lt_prog_compiler_pic_F77='-qnocommon'
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 ;;
13934 esac
13935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013936
13937 mingw* | pw32* | os2*)
13938 # This hack is so that the source file can tell whether it is being
13939 # built for inclusion in a dll (and should export symbols for example).
13940 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13941 ;;
13942
13943 hpux9* | hpux10* | hpux11*)
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946 # not for PA HP-UX.
13947 case "$host_cpu" in
13948 hppa*64*|ia64*)
13949 # +Z the default
13950 ;;
13951 *)
13952 lt_prog_compiler_pic_F77='+Z'
13953 ;;
13954 esac
13955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13956 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13957 ;;
13958
13959 irix5* | irix6* | nonstopux*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 # PIC (with -KPIC) is the default.
13962 lt_prog_compiler_static_F77='-non_shared'
13963 ;;
13964
13965 newsos6)
13966 lt_prog_compiler_pic_F77='-KPIC'
13967 lt_prog_compiler_static_F77='-Bstatic'
13968 ;;
13969
13970 linux*)
13971 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013972 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013973 lt_prog_compiler_wl_F77='-Wl,'
13974 lt_prog_compiler_pic_F77='-KPIC'
13975 lt_prog_compiler_static_F77='-static'
13976 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013977 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013978 lt_prog_compiler_wl_F77='-Wl,'
13979 # All Alpha code is PIC.
13980 lt_prog_compiler_static_F77='-non_shared'
13981 ;;
13982 esac
13983 ;;
13984
13985 osf3* | osf4* | osf5*)
13986 lt_prog_compiler_wl_F77='-Wl,'
13987 # All OSF/1 code is PIC.
13988 lt_prog_compiler_static_F77='-non_shared'
13989 ;;
13990
13991 sco3.2v5*)
13992 lt_prog_compiler_pic_F77='-Kpic'
13993 lt_prog_compiler_static_F77='-dn'
13994 ;;
13995
13996 solaris*)
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 lt_prog_compiler_pic_F77='-KPIC'
13999 lt_prog_compiler_static_F77='-Bstatic'
14000 ;;
14001
14002 sunos4*)
14003 lt_prog_compiler_wl_F77='-Qoption ld '
14004 lt_prog_compiler_pic_F77='-PIC'
14005 lt_prog_compiler_static_F77='-Bstatic'
14006 ;;
14007
14008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14009 lt_prog_compiler_wl_F77='-Wl,'
14010 lt_prog_compiler_pic_F77='-KPIC'
14011 lt_prog_compiler_static_F77='-Bstatic'
14012 ;;
14013
14014 sysv4*MP*)
14015 if test -d /usr/nec ;then
14016 lt_prog_compiler_pic_F77='-Kconform_pic'
14017 lt_prog_compiler_static_F77='-Bstatic'
14018 fi
14019 ;;
14020
14021 uts4*)
14022 lt_prog_compiler_pic_F77='-pic'
14023 lt_prog_compiler_static_F77='-Bstatic'
14024 ;;
14025
14026 *)
14027 lt_prog_compiler_can_build_shared_F77=no
14028 ;;
14029 esac
14030 fi
14031
14032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14033echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14034
14035#
14036# Check to make sure the PIC flag actually works.
14037#
14038if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014039
14040echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014041echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14042if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 lt_prog_compiler_pic_works_F77=no
14046 ac_outfile=conftest.$ac_objext
14047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14048 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14049 # Insert the option either (1) after the last *FLAGS variable, or
14050 # (2) before a word containing "conftest.", or (3) at the end.
14051 # Note that $ac_compile itself does not contain backslashes and begins
14052 # with a dollar sign (not a hyphen), so the echo should work correctly.
14053 # The option is referenced via a variable to avoid confusing sed.
14054 lt_compile=`echo "$ac_compile" | $SED \
14055 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14057 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014058 (eval echo "\"\$as_me:14058: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014059 (eval "$lt_compile" 2>conftest.err)
14060 ac_status=$?
14061 cat conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014062 echo "$as_me:14062: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014063 if (exit $ac_status) && test -s "$ac_outfile"; then
14064 # The compiler can only warn and ignore the option if not recognized
14065 # So say no if there are warnings
14066 if test ! -s conftest.err; then
14067 lt_prog_compiler_pic_works_F77=yes
14068 fi
14069 fi
14070 $rm conftest*
14071
14072fi
14073echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14074echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14075
14076if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14077 case $lt_prog_compiler_pic_F77 in
14078 "" | " "*) ;;
14079 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14080 esac
14081else
14082 lt_prog_compiler_pic_F77=
14083 lt_prog_compiler_can_build_shared_F77=no
14084fi
14085
14086fi
14087case "$host_os" in
14088 # For platforms which do not support PIC, -DPIC is meaningless:
14089 *djgpp*)
14090 lt_prog_compiler_pic_F77=
14091 ;;
14092 *)
14093 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14094 ;;
14095esac
14096
14097echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14098echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14099if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 lt_cv_prog_compiler_c_o_F77=no
14103 $rm -r conftest 2>/dev/null
14104 mkdir conftest
14105 cd conftest
14106 mkdir out
14107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14108
John Criswell47fdd832003-07-14 16:52:07 +000014109 lt_compiler_flag="-o out/conftest2.$ac_objext"
14110 # Insert the option either (1) after the last *FLAGS variable, or
14111 # (2) before a word containing "conftest.", or (3) at the end.
14112 # Note that $ac_compile itself does not contain backslashes and begins
14113 # with a dollar sign (not a hyphen), so the echo should work correctly.
14114 lt_compile=`echo "$ac_compile" | $SED \
14115 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014118 (eval echo "\"\$as_me:14118: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014119 (eval "$lt_compile" 2>out/conftest.err)
14120 ac_status=$?
14121 cat out/conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014122 echo "$as_me:14122: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14124 then
14125 # The compiler can only warn and ignore the option if not recognized
14126 # So say no if there are warnings
14127 if test ! -s out/conftest.err; then
14128 lt_cv_prog_compiler_c_o_F77=yes
14129 fi
14130 fi
14131 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000014132 $rm conftest*
14133 # SGI C++ compiler will create directory out/ii_files/ for
14134 # template instantiation
14135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14136 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014137 cd ..
14138 rmdir conftest
14139 $rm conftest*
14140
14141fi
14142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14144
14145
14146hard_links="nottested"
14147if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14148 # do not overwrite the value of need_locks provided by the user
14149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14151 hard_links=yes
14152 $rm conftest*
14153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14154 touch conftest.a
14155 ln conftest.a conftest.b 2>&5 || hard_links=no
14156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14157 echo "$as_me:$LINENO: result: $hard_links" >&5
14158echo "${ECHO_T}$hard_links" >&6
14159 if test "$hard_links" = no; then
14160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14162 need_locks=warn
14163 fi
14164else
14165 need_locks=no
14166fi
14167
14168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14170
14171 runpath_var=
14172 allow_undefined_flag_F77=
14173 enable_shared_with_static_runtimes_F77=no
14174 archive_cmds_F77=
14175 archive_expsym_cmds_F77=
14176 old_archive_From_new_cmds_F77=
14177 old_archive_from_expsyms_cmds_F77=
14178 export_dynamic_flag_spec_F77=
14179 whole_archive_flag_spec_F77=
14180 thread_safe_flag_spec_F77=
14181 hardcode_libdir_flag_spec_F77=
14182 hardcode_libdir_flag_spec_ld_F77=
14183 hardcode_libdir_separator_F77=
14184 hardcode_direct_F77=no
14185 hardcode_minus_L_F77=no
14186 hardcode_shlibpath_var_F77=unsupported
14187 link_all_deplibs_F77=unknown
14188 hardcode_automatic_F77=no
14189 module_cmds_F77=
14190 module_expsym_cmds_F77=
14191 always_export_symbols_F77=no
14192 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14193 # include_expsyms should be a list of space-separated symbols to be *always*
14194 # included in the symbol list
14195 include_expsyms_F77=
14196 # exclude_expsyms can be an extended regexp of symbols to exclude
14197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14199 # as well as any symbol that contains `d'.
14200 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14202 # platforms (ab)use it in PIC code, but their linkers get confused if
14203 # the symbol is explicitly referenced. Since portable code cannot
14204 # rely on this symbol name, it's probably fine to never include it in
14205 # preloaded symbol tables.
14206 extract_expsyms_cmds=
14207
14208 case $host_os in
14209 cygwin* | mingw* | pw32*)
14210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14211 # When not using gcc, we currently assume that we are using
14212 # Microsoft Visual C++.
14213 if test "$GCC" != yes; then
14214 with_gnu_ld=no
14215 fi
14216 ;;
14217 openbsd*)
14218 with_gnu_ld=no
14219 ;;
14220 esac
14221
14222 ld_shlibs_F77=yes
14223 if test "$with_gnu_ld" = yes; then
14224 # If archive_cmds runs LD, not CC, wlarc should be empty
14225 wlarc='${wl}'
14226
14227 # See if GNU ld supports shared libraries.
14228 case $host_os in
14229 aix3* | aix4* | aix5*)
14230 # On AIX/PPC, the GNU linker is very broken
14231 if test "$host_cpu" != ia64; then
14232 ld_shlibs_F77=no
14233 cat <<EOF 1>&2
14234
14235*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14236*** to be unable to reliably create shared libraries on AIX.
14237*** Therefore, libtool is disabling shared libraries support. If you
14238*** really care for shared libraries, you may want to modify your PATH
14239*** so that a non-GNU linker is found, and then restart.
14240
14241EOF
14242 fi
14243 ;;
14244
14245 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014246 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 +000014247 hardcode_libdir_flag_spec_F77='-L$libdir'
14248 hardcode_minus_L_F77=yes
14249
14250 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14251 # that the semantics of dynamic libraries on AmigaOS, at least up
14252 # to version 4, is to share data among multiple programs linked
14253 # with the same dynamic library. Since this doesn't match the
14254 # behavior of shared libraries on other platforms, we can't use
14255 # them.
14256 ld_shlibs_F77=no
14257 ;;
14258
14259 beos*)
14260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14261 allow_undefined_flag_F77=unsupported
14262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14263 # support --undefined. This deserves some investigation. FIXME
14264 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14265 else
14266 ld_shlibs_F77=no
14267 fi
14268 ;;
14269
14270 cygwin* | mingw* | pw32*)
14271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14272 # as there is no search path for DLLs.
14273 hardcode_libdir_flag_spec_F77='-L$libdir'
14274 allow_undefined_flag_F77=unsupported
14275 always_export_symbols_F77=no
14276 enable_shared_with_static_runtimes_F77=yes
14277 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14278
14279 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14281 # If the export-symbols file already is a .def file (1st line
14282 # is EXPORTS), use it as is; otherwise, prepend...
14283 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14284 cp $export_symbols $output_objdir/$soname.def;
14285 else
14286 echo EXPORTS > $output_objdir/$soname.def;
14287 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014288 fi~
14289 $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 +000014290 else
14291 ld_shlibs=no
14292 fi
14293 ;;
14294
14295 netbsd*)
14296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14297 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14298 wlarc=
14299 else
14300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14302 fi
14303 ;;
14304
14305 solaris* | sysv5*)
14306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14307 ld_shlibs_F77=no
14308 cat <<EOF 1>&2
14309
14310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14311*** create shared libraries on Solaris systems. Therefore, libtool
14312*** is disabling shared libraries support. We urge you to upgrade GNU
14313*** binutils to release 2.9.1 or newer. Another option is to modify
14314*** your PATH or compiler configuration so that the native linker is
14315*** used, and then restart.
14316
14317EOF
14318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14321 else
14322 ld_shlibs_F77=no
14323 fi
14324 ;;
14325
14326 sunos4*)
14327 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14328 wlarc=
14329 hardcode_direct_F77=yes
14330 hardcode_shlibpath_var_F77=no
14331 ;;
14332
Reid Spencer2706f8c2004-09-19 23:53:36 +000014333 linux*)
14334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14335 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336 archive_cmds_F77="$tmp_archive_cmds"
14337 supports_anon_versioning=no
14338 case `$LD -v 2>/dev/null` in
14339 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14342 *\ 2.11.*) ;; # other 2.11 versions
14343 *) supports_anon_versioning=yes ;;
14344 esac
14345 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014346 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14347cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14348$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000014349 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14350 else
14351 archive_expsym_cmds_F77="$tmp_archive_cmds"
14352 fi
14353 else
14354 ld_shlibs_F77=no
14355 fi
14356 ;;
14357
John Criswell47fdd832003-07-14 16:52:07 +000014358 *)
14359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14361 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14362 else
14363 ld_shlibs_F77=no
14364 fi
14365 ;;
14366 esac
14367
14368 if test "$ld_shlibs_F77" = yes; then
14369 runpath_var=LD_RUN_PATH
14370 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14371 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14372 # ancient GNU ld didn't support --whole-archive et. al.
14373 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14374 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14375 else
14376 whole_archive_flag_spec_F77=
14377 fi
14378 fi
14379 else
14380 # PORTME fill in a description of your system's linker (not GNU ld)
14381 case $host_os in
14382 aix3*)
14383 allow_undefined_flag_F77=unsupported
14384 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014385 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 +000014386 # Note: this linker hardcodes the directories in LIBPATH if there
14387 # are no directories specified by -L.
14388 hardcode_minus_L_F77=yes
14389 if test "$GCC" = yes && test -z "$link_static_flag"; then
14390 # Neither direct hardcoding nor static linking is supported with a
14391 # broken collect2.
14392 hardcode_direct_F77=unsupported
14393 fi
14394 ;;
14395
14396 aix4* | aix5*)
14397 if test "$host_cpu" = ia64; then
14398 # On IA64, the linker does run time linking by default, so we don't
14399 # have to do anything special.
14400 aix_use_runtimelinking=no
14401 exp_sym_flag='-Bexport'
14402 no_entry_flag=""
14403 else
14404 # If we're using GNU nm, then we don't want the "-C" option.
14405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14406 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14407 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'
14408 else
14409 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'
14410 fi
14411 aix_use_runtimelinking=no
14412
14413 # Test if we are trying to use run time linking or normal
14414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14415 # need to do runtime linking.
14416 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14417 for ld_flag in $LDFLAGS; do
14418 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14419 aix_use_runtimelinking=yes
14420 break
14421 fi
14422 done
14423 esac
14424
14425 exp_sym_flag='-bexport'
14426 no_entry_flag='-bnoentry'
14427 fi
14428
14429 # When large executables or shared objects are built, AIX ld can
14430 # have problems creating the table of contents. If linking a library
14431 # or program results in "error TOC overflow" add -mminimal-toc to
14432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14434
14435 archive_cmds_F77=''
14436 hardcode_direct_F77=yes
14437 hardcode_libdir_separator_F77=':'
14438 link_all_deplibs_F77=yes
14439
14440 if test "$GCC" = yes; then
14441 case $host_os in aix4.012|aix4.012.*)
14442 # We only want to do this on AIX 4.2 and lower, the check
14443 # below for broken collect2 doesn't work under 4.3+
14444 collect2name=`${CC} -print-prog-name=collect2`
14445 if test -f "$collect2name" && \
14446 strings "$collect2name" | grep resolve_lib_name >/dev/null
14447 then
14448 # We have reworked collect2
14449 hardcode_direct_F77=yes
14450 else
14451 # We have old collect2
14452 hardcode_direct_F77=unsupported
14453 # It fails to find uninstalled libraries when the uninstalled
14454 # path is not listed in the libpath. Setting hardcode_minus_L
14455 # to unsupported forces relinking
14456 hardcode_minus_L_F77=yes
14457 hardcode_libdir_flag_spec_F77='-L$libdir'
14458 hardcode_libdir_separator_F77=
14459 fi
14460 esac
14461 shared_flag='-shared'
14462 else
14463 # not using gcc
14464 if test "$host_cpu" = ia64; then
14465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14466 # chokes on -Wl,-G. The following line is correct:
14467 shared_flag='-G'
14468 else
14469 if test "$aix_use_runtimelinking" = yes; then
14470 shared_flag='${wl}-G'
14471 else
14472 shared_flag='${wl}-bM:SRE'
14473 fi
14474 fi
14475 fi
14476
14477 # It seems that -bexpall does not export symbols beginning with
14478 # underscore (_), so it is better to generate a list of symbols to export.
14479 always_export_symbols_F77=yes
14480 if test "$aix_use_runtimelinking" = yes; then
14481 # Warning - without using the other runtime loading flags (-brtl),
14482 # -berok will link without error, but may produce a broken library.
14483 allow_undefined_flag_F77='-berok'
14484 # Determine the default libpath from the value encoded in an empty executable.
14485 cat >conftest.$ac_ext <<_ACEOF
14486 program main
14487
14488 end
14489_ACEOF
14490rm -f conftest.$ac_objext conftest$ac_exeext
14491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014492 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014499 { ac_try='test -z "$ac_f77_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512
14513aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14514}'`
14515# Check for a 64-bit object if we didn't find anything.
14516if 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; }
14517}'`; fi
14518else
14519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014520sed 's/^/| /' conftest.$ac_ext >&5
14521
John Criswell47fdd832003-07-14 16:52:07 +000014522fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014523rm -f conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14526
14527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14528 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"
14529 else
14530 if test "$host_cpu" = ia64; then
14531 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14532 allow_undefined_flag_F77="-z nodefs"
14533 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"
14534 else
14535 # Determine the default libpath from the value encoded in an empty executable.
14536 cat >conftest.$ac_ext <<_ACEOF
14537 program main
14538
14539 end
14540_ACEOF
14541rm -f conftest.$ac_objext conftest$ac_exeext
14542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014543 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014550 { ac_try='test -z "$ac_f77_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563
14564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14565}'`
14566# Check for a 64-bit object if we didn't find anything.
14567if 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; }
14568}'`; fi
14569else
14570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014571sed 's/^/| /' conftest.$ac_ext >&5
14572
John Criswell47fdd832003-07-14 16:52:07 +000014573fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014574rm -f conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14577
14578 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14579 # Warning - without using the other run time loading flags,
14580 # -berok will link without error, but may produce a broken library.
14581 no_undefined_flag_F77=' ${wl}-bernotok'
14582 allow_undefined_flag_F77=' ${wl}-berok'
14583 # -bexpall does not export symbols beginning with underscore (_)
14584 always_export_symbols_F77=yes
14585 # Exported symbols can be pulled into shared objects from archives
14586 whole_archive_flag_spec_F77=' '
14587 archive_cmds_need_lc_F77=yes
14588 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000014589 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 +000014590 fi
14591 fi
14592 ;;
14593
14594 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014595 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 +000014596 hardcode_libdir_flag_spec_F77='-L$libdir'
14597 hardcode_minus_L_F77=yes
14598 # see comment about different semantics on the GNU ld section
14599 ld_shlibs_F77=no
14600 ;;
14601
Reid Spencer2706f8c2004-09-19 23:53:36 +000014602 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014603 export_dynamic_flag_spec_F77=-rdynamic
14604 ;;
14605
14606 cygwin* | mingw* | pw32*)
14607 # When not using gcc, we currently assume that we are using
14608 # Microsoft Visual C++.
14609 # hardcode_libdir_flag_spec is actually meaningless, as there is
14610 # no search path for DLLs.
14611 hardcode_libdir_flag_spec_F77=' '
14612 allow_undefined_flag_F77=unsupported
14613 # Tell ltmain to make .lib files, not .a files.
14614 libext=lib
14615 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014616 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014617 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014618 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 +000014619 # The linker will automatically build a .lib file if we build a DLL.
14620 old_archive_From_new_cmds_F77='true'
14621 # FIXME: Should let the user specify the lib program.
14622 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14623 fix_srcfile_path='`cygpath -w "$srcfile"`'
14624 enable_shared_with_static_runtimes_F77=yes
14625 ;;
14626
14627 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000014628 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014629 rhapsody* | darwin1.[012])
14630 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14631 ;;
14632 *) # Darwin 1.3 on
14633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14634 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14635 else
14636 case ${MACOSX_DEPLOYMENT_TARGET} in
14637 10.[012])
14638 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14639 ;;
14640 10.*)
14641 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14642 ;;
14643 esac
14644 fi
14645 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014646 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014647 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000014648 hardcode_direct_F77=no
14649 hardcode_automatic_F77=yes
14650 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014651 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000014652 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014653 if test "$GCC" = yes ; then
14654 output_verbose_link_cmd='echo'
14655 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14656 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14657 # 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 +000014658 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}'
14659 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 +000014660 else
14661 case "$cc_basename" in
14662 xlc*)
14663 output_verbose_link_cmd='echo'
14664 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14665 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14666 # 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 +000014667 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}'
14668 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 +000014669 ;;
14670 *)
14671 ld_shlibs_F77=no
14672 ;;
14673 esac
John Criswell47fdd832003-07-14 16:52:07 +000014674 fi
14675 ;;
14676
14677 dgux*)
14678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_libdir_flag_spec_F77='-L$libdir'
14680 hardcode_shlibpath_var_F77=no
14681 ;;
14682
14683 freebsd1*)
14684 ld_shlibs_F77=no
14685 ;;
14686
14687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14688 # support. Future versions do this automatically, but an explicit c++rt0.o
14689 # does not break anything, and helps significantly (at the cost of a little
14690 # extra space).
14691 freebsd2.2*)
14692 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14693 hardcode_libdir_flag_spec_F77='-R$libdir'
14694 hardcode_direct_F77=yes
14695 hardcode_shlibpath_var_F77=no
14696 ;;
14697
14698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14699 freebsd2*)
14700 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_direct_F77=yes
14702 hardcode_minus_L_F77=yes
14703 hardcode_shlibpath_var_F77=no
14704 ;;
14705
14706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014707 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000014708 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14709 hardcode_libdir_flag_spec_F77='-R$libdir'
14710 hardcode_direct_F77=yes
14711 hardcode_shlibpath_var_F77=no
14712 ;;
14713
14714 hpux9*)
14715 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014716 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 +000014717 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014718 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 +000014719 fi
14720 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14721 hardcode_libdir_separator_F77=:
14722 hardcode_direct_F77=yes
14723
14724 # hardcode_minus_L: Not really in the search PATH,
14725 # but as the default location of the library.
14726 hardcode_minus_L_F77=yes
14727 export_dynamic_flag_spec_F77='${wl}-E'
14728 ;;
14729
14730 hpux10* | hpux11*)
14731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14732 case "$host_cpu" in
14733 hppa*64*|ia64*)
14734 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14735 ;;
14736 *)
14737 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14738 ;;
14739 esac
14740 else
14741 case "$host_cpu" in
14742 hppa*64*|ia64*)
14743 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14744 ;;
14745 *)
14746 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14747 ;;
14748 esac
14749 fi
14750 if test "$with_gnu_ld" = no; then
14751 case "$host_cpu" in
14752 hppa*64*)
14753 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14754 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14755 hardcode_libdir_separator_F77=:
14756 hardcode_direct_F77=no
14757 hardcode_shlibpath_var_F77=no
14758 ;;
14759 ia64*)
14760 hardcode_libdir_flag_spec_F77='-L$libdir'
14761 hardcode_direct_F77=no
14762 hardcode_shlibpath_var_F77=no
14763
14764 # hardcode_minus_L: Not really in the search PATH,
14765 # but as the default location of the library.
14766 hardcode_minus_L_F77=yes
14767 ;;
14768 *)
14769 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14770 hardcode_libdir_separator_F77=:
14771 hardcode_direct_F77=yes
14772 export_dynamic_flag_spec_F77='${wl}-E'
14773
14774 # hardcode_minus_L: Not really in the search PATH,
14775 # but as the default location of the library.
14776 hardcode_minus_L_F77=yes
14777 ;;
14778 esac
14779 fi
14780 ;;
14781
14782 irix5* | irix6* | nonstopux*)
14783 if test "$GCC" = yes; then
14784 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'
14785 else
14786 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'
14787 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14788 fi
14789 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14790 hardcode_libdir_separator_F77=:
14791 link_all_deplibs_F77=yes
14792 ;;
14793
14794 netbsd*)
14795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14796 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14797 else
14798 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14799 fi
14800 hardcode_libdir_flag_spec_F77='-R$libdir'
14801 hardcode_direct_F77=yes
14802 hardcode_shlibpath_var_F77=no
14803 ;;
14804
14805 newsos6)
14806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14807 hardcode_direct_F77=yes
14808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14809 hardcode_libdir_separator_F77=:
14810 hardcode_shlibpath_var_F77=no
14811 ;;
14812
14813 openbsd*)
14814 hardcode_direct_F77=yes
14815 hardcode_shlibpath_var_F77=no
14816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14817 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014818 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 +000014819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14820 export_dynamic_flag_spec_F77='${wl}-E'
14821 else
14822 case $host_os in
14823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14825 hardcode_libdir_flag_spec_F77='-R$libdir'
14826 ;;
14827 *)
14828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14830 ;;
14831 esac
14832 fi
14833 ;;
14834
14835 os2*)
14836 hardcode_libdir_flag_spec_F77='-L$libdir'
14837 hardcode_minus_L_F77=yes
14838 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014839 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 +000014840 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14841 ;;
14842
14843 osf3*)
14844 if test "$GCC" = yes; then
14845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14846 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'
14847 else
14848 allow_undefined_flag_F77=' -expect_unresolved \*'
14849 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'
14850 fi
14851 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14852 hardcode_libdir_separator_F77=:
14853 ;;
14854
14855 osf4* | osf5*) # as osf3* with the addition of -msym flag
14856 if test "$GCC" = yes; then
14857 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14858 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'
14859 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14860 else
14861 allow_undefined_flag_F77=' -expect_unresolved \*'
14862 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 +000014863 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~
14864 $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'
14865
John Criswell47fdd832003-07-14 16:52:07 +000014866 # Both c and cxx compiler support -rpath directly
14867 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14868 fi
14869 hardcode_libdir_separator_F77=:
14870 ;;
14871
14872 sco3.2v5*)
14873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_shlibpath_var_F77=no
14875 export_dynamic_flag_spec_F77='${wl}-Bexport'
14876 runpath_var=LD_RUN_PATH
14877 hardcode_runpath_var=yes
14878 ;;
14879
14880 solaris*)
14881 no_undefined_flag_F77=' -z text'
14882 if test "$GCC" = yes; then
14883 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014884 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14885 $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 +000014886 else
14887 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14889 $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 +000014890 fi
14891 hardcode_libdir_flag_spec_F77='-R$libdir'
14892 hardcode_shlibpath_var_F77=no
14893 case $host_os in
14894 solaris2.[0-5] | solaris2.[0-5].*) ;;
14895 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14896 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14897 esac
14898 link_all_deplibs_F77=yes
14899 ;;
14900
14901 sunos4*)
14902 if test "x$host_vendor" = xsequent; then
14903 # Use $CC to link under sequent, because it throws in some extra .o
14904 # files that make .init and .fini sections work.
14905 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14906 else
14907 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14908 fi
14909 hardcode_libdir_flag_spec_F77='-L$libdir'
14910 hardcode_direct_F77=yes
14911 hardcode_minus_L_F77=yes
14912 hardcode_shlibpath_var_F77=no
14913 ;;
14914
14915 sysv4)
14916 case $host_vendor in
14917 sni)
14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 hardcode_direct_F77=yes # is this really true???
14920 ;;
14921 siemens)
14922 ## LD is ld it makes a PLAMLIB
14923 ## CC just makes a GrossModule.
14924 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14925 reload_cmds_F77='$CC -r -o $output$reload_objs'
14926 hardcode_direct_F77=no
14927 ;;
14928 motorola)
14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14930 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14931 ;;
14932 esac
14933 runpath_var='LD_RUN_PATH'
14934 hardcode_shlibpath_var_F77=no
14935 ;;
14936
14937 sysv4.3*)
14938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939 hardcode_shlibpath_var_F77=no
14940 export_dynamic_flag_spec_F77='-Bexport'
14941 ;;
14942
14943 sysv4*MP*)
14944 if test -d /usr/nec; then
14945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14946 hardcode_shlibpath_var_F77=no
14947 runpath_var=LD_RUN_PATH
14948 hardcode_runpath_var=yes
14949 ld_shlibs_F77=yes
14950 fi
14951 ;;
14952
14953 sysv4.2uw2*)
14954 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14955 hardcode_direct_F77=yes
14956 hardcode_minus_L_F77=no
14957 hardcode_shlibpath_var_F77=no
14958 hardcode_runpath_var=yes
14959 runpath_var=LD_RUN_PATH
14960 ;;
14961
14962 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14963 no_undefined_flag_F77='${wl}-z ${wl}text'
14964 if test "$GCC" = yes; then
14965 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 else
14967 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 fi
14969 runpath_var='LD_RUN_PATH'
14970 hardcode_shlibpath_var_F77=no
14971 ;;
14972
14973 sysv5*)
14974 no_undefined_flag_F77=' -z text'
14975 # $CC -shared without GNU ld will not create a library from C++
14976 # object files and a static libstdc++, better avoid it by now
14977 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014978 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14979 $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 +000014980 hardcode_libdir_flag_spec_F77=
14981 hardcode_shlibpath_var_F77=no
14982 runpath_var='LD_RUN_PATH'
14983 ;;
14984
14985 uts4*)
14986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_libdir_flag_spec_F77='-L$libdir'
14988 hardcode_shlibpath_var_F77=no
14989 ;;
14990
14991 *)
14992 ld_shlibs_F77=no
14993 ;;
14994 esac
14995 fi
14996
14997echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14998echo "${ECHO_T}$ld_shlibs_F77" >&6
14999test "$ld_shlibs_F77" = no && can_build_shared=no
15000
15001variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15002if test "$GCC" = yes; then
15003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15004fi
15005
15006#
15007# Do we need to explicitly link libc?
15008#
15009case "x$archive_cmds_need_lc_F77" in
15010x|xyes)
15011 # Assume -lc should be added
15012 archive_cmds_need_lc_F77=yes
15013
15014 if test "$enable_shared" = yes && test "$GCC" = yes; then
15015 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015016 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015017 # FIXME: we may have to deal with multi-command sequences.
15018 ;;
15019 '$CC '*)
15020 # Test whether the compiler implicitly links with -lc since on some
15021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15022 # to ld, don't add -lc before -lgcc.
15023 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15024echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15025 $rm conftest*
15026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15027
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } 2>conftest.err; then
15033 soname=conftest
15034 lib=conftest
15035 libobjs=conftest.$ac_objext
15036 deplibs=
15037 wl=$lt_prog_compiler_wl_F77
15038 compiler_flags=-v
15039 linker_flags=-v
15040 verstring=
15041 output_objdir=.
15042 libname=conftest
15043 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15044 allow_undefined_flag_F77=
15045 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15046 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }
15050 then
15051 archive_cmds_need_lc_F77=no
15052 else
15053 archive_cmds_need_lc_F77=yes
15054 fi
15055 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15056 else
15057 cat conftest.err 1>&5
15058 fi
15059 $rm conftest*
15060 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15061echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15062 ;;
15063 esac
15064 fi
15065 ;;
15066esac
15067
John Criswell47fdd832003-07-14 16:52:07 +000015068echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15069echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15070library_names_spec=
15071libname_spec='lib$name'
15072soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015073shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000015074postinstall_cmds=
15075postuninstall_cmds=
15076finish_cmds=
15077finish_eval=
15078shlibpath_var=
15079shlibpath_overrides_runpath=unknown
15080version_type=none
15081dynamic_linker="$host_os ld.so"
15082sys_lib_dlsearch_path_spec="/lib /usr/lib"
15083if test "$GCC" = yes; then
15084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15085 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15086 # if the path contains ";" then we assume it to be the separator
15087 # otherwise default to the standard path separator (i.e. ":") - it is
15088 # assumed that no part of a normal pathname contains ";" but that should
15089 # okay in the real world where ";" in dirpaths is itself problematic.
15090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15091 else
15092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15093 fi
15094else
15095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15096fi
15097need_lib_prefix=unknown
15098hardcode_into_libs=no
15099
15100# when you set need_version to no, make sure it does not cause -set_version
15101# flags to be left without arguments
15102need_version=unknown
15103
15104case $host_os in
15105aix3*)
15106 version_type=linux
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15108 shlibpath_var=LIBPATH
15109
15110 # AIX 3 has no versioning support, so we append a major version to the name.
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 ;;
15113
15114aix4* | aix5*)
15115 version_type=linux
15116 need_lib_prefix=no
15117 need_version=no
15118 hardcode_into_libs=yes
15119 if test "$host_cpu" = ia64; then
15120 # AIX 5 supports IA64
15121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 else
15124 # With GCC up to 2.95.x, collect2 would create an import file
15125 # for dependence libraries. The import file would start with
15126 # the line `#! .'. This would cause the generated library to
15127 # depend on `.', always an invalid library. This was fixed in
15128 # development snapshots of GCC prior to 3.0.
15129 case $host_os in
15130 aix4 | aix4.[01] | aix4.[01].*)
15131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15132 echo ' yes '
15133 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15134 :
15135 else
15136 can_build_shared=no
15137 fi
15138 ;;
15139 esac
15140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15141 # soname into executable. Probably we can add versioning support to
15142 # collect2, so additional links can be useful in future.
15143 if test "$aix_use_runtimelinking" = yes; then
15144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15145 # instead of lib<name>.a to let people know that these are not
15146 # typical AIX shared libraries.
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 else
15149 # We preserve .a as extension for shared libraries through AIX4.2
15150 # and later when we are not doing run time linking.
15151 library_names_spec='${libname}${release}.a $libname.a'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 fi
15154 shlibpath_var=LIBPATH
15155 fi
15156 ;;
15157
15158amigaos*)
15159 library_names_spec='$libname.ixlibrary $libname.a'
15160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015161 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 +000015162 ;;
15163
15164beos*)
15165 library_names_spec='${libname}${shared_ext}'
15166 dynamic_linker="$host_os ld.so"
15167 shlibpath_var=LIBRARY_PATH
15168 ;;
15169
Reid Spencer2706f8c2004-09-19 23:53:36 +000015170bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015171 version_type=linux
15172 need_version=no
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15179 # the default ld.so.conf also contains /usr/contrib/lib and
15180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15181 # libtool to hard-code these into programs
15182 ;;
15183
15184cygwin* | mingw* | pw32*)
15185 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015186 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015187 need_version=no
15188 need_lib_prefix=no
15189
15190 case $GCC,$host_os in
15191 yes,cygwin* | yes,mingw* | yes,pw32*)
15192 library_names_spec='$libname.dll.a'
15193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015194 postinstall_cmds='base_file=`basename \${file}`~
15195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15196 dldir=$destdir/`dirname \$dlpath`~
15197 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000015198 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15200 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000015201 $rm \$dlpath'
15202 shlibpath_overrides_runpath=yes
15203
15204 case $host_os in
15205 cygwin*)
15206 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15207 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 +000015208 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015209 ;;
15210 mingw*)
15211 # MinGW DLLs use traditional 'lib' prefix
15212 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15213 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15214 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15215 # It is most probably a Windows format PATH printed by
15216 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15217 # path with ; separators, and with drive letters. We can handle the
15218 # drive letters (cygwin fileutils understands them), so leave them,
15219 # especially as we might pass files found there to a mingw objdump,
15220 # which wouldn't understand a cygwinified path. Ahh.
15221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15222 else
15223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15224 fi
15225 ;;
15226 pw32*)
15227 # pw32 DLLs use 'pw' prefix rather than 'lib'
15228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15229 ;;
15230 esac
15231 ;;
15232
15233 *)
15234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15235 ;;
15236 esac
15237 dynamic_linker='Win32 ld.exe'
15238 # FIXME: first we should search . and the directory the executable is in
15239 shlibpath_var=PATH
15240 ;;
15241
15242darwin* | rhapsody*)
15243 dynamic_linker="$host_os dyld"
15244 version_type=darwin
15245 need_lib_prefix=no
15246 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015247 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015248 soname_spec='${libname}${release}${major}$shared_ext'
15249 shlibpath_overrides_runpath=yes
15250 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000015251 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000015252 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015253 if test "$GCC" = yes; then
15254 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"`
15255 else
15256 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015257 fi
15258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15259 ;;
15260
15261dgux*)
15262 version_type=linux
15263 need_lib_prefix=no
15264 need_version=no
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 ;;
15269
15270freebsd1*)
15271 dynamic_linker=no
15272 ;;
15273
Reid Spencer2706f8c2004-09-19 23:53:36 +000015274kfreebsd*-gnu)
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 shlibpath_overrides_runpath=no
15282 hardcode_into_libs=yes
15283 dynamic_linker='GNU ld.so'
15284 ;;
15285
John Criswell47fdd832003-07-14 16:52:07 +000015286freebsd*)
15287 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15288 version_type=freebsd-$objformat
15289 case $version_type in
15290 freebsd-elf*)
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15292 need_version=no
15293 need_lib_prefix=no
15294 ;;
15295 freebsd-*)
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15297 need_version=yes
15298 ;;
15299 esac
15300 shlibpath_var=LD_LIBRARY_PATH
15301 case $host_os in
15302 freebsd2*)
15303 shlibpath_overrides_runpath=yes
15304 ;;
15305 freebsd3.01* | freebsdelf3.01*)
15306 shlibpath_overrides_runpath=yes
15307 hardcode_into_libs=yes
15308 ;;
15309 *) # from 3.2 on
15310 shlibpath_overrides_runpath=no
15311 hardcode_into_libs=yes
15312 ;;
15313 esac
15314 ;;
15315
15316gnu*)
15317 version_type=linux
15318 need_lib_prefix=no
15319 need_version=no
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 hardcode_into_libs=yes
15324 ;;
15325
15326hpux9* | hpux10* | hpux11*)
15327 # Give a soname corresponding to the major version so that dld.sl refuses to
15328 # link against other versions.
15329 version_type=sunos
15330 need_lib_prefix=no
15331 need_version=no
15332 case "$host_cpu" in
15333 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015334 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015335 hardcode_into_libs=yes
15336 dynamic_linker="$host_os dld.so"
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 if test "X$HPUX_IA64_MODE" = X32; then
15342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15343 else
15344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15345 fi
15346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15347 ;;
15348 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015349 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015350 hardcode_into_libs=yes
15351 dynamic_linker="$host_os dld.sl"
15352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15358 ;;
15359 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015360 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015361 dynamic_linker="$host_os dld.sl"
15362 shlibpath_var=SHLIB_PATH
15363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 ;;
15367 esac
15368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15369 postinstall_cmds='chmod 555 $lib'
15370 ;;
15371
15372irix5* | irix6* | nonstopux*)
15373 case $host_os in
15374 nonstopux*) version_type=nonstopux ;;
15375 *)
15376 if test "$lt_cv_prog_gnu_ld" = yes; then
15377 version_type=linux
15378 else
15379 version_type=irix
15380 fi ;;
15381 esac
15382 need_lib_prefix=no
15383 need_version=no
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15386 case $host_os in
15387 irix5* | nonstopux*)
15388 libsuff= shlibsuff=
15389 ;;
15390 *)
15391 case $LD in # libtool.m4 will add one of these switches to LD
15392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15393 libsuff= shlibsuff= libmagic=32-bit;;
15394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15395 libsuff=32 shlibsuff=N32 libmagic=N32;;
15396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15398 *) libsuff= shlibsuff= libmagic=never-match;;
15399 esac
15400 ;;
15401 esac
15402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15403 shlibpath_overrides_runpath=no
15404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15406 hardcode_into_libs=yes
15407 ;;
15408
15409# No shared lib support for Linux oldld, aout, or coff.
15410linux*oldld* | linux*aout* | linux*coff*)
15411 dynamic_linker=no
15412 ;;
15413
15414# This must be Linux ELF.
15415linux*)
15416 version_type=linux
15417 need_lib_prefix=no
15418 need_version=no
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=no
15424 # This implies no fast_install, which is unacceptable.
15425 # Some rework will be needed to allow for fast_install
15426 # before this can be enabled.
15427 hardcode_into_libs=yes
15428
Reid Spencer2706f8c2004-09-19 23:53:36 +000015429 # Append ld.so.conf contents to the search path
15430 if test -f /etc/ld.so.conf; then
15431 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15433 fi
15434
John Criswell47fdd832003-07-14 16:52:07 +000015435 # We used to test for /lib/ld.so.1 and disable shared libraries on
15436 # powerpc, because MkLinux only supported shared libraries with the
15437 # GNU dynamic linker. Since this was broken with cross compilers,
15438 # most powerpc-linux boxes support dynamic linking these days and
15439 # people can always --disable-shared, the test was removed, and we
15440 # assume the GNU/Linux dynamic linker is in use.
15441 dynamic_linker='GNU/Linux ld.so'
15442 ;;
15443
Reid Spencer2706f8c2004-09-19 23:53:36 +000015444knetbsd*-gnu)
15445 version_type=linux
15446 need_lib_prefix=no
15447 need_version=no
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=no
15452 hardcode_into_libs=yes
15453 dynamic_linker='GNU ld.so'
15454 ;;
15455
John Criswell47fdd832003-07-14 16:52:07 +000015456netbsd*)
15457 version_type=sunos
15458 need_lib_prefix=no
15459 need_version=no
15460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15463 dynamic_linker='NetBSD (a.out) ld.so'
15464 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015466 soname_spec='${libname}${release}${shared_ext}$major'
15467 dynamic_linker='NetBSD ld.elf_so'
15468 fi
15469 shlibpath_var=LD_LIBRARY_PATH
15470 shlibpath_overrides_runpath=yes
15471 hardcode_into_libs=yes
15472 ;;
15473
15474newsos6)
15475 version_type=linux
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=yes
15479 ;;
15480
Reid Spencer2706f8c2004-09-19 23:53:36 +000015481nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015482 version_type=linux
15483 need_lib_prefix=no
15484 need_version=no
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=yes
15489 ;;
15490
15491openbsd*)
15492 version_type=sunos
15493 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000015494 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15499 case $host_os in
15500 openbsd2.[89] | openbsd2.[89].*)
15501 shlibpath_overrides_runpath=no
15502 ;;
15503 *)
15504 shlibpath_overrides_runpath=yes
15505 ;;
15506 esac
15507 else
15508 shlibpath_overrides_runpath=yes
15509 fi
15510 ;;
15511
15512os2*)
15513 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015514 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015515 need_lib_prefix=no
15516 library_names_spec='$libname${shared_ext} $libname.a'
15517 dynamic_linker='OS/2 ld.exe'
15518 shlibpath_var=LIBPATH
15519 ;;
15520
15521osf3* | osf4* | osf5*)
15522 version_type=osf
15523 need_lib_prefix=no
15524 need_version=no
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15530 ;;
15531
15532sco3.2v5*)
15533 version_type=osf
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 ;;
15538
15539solaris*)
15540 version_type=linux
15541 need_lib_prefix=no
15542 need_version=no
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15548 # ldd complains unless libraries are executable
15549 postinstall_cmds='chmod +x $lib'
15550 ;;
15551
15552sunos4*)
15553 version_type=sunos
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=yes
15558 if test "$with_gnu_ld" = yes; then
15559 need_lib_prefix=no
15560 fi
15561 need_version=yes
15562 ;;
15563
15564sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15565 version_type=linux
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 case $host_vendor in
15570 sni)
15571 shlibpath_overrides_runpath=no
15572 need_lib_prefix=no
15573 export_dynamic_flag_spec='${wl}-Blargedynsym'
15574 runpath_var=LD_RUN_PATH
15575 ;;
15576 siemens)
15577 need_lib_prefix=no
15578 ;;
15579 motorola)
15580 need_lib_prefix=no
15581 need_version=no
15582 shlibpath_overrides_runpath=no
15583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15584 ;;
15585 esac
15586 ;;
15587
15588sysv4*MP*)
15589 if test -d /usr/nec ;then
15590 version_type=linux
15591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15592 soname_spec='$libname${shared_ext}.$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 fi
15595 ;;
15596
15597uts4*)
15598 version_type=linux
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 ;;
15603
15604*)
15605 dynamic_linker=no
15606 ;;
15607esac
15608echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15609echo "${ECHO_T}$dynamic_linker" >&6
15610test "$dynamic_linker" = no && can_build_shared=no
15611
Reid Spencer2706f8c2004-09-19 23:53:36 +000015612echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15613echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15614hardcode_action_F77=
15615if test -n "$hardcode_libdir_flag_spec_F77" || \
15616 test -n "$runpath_var_F77" || \
15617 test "X$hardcode_automatic_F77" = "Xyes" ; then
15618
15619 # We can hardcode non-existant directories.
15620 if test "$hardcode_direct_F77" != no &&
15621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15622 # have to relink, otherwise we might link with an installed library
15623 # when we should be linking with a yet-to-be-installed one
15624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15625 test "$hardcode_minus_L_F77" != no; then
15626 # Linking always hardcodes the temporary library directory.
15627 hardcode_action_F77=relink
15628 else
15629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15630 hardcode_action_F77=immediate
15631 fi
15632else
15633 # We cannot hardcode anything, or else we can only hardcode existing
15634 # directories.
15635 hardcode_action_F77=unsupported
15636fi
15637echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15638echo "${ECHO_T}$hardcode_action_F77" >&6
15639
15640if test "$hardcode_action_F77" = relink; then
15641 # Fast installation is not supported
15642 enable_fast_install=no
15643elif test "$shlibpath_overrides_runpath" = yes ||
15644 test "$enable_shared" = no; then
15645 # Fast installation is not necessary
15646 enable_fast_install=needless
15647fi
15648
15649striplib=
15650old_striplib=
15651echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15652echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15653if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15655 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15656 echo "$as_me:$LINENO: result: yes" >&5
15657echo "${ECHO_T}yes" >&6
15658else
15659# FIXME - insert some real tests, host_os isn't really good enough
15660 case $host_os in
15661 darwin*)
15662 if test -n "$STRIP" ; then
15663 striplib="$STRIP -x"
15664 echo "$as_me:$LINENO: result: yes" >&5
15665echo "${ECHO_T}yes" >&6
15666 else
15667 echo "$as_me:$LINENO: result: no" >&5
15668echo "${ECHO_T}no" >&6
15669fi
15670 ;;
15671 *)
15672 echo "$as_me:$LINENO: result: no" >&5
15673echo "${ECHO_T}no" >&6
15674 ;;
15675 esac
15676fi
15677
15678
John Criswell47fdd832003-07-14 16:52:07 +000015679
15680# The else clause should only fire when bootstrapping the
15681# libtool distribution, otherwise you forgot to ship ltmain.sh
15682# with your package, and you will get complaints that there are
15683# no rules to generate ltmain.sh.
15684if test -f "$ltmain"; then
15685 # See if we are running on zsh, and set the options which allow our commands through
15686 # without removal of \ escapes.
15687 if test -n "${ZSH_VERSION+set}" ; then
15688 setopt NO_GLOB_SUBST
15689 fi
15690 # Now quote all the things that may contain metacharacters while being
15691 # careful not to overquote the AC_SUBSTed values. We take copies of the
15692 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15694 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000015695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15697 deplibs_check_method reload_flag reload_cmds need_locks \
15698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15699 lt_cv_sys_global_symbol_to_c_name_address \
15700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15701 old_postinstall_cmds old_postuninstall_cmds \
15702 compiler_F77 \
15703 CC_F77 \
15704 LD_F77 \
15705 lt_prog_compiler_wl_F77 \
15706 lt_prog_compiler_pic_F77 \
15707 lt_prog_compiler_static_F77 \
15708 lt_prog_compiler_no_builtin_flag_F77 \
15709 export_dynamic_flag_spec_F77 \
15710 thread_safe_flag_spec_F77 \
15711 whole_archive_flag_spec_F77 \
15712 enable_shared_with_static_runtimes_F77 \
15713 old_archive_cmds_F77 \
15714 old_archive_from_new_cmds_F77 \
15715 predep_objects_F77 \
15716 postdep_objects_F77 \
15717 predeps_F77 \
15718 postdeps_F77 \
15719 compiler_lib_search_path_F77 \
15720 archive_cmds_F77 \
15721 archive_expsym_cmds_F77 \
15722 postinstall_cmds_F77 \
15723 postuninstall_cmds_F77 \
15724 old_archive_from_expsyms_cmds_F77 \
15725 allow_undefined_flag_F77 \
15726 no_undefined_flag_F77 \
15727 export_symbols_cmds_F77 \
15728 hardcode_libdir_flag_spec_F77 \
15729 hardcode_libdir_flag_spec_ld_F77 \
15730 hardcode_libdir_separator_F77 \
15731 hardcode_automatic_F77 \
15732 module_cmds_F77 \
15733 module_expsym_cmds_F77 \
15734 lt_cv_prog_compiler_c_o_F77 \
15735 exclude_expsyms_F77 \
15736 include_expsyms_F77; do
15737
15738 case $var in
15739 old_archive_cmds_F77 | \
15740 old_archive_from_new_cmds_F77 | \
15741 archive_cmds_F77 | \
15742 archive_expsym_cmds_F77 | \
15743 module_cmds_F77 | \
15744 module_expsym_cmds_F77 | \
15745 old_archive_from_expsyms_cmds_F77 | \
15746 export_symbols_cmds_F77 | \
15747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15748 postinstall_cmds | postuninstall_cmds | \
15749 old_postinstall_cmds | old_postuninstall_cmds | \
15750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15751 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015752 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 +000015753 ;;
15754 *)
15755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15756 ;;
15757 esac
15758 done
15759
15760 case $lt_echo in
15761 *'\$0 --fallback-echo"')
15762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15763 ;;
15764 esac
15765
15766cfgfile="$ofile"
15767
15768 cat <<__EOF__ >> "$cfgfile"
15769# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15770
15771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15772
15773# Shell to use when invoking shell scripts.
15774SHELL=$lt_SHELL
15775
15776# Whether or not to build shared libraries.
15777build_libtool_libs=$enable_shared
15778
15779# Whether or not to build static libraries.
15780build_old_libs=$enable_static
15781
15782# Whether or not to add -lc for building shared libraries.
15783build_libtool_need_lc=$archive_cmds_need_lc_F77
15784
15785# Whether or not to disallow shared libs when runtime libs are static
15786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15787
15788# Whether or not to optimize for fast installation.
15789fast_install=$enable_fast_install
15790
15791# The host system.
15792host_alias=$host_alias
15793host=$host
15794
15795# An echo program that does not interpret backslashes.
15796echo=$lt_echo
15797
15798# The archiver.
15799AR=$lt_AR
15800AR_FLAGS=$lt_AR_FLAGS
15801
15802# A C compiler.
15803LTCC=$lt_LTCC
15804
15805# A language-specific compiler.
15806CC=$lt_compiler_F77
15807
15808# Is the compiler the GNU C compiler?
15809with_gcc=$GCC_F77
15810
15811# An ERE matcher.
15812EGREP=$lt_EGREP
15813
15814# The linker used to build libraries.
15815LD=$lt_LD_F77
15816
15817# Whether we need hard or soft links.
15818LN_S=$lt_LN_S
15819
15820# A BSD-compatible nm program.
15821NM=$lt_NM
15822
15823# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015824STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000015825
15826# Used to examine libraries when file_magic_cmd begins "file"
15827MAGIC_CMD=$MAGIC_CMD
15828
15829# Used on cygwin: DLL creation program.
15830DLLTOOL="$DLLTOOL"
15831
15832# Used on cygwin: object dumper.
15833OBJDUMP="$OBJDUMP"
15834
15835# Used on cygwin: assembler.
15836AS="$AS"
15837
15838# The name of the directory that contains temporary libtool files.
15839objdir=$objdir
15840
15841# How to create reloadable object files.
15842reload_flag=$lt_reload_flag
15843reload_cmds=$lt_reload_cmds
15844
15845# How to pass a linker flag through the compiler.
15846wl=$lt_lt_prog_compiler_wl_F77
15847
15848# Object file suffix (normally "o").
15849objext="$ac_objext"
15850
15851# Old archive suffix (normally "a").
15852libext="$libext"
15853
15854# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015855shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015856
15857# Executable file suffix (normally "").
15858exeext="$exeext"
15859
15860# Additional compiler flags for building library objects.
15861pic_flag=$lt_lt_prog_compiler_pic_F77
15862pic_mode=$pic_mode
15863
15864# What is the maximum length of a command?
15865max_cmd_len=$lt_cv_sys_max_cmd_len
15866
15867# Does compiler simultaneously support -c and -o options?
15868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15869
15870# Must we lock files when doing compilation ?
15871need_locks=$lt_need_locks
15872
15873# Do we need the lib prefix for modules?
15874need_lib_prefix=$need_lib_prefix
15875
15876# Do we need a version for libraries?
15877need_version=$need_version
15878
15879# Whether dlopen is supported.
15880dlopen_support=$enable_dlopen
15881
15882# Whether dlopen of programs is supported.
15883dlopen_self=$enable_dlopen_self
15884
15885# Whether dlopen of statically linked programs is supported.
15886dlopen_self_static=$enable_dlopen_self_static
15887
15888# Compiler flag to prevent dynamic linking.
15889link_static_flag=$lt_lt_prog_compiler_static_F77
15890
15891# Compiler flag to turn off builtin functions.
15892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15893
15894# Compiler flag to allow reflexive dlopens.
15895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15896
15897# Compiler flag to generate shared objects directly from archives.
15898whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15899
15900# Compiler flag to generate thread-safe objects.
15901thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15902
15903# Library versioning type.
15904version_type=$version_type
15905
15906# Format of library name prefix.
15907libname_spec=$lt_libname_spec
15908
15909# List of archive names. First name is the real one, the rest are links.
15910# The last name is the one that the linker finds with -lNAME.
15911library_names_spec=$lt_library_names_spec
15912
15913# The coded name of the library, if different from the real name.
15914soname_spec=$lt_soname_spec
15915
15916# Commands used to build and install an old-style archive.
15917RANLIB=$lt_RANLIB
15918old_archive_cmds=$lt_old_archive_cmds_F77
15919old_postinstall_cmds=$lt_old_postinstall_cmds
15920old_postuninstall_cmds=$lt_old_postuninstall_cmds
15921
15922# Create an old-style archive from a shared archive.
15923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15924
15925# Create a temporary old-style archive to link instead of a shared archive.
15926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15927
15928# Commands used to build and install a shared archive.
15929archive_cmds=$lt_archive_cmds_F77
15930archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15931postinstall_cmds=$lt_postinstall_cmds
15932postuninstall_cmds=$lt_postuninstall_cmds
15933
15934# Commands used to build a loadable module (assumed same as above if empty)
15935module_cmds=$lt_module_cmds_F77
15936module_expsym_cmds=$lt_module_expsym_cmds_F77
15937
15938# Commands to strip libraries.
15939old_striplib=$lt_old_striplib
15940striplib=$lt_striplib
15941
15942# Dependencies to place before the objects being linked to create a
15943# shared library.
15944predep_objects=$lt_predep_objects_F77
15945
15946# Dependencies to place after the objects being linked to create a
15947# shared library.
15948postdep_objects=$lt_postdep_objects_F77
15949
15950# Dependencies to place before the objects being linked to create a
15951# shared library.
15952predeps=$lt_predeps_F77
15953
15954# Dependencies to place after the objects being linked to create a
15955# shared library.
15956postdeps=$lt_postdeps_F77
15957
15958# The library search path used internally by the compiler when linking
15959# a shared library.
15960compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15961
15962# Method to check whether dependent libraries are shared objects.
15963deplibs_check_method=$lt_deplibs_check_method
15964
15965# Command to use when deplibs_check_method == file_magic.
15966file_magic_cmd=$lt_file_magic_cmd
15967
15968# Flag that allows shared libraries with undefined symbols to be built.
15969allow_undefined_flag=$lt_allow_undefined_flag_F77
15970
15971# Flag that forces no undefined symbols.
15972no_undefined_flag=$lt_no_undefined_flag_F77
15973
15974# Commands used to finish a libtool library installation in a directory.
15975finish_cmds=$lt_finish_cmds
15976
15977# Same as above, but a single script fragment to be evaled but not shown.
15978finish_eval=$lt_finish_eval
15979
15980# Take the output of nm and produce a listing of raw symbols and C names.
15981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15982
15983# Transform the output of nm in a proper C declaration
15984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15985
15986# Transform the output of nm in a C name address pair
15987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15988
15989# This is the shared library runtime path variable.
15990runpath_var=$runpath_var
15991
15992# This is the shared library path variable.
15993shlibpath_var=$shlibpath_var
15994
15995# Is shlibpath searched before the hard-coded library search path?
15996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15997
15998# How to hardcode a shared library path into an executable.
15999hardcode_action=$hardcode_action_F77
16000
16001# Whether we should hardcode library paths into libraries.
16002hardcode_into_libs=$hardcode_into_libs
16003
16004# Flag to hardcode \$libdir into a binary during linking.
16005# This must work even if \$libdir does not exist.
16006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16007
16008# If ld is used when linking, flag to hardcode \$libdir into
16009# a binary during linking. This must work even if \$libdir does
16010# not exist.
16011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16012
16013# Whether we need a single -rpath flag with a separated argument.
16014hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16015
16016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16017# resulting binary.
16018hardcode_direct=$hardcode_direct_F77
16019
16020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16021# resulting binary.
16022hardcode_minus_L=$hardcode_minus_L_F77
16023
16024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16025# the resulting binary.
16026hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16027
16028# Set to yes if building a shared library automatically hardcodes DIR into the library
16029# and all subsequent libraries and executables linked against it.
16030hardcode_automatic=$hardcode_automatic_F77
16031
16032# Variables whose values should be saved in libtool wrapper scripts and
16033# restored at relink time.
16034variables_saved_for_relink="$variables_saved_for_relink"
16035
16036# Whether libtool must link a program against all its dependency libraries.
16037link_all_deplibs=$link_all_deplibs_F77
16038
16039# Compile-time system search path for libraries
16040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16041
16042# Run-time system search path for libraries
16043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16044
16045# Fix the shell variable \$srcfile for the compiler.
16046fix_srcfile_path="$fix_srcfile_path_F77"
16047
16048# Set to yes if exported symbols are required.
16049always_export_symbols=$always_export_symbols_F77
16050
16051# The commands to list exported symbols.
16052export_symbols_cmds=$lt_export_symbols_cmds_F77
16053
16054# The commands to extract the exported symbol list from a shared archive.
16055extract_expsyms_cmds=$lt_extract_expsyms_cmds
16056
16057# Symbols that should not be listed in the preloaded symbols.
16058exclude_expsyms=$lt_exclude_expsyms_F77
16059
16060# Symbols that must always be exported.
16061include_expsyms=$lt_include_expsyms_F77
16062
16063# ### END LIBTOOL TAG CONFIG: $tagname
16064
16065__EOF__
16066
16067
16068else
16069 # If there is no Makefile yet, we rely on a make rule to execute
16070 # `config.status --recheck' to rerun these tests and create the
16071 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16073 if test -f "$ltmain_in"; then
16074 test -f Makefile && make "$ltmain"
16075 fi
John Criswell47fdd832003-07-14 16:52:07 +000016076fi
16077
16078
16079ac_ext=c
16080ac_cpp='$CPP $CPPFLAGS'
16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084
16085CC="$lt_save_CC"
16086
16087 else
16088 tagname=""
16089 fi
16090 ;;
16091
16092 GCJ)
16093 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016094 ac_ext=c
16095ac_cpp='$CPP $CPPFLAGS'
16096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16098ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000016099
16100
16101# Source file extension for Java test sources.
16102ac_ext=java
16103
16104# Object file extension for compiled Java test sources.
16105objext=o
16106objext_GCJ=$objext
16107
16108# Code to be used in simple compile tests
16109lt_simple_compile_test_code="class foo {}\n"
16110
16111# Code to be used in simple link tests
16112lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16113
16114# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16115
16116# If no C compiler was specified, use CC.
16117LTCC=${LTCC-"$CC"}
16118
16119# Allow CC to be a program name with arguments.
16120compiler=$CC
16121
16122
16123# Allow CC to be a program name with arguments.
16124lt_save_CC="$CC"
16125CC=${GCJ-"gcj"}
16126compiler=$CC
16127compiler_GCJ=$CC
16128
16129# GCJ did not exist at the time GCC didn't implicitly link libc in.
16130archive_cmds_need_lc_GCJ=no
16131
John Criswell47fdd832003-07-14 16:52:07 +000016132
16133lt_prog_compiler_no_builtin_flag_GCJ=
16134
16135if test "$GCC" = yes; then
16136 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16137
Reid Spencer2706f8c2004-09-19 23:53:36 +000016138
16139echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016140echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16141if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16143else
16144 lt_cv_prog_compiler_rtti_exceptions=no
16145 ac_outfile=conftest.$ac_objext
16146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16147 lt_compiler_flag="-fno-rtti -fno-exceptions"
16148 # Insert the option either (1) after the last *FLAGS variable, or
16149 # (2) before a word containing "conftest.", or (3) at the end.
16150 # Note that $ac_compile itself does not contain backslashes and begins
16151 # with a dollar sign (not a hyphen), so the echo should work correctly.
16152 # The option is referenced via a variable to avoid confusing sed.
16153 lt_compile=`echo "$ac_compile" | $SED \
16154 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016157 (eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016158 (eval "$lt_compile" 2>conftest.err)
16159 ac_status=$?
16160 cat conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016161 echo "$as_me:16161: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016162 if (exit $ac_status) && test -s "$ac_outfile"; then
16163 # The compiler can only warn and ignore the option if not recognized
16164 # So say no if there are warnings
16165 if test ! -s conftest.err; then
16166 lt_cv_prog_compiler_rtti_exceptions=yes
16167 fi
16168 fi
16169 $rm conftest*
16170
16171fi
16172echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16173echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16174
16175if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16176 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16177else
16178 :
16179fi
16180
16181fi
16182
16183lt_prog_compiler_wl_GCJ=
16184lt_prog_compiler_pic_GCJ=
16185lt_prog_compiler_static_GCJ=
16186
16187echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16188echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16189
16190 if test "$GCC" = yes; then
16191 lt_prog_compiler_wl_GCJ='-Wl,'
16192 lt_prog_compiler_static_GCJ='-static'
16193
16194 case $host_os in
16195 aix*)
16196 # All AIX code is PIC.
16197 if test "$host_cpu" = ia64; then
16198 # AIX 5 now supports IA64 processor
16199 lt_prog_compiler_static_GCJ='-Bstatic'
16200 fi
16201 ;;
16202
16203 amigaos*)
16204 # FIXME: we need at least 68020 code to build shared libraries, but
16205 # adding the `-m68020' flag to GCC prevents building anything better,
16206 # like `-m68040'.
16207 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16208 ;;
16209
16210 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16211 # PIC is the default for these OSes.
16212 ;;
16213
16214 mingw* | pw32* | os2*)
16215 # This hack is so that the source file can tell whether it is being
16216 # built for inclusion in a dll (and should export symbols for example).
16217 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16218 ;;
16219
16220 darwin* | rhapsody*)
16221 # PIC is the default on this platform
16222 # Common symbols not allowed in MH_DYLIB files
16223 lt_prog_compiler_pic_GCJ='-fno-common'
16224 ;;
16225
16226 msdosdjgpp*)
16227 # Just because we use GCC doesn't mean we suddenly get shared libraries
16228 # on systems that don't support them.
16229 lt_prog_compiler_can_build_shared_GCJ=no
16230 enable_shared=no
16231 ;;
16232
16233 sysv4*MP*)
16234 if test -d /usr/nec; then
16235 lt_prog_compiler_pic_GCJ=-Kconform_pic
16236 fi
16237 ;;
16238
16239 hpux*)
16240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16241 # not for PA HP-UX.
16242 case "$host_cpu" in
16243 hppa*64*|ia64*)
16244 # +Z the default
16245 ;;
16246 *)
16247 lt_prog_compiler_pic_GCJ='-fPIC'
16248 ;;
16249 esac
16250 ;;
16251
16252 *)
16253 lt_prog_compiler_pic_GCJ='-fPIC'
16254 ;;
16255 esac
16256 else
16257 # PORTME Check for flag to pass linker flags through the system compiler.
16258 case $host_os in
16259 aix*)
16260 lt_prog_compiler_wl_GCJ='-Wl,'
16261 if test "$host_cpu" = ia64; then
16262 # AIX 5 now supports IA64 processor
16263 lt_prog_compiler_static_GCJ='-Bstatic'
16264 else
16265 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16266 fi
16267 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016268 darwin*)
16269 # PIC is the default on this platform
16270 # Common symbols not allowed in MH_DYLIB files
16271 case "$cc_basename" in
16272 xlc*)
16273 lt_prog_compiler_pic_GCJ='-qnocommon'
16274 lt_prog_compiler_wl_GCJ='-Wl,'
16275 ;;
16276 esac
16277 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016278
16279 mingw* | pw32* | os2*)
16280 # This hack is so that the source file can tell whether it is being
16281 # built for inclusion in a dll (and should export symbols for example).
16282 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16283 ;;
16284
16285 hpux9* | hpux10* | hpux11*)
16286 lt_prog_compiler_wl_GCJ='-Wl,'
16287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16288 # not for PA HP-UX.
16289 case "$host_cpu" in
16290 hppa*64*|ia64*)
16291 # +Z the default
16292 ;;
16293 *)
16294 lt_prog_compiler_pic_GCJ='+Z'
16295 ;;
16296 esac
16297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16298 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16299 ;;
16300
16301 irix5* | irix6* | nonstopux*)
16302 lt_prog_compiler_wl_GCJ='-Wl,'
16303 # PIC (with -KPIC) is the default.
16304 lt_prog_compiler_static_GCJ='-non_shared'
16305 ;;
16306
16307 newsos6)
16308 lt_prog_compiler_pic_GCJ='-KPIC'
16309 lt_prog_compiler_static_GCJ='-Bstatic'
16310 ;;
16311
16312 linux*)
16313 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016314 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000016315 lt_prog_compiler_wl_GCJ='-Wl,'
16316 lt_prog_compiler_pic_GCJ='-KPIC'
16317 lt_prog_compiler_static_GCJ='-static'
16318 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016319 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000016320 lt_prog_compiler_wl_GCJ='-Wl,'
16321 # All Alpha code is PIC.
16322 lt_prog_compiler_static_GCJ='-non_shared'
16323 ;;
16324 esac
16325 ;;
16326
16327 osf3* | osf4* | osf5*)
16328 lt_prog_compiler_wl_GCJ='-Wl,'
16329 # All OSF/1 code is PIC.
16330 lt_prog_compiler_static_GCJ='-non_shared'
16331 ;;
16332
16333 sco3.2v5*)
16334 lt_prog_compiler_pic_GCJ='-Kpic'
16335 lt_prog_compiler_static_GCJ='-dn'
16336 ;;
16337
16338 solaris*)
16339 lt_prog_compiler_wl_GCJ='-Wl,'
16340 lt_prog_compiler_pic_GCJ='-KPIC'
16341 lt_prog_compiler_static_GCJ='-Bstatic'
16342 ;;
16343
16344 sunos4*)
16345 lt_prog_compiler_wl_GCJ='-Qoption ld '
16346 lt_prog_compiler_pic_GCJ='-PIC'
16347 lt_prog_compiler_static_GCJ='-Bstatic'
16348 ;;
16349
16350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16351 lt_prog_compiler_wl_GCJ='-Wl,'
16352 lt_prog_compiler_pic_GCJ='-KPIC'
16353 lt_prog_compiler_static_GCJ='-Bstatic'
16354 ;;
16355
16356 sysv4*MP*)
16357 if test -d /usr/nec ;then
16358 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16359 lt_prog_compiler_static_GCJ='-Bstatic'
16360 fi
16361 ;;
16362
16363 uts4*)
16364 lt_prog_compiler_pic_GCJ='-pic'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16366 ;;
16367
16368 *)
16369 lt_prog_compiler_can_build_shared_GCJ=no
16370 ;;
16371 esac
16372 fi
16373
16374echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16375echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16376
16377#
16378# Check to make sure the PIC flag actually works.
16379#
16380if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016381
16382echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016383echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16384if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16386else
16387 lt_prog_compiler_pic_works_GCJ=no
16388 ac_outfile=conftest.$ac_objext
16389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16390 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16391 # Insert the option either (1) after the last *FLAGS variable, or
16392 # (2) before a word containing "conftest.", or (3) at the end.
16393 # Note that $ac_compile itself does not contain backslashes and begins
16394 # with a dollar sign (not a hyphen), so the echo should work correctly.
16395 # The option is referenced via a variable to avoid confusing sed.
16396 lt_compile=`echo "$ac_compile" | $SED \
16397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16399 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016400 (eval echo "\"\$as_me:16400: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016401 (eval "$lt_compile" 2>conftest.err)
16402 ac_status=$?
16403 cat conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016404 echo "$as_me:16404: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016405 if (exit $ac_status) && test -s "$ac_outfile"; then
16406 # The compiler can only warn and ignore the option if not recognized
16407 # So say no if there are warnings
16408 if test ! -s conftest.err; then
16409 lt_prog_compiler_pic_works_GCJ=yes
16410 fi
16411 fi
16412 $rm conftest*
16413
16414fi
16415echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16416echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16417
16418if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16419 case $lt_prog_compiler_pic_GCJ in
16420 "" | " "*) ;;
16421 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16422 esac
16423else
16424 lt_prog_compiler_pic_GCJ=
16425 lt_prog_compiler_can_build_shared_GCJ=no
16426fi
16427
16428fi
16429case "$host_os" in
16430 # For platforms which do not support PIC, -DPIC is meaningless:
16431 *djgpp*)
16432 lt_prog_compiler_pic_GCJ=
16433 ;;
16434 *)
16435 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16436 ;;
16437esac
16438
16439echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16440echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16441if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 lt_cv_prog_compiler_c_o_GCJ=no
16445 $rm -r conftest 2>/dev/null
16446 mkdir conftest
16447 cd conftest
16448 mkdir out
16449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16450
John Criswell47fdd832003-07-14 16:52:07 +000016451 lt_compiler_flag="-o out/conftest2.$ac_objext"
16452 # Insert the option either (1) after the last *FLAGS variable, or
16453 # (2) before a word containing "conftest.", or (3) at the end.
16454 # Note that $ac_compile itself does not contain backslashes and begins
16455 # with a dollar sign (not a hyphen), so the echo should work correctly.
16456 lt_compile=`echo "$ac_compile" | $SED \
16457 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016461 (eval "$lt_compile" 2>out/conftest.err)
16462 ac_status=$?
16463 cat out/conftest.err >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016464 echo "$as_me:16464: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16466 then
16467 # The compiler can only warn and ignore the option if not recognized
16468 # So say no if there are warnings
16469 if test ! -s out/conftest.err; then
16470 lt_cv_prog_compiler_c_o_GCJ=yes
16471 fi
16472 fi
16473 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016474 $rm conftest*
16475 # SGI C++ compiler will create directory out/ii_files/ for
16476 # template instantiation
16477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16478 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016479 cd ..
16480 rmdir conftest
16481 $rm conftest*
16482
16483fi
16484echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16485echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16486
16487
16488hard_links="nottested"
16489if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16490 # do not overwrite the value of need_locks provided by the user
16491 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16492echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16493 hard_links=yes
16494 $rm conftest*
16495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16496 touch conftest.a
16497 ln conftest.a conftest.b 2>&5 || hard_links=no
16498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16499 echo "$as_me:$LINENO: result: $hard_links" >&5
16500echo "${ECHO_T}$hard_links" >&6
16501 if test "$hard_links" = no; then
16502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16503echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16504 need_locks=warn
16505 fi
16506else
16507 need_locks=no
16508fi
16509
16510echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16511echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16512
16513 runpath_var=
16514 allow_undefined_flag_GCJ=
16515 enable_shared_with_static_runtimes_GCJ=no
16516 archive_cmds_GCJ=
16517 archive_expsym_cmds_GCJ=
16518 old_archive_From_new_cmds_GCJ=
16519 old_archive_from_expsyms_cmds_GCJ=
16520 export_dynamic_flag_spec_GCJ=
16521 whole_archive_flag_spec_GCJ=
16522 thread_safe_flag_spec_GCJ=
16523 hardcode_libdir_flag_spec_GCJ=
16524 hardcode_libdir_flag_spec_ld_GCJ=
16525 hardcode_libdir_separator_GCJ=
16526 hardcode_direct_GCJ=no
16527 hardcode_minus_L_GCJ=no
16528 hardcode_shlibpath_var_GCJ=unsupported
16529 link_all_deplibs_GCJ=unknown
16530 hardcode_automatic_GCJ=no
16531 module_cmds_GCJ=
16532 module_expsym_cmds_GCJ=
16533 always_export_symbols_GCJ=no
16534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16535 # include_expsyms should be a list of space-separated symbols to be *always*
16536 # included in the symbol list
16537 include_expsyms_GCJ=
16538 # exclude_expsyms can be an extended regexp of symbols to exclude
16539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16541 # as well as any symbol that contains `d'.
16542 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16544 # platforms (ab)use it in PIC code, but their linkers get confused if
16545 # the symbol is explicitly referenced. Since portable code cannot
16546 # rely on this symbol name, it's probably fine to never include it in
16547 # preloaded symbol tables.
16548 extract_expsyms_cmds=
16549
16550 case $host_os in
16551 cygwin* | mingw* | pw32*)
16552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16553 # When not using gcc, we currently assume that we are using
16554 # Microsoft Visual C++.
16555 if test "$GCC" != yes; then
16556 with_gnu_ld=no
16557 fi
16558 ;;
16559 openbsd*)
16560 with_gnu_ld=no
16561 ;;
16562 esac
16563
16564 ld_shlibs_GCJ=yes
16565 if test "$with_gnu_ld" = yes; then
16566 # If archive_cmds runs LD, not CC, wlarc should be empty
16567 wlarc='${wl}'
16568
16569 # See if GNU ld supports shared libraries.
16570 case $host_os in
16571 aix3* | aix4* | aix5*)
16572 # On AIX/PPC, the GNU linker is very broken
16573 if test "$host_cpu" != ia64; then
16574 ld_shlibs_GCJ=no
16575 cat <<EOF 1>&2
16576
16577*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16578*** to be unable to reliably create shared libraries on AIX.
16579*** Therefore, libtool is disabling shared libraries support. If you
16580*** really care for shared libraries, you may want to modify your PATH
16581*** so that a non-GNU linker is found, and then restart.
16582
16583EOF
16584 fi
16585 ;;
16586
16587 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016588 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 +000016589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16590 hardcode_minus_L_GCJ=yes
16591
16592 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16593 # that the semantics of dynamic libraries on AmigaOS, at least up
16594 # to version 4, is to share data among multiple programs linked
16595 # with the same dynamic library. Since this doesn't match the
16596 # behavior of shared libraries on other platforms, we can't use
16597 # them.
16598 ld_shlibs_GCJ=no
16599 ;;
16600
16601 beos*)
16602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16603 allow_undefined_flag_GCJ=unsupported
16604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16605 # support --undefined. This deserves some investigation. FIXME
16606 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16607 else
16608 ld_shlibs_GCJ=no
16609 fi
16610 ;;
16611
16612 cygwin* | mingw* | pw32*)
16613 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16614 # as there is no search path for DLLs.
16615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616 allow_undefined_flag_GCJ=unsupported
16617 always_export_symbols_GCJ=no
16618 enable_shared_with_static_runtimes_GCJ=yes
16619 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16620
16621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16623 # If the export-symbols file already is a .def file (1st line
16624 # is EXPORTS), use it as is; otherwise, prepend...
16625 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16626 cp $export_symbols $output_objdir/$soname.def;
16627 else
16628 echo EXPORTS > $output_objdir/$soname.def;
16629 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000016630 fi~
16631 $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 +000016632 else
16633 ld_shlibs=no
16634 fi
16635 ;;
16636
16637 netbsd*)
16638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16639 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16640 wlarc=
16641 else
16642 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16644 fi
16645 ;;
16646
16647 solaris* | sysv5*)
16648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16649 ld_shlibs_GCJ=no
16650 cat <<EOF 1>&2
16651
16652*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16653*** create shared libraries on Solaris systems. Therefore, libtool
16654*** is disabling shared libraries support. We urge you to upgrade GNU
16655*** binutils to release 2.9.1 or newer. Another option is to modify
16656*** your PATH or compiler configuration so that the native linker is
16657*** used, and then restart.
16658
16659EOF
16660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16661 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16662 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16663 else
16664 ld_shlibs_GCJ=no
16665 fi
16666 ;;
16667
16668 sunos4*)
16669 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670 wlarc=
16671 hardcode_direct_GCJ=yes
16672 hardcode_shlibpath_var_GCJ=no
16673 ;;
16674
Reid Spencer2706f8c2004-09-19 23:53:36 +000016675 linux*)
16676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16677 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16678 archive_cmds_GCJ="$tmp_archive_cmds"
16679 supports_anon_versioning=no
16680 case `$LD -v 2>/dev/null` in
16681 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16684 *\ 2.11.*) ;; # other 2.11 versions
16685 *) supports_anon_versioning=yes ;;
16686 esac
16687 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016688 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16689cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16690$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000016691 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16692 else
16693 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16694 fi
16695 else
16696 ld_shlibs_GCJ=no
16697 fi
16698 ;;
16699
John Criswell47fdd832003-07-14 16:52:07 +000016700 *)
16701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16703 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16704 else
16705 ld_shlibs_GCJ=no
16706 fi
16707 ;;
16708 esac
16709
16710 if test "$ld_shlibs_GCJ" = yes; then
16711 runpath_var=LD_RUN_PATH
16712 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16713 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16714 # ancient GNU ld didn't support --whole-archive et. al.
16715 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16716 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16717 else
16718 whole_archive_flag_spec_GCJ=
16719 fi
16720 fi
16721 else
16722 # PORTME fill in a description of your system's linker (not GNU ld)
16723 case $host_os in
16724 aix3*)
16725 allow_undefined_flag_GCJ=unsupported
16726 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000016727 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 +000016728 # Note: this linker hardcodes the directories in LIBPATH if there
16729 # are no directories specified by -L.
16730 hardcode_minus_L_GCJ=yes
16731 if test "$GCC" = yes && test -z "$link_static_flag"; then
16732 # Neither direct hardcoding nor static linking is supported with a
16733 # broken collect2.
16734 hardcode_direct_GCJ=unsupported
16735 fi
16736 ;;
16737
16738 aix4* | aix5*)
16739 if test "$host_cpu" = ia64; then
16740 # On IA64, the linker does run time linking by default, so we don't
16741 # have to do anything special.
16742 aix_use_runtimelinking=no
16743 exp_sym_flag='-Bexport'
16744 no_entry_flag=""
16745 else
16746 # If we're using GNU nm, then we don't want the "-C" option.
16747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16749 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'
16750 else
16751 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'
16752 fi
16753 aix_use_runtimelinking=no
16754
16755 # Test if we are trying to use run time linking or normal
16756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16757 # need to do runtime linking.
16758 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16759 for ld_flag in $LDFLAGS; do
16760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16761 aix_use_runtimelinking=yes
16762 break
16763 fi
16764 done
16765 esac
16766
16767 exp_sym_flag='-bexport'
16768 no_entry_flag='-bnoentry'
16769 fi
16770
16771 # When large executables or shared objects are built, AIX ld can
16772 # have problems creating the table of contents. If linking a library
16773 # or program results in "error TOC overflow" add -mminimal-toc to
16774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16776
16777 archive_cmds_GCJ=''
16778 hardcode_direct_GCJ=yes
16779 hardcode_libdir_separator_GCJ=':'
16780 link_all_deplibs_GCJ=yes
16781
16782 if test "$GCC" = yes; then
16783 case $host_os in aix4.012|aix4.012.*)
16784 # We only want to do this on AIX 4.2 and lower, the check
16785 # below for broken collect2 doesn't work under 4.3+
16786 collect2name=`${CC} -print-prog-name=collect2`
16787 if test -f "$collect2name" && \
16788 strings "$collect2name" | grep resolve_lib_name >/dev/null
16789 then
16790 # We have reworked collect2
16791 hardcode_direct_GCJ=yes
16792 else
16793 # We have old collect2
16794 hardcode_direct_GCJ=unsupported
16795 # It fails to find uninstalled libraries when the uninstalled
16796 # path is not listed in the libpath. Setting hardcode_minus_L
16797 # to unsupported forces relinking
16798 hardcode_minus_L_GCJ=yes
16799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16800 hardcode_libdir_separator_GCJ=
16801 fi
16802 esac
16803 shared_flag='-shared'
16804 else
16805 # not using gcc
16806 if test "$host_cpu" = ia64; then
16807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16808 # chokes on -Wl,-G. The following line is correct:
16809 shared_flag='-G'
16810 else
16811 if test "$aix_use_runtimelinking" = yes; then
16812 shared_flag='${wl}-G'
16813 else
16814 shared_flag='${wl}-bM:SRE'
16815 fi
16816 fi
16817 fi
16818
16819 # It seems that -bexpall does not export symbols beginning with
16820 # underscore (_), so it is better to generate a list of symbols to export.
16821 always_export_symbols_GCJ=yes
16822 if test "$aix_use_runtimelinking" = yes; then
16823 # Warning - without using the other runtime loading flags (-brtl),
16824 # -berok will link without error, but may produce a broken library.
16825 allow_undefined_flag_GCJ='-berok'
16826 # Determine the default libpath from the value encoded in an empty executable.
16827 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016833
John Criswell47fdd832003-07-14 16:52:07 +000016834int
16835main ()
16836{
16837
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext conftest$ac_exeext
16843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016844 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016851 { ac_try='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864
16865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16866}'`
16867# Check for a 64-bit object if we didn't find anything.
16868if 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; }
16869}'`; fi
16870else
16871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016872sed 's/^/| /' conftest.$ac_ext >&5
16873
John Criswell47fdd832003-07-14 16:52:07 +000016874fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016875rm -f conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16878
16879 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16880 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"
16881 else
16882 if test "$host_cpu" = ia64; then
16883 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16884 allow_undefined_flag_GCJ="-z nodefs"
16885 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"
16886 else
16887 # Determine the default libpath from the value encoded in an empty executable.
16888 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016894
John Criswell47fdd832003-07-14 16:52:07 +000016895int
16896main ()
16897{
16898
16899 ;
16900 return 0;
16901}
16902_ACEOF
16903rm -f conftest.$ac_objext conftest$ac_exeext
16904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016905 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016912 { ac_try='test -z "$ac_c_werror_flag"
16913 || test ! -s conftest.err'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925
16926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16927}'`
16928# Check for a 64-bit object if we didn't find anything.
16929if 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; }
16930}'`; fi
16931else
16932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016933sed 's/^/| /' conftest.$ac_ext >&5
16934
John Criswell47fdd832003-07-14 16:52:07 +000016935fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016936rm -f conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16939
16940 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16941 # Warning - without using the other run time loading flags,
16942 # -berok will link without error, but may produce a broken library.
16943 no_undefined_flag_GCJ=' ${wl}-bernotok'
16944 allow_undefined_flag_GCJ=' ${wl}-berok'
16945 # -bexpall does not export symbols beginning with underscore (_)
16946 always_export_symbols_GCJ=yes
16947 # Exported symbols can be pulled into shared objects from archives
16948 whole_archive_flag_spec_GCJ=' '
16949 archive_cmds_need_lc_GCJ=yes
16950 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016951 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 +000016952 fi
16953 fi
16954 ;;
16955
16956 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016957 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 +000016958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16959 hardcode_minus_L_GCJ=yes
16960 # see comment about different semantics on the GNU ld section
16961 ld_shlibs_GCJ=no
16962 ;;
16963
Reid Spencer2706f8c2004-09-19 23:53:36 +000016964 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016965 export_dynamic_flag_spec_GCJ=-rdynamic
16966 ;;
16967
16968 cygwin* | mingw* | pw32*)
16969 # When not using gcc, we currently assume that we are using
16970 # Microsoft Visual C++.
16971 # hardcode_libdir_flag_spec is actually meaningless, as there is
16972 # no search path for DLLs.
16973 hardcode_libdir_flag_spec_GCJ=' '
16974 allow_undefined_flag_GCJ=unsupported
16975 # Tell ltmain to make .lib files, not .a files.
16976 libext=lib
16977 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016978 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016979 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000016980 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 +000016981 # The linker will automatically build a .lib file if we build a DLL.
16982 old_archive_From_new_cmds_GCJ='true'
16983 # FIXME: Should let the user specify the lib program.
16984 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16985 fix_srcfile_path='`cygpath -w "$srcfile"`'
16986 enable_shared_with_static_runtimes_GCJ=yes
16987 ;;
16988
16989 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016990 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016991 rhapsody* | darwin1.[012])
16992 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16993 ;;
16994 *) # Darwin 1.3 on
16995 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16996 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16997 else
16998 case ${MACOSX_DEPLOYMENT_TARGET} in
16999 10.[012])
17000 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17001 ;;
17002 10.*)
17003 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17004 ;;
17005 esac
17006 fi
17007 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017008 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000017009 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000017010 hardcode_direct_GCJ=no
17011 hardcode_automatic_GCJ=yes
17012 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000017013 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000017014 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017015 if test "$GCC" = yes ; then
17016 output_verbose_link_cmd='echo'
17017 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17018 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17019 # 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 +000017020 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}'
17021 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 +000017022 else
17023 case "$cc_basename" in
17024 xlc*)
17025 output_verbose_link_cmd='echo'
17026 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17027 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17028 # 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 +000017029 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}'
17030 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 +000017031 ;;
17032 *)
17033 ld_shlibs_GCJ=no
17034 ;;
17035 esac
John Criswell47fdd832003-07-14 16:52:07 +000017036 fi
17037 ;;
17038
17039 dgux*)
17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042 hardcode_shlibpath_var_GCJ=no
17043 ;;
17044
17045 freebsd1*)
17046 ld_shlibs_GCJ=no
17047 ;;
17048
17049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17050 # support. Future versions do this automatically, but an explicit c++rt0.o
17051 # does not break anything, and helps significantly (at the cost of a little
17052 # extra space).
17053 freebsd2.2*)
17054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17056 hardcode_direct_GCJ=yes
17057 hardcode_shlibpath_var_GCJ=no
17058 ;;
17059
17060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17061 freebsd2*)
17062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_direct_GCJ=yes
17064 hardcode_minus_L_GCJ=yes
17065 hardcode_shlibpath_var_GCJ=no
17066 ;;
17067
17068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017069 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000017070 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17072 hardcode_direct_GCJ=yes
17073 hardcode_shlibpath_var_GCJ=no
17074 ;;
17075
17076 hpux9*)
17077 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017078 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 +000017079 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017080 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 +000017081 fi
17082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17083 hardcode_libdir_separator_GCJ=:
17084 hardcode_direct_GCJ=yes
17085
17086 # hardcode_minus_L: Not really in the search PATH,
17087 # but as the default location of the library.
17088 hardcode_minus_L_GCJ=yes
17089 export_dynamic_flag_spec_GCJ='${wl}-E'
17090 ;;
17091
17092 hpux10* | hpux11*)
17093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17094 case "$host_cpu" in
17095 hppa*64*|ia64*)
17096 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 ;;
17098 *)
17099 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17100 ;;
17101 esac
17102 else
17103 case "$host_cpu" in
17104 hppa*64*|ia64*)
17105 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 ;;
17107 *)
17108 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17109 ;;
17110 esac
17111 fi
17112 if test "$with_gnu_ld" = no; then
17113 case "$host_cpu" in
17114 hppa*64*)
17115 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17116 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17117 hardcode_libdir_separator_GCJ=:
17118 hardcode_direct_GCJ=no
17119 hardcode_shlibpath_var_GCJ=no
17120 ;;
17121 ia64*)
17122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17123 hardcode_direct_GCJ=no
17124 hardcode_shlibpath_var_GCJ=no
17125
17126 # hardcode_minus_L: Not really in the search PATH,
17127 # but as the default location of the library.
17128 hardcode_minus_L_GCJ=yes
17129 ;;
17130 *)
17131 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17132 hardcode_libdir_separator_GCJ=:
17133 hardcode_direct_GCJ=yes
17134 export_dynamic_flag_spec_GCJ='${wl}-E'
17135
17136 # hardcode_minus_L: Not really in the search PATH,
17137 # but as the default location of the library.
17138 hardcode_minus_L_GCJ=yes
17139 ;;
17140 esac
17141 fi
17142 ;;
17143
17144 irix5* | irix6* | nonstopux*)
17145 if test "$GCC" = yes; then
17146 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'
17147 else
17148 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'
17149 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17150 fi
17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152 hardcode_libdir_separator_GCJ=:
17153 link_all_deplibs_GCJ=yes
17154 ;;
17155
17156 netbsd*)
17157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17159 else
17160 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17161 fi
17162 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17163 hardcode_direct_GCJ=yes
17164 hardcode_shlibpath_var_GCJ=no
17165 ;;
17166
17167 newsos6)
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=yes
17170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17171 hardcode_libdir_separator_GCJ=:
17172 hardcode_shlibpath_var_GCJ=no
17173 ;;
17174
17175 openbsd*)
17176 hardcode_direct_GCJ=yes
17177 hardcode_shlibpath_var_GCJ=no
17178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017180 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 +000017181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17182 export_dynamic_flag_spec_GCJ='${wl}-E'
17183 else
17184 case $host_os in
17185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17186 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17188 ;;
17189 *)
17190 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17192 ;;
17193 esac
17194 fi
17195 ;;
17196
17197 os2*)
17198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17199 hardcode_minus_L_GCJ=yes
17200 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000017201 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 +000017202 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17203 ;;
17204
17205 osf3*)
17206 if test "$GCC" = yes; then
17207 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17208 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'
17209 else
17210 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17211 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'
17212 fi
17213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17214 hardcode_libdir_separator_GCJ=:
17215 ;;
17216
17217 osf4* | osf5*) # as osf3* with the addition of -msym flag
17218 if test "$GCC" = yes; then
17219 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17220 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'
17221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17222 else
17223 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17224 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 +000017225 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~
17226 $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'
17227
John Criswell47fdd832003-07-14 16:52:07 +000017228 # Both c and cxx compiler support -rpath directly
17229 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17230 fi
17231 hardcode_libdir_separator_GCJ=:
17232 ;;
17233
17234 sco3.2v5*)
17235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17236 hardcode_shlibpath_var_GCJ=no
17237 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17238 runpath_var=LD_RUN_PATH
17239 hardcode_runpath_var=yes
17240 ;;
17241
17242 solaris*)
17243 no_undefined_flag_GCJ=' -z text'
17244 if test "$GCC" = yes; then
17245 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017246 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17247 $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 +000017248 else
17249 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017250 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17251 $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 +000017252 fi
17253 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254 hardcode_shlibpath_var_GCJ=no
17255 case $host_os in
17256 solaris2.[0-5] | solaris2.[0-5].*) ;;
17257 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17258 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17259 esac
17260 link_all_deplibs_GCJ=yes
17261 ;;
17262
17263 sunos4*)
17264 if test "x$host_vendor" = xsequent; then
17265 # Use $CC to link under sequent, because it throws in some extra .o
17266 # files that make .init and .fini sections work.
17267 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17268 else
17269 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17270 fi
17271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272 hardcode_direct_GCJ=yes
17273 hardcode_minus_L_GCJ=yes
17274 hardcode_shlibpath_var_GCJ=no
17275 ;;
17276
17277 sysv4)
17278 case $host_vendor in
17279 sni)
17280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17281 hardcode_direct_GCJ=yes # is this really true???
17282 ;;
17283 siemens)
17284 ## LD is ld it makes a PLAMLIB
17285 ## CC just makes a GrossModule.
17286 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17287 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17288 hardcode_direct_GCJ=no
17289 ;;
17290 motorola)
17291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17292 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17293 ;;
17294 esac
17295 runpath_var='LD_RUN_PATH'
17296 hardcode_shlibpath_var_GCJ=no
17297 ;;
17298
17299 sysv4.3*)
17300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17301 hardcode_shlibpath_var_GCJ=no
17302 export_dynamic_flag_spec_GCJ='-Bexport'
17303 ;;
17304
17305 sysv4*MP*)
17306 if test -d /usr/nec; then
17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_shlibpath_var_GCJ=no
17309 runpath_var=LD_RUN_PATH
17310 hardcode_runpath_var=yes
17311 ld_shlibs_GCJ=yes
17312 fi
17313 ;;
17314
17315 sysv4.2uw2*)
17316 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17317 hardcode_direct_GCJ=yes
17318 hardcode_minus_L_GCJ=no
17319 hardcode_shlibpath_var_GCJ=no
17320 hardcode_runpath_var=yes
17321 runpath_var=LD_RUN_PATH
17322 ;;
17323
17324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17325 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17326 if test "$GCC" = yes; then
17327 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 else
17329 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 fi
17331 runpath_var='LD_RUN_PATH'
17332 hardcode_shlibpath_var_GCJ=no
17333 ;;
17334
17335 sysv5*)
17336 no_undefined_flag_GCJ=' -z text'
17337 # $CC -shared without GNU ld will not create a library from C++
17338 # object files and a static libstdc++, better avoid it by now
17339 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017340 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17341 $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 +000017342 hardcode_libdir_flag_spec_GCJ=
17343 hardcode_shlibpath_var_GCJ=no
17344 runpath_var='LD_RUN_PATH'
17345 ;;
17346
17347 uts4*)
17348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350 hardcode_shlibpath_var_GCJ=no
17351 ;;
17352
17353 *)
17354 ld_shlibs_GCJ=no
17355 ;;
17356 esac
17357 fi
17358
17359echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17360echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17361test "$ld_shlibs_GCJ" = no && can_build_shared=no
17362
17363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17364if test "$GCC" = yes; then
17365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17366fi
17367
17368#
17369# Do we need to explicitly link libc?
17370#
17371case "x$archive_cmds_need_lc_GCJ" in
17372x|xyes)
17373 # Assume -lc should be added
17374 archive_cmds_need_lc_GCJ=yes
17375
17376 if test "$enable_shared" = yes && test "$GCC" = yes; then
17377 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017378 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017379 # FIXME: we may have to deal with multi-command sequences.
17380 ;;
17381 '$CC '*)
17382 # Test whether the compiler implicitly links with -lc since on some
17383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17384 # to ld, don't add -lc before -lgcc.
17385 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17386echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17387 $rm conftest*
17388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17389
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } 2>conftest.err; then
17395 soname=conftest
17396 lib=conftest
17397 libobjs=conftest.$ac_objext
17398 deplibs=
17399 wl=$lt_prog_compiler_wl_GCJ
17400 compiler_flags=-v
17401 linker_flags=-v
17402 verstring=
17403 output_objdir=.
17404 libname=conftest
17405 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17406 allow_undefined_flag_GCJ=
17407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17408 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }
17412 then
17413 archive_cmds_need_lc_GCJ=no
17414 else
17415 archive_cmds_need_lc_GCJ=yes
17416 fi
17417 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17418 else
17419 cat conftest.err 1>&5
17420 fi
17421 $rm conftest*
17422 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17423echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17424 ;;
17425 esac
17426 fi
17427 ;;
17428esac
17429
John Criswell47fdd832003-07-14 16:52:07 +000017430echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17431echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17432library_names_spec=
17433libname_spec='lib$name'
17434soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017435shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017436postinstall_cmds=
17437postuninstall_cmds=
17438finish_cmds=
17439finish_eval=
17440shlibpath_var=
17441shlibpath_overrides_runpath=unknown
17442version_type=none
17443dynamic_linker="$host_os ld.so"
17444sys_lib_dlsearch_path_spec="/lib /usr/lib"
17445if test "$GCC" = yes; then
17446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17448 # if the path contains ";" then we assume it to be the separator
17449 # otherwise default to the standard path separator (i.e. ":") - it is
17450 # assumed that no part of a normal pathname contains ";" but that should
17451 # okay in the real world where ";" in dirpaths is itself problematic.
17452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17453 else
17454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17455 fi
17456else
17457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17458fi
17459need_lib_prefix=unknown
17460hardcode_into_libs=no
17461
17462# when you set need_version to no, make sure it does not cause -set_version
17463# flags to be left without arguments
17464need_version=unknown
17465
17466case $host_os in
17467aix3*)
17468 version_type=linux
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17470 shlibpath_var=LIBPATH
17471
17472 # AIX 3 has no versioning support, so we append a major version to the name.
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 ;;
17475
17476aix4* | aix5*)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
17480 hardcode_into_libs=yes
17481 if test "$host_cpu" = ia64; then
17482 # AIX 5 supports IA64
17483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 else
17486 # With GCC up to 2.95.x, collect2 would create an import file
17487 # for dependence libraries. The import file would start with
17488 # the line `#! .'. This would cause the generated library to
17489 # depend on `.', always an invalid library. This was fixed in
17490 # development snapshots of GCC prior to 3.0.
17491 case $host_os in
17492 aix4 | aix4.[01] | aix4.[01].*)
17493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17494 echo ' yes '
17495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17496 :
17497 else
17498 can_build_shared=no
17499 fi
17500 ;;
17501 esac
17502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17503 # soname into executable. Probably we can add versioning support to
17504 # collect2, so additional links can be useful in future.
17505 if test "$aix_use_runtimelinking" = yes; then
17506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17507 # instead of lib<name>.a to let people know that these are not
17508 # typical AIX shared libraries.
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 else
17511 # We preserve .a as extension for shared libraries through AIX4.2
17512 # and later when we are not doing run time linking.
17513 library_names_spec='${libname}${release}.a $libname.a'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 fi
17516 shlibpath_var=LIBPATH
17517 fi
17518 ;;
17519
17520amigaos*)
17521 library_names_spec='$libname.ixlibrary $libname.a'
17522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017523 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 +000017524 ;;
17525
17526beos*)
17527 library_names_spec='${libname}${shared_ext}'
17528 dynamic_linker="$host_os ld.so"
17529 shlibpath_var=LIBRARY_PATH
17530 ;;
17531
Reid Spencer2706f8c2004-09-19 23:53:36 +000017532bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017533 version_type=linux
17534 need_version=no
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536 soname_spec='${libname}${release}${shared_ext}$major'
17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17541 # the default ld.so.conf also contains /usr/contrib/lib and
17542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17543 # libtool to hard-code these into programs
17544 ;;
17545
17546cygwin* | mingw* | pw32*)
17547 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017549 need_version=no
17550 need_lib_prefix=no
17551
17552 case $GCC,$host_os in
17553 yes,cygwin* | yes,mingw* | yes,pw32*)
17554 library_names_spec='$libname.dll.a'
17555 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017556 postinstall_cmds='base_file=`basename \${file}`~
17557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17558 dldir=$destdir/`dirname \$dlpath`~
17559 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017560 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17562 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017563 $rm \$dlpath'
17564 shlibpath_overrides_runpath=yes
17565
17566 case $host_os in
17567 cygwin*)
17568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17569 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 +000017570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017571 ;;
17572 mingw*)
17573 # MinGW DLLs use traditional 'lib' prefix
17574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17577 # It is most probably a Windows format PATH printed by
17578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17579 # path with ; separators, and with drive letters. We can handle the
17580 # drive letters (cygwin fileutils understands them), so leave them,
17581 # especially as we might pass files found there to a mingw objdump,
17582 # which wouldn't understand a cygwinified path. Ahh.
17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17584 else
17585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17586 fi
17587 ;;
17588 pw32*)
17589 # pw32 DLLs use 'pw' prefix rather than 'lib'
17590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17591 ;;
17592 esac
17593 ;;
17594
17595 *)
17596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17597 ;;
17598 esac
17599 dynamic_linker='Win32 ld.exe'
17600 # FIXME: first we should search . and the directory the executable is in
17601 shlibpath_var=PATH
17602 ;;
17603
17604darwin* | rhapsody*)
17605 dynamic_linker="$host_os dyld"
17606 version_type=darwin
17607 need_lib_prefix=no
17608 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017610 soname_spec='${libname}${release}${major}$shared_ext'
17611 shlibpath_overrides_runpath=yes
17612 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017613 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615 if test "$GCC" = yes; then
17616 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"`
17617 else
17618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017619 fi
17620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17621 ;;
17622
17623dgux*)
17624 version_type=linux
17625 need_lib_prefix=no
17626 need_version=no
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17628 soname_spec='${libname}${release}${shared_ext}$major'
17629 shlibpath_var=LD_LIBRARY_PATH
17630 ;;
17631
17632freebsd1*)
17633 dynamic_linker=no
17634 ;;
17635
Reid Spencer2706f8c2004-09-19 23:53:36 +000017636kfreebsd*-gnu)
17637 version_type=linux
17638 need_lib_prefix=no
17639 need_version=no
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 shlibpath_overrides_runpath=no
17644 hardcode_into_libs=yes
17645 dynamic_linker='GNU ld.so'
17646 ;;
17647
John Criswell47fdd832003-07-14 16:52:07 +000017648freebsd*)
17649 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17650 version_type=freebsd-$objformat
17651 case $version_type in
17652 freebsd-elf*)
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17654 need_version=no
17655 need_lib_prefix=no
17656 ;;
17657 freebsd-*)
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17659 need_version=yes
17660 ;;
17661 esac
17662 shlibpath_var=LD_LIBRARY_PATH
17663 case $host_os in
17664 freebsd2*)
17665 shlibpath_overrides_runpath=yes
17666 ;;
17667 freebsd3.01* | freebsdelf3.01*)
17668 shlibpath_overrides_runpath=yes
17669 hardcode_into_libs=yes
17670 ;;
17671 *) # from 3.2 on
17672 shlibpath_overrides_runpath=no
17673 hardcode_into_libs=yes
17674 ;;
17675 esac
17676 ;;
17677
17678gnu*)
17679 version_type=linux
17680 need_lib_prefix=no
17681 need_version=no
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 hardcode_into_libs=yes
17686 ;;
17687
17688hpux9* | hpux10* | hpux11*)
17689 # Give a soname corresponding to the major version so that dld.sl refuses to
17690 # link against other versions.
17691 version_type=sunos
17692 need_lib_prefix=no
17693 need_version=no
17694 case "$host_cpu" in
17695 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017697 hardcode_into_libs=yes
17698 dynamic_linker="$host_os dld.so"
17699 shlibpath_var=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702 soname_spec='${libname}${release}${shared_ext}$major'
17703 if test "X$HPUX_IA64_MODE" = X32; then
17704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17705 else
17706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17707 fi
17708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17709 ;;
17710 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017711 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017712 hardcode_into_libs=yes
17713 dynamic_linker="$host_os dld.sl"
17714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17720 ;;
17721 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017722 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017723 dynamic_linker="$host_os dld.sl"
17724 shlibpath_var=SHLIB_PATH
17725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 ;;
17729 esac
17730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17731 postinstall_cmds='chmod 555 $lib'
17732 ;;
17733
17734irix5* | irix6* | nonstopux*)
17735 case $host_os in
17736 nonstopux*) version_type=nonstopux ;;
17737 *)
17738 if test "$lt_cv_prog_gnu_ld" = yes; then
17739 version_type=linux
17740 else
17741 version_type=irix
17742 fi ;;
17743 esac
17744 need_lib_prefix=no
17745 need_version=no
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17748 case $host_os in
17749 irix5* | nonstopux*)
17750 libsuff= shlibsuff=
17751 ;;
17752 *)
17753 case $LD in # libtool.m4 will add one of these switches to LD
17754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17755 libsuff= shlibsuff= libmagic=32-bit;;
17756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17757 libsuff=32 shlibsuff=N32 libmagic=N32;;
17758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17760 *) libsuff= shlibsuff= libmagic=never-match;;
17761 esac
17762 ;;
17763 esac
17764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17765 shlibpath_overrides_runpath=no
17766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17768 hardcode_into_libs=yes
17769 ;;
17770
17771# No shared lib support for Linux oldld, aout, or coff.
17772linux*oldld* | linux*aout* | linux*coff*)
17773 dynamic_linker=no
17774 ;;
17775
17776# This must be Linux ELF.
17777linux*)
17778 version_type=linux
17779 need_lib_prefix=no
17780 need_version=no
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782 soname_spec='${libname}${release}${shared_ext}$major'
17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=no
17786 # This implies no fast_install, which is unacceptable.
17787 # Some rework will be needed to allow for fast_install
17788 # before this can be enabled.
17789 hardcode_into_libs=yes
17790
Reid Spencer2706f8c2004-09-19 23:53:36 +000017791 # Append ld.so.conf contents to the search path
17792 if test -f /etc/ld.so.conf; then
17793 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17795 fi
17796
John Criswell47fdd832003-07-14 16:52:07 +000017797 # We used to test for /lib/ld.so.1 and disable shared libraries on
17798 # powerpc, because MkLinux only supported shared libraries with the
17799 # GNU dynamic linker. Since this was broken with cross compilers,
17800 # most powerpc-linux boxes support dynamic linking these days and
17801 # people can always --disable-shared, the test was removed, and we
17802 # assume the GNU/Linux dynamic linker is in use.
17803 dynamic_linker='GNU/Linux ld.so'
17804 ;;
17805
Reid Spencer2706f8c2004-09-19 23:53:36 +000017806knetbsd*-gnu)
17807 version_type=linux
17808 need_lib_prefix=no
17809 need_version=no
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath=no
17814 hardcode_into_libs=yes
17815 dynamic_linker='GNU ld.so'
17816 ;;
17817
John Criswell47fdd832003-07-14 16:52:07 +000017818netbsd*)
17819 version_type=sunos
17820 need_lib_prefix=no
17821 need_version=no
17822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825 dynamic_linker='NetBSD (a.out) ld.so'
17826 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017828 soname_spec='${libname}${release}${shared_ext}$major'
17829 dynamic_linker='NetBSD ld.elf_so'
17830 fi
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=yes
17833 hardcode_into_libs=yes
17834 ;;
17835
17836newsos6)
17837 version_type=linux
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=yes
17841 ;;
17842
Reid Spencer2706f8c2004-09-19 23:53:36 +000017843nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017844 version_type=linux
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=yes
17851 ;;
17852
17853openbsd*)
17854 version_type=sunos
17855 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017856 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17861 case $host_os in
17862 openbsd2.[89] | openbsd2.[89].*)
17863 shlibpath_overrides_runpath=no
17864 ;;
17865 *)
17866 shlibpath_overrides_runpath=yes
17867 ;;
17868 esac
17869 else
17870 shlibpath_overrides_runpath=yes
17871 fi
17872 ;;
17873
17874os2*)
17875 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017876 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017877 need_lib_prefix=no
17878 library_names_spec='$libname${shared_ext} $libname.a'
17879 dynamic_linker='OS/2 ld.exe'
17880 shlibpath_var=LIBPATH
17881 ;;
17882
17883osf3* | osf4* | osf5*)
17884 version_type=osf
17885 need_lib_prefix=no
17886 need_version=no
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17892 ;;
17893
17894sco3.2v5*)
17895 version_type=osf
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 ;;
17900
17901solaris*)
17902 version_type=linux
17903 need_lib_prefix=no
17904 need_version=no
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17906 soname_spec='${libname}${release}${shared_ext}$major'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 shlibpath_overrides_runpath=yes
17909 hardcode_into_libs=yes
17910 # ldd complains unless libraries are executable
17911 postinstall_cmds='chmod +x $lib'
17912 ;;
17913
17914sunos4*)
17915 version_type=sunos
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=yes
17920 if test "$with_gnu_ld" = yes; then
17921 need_lib_prefix=no
17922 fi
17923 need_version=yes
17924 ;;
17925
17926sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17927 version_type=linux
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 shlibpath_var=LD_LIBRARY_PATH
17931 case $host_vendor in
17932 sni)
17933 shlibpath_overrides_runpath=no
17934 need_lib_prefix=no
17935 export_dynamic_flag_spec='${wl}-Blargedynsym'
17936 runpath_var=LD_RUN_PATH
17937 ;;
17938 siemens)
17939 need_lib_prefix=no
17940 ;;
17941 motorola)
17942 need_lib_prefix=no
17943 need_version=no
17944 shlibpath_overrides_runpath=no
17945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17946 ;;
17947 esac
17948 ;;
17949
17950sysv4*MP*)
17951 if test -d /usr/nec ;then
17952 version_type=linux
17953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17954 soname_spec='$libname${shared_ext}.$major'
17955 shlibpath_var=LD_LIBRARY_PATH
17956 fi
17957 ;;
17958
17959uts4*)
17960 version_type=linux
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 ;;
17965
17966*)
17967 dynamic_linker=no
17968 ;;
17969esac
17970echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17971echo "${ECHO_T}$dynamic_linker" >&6
17972test "$dynamic_linker" = no && can_build_shared=no
17973
Reid Spencer2706f8c2004-09-19 23:53:36 +000017974echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17975echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17976hardcode_action_GCJ=
17977if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17978 test -n "$runpath_var_GCJ" || \
17979 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17980
17981 # We can hardcode non-existant directories.
17982 if test "$hardcode_direct_GCJ" != no &&
17983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17984 # have to relink, otherwise we might link with an installed library
17985 # when we should be linking with a yet-to-be-installed one
17986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17987 test "$hardcode_minus_L_GCJ" != no; then
17988 # Linking always hardcodes the temporary library directory.
17989 hardcode_action_GCJ=relink
17990 else
17991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17992 hardcode_action_GCJ=immediate
17993 fi
17994else
17995 # We cannot hardcode anything, or else we can only hardcode existing
17996 # directories.
17997 hardcode_action_GCJ=unsupported
17998fi
17999echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18000echo "${ECHO_T}$hardcode_action_GCJ" >&6
18001
18002if test "$hardcode_action_GCJ" = relink; then
18003 # Fast installation is not supported
18004 enable_fast_install=no
18005elif test "$shlibpath_overrides_runpath" = yes ||
18006 test "$enable_shared" = no; then
18007 # Fast installation is not necessary
18008 enable_fast_install=needless
18009fi
18010
18011striplib=
18012old_striplib=
18013echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18014echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18015if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18017 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18018 echo "$as_me:$LINENO: result: yes" >&5
18019echo "${ECHO_T}yes" >&6
18020else
18021# FIXME - insert some real tests, host_os isn't really good enough
18022 case $host_os in
18023 darwin*)
18024 if test -n "$STRIP" ; then
18025 striplib="$STRIP -x"
18026 echo "$as_me:$LINENO: result: yes" >&5
18027echo "${ECHO_T}yes" >&6
18028 else
18029 echo "$as_me:$LINENO: result: no" >&5
18030echo "${ECHO_T}no" >&6
18031fi
18032 ;;
18033 *)
18034 echo "$as_me:$LINENO: result: no" >&5
18035echo "${ECHO_T}no" >&6
18036 ;;
18037 esac
18038fi
18039
John Criswell47fdd832003-07-14 16:52:07 +000018040if test "x$enable_dlopen" != xyes; then
18041 enable_dlopen=unknown
18042 enable_dlopen_self=unknown
18043 enable_dlopen_self_static=unknown
18044else
18045 lt_cv_dlopen=no
18046 lt_cv_dlopen_libs=
18047
18048 case $host_os in
18049 beos*)
18050 lt_cv_dlopen="load_add_on"
18051 lt_cv_dlopen_libs=
18052 lt_cv_dlopen_self=yes
18053 ;;
18054
18055 mingw* | pw32*)
18056 lt_cv_dlopen="LoadLibrary"
18057 lt_cv_dlopen_libs=
18058 ;;
18059
18060 cygwin*)
18061 lt_cv_dlopen="dlopen"
18062 lt_cv_dlopen_libs=
18063 ;;
18064
18065 darwin*)
18066 # if libdl is installed we need to link against it
18067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18068echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18069if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 ac_check_lib_save_LIBS=$LIBS
18073LIBS="-ldl $LIBS"
18074cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018075/* confdefs.h. */
18076_ACEOF
18077cat confdefs.h >>conftest.$ac_ext
18078cat >>conftest.$ac_ext <<_ACEOF
18079/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018080
18081/* Override any gcc2 internal prototype to avoid an error. */
18082#ifdef __cplusplus
18083extern "C"
18084#endif
18085/* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18087char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018088int
18089main ()
18090{
18091dlopen ();
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext conftest$ac_exeext
18097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018098 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_lib_dl_dlopen=yes
18119else
18120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018121sed 's/^/| /' conftest.$ac_ext >&5
18122
John Criswell47fdd832003-07-14 16:52:07 +000018123ac_cv_lib_dl_dlopen=no
18124fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018125rm -f conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018127LIBS=$ac_check_lib_save_LIBS
18128fi
18129echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18130echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18131if test $ac_cv_lib_dl_dlopen = yes; then
18132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18133else
18134
18135 lt_cv_dlopen="dyld"
18136 lt_cv_dlopen_libs=
18137 lt_cv_dlopen_self=yes
18138
18139fi
18140
18141 ;;
18142
18143 *)
18144 echo "$as_me:$LINENO: checking for shl_load" >&5
18145echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18146if test "${ac_cv_func_shl_load+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148else
18149 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018150/* confdefs.h. */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018155/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18157#define shl_load innocuous_shl_load
18158
John Criswell47fdd832003-07-14 16:52:07 +000018159/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018160 which can conflict with char shl_load (); below.
18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018163
John Criswell0c38eaf2003-09-10 15:17:25 +000018164#ifdef __STDC__
18165# include <limits.h>
18166#else
18167# include <assert.h>
18168#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018169
18170#undef shl_load
18171
John Criswell47fdd832003-07-14 16:52:07 +000018172/* Override any gcc2 internal prototype to avoid an error. */
18173#ifdef __cplusplus
18174extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018175{
John Criswell47fdd832003-07-14 16:52:07 +000018176#endif
18177/* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018180/* The GNU C library defines this for functions which it implements
18181 to always fail with ENOSYS. Some functions are actually named
18182 something starting with __ and the normal name is an alias. */
18183#if defined (__stub_shl_load) || defined (__stub___shl_load)
18184choke me
18185#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018186char (*f) () = shl_load;
18187#endif
18188#ifdef __cplusplus
18189}
John Criswell47fdd832003-07-14 16:52:07 +000018190#endif
18191
John Criswell0c38eaf2003-09-10 15:17:25 +000018192int
18193main ()
18194{
18195return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000018196 ;
18197 return 0;
18198}
18199_ACEOF
18200rm -f conftest.$ac_objext conftest$ac_exeext
18201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018202 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018209 { ac_try='test -z "$ac_c_werror_flag"
18210 || test ! -s conftest.err'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_func_shl_load=yes
18223else
18224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018225sed 's/^/| /' conftest.$ac_ext >&5
18226
John Criswell47fdd832003-07-14 16:52:07 +000018227ac_cv_func_shl_load=no
18228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018229rm -f conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018231fi
18232echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18233echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18234if test $ac_cv_func_shl_load = yes; then
18235 lt_cv_dlopen="shl_load"
18236else
18237 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18238echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18239if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242 ac_check_lib_save_LIBS=$LIBS
18243LIBS="-ldld $LIBS"
18244cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018245/* confdefs.h. */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018250
18251/* Override any gcc2 internal prototype to avoid an error. */
18252#ifdef __cplusplus
18253extern "C"
18254#endif
18255/* We use char because int might match the return type of a gcc2
18256 builtin and then its argument prototype would still apply. */
18257char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018258int
18259main ()
18260{
18261shl_load ();
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext conftest$ac_exeext
18267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018268 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018269 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018275 { ac_try='test -z "$ac_c_werror_flag"
18276 || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_cv_lib_dld_shl_load=yes
18289else
18290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018291sed 's/^/| /' conftest.$ac_ext >&5
18292
John Criswell47fdd832003-07-14 16:52:07 +000018293ac_cv_lib_dld_shl_load=no
18294fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018295rm -f conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018297LIBS=$ac_check_lib_save_LIBS
18298fi
18299echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18300echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18301if test $ac_cv_lib_dld_shl_load = yes; then
18302 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18303else
18304 echo "$as_me:$LINENO: checking for dlopen" >&5
18305echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18306if test "${ac_cv_func_dlopen+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308else
18309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018315/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18317#define dlopen innocuous_dlopen
18318
John Criswell47fdd832003-07-14 16:52:07 +000018319/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018320 which can conflict with char dlopen (); below.
18321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18322 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018323
John Criswell0c38eaf2003-09-10 15:17:25 +000018324#ifdef __STDC__
18325# include <limits.h>
18326#else
18327# include <assert.h>
18328#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018329
18330#undef dlopen
18331
John Criswell47fdd832003-07-14 16:52:07 +000018332/* Override any gcc2 internal prototype to avoid an error. */
18333#ifdef __cplusplus
18334extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018335{
John Criswell47fdd832003-07-14 16:52:07 +000018336#endif
18337/* We use char because int might match the return type of a gcc2
18338 builtin and then its argument prototype would still apply. */
18339char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018340/* The GNU C library defines this for functions which it implements
18341 to always fail with ENOSYS. Some functions are actually named
18342 something starting with __ and the normal name is an alias. */
18343#if defined (__stub_dlopen) || defined (__stub___dlopen)
18344choke me
18345#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018346char (*f) () = dlopen;
18347#endif
18348#ifdef __cplusplus
18349}
John Criswell47fdd832003-07-14 16:52:07 +000018350#endif
18351
John Criswell0c38eaf2003-09-10 15:17:25 +000018352int
18353main ()
18354{
18355return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000018356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext conftest$ac_exeext
18361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018362 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_func_dlopen=yes
18383else
18384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018385sed 's/^/| /' conftest.$ac_ext >&5
18386
John Criswell47fdd832003-07-14 16:52:07 +000018387ac_cv_func_dlopen=no
18388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018389rm -f conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018391fi
18392echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18393echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18394if test $ac_cv_func_dlopen = yes; then
18395 lt_cv_dlopen="dlopen"
18396else
18397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18398echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18399if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401else
18402 ac_check_lib_save_LIBS=$LIBS
18403LIBS="-ldl $LIBS"
18404cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018410
18411/* Override any gcc2 internal prototype to avoid an error. */
18412#ifdef __cplusplus
18413extern "C"
18414#endif
18415/* We use char because int might match the return type of a gcc2
18416 builtin and then its argument prototype would still apply. */
18417char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018418int
18419main ()
18420{
18421dlopen ();
18422 ;
18423 return 0;
18424}
18425_ACEOF
18426rm -f conftest.$ac_objext conftest$ac_exeext
18427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018428 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018429 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018435 { ac_try='test -z "$ac_c_werror_flag"
18436 || test ! -s conftest.err'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_lib_dl_dlopen=yes
18449else
18450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018451sed 's/^/| /' conftest.$ac_ext >&5
18452
John Criswell47fdd832003-07-14 16:52:07 +000018453ac_cv_lib_dl_dlopen=no
18454fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018455rm -f conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018457LIBS=$ac_check_lib_save_LIBS
18458fi
18459echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18460echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18461if test $ac_cv_lib_dl_dlopen = yes; then
18462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18463else
18464 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18465echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18466if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468else
18469 ac_check_lib_save_LIBS=$LIBS
18470LIBS="-lsvld $LIBS"
18471cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018477
18478/* Override any gcc2 internal prototype to avoid an error. */
18479#ifdef __cplusplus
18480extern "C"
18481#endif
18482/* We use char because int might match the return type of a gcc2
18483 builtin and then its argument prototype would still apply. */
18484char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018485int
18486main ()
18487{
18488dlopen ();
18489 ;
18490 return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018495 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018497 grep -v '^ *+' conftest.er1 >conftest.err
18498 rm -f conftest.er1
18499 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018502 { ac_try='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_cv_lib_svld_dlopen=yes
18516else
18517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018518sed 's/^/| /' conftest.$ac_ext >&5
18519
John Criswell47fdd832003-07-14 16:52:07 +000018520ac_cv_lib_svld_dlopen=no
18521fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018522rm -f conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018524LIBS=$ac_check_lib_save_LIBS
18525fi
18526echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18527echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18528if test $ac_cv_lib_svld_dlopen = yes; then
18529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18530else
18531 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18532echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18533if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18535else
18536 ac_check_lib_save_LIBS=$LIBS
18537LIBS="-ldld $LIBS"
18538cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018539/* confdefs.h. */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018544
18545/* Override any gcc2 internal prototype to avoid an error. */
18546#ifdef __cplusplus
18547extern "C"
18548#endif
18549/* We use char because int might match the return type of a gcc2
18550 builtin and then its argument prototype would still apply. */
18551char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018552int
18553main ()
18554{
18555dld_link ();
18556 ;
18557 return 0;
18558}
18559_ACEOF
18560rm -f conftest.$ac_objext conftest$ac_exeext
18561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018562 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018569 { ac_try='test -z "$ac_c_werror_flag"
18570 || test ! -s conftest.err'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_cv_lib_dld_dld_link=yes
18583else
18584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018585sed 's/^/| /' conftest.$ac_ext >&5
18586
John Criswell47fdd832003-07-14 16:52:07 +000018587ac_cv_lib_dld_dld_link=no
18588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018589rm -f conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018591LIBS=$ac_check_lib_save_LIBS
18592fi
18593echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18594echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18595if test $ac_cv_lib_dld_dld_link = yes; then
18596 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18597fi
18598
18599
18600fi
18601
18602
18603fi
18604
18605
18606fi
18607
18608
18609fi
18610
18611
18612fi
18613
18614 ;;
18615 esac
18616
18617 if test "x$lt_cv_dlopen" != xno; then
18618 enable_dlopen=yes
18619 else
18620 enable_dlopen=no
18621 fi
18622
18623 case $lt_cv_dlopen in
18624 dlopen)
18625 save_CPPFLAGS="$CPPFLAGS"
18626 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18627
18628 save_LDFLAGS="$LDFLAGS"
18629 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18630
18631 save_LIBS="$LIBS"
18632 LIBS="$lt_cv_dlopen_libs $LIBS"
18633
18634 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18635echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18636if test "${lt_cv_dlopen_self+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638else
18639 if test "$cross_compiling" = yes; then :
18640 lt_cv_dlopen_self=cross
18641else
18642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18643 lt_status=$lt_dlunknown
18644 cat > conftest.$ac_ext <<EOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018645#line 18645 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018646#include "confdefs.h"
18647
18648#if HAVE_DLFCN_H
18649#include <dlfcn.h>
18650#endif
18651
18652#include <stdio.h>
18653
18654#ifdef RTLD_GLOBAL
18655# define LT_DLGLOBAL RTLD_GLOBAL
18656#else
18657# ifdef DL_GLOBAL
18658# define LT_DLGLOBAL DL_GLOBAL
18659# else
18660# define LT_DLGLOBAL 0
18661# endif
18662#endif
18663
18664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18665 find out it does not work in some platform. */
18666#ifndef LT_DLLAZY_OR_NOW
18667# ifdef RTLD_LAZY
18668# define LT_DLLAZY_OR_NOW RTLD_LAZY
18669# else
18670# ifdef DL_LAZY
18671# define LT_DLLAZY_OR_NOW DL_LAZY
18672# else
18673# ifdef RTLD_NOW
18674# define LT_DLLAZY_OR_NOW RTLD_NOW
18675# else
18676# ifdef DL_NOW
18677# define LT_DLLAZY_OR_NOW DL_NOW
18678# else
18679# define LT_DLLAZY_OR_NOW 0
18680# endif
18681# endif
18682# endif
18683# endif
18684#endif
18685
18686#ifdef __cplusplus
18687extern "C" void exit (int);
18688#endif
18689
18690void fnord() { int i=42;}
18691int main ()
18692{
18693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18694 int status = $lt_dlunknown;
18695
18696 if (self)
18697 {
18698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18700 /* dlclose (self); */
18701 }
18702
18703 exit (status);
18704}
18705EOF
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707 (eval $ac_link) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18711 (./conftest; exit; ) 2>/dev/null
18712 lt_status=$?
18713 case x$lt_status in
18714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18716 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18717 esac
18718 else :
18719 # compilation failed
18720 lt_cv_dlopen_self=no
18721 fi
18722fi
18723rm -fr conftest*
18724
18725
18726fi
18727echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18728echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18729
18730 if test "x$lt_cv_dlopen_self" = xyes; then
18731 LDFLAGS="$LDFLAGS $link_static_flag"
18732 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18733echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18734if test "${lt_cv_dlopen_self_static+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736else
18737 if test "$cross_compiling" = yes; then :
18738 lt_cv_dlopen_self_static=cross
18739else
18740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18741 lt_status=$lt_dlunknown
18742 cat > conftest.$ac_ext <<EOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018743#line 18743 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018744#include "confdefs.h"
18745
18746#if HAVE_DLFCN_H
18747#include <dlfcn.h>
18748#endif
18749
18750#include <stdio.h>
18751
18752#ifdef RTLD_GLOBAL
18753# define LT_DLGLOBAL RTLD_GLOBAL
18754#else
18755# ifdef DL_GLOBAL
18756# define LT_DLGLOBAL DL_GLOBAL
18757# else
18758# define LT_DLGLOBAL 0
18759# endif
18760#endif
18761
18762/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18763 find out it does not work in some platform. */
18764#ifndef LT_DLLAZY_OR_NOW
18765# ifdef RTLD_LAZY
18766# define LT_DLLAZY_OR_NOW RTLD_LAZY
18767# else
18768# ifdef DL_LAZY
18769# define LT_DLLAZY_OR_NOW DL_LAZY
18770# else
18771# ifdef RTLD_NOW
18772# define LT_DLLAZY_OR_NOW RTLD_NOW
18773# else
18774# ifdef DL_NOW
18775# define LT_DLLAZY_OR_NOW DL_NOW
18776# else
18777# define LT_DLLAZY_OR_NOW 0
18778# endif
18779# endif
18780# endif
18781# endif
18782#endif
18783
18784#ifdef __cplusplus
18785extern "C" void exit (int);
18786#endif
18787
18788void fnord() { int i=42;}
18789int main ()
18790{
18791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18792 int status = $lt_dlunknown;
18793
18794 if (self)
18795 {
18796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18797 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18798 /* dlclose (self); */
18799 }
18800
18801 exit (status);
18802}
18803EOF
18804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18805 (eval $ac_link) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18809 (./conftest; exit; ) 2>/dev/null
18810 lt_status=$?
18811 case x$lt_status in
18812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18814 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18815 esac
18816 else :
18817 # compilation failed
18818 lt_cv_dlopen_self_static=no
18819 fi
18820fi
18821rm -fr conftest*
18822
18823
18824fi
18825echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18826echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18827 fi
18828
18829 CPPFLAGS="$save_CPPFLAGS"
18830 LDFLAGS="$save_LDFLAGS"
18831 LIBS="$save_LIBS"
18832 ;;
18833 esac
18834
18835 case $lt_cv_dlopen_self in
18836 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18837 *) enable_dlopen_self=unknown ;;
18838 esac
18839
18840 case $lt_cv_dlopen_self_static in
18841 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18842 *) enable_dlopen_self_static=unknown ;;
18843 esac
18844fi
18845
18846
18847# The else clause should only fire when bootstrapping the
18848# libtool distribution, otherwise you forgot to ship ltmain.sh
18849# with your package, and you will get complaints that there are
18850# no rules to generate ltmain.sh.
18851if test -f "$ltmain"; then
18852 # See if we are running on zsh, and set the options which allow our commands through
18853 # without removal of \ escapes.
18854 if test -n "${ZSH_VERSION+set}" ; then
18855 setopt NO_GLOB_SUBST
18856 fi
18857 # Now quote all the things that may contain metacharacters while being
18858 # careful not to overquote the AC_SUBSTed values. We take copies of the
18859 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018860 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18861 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018862 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18863 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18864 deplibs_check_method reload_flag reload_cmds need_locks \
18865 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18866 lt_cv_sys_global_symbol_to_c_name_address \
18867 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18868 old_postinstall_cmds old_postuninstall_cmds \
18869 compiler_GCJ \
18870 CC_GCJ \
18871 LD_GCJ \
18872 lt_prog_compiler_wl_GCJ \
18873 lt_prog_compiler_pic_GCJ \
18874 lt_prog_compiler_static_GCJ \
18875 lt_prog_compiler_no_builtin_flag_GCJ \
18876 export_dynamic_flag_spec_GCJ \
18877 thread_safe_flag_spec_GCJ \
18878 whole_archive_flag_spec_GCJ \
18879 enable_shared_with_static_runtimes_GCJ \
18880 old_archive_cmds_GCJ \
18881 old_archive_from_new_cmds_GCJ \
18882 predep_objects_GCJ \
18883 postdep_objects_GCJ \
18884 predeps_GCJ \
18885 postdeps_GCJ \
18886 compiler_lib_search_path_GCJ \
18887 archive_cmds_GCJ \
18888 archive_expsym_cmds_GCJ \
18889 postinstall_cmds_GCJ \
18890 postuninstall_cmds_GCJ \
18891 old_archive_from_expsyms_cmds_GCJ \
18892 allow_undefined_flag_GCJ \
18893 no_undefined_flag_GCJ \
18894 export_symbols_cmds_GCJ \
18895 hardcode_libdir_flag_spec_GCJ \
18896 hardcode_libdir_flag_spec_ld_GCJ \
18897 hardcode_libdir_separator_GCJ \
18898 hardcode_automatic_GCJ \
18899 module_cmds_GCJ \
18900 module_expsym_cmds_GCJ \
18901 lt_cv_prog_compiler_c_o_GCJ \
18902 exclude_expsyms_GCJ \
18903 include_expsyms_GCJ; do
18904
18905 case $var in
18906 old_archive_cmds_GCJ | \
18907 old_archive_from_new_cmds_GCJ | \
18908 archive_cmds_GCJ | \
18909 archive_expsym_cmds_GCJ | \
18910 module_cmds_GCJ | \
18911 module_expsym_cmds_GCJ | \
18912 old_archive_from_expsyms_cmds_GCJ | \
18913 export_symbols_cmds_GCJ | \
18914 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18915 postinstall_cmds | postuninstall_cmds | \
18916 old_postinstall_cmds | old_postuninstall_cmds | \
18917 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18918 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018919 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 +000018920 ;;
18921 *)
18922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18923 ;;
18924 esac
18925 done
18926
18927 case $lt_echo in
18928 *'\$0 --fallback-echo"')
18929 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18930 ;;
18931 esac
18932
18933cfgfile="$ofile"
18934
18935 cat <<__EOF__ >> "$cfgfile"
18936# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18937
18938# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18939
18940# Shell to use when invoking shell scripts.
18941SHELL=$lt_SHELL
18942
18943# Whether or not to build shared libraries.
18944build_libtool_libs=$enable_shared
18945
18946# Whether or not to build static libraries.
18947build_old_libs=$enable_static
18948
18949# Whether or not to add -lc for building shared libraries.
18950build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18951
18952# Whether or not to disallow shared libs when runtime libs are static
18953allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18954
18955# Whether or not to optimize for fast installation.
18956fast_install=$enable_fast_install
18957
18958# The host system.
18959host_alias=$host_alias
18960host=$host
18961
18962# An echo program that does not interpret backslashes.
18963echo=$lt_echo
18964
18965# The archiver.
18966AR=$lt_AR
18967AR_FLAGS=$lt_AR_FLAGS
18968
18969# A C compiler.
18970LTCC=$lt_LTCC
18971
18972# A language-specific compiler.
18973CC=$lt_compiler_GCJ
18974
18975# Is the compiler the GNU C compiler?
18976with_gcc=$GCC_GCJ
18977
18978# An ERE matcher.
18979EGREP=$lt_EGREP
18980
18981# The linker used to build libraries.
18982LD=$lt_LD_GCJ
18983
18984# Whether we need hard or soft links.
18985LN_S=$lt_LN_S
18986
18987# A BSD-compatible nm program.
18988NM=$lt_NM
18989
18990# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018991STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018992
18993# Used to examine libraries when file_magic_cmd begins "file"
18994MAGIC_CMD=$MAGIC_CMD
18995
18996# Used on cygwin: DLL creation program.
18997DLLTOOL="$DLLTOOL"
18998
18999# Used on cygwin: object dumper.
19000OBJDUMP="$OBJDUMP"
19001
19002# Used on cygwin: assembler.
19003AS="$AS"
19004
19005# The name of the directory that contains temporary libtool files.
19006objdir=$objdir
19007
19008# How to create reloadable object files.
19009reload_flag=$lt_reload_flag
19010reload_cmds=$lt_reload_cmds
19011
19012# How to pass a linker flag through the compiler.
19013wl=$lt_lt_prog_compiler_wl_GCJ
19014
19015# Object file suffix (normally "o").
19016objext="$ac_objext"
19017
19018# Old archive suffix (normally "a").
19019libext="$libext"
19020
19021# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019022shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019023
19024# Executable file suffix (normally "").
19025exeext="$exeext"
19026
19027# Additional compiler flags for building library objects.
19028pic_flag=$lt_lt_prog_compiler_pic_GCJ
19029pic_mode=$pic_mode
19030
19031# What is the maximum length of a command?
19032max_cmd_len=$lt_cv_sys_max_cmd_len
19033
19034# Does compiler simultaneously support -c and -o options?
19035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19036
19037# Must we lock files when doing compilation ?
19038need_locks=$lt_need_locks
19039
19040# Do we need the lib prefix for modules?
19041need_lib_prefix=$need_lib_prefix
19042
19043# Do we need a version for libraries?
19044need_version=$need_version
19045
19046# Whether dlopen is supported.
19047dlopen_support=$enable_dlopen
19048
19049# Whether dlopen of programs is supported.
19050dlopen_self=$enable_dlopen_self
19051
19052# Whether dlopen of statically linked programs is supported.
19053dlopen_self_static=$enable_dlopen_self_static
19054
19055# Compiler flag to prevent dynamic linking.
19056link_static_flag=$lt_lt_prog_compiler_static_GCJ
19057
19058# Compiler flag to turn off builtin functions.
19059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19060
19061# Compiler flag to allow reflexive dlopens.
19062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19063
19064# Compiler flag to generate shared objects directly from archives.
19065whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19066
19067# Compiler flag to generate thread-safe objects.
19068thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19069
19070# Library versioning type.
19071version_type=$version_type
19072
19073# Format of library name prefix.
19074libname_spec=$lt_libname_spec
19075
19076# List of archive names. First name is the real one, the rest are links.
19077# The last name is the one that the linker finds with -lNAME.
19078library_names_spec=$lt_library_names_spec
19079
19080# The coded name of the library, if different from the real name.
19081soname_spec=$lt_soname_spec
19082
19083# Commands used to build and install an old-style archive.
19084RANLIB=$lt_RANLIB
19085old_archive_cmds=$lt_old_archive_cmds_GCJ
19086old_postinstall_cmds=$lt_old_postinstall_cmds
19087old_postuninstall_cmds=$lt_old_postuninstall_cmds
19088
19089# Create an old-style archive from a shared archive.
19090old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19091
19092# Create a temporary old-style archive to link instead of a shared archive.
19093old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19094
19095# Commands used to build and install a shared archive.
19096archive_cmds=$lt_archive_cmds_GCJ
19097archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19098postinstall_cmds=$lt_postinstall_cmds
19099postuninstall_cmds=$lt_postuninstall_cmds
19100
19101# Commands used to build a loadable module (assumed same as above if empty)
19102module_cmds=$lt_module_cmds_GCJ
19103module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19104
19105# Commands to strip libraries.
19106old_striplib=$lt_old_striplib
19107striplib=$lt_striplib
19108
19109# Dependencies to place before the objects being linked to create a
19110# shared library.
19111predep_objects=$lt_predep_objects_GCJ
19112
19113# Dependencies to place after the objects being linked to create a
19114# shared library.
19115postdep_objects=$lt_postdep_objects_GCJ
19116
19117# Dependencies to place before the objects being linked to create a
19118# shared library.
19119predeps=$lt_predeps_GCJ
19120
19121# Dependencies to place after the objects being linked to create a
19122# shared library.
19123postdeps=$lt_postdeps_GCJ
19124
19125# The library search path used internally by the compiler when linking
19126# a shared library.
19127compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19128
19129# Method to check whether dependent libraries are shared objects.
19130deplibs_check_method=$lt_deplibs_check_method
19131
19132# Command to use when deplibs_check_method == file_magic.
19133file_magic_cmd=$lt_file_magic_cmd
19134
19135# Flag that allows shared libraries with undefined symbols to be built.
19136allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19137
19138# Flag that forces no undefined symbols.
19139no_undefined_flag=$lt_no_undefined_flag_GCJ
19140
19141# Commands used to finish a libtool library installation in a directory.
19142finish_cmds=$lt_finish_cmds
19143
19144# Same as above, but a single script fragment to be evaled but not shown.
19145finish_eval=$lt_finish_eval
19146
19147# Take the output of nm and produce a listing of raw symbols and C names.
19148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19149
19150# Transform the output of nm in a proper C declaration
19151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19152
19153# Transform the output of nm in a C name address pair
19154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19155
19156# This is the shared library runtime path variable.
19157runpath_var=$runpath_var
19158
19159# This is the shared library path variable.
19160shlibpath_var=$shlibpath_var
19161
19162# Is shlibpath searched before the hard-coded library search path?
19163shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19164
19165# How to hardcode a shared library path into an executable.
19166hardcode_action=$hardcode_action_GCJ
19167
19168# Whether we should hardcode library paths into libraries.
19169hardcode_into_libs=$hardcode_into_libs
19170
19171# Flag to hardcode \$libdir into a binary during linking.
19172# This must work even if \$libdir does not exist.
19173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19174
19175# If ld is used when linking, flag to hardcode \$libdir into
19176# a binary during linking. This must work even if \$libdir does
19177# not exist.
19178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19179
19180# Whether we need a single -rpath flag with a separated argument.
19181hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19182
19183# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19184# resulting binary.
19185hardcode_direct=$hardcode_direct_GCJ
19186
19187# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19188# resulting binary.
19189hardcode_minus_L=$hardcode_minus_L_GCJ
19190
19191# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19192# the resulting binary.
19193hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19194
19195# Set to yes if building a shared library automatically hardcodes DIR into the library
19196# and all subsequent libraries and executables linked against it.
19197hardcode_automatic=$hardcode_automatic_GCJ
19198
19199# Variables whose values should be saved in libtool wrapper scripts and
19200# restored at relink time.
19201variables_saved_for_relink="$variables_saved_for_relink"
19202
19203# Whether libtool must link a program against all its dependency libraries.
19204link_all_deplibs=$link_all_deplibs_GCJ
19205
19206# Compile-time system search path for libraries
19207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19208
19209# Run-time system search path for libraries
19210sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19211
19212# Fix the shell variable \$srcfile for the compiler.
19213fix_srcfile_path="$fix_srcfile_path_GCJ"
19214
19215# Set to yes if exported symbols are required.
19216always_export_symbols=$always_export_symbols_GCJ
19217
19218# The commands to list exported symbols.
19219export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19220
19221# The commands to extract the exported symbol list from a shared archive.
19222extract_expsyms_cmds=$lt_extract_expsyms_cmds
19223
19224# Symbols that should not be listed in the preloaded symbols.
19225exclude_expsyms=$lt_exclude_expsyms_GCJ
19226
19227# Symbols that must always be exported.
19228include_expsyms=$lt_include_expsyms_GCJ
19229
19230# ### END LIBTOOL TAG CONFIG: $tagname
19231
19232__EOF__
19233
19234
19235else
19236 # If there is no Makefile yet, we rely on a make rule to execute
19237 # `config.status --recheck' to rerun these tests and create the
19238 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19240 if test -f "$ltmain_in"; then
19241 test -f Makefile && make "$ltmain"
19242 fi
John Criswell47fdd832003-07-14 16:52:07 +000019243fi
19244
19245
19246ac_ext=c
19247ac_cpp='$CPP $CPPFLAGS'
19248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19250ac_compiler_gnu=$ac_cv_c_compiler_gnu
19251
19252CC="$lt_save_CC"
19253
19254 else
19255 tagname=""
19256 fi
19257 ;;
19258
19259 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019260 ac_ext=c
19261ac_cpp='$CPP $CPPFLAGS'
19262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000019265
19266
19267# Source file extension for RC test sources.
19268ac_ext=rc
19269
19270# Object file extension for compiled RC test sources.
19271objext=o
19272objext_RC=$objext
19273
19274# Code to be used in simple compile tests
19275lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19276
19277# Code to be used in simple link tests
19278lt_simple_link_test_code="$lt_simple_compile_test_code"
19279
19280# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19281
19282# If no C compiler was specified, use CC.
19283LTCC=${LTCC-"$CC"}
19284
19285# Allow CC to be a program name with arguments.
19286compiler=$CC
19287
19288
19289# Allow CC to be a program name with arguments.
19290lt_save_CC="$CC"
19291CC=${RC-"windres"}
19292compiler=$CC
19293compiler_RC=$CC
19294lt_cv_prog_compiler_c_o_RC=yes
19295
19296# The else clause should only fire when bootstrapping the
19297# libtool distribution, otherwise you forgot to ship ltmain.sh
19298# with your package, and you will get complaints that there are
19299# no rules to generate ltmain.sh.
19300if test -f "$ltmain"; then
19301 # See if we are running on zsh, and set the options which allow our commands through
19302 # without removal of \ escapes.
19303 if test -n "${ZSH_VERSION+set}" ; then
19304 setopt NO_GLOB_SUBST
19305 fi
19306 # Now quote all the things that may contain metacharacters while being
19307 # careful not to overquote the AC_SUBSTed values. We take copies of the
19308 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19310 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19313 deplibs_check_method reload_flag reload_cmds need_locks \
19314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19315 lt_cv_sys_global_symbol_to_c_name_address \
19316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19317 old_postinstall_cmds old_postuninstall_cmds \
19318 compiler_RC \
19319 CC_RC \
19320 LD_RC \
19321 lt_prog_compiler_wl_RC \
19322 lt_prog_compiler_pic_RC \
19323 lt_prog_compiler_static_RC \
19324 lt_prog_compiler_no_builtin_flag_RC \
19325 export_dynamic_flag_spec_RC \
19326 thread_safe_flag_spec_RC \
19327 whole_archive_flag_spec_RC \
19328 enable_shared_with_static_runtimes_RC \
19329 old_archive_cmds_RC \
19330 old_archive_from_new_cmds_RC \
19331 predep_objects_RC \
19332 postdep_objects_RC \
19333 predeps_RC \
19334 postdeps_RC \
19335 compiler_lib_search_path_RC \
19336 archive_cmds_RC \
19337 archive_expsym_cmds_RC \
19338 postinstall_cmds_RC \
19339 postuninstall_cmds_RC \
19340 old_archive_from_expsyms_cmds_RC \
19341 allow_undefined_flag_RC \
19342 no_undefined_flag_RC \
19343 export_symbols_cmds_RC \
19344 hardcode_libdir_flag_spec_RC \
19345 hardcode_libdir_flag_spec_ld_RC \
19346 hardcode_libdir_separator_RC \
19347 hardcode_automatic_RC \
19348 module_cmds_RC \
19349 module_expsym_cmds_RC \
19350 lt_cv_prog_compiler_c_o_RC \
19351 exclude_expsyms_RC \
19352 include_expsyms_RC; do
19353
19354 case $var in
19355 old_archive_cmds_RC | \
19356 old_archive_from_new_cmds_RC | \
19357 archive_cmds_RC | \
19358 archive_expsym_cmds_RC | \
19359 module_cmds_RC | \
19360 module_expsym_cmds_RC | \
19361 old_archive_from_expsyms_cmds_RC | \
19362 export_symbols_cmds_RC | \
19363 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19364 postinstall_cmds | postuninstall_cmds | \
19365 old_postinstall_cmds | old_postuninstall_cmds | \
19366 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19367 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019368 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 +000019369 ;;
19370 *)
19371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19372 ;;
19373 esac
19374 done
19375
19376 case $lt_echo in
19377 *'\$0 --fallback-echo"')
19378 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19379 ;;
19380 esac
19381
19382cfgfile="$ofile"
19383
19384 cat <<__EOF__ >> "$cfgfile"
19385# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19386
19387# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19388
19389# Shell to use when invoking shell scripts.
19390SHELL=$lt_SHELL
19391
19392# Whether or not to build shared libraries.
19393build_libtool_libs=$enable_shared
19394
19395# Whether or not to build static libraries.
19396build_old_libs=$enable_static
19397
19398# Whether or not to add -lc for building shared libraries.
19399build_libtool_need_lc=$archive_cmds_need_lc_RC
19400
19401# Whether or not to disallow shared libs when runtime libs are static
19402allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19403
19404# Whether or not to optimize for fast installation.
19405fast_install=$enable_fast_install
19406
19407# The host system.
19408host_alias=$host_alias
19409host=$host
19410
19411# An echo program that does not interpret backslashes.
19412echo=$lt_echo
19413
19414# The archiver.
19415AR=$lt_AR
19416AR_FLAGS=$lt_AR_FLAGS
19417
19418# A C compiler.
19419LTCC=$lt_LTCC
19420
19421# A language-specific compiler.
19422CC=$lt_compiler_RC
19423
19424# Is the compiler the GNU C compiler?
19425with_gcc=$GCC_RC
19426
19427# An ERE matcher.
19428EGREP=$lt_EGREP
19429
19430# The linker used to build libraries.
19431LD=$lt_LD_RC
19432
19433# Whether we need hard or soft links.
19434LN_S=$lt_LN_S
19435
19436# A BSD-compatible nm program.
19437NM=$lt_NM
19438
19439# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019440STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019441
19442# Used to examine libraries when file_magic_cmd begins "file"
19443MAGIC_CMD=$MAGIC_CMD
19444
19445# Used on cygwin: DLL creation program.
19446DLLTOOL="$DLLTOOL"
19447
19448# Used on cygwin: object dumper.
19449OBJDUMP="$OBJDUMP"
19450
19451# Used on cygwin: assembler.
19452AS="$AS"
19453
19454# The name of the directory that contains temporary libtool files.
19455objdir=$objdir
19456
19457# How to create reloadable object files.
19458reload_flag=$lt_reload_flag
19459reload_cmds=$lt_reload_cmds
19460
19461# How to pass a linker flag through the compiler.
19462wl=$lt_lt_prog_compiler_wl_RC
19463
19464# Object file suffix (normally "o").
19465objext="$ac_objext"
19466
19467# Old archive suffix (normally "a").
19468libext="$libext"
19469
19470# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019471shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019472
19473# Executable file suffix (normally "").
19474exeext="$exeext"
19475
19476# Additional compiler flags for building library objects.
19477pic_flag=$lt_lt_prog_compiler_pic_RC
19478pic_mode=$pic_mode
19479
19480# What is the maximum length of a command?
19481max_cmd_len=$lt_cv_sys_max_cmd_len
19482
19483# Does compiler simultaneously support -c and -o options?
19484compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19485
19486# Must we lock files when doing compilation ?
19487need_locks=$lt_need_locks
19488
19489# Do we need the lib prefix for modules?
19490need_lib_prefix=$need_lib_prefix
19491
19492# Do we need a version for libraries?
19493need_version=$need_version
19494
19495# Whether dlopen is supported.
19496dlopen_support=$enable_dlopen
19497
19498# Whether dlopen of programs is supported.
19499dlopen_self=$enable_dlopen_self
19500
19501# Whether dlopen of statically linked programs is supported.
19502dlopen_self_static=$enable_dlopen_self_static
19503
19504# Compiler flag to prevent dynamic linking.
19505link_static_flag=$lt_lt_prog_compiler_static_RC
19506
19507# Compiler flag to turn off builtin functions.
19508no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19509
19510# Compiler flag to allow reflexive dlopens.
19511export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19512
19513# Compiler flag to generate shared objects directly from archives.
19514whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19515
19516# Compiler flag to generate thread-safe objects.
19517thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19518
19519# Library versioning type.
19520version_type=$version_type
19521
19522# Format of library name prefix.
19523libname_spec=$lt_libname_spec
19524
19525# List of archive names. First name is the real one, the rest are links.
19526# The last name is the one that the linker finds with -lNAME.
19527library_names_spec=$lt_library_names_spec
19528
19529# The coded name of the library, if different from the real name.
19530soname_spec=$lt_soname_spec
19531
19532# Commands used to build and install an old-style archive.
19533RANLIB=$lt_RANLIB
19534old_archive_cmds=$lt_old_archive_cmds_RC
19535old_postinstall_cmds=$lt_old_postinstall_cmds
19536old_postuninstall_cmds=$lt_old_postuninstall_cmds
19537
19538# Create an old-style archive from a shared archive.
19539old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19540
19541# Create a temporary old-style archive to link instead of a shared archive.
19542old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19543
19544# Commands used to build and install a shared archive.
19545archive_cmds=$lt_archive_cmds_RC
19546archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19547postinstall_cmds=$lt_postinstall_cmds
19548postuninstall_cmds=$lt_postuninstall_cmds
19549
19550# Commands used to build a loadable module (assumed same as above if empty)
19551module_cmds=$lt_module_cmds_RC
19552module_expsym_cmds=$lt_module_expsym_cmds_RC
19553
19554# Commands to strip libraries.
19555old_striplib=$lt_old_striplib
19556striplib=$lt_striplib
19557
19558# Dependencies to place before the objects being linked to create a
19559# shared library.
19560predep_objects=$lt_predep_objects_RC
19561
19562# Dependencies to place after the objects being linked to create a
19563# shared library.
19564postdep_objects=$lt_postdep_objects_RC
19565
19566# Dependencies to place before the objects being linked to create a
19567# shared library.
19568predeps=$lt_predeps_RC
19569
19570# Dependencies to place after the objects being linked to create a
19571# shared library.
19572postdeps=$lt_postdeps_RC
19573
19574# The library search path used internally by the compiler when linking
19575# a shared library.
19576compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19577
19578# Method to check whether dependent libraries are shared objects.
19579deplibs_check_method=$lt_deplibs_check_method
19580
19581# Command to use when deplibs_check_method == file_magic.
19582file_magic_cmd=$lt_file_magic_cmd
19583
19584# Flag that allows shared libraries with undefined symbols to be built.
19585allow_undefined_flag=$lt_allow_undefined_flag_RC
19586
19587# Flag that forces no undefined symbols.
19588no_undefined_flag=$lt_no_undefined_flag_RC
19589
19590# Commands used to finish a libtool library installation in a directory.
19591finish_cmds=$lt_finish_cmds
19592
19593# Same as above, but a single script fragment to be evaled but not shown.
19594finish_eval=$lt_finish_eval
19595
19596# Take the output of nm and produce a listing of raw symbols and C names.
19597global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19598
19599# Transform the output of nm in a proper C declaration
19600global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19601
19602# Transform the output of nm in a C name address pair
19603global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19604
19605# This is the shared library runtime path variable.
19606runpath_var=$runpath_var
19607
19608# This is the shared library path variable.
19609shlibpath_var=$shlibpath_var
19610
19611# Is shlibpath searched before the hard-coded library search path?
19612shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19613
19614# How to hardcode a shared library path into an executable.
19615hardcode_action=$hardcode_action_RC
19616
19617# Whether we should hardcode library paths into libraries.
19618hardcode_into_libs=$hardcode_into_libs
19619
19620# Flag to hardcode \$libdir into a binary during linking.
19621# This must work even if \$libdir does not exist.
19622hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19623
19624# If ld is used when linking, flag to hardcode \$libdir into
19625# a binary during linking. This must work even if \$libdir does
19626# not exist.
19627hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19628
19629# Whether we need a single -rpath flag with a separated argument.
19630hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19631
19632# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19633# resulting binary.
19634hardcode_direct=$hardcode_direct_RC
19635
19636# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19637# resulting binary.
19638hardcode_minus_L=$hardcode_minus_L_RC
19639
19640# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19641# the resulting binary.
19642hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19643
19644# Set to yes if building a shared library automatically hardcodes DIR into the library
19645# and all subsequent libraries and executables linked against it.
19646hardcode_automatic=$hardcode_automatic_RC
19647
19648# Variables whose values should be saved in libtool wrapper scripts and
19649# restored at relink time.
19650variables_saved_for_relink="$variables_saved_for_relink"
19651
19652# Whether libtool must link a program against all its dependency libraries.
19653link_all_deplibs=$link_all_deplibs_RC
19654
19655# Compile-time system search path for libraries
19656sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19657
19658# Run-time system search path for libraries
19659sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19660
19661# Fix the shell variable \$srcfile for the compiler.
19662fix_srcfile_path="$fix_srcfile_path_RC"
19663
19664# Set to yes if exported symbols are required.
19665always_export_symbols=$always_export_symbols_RC
19666
19667# The commands to list exported symbols.
19668export_symbols_cmds=$lt_export_symbols_cmds_RC
19669
19670# The commands to extract the exported symbol list from a shared archive.
19671extract_expsyms_cmds=$lt_extract_expsyms_cmds
19672
19673# Symbols that should not be listed in the preloaded symbols.
19674exclude_expsyms=$lt_exclude_expsyms_RC
19675
19676# Symbols that must always be exported.
19677include_expsyms=$lt_include_expsyms_RC
19678
19679# ### END LIBTOOL TAG CONFIG: $tagname
19680
19681__EOF__
19682
19683
19684else
19685 # If there is no Makefile yet, we rely on a make rule to execute
19686 # `config.status --recheck' to rerun these tests and create the
19687 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019688 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19689 if test -f "$ltmain_in"; then
19690 test -f Makefile && make "$ltmain"
19691 fi
John Criswell47fdd832003-07-14 16:52:07 +000019692fi
19693
19694
19695ac_ext=c
19696ac_cpp='$CPP $CPPFLAGS'
19697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19699ac_compiler_gnu=$ac_cv_c_compiler_gnu
19700
19701CC="$lt_save_CC"
19702
19703 ;;
19704
19705 *)
19706 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19707echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19708 { (exit 1); exit 1; }; }
19709 ;;
19710 esac
19711
19712 # Append the new tag name to the list of available tags.
19713 if test -n "$tagname" ; then
19714 available_tags="$available_tags $tagname"
19715 fi
19716 fi
19717 done
19718 IFS="$lt_save_ifs"
19719
19720 # Now substitute the updated list of available tags.
19721 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19722 mv "${ofile}T" "$ofile"
19723 chmod +x "$ofile"
19724 else
19725 rm -f "${ofile}T"
19726 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19727echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19728 { (exit 1); exit 1; }; }
19729 fi
19730fi
John Criswell7a73b802003-06-30 21:59:07 +000019731
19732
19733
19734# This can be used to rebuild libtool when needed
19735LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19736
19737# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019738LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000019739
19740# Prevent multiple expansion
19741
19742
19743
John Criswell47fdd832003-07-14 16:52:07 +000019744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019761
19762echo "$as_me:$LINENO: checking for GNU make" >&5
19763echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
19764if test "${llvm_cv_gnu_make_command+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766else
19767 llvm_cv_gnu_make_command=''
19768 for a in "$MAKE" make gmake gnumake ; do
19769 if test -z "$a" ; then continue ; fi ;
19770 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
19771 then
19772 llvm_cv_gnu_make_command=$a ;
19773 break;
19774 fi
19775 done
19776fi
19777echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
19778echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
19779 if test "x$llvm_cv_gnu_make_command" != "x" ; then
19780 ifGNUmake='' ;
19781 else
19782 ifGNUmake='#' ;
19783 echo "$as_me:$LINENO: result: \"Not found\"" >&5
19784echo "${ECHO_T}\"Not found\"" >&6;
19785 fi
19786
19787
19788echo "$as_me:$LINENO: checking whether ln -s works" >&5
19789echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19790LN_S=$as_ln_s
19791if test "$LN_S" = "ln -s"; then
19792 echo "$as_me:$LINENO: result: yes" >&5
19793echo "${ECHO_T}yes" >&6
19794else
19795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19796echo "${ECHO_T}no, using $LN_S" >&6
19797fi
19798
19799# Extract the first word of "find", so it can be a program name with args.
19800set dummy find; ac_word=$2
19801echo "$as_me:$LINENO: checking for $ac_word" >&5
19802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19803if test "${ac_cv_path_FIND+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806 case $FIND in
19807 [\\/]* | ?:[\\/]*)
19808 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
19809 ;;
19810 *)
19811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19812for as_dir in $PATH
19813do
19814 IFS=$as_save_IFS
19815 test -z "$as_dir" && as_dir=.
19816 for ac_exec_ext in '' $ac_executable_extensions; do
19817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19818 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
19819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19820 break 2
19821 fi
19822done
19823done
19824
19825 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
19826 ;;
19827esac
19828fi
19829FIND=$ac_cv_path_FIND
19830
19831if test -n "$FIND"; then
19832 echo "$as_me:$LINENO: result: $FIND" >&5
19833echo "${ECHO_T}$FIND" >&6
19834else
19835 echo "$as_me:$LINENO: result: no" >&5
19836echo "${ECHO_T}no" >&6
19837fi
19838
19839# Extract the first word of "grep", so it can be a program name with args.
19840set dummy grep; ac_word=$2
19841echo "$as_me:$LINENO: checking for $ac_word" >&5
19842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19843if test "${ac_cv_path_GREP+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 case $GREP in
19847 [\\/]* | ?:[\\/]*)
19848 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19849 ;;
19850 *)
19851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19852for as_dir in $PATH
19853do
19854 IFS=$as_save_IFS
19855 test -z "$as_dir" && as_dir=.
19856 for ac_exec_ext in '' $ac_executable_extensions; do
19857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19858 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19860 break 2
19861 fi
19862done
19863done
19864
19865 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
19866 ;;
19867esac
19868fi
19869GREP=$ac_cv_path_GREP
19870
19871if test -n "$GREP"; then
19872 echo "$as_me:$LINENO: result: $GREP" >&5
19873echo "${ECHO_T}$GREP" >&6
19874else
19875 echo "$as_me:$LINENO: result: no" >&5
19876echo "${ECHO_T}no" >&6
19877fi
19878
19879# Extract the first word of "mkdir", so it can be a program name with args.
19880set dummy mkdir; ac_word=$2
19881echo "$as_me:$LINENO: checking for $ac_word" >&5
19882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19883if test "${ac_cv_path_MKDIR+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885else
19886 case $MKDIR in
19887 [\\/]* | ?:[\\/]*)
19888 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
19889 ;;
19890 *)
19891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892for as_dir in $PATH
19893do
19894 IFS=$as_save_IFS
19895 test -z "$as_dir" && as_dir=.
19896 for ac_exec_ext in '' $ac_executable_extensions; do
19897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19898 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
19899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19900 break 2
19901 fi
19902done
19903done
19904
19905 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
19906 ;;
19907esac
19908fi
19909MKDIR=$ac_cv_path_MKDIR
19910
19911if test -n "$MKDIR"; then
19912 echo "$as_me:$LINENO: result: $MKDIR" >&5
19913echo "${ECHO_T}$MKDIR" >&6
19914else
19915 echo "$as_me:$LINENO: result: no" >&5
19916echo "${ECHO_T}no" >&6
19917fi
19918
19919# Extract the first word of "mv", so it can be a program name with args.
19920set dummy mv; ac_word=$2
19921echo "$as_me:$LINENO: checking for $ac_word" >&5
19922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19923if test "${ac_cv_path_MV+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925else
19926 case $MV in
19927 [\\/]* | ?:[\\/]*)
19928 ac_cv_path_MV="$MV" # Let the user override the test with a path.
19929 ;;
19930 *)
19931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19932for as_dir in $PATH
19933do
19934 IFS=$as_save_IFS
19935 test -z "$as_dir" && as_dir=.
19936 for ac_exec_ext in '' $ac_executable_extensions; do
19937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19938 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19940 break 2
19941 fi
19942done
19943done
19944
19945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
19946 ;;
19947esac
19948fi
19949MV=$ac_cv_path_MV
19950
19951if test -n "$MV"; then
19952 echo "$as_me:$LINENO: result: $MV" >&5
19953echo "${ECHO_T}$MV" >&6
19954else
19955 echo "$as_me:$LINENO: result: no" >&5
19956echo "${ECHO_T}no" >&6
19957fi
19958
19959if test -n "$ac_tool_prefix"; then
19960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19962echo "$as_me:$LINENO: checking for $ac_word" >&5
19963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19964if test "${ac_cv_prog_RANLIB+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967 if test -n "$RANLIB"; then
19968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19969else
19970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971for as_dir in $PATH
19972do
19973 IFS=$as_save_IFS
19974 test -z "$as_dir" && as_dir=.
19975 for ac_exec_ext in '' $ac_executable_extensions; do
19976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19979 break 2
19980 fi
19981done
19982done
19983
19984fi
19985fi
19986RANLIB=$ac_cv_prog_RANLIB
19987if test -n "$RANLIB"; then
19988 echo "$as_me:$LINENO: result: $RANLIB" >&5
19989echo "${ECHO_T}$RANLIB" >&6
19990else
19991 echo "$as_me:$LINENO: result: no" >&5
19992echo "${ECHO_T}no" >&6
19993fi
19994
19995fi
19996if test -z "$ac_cv_prog_RANLIB"; then
19997 ac_ct_RANLIB=$RANLIB
19998 # Extract the first word of "ranlib", so it can be a program name with args.
19999set dummy ranlib; ac_word=$2
20000echo "$as_me:$LINENO: checking for $ac_word" >&5
20001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20002if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005 if test -n "$ac_ct_RANLIB"; then
20006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20007else
20008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009for as_dir in $PATH
20010do
20011 IFS=$as_save_IFS
20012 test -z "$as_dir" && as_dir=.
20013 for ac_exec_ext in '' $ac_executable_extensions; do
20014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20015 ac_cv_prog_ac_ct_RANLIB="ranlib"
20016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20017 break 2
20018 fi
20019done
20020done
20021
20022 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20023fi
20024fi
20025ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20026if test -n "$ac_ct_RANLIB"; then
20027 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20028echo "${ECHO_T}$ac_ct_RANLIB" >&6
20029else
20030 echo "$as_me:$LINENO: result: no" >&5
20031echo "${ECHO_T}no" >&6
20032fi
20033
20034 RANLIB=$ac_ct_RANLIB
20035else
20036 RANLIB="$ac_cv_prog_RANLIB"
20037fi
20038
20039# Extract the first word of "rm", so it can be a program name with args.
20040set dummy rm; ac_word=$2
20041echo "$as_me:$LINENO: checking for $ac_word" >&5
20042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20043if test "${ac_cv_path_RM+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045else
20046 case $RM in
20047 [\\/]* | ?:[\\/]*)
20048 ac_cv_path_RM="$RM" # Let the user override the test with a path.
20049 ;;
20050 *)
20051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052for as_dir in $PATH
20053do
20054 IFS=$as_save_IFS
20055 test -z "$as_dir" && as_dir=.
20056 for ac_exec_ext in '' $ac_executable_extensions; do
20057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20058 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
20059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20060 break 2
20061 fi
20062done
20063done
20064
20065 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
20066 ;;
20067esac
20068fi
20069RM=$ac_cv_path_RM
20070
20071if test -n "$RM"; then
20072 echo "$as_me:$LINENO: result: $RM" >&5
20073echo "${ECHO_T}$RM" >&6
20074else
20075 echo "$as_me:$LINENO: result: no" >&5
20076echo "${ECHO_T}no" >&6
20077fi
20078
20079# Extract the first word of "sed", so it can be a program name with args.
20080set dummy sed; ac_word=$2
20081echo "$as_me:$LINENO: checking for $ac_word" >&5
20082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20083if test "${ac_cv_path_SED+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085else
20086 case $SED in
20087 [\\/]* | ?:[\\/]*)
20088 ac_cv_path_SED="$SED" # Let the user override the test with a path.
20089 ;;
20090 *)
20091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20092for as_dir in $PATH
20093do
20094 IFS=$as_save_IFS
20095 test -z "$as_dir" && as_dir=.
20096 for ac_exec_ext in '' $ac_executable_extensions; do
20097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20098 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20100 break 2
20101 fi
20102done
20103done
20104
20105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
20106 ;;
20107esac
20108fi
20109SED=$ac_cv_path_SED
20110
20111if test -n "$SED"; then
20112 echo "$as_me:$LINENO: result: $SED" >&5
20113echo "${ECHO_T}$SED" >&6
20114else
20115 echo "$as_me:$LINENO: result: no" >&5
20116echo "${ECHO_T}no" >&6
20117fi
20118
Reid Spencerad354c92004-10-25 08:18:47 +000020119# Extract the first word of "tar", so it can be a program name with args.
20120set dummy tar; ac_word=$2
20121echo "$as_me:$LINENO: checking for $ac_word" >&5
20122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20123if test "${ac_cv_path_TAR+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20125else
20126 case $TAR in
20127 [\\/]* | ?:[\\/]*)
20128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
20129 ;;
20130 *)
20131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20132for as_dir in $PATH
20133do
20134 IFS=$as_save_IFS
20135 test -z "$as_dir" && as_dir=.
20136 for ac_exec_ext in '' $ac_executable_extensions; do
20137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
20139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20140 break 2
20141 fi
20142done
20143done
20144
20145 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
20146 ;;
20147esac
20148fi
20149TAR=$ac_cv_path_TAR
20150
20151if test -n "$TAR"; then
20152 echo "$as_me:$LINENO: result: $TAR" >&5
20153echo "${ECHO_T}$TAR" >&6
20154else
20155 echo "$as_me:$LINENO: result: no" >&5
20156echo "${ECHO_T}no" >&6
20157fi
20158
John Criswell47fdd832003-07-14 16:52:07 +000020159
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020160# Find a good install program. We prefer a C program (faster),
20161# so one script is as good as another. But avoid the broken or
20162# incompatible versions:
20163# SysV /etc/install, /usr/sbin/install
20164# SunOS /usr/etc/install
20165# IRIX /sbin/install
20166# AIX /bin/install
20167# AmigaOS /C/install, which installs bootblocks on floppy discs
20168# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20169# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20170# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20171# OS/2's system install, which has a completely different semantic
20172# ./install, which can be erroneously created by make from ./install.sh.
20173echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20174echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20175if test -z "$INSTALL"; then
20176if test "${ac_cv_path_install+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20180for as_dir in $PATH
20181do
20182 IFS=$as_save_IFS
20183 test -z "$as_dir" && as_dir=.
20184 # Account for people who put trailing slashes in PATH elements.
20185case $as_dir/ in
20186 ./ | .// | /cC/* | \
20187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20189 /usr/ucb/* ) ;;
20190 *)
20191 # OSF1 and SCO ODT 3.0 have their own names for install.
20192 # Don't use installbsd from OSF since it installs stuff as root
20193 # by default.
20194 for ac_prog in ginstall scoinst install; do
20195 for ac_exec_ext in '' $ac_executable_extensions; do
20196 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20197 if test $ac_prog = install &&
20198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20199 # AIX install. It has an incompatible calling convention.
20200 :
20201 elif test $ac_prog = install &&
20202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20203 # program-specific install script used by HP pwplus--don't use.
20204 :
20205 else
20206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20207 break 3
20208 fi
20209 fi
20210 done
20211 done
20212 ;;
20213esac
20214done
20215
20216
20217fi
20218 if test "${ac_cv_path_install+set}" = set; then
20219 INSTALL=$ac_cv_path_install
20220 else
20221 # As a last resort, use the slow shell script. We don't cache a
20222 # path for INSTALL within a source directory, because that will
20223 # break other packages using the cache if that directory is
20224 # removed, or if the path is relative.
20225 INSTALL=$ac_install_sh
20226 fi
20227fi
20228echo "$as_me:$LINENO: result: $INSTALL" >&5
20229echo "${ECHO_T}$INSTALL" >&6
20230
20231# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20232# It thinks the first close brace ends the variable substitution.
20233test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20234
20235test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20236
20237test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20238
20239
John Criswell7a73b802003-06-30 21:59:07 +000020240# Extract the first word of "dot", so it can be a program name with args.
20241set dummy dot; ac_word=$2
20242echo "$as_me:$LINENO: checking for $ac_word" >&5
20243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20244if test "${ac_cv_path_DOT+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20246else
20247 case $DOT in
20248 [\\/]* | ?:[\\/]*)
20249 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20250 ;;
20251 *)
20252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20253for as_dir in $PATH
20254do
20255 IFS=$as_save_IFS
20256 test -z "$as_dir" && as_dir=.
20257 for ac_exec_ext in '' $ac_executable_extensions; do
20258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20259 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20261 break 2
20262 fi
20263done
20264done
20265
Brian Gaeke26be9c52004-01-13 06:43:16 +000020266 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000020267 ;;
20268esac
20269fi
20270DOT=$ac_cv_path_DOT
20271
20272if test -n "$DOT"; then
20273 echo "$as_me:$LINENO: result: $DOT" >&5
20274echo "${ECHO_T}$DOT" >&6
20275else
20276 echo "$as_me:$LINENO: result: no" >&5
20277echo "${ECHO_T}no" >&6
20278fi
20279
20280# Extract the first word of "etags", so it can be a program name with args.
20281set dummy etags; ac_word=$2
20282echo "$as_me:$LINENO: checking for $ac_word" >&5
20283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20284if test "${ac_cv_path_ETAGS+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287 case $ETAGS in
20288 [\\/]* | ?:[\\/]*)
20289 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20290 ;;
20291 *)
20292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20293for as_dir in $PATH
20294do
20295 IFS=$as_save_IFS
20296 test -z "$as_dir" && as_dir=.
20297 for ac_exec_ext in '' $ac_executable_extensions; do
20298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20299 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20301 break 2
20302 fi
20303done
20304done
20305
Brian Gaeke26be9c52004-01-13 06:43:16 +000020306 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000020307 ;;
20308esac
20309fi
20310ETAGS=$ac_cv_path_ETAGS
20311
20312if test -n "$ETAGS"; then
20313 echo "$as_me:$LINENO: result: $ETAGS" >&5
20314echo "${ECHO_T}$ETAGS" >&6
20315else
20316 echo "$as_me:$LINENO: result: no" >&5
20317echo "${ECHO_T}no" >&6
20318fi
20319
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000020320
John Criswellde00db22003-08-25 16:49:54 +000020321# Extract the first word of "python", so it can be a program name with args.
20322set dummy python; ac_word=$2
20323echo "$as_me:$LINENO: checking for $ac_word" >&5
20324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20325if test "${ac_cv_path_PYTHON+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 case $PYTHON in
20329 [\\/]* | ?:[\\/]*)
20330 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20331 ;;
20332 *)
20333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20334for as_dir in $PATH
20335do
20336 IFS=$as_save_IFS
20337 test -z "$as_dir" && as_dir=.
20338 for ac_exec_ext in '' $ac_executable_extensions; do
20339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20340 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20342 break 2
20343 fi
20344done
20345done
20346
Brian Gaeke26be9c52004-01-13 06:43:16 +000020347 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000020348 ;;
20349esac
20350fi
20351PYTHON=$ac_cv_path_PYTHON
20352
20353if test -n "$PYTHON"; then
20354 echo "$as_me:$LINENO: result: $PYTHON" >&5
20355echo "${ECHO_T}$PYTHON" >&6
20356else
20357 echo "$as_me:$LINENO: result: no" >&5
20358echo "${ECHO_T}no" >&6
20359fi
20360
20361# Extract the first word of "qmtest", so it can be a program name with args.
20362set dummy qmtest; ac_word=$2
20363echo "$as_me:$LINENO: checking for $ac_word" >&5
20364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20365if test "${ac_cv_path_QMTEST+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367else
20368 case $QMTEST in
20369 [\\/]* | ?:[\\/]*)
20370 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20371 ;;
20372 *)
20373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20374for as_dir in $PATH
20375do
20376 IFS=$as_save_IFS
20377 test -z "$as_dir" && as_dir=.
20378 for ac_exec_ext in '' $ac_executable_extensions; do
20379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20380 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20382 break 2
20383 fi
20384done
20385done
20386
Brian Gaeke26be9c52004-01-13 06:43:16 +000020387 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000020388 ;;
20389esac
20390fi
20391QMTEST=$ac_cv_path_QMTEST
20392
20393if test -n "$QMTEST"; then
20394 echo "$as_me:$LINENO: result: $QMTEST" >&5
20395echo "${ECHO_T}$QMTEST" >&6
20396else
20397 echo "$as_me:$LINENO: result: no" >&5
20398echo "${ECHO_T}no" >&6
20399fi
20400
Reid Spencer4b8f82f2004-11-07 23:29:39 +000020401# Extract the first word of "runtest", so it can be a program name with args.
20402set dummy runtest; ac_word=$2
20403echo "$as_me:$LINENO: checking for $ac_word" >&5
20404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20405if test "${ac_cv_path_RUNTEST+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407else
20408 case $RUNTEST in
20409 [\\/]* | ?:[\\/]*)
20410 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
20411 ;;
20412 *)
20413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20414for as_dir in $PATH
20415do
20416 IFS=$as_save_IFS
20417 test -z "$as_dir" && as_dir=.
20418 for ac_exec_ext in '' $ac_executable_extensions; do
20419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20420 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
20421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20422 break 2
20423 fi
20424done
20425done
20426
20427 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
20428 ;;
20429esac
20430fi
20431RUNTEST=$ac_cv_path_RUNTEST
20432
20433if test -n "$RUNTEST"; then
20434 echo "$as_me:$LINENO: result: $RUNTEST" >&5
20435echo "${ECHO_T}$RUNTEST" >&6
20436else
20437 echo "$as_me:$LINENO: result: no" >&5
20438echo "${ECHO_T}no" >&6
20439fi
20440
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020441
20442echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
20443echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
20444if test "${llvm_cv_link_use_r+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446else
20447 ac_ext=c
20448ac_cpp='$CPP $CPPFLAGS'
20449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451ac_compiler_gnu=$ac_cv_c_compiler_gnu
20452
20453 oldcflags="$CFLAGS"
20454 CFLAGS="$CFLAGS -Wl,-R."
20455 cat >conftest.$ac_ext <<_ACEOF
20456/* confdefs.h. */
20457_ACEOF
20458cat confdefs.h >>conftest.$ac_ext
20459cat >>conftest.$ac_ext <<_ACEOF
20460/* end confdefs.h. */
20461
20462int
20463main ()
20464{
20465int main() { return 0; }
20466 ;
20467 return 0;
20468}
20469_ACEOF
20470rm -f conftest.$ac_objext conftest$ac_exeext
20471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest$ac_exeext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 llvm_cv_link_use_r=yes
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497llvm_cv_link_use_r=no
20498fi
20499rm -f conftest.err conftest.$ac_objext \
20500 conftest$ac_exeext conftest.$ac_ext
20501 CFLAGS="$oldcflags"
20502 ac_ext=c
20503ac_cpp='$CPP $CPPFLAGS'
20504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508
20509fi
20510echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
20511echo "${ECHO_T}$llvm_cv_link_use_r" >&6
20512if test "$llvm_cv_link_use_r" = yes ; then
20513
20514cat >>confdefs.h <<\_ACEOF
20515#define HAVE_LINK_R 1
20516_ACEOF
20517
20518 fi
20519
20520
20521etags_version=`$ETAGS --version 2>&1`
20522case "$etags_version" in
20523 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20524 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20525 *) ETAGSFLAGS="" ;;
20526esac
20527ETAGSFLAGS=$ETAGSFLAGS
20528
20529
20530echo "$as_me:$LINENO: checking tool compatibility" >&5
20531echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
20532
20533if test "$GCC" != "yes"
20534then
20535 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20536echo "$as_me: error: gcc required but not found" >&2;}
20537 { (exit 1); exit 1; }; }
20538fi
20539if test "$GXX" != "yes"
20540then
20541 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20542echo "$as_me: error: g++ required but not found" >&2;}
20543 { (exit 1); exit 1; }; }
20544fi
20545
20546gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20547if test "$gccmajor" -lt "3"
20548then
20549 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20550echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20551 { (exit 1); exit 1; }; }
20552fi
20553
20554if test -z "$llvm_cv_gnu_make_command"
20555then
20556 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20557echo "$as_me: error: GNU Make required but not found" >&2;}
20558 { (exit 1); exit 1; }; }
20559fi
20560
20561echo "$as_me:$LINENO: result: ok" >&5
20562echo "${ECHO_T}ok" >&6
20563
20564if test "$PYTHON" = "false" ; then
20565 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20566echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20567fi
20568if test "$QMTEST" = "false" ; then
20569 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20570echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20571fi
Reid Spencer4b8f82f2004-11-07 23:29:39 +000020572if test "$RUNTEST" = "false" ; then
20573 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
20574echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
20575fi
John Criswellde00db22003-08-25 16:49:54 +000020576pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20577pymajor=`echo $pyversion | cut -d. -f1`
20578pyminor=`echo $pyversion | cut -d. -f2`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020579if test "$pymajor" -ge "2" ; then
20580 if test "$pymajor" -eq "2" ; then
20581 if test "$pyminor" -lt "2" ; then
20582 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000020583echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020584 fi
20585 fi
John Criswellde00db22003-08-25 16:49:54 +000020586else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020587 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000020588echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000020589fi
John Criswell7a73b802003-06-30 21:59:07 +000020590
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020591echo "$as_me:$LINENO: result: " >&5
20592echo "${ECHO_T}" >&6
20593
20594
John Criswell7a73b802003-06-30 21:59:07 +000020595
John Criswell7a73b802003-06-30 21:59:07 +000020596echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20597echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20598if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600else
20601 ac_check_lib_save_LIBS=$LIBS
20602LIBS="-lelf $LIBS"
20603cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020604/* confdefs.h. */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020609
20610/* Override any gcc2 internal prototype to avoid an error. */
20611#ifdef __cplusplus
20612extern "C"
20613#endif
20614/* We use char because int might match the return type of a gcc2
20615 builtin and then its argument prototype would still apply. */
20616char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000020617int
20618main ()
20619{
20620elf_begin ();
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext conftest$ac_exeext
20626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020627 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020634 { ac_try='test -z "$ac_c_werror_flag"
20635 || test ! -s conftest.err'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; } &&
20641 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000020642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_lib_elf_elf_begin=yes
20648else
20649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020650sed 's/^/| /' conftest.$ac_ext >&5
20651
John Criswell7a73b802003-06-30 21:59:07 +000020652ac_cv_lib_elf_elf_begin=no
20653fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020654rm -f conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020656LIBS=$ac_check_lib_save_LIBS
20657fi
20658echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
20659echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
20660if test $ac_cv_lib_elf_elf_begin = yes; then
20661 cat >>confdefs.h <<_ACEOF
20662#define HAVE_LIBELF 1
20663_ACEOF
20664
20665 LIBS="-lelf $LIBS"
20666
20667fi
20668
20669
Reid Spencer17795972004-11-18 09:47:37 +000020670echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
20671echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
20672if test "${ac_cv_search_lt_dlopen+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675 ac_func_search_save_LIBS=$LIBS
20676ac_cv_search_lt_dlopen=no
20677cat >conftest.$ac_ext <<_ACEOF
20678/* confdefs.h. */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h. */
20683
20684/* Override any gcc2 internal prototype to avoid an error. */
20685#ifdef __cplusplus
20686extern "C"
20687#endif
20688/* We use char because int might match the return type of a gcc2
20689 builtin and then its argument prototype would still apply. */
20690char lt_dlopen ();
20691int
20692main ()
20693{
20694lt_dlopen ();
20695 ;
20696 return 0;
20697}
20698_ACEOF
20699rm -f conftest.$ac_objext conftest$ac_exeext
20700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20701 (eval $ac_link) 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
20708 { ac_try='test -z "$ac_c_werror_flag"
20709 || test ! -s conftest.err'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest$ac_exeext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_cv_search_lt_dlopen="none required"
20722else
20723 echo "$as_me: failed program was:" >&5
20724sed 's/^/| /' conftest.$ac_ext >&5
20725
20726fi
20727rm -f conftest.err conftest.$ac_objext \
20728 conftest$ac_exeext conftest.$ac_ext
20729if test "$ac_cv_search_lt_dlopen" = no; then
20730 for ac_lib in ltdl; do
20731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20732 cat >conftest.$ac_ext <<_ACEOF
20733/* confdefs.h. */
20734_ACEOF
20735cat confdefs.h >>conftest.$ac_ext
20736cat >>conftest.$ac_ext <<_ACEOF
20737/* end confdefs.h. */
20738
20739/* Override any gcc2 internal prototype to avoid an error. */
20740#ifdef __cplusplus
20741extern "C"
20742#endif
20743/* We use char because int might match the return type of a gcc2
20744 builtin and then its argument prototype would still apply. */
20745char lt_dlopen ();
20746int
20747main ()
20748{
20749lt_dlopen ();
20750 ;
20751 return 0;
20752}
20753_ACEOF
20754rm -f conftest.$ac_objext conftest$ac_exeext
20755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest$ac_exeext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_search_lt_dlopen="-l$ac_lib"
20777break
20778else
20779 echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782fi
20783rm -f conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
20785 done
20786fi
20787LIBS=$ac_func_search_save_LIBS
20788fi
20789echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
20790echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
20791if test "$ac_cv_search_lt_dlopen" != no; then
20792 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
20793
20794cat >>confdefs.h <<\_ACEOF
20795#define HAVE_LT_DLOPEN 1
20796_ACEOF
20797
20798else
20799 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
20800 not be available" >&5
20801echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
20802 not be available" >&2;}
20803fi
20804
20805
John Criswell7a73b802003-06-30 21:59:07 +000020806echo "$as_me:$LINENO: checking for library containing dlopen" >&5
20807echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
20808if test "${ac_cv_search_dlopen+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20810else
20811 ac_func_search_save_LIBS=$LIBS
20812ac_cv_search_dlopen=no
20813cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020814/* confdefs.h. */
20815_ACEOF
20816cat confdefs.h >>conftest.$ac_ext
20817cat >>conftest.$ac_ext <<_ACEOF
20818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020819
20820/* Override any gcc2 internal prototype to avoid an error. */
20821#ifdef __cplusplus
20822extern "C"
20823#endif
20824/* We use char because int might match the return type of a gcc2
20825 builtin and then its argument prototype would still apply. */
20826char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000020827int
20828main ()
20829{
20830dlopen ();
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext conftest$ac_exeext
20836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020837 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020838 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020844 { ac_try='test -z "$ac_c_werror_flag"
20845 || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000020852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_search_dlopen="none required"
20858else
20859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020860sed 's/^/| /' conftest.$ac_ext >&5
20861
John Criswell7a73b802003-06-30 21:59:07 +000020862fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020863rm -f conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020865if test "$ac_cv_search_dlopen" = no; then
20866 for ac_lib in dl; do
20867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020874
20875/* Override any gcc2 internal prototype to avoid an error. */
20876#ifdef __cplusplus
20877extern "C"
20878#endif
20879/* We use char because int might match the return type of a gcc2
20880 builtin and then its argument prototype would still apply. */
20881char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000020882int
20883main ()
20884{
20885dlopen ();
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext conftest$ac_exeext
20891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020892 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020899 { ac_try='test -z "$ac_c_werror_flag"
20900 || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000020907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_cv_search_dlopen="-l$ac_lib"
20913break
20914else
20915 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020916sed 's/^/| /' conftest.$ac_ext >&5
20917
John Criswell7a73b802003-06-30 21:59:07 +000020918fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020919rm -f conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020921 done
20922fi
20923LIBS=$ac_func_search_save_LIBS
20924fi
20925echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
20926echo "${ECHO_T}$ac_cv_search_dlopen" >&6
20927if test "$ac_cv_search_dlopen" != no; then
20928 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000020929
20930cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000020931#define HAVE_DLOPEN 1
20932_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020933
20934else
Brian Gaekec45be042003-10-07 06:01:34 +000020935 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
20936echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000020937fi
20938
20939
20940echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
20941echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
20942if test "${ac_cv_search_mallinfo+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945 ac_func_search_save_LIBS=$LIBS
20946ac_cv_search_mallinfo=no
20947cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020948/* confdefs.h. */
20949_ACEOF
20950cat confdefs.h >>conftest.$ac_ext
20951cat >>conftest.$ac_ext <<_ACEOF
20952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020953
20954/* Override any gcc2 internal prototype to avoid an error. */
20955#ifdef __cplusplus
20956extern "C"
20957#endif
20958/* We use char because int might match the return type of a gcc2
20959 builtin and then its argument prototype would still apply. */
20960char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000020961int
20962main ()
20963{
20964mallinfo ();
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969rm -f conftest.$ac_objext conftest$ac_exeext
20970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020971 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020972 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000020986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_search_mallinfo="none required"
20992else
20993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020994sed 's/^/| /' conftest.$ac_ext >&5
20995
John Criswell7a73b802003-06-30 21:59:07 +000020996fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020997rm -f conftest.err conftest.$ac_objext \
20998 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020999if test "$ac_cv_search_mallinfo" = no; then
21000 for ac_lib in malloc; do
21001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021008
21009/* Override any gcc2 internal prototype to avoid an error. */
21010#ifdef __cplusplus
21011extern "C"
21012#endif
21013/* We use char because int might match the return type of a gcc2
21014 builtin and then its argument prototype would still apply. */
21015char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000021016int
21017main ()
21018{
21019mallinfo ();
21020 ;
21021 return 0;
21022}
21023_ACEOF
21024rm -f conftest.$ac_objext conftest$ac_exeext
21025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021026 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021027 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021033 { ac_try='test -z "$ac_c_werror_flag"
21034 || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_cv_search_mallinfo="-l$ac_lib"
21047break
21048else
21049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021050sed 's/^/| /' conftest.$ac_ext >&5
21051
John Criswell7a73b802003-06-30 21:59:07 +000021052fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021053rm -f conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021055 done
21056fi
21057LIBS=$ac_func_search_save_LIBS
21058fi
21059echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21060echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21061if test "$ac_cv_search_mallinfo" != no; then
21062 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000021063
21064cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021065#define HAVE_MALLINFO 1
21066_ACEOF
21067
21068fi
21069
21070
Brian Gaeke5f268f72003-12-05 19:29:01 +000021071echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21072echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21073if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21075else
21076 ac_func_search_save_LIBS=$LIBS
21077ac_cv_search_pthread_mutex_lock=no
21078cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000021079/* confdefs.h. */
21080_ACEOF
21081cat confdefs.h >>conftest.$ac_ext
21082cat >>conftest.$ac_ext <<_ACEOF
21083/* end confdefs.h. */
21084
21085/* Override any gcc2 internal prototype to avoid an error. */
21086#ifdef __cplusplus
21087extern "C"
21088#endif
21089/* We use char because int might match the return type of a gcc2
21090 builtin and then its argument prototype would still apply. */
21091char pthread_mutex_lock ();
21092int
21093main ()
21094{
21095pthread_mutex_lock ();
21096 ;
21097 return 0;
21098}
21099_ACEOF
21100rm -f conftest.$ac_objext conftest$ac_exeext
21101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021102 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000021103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021104 grep -v '^ *+' conftest.er1 >conftest.err
21105 rm -f conftest.er1
21106 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000021107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021109 { ac_try='test -z "$ac_c_werror_flag"
21110 || test ! -s conftest.err'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000021117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_cv_search_pthread_mutex_lock="none required"
21123else
21124 echo "$as_me: failed program was:" >&5
21125sed 's/^/| /' conftest.$ac_ext >&5
21126
21127fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021128rm -f conftest.err conftest.$ac_objext \
21129 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000021130if test "$ac_cv_search_pthread_mutex_lock" = no; then
21131 for ac_lib in pthread; do
21132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21133 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000021134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
21138/* end confdefs.h. */
21139
21140/* Override any gcc2 internal prototype to avoid an error. */
21141#ifdef __cplusplus
21142extern "C"
21143#endif
21144/* We use char because int might match the return type of a gcc2
21145 builtin and then its argument prototype would still apply. */
21146char pthread_mutex_lock ();
21147int
21148main ()
21149{
21150pthread_mutex_lock ();
21151 ;
21152 return 0;
21153}
21154_ACEOF
21155rm -f conftest.$ac_objext conftest$ac_exeext
21156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021157 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000021158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000021162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 { ac_try='test -z "$ac_c_werror_flag"
21165 || test ! -s conftest.err'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; } &&
21171 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000021172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21178break
21179else
21180 echo "$as_me: failed program was:" >&5
21181sed 's/^/| /' conftest.$ac_ext >&5
21182
21183fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021184rm -f conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000021186 done
21187fi
21188LIBS=$ac_func_search_save_LIBS
21189fi
21190echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21191echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21192if test "$ac_cv_search_pthread_mutex_lock" != no; then
21193 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000021194
John Criswell40468462004-09-24 21:19:06 +000021195cat >>confdefs.h <<\_ACEOF
21196#define HAVE_PTHREAD_MUTEX_LOCK 1
21197_ACEOF
21198
21199fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000021200
Brian Gaekec9a410c2004-02-23 21:30:37 +000021201
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021202
John Criswell7a73b802003-06-30 21:59:07 +000021203echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21204echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21205if test "${ac_cv_header_stdc+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21207else
21208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021214#include <stdlib.h>
21215#include <stdarg.h>
21216#include <string.h>
21217#include <float.h>
21218
John Criswell0c38eaf2003-09-10 15:17:25 +000021219int
21220main ()
21221{
21222
21223 ;
21224 return 0;
21225}
John Criswell7a73b802003-06-30 21:59:07 +000021226_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021227rm -f conftest.$ac_objext
21228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021229 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021230 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021235 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021236 { ac_try='test -z "$ac_c_werror_flag"
21237 || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000021244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021249 ac_cv_header_stdc=yes
21250else
21251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000021255fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021257
21258if test $ac_cv_header_stdc = yes; then
21259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21260 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021261/* confdefs.h. */
21262_ACEOF
21263cat confdefs.h >>conftest.$ac_ext
21264cat >>conftest.$ac_ext <<_ACEOF
21265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021266#include <string.h>
21267
21268_ACEOF
21269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021270 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021271 :
21272else
21273 ac_cv_header_stdc=no
21274fi
21275rm -f conftest*
21276
21277fi
21278
21279if test $ac_cv_header_stdc = yes; then
21280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21281 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021287#include <stdlib.h>
21288
21289_ACEOF
21290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021291 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021292 :
21293else
21294 ac_cv_header_stdc=no
21295fi
21296rm -f conftest*
21297
21298fi
21299
21300if test $ac_cv_header_stdc = yes; then
21301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21302 if test "$cross_compiling" = yes; then
21303 :
21304else
21305 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021306/* confdefs.h. */
21307_ACEOF
21308cat confdefs.h >>conftest.$ac_ext
21309cat >>conftest.$ac_ext <<_ACEOF
21310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021311#include <ctype.h>
21312#if ((' ' & 0x0FF) == 0x020)
21313# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21314# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21315#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021316# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021317 (('a' <= (c) && (c) <= 'i') \
21318 || ('j' <= (c) && (c) <= 'r') \
21319 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000021320# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21321#endif
21322
21323#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21324int
21325main ()
21326{
21327 int i;
21328 for (i = 0; i < 256; i++)
21329 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000021330 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000021331 exit(2);
21332 exit (0);
21333}
21334_ACEOF
21335rm -f conftest$ac_exeext
21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 :
21347else
21348 echo "$as_me: program exited with status $ac_status" >&5
21349echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021350sed 's/^/| /' conftest.$ac_ext >&5
21351
John Criswell7a73b802003-06-30 21:59:07 +000021352( exit $ac_status )
21353ac_cv_header_stdc=no
21354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021356fi
21357fi
21358fi
21359echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21360echo "${ECHO_T}$ac_cv_header_stdc" >&6
21361if test $ac_cv_header_stdc = yes; then
21362
21363cat >>confdefs.h <<\_ACEOF
21364#define STDC_HEADERS 1
21365_ACEOF
21366
21367fi
21368
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021369
John Criswell7a73b802003-06-30 21:59:07 +000021370echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21371echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21372if test "${ac_cv_header_sys_wait_h+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374else
21375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021376/* confdefs.h. */
21377_ACEOF
21378cat confdefs.h >>conftest.$ac_ext
21379cat >>conftest.$ac_ext <<_ACEOF
21380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021381#include <sys/types.h>
21382#include <sys/wait.h>
21383#ifndef WEXITSTATUS
21384# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21385#endif
21386#ifndef WIFEXITED
21387# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21388#endif
21389
John Criswell7a73b802003-06-30 21:59:07 +000021390int
21391main ()
21392{
21393 int s;
21394 wait (&s);
21395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21396 ;
21397 return 0;
21398}
21399_ACEOF
21400rm -f conftest.$ac_objext
21401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021404 grep -v '^ *+' conftest.er1 >conftest.err
21405 rm -f conftest.er1
21406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021409 { ac_try='test -z "$ac_c_werror_flag"
21410 || test ! -s conftest.err'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ac_cv_header_sys_wait_h=yes
21423else
21424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021425sed 's/^/| /' conftest.$ac_ext >&5
21426
John Criswell7a73b802003-06-30 21:59:07 +000021427ac_cv_header_sys_wait_h=no
21428fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021430fi
21431echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21432echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21433if test $ac_cv_header_sys_wait_h = yes; then
21434
21435cat >>confdefs.h <<\_ACEOF
21436#define HAVE_SYS_WAIT_H 1
21437_ACEOF
21438
21439fi
21440
21441
21442
21443
21444
21445
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021446for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000021447do
21448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21449if eval "test \"\${$as_ac_Header+set}\" = set"; then
21450 echo "$as_me:$LINENO: checking for $ac_header" >&5
21451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21452if eval "test \"\${$as_ac_Header+set}\" = set"; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21454fi
21455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21457else
21458 # Is the header compilable?
21459echo "$as_me:$LINENO: checking $ac_header usability" >&5
21460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21461cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021462/* confdefs.h. */
21463_ACEOF
21464cat confdefs.h >>conftest.$ac_ext
21465cat >>conftest.$ac_ext <<_ACEOF
21466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021467$ac_includes_default
21468#include <$ac_header>
21469_ACEOF
21470rm -f conftest.$ac_objext
21471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021472 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021473 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021479 { ac_try='test -z "$ac_c_werror_flag"
21480 || test ! -s conftest.err'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; } &&
21486 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 ac_header_compiler=yes
21493else
21494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021495sed 's/^/| /' conftest.$ac_ext >&5
21496
John Criswell7a73b802003-06-30 21:59:07 +000021497ac_header_compiler=no
21498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21501echo "${ECHO_T}$ac_header_compiler" >&6
21502
21503# Is the header present?
21504echo "$as_me:$LINENO: checking $ac_header presence" >&5
21505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21506cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021512#include <$ac_header>
21513_ACEOF
21514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21516 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021517 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } >/dev/null; then
21522 if test -s conftest.err; then
21523 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000021524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000021525 else
21526 ac_cpp_err=
21527 fi
21528else
21529 ac_cpp_err=yes
21530fi
21531if test -z "$ac_cpp_err"; then
21532 ac_header_preproc=yes
21533else
21534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021535sed 's/^/| /' conftest.$ac_ext >&5
21536
John Criswell7a73b802003-06-30 21:59:07 +000021537 ac_header_preproc=no
21538fi
21539rm -f conftest.err conftest.$ac_ext
21540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21541echo "${ECHO_T}$ac_header_preproc" >&6
21542
21543# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21545 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000021546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000021548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21550 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000021551 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021552 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000021553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000021555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000021561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000021563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000021565 (
21566 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000021567## ----------------------------------- ##
21568## Report this to llvmbugs@cs.uiuc.edu ##
21569## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000021570_ASBOX
21571 ) |
21572 sed "s/^/$as_me: WARNING: /" >&2
21573 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021574esac
21575echo "$as_me:$LINENO: checking for $ac_header" >&5
21576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21577if eval "test \"\${$as_ac_Header+set}\" = set"; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21579else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021580 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000021581fi
21582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21584
21585fi
21586if test `eval echo '${'$as_ac_Header'}'` = yes; then
21587 cat >>confdefs.h <<_ACEOF
21588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21589_ACEOF
21590
21591fi
21592
21593done
21594
21595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021596
21597
21598
21599
21600
21601
21602for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h
21603do
21604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21605if eval "test \"\${$as_ac_Header+set}\" = set"; then
21606 echo "$as_me:$LINENO: checking for $ac_header" >&5
21607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21608if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021613else
21614 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021615echo "$as_me:$LINENO: checking $ac_header usability" >&5
21616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021617cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021618/* confdefs.h. */
21619_ACEOF
21620cat confdefs.h >>conftest.$ac_ext
21621cat >>conftest.$ac_ext <<_ACEOF
21622/* end confdefs.h. */
21623$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021624#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021625_ACEOF
21626rm -f conftest.$ac_objext
21627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021628 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021635 { ac_try='test -z "$ac_c_werror_flag"
21636 || test ! -s conftest.err'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_header_compiler=yes
21649else
21650 echo "$as_me: failed program was:" >&5
21651sed 's/^/| /' conftest.$ac_ext >&5
21652
21653ac_header_compiler=no
21654fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21657echo "${ECHO_T}$ac_header_compiler" >&6
21658
21659# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021660echo "$as_me:$LINENO: checking $ac_header presence" >&5
21661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021662cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021668#include <$ac_header>
21669_ACEOF
21670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21672 ac_status=$?
21673 grep -v '^ *+' conftest.er1 >conftest.err
21674 rm -f conftest.er1
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } >/dev/null; then
21678 if test -s conftest.err; then
21679 ac_cpp_err=$ac_c_preproc_warn_flag
21680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21681 else
21682 ac_cpp_err=
21683 fi
21684else
21685 ac_cpp_err=yes
21686fi
21687if test -z "$ac_cpp_err"; then
21688 ac_header_preproc=yes
21689else
21690 echo "$as_me: failed program was:" >&5
21691sed 's/^/| /' conftest.$ac_ext >&5
21692
21693 ac_header_preproc=no
21694fi
21695rm -f conftest.err conftest.$ac_ext
21696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21697echo "${ECHO_T}$ac_header_preproc" >&6
21698
21699# So? What about this header?
21700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21701 yes:no: )
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21706 ac_header_preproc=yes
21707 ;;
21708 no:yes:* )
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21721 (
21722 cat <<\_ASBOX
21723## ----------------------------------- ##
21724## Report this to llvmbugs@cs.uiuc.edu ##
21725## ----------------------------------- ##
21726_ASBOX
21727 ) |
21728 sed "s/^/$as_me: WARNING: /" >&2
21729 ;;
21730esac
21731echo "$as_me:$LINENO: checking for $ac_header" >&5
21732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21733if eval "test \"\${$as_ac_Header+set}\" = set"; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735else
21736 eval "$as_ac_Header=\$ac_header_preproc"
21737fi
21738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21740
21741fi
21742if test `eval echo '${'$as_ac_Header'}'` = yes; then
21743 cat >>confdefs.h <<_ACEOF
21744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21745_ACEOF
21746
21747fi
21748
21749done
21750
21751
21752
21753
21754
21755for ac_header in malloc.h unistd.h windows.h zlib.h
21756do
21757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21758if eval "test \"\${$as_ac_Header+set}\" = set"; then
21759 echo "$as_me:$LINENO: checking for $ac_header" >&5
21760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21761if eval "test \"\${$as_ac_Header+set}\" = set"; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763fi
21764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21766else
21767 # Is the header compilable?
21768echo "$as_me:$LINENO: checking $ac_header usability" >&5
21769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21770cat >conftest.$ac_ext <<_ACEOF
21771/* confdefs.h. */
21772_ACEOF
21773cat confdefs.h >>conftest.$ac_ext
21774cat >>conftest.$ac_ext <<_ACEOF
21775/* end confdefs.h. */
21776$ac_includes_default
21777#include <$ac_header>
21778_ACEOF
21779rm -f conftest.$ac_objext
21780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21781 (eval $ac_compile) 2>conftest.er1
21782 ac_status=$?
21783 grep -v '^ *+' conftest.er1 >conftest.err
21784 rm -f conftest.er1
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } &&
21788 { ac_try='test -z "$ac_c_werror_flag"
21789 || test ! -s conftest.err'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; } &&
21795 { ac_try='test -s conftest.$ac_objext'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 ac_header_compiler=yes
21802else
21803 echo "$as_me: failed program was:" >&5
21804sed 's/^/| /' conftest.$ac_ext >&5
21805
21806ac_header_compiler=no
21807fi
21808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21809echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21810echo "${ECHO_T}$ac_header_compiler" >&6
21811
21812# Is the header present?
21813echo "$as_me:$LINENO: checking $ac_header presence" >&5
21814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21815cat >conftest.$ac_ext <<_ACEOF
21816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
21821#include <$ac_header>
21822_ACEOF
21823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21825 ac_status=$?
21826 grep -v '^ *+' conftest.er1 >conftest.err
21827 rm -f conftest.er1
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } >/dev/null; then
21831 if test -s conftest.err; then
21832 ac_cpp_err=$ac_c_preproc_warn_flag
21833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21834 else
21835 ac_cpp_err=
21836 fi
21837else
21838 ac_cpp_err=yes
21839fi
21840if test -z "$ac_cpp_err"; then
21841 ac_header_preproc=yes
21842else
21843 echo "$as_me: failed program was:" >&5
21844sed 's/^/| /' conftest.$ac_ext >&5
21845
21846 ac_header_preproc=no
21847fi
21848rm -f conftest.err conftest.$ac_ext
21849echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21850echo "${ECHO_T}$ac_header_preproc" >&6
21851
21852# So? What about this header?
21853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21854 yes:no: )
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21859 ac_header_preproc=yes
21860 ;;
21861 no:yes:* )
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21874 (
21875 cat <<\_ASBOX
21876## ----------------------------------- ##
21877## Report this to llvmbugs@cs.uiuc.edu ##
21878## ----------------------------------- ##
21879_ASBOX
21880 ) |
21881 sed "s/^/$as_me: WARNING: /" >&2
21882 ;;
21883esac
21884echo "$as_me:$LINENO: checking for $ac_header" >&5
21885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21886if eval "test \"\${$as_ac_Header+set}\" = set"; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888else
21889 eval "$as_ac_Header=\$ac_header_preproc"
21890fi
21891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21893
21894fi
21895if test `eval echo '${'$as_ac_Header'}'` = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21898_ACEOF
21899
21900fi
21901
21902done
21903
21904echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21905echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21906if test "${ac_cv_header_time+set}" = set; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908else
21909 cat >conftest.$ac_ext <<_ACEOF
21910/* confdefs.h. */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021915#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021916#include <sys/time.h>
21917#include <time.h>
21918
21919int
21920main ()
21921{
21922if ((struct tm *) 0)
21923return 0;
21924 ;
21925 return 0;
21926}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021927_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021928rm -f conftest.$ac_objext
21929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021931 ac_status=$?
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021936 (exit $ac_status); } &&
21937 { ac_try='test -z "$ac_c_werror_flag"
21938 || test ! -s conftest.err'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21941 ac_status=$?
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; } &&
21944 { ac_try='test -s conftest.$ac_objext'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021951else
21952 echo "$as_me: failed program was:" >&5
21953sed 's/^/| /' conftest.$ac_ext >&5
21954
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021955ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021956fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21958fi
21959echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21960echo "${ECHO_T}$ac_cv_header_time" >&6
21961if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021962
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021963cat >>confdefs.h <<\_ACEOF
21964#define TIME_WITH_SYS_TIME 1
21965_ACEOF
21966
21967fi
21968
21969echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21970echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21971if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021974 ac_ext=c
21975ac_cpp='$CPP $CPPFLAGS'
21976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21978ac_compiler_gnu=$ac_cv_c_compiler_gnu
21979
21980 cat >conftest.$ac_ext <<_ACEOF
21981/* confdefs.h. */
21982_ACEOF
21983cat confdefs.h >>conftest.$ac_ext
21984cat >>conftest.$ac_ext <<_ACEOF
21985/* end confdefs.h. */
21986#include <sys/mman.h>
21987#include <unistd.h>
21988#include <fcntl.h>
21989int
21990main ()
21991{
21992mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21993 ;
21994 return 0;
21995}
21996_ACEOF
21997rm -f conftest.$ac_objext
21998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21999 (eval $ac_compile) 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } &&
22006 { ac_try='test -z "$ac_c_werror_flag"
22007 || test ! -s conftest.err'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; } &&
22013 { ac_try='test -s conftest.$ac_objext'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; }; then
22019 ac_cv_header_mmap_anon=yes
22020else
22021 echo "$as_me: failed program was:" >&5
22022sed 's/^/| /' conftest.$ac_ext >&5
22023
22024ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022025fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22027 ac_ext=c
22028ac_cpp='$CPP $CPPFLAGS'
22029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22031ac_compiler_gnu=$ac_cv_c_compiler_gnu
22032
22033
22034fi
22035echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22036echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22037if test "$ac_cv_header_mmap_anon" = yes; then
22038
22039cat >>confdefs.h <<\_ACEOF
22040#define HAVE_MMAP_ANONYMOUS
22041_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022042
22043fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022044
22045
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022046
22047
22048for ac_header in inttypes.h stdint.h
22049do
22050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22051if eval "test \"\${$as_ac_Header+set}\" = set"; then
22052 echo "$as_me:$LINENO: checking for $ac_header" >&5
22053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22054if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022055 echo $ECHO_N "(cached) $ECHO_C" >&6
22056fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022059else
22060 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022061echo "$as_me:$LINENO: checking $ac_header usability" >&5
22062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022063cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022064/* confdefs.h. */
22065_ACEOF
22066cat confdefs.h >>conftest.$ac_ext
22067cat >>conftest.$ac_ext <<_ACEOF
22068/* end confdefs.h. */
22069$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022070#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022071_ACEOF
22072rm -f conftest.$ac_objext
22073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022074 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022076 grep -v '^ *+' conftest.er1 >conftest.err
22077 rm -f conftest.er1
22078 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022081 { ac_try='test -z "$ac_c_werror_flag"
22082 || test ! -s conftest.err'
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; } &&
22088 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 ac_header_compiler=yes
22095else
22096 echo "$as_me: failed program was:" >&5
22097sed 's/^/| /' conftest.$ac_ext >&5
22098
22099ac_header_compiler=no
22100fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022102echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22103echo "${ECHO_T}$ac_header_compiler" >&6
22104
22105# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022106echo "$as_me:$LINENO: checking $ac_header presence" >&5
22107echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022108cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022109/* confdefs.h. */
22110_ACEOF
22111cat confdefs.h >>conftest.$ac_ext
22112cat >>conftest.$ac_ext <<_ACEOF
22113/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022114#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022115_ACEOF
22116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22118 ac_status=$?
22119 grep -v '^ *+' conftest.er1 >conftest.err
22120 rm -f conftest.er1
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } >/dev/null; then
22124 if test -s conftest.err; then
22125 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022127 else
22128 ac_cpp_err=
22129 fi
22130else
22131 ac_cpp_err=yes
22132fi
22133if test -z "$ac_cpp_err"; then
22134 ac_header_preproc=yes
22135else
22136 echo "$as_me: failed program was:" >&5
22137sed 's/^/| /' conftest.$ac_ext >&5
22138
22139 ac_header_preproc=no
22140fi
22141rm -f conftest.err conftest.$ac_ext
22142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143echo "${ECHO_T}$ac_header_preproc" >&6
22144
22145# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022152 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000022153 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022154 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22158echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22162echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022167 (
22168 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000022169## ----------------------------------- ##
22170## Report this to llvmbugs@cs.uiuc.edu ##
22171## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022172_ASBOX
22173 ) |
22174 sed "s/^/$as_me: WARNING: /" >&2
22175 ;;
22176esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022177echo "$as_me:$LINENO: checking for $ac_header" >&5
22178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22179if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022180 echo $ECHO_N "(cached) $ECHO_C" >&6
22181else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022182 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022183fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022186
22187fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022188if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189 cat >>confdefs.h <<_ACEOF
22190#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000022191_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000022192
22193fi
John Criswell7ed43ad2004-07-19 16:12:29 +000022194
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022195done
22196
John Criswell7ed43ad2004-07-19 16:12:29 +000022197
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022198
John Criswell7a73b802003-06-30 21:59:07 +000022199echo "$as_me:$LINENO: checking for pid_t" >&5
22200echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22201if test "${ac_cv_type_pid_t+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203else
22204 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022205/* confdefs.h. */
22206_ACEOF
22207cat confdefs.h >>conftest.$ac_ext
22208cat >>conftest.$ac_ext <<_ACEOF
22209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022210$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022211int
22212main ()
22213{
22214if ((pid_t *) 0)
22215 return 0;
22216if (sizeof (pid_t))
22217 return 0;
22218 ;
22219 return 0;
22220}
22221_ACEOF
22222rm -f conftest.$ac_objext
22223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022224 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022225 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022231 { ac_try='test -z "$ac_c_werror_flag"
22232 || test ! -s conftest.err'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 ac_cv_type_pid_t=yes
22245else
22246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022247sed 's/^/| /' conftest.$ac_ext >&5
22248
John Criswell7a73b802003-06-30 21:59:07 +000022249ac_cv_type_pid_t=no
22250fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022252fi
22253echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22254echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22255if test $ac_cv_type_pid_t = yes; then
22256 :
22257else
22258
22259cat >>confdefs.h <<_ACEOF
22260#define pid_t int
22261_ACEOF
22262
22263fi
22264
22265echo "$as_me:$LINENO: checking for size_t" >&5
22266echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22267if test "${ac_cv_type_size_t+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269else
22270 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022271/* confdefs.h. */
22272_ACEOF
22273cat confdefs.h >>conftest.$ac_ext
22274cat >>conftest.$ac_ext <<_ACEOF
22275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022276$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022277int
22278main ()
22279{
22280if ((size_t *) 0)
22281 return 0;
22282if (sizeof (size_t))
22283 return 0;
22284 ;
22285 return 0;
22286}
22287_ACEOF
22288rm -f conftest.$ac_objext
22289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022290 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022291 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022297 { ac_try='test -z "$ac_c_werror_flag"
22298 || test ! -s conftest.err'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; } &&
22304 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 ac_cv_type_size_t=yes
22311else
22312 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022313sed 's/^/| /' conftest.$ac_ext >&5
22314
John Criswell7a73b802003-06-30 21:59:07 +000022315ac_cv_type_size_t=no
22316fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022318fi
22319echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22320echo "${ECHO_T}$ac_cv_type_size_t" >&6
22321if test $ac_cv_type_size_t = yes; then
22322 :
22323else
22324
22325cat >>confdefs.h <<_ACEOF
22326#define size_t unsigned
22327_ACEOF
22328
22329fi
22330
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022331echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22332echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22333if test "${ac_cv_type_signal+set}" = set; then
22334 echo $ECHO_N "(cached) $ECHO_C" >&6
22335else
22336 cat >conftest.$ac_ext <<_ACEOF
22337/* confdefs.h. */
22338_ACEOF
22339cat confdefs.h >>conftest.$ac_ext
22340cat >>conftest.$ac_ext <<_ACEOF
22341/* end confdefs.h. */
22342#include <sys/types.h>
22343#include <signal.h>
22344#ifdef signal
22345# undef signal
22346#endif
22347#ifdef __cplusplus
22348extern "C" void (*signal (int, void (*)(int)))(int);
22349#else
22350void (*signal ()) ();
22351#endif
22352
22353int
22354main ()
22355{
22356int i;
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361rm -f conftest.$ac_objext
22362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_c_werror_flag"
22371 || test ! -s conftest.err'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; } &&
22377 { ac_try='test -s conftest.$ac_objext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 ac_cv_type_signal=void
22384else
22385 echo "$as_me: failed program was:" >&5
22386sed 's/^/| /' conftest.$ac_ext >&5
22387
22388ac_cv_type_signal=int
22389fi
22390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22391fi
22392echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22393echo "${ECHO_T}$ac_cv_type_signal" >&6
22394
22395cat >>confdefs.h <<_ACEOF
22396#define RETSIGTYPE $ac_cv_type_signal
22397_ACEOF
22398
22399
22400echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22401echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22402if test "${ac_cv_struct_tm+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404else
22405 cat >conftest.$ac_ext <<_ACEOF
22406/* confdefs.h. */
22407_ACEOF
22408cat confdefs.h >>conftest.$ac_ext
22409cat >>conftest.$ac_ext <<_ACEOF
22410/* end confdefs.h. */
22411#include <sys/types.h>
22412#include <time.h>
22413
22414int
22415main ()
22416{
22417struct tm *tp; tp->tm_sec;
22418 ;
22419 return 0;
22420}
22421_ACEOF
22422rm -f conftest.$ac_objext
22423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22424 (eval $ac_compile) 2>conftest.er1
22425 ac_status=$?
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
22431 { ac_try='test -z "$ac_c_werror_flag"
22432 || test ! -s conftest.err'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; } &&
22438 { ac_try='test -s conftest.$ac_objext'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 ac_cv_struct_tm=time.h
22445else
22446 echo "$as_me: failed program was:" >&5
22447sed 's/^/| /' conftest.$ac_ext >&5
22448
22449ac_cv_struct_tm=sys/time.h
22450fi
22451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22452fi
22453echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22454echo "${ECHO_T}$ac_cv_struct_tm" >&6
22455if test $ac_cv_struct_tm = sys/time.h; then
22456
22457cat >>confdefs.h <<\_ACEOF
22458#define TM_IN_SYS_TIME 1
22459_ACEOF
22460
22461fi
22462
John Criswell7a73b802003-06-30 21:59:07 +000022463echo "$as_me:$LINENO: checking for int64_t" >&5
22464echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
22465if test "${ac_cv_type_int64_t+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467else
22468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022469/* confdefs.h. */
22470_ACEOF
22471cat confdefs.h >>conftest.$ac_ext
22472cat >>conftest.$ac_ext <<_ACEOF
22473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022474$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022475int
22476main ()
22477{
22478if ((int64_t *) 0)
22479 return 0;
22480if (sizeof (int64_t))
22481 return 0;
22482 ;
22483 return 0;
22484}
22485_ACEOF
22486rm -f conftest.$ac_objext
22487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022488 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022495 { ac_try='test -z "$ac_c_werror_flag"
22496 || test ! -s conftest.err'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 ac_cv_type_int64_t=yes
22509else
22510 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022511sed 's/^/| /' conftest.$ac_ext >&5
22512
John Criswell7a73b802003-06-30 21:59:07 +000022513ac_cv_type_int64_t=no
22514fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022516fi
22517echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
22518echo "${ECHO_T}$ac_cv_type_int64_t" >&6
22519if test $ac_cv_type_int64_t = yes; then
22520
22521cat >>confdefs.h <<_ACEOF
22522#define HAVE_INT64_T 1
22523_ACEOF
22524
22525
22526else
22527 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
22528echo "$as_me: error: Type int64_t required but not found" >&2;}
22529 { (exit 1); exit 1; }; }
22530fi
22531
22532echo "$as_me:$LINENO: checking for uint64_t" >&5
22533echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22534if test "${ac_cv_type_uint64_t+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22536else
22537 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022538/* confdefs.h. */
22539_ACEOF
22540cat confdefs.h >>conftest.$ac_ext
22541cat >>conftest.$ac_ext <<_ACEOF
22542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022543$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022544int
22545main ()
22546{
22547if ((uint64_t *) 0)
22548 return 0;
22549if (sizeof (uint64_t))
22550 return 0;
22551 ;
22552 return 0;
22553}
22554_ACEOF
22555rm -f conftest.$ac_objext
22556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022557 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022564 { ac_try='test -z "$ac_c_werror_flag"
22565 || test ! -s conftest.err'
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; } &&
22571 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 ac_cv_type_uint64_t=yes
22578else
22579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022580sed 's/^/| /' conftest.$ac_ext >&5
22581
John Criswell7a73b802003-06-30 21:59:07 +000022582ac_cv_type_uint64_t=no
22583fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022585fi
22586echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
22587echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
22588if test $ac_cv_type_uint64_t = yes; then
22589
22590cat >>confdefs.h <<_ACEOF
22591#define HAVE_UINT64_T 1
22592_ACEOF
22593
22594
22595else
Misha Brukmanceca9042004-09-02 23:02:30 +000022596 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000022597echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
22598if test "${ac_cv_type_u_int64_t+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22600else
22601 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000022602/* confdefs.h. */
22603_ACEOF
22604cat confdefs.h >>conftest.$ac_ext
22605cat >>conftest.$ac_ext <<_ACEOF
22606/* end confdefs.h. */
22607$ac_includes_default
22608int
22609main ()
22610{
22611if ((u_int64_t *) 0)
22612 return 0;
22613if (sizeof (u_int64_t))
22614 return 0;
22615 ;
22616 return 0;
22617}
22618_ACEOF
22619rm -f conftest.$ac_objext
22620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022621 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000022622 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000022626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022628 { ac_try='test -z "$ac_c_werror_flag"
22629 || test ! -s conftest.err'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; } &&
22635 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000022636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
22641 ac_cv_type_u_int64_t=yes
22642else
22643 echo "$as_me: failed program was:" >&5
22644sed 's/^/| /' conftest.$ac_ext >&5
22645
22646ac_cv_type_u_int64_t=no
22647fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000022649fi
22650echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
22651echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
22652if test $ac_cv_type_u_int64_t = yes; then
22653
22654cat >>confdefs.h <<_ACEOF
22655#define HAVE_U_INT64_T 1
22656_ACEOF
22657
22658
Misha Brukmanceca9042004-09-02 23:02:30 +000022659else
22660 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
22661echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
22662 { (exit 1); exit 1; }; }
22663fi
22664
John Criswell679ff312004-09-02 18:44:44 +000022665fi
22666
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022667
22668
22669
22670
22671
22672
22673
22674
22675for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
22676do
22677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22678echo "$as_me:$LINENO: checking for $ac_func" >&5
22679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22680if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000022681 echo $ECHO_N "(cached) $ECHO_C" >&6
22682else
22683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022684/* confdefs.h. */
22685_ACEOF
22686cat confdefs.h >>conftest.$ac_ext
22687cat >>conftest.$ac_ext <<_ACEOF
22688/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22691#define $ac_func innocuous_$ac_func
22692
22693/* System header to define __stub macros and hopefully few prototypes,
22694 which can conflict with char $ac_func (); below.
22695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22696 <limits.h> exists even on freestanding compilers. */
22697
22698#ifdef __STDC__
22699# include <limits.h>
22700#else
22701# include <assert.h>
22702#endif
22703
22704#undef $ac_func
22705
22706/* Override any gcc2 internal prototype to avoid an error. */
22707#ifdef __cplusplus
22708extern "C"
22709{
22710#endif
22711/* We use char because int might match the return type of a gcc2
22712 builtin and then its argument prototype would still apply. */
22713char $ac_func ();
22714/* The GNU C library defines this for functions which it implements
22715 to always fail with ENOSYS. Some functions are actually named
22716 something starting with __ and the normal name is an alias. */
22717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22718choke me
22719#else
22720char (*f) () = $ac_func;
22721#endif
22722#ifdef __cplusplus
22723}
22724#endif
John Criswell7a73b802003-06-30 21:59:07 +000022725
John Criswell7a73b802003-06-30 21:59:07 +000022726int
22727main ()
22728{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022729return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022730 ;
22731 return 0;
22732}
22733_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022734rm -f conftest.$ac_objext conftest$ac_exeext
22735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22736 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 { ac_try='test -z "$ac_c_werror_flag"
22744 || test ! -s conftest.err'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022750 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022756 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000022757else
22758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022759sed 's/^/| /' conftest.$ac_ext >&5
22760
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022761eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000022762fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022763rm -f conftest.err conftest.$ac_objext \
22764 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022765fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22767echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22768if test `eval echo '${'$as_ac_var'}'` = yes; then
22769 cat >>confdefs.h <<_ACEOF
22770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000022771_ACEOF
22772
22773fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022774done
John Criswell7a73b802003-06-30 21:59:07 +000022775
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022776
22777
22778
22779for ac_func in strdup strtoq strtoll
22780do
22781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22782echo "$as_me:$LINENO: checking for $ac_func" >&5
22783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22784if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000022785 echo $ECHO_N "(cached) $ECHO_C" >&6
22786else
22787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022788/* confdefs.h. */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22795#define $ac_func innocuous_$ac_func
22796
22797/* System header to define __stub macros and hopefully few prototypes,
22798 which can conflict with char $ac_func (); below.
22799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800 <limits.h> exists even on freestanding compilers. */
22801
22802#ifdef __STDC__
22803# include <limits.h>
22804#else
22805# include <assert.h>
22806#endif
22807
22808#undef $ac_func
22809
22810/* Override any gcc2 internal prototype to avoid an error. */
22811#ifdef __cplusplus
22812extern "C"
22813{
22814#endif
22815/* We use char because int might match the return type of a gcc2
22816 builtin and then its argument prototype would still apply. */
22817char $ac_func ();
22818/* The GNU C library defines this for functions which it implements
22819 to always fail with ENOSYS. Some functions are actually named
22820 something starting with __ and the normal name is an alias. */
22821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22822choke me
22823#else
22824char (*f) () = $ac_func;
22825#endif
22826#ifdef __cplusplus
22827}
22828#endif
John Criswell7a73b802003-06-30 21:59:07 +000022829
John Criswell7a73b802003-06-30 21:59:07 +000022830int
22831main ()
22832{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022833return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022834 ;
22835 return 0;
22836}
22837_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022838rm -f conftest.$ac_objext conftest$ac_exeext
22839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022841 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022847 { ac_try='test -z "$ac_c_werror_flag"
22848 || test ! -s conftest.err'
22849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850 (eval $ac_try) 2>&5
22851 ac_status=$?
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022854 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022860 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000022861else
22862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022863sed 's/^/| /' conftest.$ac_ext >&5
22864
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022865eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000022866fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022867rm -f conftest.err conftest.$ac_objext \
22868 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022869fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22872if test `eval echo '${'$as_ac_var'}'` = yes; then
22873 cat >>confdefs.h <<_ACEOF
22874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000022875_ACEOF
22876
22877fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022878done
John Criswell7a73b802003-06-30 21:59:07 +000022879
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022880echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
22881echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000022882if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022885 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000022886ac_cpp='$CPP $CPPFLAGS'
22887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22889ac_compiler_gnu=$ac_cv_c_compiler_gnu
22890
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022891 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000022892 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000022893else
22894 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000022895
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022896 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000022897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022901
John Criswella0137d32003-10-13 16:22:01 +000022902#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000022903#include <stdlib.h>
22904
John Criswella0137d32003-10-13 16:22:01 +000022905int
22906main ()
22907{
22908
Reid Spencer2706f8c2004-09-19 23:53:36 +000022909volatile double A, B;
22910char Buffer[100];
22911A = 1;
22912A /= 10.0;
22913sprintf(Buffer, "%a", A);
22914B = atof(Buffer);
22915if (A != B)
22916 return (1);
22917if (A != 0x1.999999999999ap-4)
22918 return (1);
22919return (0);
John Criswella0137d32003-10-13 16:22:01 +000022920 ;
22921 return 0;
22922}
22923_ACEOF
22924rm -f conftest$ac_exeext
22925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22926 (eval $ac_link) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000022935 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000022936else
22937 echo "$as_me: program exited with status $ac_status" >&5
22938echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000022942llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000022943fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000022945fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022946 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000022947ac_cpp='$CPP $CPPFLAGS'
22948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22950ac_compiler_gnu=$ac_cv_c_compiler_gnu
22951
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022952fi
Reid Spencer3be58f92004-11-27 22:01:43 +000022953echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
22954echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
22955 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000022956
22957cat >>confdefs.h <<\_ACEOF
22958#define HAVE_PRINTF_A 1
22959_ACEOF
22960
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961 fi
John Criswella0137d32003-10-13 16:22:01 +000022962
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022963# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22964# for constant arguments. Useless!
22965echo "$as_me:$LINENO: checking for working alloca.h" >&5
22966echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22967if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000022968 echo $ECHO_N "(cached) $ECHO_C" >&6
22969else
John Criswell0021c312004-02-13 21:57:29 +000022970 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000022971/* confdefs.h. */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022976#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000022977int
22978main ()
22979{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022980char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000022981 ;
22982 return 0;
22983}
22984_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022985rm -f conftest.$ac_objext conftest$ac_exeext
22986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22987 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000022988 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000022992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022994 { ac_try='test -z "$ac_c_werror_flag"
22995 || test ! -s conftest.err'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023001 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000023002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23004 ac_status=$?
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023007 ac_cv_working_alloca_h=yes
23008else
23009 echo "$as_me: failed program was:" >&5
23010sed 's/^/| /' conftest.$ac_ext >&5
23011
23012ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000023013fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023014rm -f conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
23016fi
23017echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23018echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23019if test $ac_cv_working_alloca_h = yes; then
23020
23021cat >>confdefs.h <<\_ACEOF
23022#define HAVE_ALLOCA_H 1
23023_ACEOF
23024
23025fi
23026
23027echo "$as_me:$LINENO: checking for alloca" >&5
23028echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23029if test "${ac_cv_func_alloca_works+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23031else
23032 cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038#ifdef __GNUC__
23039# define alloca __builtin_alloca
23040#else
23041# ifdef _MSC_VER
23042# include <malloc.h>
23043# define alloca _alloca
23044# else
23045# if HAVE_ALLOCA_H
23046# include <alloca.h>
23047# else
23048# ifdef _AIX
23049 #pragma alloca
23050# else
23051# ifndef alloca /* predefined by HP cc +Olibcalls */
23052char *alloca ();
23053# endif
23054# endif
23055# endif
23056# endif
23057#endif
23058
23059int
23060main ()
23061{
23062char *p = (char *) alloca (1);
23063 ;
23064 return 0;
23065}
23066_ACEOF
23067rm -f conftest.$ac_objext conftest$ac_exeext
23068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23069 (eval $ac_link) 2>conftest.er1
23070 ac_status=$?
23071 grep -v '^ *+' conftest.er1 >conftest.err
23072 rm -f conftest.er1
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } &&
23076 { ac_try='test -z "$ac_c_werror_flag"
23077 || test ! -s conftest.err'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23080 ac_status=$?
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; } &&
23083 { ac_try='test -s conftest$ac_exeext'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; }; then
23089 ac_cv_func_alloca_works=yes
23090else
23091 echo "$as_me: failed program was:" >&5
23092sed 's/^/| /' conftest.$ac_ext >&5
23093
23094ac_cv_func_alloca_works=no
23095fi
23096rm -f conftest.err conftest.$ac_objext \
23097 conftest$ac_exeext conftest.$ac_ext
23098fi
23099echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23100echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23101
23102if test $ac_cv_func_alloca_works = yes; then
23103
23104cat >>confdefs.h <<\_ACEOF
23105#define HAVE_ALLOCA 1
23106_ACEOF
23107
23108else
23109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23110# that cause trouble. Some versions do not even contain alloca or
23111# contain a buggy version. If you still want to use their alloca,
23112# use ar to extract alloca.o from them instead of compiling alloca.c.
23113
23114ALLOCA=alloca.$ac_objext
23115
23116cat >>confdefs.h <<\_ACEOF
23117#define C_ALLOCA 1
23118_ACEOF
23119
23120
23121echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23122echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23123if test "${ac_cv_os_cray+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125else
23126 cat >conftest.$ac_ext <<_ACEOF
23127/* confdefs.h. */
23128_ACEOF
23129cat confdefs.h >>conftest.$ac_ext
23130cat >>conftest.$ac_ext <<_ACEOF
23131/* end confdefs.h. */
23132#if defined(CRAY) && ! defined(CRAY2)
23133webecray
23134#else
23135wenotbecray
23136#endif
23137
23138_ACEOF
23139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23140 $EGREP "webecray" >/dev/null 2>&1; then
23141 ac_cv_os_cray=yes
23142else
23143 ac_cv_os_cray=no
23144fi
23145rm -f conftest*
23146
23147fi
23148echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23149echo "${ECHO_T}$ac_cv_os_cray" >&6
23150if test $ac_cv_os_cray = yes; then
23151 for ac_func in _getb67 GETB67 getb67; do
23152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23153echo "$as_me:$LINENO: checking for $ac_func" >&5
23154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23155if eval "test \"\${$as_ac_var+set}\" = set"; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23157else
23158 cat >conftest.$ac_ext <<_ACEOF
23159/* confdefs.h. */
23160_ACEOF
23161cat confdefs.h >>conftest.$ac_ext
23162cat >>conftest.$ac_ext <<_ACEOF
23163/* end confdefs.h. */
23164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23166#define $ac_func innocuous_$ac_func
23167
23168/* System header to define __stub macros and hopefully few prototypes,
23169 which can conflict with char $ac_func (); below.
23170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23171 <limits.h> exists even on freestanding compilers. */
23172
23173#ifdef __STDC__
23174# include <limits.h>
23175#else
23176# include <assert.h>
23177#endif
23178
23179#undef $ac_func
23180
23181/* Override any gcc2 internal prototype to avoid an error. */
23182#ifdef __cplusplus
23183extern "C"
23184{
23185#endif
23186/* We use char because int might match the return type of a gcc2
23187 builtin and then its argument prototype would still apply. */
23188char $ac_func ();
23189/* The GNU C library defines this for functions which it implements
23190 to always fail with ENOSYS. Some functions are actually named
23191 something starting with __ and the normal name is an alias. */
23192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23193choke me
23194#else
23195char (*f) () = $ac_func;
23196#endif
23197#ifdef __cplusplus
23198}
23199#endif
23200
23201int
23202main ()
23203{
23204return f != $ac_func;
23205 ;
23206 return 0;
23207}
23208_ACEOF
23209rm -f conftest.$ac_objext conftest$ac_exeext
23210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23211 (eval $ac_link) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } &&
23218 { ac_try='test -z "$ac_c_werror_flag"
23219 || test ! -s conftest.err'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; } &&
23225 { ac_try='test -s conftest$ac_exeext'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; }; then
23231 eval "$as_ac_var=yes"
23232else
23233 echo "$as_me: failed program was:" >&5
23234sed 's/^/| /' conftest.$ac_ext >&5
23235
23236eval "$as_ac_var=no"
23237fi
23238rm -f conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23240fi
23241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23243if test `eval echo '${'$as_ac_var'}'` = yes; then
23244
23245cat >>confdefs.h <<_ACEOF
23246#define CRAY_STACKSEG_END $ac_func
23247_ACEOF
23248
23249 break
23250fi
23251
23252 done
23253fi
23254
23255echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23256echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23257if test "${ac_cv_c_stack_direction+set}" = set; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23259else
23260 if test "$cross_compiling" = yes; then
23261 ac_cv_c_stack_direction=0
23262else
23263 cat >conftest.$ac_ext <<_ACEOF
23264/* confdefs.h. */
23265_ACEOF
23266cat confdefs.h >>conftest.$ac_ext
23267cat >>conftest.$ac_ext <<_ACEOF
23268/* end confdefs.h. */
23269int
23270find_stack_direction ()
23271{
23272 static char *addr = 0;
23273 auto char dummy;
23274 if (addr == 0)
23275 {
23276 addr = &dummy;
23277 return find_stack_direction ();
23278 }
John Criswell0021c312004-02-13 21:57:29 +000023279 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023280 return (&dummy > addr) ? 1 : -1;
23281}
John Criswell0021c312004-02-13 21:57:29 +000023282
John Criswell0021c312004-02-13 21:57:29 +000023283int
23284main ()
23285{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023286 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000023287}
23288_ACEOF
23289rm -f conftest$ac_exeext
23290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23291 (eval $ac_link) 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023300 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000023301else
23302 echo "$as_me: program exited with status $ac_status" >&5
23303echo "$as_me: failed program was:" >&5
23304sed 's/^/| /' conftest.$ac_ext >&5
23305
23306( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023307ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000023308fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000023310fi
23311fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023312echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23313echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23314
23315cat >>confdefs.h <<_ACEOF
23316#define STACK_DIRECTION $ac_cv_c_stack_direction
23317_ACEOF
23318
23319
John Criswell0021c312004-02-13 21:57:29 +000023320fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023321
23322
23323echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23324echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23325if test "${ac_cv_func_rand48+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23327else
23328 ac_ext=cc
23329ac_cpp='$CXXCPP $CPPFLAGS'
23330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23333
23334 cat >conftest.$ac_ext <<_ACEOF
23335/* confdefs.h. */
23336_ACEOF
23337cat confdefs.h >>conftest.$ac_ext
23338cat >>conftest.$ac_ext <<_ACEOF
23339/* end confdefs.h. */
23340#include <stdlib.h>
23341int
23342main ()
23343{
23344srand48(0);lrand48();drand48();
23345 ;
23346 return 0;
23347}
23348_ACEOF
23349rm -f conftest.$ac_objext
23350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23351 (eval $ac_compile) 2>conftest.er1
23352 ac_status=$?
23353 grep -v '^ *+' conftest.er1 >conftest.err
23354 rm -f conftest.er1
23355 cat conftest.err >&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } &&
23358 { ac_try='test -z "$ac_cxx_werror_flag"
23359 || test ! -s conftest.err'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; } &&
23365 { ac_try='test -s conftest.$ac_objext'
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_func_rand48=yes
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
23376ac_cv_func_rand48=no
23377fi
23378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23379 ac_ext=c
23380ac_cpp='$CPP $CPPFLAGS'
23381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23383ac_compiler_gnu=$ac_cv_c_compiler_gnu
23384
23385fi
23386echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23387echo "${ECHO_T}$ac_cv_func_rand48" >&6
23388
23389if test "$ac_cv_func_rand48" = "yes" ; then
23390
23391cat >>confdefs.h <<\_ACEOF
23392#define HAVE_RAND48 1
23393_ACEOF
23394
23395fi
John Criswell0021c312004-02-13 21:57:29 +000023396
23397
John Criswell7a73b802003-06-30 21:59:07 +000023398echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23399echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
23400if test "${ac_cv_cxx_namespaces+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023403 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000023404ac_cpp='$CXXCPP $CPPFLAGS'
23405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23408
23409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023410/* confdefs.h. */
23411_ACEOF
23412cat confdefs.h >>conftest.$ac_ext
23413cat >>conftest.$ac_ext <<_ACEOF
23414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023415namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000023416int
23417main ()
23418{
23419using namespace Outer::Inner; return i;
23420 ;
23421 return 0;
23422}
23423_ACEOF
23424rm -f conftest.$ac_objext
23425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023426 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023428 grep -v '^ *+' conftest.er1 >conftest.err
23429 rm -f conftest.er1
23430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023433 { ac_try='test -z "$ac_cxx_werror_flag"
23434 || test ! -s conftest.err'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; } &&
23440 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23442 (eval $ac_try) 2>&5
23443 ac_status=$?
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23446 ac_cv_cxx_namespaces=yes
23447else
23448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023449sed 's/^/| /' conftest.$ac_ext >&5
23450
John Criswell7a73b802003-06-30 21:59:07 +000023451ac_cv_cxx_namespaces=no
23452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023454 ac_ext=c
23455ac_cpp='$CPP $CPPFLAGS'
23456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23458ac_compiler_gnu=$ac_cv_c_compiler_gnu
23459
23460
23461fi
23462echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23463echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
23464if test "$ac_cv_cxx_namespaces" = yes; then
23465
23466cat >>confdefs.h <<\_ACEOF
23467#define HAVE_NAMESPACES
23468_ACEOF
23469
23470fi
23471
Brian Gaeke90583492003-11-10 03:06:28 +000023472echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
23473echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
23474if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000023475 echo $ECHO_N "(cached) $ECHO_C" >&6
23476else
23477
John Criswell7a73b802003-06-30 21:59:07 +000023478 ac_ext=cc
23479ac_cpp='$CXXCPP $CPPFLAGS'
23480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23483
23484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023485/* confdefs.h. */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023490#include <ext/hash_map>
23491#ifdef HAVE_NAMESPACES
23492using namespace std;
23493#endif
John Criswell7a73b802003-06-30 21:59:07 +000023494int
23495main ()
23496{
Brian Gaeke90583492003-11-10 03:06:28 +000023497hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000023498 ;
23499 return 0;
23500}
23501_ACEOF
23502rm -f conftest.$ac_objext
23503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023504 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023506 grep -v '^ *+' conftest.er1 >conftest.err
23507 rm -f conftest.er1
23508 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023511 { ac_try='test -z "$ac_cxx_werror_flag"
23512 || test ! -s conftest.err'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000023524 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000023525else
23526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023527sed 's/^/| /' conftest.$ac_ext >&5
23528
Brian Gaeke90583492003-11-10 03:06:28 +000023529ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000023530fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023532 ac_ext=c
23533ac_cpp='$CPP $CPPFLAGS'
23534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536ac_compiler_gnu=$ac_cv_c_compiler_gnu
23537
John Criswell7a73b802003-06-30 21:59:07 +000023538fi
Brian Gaeke90583492003-11-10 03:06:28 +000023539echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
23540echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023541 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
23542 then
John Criswell9f011862004-09-24 18:28:00 +000023543
23544cat >>confdefs.h <<\_ACEOF
23545#define HAVE_STD_EXT_HASH_MAP 1
23546_ACEOF
23547
23548 else
23549
23550cat >>confdefs.h <<\_ACEOF
23551#define HAVE_STD_EXT_HASH_MAP 0
23552_ACEOF
23553
Brian Gaeke90583492003-11-10 03:06:28 +000023554 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023555
Brian Gaeke90583492003-11-10 03:06:28 +000023556 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
23557echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
23558if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560else
23561
Brian Gaeke90583492003-11-10 03:06:28 +000023562 ac_ext=cc
23563ac_cpp='$CXXCPP $CPPFLAGS'
23564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23567
23568 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000023569/* confdefs.h. */
23570_ACEOF
23571cat confdefs.h >>conftest.$ac_ext
23572cat >>conftest.$ac_ext <<_ACEOF
23573/* end confdefs.h. */
23574#include <ext/hash_map>
23575#ifdef HAVE_NAMESPACES
23576using namespace __gnu_cxx;
23577#endif
23578int
23579main ()
23580{
23581hash_map<int,int> t;
23582 ;
23583 return 0;
23584}
23585_ACEOF
23586rm -f conftest.$ac_objext
23587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023588 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000023589 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000023593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023595 { ac_try='test -z "$ac_cxx_werror_flag"
23596 || test ! -s conftest.err'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; } &&
23602 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000023603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; }; then
23608 ac_cv_cxx_have_gnu_ext_hash_map=yes
23609else
23610 echo "$as_me: failed program was:" >&5
23611sed 's/^/| /' conftest.$ac_ext >&5
23612
23613ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000023614fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000023616 ac_ext=c
23617ac_cpp='$CPP $CPPFLAGS'
23618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23620ac_compiler_gnu=$ac_cv_c_compiler_gnu
23621
23622fi
23623echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
23624echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023625 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
23626 then
John Criswell9f011862004-09-24 18:28:00 +000023627
23628cat >>confdefs.h <<\_ACEOF
23629#define HAVE_GNU_EXT_HASH_MAP 1
23630_ACEOF
23631
23632 else
23633
23634cat >>confdefs.h <<\_ACEOF
23635#define HAVE_GNU_EXT_HASH_MAP 0
23636_ACEOF
23637
Brian Gaeke90583492003-11-10 03:06:28 +000023638 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023639
Brian Gaeke90583492003-11-10 03:06:28 +000023640 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
23641echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
23642if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23644else
John Criswell7a73b802003-06-30 21:59:07 +000023645
Brian Gaeke90583492003-11-10 03:06:28 +000023646 ac_ext=cc
23647ac_cpp='$CXXCPP $CPPFLAGS'
23648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23651
23652 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000023653/* confdefs.h. */
23654_ACEOF
23655cat confdefs.h >>conftest.$ac_ext
23656cat >>conftest.$ac_ext <<_ACEOF
23657/* end confdefs.h. */
23658#include <hash_map>
23659int
23660main ()
23661{
23662hash_map<int,int> t;
23663 ;
23664 return 0;
23665}
23666_ACEOF
23667rm -f conftest.$ac_objext
23668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023669 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000023670 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023671 grep -v '^ *+' conftest.er1 >conftest.err
23672 rm -f conftest.er1
23673 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000023674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023676 { ac_try='test -z "$ac_cxx_werror_flag"
23677 || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000023684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_cxx_have_global_hash_map=yes
23690else
23691 echo "$as_me: failed program was:" >&5
23692sed 's/^/| /' conftest.$ac_ext >&5
23693
23694ac_cv_cxx_have_global_hash_map=no
23695fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000023697 ac_ext=c
23698ac_cpp='$CPP $CPPFLAGS'
23699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701ac_compiler_gnu=$ac_cv_c_compiler_gnu
23702
23703fi
23704echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
23705echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023706 if test "$ac_cv_cxx_have_global_hash_map" = yes
23707 then
John Criswell9f011862004-09-24 18:28:00 +000023708
23709cat >>confdefs.h <<\_ACEOF
23710#define HAVE_GLOBAL_HASH_MAP 1
23711_ACEOF
23712
23713 else
23714
23715cat >>confdefs.h <<\_ACEOF
23716#define HAVE_GLOBAL_HASH_MAP 0
23717_ACEOF
23718
Brian Gaeke90583492003-11-10 03:06:28 +000023719 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023720
Brian Gaeke90583492003-11-10 03:06:28 +000023721echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
23722echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
23723if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000023724 echo $ECHO_N "(cached) $ECHO_C" >&6
23725else
23726
John Criswell7a73b802003-06-30 21:59:07 +000023727 ac_ext=cc
23728ac_cpp='$CXXCPP $CPPFLAGS'
23729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23732
23733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023734/* confdefs.h. */
23735_ACEOF
23736cat confdefs.h >>conftest.$ac_ext
23737cat >>conftest.$ac_ext <<_ACEOF
23738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023739#include <ext/hash_set>
23740#ifdef HAVE_NAMESPACES
23741using namespace std;
23742#endif
John Criswell7a73b802003-06-30 21:59:07 +000023743int
23744main ()
23745{
Brian Gaeke90583492003-11-10 03:06:28 +000023746hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000023747 ;
23748 return 0;
23749}
23750_ACEOF
23751rm -f conftest.$ac_objext
23752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023753 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023760 { ac_try='test -z "$ac_cxx_werror_flag"
23761 || test ! -s conftest.err'
23762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763 (eval $ac_try) 2>&5
23764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; } &&
23767 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000023773 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000023774else
23775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023776sed 's/^/| /' conftest.$ac_ext >&5
23777
Brian Gaeke90583492003-11-10 03:06:28 +000023778ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000023779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000023781 ac_ext=c
23782ac_cpp='$CPP $CPPFLAGS'
23783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785ac_compiler_gnu=$ac_cv_c_compiler_gnu
23786
23787fi
23788echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
23789echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023790 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
23791 then
John Criswell9f011862004-09-24 18:28:00 +000023792
23793cat >>confdefs.h <<\_ACEOF
23794#define HAVE_STD_EXT_HASH_SET 1
23795_ACEOF
23796
23797 else
23798
23799cat >>confdefs.h <<\_ACEOF
23800#define HAVE_STD_EXT_HASH_SET 0
23801_ACEOF
23802
Brian Gaeke90583492003-11-10 03:06:28 +000023803 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023804
Brian Gaeke90583492003-11-10 03:06:28 +000023805 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
23806echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
23807if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23809else
23810
Brian Gaeke90583492003-11-10 03:06:28 +000023811 ac_ext=cc
23812ac_cpp='$CXXCPP $CPPFLAGS'
23813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23816
John Criswell7a73b802003-06-30 21:59:07 +000023817 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023818/* confdefs.h. */
23819_ACEOF
23820cat confdefs.h >>conftest.$ac_ext
23821cat >>conftest.$ac_ext <<_ACEOF
23822/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023823#include <ext/hash_set>
23824#ifdef HAVE_NAMESPACES
23825using namespace __gnu_cxx;
23826#endif
John Criswell7a73b802003-06-30 21:59:07 +000023827int
23828main ()
23829{
Brian Gaeke90583492003-11-10 03:06:28 +000023830hash_set<int> t;
23831 ;
23832 return 0;
23833}
23834_ACEOF
23835rm -f conftest.$ac_objext
23836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023837 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000023838 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023839 grep -v '^ *+' conftest.er1 >conftest.err
23840 rm -f conftest.er1
23841 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000023842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023844 { ac_try='test -z "$ac_cxx_werror_flag"
23845 || test ! -s conftest.err'
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; } &&
23851 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000023852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; }; then
23857 ac_cv_cxx_have_gnu_ext_hash_set=yes
23858else
23859 echo "$as_me: failed program was:" >&5
23860sed 's/^/| /' conftest.$ac_ext >&5
23861
23862ac_cv_cxx_have_gnu_ext_hash_set=no
23863fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000023865 ac_ext=c
23866ac_cpp='$CPP $CPPFLAGS'
23867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23869ac_compiler_gnu=$ac_cv_c_compiler_gnu
23870
23871fi
23872echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
23873echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023874 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
23875 then
John Criswell9f011862004-09-24 18:28:00 +000023876
23877cat >>confdefs.h <<\_ACEOF
23878#define HAVE_GNU_EXT_HASH_SET 1
23879_ACEOF
23880
23881 else
23882
23883cat >>confdefs.h <<\_ACEOF
23884#define HAVE_GNU_EXT_HASH_SET 0
23885_ACEOF
23886
Brian Gaeke90583492003-11-10 03:06:28 +000023887 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023888
Brian Gaeke90583492003-11-10 03:06:28 +000023889 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
23890echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
23891if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23893else
23894
Brian Gaeke90583492003-11-10 03:06:28 +000023895 ac_ext=cc
23896ac_cpp='$CXXCPP $CPPFLAGS'
23897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23900
23901 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000023902/* confdefs.h. */
23903_ACEOF
23904cat confdefs.h >>conftest.$ac_ext
23905cat >>conftest.$ac_ext <<_ACEOF
23906/* end confdefs.h. */
23907#include <hash_set>
23908int
23909main ()
23910{
John Criswell7a73b802003-06-30 21:59:07 +000023911hash_set<int> t; return 0;
23912 ;
23913 return 0;
23914}
23915_ACEOF
23916rm -f conftest.$ac_objext
23917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023918 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023920 grep -v '^ *+' conftest.er1 >conftest.err
23921 rm -f conftest.er1
23922 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023925 { ac_try='test -z "$ac_cxx_werror_flag"
23926 || test ! -s conftest.err'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; } &&
23932 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000023938 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000023939else
23940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023941sed 's/^/| /' conftest.$ac_ext >&5
23942
Brian Gaeke90583492003-11-10 03:06:28 +000023943ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000023944fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023946 ac_ext=c
23947ac_cpp='$CPP $CPPFLAGS'
23948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23950ac_compiler_gnu=$ac_cv_c_compiler_gnu
23951
John Criswell7a73b802003-06-30 21:59:07 +000023952fi
Brian Gaeke90583492003-11-10 03:06:28 +000023953echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
23954echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023955 if test "$ac_cv_cxx_have_global_hash_set" = yes
23956 then
John Criswell9f011862004-09-24 18:28:00 +000023957
23958cat >>confdefs.h <<\_ACEOF
23959#define HAVE_GLOBAL_HASH_SET 1
23960_ACEOF
23961
23962 else
23963
23964cat >>confdefs.h <<\_ACEOF
23965#define HAVE_GLOBAL_HASH_SET 0
23966_ACEOF
23967
Brian Gaeke90583492003-11-10 03:06:28 +000023968 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023969
John Criswell7a73b802003-06-30 21:59:07 +000023970echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
23971echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
23972if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974else
23975
John Criswell7a73b802003-06-30 21:59:07 +000023976 ac_ext=cc
23977ac_cpp='$CXXCPP $CPPFLAGS'
23978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23981
23982 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023983/* confdefs.h. */
23984_ACEOF
23985cat confdefs.h >>conftest.$ac_ext
23986cat >>conftest.$ac_ext <<_ACEOF
23987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023988#include <iterator>
23989#ifdef HAVE_NAMESPACES
23990using namespace std;
23991#endif
John Criswell7a73b802003-06-30 21:59:07 +000023992int
23993main ()
23994{
23995iterator<int,int,int> t; return 0;
23996 ;
23997 return 0;
23998}
23999_ACEOF
24000rm -f conftest.$ac_objext
24001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024002 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024003 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024009 { ac_try='test -z "$ac_cxx_werror_flag"
24010 || test ! -s conftest.err'
24011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); }; } &&
24016 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24018 (eval $ac_try) 2>&5
24019 ac_status=$?
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); }; }; then
24022 ac_cv_cxx_have_std_iterator=yes
24023else
24024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024025sed 's/^/| /' conftest.$ac_ext >&5
24026
John Criswell7a73b802003-06-30 21:59:07 +000024027ac_cv_cxx_have_std_iterator=no
24028fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024030 ac_ext=c
24031ac_cpp='$CPP $CPPFLAGS'
24032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24034ac_compiler_gnu=$ac_cv_c_compiler_gnu
24035
24036
24037fi
24038echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
24039echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000024040if test "$ac_cv_cxx_have_std_iterator" = yes
24041then
John Criswell40468462004-09-24 21:19:06 +000024042
24043cat >>confdefs.h <<\_ACEOF
24044#define HAVE_STD_ITERATOR 1
24045_ACEOF
24046
24047else
24048
24049cat >>confdefs.h <<\_ACEOF
24050#define HAVE_STD_ITERATOR 0
24051_ACEOF
24052
John Criswell7a73b802003-06-30 21:59:07 +000024053fi
24054
24055echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
24056echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
24057if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
24058 echo $ECHO_N "(cached) $ECHO_C" >&6
24059else
24060
John Criswell7a73b802003-06-30 21:59:07 +000024061 ac_ext=cc
24062ac_cpp='$CXXCPP $CPPFLAGS'
24063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24066
24067 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024068/* confdefs.h. */
24069_ACEOF
24070cat confdefs.h >>conftest.$ac_ext
24071cat >>conftest.$ac_ext <<_ACEOF
24072/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024073#include <iterator>
24074#ifdef HAVE_NAMESPACES
24075using namespace std;
24076#endif
John Criswell7a73b802003-06-30 21:59:07 +000024077int
24078main ()
24079{
John Criswellc78022e2003-07-29 19:11:58 +000024080bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000024081 ;
24082 return 0;
24083}
24084_ACEOF
24085rm -f conftest.$ac_objext
24086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024087 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024089 grep -v '^ *+' conftest.er1 >conftest.err
24090 rm -f conftest.er1
24091 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024094 { ac_try='test -z "$ac_cxx_werror_flag"
24095 || test ! -s conftest.err'
24096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097 (eval $ac_try) 2>&5
24098 ac_status=$?
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); }; } &&
24101 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24104 ac_status=$?
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); }; }; then
24107 ac_cv_cxx_have_bi_iterator=yes
24108else
24109 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024110sed 's/^/| /' conftest.$ac_ext >&5
24111
John Criswell7a73b802003-06-30 21:59:07 +000024112ac_cv_cxx_have_bi_iterator=no
24113fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024115 ac_ext=c
24116ac_cpp='$CPP $CPPFLAGS'
24117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119ac_compiler_gnu=$ac_cv_c_compiler_gnu
24120
24121
24122fi
24123echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
24124echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000024125if test "$ac_cv_cxx_have_bi_iterator" = yes
24126then
John Criswell40468462004-09-24 21:19:06 +000024127
24128cat >>confdefs.h <<\_ACEOF
24129#define HAVE_BI_ITERATOR 1
24130_ACEOF
24131
24132else
24133
24134cat >>confdefs.h <<\_ACEOF
24135#define HAVE_BI_ITERATOR 0
24136_ACEOF
24137
John Criswell7a73b802003-06-30 21:59:07 +000024138fi
24139
24140echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
24141echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
24142if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24144else
24145
John Criswell7a73b802003-06-30 21:59:07 +000024146 ac_ext=cc
24147ac_cpp='$CXXCPP $CPPFLAGS'
24148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24151
24152 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024153/* confdefs.h. */
24154_ACEOF
24155cat confdefs.h >>conftest.$ac_ext
24156cat >>conftest.$ac_ext <<_ACEOF
24157/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024158#include <iterator>
24159#ifdef HAVE_NAMESPACES
24160using namespace std;
24161#endif
John Criswell7a73b802003-06-30 21:59:07 +000024162int
24163main ()
24164{
John Criswellc78022e2003-07-29 19:11:58 +000024165forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000024166 ;
24167 return 0;
24168}
24169_ACEOF
24170rm -f conftest.$ac_objext
24171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024172 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024173 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024174 grep -v '^ *+' conftest.er1 >conftest.err
24175 rm -f conftest.er1
24176 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024179 { ac_try='test -z "$ac_cxx_werror_flag"
24180 || test ! -s conftest.err'
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24183 ac_status=$?
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; } &&
24186 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; }; then
24192 ac_cv_cxx_have_fwd_iterator=yes
24193else
24194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024195sed 's/^/| /' conftest.$ac_ext >&5
24196
John Criswell7a73b802003-06-30 21:59:07 +000024197ac_cv_cxx_have_fwd_iterator=no
24198fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024200 ac_ext=c
24201ac_cpp='$CPP $CPPFLAGS'
24202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24204ac_compiler_gnu=$ac_cv_c_compiler_gnu
24205
24206
24207fi
24208echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
24209echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000024210if test "$ac_cv_cxx_have_fwd_iterator" = yes
24211then
John Criswell40468462004-09-24 21:19:06 +000024212
24213cat >>confdefs.h <<\_ACEOF
24214#define HAVE_FWD_ITERATOR 1
24215_ACEOF
24216
24217else
24218
24219cat >>confdefs.h <<\_ACEOF
24220#define HAVE_FWD_ITERATOR 0
24221_ACEOF
24222
John Criswell7a73b802003-06-30 21:59:07 +000024223fi
24224
24225
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024226echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
24227echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
24228if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24230else
24231 ac_ext=cc
24232ac_cpp='$CXXCPP $CPPFLAGS'
24233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24236
Reid Spencerabec8f92004-10-27 23:03:44 +000024237 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024238/* confdefs.h. */
24239_ACEOF
24240cat confdefs.h >>conftest.$ac_ext
24241cat >>conftest.$ac_ext <<_ACEOF
24242/* end confdefs.h. */
24243#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000024244int
24245main ()
24246{
24247float f; isnan(f);
24248 ;
24249 return 0;
24250}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024251_ACEOF
24252rm -f conftest.$ac_objext
24253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024254 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024256 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1
24258 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024261 { ac_try='test -z "$ac_cxx_werror_flag"
24262 || test ! -s conftest.err'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24265 ac_status=$?
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; } &&
24268 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24271 ac_status=$?
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; }; then
24274 ac_cv_func_isnan_in_math_h=yes
24275else
24276 echo "$as_me: failed program was:" >&5
24277sed 's/^/| /' conftest.$ac_ext >&5
24278
24279ac_cv_func_isnan_in_math_h=no
24280fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024282 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024283ac_cpp='$CPP $CPPFLAGS'
24284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24286ac_compiler_gnu=$ac_cv_c_compiler_gnu
24287
24288fi
24289echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
24290echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024291
24292
24293if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024294
24295cat >>confdefs.h <<\_ACEOF
24296#define HAVE_ISNAN_IN_MATH_H 1
24297_ACEOF
24298
Reid Spencerabec8f92004-10-27 23:03:44 +000024299fi
24300
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024301echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
24302echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
24303if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24305else
24306 ac_ext=cc
24307ac_cpp='$CXXCPP $CPPFLAGS'
24308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24311
Reid Spencerabec8f92004-10-27 23:03:44 +000024312 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024313/* confdefs.h. */
24314_ACEOF
24315cat confdefs.h >>conftest.$ac_ext
24316cat >>conftest.$ac_ext <<_ACEOF
24317/* end confdefs.h. */
24318#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024319int
24320main ()
24321{
24322float f; isnan(f);
24323 ;
24324 return 0;
24325}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024326_ACEOF
24327rm -f conftest.$ac_objext
24328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024329 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024331 grep -v '^ *+' conftest.er1 >conftest.err
24332 rm -f conftest.er1
24333 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024336 { ac_try='test -z "$ac_cxx_werror_flag"
24337 || test ! -s conftest.err'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24340 ac_status=$?
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 ac_cv_func_isnan_in_cmath=yes
24350else
24351 echo "$as_me: failed program was:" >&5
24352sed 's/^/| /' conftest.$ac_ext >&5
24353
24354ac_cv_func_isnan_in_cmath=no
24355fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024357 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024358ac_cpp='$CPP $CPPFLAGS'
24359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24361ac_compiler_gnu=$ac_cv_c_compiler_gnu
24362
24363fi
24364echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
24365echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024366
24367if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024368
24369cat >>confdefs.h <<\_ACEOF
24370#define HAVE_ISNAN_IN_CMATH 1
24371_ACEOF
24372
Reid Spencerabec8f92004-10-27 23:03:44 +000024373fi
24374
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024375echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
24376echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
24377if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
24378 echo $ECHO_N "(cached) $ECHO_C" >&6
24379else
24380 ac_ext=cc
24381ac_cpp='$CXXCPP $CPPFLAGS'
24382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24385
Reid Spencerabec8f92004-10-27 23:03:44 +000024386 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
24392#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024393int
24394main ()
24395{
24396float f; std::isnan(f);
24397 ;
24398 return 0;
24399}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024400_ACEOF
24401rm -f conftest.$ac_objext
24402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024403 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024404 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024405 grep -v '^ *+' conftest.er1 >conftest.err
24406 rm -f conftest.er1
24407 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024410 { ac_try='test -z "$ac_cxx_werror_flag"
24411 || test ! -s conftest.err'
24412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24414 ac_status=$?
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; } &&
24417 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24423 ac_cv_func_std_isnan_in_cmath=yes
24424else
24425 echo "$as_me: failed program was:" >&5
24426sed 's/^/| /' conftest.$ac_ext >&5
24427
24428ac_cv_func_std_isnan_in_cmath=no
24429fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024431 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024432ac_cpp='$CPP $CPPFLAGS'
24433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24435ac_compiler_gnu=$ac_cv_c_compiler_gnu
24436
24437fi
24438echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
24439echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024440
24441if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024442
24443cat >>confdefs.h <<\_ACEOF
24444#define HAVE_STD_ISNAN_IN_CMATH 1
24445_ACEOF
24446
Reid Spencerabec8f92004-10-27 23:03:44 +000024447fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024448
24449
Brian Gaeke52a551d2004-07-21 03:14:12 +000024450echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
24451echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
24452if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24454else
24455 ac_ext=cc
24456ac_cpp='$CXXCPP $CPPFLAGS'
24457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24460
Reid Spencerabec8f92004-10-27 23:03:44 +000024461 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000024462/* confdefs.h. */
24463_ACEOF
24464cat confdefs.h >>conftest.$ac_ext
24465cat >>conftest.$ac_ext <<_ACEOF
24466/* end confdefs.h. */
24467#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000024468int
24469main ()
24470{
24471float f; isinf(f);
24472 ;
24473 return 0;
24474}
Brian Gaeke52a551d2004-07-21 03:14:12 +000024475_ACEOF
24476rm -f conftest.$ac_objext
24477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024478 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000024479 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000024483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024485 { ac_try='test -z "$ac_cxx_werror_flag"
24486 || test ! -s conftest.err'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; } &&
24492 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000024493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498 ac_cv_func_isinf_in_math_h=yes
24499else
24500 echo "$as_me: failed program was:" >&5
24501sed 's/^/| /' conftest.$ac_ext >&5
24502
24503ac_cv_func_isinf_in_math_h=no
24504fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024506 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000024507ac_cpp='$CPP $CPPFLAGS'
24508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510ac_compiler_gnu=$ac_cv_c_compiler_gnu
24511
24512fi
24513echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
24514echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024515
24516if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000024517
24518cat >>confdefs.h <<\_ACEOF
24519#define HAVE_ISINF_IN_MATH_H 1
24520_ACEOF
24521
Reid Spencerabec8f92004-10-27 23:03:44 +000024522fi
24523
Brian Gaeke52a551d2004-07-21 03:14:12 +000024524echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24525echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24526if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24528else
24529 ac_ext=cc
24530ac_cpp='$CXXCPP $CPPFLAGS'
24531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24534
Reid Spencerabec8f92004-10-27 23:03:44 +000024535 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000024536/* confdefs.h. */
24537_ACEOF
24538cat confdefs.h >>conftest.$ac_ext
24539cat >>conftest.$ac_ext <<_ACEOF
24540/* end confdefs.h. */
24541#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024542int
24543main ()
24544{
24545float f; isinf(f);
24546 ;
24547 return 0;
24548}
Brian Gaeke52a551d2004-07-21 03:14:12 +000024549_ACEOF
24550rm -f conftest.$ac_objext
24551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024552 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000024553 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024554 grep -v '^ *+' conftest.er1 >conftest.err
24555 rm -f conftest.er1
24556 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000024557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024559 { ac_try='test -z "$ac_cxx_werror_flag"
24560 || test ! -s conftest.err'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; } &&
24566 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000024567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24569 ac_status=$?
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; }; then
24572 ac_cv_func_isinf_in_cmath=yes
24573else
24574 echo "$as_me: failed program was:" >&5
24575sed 's/^/| /' conftest.$ac_ext >&5
24576
24577ac_cv_func_isinf_in_cmath=no
24578fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024580 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000024581ac_cpp='$CPP $CPPFLAGS'
24582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24584ac_compiler_gnu=$ac_cv_c_compiler_gnu
24585
24586fi
24587echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24588echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024589
24590if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000024591
24592cat >>confdefs.h <<\_ACEOF
24593#define HAVE_ISINF_IN_CMATH 1
24594_ACEOF
24595
Reid Spencerabec8f92004-10-27 23:03:44 +000024596fi
24597
Brian Gaeke52a551d2004-07-21 03:14:12 +000024598echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24599echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24600if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24602else
24603 ac_ext=cc
24604ac_cpp='$CXXCPP $CPPFLAGS'
24605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24608
Reid Spencerabec8f92004-10-27 23:03:44 +000024609 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000024610/* confdefs.h. */
24611_ACEOF
24612cat confdefs.h >>conftest.$ac_ext
24613cat >>conftest.$ac_ext <<_ACEOF
24614/* end confdefs.h. */
24615#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024616int
24617main ()
24618{
24619float f; std::isinf(f)}
24620 ;
24621 return 0;
24622}
Brian Gaeke52a551d2004-07-21 03:14:12 +000024623_ACEOF
24624rm -f conftest.$ac_objext
24625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024626 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000024627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024628 grep -v '^ *+' conftest.er1 >conftest.err
24629 rm -f conftest.er1
24630 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000024631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024633 { ac_try='test -z "$ac_cxx_werror_flag"
24634 || test ! -s conftest.err'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; } &&
24640 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000024641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); }; }; then
24646 ac_cv_func_std_isinf_in_cmath=yes
24647else
24648 echo "$as_me: failed program was:" >&5
24649sed 's/^/| /' conftest.$ac_ext >&5
24650
24651ac_cv_func_std_isinf_in_cmath=no
24652fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024654 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000024655ac_cpp='$CPP $CPPFLAGS'
24656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24658ac_compiler_gnu=$ac_cv_c_compiler_gnu
24659
24660fi
24661echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
24662echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024663
24664if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000024665
24666cat >>confdefs.h <<\_ACEOF
24667#define HAVE_STD_ISINF_IN_CMATH 1
24668_ACEOF
24669
Reid Spencerabec8f92004-10-27 23:03:44 +000024670fi
24671
Brian Gaeked59a6472004-07-21 03:33:58 +000024672echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
24673echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
24674if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24676else
24677 ac_ext=cc
24678ac_cpp='$CXXCPP $CPPFLAGS'
24679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24682
Reid Spencerabec8f92004-10-27 23:03:44 +000024683 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000024684/* confdefs.h. */
24685_ACEOF
24686cat confdefs.h >>conftest.$ac_ext
24687cat >>conftest.$ac_ext <<_ACEOF
24688/* end confdefs.h. */
24689#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000024690int
24691main ()
24692{
24693float f; finite(f);
24694 ;
24695 return 0;
24696}
Brian Gaeked59a6472004-07-21 03:33:58 +000024697_ACEOF
24698rm -f conftest.$ac_objext
24699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024700 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000024701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000024705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024707 { ac_try='test -z "$ac_cxx_werror_flag"
24708 || test ! -s conftest.err'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; } &&
24714 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000024715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
24720 ac_cv_func_finite_in_ieeefp_h=yes
24721else
24722 echo "$as_me: failed program was:" >&5
24723sed 's/^/| /' conftest.$ac_ext >&5
24724
24725ac_cv_func_finite_in_ieeefp_h=no
24726fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024728 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000024729ac_cpp='$CPP $CPPFLAGS'
24730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24732ac_compiler_gnu=$ac_cv_c_compiler_gnu
24733
24734fi
24735echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
24736echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024737
Brian Gaeke6802b552004-10-28 05:06:45 +000024738if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000024739
24740cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000024741#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000024742_ACEOF
24743
Reid Spencerabec8f92004-10-27 23:03:44 +000024744fi
24745
24746
24747
John Criswell7a73b802003-06-30 21:59:07 +000024748
24749
24750for ac_header in stdlib.h unistd.h
24751do
24752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24753if eval "test \"\${$as_ac_Header+set}\" = set"; then
24754 echo "$as_me:$LINENO: checking for $ac_header" >&5
24755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24756if eval "test \"\${$as_ac_Header+set}\" = set"; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24758fi
24759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24761else
24762 # Is the header compilable?
24763echo "$as_me:$LINENO: checking $ac_header usability" >&5
24764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24765cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024766/* confdefs.h. */
24767_ACEOF
24768cat confdefs.h >>conftest.$ac_ext
24769cat >>conftest.$ac_ext <<_ACEOF
24770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024771$ac_includes_default
24772#include <$ac_header>
24773_ACEOF
24774rm -f conftest.$ac_objext
24775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024776 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024777 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024778 grep -v '^ *+' conftest.er1 >conftest.err
24779 rm -f conftest.er1
24780 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024783 { ac_try='test -z "$ac_c_werror_flag"
24784 || test ! -s conftest.err'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_header_compiler=yes
24797else
24798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024799sed 's/^/| /' conftest.$ac_ext >&5
24800
John Criswell7a73b802003-06-30 21:59:07 +000024801ac_header_compiler=no
24802fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24805echo "${ECHO_T}$ac_header_compiler" >&6
24806
24807# Is the header present?
24808echo "$as_me:$LINENO: checking $ac_header presence" >&5
24809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24810cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024811/* confdefs.h. */
24812_ACEOF
24813cat confdefs.h >>conftest.$ac_ext
24814cat >>conftest.$ac_ext <<_ACEOF
24815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024816#include <$ac_header>
24817_ACEOF
24818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24820 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000024821 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000024822 rm -f conftest.er1
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev/null; then
24826 if test -s conftest.err; then
24827 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000024828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000024829 else
24830 ac_cpp_err=
24831 fi
24832else
24833 ac_cpp_err=yes
24834fi
24835if test -z "$ac_cpp_err"; then
24836 ac_header_preproc=yes
24837else
24838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024839sed 's/^/| /' conftest.$ac_ext >&5
24840
John Criswell7a73b802003-06-30 21:59:07 +000024841 ac_header_preproc=no
24842fi
24843rm -f conftest.err conftest.$ac_ext
24844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24845echo "${ECHO_T}$ac_header_preproc" >&6
24846
24847# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24849 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000024850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000024852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24854 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000024855 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024856 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000024857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000024859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000024865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000024867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000024869 (
24870 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000024871## ----------------------------------- ##
24872## Report this to llvmbugs@cs.uiuc.edu ##
24873## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000024874_ASBOX
24875 ) |
24876 sed "s/^/$as_me: WARNING: /" >&2
24877 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024878esac
24879echo "$as_me:$LINENO: checking for $ac_header" >&5
24880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24881if eval "test \"\${$as_ac_Header+set}\" = set"; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24883else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024884 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000024885fi
24886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24888
24889fi
24890if test `eval echo '${'$as_ac_Header'}'` = yes; then
24891 cat >>confdefs.h <<_ACEOF
24892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24893_ACEOF
24894
24895fi
24896
24897done
24898
24899
24900for ac_func in getpagesize
24901do
24902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24903echo "$as_me:$LINENO: checking for $ac_func" >&5
24904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24905if eval "test \"\${$as_ac_var+set}\" = set"; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024909/* confdefs.h. */
24910_ACEOF
24911cat confdefs.h >>conftest.$ac_ext
24912cat >>conftest.$ac_ext <<_ACEOF
24913/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24916#define $ac_func innocuous_$ac_func
24917
John Criswell7a73b802003-06-30 21:59:07 +000024918/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024919 which can conflict with char $ac_func (); below.
24920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24921 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024922
John Criswell0c38eaf2003-09-10 15:17:25 +000024923#ifdef __STDC__
24924# include <limits.h>
24925#else
24926# include <assert.h>
24927#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024928
24929#undef $ac_func
24930
John Criswell7a73b802003-06-30 21:59:07 +000024931/* Override any gcc2 internal prototype to avoid an error. */
24932#ifdef __cplusplus
24933extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024934{
John Criswell7a73b802003-06-30 21:59:07 +000024935#endif
24936/* We use char because int might match the return type of a gcc2
24937 builtin and then its argument prototype would still apply. */
24938char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000024939/* The GNU C library defines this for functions which it implements
24940 to always fail with ENOSYS. Some functions are actually named
24941 something starting with __ and the normal name is an alias. */
24942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24943choke me
24944#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024945char (*f) () = $ac_func;
24946#endif
24947#ifdef __cplusplus
24948}
John Criswell7a73b802003-06-30 21:59:07 +000024949#endif
24950
John Criswell0c38eaf2003-09-10 15:17:25 +000024951int
24952main ()
24953{
24954return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000024955 ;
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 eval "$as_ac_var=yes"
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 +000024986eval "$as_ac_var=no"
24987fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024988rm -f conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024990fi
24991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24993if test `eval echo '${'$as_ac_var'}'` = yes; then
24994 cat >>confdefs.h <<_ACEOF
24995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24996_ACEOF
24997
24998fi
24999done
25000
25001echo "$as_me:$LINENO: checking for working mmap" >&5
25002echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25003if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25005else
25006 if test "$cross_compiling" = yes; then
25007 ac_cv_func_mmap_fixed_mapped=no
25008else
25009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025010/* confdefs.h. */
25011_ACEOF
25012cat confdefs.h >>conftest.$ac_ext
25013cat >>conftest.$ac_ext <<_ACEOF
25014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025015$ac_includes_default
25016/* malloc might have been renamed as rpl_malloc. */
25017#undef malloc
25018
25019/* Thanks to Mike Haertel and Jim Avera for this test.
25020 Here is a matrix of mmap possibilities:
25021 mmap private not fixed
25022 mmap private fixed at somewhere currently unmapped
25023 mmap private fixed at somewhere already mapped
25024 mmap shared not fixed
25025 mmap shared fixed at somewhere currently unmapped
25026 mmap shared fixed at somewhere already mapped
25027 For private mappings, we should verify that changes cannot be read()
25028 back from the file, nor mmap's back from the file at a different
25029 address. (There have been systems where private was not correctly
25030 implemented like the infamous i386 svr4.0, and systems where the
25031 VM page cache was not coherent with the file system buffer cache
25032 like early versions of FreeBSD and possibly contemporary NetBSD.)
25033 For shared mappings, we should conversely verify that changes get
25034 propagated back to all the places they're supposed to be.
25035
25036 Grep wants private fixed already mapped.
25037 The main things grep needs to know about mmap are:
25038 * does it exist and is it safe to write into the mmap'd area
25039 * how to use it (BSD variants) */
25040
25041#include <fcntl.h>
25042#include <sys/mman.h>
25043
25044#if !STDC_HEADERS && !HAVE_STDLIB_H
25045char *malloc ();
25046#endif
25047
25048/* This mess was copied from the GNU getpagesize.h. */
25049#if !HAVE_GETPAGESIZE
25050/* Assume that all systems that can run configure have sys/param.h. */
25051# if !HAVE_SYS_PARAM_H
25052# define HAVE_SYS_PARAM_H 1
25053# endif
25054
25055# ifdef _SC_PAGESIZE
25056# define getpagesize() sysconf(_SC_PAGESIZE)
25057# else /* no _SC_PAGESIZE */
25058# if HAVE_SYS_PARAM_H
25059# include <sys/param.h>
25060# ifdef EXEC_PAGESIZE
25061# define getpagesize() EXEC_PAGESIZE
25062# else /* no EXEC_PAGESIZE */
25063# ifdef NBPG
25064# define getpagesize() NBPG * CLSIZE
25065# ifndef CLSIZE
25066# define CLSIZE 1
25067# endif /* no CLSIZE */
25068# else /* no NBPG */
25069# ifdef NBPC
25070# define getpagesize() NBPC
25071# else /* no NBPC */
25072# ifdef PAGESIZE
25073# define getpagesize() PAGESIZE
25074# endif /* PAGESIZE */
25075# endif /* no NBPC */
25076# endif /* no NBPG */
25077# endif /* no EXEC_PAGESIZE */
25078# else /* no HAVE_SYS_PARAM_H */
25079# define getpagesize() 8192 /* punt totally */
25080# endif /* no HAVE_SYS_PARAM_H */
25081# endif /* no _SC_PAGESIZE */
25082
25083#endif /* no HAVE_GETPAGESIZE */
25084
25085int
25086main ()
25087{
25088 char *data, *data2, *data3;
25089 int i, pagesize;
25090 int fd;
25091
25092 pagesize = getpagesize ();
25093
25094 /* First, make a file with some known garbage in it. */
25095 data = (char *) malloc (pagesize);
25096 if (!data)
25097 exit (1);
25098 for (i = 0; i < pagesize; ++i)
25099 *(data + i) = rand ();
25100 umask (0);
25101 fd = creat ("conftest.mmap", 0600);
25102 if (fd < 0)
25103 exit (1);
25104 if (write (fd, data, pagesize) != pagesize)
25105 exit (1);
25106 close (fd);
25107
25108 /* Next, try to mmap the file at a fixed address which already has
25109 something else allocated at it. If we can, also make sure that
25110 we see the same garbage. */
25111 fd = open ("conftest.mmap", O_RDWR);
25112 if (fd < 0)
25113 exit (1);
25114 data2 = (char *) malloc (2 * pagesize);
25115 if (!data2)
25116 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000025117 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000025118 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000025119 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000025120 exit (1);
25121 for (i = 0; i < pagesize; ++i)
25122 if (*(data + i) != *(data2 + i))
25123 exit (1);
25124
25125 /* Finally, make sure that changes to the mapped area do not
25126 percolate back to the file as seen by read(). (This is a bug on
25127 some variants of i386 svr4.0.) */
25128 for (i = 0; i < pagesize; ++i)
25129 *(data2 + i) = *(data2 + i) + 1;
25130 data3 = (char *) malloc (pagesize);
25131 if (!data3)
25132 exit (1);
25133 if (read (fd, data3, pagesize) != pagesize)
25134 exit (1);
25135 for (i = 0; i < pagesize; ++i)
25136 if (*(data + i) != *(data3 + i))
25137 exit (1);
25138 close (fd);
25139 exit (0);
25140}
25141_ACEOF
25142rm -f conftest$ac_exeext
25143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144 (eval $ac_link) 2>&5
25145 ac_status=$?
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25150 ac_status=$?
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_cv_func_mmap_fixed_mapped=yes
25154else
25155 echo "$as_me: program exited with status $ac_status" >&5
25156echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025157sed 's/^/| /' conftest.$ac_ext >&5
25158
John Criswell7a73b802003-06-30 21:59:07 +000025159( exit $ac_status )
25160ac_cv_func_mmap_fixed_mapped=no
25161fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025162rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025163fi
25164fi
25165echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25166echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25167if test $ac_cv_func_mmap_fixed_mapped = yes; then
25168
25169cat >>confdefs.h <<\_ACEOF
25170#define HAVE_MMAP 1
25171_ACEOF
25172
25173fi
25174rm -f conftest.mmap
25175
25176echo "$as_me:$LINENO: checking for mmap of files" >&5
25177echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
25178if test "${ac_cv_func_mmap_file+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25180else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025181 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000025182ac_cpp='$CPP $CPPFLAGS'
25183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25185ac_compiler_gnu=$ac_cv_c_compiler_gnu
25186
25187 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000025188 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000025189else
25190 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025191
Reid Spencer777ce172004-09-20 04:09:56 +000025192 /* confdefs.h. */
25193_ACEOF
25194cat confdefs.h >>conftest.$ac_ext
25195cat >>conftest.$ac_ext <<_ACEOF
25196/* end confdefs.h. */
25197
John Criswell7a73b802003-06-30 21:59:07 +000025198#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000025199#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000025200#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000025201
25202int
25203main ()
25204{
John Criswell7a73b802003-06-30 21:59:07 +000025205
25206 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000025207 fd = creat ("foo",0777);
25208 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25209 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000025210 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000025211 ;
25212 return 0;
25213}
John Criswell7a73b802003-06-30 21:59:07 +000025214_ACEOF
25215rm -f conftest$ac_exeext
25216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25217 (eval $ac_link) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_func_mmap_file=yes
25227else
25228 echo "$as_me: program exited with status $ac_status" >&5
25229echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025230sed 's/^/| /' conftest.$ac_ext >&5
25231
John Criswell7a73b802003-06-30 21:59:07 +000025232( exit $ac_status )
25233ac_cv_func_mmap_file=no
25234fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025236fi
25237 ac_ext=c
25238ac_cpp='$CPP $CPPFLAGS'
25239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25241ac_compiler_gnu=$ac_cv_c_compiler_gnu
25242
25243
25244fi
25245echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25246echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25247if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000025248
25249cat >>confdefs.h <<\_ACEOF
25250#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000025251_ACEOF
25252
25253 MMAP_FILE=yes
25254
25255fi
25256
John Criswell7a73b802003-06-30 21:59:07 +000025257echo "$as_me:$LINENO: checking for mprotect" >&5
25258echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25259if test "${ac_cv_func_mprotect+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25261else
25262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000025268/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25270#define mprotect innocuous_mprotect
25271
John Criswell7a73b802003-06-30 21:59:07 +000025272/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000025273 which can conflict with char mprotect (); below.
25274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25275 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000025276
John Criswell0c38eaf2003-09-10 15:17:25 +000025277#ifdef __STDC__
25278# include <limits.h>
25279#else
25280# include <assert.h>
25281#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000025282
25283#undef mprotect
25284
John Criswell7a73b802003-06-30 21:59:07 +000025285/* Override any gcc2 internal prototype to avoid an error. */
25286#ifdef __cplusplus
25287extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000025288{
John Criswell7a73b802003-06-30 21:59:07 +000025289#endif
25290/* We use char because int might match the return type of a gcc2
25291 builtin and then its argument prototype would still apply. */
25292char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000025293/* The GNU C library defines this for functions which it implements
25294 to always fail with ENOSYS. Some functions are actually named
25295 something starting with __ and the normal name is an alias. */
25296#if defined (__stub_mprotect) || defined (__stub___mprotect)
25297choke me
25298#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025299char (*f) () = mprotect;
25300#endif
25301#ifdef __cplusplus
25302}
John Criswell7a73b802003-06-30 21:59:07 +000025303#endif
25304
John Criswell0c38eaf2003-09-10 15:17:25 +000025305int
25306main ()
25307{
25308return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000025309 ;
25310 return 0;
25311}
25312_ACEOF
25313rm -f conftest.$ac_objext conftest$ac_exeext
25314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025315 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025317 grep -v '^ *+' conftest.er1 >conftest.err
25318 rm -f conftest.er1
25319 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025322 { ac_try='test -z "$ac_c_werror_flag"
25323 || test ! -s conftest.err'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; } &&
25329 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25332 ac_status=$?
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; }; then
25335 ac_cv_func_mprotect=yes
25336else
25337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025338sed 's/^/| /' conftest.$ac_ext >&5
25339
John Criswell7a73b802003-06-30 21:59:07 +000025340ac_cv_func_mprotect=no
25341fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025342rm -f conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025344fi
25345echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25346echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25347if test $ac_cv_func_mprotect = yes; then
25348 :
25349else
25350 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25351echo "$as_me: error: Function mprotect() required but not found" >&2;}
25352 { (exit 1); exit 1; }; }
25353fi
25354
25355
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025356if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000025357then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025358 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
25359echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000025360fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025361if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000025362then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025363 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25364echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000025365fi
John Criswell7a73b802003-06-30 21:59:07 +000025366
25367
Brian Gaekef3b24102003-11-16 18:38:14 +000025368echo "$as_me:$LINENO: checking for llvm-gcc" >&5
25369echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025370if test "${llvm_cv_llvmgcc+set}" = set; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25372else
25373 llvm_cv_llvmgcc='llvmgcc_not_found'
25374if test -d "$LLVMGCCDIR" ; then
25375 if test -x "$LLVMGCCDIR/bin/gcc" ; then
25376 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
25377 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000025378fi
Brian Gaekef3b24102003-11-16 18:38:14 +000025379fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025380echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
25381echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
25382
Brian Gaekef3b24102003-11-16 18:38:14 +000025383echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
25384echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025385if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25387else
25388 llvm_cv_llvmgcc_sanity="no"
25389if test -x "$llvm_cv_llvmgcc" ; then
25390 cp /dev/null conftest.c
25391 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
25392 if test $? -eq 0 ; then
25393 llvm_cv_llvmgcc_sanity="yes"
25394 fi
25395 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000025396fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025397fi
25398echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
25399echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
25400
25401if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
25402 LLVMGCC="$llvm_cv_llvmgcc"
25403
25404 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
25405 LLVMCC1=$llvmcc1path
25406
25407 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
25408 LLVMCC1PLUS=$llvmcc1pluspath
25409
Brian Gaekef3b24102003-11-16 18:38:14 +000025410fi
25411
Brian Gaeke554831c2004-01-21 19:39:29 +000025412echo "$as_me:$LINENO: checking for shared library suffix" >&5
25413echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000025414eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000025415echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
25416echo "${ECHO_T}$SHLIBEXT" >&6
25417SHLIBEXT=$SHLIBEXT
25418
25419
25420cat >>confdefs.h <<_ACEOF
25421#define SHLIBEXT "$SHLIBEXT"
25422_ACEOF
25423
25424
Reid Spencere9de0912004-08-20 09:03:57 +000025425# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025426# information into substitutions that will end up in Makefile.config.in
25427# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000025428eval LLVM_PREFIX="${prefix}";
25429eval LLVM_BINDIR="${prefix}/bin";
25430eval LLVM_LIBDIR="${prefix}/lib";
25431eval LLVM_DATADIR="${prefix}/data";
25432eval LLVM_DOCSDIR="${prefix}/docs";
25433eval LLVM_ETCDIR="${prefix}/etc";
25434eval LLVM_INCLUDEDIR="${prefix}/include";
25435eval LLVM_INFODIR="${prefix}/info";
25436eval LLVM_MANDIR="${prefix}/man";
25437LLVM_CONFIGTIME=`date`
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025449# Place the various directores into the config.h file as #defines so that we
25450# can know about the installation paths within LLVM.
25451
Reid Spencere9de0912004-08-20 09:03:57 +000025452cat >>confdefs.h <<_ACEOF
25453#define LLVM_PREFIX "$LLVM_PREFIX"
25454_ACEOF
25455
25456
25457cat >>confdefs.h <<_ACEOF
25458#define LLVM_BINDIR "$LLVM_BINDIR"
25459_ACEOF
25460
25461
25462cat >>confdefs.h <<_ACEOF
25463#define LLVM_LIBDIR "$LLVM_LIBDIR"
25464_ACEOF
25465
25466
25467cat >>confdefs.h <<_ACEOF
25468#define LLVM_DATADIR "$LLVM_DATADIR"
25469_ACEOF
25470
25471
25472cat >>confdefs.h <<_ACEOF
25473#define LLVM_DATADIR "$LLVM_DOCSDIR"
25474_ACEOF
25475
25476
25477cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000025478#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000025479_ACEOF
25480
25481
25482cat >>confdefs.h <<_ACEOF
25483#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
25484_ACEOF
25485
25486
25487cat >>confdefs.h <<_ACEOF
25488#define LLVM_INFODIR "$LLVM_INFODIR"
25489_ACEOF
25490
25491
25492cat >>confdefs.h <<_ACEOF
25493#define LLVM_MANDIR "$LLVM_MANDIR"
25494_ACEOF
25495
25496
25497cat >>confdefs.h <<_ACEOF
25498#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
25499_ACEOF
25500
25501
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025502
25503 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
25504
25505
25506 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
25507
25508 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
25509
25510 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
25511
25512 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
25513
25514 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
25515
25516
25517 ac_config_files="$ac_config_files Makefile.config"
25518
25519
25520 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
25521
25522
25523 ac_config_commands="$ac_config_commands Makefile"
25524
25525
25526 ac_config_commands="$ac_config_commands Makefile.common"
25527
25528
25529 ac_config_commands="$ac_config_commands examples/Makefile"
25530
25531
25532 ac_config_commands="$ac_config_commands lib/Makefile"
25533
25534
25535 ac_config_commands="$ac_config_commands runtime/Makefile"
25536
25537
25538 ac_config_commands="$ac_config_commands test/Makefile"
25539
25540
25541 ac_config_commands="$ac_config_commands test/Makefile.tests"
25542
25543
25544 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
25545
25546
25547 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
25548
25549
25550 ac_config_commands="$ac_config_commands tools/Makefile"
25551
25552
25553 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
25554
25555
25556 ac_config_commands="$ac_config_commands utils/Makefile"
25557
25558
25559 ac_config_commands="$ac_config_commands projects/Makefile"
25560
25561
25562
John Criswell7a73b802003-06-30 21:59:07 +000025563cat >confcache <<\_ACEOF
25564# This file is a shell script that caches the results of configure
25565# tests run on this system so they can be shared between configure
25566# scripts and configure runs, see configure's option --config-cache.
25567# It is not useful on other systems. If it contains results you don't
25568# want to keep, you may remove or edit it.
25569#
25570# config.status only pays attention to the cache file if you give it
25571# the --recheck option to rerun configure.
25572#
John Criswell0c38eaf2003-09-10 15:17:25 +000025573# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000025574# loading this file, other *unset* `ac_cv_foo' will be assigned the
25575# following values.
25576
25577_ACEOF
25578
25579# The following way of writing the cache mishandles newlines in values,
25580# but we know of no workaround that is simple, portable, and efficient.
25581# So, don't put newlines in cache variables' values.
25582# Ultrix sh set writes to stderr and can't be redirected directly,
25583# and sets the high bit in the cache file unless we assign to the vars.
25584{
25585 (set) 2>&1 |
25586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25587 *ac_space=\ *)
25588 # `set' does not quote correctly, so add quotes (double-quote
25589 # substitution turns \\\\ into \\, and sed turns \\ into \).
25590 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025591 "s/'/'\\\\''/g;
25592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000025593 ;;
25594 *)
25595 # `set' quotes correctly as required by POSIX, so do not add quotes.
25596 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025597 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000025598 ;;
25599 esac;
25600} |
25601 sed '
25602 t clear
25603 : clear
25604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25605 t end
25606 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25607 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000025608if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000025609 if test -w $cache_file; then
25610 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25611 cat confcache >$cache_file
25612 else
25613 echo "not updating unwritable cache $cache_file"
25614 fi
25615fi
25616rm -f confcache
25617
25618test "x$prefix" = xNONE && prefix=$ac_default_prefix
25619# Let make expand exec_prefix.
25620test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25621
25622# VPATH may cause trouble with some makes, so we remove $(srcdir),
25623# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25624# trailing colons and then remove the whole line if VPATH becomes empty
25625# (actually we leave an empty line to preserve line numbers).
25626if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000025627 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000025628s/:*\$(srcdir):*/:/;
25629s/:*\${srcdir}:*/:/;
25630s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025631s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000025632s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025633s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000025634}'
25635fi
25636
25637DEFS=-DHAVE_CONFIG_H
25638
John Criswell0c38eaf2003-09-10 15:17:25 +000025639ac_libobjs=
25640ac_ltlibobjs=
25641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25642 # 1. Remove the extension, and $U if already installed.
25643 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000025644 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025645 # 2. Add them.
25646 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25647 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25648done
25649LIBOBJS=$ac_libobjs
25650
25651LTLIBOBJS=$ac_ltlibobjs
25652
25653
John Criswell7a73b802003-06-30 21:59:07 +000025654
25655: ${CONFIG_STATUS=./config.status}
25656ac_clean_files_save=$ac_clean_files
25657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25658{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25659echo "$as_me: creating $CONFIG_STATUS" >&6;}
25660cat >$CONFIG_STATUS <<_ACEOF
25661#! $SHELL
25662# Generated by $as_me.
25663# Run this file to recreate the current configuration.
25664# Compiler output produced by configure, useful for debugging
25665# configure, is in config.log if it exists.
25666
25667debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000025668ac_cs_recheck=false
25669ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000025670SHELL=\${CONFIG_SHELL-$SHELL}
25671_ACEOF
25672
25673cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025674## --------------------- ##
25675## M4sh Initialization. ##
25676## --------------------- ##
25677
25678# Be Bourne compatible
25679if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25680 emulate sh
25681 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25683 # is contrary to our usage. Disable this feature.
25684 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000025685elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25686 set -o posix
25687fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025688DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000025689
John Criswell7a73b802003-06-30 21:59:07 +000025690# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025692 as_unset=unset
25693else
25694 as_unset=false
25695fi
25696
John Criswell0c38eaf2003-09-10 15:17:25 +000025697
25698# Work around bugs in pre-3.0 UWIN ksh.
25699$as_unset ENV MAIL MAILPATH
25700PS1='$ '
25701PS2='> '
25702PS4='+ '
25703
25704# NLS nuisances.
25705for as_var in \
25706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25708 LC_TELEPHONE LC_TIME
25709do
Reid Spencer2706f8c2004-09-19 23:53:36 +000025710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000025711 eval $as_var=C; export $as_var
25712 else
25713 $as_unset $as_var
25714 fi
25715done
25716
25717# Required to use basename.
25718if expr a : '\(a\)' >/dev/null 2>&1; then
25719 as_expr=expr
25720else
25721 as_expr=false
25722fi
25723
25724if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25725 as_basename=basename
25726else
25727 as_basename=false
25728fi
John Criswell7a73b802003-06-30 21:59:07 +000025729
25730
25731# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000025732as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000025733$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25734 X"$0" : 'X\(//\)$' \| \
25735 X"$0" : 'X\(/\)$' \| \
25736 . : '\(.\)' 2>/dev/null ||
25737echo X/"$0" |
25738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25739 /^X\/\(\/\/\)$/{ s//\1/; q; }
25740 /^X\/\(\/\).*/{ s//\1/; q; }
25741 s/.*/./; q'`
25742
John Criswell0c38eaf2003-09-10 15:17:25 +000025743
John Criswell7a73b802003-06-30 21:59:07 +000025744# PATH needs CR, and LINENO needs CR and PATH.
25745# Avoid depending upon Character Ranges.
25746as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25747as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25748as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25749as_cr_digits='0123456789'
25750as_cr_alnum=$as_cr_Letters$as_cr_digits
25751
25752# The user is always right.
25753if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025754 echo "#! /bin/sh" >conf$$.sh
25755 echo "exit 0" >>conf$$.sh
25756 chmod +x conf$$.sh
25757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025758 PATH_SEPARATOR=';'
25759 else
25760 PATH_SEPARATOR=:
25761 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000025762 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000025763fi
25764
25765
25766 as_lineno_1=$LINENO
25767 as_lineno_2=$LINENO
25768 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25769 test "x$as_lineno_1" != "x$as_lineno_2" &&
25770 test "x$as_lineno_3" = "x$as_lineno_2" || {
25771 # Find who we are. Look in the path if we contain no path at all
25772 # relative or not.
25773 case $0 in
25774 *[\\/]* ) as_myself=$0 ;;
25775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25776for as_dir in $PATH
25777do
25778 IFS=$as_save_IFS
25779 test -z "$as_dir" && as_dir=.
25780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25781done
25782
25783 ;;
25784 esac
25785 # We did not find ourselves, most probably we were run as `sh COMMAND'
25786 # in which case we are not to be found in the path.
25787 if test "x$as_myself" = x; then
25788 as_myself=$0
25789 fi
25790 if test ! -f "$as_myself"; then
25791 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25792echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25793 { (exit 1); exit 1; }; }
25794 fi
25795 case $CONFIG_SHELL in
25796 '')
25797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25798for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25799do
25800 IFS=$as_save_IFS
25801 test -z "$as_dir" && as_dir=.
25802 for as_base in sh bash ksh sh5; do
25803 case $as_dir in
25804 /*)
25805 if ("$as_dir/$as_base" -c '
25806 as_lineno_1=$LINENO
25807 as_lineno_2=$LINENO
25808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25809 test "x$as_lineno_1" != "x$as_lineno_2" &&
25810 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025811 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25812 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000025813 CONFIG_SHELL=$as_dir/$as_base
25814 export CONFIG_SHELL
25815 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25816 fi;;
25817 esac
25818 done
25819done
25820;;
25821 esac
25822
25823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25824 # uniformly replaced by the line number. The first 'sed' inserts a
25825 # line-number line before each line; the second 'sed' does the real
25826 # work. The second script uses 'N' to pair each line-number line
25827 # with the numbered line, and appends trailing '-' during
25828 # substitution so that $LINENO is not a special case at line end.
25829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25830 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25831 sed '=' <$as_myself |
25832 sed '
25833 N
25834 s,$,-,
25835 : loop
25836 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25837 t loop
25838 s,-$,,
25839 s,^['$as_cr_digits']*\n,,
25840 ' >$as_me.lineno &&
25841 chmod +x $as_me.lineno ||
25842 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25843echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25844 { (exit 1); exit 1; }; }
25845
25846 # Don't try to exec as it changes $[0], causing all sort of problems
25847 # (the dirname of $[0] is not the place where we might find the
25848 # original and so on. Autoconf is especially sensible to this).
25849 . ./$as_me.lineno
25850 # Exit status is that of the last command.
25851 exit
25852}
25853
25854
25855case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25856 *c*,-n*) ECHO_N= ECHO_C='
25857' ECHO_T=' ' ;;
25858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25860esac
25861
25862if expr a : '\(a\)' >/dev/null 2>&1; then
25863 as_expr=expr
25864else
25865 as_expr=false
25866fi
25867
25868rm -f conf$$ conf$$.exe conf$$.file
25869echo >conf$$.file
25870if ln -s conf$$.file conf$$ 2>/dev/null; then
25871 # We could just check for DJGPP; but this test a) works b) is more generic
25872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25873 if test -f conf$$.exe; then
25874 # Don't use ln at all; we don't have any links
25875 as_ln_s='cp -p'
25876 else
25877 as_ln_s='ln -s'
25878 fi
25879elif ln conf$$.file conf$$ 2>/dev/null; then
25880 as_ln_s=ln
25881else
25882 as_ln_s='cp -p'
25883fi
25884rm -f conf$$ conf$$.exe conf$$.file
25885
John Criswell0c38eaf2003-09-10 15:17:25 +000025886if mkdir -p . 2>/dev/null; then
25887 as_mkdir_p=:
25888else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025889 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000025890 as_mkdir_p=false
25891fi
25892
John Criswell7a73b802003-06-30 21:59:07 +000025893as_executable_p="test -f"
25894
25895# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025896as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000025897
25898# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025899as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000025900
25901
25902# IFS
25903# We need space, tab and new line, in precisely that order.
25904as_nl='
25905'
25906IFS=" $as_nl"
25907
25908# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000025909$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000025910
25911exec 6>&1
25912
25913# Open the log real soon, to keep \$[0] and so on meaningful, and to
25914# report actual input values of CONFIG_FILES etc. instead of their
25915# values after options handling. Logging --version etc. is OK.
25916exec 5>>config.log
25917{
25918 echo
25919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25920## Running $as_me. ##
25921_ASBOX
25922} >&5
25923cat >&5 <<_CSEOF
25924
Reid Spencerabec8f92004-10-27 23:03:44 +000025925This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000025926generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000025927
25928 CONFIG_FILES = $CONFIG_FILES
25929 CONFIG_HEADERS = $CONFIG_HEADERS
25930 CONFIG_LINKS = $CONFIG_LINKS
25931 CONFIG_COMMANDS = $CONFIG_COMMANDS
25932 $ $0 $@
25933
25934_CSEOF
25935echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25936echo >&5
25937_ACEOF
25938
25939# Files that config.status was made for.
25940if test -n "$ac_config_files"; then
25941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25942fi
25943
25944if test -n "$ac_config_headers"; then
25945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25946fi
25947
25948if test -n "$ac_config_links"; then
25949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25950fi
25951
25952if test -n "$ac_config_commands"; then
25953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25954fi
25955
25956cat >>$CONFIG_STATUS <<\_ACEOF
25957
25958ac_cs_usage="\
25959\`$as_me' instantiates files from templates according to the
25960current configuration.
25961
25962Usage: $0 [OPTIONS] [FILE]...
25963
25964 -h, --help print this help, then exit
25965 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000025966 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000025967 -d, --debug don't remove temporary files
25968 --recheck update $as_me by reconfiguring in the same conditions
25969 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000025970 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000025971 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000025972 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000025973
25974Configuration files:
25975$config_files
25976
25977Configuration headers:
25978$config_headers
25979
Reid Spencerde8c47f2004-08-29 19:35:28 +000025980Configuration links:
25981$config_links
25982
John Criswellc764fbc2003-09-06 15:17:13 +000025983Configuration commands:
25984$config_commands
25985
John Criswell7a73b802003-06-30 21:59:07 +000025986Report bugs to <bug-autoconf@gnu.org>."
25987_ACEOF
25988
25989cat >>$CONFIG_STATUS <<_ACEOF
25990ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000025991llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000025992configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000025993 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25994
Reid Spencer2706f8c2004-09-19 23:53:36 +000025995Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000025996This config.status script is free software; the Free Software Foundation
25997gives unlimited permission to copy, distribute and modify it."
25998srcdir=$srcdir
25999INSTALL="$INSTALL"
26000_ACEOF
26001
26002cat >>$CONFIG_STATUS <<\_ACEOF
26003# If no file are specified by the user, then we need to provide default
26004# value. By we need to know if files were specified by the user.
26005ac_need_defaults=:
26006while test $# != 0
26007do
26008 case $1 in
26009 --*=*)
26010 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26011 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000026012 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000026013 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000026014 -*)
26015 ac_option=$1
26016 ac_optarg=$2
26017 ac_shift=shift
26018 ;;
John Criswell7a73b802003-06-30 21:59:07 +000026019 *) # This is not an option, so the user has probably given explicit
26020 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000026021 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000026022 ac_need_defaults=false;;
26023 esac
26024
John Criswell0c38eaf2003-09-10 15:17:25 +000026025 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000026026 # Handling of the options.
26027_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000026028cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26030 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000026031 --version | --vers* | -V )
26032 echo "$ac_cs_version"; exit 0 ;;
26033 --he | --h)
26034 # Conflict between --help and --header
26035 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26036Try \`$0 --help' for more information." >&5
26037echo "$as_me: error: ambiguous option: $1
26038Try \`$0 --help' for more information." >&2;}
26039 { (exit 1); exit 1; }; };;
26040 --help | --hel | -h )
26041 echo "$ac_cs_usage"; exit 0 ;;
26042 --debug | --d* | -d )
26043 debug=: ;;
26044 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000026045 $ac_shift
26046 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000026047 ac_need_defaults=false;;
26048 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000026049 $ac_shift
26050 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000026051 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000026052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26054 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000026055
26056 # This is an error.
26057 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26058Try \`$0 --help' for more information." >&5
26059echo "$as_me: error: unrecognized option: $1
26060Try \`$0 --help' for more information." >&2;}
26061 { (exit 1); exit 1; }; } ;;
26062
26063 *) ac_config_targets="$ac_config_targets $1" ;;
26064
26065 esac
26066 shift
26067done
26068
John Criswell0c38eaf2003-09-10 15:17:25 +000026069ac_configure_extra_args=
26070
26071if $ac_cs_silent; then
26072 exec 6>/dev/null
26073 ac_configure_extra_args="$ac_configure_extra_args --silent"
26074fi
26075
26076_ACEOF
26077cat >>$CONFIG_STATUS <<_ACEOF
26078if \$ac_cs_recheck; then
26079 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26080 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26081fi
26082
John Criswell7a73b802003-06-30 21:59:07 +000026083_ACEOF
26084
John Criswellc764fbc2003-09-06 15:17:13 +000026085cat >>$CONFIG_STATUS <<_ACEOF
26086#
26087# INIT-COMMANDS section.
26088#
John Criswell7a73b802003-06-30 21:59:07 +000026089
John Criswellc764fbc2003-09-06 15:17:13 +000026090${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
26091${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000026092${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026093${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026094${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026095${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
26096${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000026097${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
26098${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000026099${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Misha Brukman591edc62004-10-14 18:59:42 +000026100${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
Brian Gaekec45be042003-10-07 06:01:34 +000026101${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026102${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026103
26104_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026105
26106
26107
26108cat >>$CONFIG_STATUS <<\_ACEOF
26109for ac_config_target in $ac_config_targets
26110do
26111 case "$ac_config_target" in
26112 # Handling of arguments.
26113 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000026114 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
26115 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
26116 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
26117 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000026118 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026119 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
26120 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000026121 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026122 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026123 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026124 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
26125 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000026126 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
26127 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026128 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Misha Brukman591edc62004-10-14 18:59:42 +000026129 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000026130 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026131 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000026132 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000026133 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000026134 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
26135 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000026136 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
26137 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000026138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26139echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26140 { (exit 1); exit 1; }; };;
26141 esac
26142done
26143
26144# If the user did not use the arguments to specify the items to instantiate,
26145# then the envvar interface is used. Set only those that are not.
26146# We use the long form for the default assignment because of an extremely
26147# bizarre bug on SunOS 4.1.3.
26148if $ac_need_defaults; then
26149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000026151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000026152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000026153fi
26154
John Criswell0c38eaf2003-09-10 15:17:25 +000026155# Have a temporary directory for convenience. Make it in the build tree
26156# simply because there is no reason to put it here, and in addition,
26157# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000026158# Create a temporary directory, and hook for its removal unless debugging.
26159$debug ||
26160{
26161 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26162 trap '{ (exit 1); exit 1; }' 1 2 13 15
26163}
26164
26165# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000026166
John Criswell7a73b802003-06-30 21:59:07 +000026167{
John Criswell0c38eaf2003-09-10 15:17:25 +000026168 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000026169 test -n "$tmp" && test -d "$tmp"
26170} ||
26171{
John Criswell0c38eaf2003-09-10 15:17:25 +000026172 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000026173 (umask 077 && mkdir $tmp)
26174} ||
26175{
John Criswell0c38eaf2003-09-10 15:17:25 +000026176 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000026177 { (exit 1); exit 1; }
26178}
26179
26180_ACEOF
26181
26182cat >>$CONFIG_STATUS <<_ACEOF
26183
26184#
26185# CONFIG_FILES section.
26186#
26187
26188# No need to generate the scripts if there are no CONFIG_FILES.
26189# This happens for instance when ./config.status config.h
26190if test -n "\$CONFIG_FILES"; then
26191 # Protect against being on the right side of a sed subst in config.status.
26192 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26193 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26194s,@SHELL@,$SHELL,;t t
26195s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26196s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26197s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26198s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26199s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26200s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26201s,@exec_prefix@,$exec_prefix,;t t
26202s,@prefix@,$prefix,;t t
26203s,@program_transform_name@,$program_transform_name,;t t
26204s,@bindir@,$bindir,;t t
26205s,@sbindir@,$sbindir,;t t
26206s,@libexecdir@,$libexecdir,;t t
26207s,@datadir@,$datadir,;t t
26208s,@sysconfdir@,$sysconfdir,;t t
26209s,@sharedstatedir@,$sharedstatedir,;t t
26210s,@localstatedir@,$localstatedir,;t t
26211s,@libdir@,$libdir,;t t
26212s,@includedir@,$includedir,;t t
26213s,@oldincludedir@,$oldincludedir,;t t
26214s,@infodir@,$infodir,;t t
26215s,@mandir@,$mandir,;t t
26216s,@build_alias@,$build_alias,;t t
26217s,@host_alias@,$host_alias,;t t
26218s,@target_alias@,$target_alias,;t t
26219s,@DEFS@,$DEFS,;t t
26220s,@ECHO_C@,$ECHO_C,;t t
26221s,@ECHO_N@,$ECHO_N,;t t
26222s,@ECHO_T@,$ECHO_T,;t t
26223s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026224s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000026225s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026226s,@build@,$build,;t t
26227s,@build_cpu@,$build_cpu,;t t
26228s,@build_vendor@,$build_vendor,;t t
26229s,@build_os@,$build_os,;t t
26230s,@host@,$host,;t t
26231s,@host_cpu@,$host_cpu,;t t
26232s,@host_vendor@,$host_vendor,;t t
26233s,@host_os@,$host_os,;t t
26234s,@target@,$target,;t t
26235s,@target_cpu@,$target_cpu,;t t
26236s,@target_vendor@,$target_vendor,;t t
26237s,@target_os@,$target_os,;t t
26238s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000026239s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026240s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026241s,@CC@,$CC,;t t
26242s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026243s,@LDFLAGS@,$LDFLAGS,;t t
26244s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026245s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026246s,@EXEEXT@,$EXEEXT,;t t
26247s,@OBJEXT@,$OBJEXT,;t t
26248s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
26249s,@JIT@,$JIT,;t t
26250s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026251s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026252s,@CXX@,$CXX,;t t
26253s,@CXXFLAGS@,$CXXFLAGS,;t t
26254s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026255s,@LEX@,$LEX,;t t
26256s,@LEXLIB@,$LEXLIB,;t t
26257s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000026258s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026259s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000026260s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000026261s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026262s,@LN_S@,$LN_S,;t t
26263s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000026264s,@AR@,$AR,;t t
26265s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026266s,@RANLIB@,$RANLIB,;t t
26267s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26268s,@STRIP@,$STRIP,;t t
26269s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000026270s,@CXXCPP@,$CXXCPP,;t t
26271s,@F77@,$F77,;t t
26272s,@FFLAGS@,$FFLAGS,;t t
26273s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026274s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026275s,@ifGNUmake@,$ifGNUmake,;t t
26276s,@FIND@,$FIND,;t t
26277s,@GREP@,$GREP,;t t
26278s,@MKDIR@,$MKDIR,;t t
26279s,@MV@,$MV,;t t
26280s,@RM@,$RM,;t t
26281s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000026282s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026283s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26284s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26285s,@INSTALL_DATA@,$INSTALL_DATA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026286s,@DOT@,$DOT,;t t
26287s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000026288s,@PYTHON@,$PYTHON,;t t
26289s,@QMTEST@,$QMTEST,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000026290s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026291s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026292s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026293s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026294s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000026295s,@LLVMCC1@,$LLVMCC1,;t t
26296s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000026297s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000026298s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
26299s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
26300s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
26301s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
26302s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
26303s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
26304s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
26305s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
26306s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
26307s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000026308s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000026309s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026310CEOF
26311
26312_ACEOF
26313
26314 cat >>$CONFIG_STATUS <<\_ACEOF
26315 # Split the substitutions into bite-sized pieces for seds with
26316 # small command number limits, like on Digital OSF/1 and HP-UX.
26317 ac_max_sed_lines=48
26318 ac_sed_frag=1 # Number of current file.
26319 ac_beg=1 # First line for current file.
26320 ac_end=$ac_max_sed_lines # Line after last line for current file.
26321 ac_more_lines=:
26322 ac_sed_cmds=
26323 while $ac_more_lines; do
26324 if test $ac_beg -gt 1; then
26325 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26326 else
26327 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26328 fi
26329 if test ! -s $tmp/subs.frag; then
26330 ac_more_lines=false
26331 else
26332 # The purpose of the label and of the branching condition is to
26333 # speed up the sed processing (if there are no `@' at all, there
26334 # is no need to browse any of the substitutions).
26335 # These are the two extra sed commands mentioned above.
26336 (echo ':t
26337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26338 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000026339 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000026340 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026341 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000026342 fi
26343 ac_sed_frag=`expr $ac_sed_frag + 1`
26344 ac_beg=$ac_end
26345 ac_end=`expr $ac_end + $ac_max_sed_lines`
26346 fi
26347 done
26348 if test -z "$ac_sed_cmds"; then
26349 ac_sed_cmds=cat
26350 fi
26351fi # test -n "$CONFIG_FILES"
26352
26353_ACEOF
26354cat >>$CONFIG_STATUS <<\_ACEOF
26355for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26357 case $ac_file in
26358 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000026359 cat >$tmp/stdin
26360 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026362 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000026363 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026364 * ) ac_file_in=$ac_file.in ;;
26365 esac
26366
26367 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26369$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026370 X"$ac_file" : 'X\(//\)[^/]' \| \
26371 X"$ac_file" : 'X\(//\)$' \| \
26372 X"$ac_file" : 'X\(/\)' \| \
26373 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000026374echo X"$ac_file" |
26375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26377 /^X\(\/\/\)$/{ s//\1/; q; }
26378 /^X\(\/\).*/{ s//\1/; q; }
26379 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000026380 { if $as_mkdir_p; then
26381 mkdir -p "$ac_dir"
26382 else
26383 as_dir="$ac_dir"
26384 as_dirs=
26385 while test ! -d "$as_dir"; do
26386 as_dirs="$as_dir $as_dirs"
26387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26388$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026389 X"$as_dir" : 'X\(//\)[^/]' \| \
26390 X"$as_dir" : 'X\(//\)$' \| \
26391 X"$as_dir" : 'X\(/\)' \| \
26392 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000026393echo X"$as_dir" |
26394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26396 /^X\(\/\/\)$/{ s//\1/; q; }
26397 /^X\(\/\).*/{ s//\1/; q; }
26398 s/.*/./; q'`
26399 done
26400 test ! -n "$as_dirs" || mkdir $as_dirs
26401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26402echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26403 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000026404
26405 ac_builddir=.
26406
26407if test "$ac_dir" != .; then
26408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26409 # A "../" for each directory in $ac_dir_suffix.
26410 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26411else
26412 ac_dir_suffix= ac_top_builddir=
26413fi
26414
26415case $srcdir in
26416 .) # No --srcdir option. We are building in place.
26417 ac_srcdir=.
26418 if test -z "$ac_top_builddir"; then
26419 ac_top_srcdir=.
26420 else
26421 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26422 fi ;;
26423 [\\/]* | ?:[\\/]* ) # Absolute path.
26424 ac_srcdir=$srcdir$ac_dir_suffix;
26425 ac_top_srcdir=$srcdir ;;
26426 *) # Relative path.
26427 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26428 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26429esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026430
26431# Do not use `cd foo && pwd` to compute absolute paths, because
26432# the directories may not exist.
26433case `pwd` in
26434.) ac_abs_builddir="$ac_dir";;
26435*)
26436 case "$ac_dir" in
26437 .) ac_abs_builddir=`pwd`;;
26438 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26439 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26440 esac;;
26441esac
26442case $ac_abs_builddir in
26443.) ac_abs_top_builddir=${ac_top_builddir}.;;
26444*)
26445 case ${ac_top_builddir}. in
26446 .) ac_abs_top_builddir=$ac_abs_builddir;;
26447 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26448 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26449 esac;;
26450esac
26451case $ac_abs_builddir in
26452.) ac_abs_srcdir=$ac_srcdir;;
26453*)
26454 case $ac_srcdir in
26455 .) ac_abs_srcdir=$ac_abs_builddir;;
26456 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26457 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26458 esac;;
26459esac
26460case $ac_abs_builddir in
26461.) ac_abs_top_srcdir=$ac_top_srcdir;;
26462*)
26463 case $ac_top_srcdir in
26464 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26465 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26466 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26467 esac;;
26468esac
John Criswell7a73b802003-06-30 21:59:07 +000026469
26470
26471 case $INSTALL in
26472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26473 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26474 esac
26475
26476 if test x"$ac_file" != x-; then
26477 { echo "$as_me:$LINENO: creating $ac_file" >&5
26478echo "$as_me: creating $ac_file" >&6;}
26479 rm -f "$ac_file"
26480 fi
26481 # Let's still pretend it is `configure' which instantiates (i.e., don't
26482 # use $as_me), people would be surprised to read:
26483 # /* config.h. Generated by config.status. */
26484 if test x"$ac_file" = x-; then
26485 configure_input=
26486 else
26487 configure_input="$ac_file. "
26488 fi
26489 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000026490 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000026491
26492 # First look for the input files in the build tree, otherwise in the
26493 # src tree.
26494 ac_file_inputs=`IFS=:
26495 for f in $ac_file_in; do
26496 case $f in
26497 -) echo $tmp/stdin ;;
26498 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026499 # Absolute (can't be DOS-style, as IFS=:)
26500 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026501echo "$as_me: error: cannot find input file: $f" >&2;}
26502 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026503 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000026504 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000026505 if test -f "$f"; then
26506 # Build tree
26507 echo "$f"
26508 elif test -f "$srcdir/$f"; then
26509 # Source tree
26510 echo "$srcdir/$f"
26511 else
26512 # /dev/null tree
26513 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026514echo "$as_me: error: cannot find input file: $f" >&2;}
26515 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026516 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000026517 esac
26518 done` || { (exit 1); exit 1; }
26519_ACEOF
26520cat >>$CONFIG_STATUS <<_ACEOF
26521 sed "$ac_vpsub
26522$extrasub
26523_ACEOF
26524cat >>$CONFIG_STATUS <<\_ACEOF
26525:t
26526/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26527s,@configure_input@,$configure_input,;t t
26528s,@srcdir@,$ac_srcdir,;t t
26529s,@abs_srcdir@,$ac_abs_srcdir,;t t
26530s,@top_srcdir@,$ac_top_srcdir,;t t
26531s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26532s,@builddir@,$ac_builddir,;t t
26533s,@abs_builddir@,$ac_abs_builddir,;t t
26534s,@top_builddir@,$ac_top_builddir,;t t
26535s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26536s,@INSTALL@,$ac_INSTALL,;t t
26537" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26538 rm -f $tmp/stdin
26539 if test x"$ac_file" != x-; then
26540 mv $tmp/out $ac_file
26541 else
26542 cat $tmp/out
26543 rm -f $tmp/out
26544 fi
26545
26546done
26547_ACEOF
26548cat >>$CONFIG_STATUS <<\_ACEOF
26549
26550#
26551# CONFIG_HEADER section.
26552#
26553
26554# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26555# NAME is the cpp macro being defined and VALUE is the value it is being given.
26556#
26557# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026558ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26559ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000026560ac_dC=' '
26561ac_dD=',;t'
26562# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000026563ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000026564ac_uB='$,\1#\2define\3'
26565ac_uC=' '
26566ac_uD=',;t'
26567
26568for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26570 case $ac_file in
26571 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000026572 cat >$tmp/stdin
26573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000026576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026577 * ) ac_file_in=$ac_file.in ;;
26578 esac
26579
26580 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26581echo "$as_me: creating $ac_file" >&6;}
26582
26583 # First look for the input files in the build tree, otherwise in the
26584 # src tree.
26585 ac_file_inputs=`IFS=:
26586 for f in $ac_file_in; do
26587 case $f in
26588 -) echo $tmp/stdin ;;
26589 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026590 # Absolute (can't be DOS-style, as IFS=:)
26591 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026592echo "$as_me: error: cannot find input file: $f" >&2;}
26593 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026594 # Do quote $f, to prevent DOS paths from being IFS'd.
26595 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000026596 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000026597 if test -f "$f"; then
26598 # Build tree
26599 echo "$f"
26600 elif test -f "$srcdir/$f"; then
26601 # Source tree
26602 echo "$srcdir/$f"
26603 else
26604 # /dev/null tree
26605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026606echo "$as_me: error: cannot find input file: $f" >&2;}
26607 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026608 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000026609 esac
26610 done` || { (exit 1); exit 1; }
26611 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026612 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000026613
26614_ACEOF
26615
26616# Transform confdefs.h into two sed scripts, `conftest.defines' and
26617# `conftest.undefs', that substitutes the proper values into
26618# config.h.in to produce config.h. The first handles `#define'
26619# templates, and the second `#undef' templates.
26620# And first: Protect against being on the right side of a sed subst in
26621# config.status. Protect against being in an unquoted here document
26622# in config.status.
26623rm -f conftest.defines conftest.undefs
26624# Using a here document instead of a string reduces the quoting nightmare.
26625# Putting comments in sed scripts is not portable.
26626#
26627# `end' is used to avoid that the second main sed command (meant for
26628# 0-ary CPP macros) applies to n-ary macro definitions.
26629# See the Autoconf documentation for `clear'.
26630cat >confdef2sed.sed <<\_ACEOF
26631s/[\\&,]/\\&/g
26632s,[\\$`],\\&,g
26633t clear
26634: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000026635s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000026636t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000026637s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000026638: end
26639_ACEOF
26640# If some macros were called several times there might be several times
26641# the same #defines, which is useless. Nevertheless, we may not want to
26642# sort them, since we want the *last* AC-DEFINE to be honored.
26643uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26644sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26645rm -f confdef2sed.sed
26646
26647# This sed command replaces #undef with comments. This is necessary, for
26648# example, in the case of _POSIX_SOURCE, which is predefined and required
26649# on some systems where configure will not decide to define it.
26650cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026651s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000026652_ACEOF
26653
26654# Break up conftest.defines because some shells have a limit on the size
26655# of here documents, and old seds have small limits too (100 cmds).
26656echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000026657echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000026658echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26659echo ' :' >>$CONFIG_STATUS
26660rm -f conftest.tail
26661while grep . conftest.defines >/dev/null
26662do
26663 # Write a limited-size here document to $tmp/defines.sed.
26664 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26665 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026666 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000026667 # Work around the forget-to-reset-the-flag bug.
26668 echo 't clr' >>$CONFIG_STATUS
26669 echo ': clr' >>$CONFIG_STATUS
26670 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26671 echo 'CEOF
26672 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26673 rm -f $tmp/in
26674 mv $tmp/out $tmp/in
26675' >>$CONFIG_STATUS
26676 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26677 rm -f conftest.defines
26678 mv conftest.tail conftest.defines
26679done
26680rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000026681echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000026682echo >>$CONFIG_STATUS
26683
26684# Break up conftest.undefs because some shells have a limit on the size
26685# of here documents, and old seds have small limits too (100 cmds).
26686echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26687rm -f conftest.tail
26688while grep . conftest.undefs >/dev/null
26689do
26690 # Write a limited-size here document to $tmp/undefs.sed.
26691 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26692 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026693 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000026694 # Work around the forget-to-reset-the-flag bug.
26695 echo 't clr' >>$CONFIG_STATUS
26696 echo ': clr' >>$CONFIG_STATUS
26697 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26698 echo 'CEOF
26699 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26700 rm -f $tmp/in
26701 mv $tmp/out $tmp/in
26702' >>$CONFIG_STATUS
26703 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26704 rm -f conftest.undefs
26705 mv conftest.tail conftest.undefs
26706done
26707rm -f conftest.undefs
26708
26709cat >>$CONFIG_STATUS <<\_ACEOF
26710 # Let's still pretend it is `configure' which instantiates (i.e., don't
26711 # use $as_me), people would be surprised to read:
26712 # /* config.h. Generated by config.status. */
26713 if test x"$ac_file" = x-; then
26714 echo "/* Generated by configure. */" >$tmp/config.h
26715 else
26716 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26717 fi
26718 cat $tmp/in >>$tmp/config.h
26719 rm -f $tmp/in
26720 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000026721 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026722 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26723echo "$as_me: $ac_file is unchanged" >&6;}
26724 else
26725 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26726$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026727 X"$ac_file" : 'X\(//\)[^/]' \| \
26728 X"$ac_file" : 'X\(//\)$' \| \
26729 X"$ac_file" : 'X\(/\)' \| \
26730 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000026731echo X"$ac_file" |
26732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26734 /^X\(\/\/\)$/{ s//\1/; q; }
26735 /^X\(\/\).*/{ s//\1/; q; }
26736 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000026737 { if $as_mkdir_p; then
26738 mkdir -p "$ac_dir"
26739 else
26740 as_dir="$ac_dir"
26741 as_dirs=
26742 while test ! -d "$as_dir"; do
26743 as_dirs="$as_dir $as_dirs"
26744 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026746 X"$as_dir" : 'X\(//\)[^/]' \| \
26747 X"$as_dir" : 'X\(//\)$' \| \
26748 X"$as_dir" : 'X\(/\)' \| \
26749 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000026750echo X"$as_dir" |
26751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26753 /^X\(\/\/\)$/{ s//\1/; q; }
26754 /^X\(\/\).*/{ s//\1/; q; }
26755 s/.*/./; q'`
26756 done
26757 test ! -n "$as_dirs" || mkdir $as_dirs
26758 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26759echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26760 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000026761
26762 rm -f $ac_file
26763 mv $tmp/config.h $ac_file
26764 fi
26765 else
26766 cat $tmp/config.h
26767 rm -f $tmp/config.h
26768 fi
26769done
26770_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000026771cat >>$CONFIG_STATUS <<\_ACEOF
26772
26773#
Reid Spencerde8c47f2004-08-29 19:35:28 +000026774# CONFIG_LINKS section.
26775#
26776
26777for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26778 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26779 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26780
26781 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26782echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26783
26784 if test ! -r $srcdir/$ac_source; then
26785 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26786echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26787 { (exit 1); exit 1; }; }
26788 fi
26789 rm -f $ac_dest
26790
26791 # Make relative symlinks.
26792 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26793$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026794 X"$ac_dest" : 'X\(//\)[^/]' \| \
26795 X"$ac_dest" : 'X\(//\)$' \| \
26796 X"$ac_dest" : 'X\(/\)' \| \
26797 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000026798echo X"$ac_dest" |
26799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26801 /^X\(\/\/\)$/{ s//\1/; q; }
26802 /^X\(\/\).*/{ s//\1/; q; }
26803 s/.*/./; q'`
26804 { if $as_mkdir_p; then
26805 mkdir -p "$ac_dest_dir"
26806 else
26807 as_dir="$ac_dest_dir"
26808 as_dirs=
26809 while test ! -d "$as_dir"; do
26810 as_dirs="$as_dir $as_dirs"
26811 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026813 X"$as_dir" : 'X\(//\)[^/]' \| \
26814 X"$as_dir" : 'X\(//\)$' \| \
26815 X"$as_dir" : 'X\(/\)' \| \
26816 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000026817echo X"$as_dir" |
26818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26820 /^X\(\/\/\)$/{ s//\1/; q; }
26821 /^X\(\/\).*/{ s//\1/; q; }
26822 s/.*/./; q'`
26823 done
26824 test ! -n "$as_dirs" || mkdir $as_dirs
26825 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26826echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26827 { (exit 1); exit 1; }; }; }
26828
26829 ac_builddir=.
26830
26831if test "$ac_dest_dir" != .; then
26832 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26833 # A "../" for each directory in $ac_dir_suffix.
26834 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26835else
26836 ac_dir_suffix= ac_top_builddir=
26837fi
26838
26839case $srcdir in
26840 .) # No --srcdir option. We are building in place.
26841 ac_srcdir=.
26842 if test -z "$ac_top_builddir"; then
26843 ac_top_srcdir=.
26844 else
26845 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26846 fi ;;
26847 [\\/]* | ?:[\\/]* ) # Absolute path.
26848 ac_srcdir=$srcdir$ac_dir_suffix;
26849 ac_top_srcdir=$srcdir ;;
26850 *) # Relative path.
26851 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26852 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26853esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026854
26855# Do not use `cd foo && pwd` to compute absolute paths, because
26856# the directories may not exist.
26857case `pwd` in
26858.) ac_abs_builddir="$ac_dest_dir";;
26859*)
26860 case "$ac_dest_dir" in
26861 .) ac_abs_builddir=`pwd`;;
26862 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26863 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26864 esac;;
26865esac
26866case $ac_abs_builddir in
26867.) ac_abs_top_builddir=${ac_top_builddir}.;;
26868*)
26869 case ${ac_top_builddir}. in
26870 .) ac_abs_top_builddir=$ac_abs_builddir;;
26871 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26872 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26873 esac;;
26874esac
26875case $ac_abs_builddir in
26876.) ac_abs_srcdir=$ac_srcdir;;
26877*)
26878 case $ac_srcdir in
26879 .) ac_abs_srcdir=$ac_abs_builddir;;
26880 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26881 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26882 esac;;
26883esac
26884case $ac_abs_builddir in
26885.) ac_abs_top_srcdir=$ac_top_srcdir;;
26886*)
26887 case $ac_top_srcdir in
26888 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26889 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26890 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26891 esac;;
26892esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000026893
26894
26895 case $srcdir in
26896 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26897 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26898 esac
26899
26900 # Try a symlink, then a hard link, then a copy.
26901 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26902 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26903 cp -p $srcdir/$ac_source $ac_dest ||
26904 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26905echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26906 { (exit 1); exit 1; }; }
26907done
26908_ACEOF
26909cat >>$CONFIG_STATUS <<\_ACEOF
26910
26911#
John Criswellc764fbc2003-09-06 15:17:13 +000026912# CONFIG_COMMANDS section.
26913#
26914for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26915 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26916 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26917 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26918$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026919 X"$ac_dest" : 'X\(//\)[^/]' \| \
26920 X"$ac_dest" : 'X\(//\)$' \| \
26921 X"$ac_dest" : 'X\(/\)' \| \
26922 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000026923echo X"$ac_dest" |
26924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26926 /^X\(\/\/\)$/{ s//\1/; q; }
26927 /^X\(\/\).*/{ s//\1/; q; }
26928 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000026929 { if $as_mkdir_p; then
26930 mkdir -p "$ac_dir"
26931 else
26932 as_dir="$ac_dir"
26933 as_dirs=
26934 while test ! -d "$as_dir"; do
26935 as_dirs="$as_dir $as_dirs"
26936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26938 X"$as_dir" : 'X\(//\)[^/]' \| \
26939 X"$as_dir" : 'X\(//\)$' \| \
26940 X"$as_dir" : 'X\(/\)' \| \
26941 . : '\(.\)' 2>/dev/null ||
26942echo X"$as_dir" |
26943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26945 /^X\(\/\/\)$/{ s//\1/; q; }
26946 /^X\(\/\).*/{ s//\1/; q; }
26947 s/.*/./; q'`
26948 done
26949 test ! -n "$as_dirs" || mkdir $as_dirs
26950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26952 { (exit 1); exit 1; }; }; }
26953
John Criswellc764fbc2003-09-06 15:17:13 +000026954 ac_builddir=.
26955
26956if test "$ac_dir" != .; then
26957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26958 # A "../" for each directory in $ac_dir_suffix.
26959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26960else
26961 ac_dir_suffix= ac_top_builddir=
26962fi
26963
26964case $srcdir in
26965 .) # No --srcdir option. We are building in place.
26966 ac_srcdir=.
26967 if test -z "$ac_top_builddir"; then
26968 ac_top_srcdir=.
26969 else
26970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26971 fi ;;
26972 [\\/]* | ?:[\\/]* ) # Absolute path.
26973 ac_srcdir=$srcdir$ac_dir_suffix;
26974 ac_top_srcdir=$srcdir ;;
26975 *) # Relative path.
26976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26978esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026979
26980# Do not use `cd foo && pwd` to compute absolute paths, because
26981# the directories may not exist.
26982case `pwd` in
26983.) ac_abs_builddir="$ac_dir";;
26984*)
26985 case "$ac_dir" in
26986 .) ac_abs_builddir=`pwd`;;
26987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26989 esac;;
26990esac
26991case $ac_abs_builddir in
26992.) ac_abs_top_builddir=${ac_top_builddir}.;;
26993*)
26994 case ${ac_top_builddir}. in
26995 .) ac_abs_top_builddir=$ac_abs_builddir;;
26996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26998 esac;;
26999esac
27000case $ac_abs_builddir in
27001.) ac_abs_srcdir=$ac_srcdir;;
27002*)
27003 case $ac_srcdir in
27004 .) ac_abs_srcdir=$ac_abs_builddir;;
27005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27007 esac;;
27008esac
27009case $ac_abs_builddir in
27010.) ac_abs_top_srcdir=$ac_top_srcdir;;
27011*)
27012 case $ac_top_srcdir in
27013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27016 esac;;
27017esac
John Criswellc764fbc2003-09-06 15:17:13 +000027018
27019
27020 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27021echo "$as_me: executing $ac_dest commands" >&6;}
27022 case $ac_dest in
27023 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
27024 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000027025 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027026 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027027 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027028 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
27029 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000027030 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
27031 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027032 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Misha Brukman591edc62004-10-14 18:59:42 +000027033 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
Brian Gaekec45be042003-10-07 06:01:34 +000027034 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027035 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027036 esac
27037done
27038_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027039
27040cat >>$CONFIG_STATUS <<\_ACEOF
27041
27042{ (exit 0); exit 0; }
27043_ACEOF
27044chmod +x $CONFIG_STATUS
27045ac_clean_files=$ac_clean_files_save
27046
27047
27048# configure is writing to config.log, and then calls config.status.
27049# config.status does its own redirection, appending to config.log.
27050# Unfortunately, on DOS this fails, as config.log is still kept open
27051# by configure, so config.status won't be able to write to it; its
27052# output is simply discarded. So we exec the FD to /dev/null,
27053# effectively closing config.log, so it can be properly (re)opened and
27054# appended to by config.status. When coming back to configure, we
27055# need to make the FD available again.
27056if test "$no_create" != yes; then
27057 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000027058 ac_config_status_args=
27059 test "$silent" = yes &&
27060 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000027061 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000027062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000027063 exec 5>>config.log
27064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27065 # would make configure fail if this is the last instruction.
27066 $ac_cs_success || { (exit 1); exit 1; }
27067fi
27068
John Criswell12399a12003-09-30 15:55:44 +000027069#
27070# CONFIG_SUBDIRS section.
27071#
27072if test "$no_recursion" != yes; then
27073
27074 # Remove --cache-file and --srcdir arguments so they do not pile up.
27075 ac_sub_configure_args=
27076 ac_prev=
27077 for ac_arg in $ac_configure_args; do
27078 if test -n "$ac_prev"; then
27079 ac_prev=
27080 continue
27081 fi
27082 case $ac_arg in
27083 -cache-file | --cache-file | --cache-fil | --cache-fi \
27084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27085 ac_prev=cache_file ;;
27086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27088 | --c=*)
27089 ;;
27090 --config-cache | -C)
27091 ;;
27092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27093 ac_prev=srcdir ;;
27094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27095 ;;
27096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27097 ac_prev=prefix ;;
27098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27099 ;;
27100 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27101 esac
27102 done
27103
27104 # Always prepend --prefix to ensure using the same prefix
27105 # in subdir configurations.
27106 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27107
27108 ac_popdir=`pwd`
27109 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27110
27111 # Do not complain, so a configure script can configure whichever
27112 # parts of a large source tree are present.
27113 test -d $srcdir/$ac_dir || continue
27114
27115 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27116echo "$as_me: configuring in $ac_dir" >&6;}
27117 { if $as_mkdir_p; then
27118 mkdir -p "$ac_dir"
27119 else
27120 as_dir="$ac_dir"
27121 as_dirs=
27122 while test ! -d "$as_dir"; do
27123 as_dirs="$as_dir $as_dirs"
27124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027126 X"$as_dir" : 'X\(//\)[^/]' \| \
27127 X"$as_dir" : 'X\(//\)$' \| \
27128 X"$as_dir" : 'X\(/\)' \| \
27129 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000027130echo X"$as_dir" |
27131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27133 /^X\(\/\/\)$/{ s//\1/; q; }
27134 /^X\(\/\).*/{ s//\1/; q; }
27135 s/.*/./; q'`
27136 done
27137 test ! -n "$as_dirs" || mkdir $as_dirs
27138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27139echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27140 { (exit 1); exit 1; }; }; }
27141
27142 ac_builddir=.
27143
27144if test "$ac_dir" != .; then
27145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27146 # A "../" for each directory in $ac_dir_suffix.
27147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27148else
27149 ac_dir_suffix= ac_top_builddir=
27150fi
27151
27152case $srcdir in
27153 .) # No --srcdir option. We are building in place.
27154 ac_srcdir=.
27155 if test -z "$ac_top_builddir"; then
27156 ac_top_srcdir=.
27157 else
27158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27159 fi ;;
27160 [\\/]* | ?:[\\/]* ) # Absolute path.
27161 ac_srcdir=$srcdir$ac_dir_suffix;
27162 ac_top_srcdir=$srcdir ;;
27163 *) # Relative path.
27164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27166esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000027167
27168# Do not use `cd foo && pwd` to compute absolute paths, because
27169# the directories may not exist.
27170case `pwd` in
27171.) ac_abs_builddir="$ac_dir";;
27172*)
27173 case "$ac_dir" in
27174 .) ac_abs_builddir=`pwd`;;
27175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27177 esac;;
27178esac
27179case $ac_abs_builddir in
27180.) ac_abs_top_builddir=${ac_top_builddir}.;;
27181*)
27182 case ${ac_top_builddir}. in
27183 .) ac_abs_top_builddir=$ac_abs_builddir;;
27184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27186 esac;;
27187esac
27188case $ac_abs_builddir in
27189.) ac_abs_srcdir=$ac_srcdir;;
27190*)
27191 case $ac_srcdir in
27192 .) ac_abs_srcdir=$ac_abs_builddir;;
27193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27195 esac;;
27196esac
27197case $ac_abs_builddir in
27198.) ac_abs_top_srcdir=$ac_top_srcdir;;
27199*)
27200 case $ac_top_srcdir in
27201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27204 esac;;
27205esac
John Criswell12399a12003-09-30 15:55:44 +000027206
27207
27208 cd $ac_dir
27209
27210 # Check for guested configure; otherwise get Cygnus style configure.
27211 if test -f $ac_srcdir/configure.gnu; then
27212 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27213 elif test -f $ac_srcdir/configure; then
27214 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27215 elif test -f $ac_srcdir/configure.in; then
27216 ac_sub_configure=$ac_configure
27217 else
27218 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27219echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27220 ac_sub_configure=
27221 fi
27222
27223 # The recursion is here.
27224 if test -n "$ac_sub_configure"; then
27225 # Make the cache file name correct relative to the subdirectory.
27226 case $cache_file in
27227 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27228 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027229 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000027230 esac
27231
27232 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27233echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27234 # The eval makes quoting arguments work.
27235 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027236 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27237 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000027238echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27239 { (exit 1); exit 1; }; }
27240 fi
27241
27242 cd $ac_popdir
27243 done
27244fi
27245
Brian Gaekef3b24102003-11-16 18:38:14 +000027246
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027247if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
27248 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027249echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027250 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027251echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027252 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027253echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027254 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027255echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027256 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027257echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027258 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027259echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
27260fi